/* ============================================================
   IBHere Subscription – Styles
   ============================================================ */

:root {
    --bg:             #0f1117;
    --bg-card:        #1a1d27;
    --bg-card-hover:  #22263a;
    --border:         #2a2e3f;
    --text:           #e1e4ed;
    --text-muted:     #8b90a0;
    --primary:        #6366f1;
    --primary-hover:  #818cf8;
    --primary-glow:   rgba(99, 102, 241, 0.25);
    --success:        #22c55e;
    --warning:        #f59e0b;
    --danger:         #ef4444;
    --radius:         12px;
    --radius-sm:      8px;
    --transition:     0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-fade {
    opacity: 0;
    transition: opacity 0.35s ease;
}

.page-fade.page-fade--in {
    opacity: 1;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

/* ---- Navbar ---- */

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(15, 17, 23, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.brand-icon {
    color: var(--primary);
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-links a { color: var(--text-muted); font-size: .9rem; }
.nav-links a:hover { color: var(--text); }

.nav-user {
    color: var(--text);
    font-weight: 500;
    font-size: .9rem;
    padding: .25rem .75rem;
    background: var(--bg-card);
    border-radius: 999px;
    border: 1px solid var(--border);
}

/* ---- Buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .625rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .9rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-sm { padding: .375rem .875rem; font-size: .8rem; }
.btn-lg { padding: .875rem 1.75rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 20px var(--primary-glow);
}
.btn-primary:hover {
    background: var(--primary-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 24px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
}

.btn-danger {
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
}
.btn-danger:hover {
    background: var(--danger);
    color: #fff;
}

/* ---- Flash messages ---- */

.flash-container { padding: .75rem 2rem; }
.flash {
    padding: .75rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: .5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .9rem;
    animation: fadeIn .3s;
}
.flash-success { background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.3); color: var(--success); }
.flash-danger  { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.3); color: var(--danger); }
.flash-warning { background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.3); color: var(--warning); }
.flash-info    { background: rgba(99, 102, 241, 0.12); border: 1px solid rgba(99, 102, 241, 0.3); color: var(--primary); }
.flash-close { background: none; border: none; color: inherit; font-size: 1.2rem; cursor: pointer; opacity: .6; }
.flash-close:hover { opacity: 1; }

/* ---- Main content ---- */

.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ---- Auth ---- */

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
}

.auth-card h1 { font-size: 1.5rem; margin-bottom: .25rem; }
.auth-subtitle { color: var(--text-muted); margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: .375rem;
    font-weight: 500;
}
.form-group input {
    width: 100%;
    padding: .625rem .875rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: .95rem;
    transition: border var(--transition);
}
.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* ---- Pricing hero ---- */

.pricing-hero {
    text-align: center;
    padding: 3rem 0 2rem;
}
.pricing-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: .5rem;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* ---- Pricing grid ---- */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    position: relative;
    transition: all var(--transition);
}
.pricing-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card--featured {
    border-color: var(--primary);
    box-shadow: 0 0 30px var(--primary-glow);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--primary);
    color: #fff;
    padding: .25rem .875rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
}

.pricing-plan-name {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.pricing-amount {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: baseline;
    gap: .15rem;
}
.pricing-currency { font-size: 1.5rem; font-weight: 700; color: var(--text-muted); }
.pricing-value    { font-size: 3rem; font-weight: 800; line-height: 1; }
.pricing-interval { font-size: 1rem; color: var(--text-muted); }

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}
.pricing-features li {
    padding: .5rem 0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: .5rem;
}
.feature-check { color: var(--success); font-weight: 700; }

.current-plan-badge {
    text-align: center;
    padding: .75rem;
    border-radius: var(--radius-sm);
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    font-weight: 600;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* ---- Services Included section ---- */

.services-included {
    margin-bottom: 4rem;
}
.services-included h2 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: .5rem;
}
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.service-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: all var(--transition);
}
.service-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.service-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-info h3 {
    font-size: .95rem;
    margin-bottom: .35rem;
    color: var(--text);
}
.service-info p {
    font-size: .85rem;
    line-height: 1.5;
    color: var(--text);
    margin: 0;
}

