/* ============================================================
   THEME — loaded after style.css, overrides only.
   Light by default; a [data-theme="dark"] block below switches to
   a dark palette (matching the emailtemp.org-style reference: dark
   charcoal page, white address/action pills, blue accent). The
   active theme is set as an attribute on <html> by a tiny inline
   script in base.html (before first paint) and toggled by the
   header button — see initTheme()/toggleTheme() in index.js.
   No selectors here change JS behavior.
============================================================ */

/* ============================================================
   TOKENS — light (default)
============================================================ */
:root {
    color-scheme: light;

    /* Surfaces — light gray page, white cards */
    --bg:        #f6f7f9;
    --surface:   #ffffff;
    --surface-2: #eef1f6;

    /* Single accent (blue) — old neon slots remapped */
    --neon-1:      #2563eb;
    --neon-2:      #2563eb;
    --neon-hazard: #b45309;
    --neon-error:  #dc2626;
    --neon-ok:     #15803d;

    --accent-strong: #1d4ed8;
    --accent-soft:   #e9effd;

    /* Pill (light element) colors */
    --pill-bg:   #ffffff;
    --pill-text: #1c2430;

    /* Background for the big address pill + quick-action buttons —
       a soft gray in light mode, pure white in dark mode */
    --pill-surface:       var(--surface-2);
    --pill-surface-hover: #e2e7ee;

    /* Text */
    --text:       #1e2938;
    --text-muted: #5b6b7f;
    --text-dim:   #94a3b8;

    /* Borders */
    --border:    #e4e8ee;
    --border-hi: #cbd5e1;

    /* Header translucent backdrop */
    --header-bg: rgba(255,255,255,.9);

    /* Success/encrypted tint (TLS badge, success icon) */
    --success-tint-bg: #e7f6ee;
    --success-tint-fg: #15803d;

    /* Skeleton shimmer sweep */
    --shimmer-tint: rgba(15,23,42,.035);

    /* Typography — one family, no display font */
    --font-display: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;

    /* Kill the glows */
    --glow-cyan: 0 0 0 rgba(0,0,0,0);
    --glow-mag:  0 0 0 rgba(0,0,0,0);
    --glow-haz:  0 0 0 rgba(0,0,0,0);
    --glow-err:  0 0 0 rgba(0,0,0,0);

    /* No angled corners */
    --clip-card: none;
    --clip-btn:  none;

    /* Soft shadows */
    --shadow-sm: 0 1px 2px rgba(15,23,42,.05);
    --shadow-md: 0 4px 16px rgba(15,23,42,.08);
    --shadow-lg: 0 16px 48px rgba(15,23,42,.14);

    --accent-dim:   rgba(37,99,235,.08);
    --accent-btn:   rgba(37,99,235,.1);
    --accent-btn-h: rgba(37,99,235,.16);
    --danger-dim:   rgba(220,38,38,.07);
}

/* ============================================================
   TOKENS — dark
============================================================ */
:root[data-theme="dark"] {
    color-scheme: dark;

    --bg:        #17191d;
    --surface:   #1f2228;
    --surface-2: #262a31;

    --neon-1:      #2b8ceb;
    --neon-2:      #2b8ceb;
    --neon-hazard: #f0b429;
    --neon-error:  #ef5350;
    --neon-ok:     #4ade80;

    --accent-strong: #1f78d1;
    --accent-soft:   rgba(43,140,235,.16);

    --pill-bg:   #ffffff;
    --pill-text: #1c2430;

    /* White pill on dark page, per the reference design */
    --pill-surface:       var(--pill-bg);
    --pill-surface-hover: #e9eef5;

    --text:       #f2f4f7;
    --text-muted: #9aa4b2;
    --text-dim:   #6b7684;

    --border:    rgba(255,255,255,.08);
    --border-hi: rgba(255,255,255,.16);

    --header-bg: rgba(23,25,29,.92);

    --success-tint-bg: rgba(74,222,128,.14);
    --success-tint-fg: #4ade80;

    --shimmer-tint: rgba(255,255,255,.05);

    --shadow-sm: 0 1px 2px rgba(0,0,0,.25);
    --shadow-md: 0 6px 20px rgba(0,0,0,.35);
    --shadow-lg: 0 18px 48px rgba(0,0,0,.5);

    --accent-dim:   rgba(43,140,235,.1);
    --accent-btn:   rgba(43,140,235,.12);
    --accent-btn-h: rgba(43,140,235,.2);
    --danger-dim:   rgba(239,83,80,.1);
}

