/* ============================================================================
   AcePressure Premium Theme (v1.3.0)
   -----------------------------------------------------------------------------
   Layered on top of style.css. Elevates the whole UI to a "pro streamer /
   premium service" aesthetic: deeper palette, glass-morphism surfaces, premium
   type scale with Devanagari fallback, animated gradient accents, smooth
   micro-interactions, confetti support.

   Load order in templates:  style.css  →  premium.css
   Safe to disable: remove the <link> tag and the base style.css still renders.
   ============================================================================ */

/* -------- Design tokens -------- */
:root {
    --bg-0: #07070b;
    --bg-1: #0d0e14;
    --bg-2: #121420;
    --surface: rgba(22, 24, 34, 0.72);
    --surface-strong: rgba(28, 30, 42, 0.92);
    --surface-border: rgba(255, 255, 255, 0.08);
    --surface-border-strong: rgba(255, 255, 255, 0.14);

    --ink: #f5f3ee;
    --ink-dim: #a7a9b8;
    --ink-mute: #6b6e82;

    --accent: #ff4660;          /* primary crimson, kept for brand continuity */
    --accent-2: #ff8a3d;         /* warm sunset for gradients */
    --accent-3: #ffd166;         /* gold for premium highlights */
    --accent-cool: #7a5cff;      /* cool violet for depth */
    --accent-mint: #4ad4a3;      /* success */

    --glow-accent: 0 0 40px -8px rgba(255, 70, 96, 0.55);
    --glow-gold:   0 0 60px -12px rgba(255, 209, 102, 0.45);
    --glow-cool:   0 0 60px -12px rgba(122, 92, 255, 0.45);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.4), 0 24px 60px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 10px 40px rgba(0, 0, 0, 0.5), 0 40px 120px rgba(0, 0, 0, 0.6);

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --font-sans: 'Inter', 'Segoe UI Variable', 'Segoe UI', system-ui, 'Noto Sans', sans-serif;
    --font-hindi: 'Noto Sans Devanagari', 'Mangal', 'Nirmala UI', 'Hind', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
    --font-display: 'Inter', 'Segoe UI Variable', system-ui, sans-serif;
}