.services-count {
    text-align: center;
    margin-top: 1.5rem;
    font-size: .9rem;
    color: var(--primary);
    font-weight: 600;
}

/* ---- FAQ ---- */

.pricing-faq {
    margin-bottom: 3rem;
}
.pricing-faq h2 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.faq-item h3 { font-size: 1rem; margin-bottom: .5rem; }
.faq-item p  { color: var(--text-muted); font-size: .9rem; }

/* ---- Checkout ---- */

.checkout-container {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.checkout-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    width: 100%;
    max-width: 500px;
}

.checkout-header {
    text-align: center;
    margin-bottom: 2rem;
}
.checkout-header h1 { font-size: 1.5rem; margin-bottom: .5rem; }

.checkout-summary {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: .5rem 0;
    font-size: .95rem;
    color: var(--text-muted);
}
.summary-row span:last-child { color: var(--text); font-weight: 500; }

.summary-total {
    border-top: 1px solid var(--border);
    margin-top: .5rem;
    padding-top: .75rem;
    font-size: 1.1rem;
}
.summary-total span { color: var(--text) !important; font-weight: 700 !important; }

.checkout-features {
    margin-bottom: 1.5rem;
}
.checkout-features h3 { font-size: .9rem; color: var(--text-muted); margin-bottom: .75rem; }
.checkout-features ul { list-style: none; }
.checkout-features li {
    padding: .35rem 0;
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .9rem;
    color: var(--text-muted);
}

.checkout-footer-note {
    text-align: center;
    font-size: .8rem;
    color: var(--text-muted);
    margin-top: 1rem;
    line-height: 1.6;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 1.25rem;
    font-size: .9rem;
    color: var(--text-muted);
}
.back-link:hover { color: var(--primary); }

.checkout-footer-buttons {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkout-footer-buttons .back-link {
    margin-top: 0;
    margin-bottom: 0;
}

/* ---- Success page ---- */

.status-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
}

.status-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem;
    max-width: 500px;
    text-align: center;
}

.status-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}
.status-success .status-icon {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
    border: 2px solid rgba(34, 197, 94, 0.3);
}

.status-message { color: var(--text-muted); margin-bottom: 1rem; }
.session-ref { font-size: .8rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.session-ref code { color: var(--text); background: var(--bg); padding: .15rem .5rem; border-radius: 4px; }

.status-actions { display: flex; gap: 1rem; justify-content: center; }

/* ---- Account ---- */

.account-container { max-width: 800px; margin: 0 auto; }
.account-container h1 { font-size: 1.75rem; margin-bottom: .25rem; }
.account-subtitle { color: var(--text-muted); margin-bottom: 2rem; }

.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.account-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}
.account-card h2 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--border);
}

.sub-status {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-size: .95rem;
}
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.sub-status--active  .status-dot { background: var(--success); box-shadow: 0 0 8px rgba(34, 197, 94, 0.5); }
.sub-status--warning .status-dot { background: var(--warning); box-shadow: 0 0 8px rgba(245, 158, 11, 0.5); }
.sub-status--inactive .status-dot { background: var(--text-muted); }
.sub-status--danger  .status-dot { background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.5); }
.sub-status--danger  { color: #fca5a5; }
.sub-status--gold    .status-dot { background: #f59e0b; box-shadow: 0 0 10px rgba(245, 158, 11, 0.7); }
.sub-status--gold    { color: #fcd34d; }

.gold-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #92400e 0%, #78350f 100%);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 8px;
    padding: 10px 16px;
    margin: 12px 0 16px;
    color: #fcd34d;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: .3px;
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.15);
}
.gold-plan-badge .gold-icon { font-size: 1.2rem; }
.gold-plan-perks {
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: .85rem;
    color: #d1d5db;
    line-height: 1.65;
}

.demoted-disclaimer {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 14px 18px;
    margin: 12px 0;
    color: #fca5a5;
    font-size: .9rem;
    line-height: 1.5;
}
.demoted-disclaimer strong {
    display: block;
    margin-bottom: 6px;
    color: #fca5a5;
}
.demoted-disclaimer p {
    margin: 0;
    color: rgba(252, 165, 165, 0.8);
}

.sub-detail {
    display: flex;
    justify-content: space-between;
    padding: .5rem 0;
    font-size: .9rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(42, 46, 63, 0.5);
}
.sub-detail:last-of-type { border-bottom: none; margin-bottom: 1rem; }

.cancel-note {
    font-size: .85rem;
    color: var(--text-muted);
    text-align: center;
    padding: .75rem;
    background: rgba(245, 158, 11, 0.08);
    border-radius: var(--radius-sm);
}

/* ---- Footer ---- */

.footer {
    text-align: center;
    padding: 1.5rem 2rem;
    color: var(--text-muted);
    font-size: .8rem;
    border-top: 1px solid var(--border);
}

/* ---- Animations ---- */

@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ---- Auth tabs (checkout page) ---- */

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}
.auth-tab {
    flex: 1;
    padding: .75rem .5rem;
    background: var(--bg);
    color: var(--text-muted);
    border: none;
    cursor: pointer;
    font-size: .85rem;
    font-weight: 600;
    transition: all var(--transition);
}
.auth-tab:first-child { border-right: 1px solid var(--border); }
.auth-tab.active {
    background: var(--primary);
    color: #fff;
}
.auth-tab:hover:not(.active) {
    background: var(--bg-card-hover);
    color: var(--text);
}

