﻿/* ---------- Pricing ---------- */
.ec-pricing { max-width: 1180px; margin: 40px auto 60px; text-align: center; }
.ec-pricing h1 { font-weight: 800; letter-spacing: -0.6px; margin: 0 0 8px; }
.ec-pricing .ec-sub { color: #555; font-size: 16px; margin-bottom: 30px; }
.ec-plans { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; align-items: stretch; }
.ec-plan { flex: 1 1 230px; max-width: 270px; background: #fff; border: 1px solid #e5e5e5; border-radius: 16px; padding: 26px 22px 22px; text-align: left; position: relative; display: flex; flex-direction: column; }
.ec-plan.featured { border-color: #10a37f; box-shadow: 0 10px 30px rgba(16,163,127,.12); }
.ec-plan.current { border-color: #06143c; }
.ec-plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #10a37f; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 999px; letter-spacing: .3px; }
.ec-plan h3 { margin: 0 0 6px; font-weight: 800; font-size: 20px; }
.ec-price { font-size: 38px; font-weight: 800; letter-spacing: -1px; }
.ec-price span { font-size: 14px; font-weight: 500; color: #8e8e8e; letter-spacing: 0; margin-left: 2px; }
.ec-tagline { color: #555; font-size: 13.5px; min-height: 38px; }
.ec-plan ul { list-style: none; padding: 0; margin: 10px 0 20px; flex: 1 1 auto; }
.ec-plan li { font-size: 14px; padding: 5px 0; color: #333; }
.ec-plan li i { color: #10a37f; margin-right: 6px; }
.ec-plan .btn { padding: 10px; font-size: 15px; }
.ec-plan .btn[disabled], .ec-plan .btn.aspNetDisabled { opacity: .6; }
.ec-topup-note { max-width: 760px; margin: 36px auto 0; background: #fff; border: 1px solid #e5e5e5; border-radius: 14px; padding: 18px 24px; text-align: left; }
.ec-topup-note h4 { margin: 0 0 6px; font-weight: 700; }
.ec-topup-note p { margin: 0; color: #444; }
.ec-fine { color: #8e8e8e; font-size: 12.5px; margin-top: 20px; }

/* ---------- Billing ---------- */
.ec-billing { max-width: 820px; margin: 36px auto 60px; }
.ec-billing h2 { font-weight: 800; margin: 0 0 18px; }
.ec-billing h4 { font-weight: 700; margin: 0 0 10px; }
.ec-section { margin-bottom: 20px; }
.ec-banner { border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; font-weight: 600; }
.ec-banner.ok { background: #e8f7f2; color: #0e8f6f; border: 1px solid #c9ede1; }
.ec-plan-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.ec-label { font-size: 11px; font-weight: 700; color: #8e8e8e; text-transform: uppercase; letter-spacing: .4px; }
.ec-plan-name { font-size: 24px; font-weight: 800; }
.ec-status { display: inline-block; vertical-align: middle; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-left: 8px; }
.ec-status.ok { background: #e8f7f2; color: #0e8f6f; }
.ec-status.warn { background: #fbe9e8; color: #c9302c; }
.ec-muted { color: #8e8e8e; font-size: 13px; margin-top: 4px; }
.ec-plan-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ec-usage { margin-top: 22px; }
.ec-meter { margin-bottom: 14px; }
.ec-meter-head { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.ec-bar { height: 10px; background: #f1f1f1; border-radius: 999px; overflow: hidden; }
.ec-bar-fill { height: 100%; border-radius: 999px; transition: width .3s; }
.ec-bar-fill.ok { background: #10a37f; }
.ec-bar-fill.warn { background: #f59e0b; }
.ec-bar-fill.full { background: #d9534f; }
.ec-topup-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ec-auto-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ec-auto-row .ec-switch { margin: 0; font-weight: 400; }
.ec-small { width: 90px !important; height: 34px !important; display: inline-block; }
.ec-billing .grid-modern { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ec-billing .grid-modern th { background: #f7f7f8; border-bottom: 1px solid #e5e5e5; padding: 8px 10px; text-align: left; font-weight: 700; }
.ec-billing .grid-modern td { padding: 8px 10px; border-bottom: 1px solid #f1f1f1; }

/* ---------- Chat: usage pill + paywall ---------- */
.ec-usage-pill { font-size: 12px; color: #555; background: #f4f4f4; border-radius: 999px; padding: 4px 10px; white-space: nowrap; text-decoration: none !important; }
.ec-usage-pill:hover { background: #e8e8e8; color: #0d0d0d; }
.ec-usage-pill.warn { background: #fff4e5; color: #b45309; }
.ec-usage-pill.full { background: #fbe9e8; color: #c9302c; }
.ec-paywall { max-width: 780px; margin: 0 auto 10px; background: #fff; border: 1px solid #f5cfcd; border-radius: 14px; padding: 16px 18px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.ec-paywall .msg { flex: 1 1 260px; font-weight: 600; color: #333; }