/* -------- Global base lift -------- */
html, body {
    font-family: var(--font-sans);
    font-feature-settings: 'cv01', 'cv02', 'cv11', 'ss01', 'tnum';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
body {
    background: var(--bg-0);
    color: var(--ink);
    background-image:
        radial-gradient(900px 600px at 10% -10%, rgba(255, 70, 96, 0.08), transparent 60%),
        radial-gradient(1200px 800px at 110% 10%, rgba(122, 92, 255, 0.07), transparent 60%),
        radial-gradient(700px 500px at 50% 110%, rgba(255, 209, 102, 0.05), transparent 60%),
        linear-gradient(180deg, #07070b 0%, #0a0b11 100%);
    min-height: 100vh;
}
/* Make Devanagari glyphs render crisply when mixed into Hinglish messages */
:lang(hi), [lang="hi"], .hindi { font-family: var(--font-hindi); }

h1, h2, h3 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}
h1 { font-weight: 800; }
h2 { font-weight: 700; }
.tnum, b, strong, .metric b { font-variant-numeric: tabular-nums; }

/* -------- Public tip page -------- */
.tip-focused {
    background: transparent;
}
.tip-focused .site-header {
    padding: 24px 36px;
    border-bottom: 1px solid var(--surface-border);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    background: linear-gradient(180deg, rgba(13, 14, 20, 0.72), rgba(13, 14, 20, 0.35));
    position: sticky; top: 0; z-index: 10;
}
.tip-focused .wordmark {
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(100deg, #fff 0%, #fff 55%, var(--accent-3) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.tip-focused .wordmark span {
    background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tip-focused .creator-mark {
    width: 92px; height: 92px; line-height: 90px;
    border-radius: 24px; transform: none;
    background: linear-gradient(140deg, #3a1420 0%, #1a0d14 100%);
    border: 1px solid rgba(255, 70, 96, 0.4);
    box-shadow: var(--glow-accent), inset 0 1px 0 rgba(255, 255, 255, 0.06), var(--shadow-md);
    font-weight: 900;
}
.tip-focused .creator-mark span {
    background: linear-gradient(100deg, var(--accent-3), var(--accent-2));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.tip-focused .creator h1 {
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -0.035em;
    line-height: 1.05;
    background: linear-gradient(180deg, #fff 0%, #d5d7e0 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.tip-focused .creator .creator-kicker {
    color: var(--accent-3);
    letter-spacing: 3px;
    font-weight: 800;
    font-size: 11px;
    text-shadow: 0 0 20px rgba(255, 209, 102, 0.4);
}
.tip-focused .creator p {
    color: var(--ink-dim);
    font-size: 15px;
    line-height: 1.65;
}
.creator-detail span {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--surface-border);
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 600;
    color: var(--ink-dim);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.creator-detail span:hover {
    border-color: var(--accent);
    color: var(--ink);
    box-shadow: var(--glow-accent);
}

/* -------- Tip card: the hero surface -------- */
.tip-focused .tip-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--surface-border-strong);
    border-radius: var(--radius-xl);
    padding: 36px;
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 60px 120px -40px rgba(0, 0, 0, 0.9),
        0 20px 40px -20px rgba(255, 70, 96, 0.25);
    overflow: hidden;
    isolation: isolate;
}
.tip-focused .tip-card::before {
    content: '';
    position: absolute; inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from 180deg at 50% 50%, rgba(255, 70, 96, 0.6), rgba(122, 92, 255, 0.3), rgba(255, 209, 102, 0.4), rgba(255, 70, 96, 0.6));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.9;
    animation: ace-rotate 14s linear infinite;
    z-index: -1;
}
.tip-focused .tip-card::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(600px 300px at 50% 0%, rgba(255, 70, 96, 0.14), transparent 60%);
    pointer-events: none; z-index: -1;
}
@keyframes ace-rotate { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .tip-focused .tip-card::before { animation: none; }
}

.tip-focused .tip-card h2 {
    font-size: 24px; font-weight: 800;
    background: linear-gradient(100deg, #fff, #e6c88d);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-line > span {
    letter-spacing: 2px !important;
    font-size: 10px !important;
    color: var(--accent-3) !important;
    font-weight: 700;
}

/* Inputs */
input, textarea, select {
    background: rgba(10, 11, 16, 0.72) !important;
    border: 1px solid var(--surface-border) !important;
    border-radius: var(--radius-sm) !important;
    padding: 13px 14px !important;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
input:hover, textarea:hover, select:hover {
    border-color: var(--surface-border-strong) !important;
}
input:focus, textarea:focus, select:focus {
    outline: none !important;
    border-color: rgba(255, 70, 96, 0.75) !important;
    box-shadow: 0 0 0 4px rgba(255, 70, 96, 0.15), 0 0 30px -8px rgba(255, 70, 96, 0.5) !important;
    background: rgba(10, 11, 16, 0.92) !important;
}

label { font-weight: 600; color: var(--ink); letter-spacing: 0.2px; }

/* Amount input: hero component */
.tip-focused .amount-input {
    background: linear-gradient(135deg, rgba(10, 11, 16, 0.9) 0%, rgba(26, 10, 18, 0.9) 100%);
    border: 1px solid rgba(255, 70, 96, 0.3);
    border-radius: var(--radius-md);
    padding: 2px 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 10px 30px -10px rgba(255, 70, 96, 0.3);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.tip-focused .amount-input:focus-within {
    border-color: rgba(255, 70, 96, 0.75);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 4px rgba(255, 70, 96, 0.15), 0 20px 40px -10px rgba(255, 70, 96, 0.4);
}
.tip-focused .amount-input span {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 28px; font-weight: 800;
}
.tip-focused .amount-input input {
    background: transparent !important;
    border: 0 !important;
    padding: 14px 0 !important;
    font-size: 32px !important;
    font-weight: 700;
    box-shadow: none !important;
    letter-spacing: -0.02em;
}

/* Preset amount buttons */
.tip-focused .presets {
    gap: 10px;
    margin-top: 14px;
}
.tip-focused .presets button {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 13px 10px;
    font-weight: 700;
    color: var(--ink);
    transition: transform 0.18s cubic-bezier(0.2, 0.9, 0.3, 1.4), border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}
.tip-focused .presets button::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255, 70, 96, 0), rgba(255, 70, 96, 0.3));
    opacity: 0; transition: opacity 0.3s ease;
}
.tip-focused .presets button:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 70, 96, 0.5);
    box-shadow: 0 10px 25px -10px rgba(255, 70, 96, 0.5);
}
.tip-focused .presets button:hover::before { opacity: 1; }
.tip-focused .presets button.selected {
    background: linear-gradient(135deg, rgba(255, 70, 96, 0.25), rgba(255, 138, 61, 0.15));
    border-color: var(--accent);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 30px -10px rgba(255, 70, 96, 0.6);
}