/* ============================================================
   BASE / DECORATION REMOVAL
============================================================ */
body::after { display: none; }                     /* scanlines */
.hero-orbs, .orb, .hero-grid, .ticker { display: none; } /* parallax + ticker */
.glow-card::after { display: none; }               /* cursor glow */
.tilt-card { transform: none !important; }         /* 3D tilt */
.hero::before, .stats-strip::before { display: none; }
.address-card::before, .inbox-section::before { display: none; }

/* ============================================================
   TYPOGRAPHY
============================================================ */
h1 { font-weight: 600; letter-spacing: -0.01em; }
h2 { font-weight: 700; letter-spacing: -0.01em; }

.eyebrow, .section-kicker {
    text-shadow: none;
    font-family: var(--font-body);
    letter-spacing: .1em;
}
.error-code { animation: none; text-shadow: none; }

/* ============================================================
   BUTTONS
============================================================ */
.btn {
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0;
    border-radius: 999px;
}
.btn.primary {
    background: var(--neon-1);
    border-color: var(--neon-1);
    color: #fff;
}
.btn.primary:hover:not(:disabled) {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    box-shadow: var(--shadow-sm);
}
.btn.ghost {
    border-color: var(--border-hi);
    color: var(--text-muted);
}
.btn.ghost:hover:not(:disabled) {
    background: var(--surface-2);
    border-color: var(--border-hi);
    color: var(--text);
}

.btn-premium {
    border: 1px solid var(--border-hi);
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0;
    border-radius: 999px;
}
.btn-premium:hover {
    background: var(--surface-2);
    color: var(--text);
    box-shadow: none;
}

.icon-btn { border-radius: 10px; }
.icon-btn:hover { border-color: var(--border-hi); color: var(--text); }
.hamburger-btn:hover span { background: var(--text); }

/* ============================================================
   HEADER
============================================================ */
.site-header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
}
.brand-mark {
    border: none;
    background: var(--accent-soft);
    color: var(--neon-1);
    box-shadow: none;
    border-radius: 10px;
}
.brand-mark .lock-body { fill: var(--accent-soft); }
.brand-name { font-weight: 700; letter-spacing: -0.01em; }
.brand-tagline { font-family: var(--font-body); }

.nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0;
    border-radius: 8px;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }

.mobile-nav { background: var(--bg); }

/* Dark/light toggle */
.theme-toggle {
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text-muted);
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-hi); }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.scroll-progress span { background: var(--neon-1); box-shadow: none; }

/* ============================================================
   AD SLOTS — hidden while empty; remove this rule when real
   ad units are dropped into the placeholders
============================================================ */
.ad-slot { display: none; }

/* ============================================================
   MAIN APP — soft white card, the focal point of the page
============================================================ */
.app-wrap { padding-top: 44px; }
.app-wrap > .container { gap: 20px; }

.address-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-sm), var(--shadow-md);
    padding: 40px 32px 32px;
    text-align: center;
}

.app-title {
    font-size: clamp(1.7rem, 4.6vw, 2.5rem);
    color: var(--text);
    font-weight: 600;
    margin-bottom: 28px;
    font-family: var(--font-body);
    letter-spacing: -0.01em;
}

/* Address pill — the single biggest element */
.address-builder { margin-bottom: 24px; }

.address-row {
    background: var(--pill-surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: none;
    padding: 8px 8px 8px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: nowrap;
    min-height: 76px;
    max-width: 620px;
    margin: 0 auto;
}

.address-line {
    display: flex;
    align-items: center;
    gap: 1px;
    flex-wrap: nowrap;
    min-width: 0;
    flex: 1;
    justify-content: center;
}

.username-display {
    font-family: var(--font-body);
    font-size: clamp(1.15rem, 2.9vw, 1.55rem);
    font-weight: 700;
    color: var(--pill-text);
    text-shadow: none;
    max-width: 300px;
    display: inline-flex;
    align-items: center;
}
.username-display.typing::after { color: var(--neon-1); }

/* Shown in place of the address while one is being generated —
   replaces the old literal "..." placeholder */
.addr-loading {
    width: 20px;
    height: 20px;
    border: 3px solid var(--border);
    border-top-color: var(--neon-1);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.at-sep {
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 2.7vw, 1.45rem);
    color: var(--pill-text);
    font-weight: 700;
    padding: 0;
}

/* Plain text domain — no picker, only one domain is offered */
.domain-static {
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 2.6vw, 1.4rem);
    font-weight: 700;
    color: var(--pill-text);
}