.tab-content {
    display: none;
    animation: fadeIn .25s;
}
.tab-content.active { display: block; }

.tab-desc {
    color: var(--text-muted);
    font-size: .9rem;
    margin-bottom: 1.25rem;
    text-align: center;
}

/* ---- Auth status display ---- */

.auth-status {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    font-size: .9rem;
}

.status-dot-inline {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.status-dot-green {
    background: var(--success);
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

.badge {
    display: inline-block;
    padding: .15rem .5rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.badge-secondary {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.promote-note {
    width: 100%;
    margin-top: .5rem;
    font-size: .8rem;
    color: var(--text-muted);
}

/* ---- Account creation form (success page) ---- */

.account-creation-form {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    margin: 1.5rem 0;
    text-align: left;
    max-width: 480px;
    width: 100%;
}
.account-creation-form h2 {
    font-size: 1.2rem;
    margin-bottom: .25rem;
}
.form-subtitle {
    color: var(--text-muted);
    font-size: .9rem;
    margin-bottom: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}
.form-group-half { flex: 1; }

.color-picker-wrap {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.color-picker-wrap input[type="color"] {
    width: 44px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    cursor: pointer;
    padding: 2px;
}
.color-label {
    font-family: monospace;
    font-size: .85rem;
    color: var(--text-muted);
}

select {
    width: 100%;
    padding: .625rem .875rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: .95rem;
    cursor: pointer;
}
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Field validation states */
.field-status {
    font-size: .8rem;
    margin-top: .25rem;
    min-height: 1.2em;
}
.field-status.available { color: var(--success); }
.field-status.taken     { color: var(--danger); }
.field-status.checking  { color: var(--text-muted); font-style: italic; }

.field-hint {
    display: block;
    font-size: .75rem;
    color: var(--text-muted);
    margin-top: .15rem;
}

.status-card { max-width: 560px; }

/* Auth footer link */
.auth-footer {
    text-align: center;
    margin-top: 1.25rem;
    font-size: .85rem;
    color: var(--text-muted);
}

/* ---- Responsive ---- */

/* ---- Rate Limit 429 Page ---- */

.rate-limit-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem;
}

.rate-limit-card {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));
    border: 2px solid var(--danger);
    border-radius: var(--radius);
    padding: 3rem 2.5rem;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 0 40px rgba(239, 68, 68, 0.15);
}

.rate-limit-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.rate-limit-card h1 {
    font-size: 2rem;
    color: var(--danger);
    margin: 0.5rem 0;
}

.rate-limit-code {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0.5rem 0 1.5rem;
}

.rate-limit-message {
    background: rgba(239, 68, 68, 0.08);
    border-left: 3px solid var(--danger);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}

.rate-limit-message p {
    margin: 0;
    color: var(--text);
}

.rate-limit-details {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--danger);
}

.rate-limit-hint {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 2rem;
}

.rate-limit-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.rate-limit-actions .btn {
    border-color: var(--danger);
    color: var(--danger);
}

.rate-limit-actions .btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
    color: #ff9999;
}