/* Voice & sound selector cards */
.voice-choices, .sound-choices {
    gap: 8px;
    padding: 4px;
}
.voice-card, .sound-choices button {
    background: rgba(255, 255, 255, 0.025) !important;
    border: 1px solid var(--surface-border) !important;
    border-radius: 12px !important;
    padding: 10px 14px !important;
    color: var(--ink) !important;
    transition: all 0.2s ease;
}
.voice-card:hover, .sound-choices button:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--surface-border-strong) !important;
    transform: translateY(-1px);
}
.voice-card.selected, .sound-choices button.selected {
    background: linear-gradient(135deg, rgba(255, 70, 96, 0.25), rgba(255, 138, 61, 0.15)) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 20px -8px rgba(255, 70, 96, 0.5);
}

/* v1.5.4 — Friendly voice picker: gender-grouped cards with icon + preview speaker */
.voice-card {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-align: left;
    line-height: 1.2;
    min-height: 56px;
    position: relative;
}
.voice-card .voice-gender-icon {
    font-size: 1.4em;
    line-height: 1;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}
.voice-card .voice-friendly-name {
    flex: 1;
    font-weight: 600;
    letter-spacing: 0.2px;
    font-size: 14px;
}
.voice-card .voice-preview-spk {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    font-size: 15px;
    opacity: 0.75;
    transition: all 0.15s ease;
    flex-shrink: 0;
    user-select: none;
}
.voice-card .voice-preview-spk:hover {
    background: rgba(255, 70, 96, 0.25);
    opacity: 1;
    transform: scale(1.08);
}
.voice-card .voice-preview-spk:active {
    transform: scale(0.92);
}
/* Gender-coded left border + icon tint. Subtle — supports group recognition without overpowering. */
.voice-card.voice-male .voice-gender-icon {
    color: #7cc3ff;
    background: rgba(59, 130, 246, 0.18);
}
.voice-card.voice-female .voice-gender-icon {
    color: #ff9fc3;
    background: rgba(236, 72, 153, 0.18);
}
.voice-card.voice-any .voice-gender-icon {
    color: #b4bdc9;
    background: rgba(148, 163, 184, 0.18);
}
.voice-card.voice-male { border-left: 3px solid rgba(59, 130, 246, 0.6) !important; }
.voice-card.voice-female { border-left: 3px solid rgba(236, 72, 153, 0.6) !important; }
.voice-card.voice-any { border-left: 3px solid rgba(148, 163, 184, 0.5) !important; }

/* Primary CTA — the "pay" button */
.primary {
    position: relative;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    border: 0 !important;
    color: #fff !important;
    font-weight: 800;
    letter-spacing: 0.3px;
    padding: 16px 20px !important;
    border-radius: 14px !important;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 10px 30px -8px rgba(255, 70, 96, 0.6), 0 20px 60px -20px rgba(255, 138, 61, 0.5);
    transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.4), box-shadow 0.25s ease;
}
.primary::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.35) 50%, transparent 80%);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}
.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 14px 40px -8px rgba(255, 70, 96, 0.75), 0 30px 80px -20px rgba(255, 138, 61, 0.6);
}
.primary:hover::after { transform: translateX(100%); }
.primary:active { transform: translateY(0); }

/* Secondary / subtle buttons */
.subtle {
    background: transparent !important;
    border: 1px solid var(--surface-border) !important;
    color: var(--ink-dim) !important;
    border-radius: 10px !important;
    transition: all 0.2s ease;
}
.subtle:hover {
    border-color: var(--surface-border-strong) !important;
    color: var(--ink) !important;
    background: rgba(255, 255, 255, 0.03) !important;
}