/* Blue copy button — the single dominant action, text label visible
   (.action-btn.action-btn--copy outranks the later .action-btn pill rules) */
.action-btn.action-btn--copy {
    height: 58px;
    padding: 0 28px !important;
    justify-content: center;
    background: var(--neon-1) !important;
    border: none !important;
    color: #fff !important;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(37,99,235,.35);
    flex-shrink: 0;
}
.action-btn.action-btn--copy svg { width: 18px; height: 18px; }
.action-btn.action-btn--copy span { display: inline; }
.action-btn.action-btn--copy:hover {
    background: var(--accent-strong) !important;
    color: #fff !important;
    box-shadow: 0 3px 14px rgba(37,99,235,.45) !important;
}
.action-btn.action-btn--copy.copied {
    background: #16a34a !important;
    color: #fff !important;
    box-shadow: 0 2px 10px rgba(22,163,74,.4) !important;
}

/* Inline username editor */
.username-editor { margin-top: 16px; justify-content: center; }
.username-input {
    flex: 0 1 320px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--pill-surface);
    color: var(--pill-text);
    font-family: var(--font-body);
    font-weight: 600;
    height: 44px;
    padding: 0 20px;
}
.username-input:focus {
    border-color: var(--neon-1);
    box-shadow: 0 0 0 3px rgba(37,99,235,.18);
}
.username-input::placeholder { color: var(--text-dim); }
.username-error {
    font-family: var(--font-body);
    color: var(--neon-error);
    background: rgba(239,83,80,.1);
    border-radius: 0 8px 8px 0;
    display: inline-block;
}

/* Inbox switcher — one pill per inbox, plus "+ Add inbox" */
.inbox-switcher {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
}
.switch-pill {
    height: 32px;
    padding: 0 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: 0;
    transition: background 150ms, color 150ms, border-color 150ms;
}
.switch-pill:hover { background: var(--surface-2); color: var(--text); }
.switch-pill.active {
    background: var(--accent-soft);
    border-color: transparent;
    color: var(--neon-1);
}
.switch-pill--add {
    border-style: dashed;
    color: var(--text-dim);
}
.switch-pill--add:hover { color: var(--neon-1); border-color: var(--neon-1); background: var(--surface); }

/* Secondary action buttons (Refresh / Edit / Delete / QR) — sized as
   big, easy-to-tap pills, just quieter than the primary Copy button */
.quick-actions {
    justify-content: center;
    gap: 10px;
    margin-bottom: 0;
    flex-wrap: wrap;
}
.action-btn {
    height: 48px;
    padding: 0 22px;
    border: 1px solid var(--border);
    background: var(--pill-surface);
    color: var(--pill-text);
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: 0;
    gap: 8px;
    box-shadow: none;
}
.action-btn:hover {
    border-color: var(--border-hi);
    background: var(--pill-surface-hover);
    color: var(--text);
}
.action-btn.action-danger { color: var(--pill-text); }
.action-btn.action-danger:hover {
    border-color: var(--neon-error);
    background: var(--danger-dim);
    color: var(--neon-error);
}

/* Countdown — quiet pill under the actions */
.countdown-badge {
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    padding: 6px 14px;
    background: var(--surface-2);
    border-radius: 999px;
    margin-top: 18px;
}
.countdown-val {
    font-size: .82rem;
    color: var(--text);
    text-shadow: none;
}
.countdown-lbl { font-size: .62rem; }
.countdown-badge.expiring { background: rgba(240,180,41,.18); }
.countdown-badge.expiring .countdown-val {
    color: var(--neon-hazard);
    text-shadow: none;
}

/* Countdown + encryption badge row under the actions */
.card-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.card-meta .countdown-badge { margin-top: 18px; }