@media (max-width: 640px) {
    .navbar { padding: .75rem 1rem; }
    .main-content { padding: 1rem; }
    .pricing-hero h1 { font-size: 1.75rem; }
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card { padding: 2rem 1.5rem; }
    .checkout-card { padding: 1.5rem; }
    .status-actions { flex-direction: column; }
    .form-row { flex-direction: column; gap: 0; }
    .auth-tab { font-size: .75rem; padding: .625rem .375rem; }
    .account-creation-form { padding: 1.25rem; }
    .rate-limit-card { padding: 2rem 1.5rem; }
    .rate-limit-card h1 { font-size: 1.5rem; }
    .rate-limit-icon { font-size: 3rem; }
    .gold-disclaimer { padding: 1.5rem 1rem; }
    .gold-disclaimer-inner { padding: 2rem 1.5rem; }
    .gold-donate-form { flex-direction: column; }
}

/* ---- Gold subscriber disclaimer ---- */
.gold-disclaimer {
    padding: 3rem 1rem 2rem;
}
.gold-disclaimer-inner {
    max-width: 680px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(245,158,11,.10) 0%, rgba(252,211,77,.07) 100%);
    border: 1.5px solid rgba(245,158,11,.45);
    border-radius: 1.25rem;
    padding: 2.5rem 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 0 40px rgba(245,158,11,.08);
}
.gold-disclaimer-star {
    font-size: 2.5rem;
    color: #f59e0b;
    text-shadow: 0 0 18px rgba(245,158,11,.6);
    margin-bottom: .5rem;
    line-height: 1;
}
.gold-disclaimer-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fcd34d;
    margin: 0 0 .9rem;
    letter-spacing: -.01em;
}
.gold-disclaimer-body {
    font-size: 1.05rem;
    color: var(--text-muted, #94a3b8);
    line-height: 1.65;
    margin: 0 0 .4rem;
}
.gold-disclaimer-body strong { color: #fcd34d; }
.gold-disclaimer-body em { font-style: normal; color: #fde68a; }
.gold-disclaimer-asterisk {
    color: #f59e0b;
    font-size: .85em;
    vertical-align: super;
}
.gold-disclaimer-fine {
    font-size: .78rem;
    color: var(--text-muted, #6b7280);
    margin: 0 0 1.25rem;
    font-style: italic;
}
.gold-disclaimer-donate {
    font-size: .95rem;
    color: var(--text-muted, #94a3b8);
    margin: 0 0 1.5rem;
}
.btn-gold {
    display: inline-block;
    padding: .65rem 1.75rem;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #1a1a1a;
    font-weight: 700;
    font-size: .95rem;
    border-radius: .6rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
    box-shadow: 0 4px 18px rgba(245,158,11,.35);
}
.btn-gold:hover {
    opacity: .9;
    transform: translateY(-1px);
}

/* ---- Gold donation amount input ---- */
.gold-donate-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: .25rem;
}
.gold-donate-input-wrap {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,.06);
    border: 1.5px solid rgba(245,158,11,.4);
    border-radius: .6rem;
    padding: 0 .75rem;
    height: 2.65rem;
}
.gold-donate-symbol {
    color: #f59e0b;
    font-weight: 700;
    font-size: 1.1rem;
    margin-right: .3rem;
    line-height: 1;
}
.gold-donate-input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    width: 5.5rem;
    text-align: left;
}
.gold-donate-input::-webkit-inner-spin-button,
.gold-donate-input::-webkit-outer-spin-button { opacity: .4; }

/* ---- Donate success page ---- */
.donate-success-card { max-width: 480px; }
.donate-success-icon {
    font-size: 3rem;
    color: #f59e0b;
    text-shadow: 0 0 20px rgba(245,158,11,.5);
}
.donate-success-note {
    font-size: .88rem;
    color: var(--text-muted, #6b7280);
    font-style: italic;
    margin-top: -.25rem;
}