/* Supporters card */
.tip-focused .supporters {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--shadow-md);
}
.supporter-row {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease;
    border-radius: 8px;
    padding-left: 10px; margin-left: -10px;
    padding-right: 10px; margin-right: -10px;
}
.supporter-row:hover {
    background: rgba(255, 255, 255, 0.025);
}
.supporter-row:last-child { border-bottom: 0; }
.supporter-row .rank {
    background: linear-gradient(135deg, var(--accent-3), var(--accent-2));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: 1px;
    min-width: 28px;
}
.supporter-row:nth-child(1) .rank { font-size: 15px; }
.supporter-row:nth-child(2) .rank { opacity: 0.85; }
.supporter-row:nth-child(3) .rank { opacity: 0.7; }
.supporter-row b {
    font-variant-numeric: tabular-nums;
    background: linear-gradient(100deg, #fff, var(--accent-3));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* QR / payment panel */
.tip-focused .qr {
    border: 10px solid #fff !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 0 0 1px var(--surface-border-strong), 0 20px 60px -20px rgba(0, 0, 0, 0.9), var(--glow-gold);
}
#payment summary {
    border: 1px solid var(--surface-border) !important;
    background: rgba(255, 255, 255, 0.025);
    border-radius: var(--radius-sm) !important;
    transition: all 0.2s ease;
}
#payment summary:hover {
    border-color: rgba(255, 70, 96, 0.4) !important;
    background: rgba(255, 70, 96, 0.05);
}
.payment-apps a {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)) !important;
    border: 1px solid var(--surface-border) !important;
    border-radius: 12px !important;
    font-weight: 700;
    transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.payment-apps a:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 70, 96, 0.5) !important;
    box-shadow: 0 10px 25px -10px rgba(255, 70, 96, 0.5);
}

/* Notices / errors */
.notice {
    background: linear-gradient(135deg, rgba(255, 70, 96, 0.1), rgba(255, 70, 96, 0.03)) !important;
    border: 1px solid rgba(255, 70, 96, 0.3) !important;
    border-left: 3px solid var(--accent) !important;
    border-radius: var(--radius-sm) !important;
    color: #ffd4dc !important;
    backdrop-filter: blur(10px);
}
.error {
    color: #ff8b9d !important;
    font-weight: 600;
}

/* Pending / success text */
.pending {
    background: linear-gradient(100deg, var(--accent-mint), #a5f3cf);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Footer */
footer {
    border-top: 1px solid var(--surface-border) !important;
    color: var(--ink-mute) !important;
    font-size: 11px !important;
    letter-spacing: 1.5px !important;
}

/* -------- Admin dashboard polish -------- */
.admin-header {
    background: rgba(13, 14, 20, 0.72) !important;
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--surface-border) !important;
}
nav {
    background: rgba(10, 11, 16, 0.6) !important;
    border-right: 1px solid var(--surface-border) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
nav button {
    color: var(--ink-dim);
    padding: 10px 14px !important;
    border-radius: 10px !important;
    transition: all 0.18s ease;
    font-weight: 600;
}
nav button:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    color: var(--ink) !important;
}
nav button.active {
    background: linear-gradient(135deg, rgba(255, 70, 96, 0.2), rgba(255, 138, 61, 0.1)) !important;
    color: #fff !important;
    border-left: 3px solid var(--accent) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.panel {
    background: var(--surface) !important;
    border: 1px solid var(--surface-border) !important;
    border-radius: var(--radius-md) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-md);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.panel:hover {
    border-color: var(--surface-border-strong) !important;
}

.metric {
    background: linear-gradient(135deg, rgba(28, 30, 42, 0.7), rgba(18, 20, 32, 0.9)) !important;
    border: 1px solid var(--surface-border) !important;
    border-radius: var(--radius-md) !important;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.metric::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0; transition: opacity 0.3s ease;
}
.metric:hover {
    transform: translateY(-2px);
    border-color: var(--surface-border-strong) !important;
    box-shadow: var(--shadow-lg);
}
.metric:hover::before { opacity: 1; }
.metric span { color: var(--ink-mute) !important; font-weight: 600; letter-spacing: 0.5px; }
.metric b {
    background: linear-gradient(135deg, #fff, var(--accent-3));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -0.03em !important;
    font-variant-numeric: tabular-nums;
}
.metric.accent {
    background: linear-gradient(135deg, rgba(255, 70, 96, 0.18), rgba(32, 25, 31, 0.9)) !important;
    border-color: rgba(255, 70, 96, 0.3) !important;
}

/* Tables */
table th {
    color: var(--ink-mute) !important;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 10.5px;
    padding: 14px 12px !important;
    border-bottom: 1px solid var(--surface-border) !important;
}
table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
    padding: 14px 12px !important;
}
table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.badge {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--surface-border) !important;
    border-radius: 6px !important;
    padding: 4px 9px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    font-size: 10.5px !important;
    text-transform: uppercase;
}
.badge.VERIFIED, .badge.MANUAL {
    background: linear-gradient(135deg, rgba(74, 212, 163, 0.2), rgba(74, 212, 163, 0.05)) !important;
    border-color: rgba(74, 212, 163, 0.4) !important;
    color: #a5f3cf !important;
}
.badge.PENDING {
    background: linear-gradient(135deg, rgba(255, 209, 102, 0.2), rgba(255, 209, 102, 0.05)) !important;
    border-color: rgba(255, 209, 102, 0.4) !important;
    color: #ffe9ad !important;
}
.badge.REFUNDED, .badge.REJECTED {
    background: linear-gradient(135deg, rgba(255, 70, 96, 0.18), rgba(255, 70, 96, 0.04)) !important;
    border-color: rgba(255, 70, 96, 0.4) !important;
    color: #ffb8c3 !important;
}
.badge.EXPIRED {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--ink-mute) !important;
}