.secure-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    margin-top: 18px;
    background: var(--success-tint-bg);
    color: var(--success-tint-fg);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
}
.secure-note svg { flex-shrink: 0; }

/* ============================================================
   INBOX — light card with a soft tab bar
============================================================ */
.inbox-section {
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    margin-top: 12px;
}

.inbox-head {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 18px;
}
.tab-btn {
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0;
    border-radius: 999px;
    color: var(--text-muted);
}
.tab-btn:hover { background: var(--surface-2); color: var(--text); }
.tab-btn.active {
    background: var(--accent-soft);
    border-color: transparent;
    color: var(--neon-1);
}
.tab-count {
    border-radius: 999px;
    background: var(--neon-1);
    color: #fff;
}
.tab-btn.active .tab-count { background: var(--neon-1); color: #fff; }

.inbox-hint {
    font-family: var(--font-body);
    letter-spacing: 0;
    color: var(--text-dim);
}

.otp-bar {
    background: var(--accent-soft);
    border-bottom: 1px solid var(--border);
    border-left: 3px solid var(--neon-1);
}
.otp-lbl { font-family: var(--font-body); }
.otp-code { text-shadow: none; color: var(--neon-1); }

/* Column header row (Sender | Subject | View), echoing the reference */
.list-head {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.7fr) minmax(76px, auto);
    gap: 12px;
    padding: 10px 20px;
    background: var(--accent-soft);
    color: var(--neon-1);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.list-head-view { text-align: right; }

/* Message rows: sender | subject | actions */
.email-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.7fr) minmax(76px, auto);
    gap: 12px;
    align-items: center;
    padding: 14px 20px;
    cursor: pointer;
}
.email-card:hover { background: var(--surface-2); }
.email-card .email-from {
    margin: 0;
    font-size: .86rem;
    color: var(--text);
    font-weight: 600;
}
.email-card .email-subject {
    margin: 0;
    font-weight: 500;
    font-size: .9rem;
    color: var(--text-muted);
}
.email-card .email-actions { justify-content: flex-end; }
/* Non-row list items (empty state, skeleton) span the full width */
.email-list .empty-state { display: flex; cursor: default; }
.email-list .skeleton { display: block; cursor: default; }
.email-from, .email-time { font-family: var(--font-body); letter-spacing: 0; }
.email-preview { font-family: var(--font-body); }
.email-action-btn {
    border-radius: 999px;
    border-color: var(--border-hi);
    background: transparent;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0;
}
.email-action-btn:hover {
    border-color: var(--neon-1);
    color: var(--text);
    background: var(--accent-soft);
}

.empty-title { font-family: var(--font-body); letter-spacing: 0; font-weight: 600; }

/* Spinner shown while waiting for the first message */
.waiting-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--surface-2);
    border-top-color: var(--neon-1);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

.skeleton::after {
    background: linear-gradient(90deg, transparent 20%, var(--shimmer-tint) 50%, transparent 80%);
}

/* ============================================================
   TOASTS
============================================================ */
.toast {
    background: var(--surface-2);
    border: 1px solid var(--border-hi);
    border-left: 3px solid var(--neon-1);
    border-radius: 12px;
    font-family: var(--font-body);
    letter-spacing: 0;
    box-shadow: var(--shadow-md);
}
.toast--mail {
    border-color: var(--border-hi);
    border-left-color: var(--neon-1);
    box-shadow: var(--shadow-md);
}

/* ============================================================
   STATS STRIP + CONTENT SECTIONS
============================================================ */
.stats-strip { margin-top: 56px; }
.stats-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .stats-grid { grid-template-columns: 1fr; } }
.stat-big { text-shadow: none; font-weight: 800; }
.stat-lbl { font-family: var(--font-body); letter-spacing: 0; }

.badge-item::before { display: none; }
.badge-item strong { text-shadow: none; }

.info-card { border-radius: 12px; }
.info-card h3 { font-family: var(--font-body); text-transform: none; letter-spacing: 0; }
.alias-list li { font-family: var(--font-body); border-radius: 0 6px 6px 0; }

