/* Account pages — dark theme (inherits chat.css tokens) */
.account-page .chat-main {
    padding: 0;
}

.account-page .chat-top h1 {
    flex: 1;
}

.account-body {
    flex: 1;
    overflow-y: auto;
    padding: 28px 24px 48px;
    max-width: 920px;
    width: 100%;
    margin: 0 auto;
}
.account-body:has(.plans) {
    max-width: 960px;
}

.account-body > .lead {
    color: var(--text-muted);
    margin: 0 0 22px;
    font-size: 14px;
}

.account-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 14px;
}

@media (max-width: 800px) {
    .account-grid { grid-template-columns: 1fr; }
}

.account-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    color: var(--text-dark);
}

.account-card h2 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.balance-num {
    font-size: 34px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 6px;
}

.muted { color: var(--text-muted); font-size: 14px; }

.account-card .usage-bar {
    height: 8px;
    background: var(--bg-hover);
    margin: 14px 0 8px;
}

.account-card .usage-bar > span {
    background: linear-gradient(90deg, var(--accent-dim), var(--accent));
}

.btn-account {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 10px;
    padding: 11px 14px;
    font-weight: 700;
    text-decoration: none;
    font-size: 13px;
    background: var(--accent);
    color: #04120f;
    width: 100%;
    margin-top: 14px;
    cursor: pointer;
}

.btn-account:hover { background: #5eead4; color: #04120f; }

.btn-account-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--border-color);
    margin-top: 8px;
}

.btn-account-outline:hover { background: var(--bg-hover); }

.account-table { width: 100%; border-collapse: collapse; font-size: 14px; color: var(--text-dark); }
.account-table th,
.account-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid var(--border-soft);
}
.account-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
}

.pill {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    background: var(--accent-soft);
    color: var(--accent);
}
.pill-ok { background: rgba(61, 214, 198, 0.14); color: var(--accent); }
.pill-trial { background: rgba(210, 153, 34, 0.15); color: #e3b341; }

.credit { font-weight: 700; color: var(--accent); }
.scroll-table { max-height: 420px; overflow: auto; }

.chat-side-links a.is-active {
    background: var(--bg-hover);
    font-weight: 600;
    color: var(--text-dark);
}

/* Plans — compact dark cards */
.plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}
@media (max-width: 960px) {
    .plans { grid-template-columns: 1fr; max-width: 360px; }
}
.plan-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 14px 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    color: var(--text-dark);
}
.plan-card.popular,
.plan-card.current-card {
    border-color: var(--accent-dim);
}
.plan-card .tag {
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #04120f;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
}
.plan-card h3 {
    margin: 0 0 2px;
    font-size: 16px;
    font-weight: 700;
}
.plan-card .blurb {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 10px;
    line-height: 1.35;
}
.plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 6px;
}
.plan-price strong {
    font-size: 26px;
    color: var(--accent);
    line-height: 1;
}
.plan-price span { color: var(--text-muted); font-size: 12px; }
.token-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 16px;
    margin-bottom: 10px;
    width: fit-content;
}
.plan-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    flex: 1;
}
.plan-card li {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--text-muted);
    padding: 5px 0;
    border-bottom: 1px solid var(--border-soft);
}
.plan-card li:last-child { border-bottom: 0; }
.plan-card li i {
    color: var(--accent);
    width: 12px;
    font-size: 10px;
}
.plan-actions { margin-top: auto; }
.plan-actions .btn-account {
    width: 100%;
    box-sizing: border-box;
    margin-top: 0;
    padding: 9px 12px;
    font-size: 13px;
}
.paypal-slot { min-height: 40px; margin-bottom: 2px; }
.pay-label {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 6px;
}
.pay-note {
    margin: 6px 0 0;
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.35;
}
.meter {
    height: 5px;
    background: var(--bg-hover);
    border-radius: 99px;
    overflow: hidden;
    margin: 8px 0 4px;
}
.meter > span {
    display: block;
    height: 100%;
    background: var(--accent);
    border-radius: 99px;
}
.current-badge {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 16px;
    margin-bottom: 6px;
}
.flash {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    border: 1px solid var(--border-color);
}
.flash.success {
    background: rgba(61, 214, 198, 0.12);
    color: var(--accent);
    border-color: rgba(61, 214, 198, 0.3);
}
.flash.error {
    background: rgba(248, 81, 73, 0.12);
    color: #ff7b72;
    border-color: rgba(248, 81, 73, 0.35);
}
.btn-paypal-disabled {
    width: 100%;
    border: 0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    background: #ffc439;
    color: #003087;
    opacity: 0.55;
    cursor: not-allowed;
}
.paypal-loading {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    padding: 8px;
}
.hint {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 18px;
    line-height: 1.45;
}
.hint a { color: var(--accent); font-weight: 600; }