/* Progress bar (goals) */
.progress {
    background: rgba(255, 255, 255, 0.06) !important;
    border-radius: 999px !important;
    height: 12px !important;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}
.progress i {
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3)) !important;
    border-radius: 999px !important;
    box-shadow: 0 0 20px rgba(255, 70, 96, 0.5);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
}
.progress i::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: ace-shimmer 2.4s linear infinite;
}
@keyframes ace-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Toast */
.toast {
    background: var(--surface-strong) !important;
    border: 1px solid var(--surface-border-strong) !important;
    border-left: 3px solid var(--accent) !important;
    border-radius: var(--radius-md) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-xl);
    animation: ace-toast-in 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
@keyframes ace-toast-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Code / tokens */
.code {
    background: rgba(10, 11, 16, 0.85) !important;
    border: 1px solid var(--surface-border) !important;
    border-radius: var(--radius-sm) !important;
    font-family: var(--font-mono) !important;
    color: #ffe9ad;
}

/* Login page */
.login {
    background: var(--surface) !important;
    border: 1px solid var(--surface-border-strong);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-xl);
}

/* Chart bars */
.chart-bar {
    background: linear-gradient(180deg, var(--accent), var(--accent-2)) !important;
    border-radius: 6px 6px 0 0 !important;
    box-shadow: 0 0 15px rgba(255, 70, 96, 0.3);
}

/* -------- Overlays (OBS browser source) -------- */
/* Alert cards get a premium glass look with a subtle gold rim */
body[data-kind="alert"] #stage > * {
    position: relative;
}
body[data-kind="alert"] .widget {
    background: var(--surface-strong) !important;
    border: 1px solid rgba(255, 209, 102, 0.3) !important;
    border-radius: var(--radius-xl) !important;
    padding: 28px 32px !important;
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 100px -20px rgba(255, 209, 102, 0.4);
}
body[data-kind="goal"] .widget.bar .track {
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 999px !important;
    overflow: hidden;
}
body[data-kind="goal"] .widget.bar .fill {
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3)) !important;
    box-shadow: 0 0 30px rgba(255, 70, 96, 0.6);
    position: relative;
}

/* -------- Dialogs / modals -------- */
.dialog {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(0, 0, 0, 0.6) !important;
}
.dialog .panel {
    animation: ace-modal-in 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
@keyframes ace-modal-in {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* -------- Confetti canvas -------- */
#ace-confetti {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
}

/* -------- Scrollbar polish -------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.14);
    background-clip: padding-box;
}

/* ============ v1.5.1 Premium Polish ============
   End-user visible upgrades: hero avatar aura, section stagger-in, micro-interactions,
   SVG noise overlay, skeleton loaders, tier badges, celebration success screen. */

/* --- Noise/grain overlay to kill gradient banding --- */
.tip-focused::before {
    content: "";
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.08;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.65'/></svg>");
}
.tip-focused > * { position: relative; z-index: 2; }

/* --- Hero avatar aura: slow pulsing radial glow behind the mark/image --- */
.tip-focused .creator { position: relative; }
.tip-focused .creator::before {
    content: "";
    position: absolute;
    top: -40px; left: 50%;
    width: 320px; height: 320px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255, 70, 96, 0.22) 0%, rgba(122, 92, 255, 0.14) 35%, transparent 65%);
    filter: blur(28px);
    animation: hero-aura 8s cubic-bezier(.4,0,.6,1) infinite alternate;
    pointer-events: none;
    z-index: 0;
}
.tip-focused .creator > * { position: relative; z-index: 1; }
@keyframes hero-aura {
    0% { opacity: 0.6; transform: translateX(-50%) scale(0.9); }
    100% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}