.how-step { border-radius: 12px; }
.how-step-num { color: #fff; border-radius: 999px; font-family: var(--font-body); }
.how-step-icon { background: var(--accent-soft); border-radius: 10px; }
.how-arrow { color: var(--text-dim); opacity: 1; }

.feature-card { border-radius: 12px; }
.feature-icon { background: var(--accent-soft); border-radius: 10px; }

/* Highlighted "Encrypted" feature card */
.feature-card--hi {
    border: 1px solid var(--neon-1);
    background: var(--accent-soft);
    box-shadow: 0 4px 16px rgba(37,99,235,.12);
}
.feature-card--hi .feature-icon { background: var(--neon-1); color: #fff; }
.feature-card--hi h3 { color: var(--neon-1); }

/* ============================================================
   PREMIUM BANNER
============================================================ */
.premium-section { padding: 72px 0; }
.premium-banner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
    padding: 40px 48px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 20px;
    box-shadow: 0 14px 40px rgba(37,99,235,.28);
}
.premium-banner .section-kicker { color: rgba(255,255,255,.75); }
.premium-banner h2 { color: #fff; font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.premium-perks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 28px;
    margin-top: 18px;
}
.premium-perks li {
    color: rgba(255,255,255,.94);
    font-size: .95rem;
    padding-left: 26px;
    position: relative;
    line-height: 1.5;
}
.premium-perks li strong { color: #fff; font-weight: 800; }
.premium-perks li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.2);
    border-radius: 50%;
    font-size: .68rem;
    font-weight: 800;
    color: #fff;
}
.premium-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}
.premium-price {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.premium-price span { font-size: 1.05rem; font-weight: 500; opacity: .8; }
.premium-cta-btn {
    height: 54px;
    padding: 0 36px;
    background: #fff;
    border: none;
    color: var(--neon-1);
    font-size: 1.02rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.premium-cta-btn:hover:not(:disabled) {
    background: #eef3ff;
    transform: translateY(-1px);
}
.premium-note { color: rgba(255,255,255,.75); font-size: .78rem; }
.premium-proof {
    color: rgba(255,255,255,.85);
    font-size: .9rem;
    margin-top: 6px;
}

/* Premium modal: buy buttons + license redeem */
.pricing-annual-link {
    display: block;
    width: 100%;
    margin-top: 8px;
    background: none;
    border: none;
    color: var(--neon-1);
    font-family: var(--font-body);
    font-size: .8rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.pricing-annual-link:hover { color: var(--accent-strong); }
.pricing-lifetime-link { margin-top: 2px; color: var(--text-muted); }
.pricing-lifetime-link:hover { color: var(--neon-1); }
.pricing-note {
    margin-top: 10px;
    text-align: center;
    font-size: .72rem;
    color: var(--text-dim);
}

.redeem-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.redeem-label { font-size: .82rem; color: var(--text-muted); font-weight: 600; }
.redeem-input {
    flex: 1;
    min-width: 180px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: .78rem;
}
.redeem-input:focus {
    outline: none;
    border-color: var(--neon-1);
    box-shadow: 0 0 0 3px rgba(37,99,235,.14);
}
.redeem-msg { margin-top: 8px; font-size: .8rem; color: var(--neon-error); }
.redeem-msg.ok { color: var(--neon-ok); }

.manage-sub-link {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    background: none;
    border-left: none;
    border-right: none;
    border-bottom: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: .8rem;
    font-weight: 600;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.manage-sub-link:hover { color: var(--neon-1); }

/* ============================================================
   PREMIUM SUCCESS PAGE
============================================================ */
.success-wrap { padding-bottom: 72px; }
.success-card { text-align: center; }
.success-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--success-tint-bg);
    color: var(--success-tint-fg);
}
.success-sub { color: var(--text-muted); max-width: 440px; margin: 0 auto 24px; line-height: 1.7; }
.license-box {
    max-width: 440px;
    margin: 0 auto 24px;
    padding: 20px;
    background: var(--surface-2);
    border: 1px dashed var(--border-hi);
    border-radius: 12px;
}
.license-label {
    display: block;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 8px;
}
.license-key {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    word-break: break-all;
    user-select: all;
}
.license-hint { margin-top: 10px; font-size: .8rem; color: var(--text-muted); line-height: 1.6; }

.faq-item { border-radius: 10px; }
.faq-q { font-family: var(--font-body); letter-spacing: 0; }

.blog-card { border-radius: 12px; overflow: hidden; }
.blog-card-img { background: var(--surface-2); }
.blog-tag { letter-spacing: .06em; }

.app-badge { border-radius: 999px; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }

.api-card { border-radius: 12px; }
.code-block { border-radius: 8px; }
.method-tag {
    color: var(--neon-ok);
    border: 1px solid rgba(74,222,128,.35);
    background: rgba(74,222,128,.08);
    border-radius: 5px;
}
.api-note { font-family: var(--font-body); letter-spacing: 0; }

/* ============================================================
   FOOTER
============================================================ */
.footer-col a, .footer-link-btn { font-family: var(--font-body); letter-spacing: 0; }
.footer-copy { font-family: var(--font-body); letter-spacing: 0; }
.lang-select { border-radius: 999px; font-family: var(--font-body); }
h4 { font-family: var(--font-body); letter-spacing: .06em; }

.social-row { display: flex; align-items: center; gap: 8px; }
.social-btn {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--text-muted);
    text-decoration: none;
    transition: background 150ms, color 150ms;
}
.social-btn:hover { background: var(--accent-soft); color: var(--neon-1); }

/* ============================================================
   MODALS
============================================================ */
.modal-backdrop { background: rgba(0,0,0,.6); }
.modal-panel {
    border-radius: 16px;
    border-color: var(--border-hi);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}
.modal-header h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    text-shadow: none;
    letter-spacing: 0;
}
.modal-close-btn { border-radius: 999px; }
.msg-meta { font-family: var(--font-body); letter-spacing: 0; }
.msg-body { border-radius: 10px; color: var(--text); }
.qr-addr { color: var(--text); }
.qr-canvas { border: 1px solid var(--border); border-radius: 10px; }
.qr-hint { font-family: var(--font-body); }