.tip-focused .creator-mark,
.tip-focused #avatar {
    animation: avatar-breath 6s ease-in-out infinite;
    will-change: transform;
}
@keyframes avatar-breath {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.015); }
}
.tip-focused #avatar {
    border-radius: 24px;
    width: 96px; height: 96px;
    object-fit: cover;
    border: 2px solid rgba(255, 209, 102, 0.4);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.3), 0 20px 50px rgba(255, 70, 96, 0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* --- Section stagger-in on load --- */
.tip-focused .creator,
.tip-focused .tip-card,
.tip-focused .supporters {
    animation: section-in 0.7s cubic-bezier(.2,.9,.3,1) both;
}
.tip-focused .tip-card { animation-delay: 0.08s; }
.tip-focused .supporters { animation-delay: 0.16s; }
@keyframes section-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Amount chip bounce + CTA depress micro-interactions --- */
.tip-focused .presets button {
    transition: transform 0.18s cubic-bezier(.4,0,.2,1), background 0.2s, box-shadow 0.2s, color 0.2s, border-color 0.2s;
}
.tip-focused .presets button:active:not(:disabled) {
    transform: translateY(1px) scale(0.96);
}
.tip-focused .primary {
    transition: transform 0.14s cubic-bezier(.4,0,.2,1), box-shadow 0.2s, filter 0.2s;
    will-change: transform;
}
.tip-focused .primary:active:not(:disabled) {
    transform: translateY(2px) scale(0.985);
    filter: brightness(0.95);
    box-shadow: 0 2px 8px rgba(0,0,0,0.5), inset 0 2px 6px rgba(0,0,0,0.25);
}
.tip-focused .voice-card:active,
.tip-focused .sound-choices button:active,
.tip-focused .soundboard-tile:active:not(:disabled) {
    transform: translateY(1px) scale(0.98);
}

/* --- Supporter tier badge that lights up with the current amount --- */
.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    margin: 10px 0 0;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(255,70,96,0.12), rgba(122,92,255,0.1));
    border: 1px solid var(--surface-border);
    color: var(--ink-dim);
    transition: all 0.35s cubic-bezier(.4,0,.2,1);
    font-variant-numeric: tabular-nums;
}
.tier-badge .tier-icon { font-size: 14px; filter: grayscale(0.8); transition: filter 0.3s; }
.tier-badge.tier-1 { color: #c5a97a; border-color: rgba(197,169,122,0.45); background: linear-gradient(135deg, rgba(197,169,122,0.12), rgba(197,169,122,0.04)); }
.tier-badge.tier-1 .tier-icon { filter: none; }
.tier-badge.tier-2 { color: #e0e0e0; border-color: rgba(224,224,224,0.45); background: linear-gradient(135deg, rgba(224,224,224,0.14), rgba(224,224,224,0.04)); box-shadow: 0 4px 14px rgba(224,224,224,0.1); }
.tier-badge.tier-2 .tier-icon { filter: none; }
.tier-badge.tier-3 {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent-3) 0%, var(--accent-2) 45%, var(--accent) 100%);
    box-shadow: 0 6px 20px rgba(255,70,96,0.35), 0 0 0 1px rgba(255,209,102,0.4);
    animation: tier-pulse 2.4s ease-in-out infinite;
}
.tier-badge.tier-3 .tier-icon { filter: drop-shadow(0 0 8px rgba(255,209,102,0.8)); }
@keyframes tier-pulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(255,70,96,0.35), 0 0 0 1px rgba(255,209,102,0.4); }
    50% { box-shadow: 0 10px 30px rgba(255,70,96,0.55), 0 0 0 1px rgba(255,209,102,0.7); }
}

/* --- Skeleton loader: shimmer rows for Top supporters while loading --- */
.skeleton-row {
    display: flex; gap: 12px; align-items: center;
    padding: 12px 14px;
    margin-bottom: 8px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--surface-border);
}
.skeleton-bar {
    height: 14px;
    border-radius: 99px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.04) 100%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.6s linear infinite;
}
.skeleton-bar.rank { width: 24px; height: 24px; border-radius: 6px; }
.skeleton-bar.name { flex: 1 1 100px; max-width: 180px; }
.skeleton-bar.amount { width: 70px; }
@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- Celebration success screen (post-payment VERIFIED state) --- */
.celebration {
    position: relative;
    text-align: center;
    padding: 40px 24px;
}
.celebration::before {
    content: "";
    position: absolute; inset: -40px -24px;
    background: radial-gradient(circle at center, rgba(255, 209, 102, 0.18), transparent 60%);
    pointer-events: none;
    animation: celebration-glow 2.4s ease-out;
}
@keyframes celebration-glow {
    0% { opacity: 0; transform: scale(0.6); }
    40% { opacity: 1; }
    100% { opacity: 0; transform: scale(1.4); }
}
.celebration .celebrate-ring {
    width: 92px; height: 92px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 44px;
    background: linear-gradient(135deg, var(--accent-mint) 0%, var(--accent-3) 100%);
    box-shadow: 0 0 0 8px rgba(74,212,163,0.12), 0 10px 40px rgba(74,212,163,0.4);
    animation: celebrate-pop 0.6s cubic-bezier(.3,1.6,.4,1) both;
    position: relative;
    z-index: 2;
}
@keyframes celebrate-pop {
    0% { transform: scale(0.1) rotate(-15deg); opacity: 0; }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}
.celebration h2 {
    background: linear-gradient(100deg, #fff 0%, var(--accent-3) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 8px;
    font-size: clamp(26px, 3.5vw, 36px);
}
.celebration .receipt-card {
    display: inline-block;
    margin: 20px auto;
    padding: 16px 24px;
    background: rgba(10, 11, 18, 0.6);
    border: 1px dashed rgba(255, 209, 102, 0.35);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-dim);
    letter-spacing: 1px;
}
.celebration .receipt-card b {
    display: block;
    color: var(--accent-3);
    font-size: 14px;
    margin-top: 4px;
    letter-spacing: 0.5px;
    font-weight: 700;
}
.celebration .share-row {
    display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px;
}

/* --- Floating confetti burst anchor for VERIFIED --- */
.celebration-confetti {
    pointer-events: none;
    position: fixed; inset: 0;
    z-index: 999;
}

/* -------- Reduced motion -------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* -------- Responsive tightening (mobile viewers tipping on phone) -------- */
@media (max-width: 700px) {
    .tip-focused .tip-card { padding: 24px; border-radius: 20px; }
    .tip-focused .amount-input input { font-size: 28px !important; }
    .tip-focused .creator h1 { font-size: 28px; }
    .tip-focused .creator-mark { width: 76px; height: 76px; line-height: 74px; }
    .primary { padding: 15px 18px !important; }
    .soundboard-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .soundboard-pills { padding-bottom: 4px; }
}

/* ============ Soundboard (v1.5.0) ============
   Streamer-curated meme/SFX gallery on the public tip page. Grid of glass tiles with
   per-sound min-tip, category pills, search, favorites, locked state, preview-play.
   The whole surface uses the same tokens as .tip-card so it visually belongs. */

.soundboard-section {
    margin-top: 24px;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(28,30,42,.76), rgba(18,20,34,.90));
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.04);
    position: relative;
    overflow: hidden;
}
.soundboard-section::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(60% 50% at 50% 0%, rgba(255,70,96,.08), transparent 60%);
    pointer-events: none;
}
.soundboard-section .section-line h3 { display: flex; align-items: center; gap: 10px; }
.pill-tag {
    display: inline-block; padding: 2px 10px; font-size: 10px; letter-spacing: 1.2px;
    text-transform: uppercase; font-weight: 700;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff; border-radius: 99px;
    box-shadow: 0 2px 10px rgba(255,70,96,.35);
}
#soundboard-counter { font-size: 11px; color: var(--ink-dim); letter-spacing: 1px; text-transform: uppercase; }

.soundboard-controls {
    display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
    margin: 14px 0 10px;
}
.soundboard-search {
    flex: 1 1 180px;
    padding: 11px 14px;
    background: rgba(10,11,18,.65);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .15s, background .15s;
}
.soundboard-search:focus { border-color: var(--accent); background: rgba(10,11,18,.9); }