.premium-sub { font-family: var(--font-body); }
.pricing-card { border-radius: 12px; }
.pricing-featured { box-shadow: var(--shadow-sm); }
.pricing-badge { color: #17191d; border-radius: 999px; font-family: var(--font-body); }
.pricing-tier { font-family: var(--font-body); }
.pricing-price { font-weight: 800; }
.pricing-features li { font-family: var(--font-body); }
.pricing-features li::before { content: "✓"; font-weight: 700; }

/* ============================================================
   SUBPAGES / PROSE
============================================================ */
.page-title { font-weight: 700; letter-spacing: -0.02em; }
.breadcrumb a, .post-meta, .blog-meta { font-family: var(--font-body); letter-spacing: 0; }
.prose h2 { font-size: 1.25rem; }
.prose ul li::before { content: "•"; font-family: var(--font-body); color: var(--neon-1); }
.prose a { border-bottom-color: rgba(43,140,235,.4); }
.prose code { background: var(--accent-soft); border-radius: 4px; }
.prose th { font-family: var(--font-body); }
.post-cta-inner { border-radius: 12px; box-shadow: var(--shadow-sm); }

/* ============================================================
   RESPONSIVE TWEAKS
============================================================ */
@media (max-width: 600px) {
    .app-wrap { padding-top: 28px; }
    .address-card { padding: 28px 16px 24px; }
    .app-title { margin-bottom: 20px; }

    /* Pill stacks: address on top, full-width copy below */
    .address-row {
        flex-direction: column;
        border-radius: 26px;
        padding: 18px 14px 14px;
        gap: 12px;
    }
    .address-line { justify-content: center; text-align: center; flex-wrap: wrap; }
    .username-display { max-width: 100%; }
    .action-btn.action-btn--copy {
        width: 100%;
        height: 52px;
        border-radius: 999px;
    }
    .action-btn.action-btn--copy span { display: inline; }
    .action-btn.action-btn--copy svg { width: 17px; height: 17px; }

    .quick-actions { gap: 8px; }
    .action-btn { padding: 0 16px; height: 44px; font-size: .86rem; }
    .action-btn span { display: inline; }

    .list-head, .email-card {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(56px, auto);
        gap: 8px;
        padding: 12px 14px;
    }
    .premium-banner { grid-template-columns: 1fr; gap: 24px; padding: 28px 22px; }
    .premium-perks { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
}