.soundboard-pills {
    display: flex; gap: 8px; flex-wrap: wrap;
    max-width: 100%;
}
.soundboard-pills .pill {
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--surface-border);
    border-radius: 99px;
    color: var(--ink-dim);
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}
.soundboard-pills .pill:hover { color: var(--ink); border-color: var(--surface-border-strong); background: rgba(255,255,255,.07); }
.soundboard-pills .pill.selected {
    color: #fff;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-cool) 100%);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(255,70,96,.3);
}

/* Tier meter — live progress bar showing what the current amount unlocks */
.tier-meter {
    display: flex; align-items: center; gap: 10px;
    margin: 8px 0 14px;
    font-size: 12px; color: var(--ink-dim);
}
.tier-bar {
    flex: 1 1 auto;
    height: 6px;
    background: rgba(255,255,255,.06);
    border-radius: 99px;
    overflow: hidden;
}
.tier-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-mint) 0%, var(--accent-3) 60%, var(--accent) 100%);
    border-radius: 99px;
    transition: width .4s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 0 10px rgba(74,212,163,.4);
}
.tier-label { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Grid */
.soundboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    max-height: 380px;
    overflow-y: auto;
    padding: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}
.soundboard-grid::-webkit-scrollbar { width: 6px; }
.soundboard-grid::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 99px; }

/* Tile */
.soundboard-tile {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-items: center;
    gap: 6px;
    padding: 14px 10px 12px;
    min-height: 118px;
    text-align: center;
    background: linear-gradient(160deg, rgba(28,30,42,.65), rgba(16,18,28,.85));
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    color: var(--ink);
    cursor: pointer;
    overflow: hidden;
    transition: transform .18s cubic-bezier(.4,0,.2,1), border-color .18s, box-shadow .18s, background .18s;
}
.soundboard-tile:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: var(--accent);
    background: linear-gradient(160deg, rgba(42,24,34,.75), rgba(20,16,30,.95));
    box-shadow: 0 10px 24px rgba(0,0,0,.5), 0 0 0 1px rgba(255,70,96,.25);
}
.soundboard-tile.selected {
    border-color: transparent;
    background: linear-gradient(160deg, rgba(255,70,96,.22), rgba(122,92,255,.18));
    box-shadow: 0 0 0 2px var(--accent-3), 0 10px 30px rgba(255,70,96,.3);
}
.soundboard-tile.locked {
    opacity: .4;
    cursor: not-allowed;
    filter: saturate(.5);
}
.soundboard-tile.locked .tile-emoji { filter: grayscale(1); }
.soundboard-tile.locked:hover { transform: none; }
.soundboard-tile .tile-emoji {
    font-size: 32px;
    line-height: 1;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
}
.soundboard-tile .tile-name {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .2px;
    color: var(--ink);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.soundboard-tile .tile-min {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .5px;
    color: var(--accent-3);
    padding: 2px 8px;
    background: rgba(255,209,102,.1);
    border-radius: 99px;
    display: inline-block;
    width: fit-content;
    justify-self: center;
    font-variant-numeric: tabular-nums;
}
.soundboard-tile .tile-fav {
    position: absolute; top: 6px; right: 8px;
    font-size: 15px;
    cursor: pointer;
    color: var(--accent-3);
    opacity: .6;
    transition: opacity .15s, transform .15s;
    user-select: none;
}
.soundboard-tile .tile-fav:hover { opacity: 1; transform: scale(1.2); }
.soundboard-tile .tile-play {
    position: absolute; top: 6px; left: 8px;
    font-size: 12px;
    width: 22px; height: 22px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.35);
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity .15s, background .15s;
}
.soundboard-tile:hover .tile-play { opacity: 1; }
.soundboard-tile .tile-play:hover { background: var(--accent); color: #fff; }

/* Playing — animated equalizer bars overlay */
.soundboard-tile.playing::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(74,212,163,.08) 70%, transparent);
    animation: sb-sweep 1.4s linear infinite;
    pointer-events: none;
}
@keyframes sb-sweep { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.soundboard-tile.playing .tile-play { opacity: 1; background: var(--accent-mint); color: #0a0f0d; }

.soundboard-clear {
    display: block;
    margin: 10px auto 0;
    font-size: 12px;
}

/* Admin table enhancements */
.sb-emoji-cell { font-size: 22px; }
.sb-audio-cell { display: flex; flex-direction: column; gap: 6px; min-width: 180px; }
.sb-audio-cell audio { max-width: 180px; height: 32px; }
