/* ============================================================
   KAZ DONAT — "DALA NEON" DESIGN SYSTEM
   Steppe-at-dusk identity: deep green-black ink, Kazakh-sky
   turquoise primary, hot gold signal. Unbounded / Manrope /
   JetBrains Mono (full Cyrillic + Kazakh coverage).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
    /* Core palette */
    --ink-0: hsl(170, 24%, 3%);
    --ink-1: hsl(168, 20%, 5%);
    --ink-2: hsl(166, 18%, 8%);
    --tq: hsl(168, 92%, 48%);
    --tq-soft: hsl(168, 70%, 62%);
    --tq-deep: hsl(152, 75%, 34%);
    --gold: hsl(43, 96%, 56%);
    --amber: hsl(28, 92%, 52%);
    --coral: hsl(8, 86%, 60%);

    /* Legacy token mapping — dynamically injected markup depends
       on these names, so they stay and simply point at the new palette */
    --bg-color: var(--ink-0);
    --card-bg: hsla(166, 20%, 7%, 0.72);
    --card-border: hsla(165, 40%, 88%, 0.07);
    --accent-purple: var(--tq);
    --accent-purple-glow: hsla(168, 92%, 48%, 0.14);
    --accent-gold: var(--gold);
    --accent-gold-glow: hsla(43, 96%, 56%, 0.14);
    --accent-gradient: linear-gradient(135deg, hsl(160, 88%, 42%), hsl(160, 88%, 30%));
    --accent-gold-gradient: linear-gradient(135deg, hsl(160, 88%, 38%), hsl(160, 88%, 26%));
    --text-primary: hsl(165, 30%, 96%);
    --text-secondary: hsl(165, 10%, 70%);
    --text-muted: hsl(165, 7%, 45%);
    --success: hsl(152, 70%, 45%);
    --danger: var(--coral);
    --shadow-premium: 0 24px 50px -18px rgba(0, 0, 0, 0.85);
    --shadow-glow: 0 0 34px -6px hsla(168, 92%, 48%, 0.22);

    /* Type */
    --font-display: 'Unbounded', 'Manrope', sans-serif;
    --font-body: 'Manrope', 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.4, 0.44, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    background-image:
        radial-gradient(ellipse 60% 45% at 12% -5%, hsla(168, 92%, 48%, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 95% 8%, hsla(43, 96%, 56%, 0.05) 0%, transparent 55%),
        radial-gradient(ellipse 70% 55% at 50% 110%, hsla(152, 75%, 34%, 0.06) 0%, transparent 60%);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Fine film grain over everything — the "expensive print" texture */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.5;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

::selection {
    background: hsla(168, 92%, 48%, 0.32);
    color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: hsla(165, 30%, 60%, 0.14); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--tq-deep); }

/* ============================================================
   PRIMITIVES — cards, inputs, buttons
   ============================================================ */

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-radius: 18px;
    padding: 28px;
    box-shadow: var(--shadow-premium), inset 0 1px 0 0 hsla(165, 40%, 90%, 0.05);
    transition: border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out);
    position: relative;
}

.card:hover {
    border-color: hsla(168, 92%, 48%, 0.24);
    box-shadow: var(--shadow-premium), 0 12px 34px -14px hsla(168, 92%, 48%, 0.2), inset 0 1px 0 0 hsla(165, 40%, 90%, 0.07);
}

.card h2, .card h3 {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid hsla(165, 40%, 88%, 0.06);
    padding-bottom: 12px;
}

.card h2 lucide-icon, .card h2 i, .card h2 svg,
.card h3 lucide-icon, .card h3 i, .card h3 svg {
    color: var(--tq);
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

/* Inputs */
input, select, textarea {
    width: 100%;
    background: hsla(170, 24%, 3%, 0.75);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    outline: none;
    margin-bottom: 15px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.35);
}

input[type="number"] {
    font-family: var(--font-mono);
}

input::placeholder { color: var(--text-muted); }

input:focus, select:focus, textarea:focus {
    border-color: hsla(168, 92%, 48%, 0.6);
    box-shadow: 0 0 0 3px hsla(168, 92%, 48%, 0.12), inset 0 2px 5px rgba(0, 0, 0, 0.35);
    background: hsla(170, 24%, 3%, 0.95);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2399a8a3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

input[type="color"] {
    padding: 4px;
    cursor: pointer;
    background: hsla(170, 24%, 3%, 0.75);
}

/* Modern Cabinet Buttons (KzDon Style) */
.btn, button.btn {
    background: linear-gradient(135deg, #0debb4 0%, #0db89b 100%);
    color: #07090e !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 11px 22px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 800;
    font-family: var(--font-body);
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(13, 235, 180, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    text-decoration: none;
    user-select: none;
}

button:not(.btn):not(.btn-gold):not(.copy-url-btn):not(.reset-btn) {
    font-family: var(--font-body);
    color: #ffffff;
}

/* TTS Voice Buttons (High Contrast & Modern Glow) */
.tts-voice-btn {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 10px 8px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
    text-align: center !important;
    box-shadow: none !important;
    user-select: none;
}

.tts-voice-btn span {
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.tts-voice-btn:hover {
    background: rgba(13, 235, 180, 0.1) !important;
    border-color: rgba(13, 235, 180, 0.45) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(13, 235, 180, 0.2) !important;
}

.tts-voice-btn:hover span {
    color: #0debb4 !important;
}

.tts-voice-btn.active {
    background: linear-gradient(135deg, rgba(13, 235, 180, 0.2) 0%, rgba(6, 182, 212, 0.14) 100%) !important;
    border: 1.5px solid #0debb4 !important;
    box-shadow: 0 0 16px rgba(13, 235, 180, 0.35) !important;
    transform: translateY(-1px);
}

.tts-voice-btn.active span {
    color: #0debb4 !important;
    font-weight: 800;
}

button:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 235, 180, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    filter: brightness(1.08);
}

button:active, .btn:active {
    transform: translateY(1px) scale(0.98);
}

button:disabled, .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

button:focus-visible, .btn:focus-visible, input:focus-visible {
    outline: 2px solid var(--tq);
    outline-offset: 2px;
}

/* Premium Gold Action Button (KzDon Style) */
.btn-gold, button.btn-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}
.btn-gold:hover, button.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
    filter: brightness(1.1);
}
.btn-gold:active, button.btn-gold:active, button:active, .btn:active, .copy-url-btn:active {
    transform: scale(0.93) translateY(2px) !important;
    filter: brightness(0.9) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
}

/* Copy URL Action Button (Cyan / Tech Glow) */
.copy-url-btn, button.copy-url-btn {
    background: linear-gradient(135deg, rgba(13, 235, 180, 0.12) 0%, rgba(6, 182, 212, 0.16) 100%) !important;
    border: 1.5px solid rgba(13, 235, 180, 0.45) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(13, 235, 180, 0.15) !important;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.copy-url-btn:hover, button.copy-url-btn:hover {
    background: linear-gradient(135deg, rgba(13, 235, 180, 0.22) 0%, rgba(6, 182, 212, 0.26) 100%) !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 6px 20px rgba(13, 235, 180, 0.35) !important;
    transform: translateY(-2px);
    color: #fff !important;
}

/* Reset / Danger Action Button */
.reset-btn, button.reset-btn {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(220, 38, 38, 0.15) 100%) !important;
    border: 1.5px solid rgba(239, 68, 68, 0.35) !important;
    color: #ff6b6b !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15) !important;
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.reset-btn:hover, button.reset-btn:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(220, 38, 38, 0.3) 100%) !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.3) !important;
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* Ghost / outline */
.btn-ghost, .navbar-btn-outline {
    background: hsla(165, 40%, 90%, 0.02);
    border: 1px solid hsla(165, 40%, 88%, 0.14);
    color: var(--text-primary);
    box-shadow: none;
    padding: 11px 22px;
}
.btn-ghost:hover, .navbar-btn-outline:hover {
    background: hsla(165, 40%, 90%, 0.06);
    border-color: hsla(168, 92%, 48%, 0.5);
    box-shadow: 0 0 20px -8px hsla(168, 92%, 48%, 0.35);
    transform: translateY(-2px);
}

/* Landing-specific hard overrides kept for legacy markup */
.navbar-btn-outline.btn {
    background: hsla(165, 40%, 90%, 0.02) !important;
    border: 1px solid hsla(165, 40%, 88%, 0.14) !important;
    color: var(--text-primary) !important;
    box-shadow: none !important;
}
.navbar-btn-outline.btn:hover {
    background: hsla(165, 40%, 90%, 0.06) !important;
    border-color: hsla(168, 92%, 48%, 0.5) !important;
}

/* Destructive */
.reset-btn {
    background: hsla(8, 86%, 60%, 0.07);
    border: 1px solid hsla(8, 86%, 60%, 0.22);
    color: hsl(8, 90%, 68%);
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
}
.reset-btn:hover {
    background: var(--coral);
    border-color: var(--coral);
    color: #fff;
    box-shadow: 0 6px 18px -6px hsla(8, 86%, 60%, 0.5);
}

/* Copy widget URL */
.copy-url-btn {
    background: hsla(165, 40%, 90%, 0.025);
    border: 1px solid hsla(165, 40%, 88%, 0.08);
    color: var(--text-secondary);
    width: 100%;
    box-shadow: none;
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 600;
}
.copy-url-btn:hover {
    background: hsla(168, 92%, 48%, 0.07);
    border-color: hsla(168, 92%, 48%, 0.45);
    color: #fff;
    box-shadow: none;
    transform: none;
}

/* File upload */
.file-upload-wrapper {
    position: relative;
    width: 100%;
}

.file-upload-btn {
    width: 100%;
    background: hsla(165, 40%, 90%, 0.015);
    border: 1px dashed hsla(165, 40%, 88%, 0.16);
    color: var(--text-secondary);
    padding: 14px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.file-upload-btn:hover {
    background: hsla(168, 92%, 48%, 0.05);
    border-color: hsla(168, 92%, 48%, 0.55);
    color: #fff;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 15px;
}
.row input { margin-bottom: 0; }

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.musicBox {
    margin-top: 20px;
    background: hsla(170, 24%, 3%, 0.4);
    border: 1px solid hsla(165, 40%, 88%, 0.05);
    border-radius: 14px;
    padding: 18px;
}

/* ============================================================
   LEADERBOARDS & HISTORY
   ============================================================ */

#topList, #topMonthList {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.top-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: hsla(170, 24%, 3%, 0.6);
    border: 1px solid hsla(165, 40%, 88%, 0.05);
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.25s var(--ease-out), background 0.25s ease;
}

.top-item:hover {
    transform: translateX(4px);
    background: hsla(170, 24%, 5%, 0.9);
}

.top-name {
    flex-grow: 1;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 10px;
    color: var(--text-primary);
}

.top-amount {
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--tq);
    white-space: nowrap;
}

/* Podium ranks: gold / silver / bronze */
#topList .top-item:nth-child(1), #topMonthList .top-item:nth-child(1) {
    border-left: 3px solid var(--gold);
    background: linear-gradient(90deg, hsla(43, 96%, 56%, 0.07), transparent 55%), hsla(170, 24%, 3%, 0.6);
}
#topList .top-item:nth-child(1) .top-name, #topList .top-item:nth-child(1) .top-amount,
#topMonthList .top-item:nth-child(1) .top-name, #topMonthList .top-item:nth-child(1) .top-amount { color: var(--gold); }

#topList .top-item:nth-child(2), #topMonthList .top-item:nth-child(2) {
    border-left: 3px solid hsl(200, 15%, 75%);
}
#topList .top-item:nth-child(2) .top-amount,
#topMonthList .top-item:nth-child(2) .top-amount { color: hsl(200, 15%, 78%); }

#topList .top-item:nth-child(3), #topMonthList .top-item:nth-child(3) {
    border-left: 3px solid hsl(26, 60%, 46%);
}
#topList .top-item:nth-child(3) .top-amount,
#topMonthList .top-item:nth-child(3) .top-amount { color: hsl(26, 80%, 60%); }

.top-title-dash {
    font-family: var(--font-display) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.14em !important;
    color: var(--text-primary) !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 12px !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 8px;
    margin-top: 15px;
}

.history-item {
    background: hsla(165, 40%, 90%, 0.015);
    border: 1px solid hsla(165, 40%, 88%, 0.04);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.history-item:hover {
    background: hsla(165, 40%, 90%, 0.03);
    border-color: hsla(165, 40%, 88%, 0.09);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.history-name { color: #fff; font-size: 14px; }

.history-amount {
    color: var(--tq);
    font-weight: 700;
    font-family: var(--font-mono);
    font-size: 13px;
    background: hsla(168, 92%, 48%, 0.1);
    border: 1px solid hsla(168, 92%, 48%, 0.16);
    padding: 2px 9px;
    border-radius: 7px;
}

.history-message {
    color: var(--text-secondary);
    font-style: italic;
    background: rgba(0, 0, 0, 0.18);
    padding: 8px 12px;
    border-radius: 8px;
    border-left: 2px solid var(--tq-deep);
    margin-top: 2px;
    font-size: 13px;
}

.history-time {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    align-self: flex-end;
}

/* ============================================================
   ALERT POPUP (dashboard preview + OBS)
   ============================================================ */

#alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: hsla(170, 24%, 3%, 0.94);
    border: 1px solid hsla(168, 92%, 48%, 0.3);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 60px -12px hsla(168, 92%, 48%, 0.4);
    border-radius: 24px;
    padding: 35px;
    text-align: center;
    width: 480px;
    max-width: 95vw;
    z-index: 10000;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    animation: alertBounce 0.5s var(--ease-spring);
}

@keyframes alertBounce {
    0% { transform: translate(-50%, -50%) scale(0.85); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

#donateGif {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

#donatorName {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #ffffff;
}

#donateAmount {
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 0 24px hsla(43, 96%, 56%, 0.35);
}

#donateMessage {
    font-size: 19px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

/* ============================================================
   DASHBOARD SHELL
   ============================================================ */

body.dashboard-body {
    padding: 0 !important;
    display: block !important;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.sidebar {
    width: 264px;
    background: hsla(170, 24%, 3%, 0.92);
    border-right: 1px solid var(--card-border);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding: 26px 18px 20px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.sidebar-brand {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #fff;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px;
}

.sidebar-brand lucide-icon, .sidebar-brand i, .sidebar-brand svg {
    width: 20px;
    height: 20px;
    color: var(--tq);
    filter: drop-shadow(0 0 8px hsla(168, 92%, 48%, 0.6));
    flex-shrink: 0;
}

.sidebar-user {
    padding: 12px;
    border: 1px solid hsla(165, 40%, 88%, 0.06);
    background: hsla(165, 40%, 90%, 0.02);
    border-radius: 12px;
    margin-bottom: 18px;
}

.sidebar-username {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    display: block;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-sub {
    font-size: 10.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: block;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 4px;
}

.menu-group-label {
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--text-muted);
    padding: 16px 12px 7px;
    user-select: none;
}
.sidebar-menu .menu-group-label:first-child { padding-top: 4px; }

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    position: relative;
}

.menu-item i, .menu-item lucide-icon, .menu-item svg {
    width: 17px;
    height: 17px;
    opacity: 0.75;
    flex-shrink: 0;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.menu-item:hover {
    background: hsla(165, 40%, 90%, 0.04);
    color: #fff;
}

.menu-item.active {
    background: linear-gradient(90deg, hsla(168, 92%, 48%, 0.13), hsla(168, 92%, 48%, 0.03));
    color: #fff;
}

.menu-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 3px;
    border-radius: 3px;
    background: var(--tq);
    box-shadow: 0 0 10px hsla(168, 92%, 48%, 0.7);
}

.menu-item.active i, .menu-item.active lucide-icon, .menu-item.active svg {
    color: var(--tq);
    opacity: 1;
}

.sidebar-footer {
    padding-top: 14px;
    border-top: 1px solid hsla(165, 40%, 88%, 0.06);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sidebar-footer button { width: 100%; }

.main-content {
    margin-left: 264px;
    flex-grow: 1;
    padding: 36px 40px 60px;
    max-width: 1220px;
    width: calc(100% - 264px);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: tabIn 0.4s var(--ease-out);
}

@keyframes tabIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-header {
    margin-bottom: 26px;
    border-bottom: 1px solid hsla(165, 40%, 88%, 0.06);
    padding-bottom: 16px;
}

.page-header h2 {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header h2 i, .page-header h2 svg {
    color: var(--tq);
    width: 20px;
    height: 20px;
}

.page-header p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
    max-width: 70ch;
}

/* Quick-stat strip (dashboard overview) */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 26px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s var(--ease-out);
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--tq), transparent 70%);
    opacity: 0.6;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: hsla(168, 92%, 48%, 0.25);
}

.stat-card.gold::before { background: linear-gradient(90deg, var(--gold), transparent 70%); }

.stat-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
}
.stat-label i, .stat-label svg { width: 13px; height: 13px; color: var(--tq); }
.stat-card.gold .stat-label i, .stat-card.gold .stat-label svg { color: var(--gold); }

.stat-value {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stat-value small {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Grid helper for two-column card layouts */
.card-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ============================================================
   LANDING PAGE
   ============================================================ */

/* Aurora backdrop */
.aurora {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.aurora span {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.45;
    mix-blend-mode: screen;
    animation: auroraDrift 26s ease-in-out infinite alternate;
}

.aurora span:nth-child(1) {
    width: 55vw; height: 55vw;
    left: -18vw; top: -22vw;
    background: radial-gradient(circle, hsla(168, 92%, 40%, 0.32), transparent 65%);
}
.aurora span:nth-child(2) {
    width: 44vw; height: 44vw;
    right: -14vw; top: -8vw;
    background: radial-gradient(circle, hsla(43, 96%, 50%, 0.16), transparent 65%);
    animation-duration: 32s;
    animation-delay: -8s;
}
.aurora span:nth-child(3) {
    width: 50vw; height: 50vw;
    left: 22vw; bottom: -30vw;
    background: radial-gradient(circle, hsla(152, 75%, 34%, 0.25), transparent 65%);
    animation-duration: 38s;
    animation-delay: -16s;
}

@keyframes auroraDrift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(6vw, 4vh, 0) scale(1.12); }
    100% { transform: translate3d(-4vw, -3vh, 0) scale(0.95); }
}

/* Navbar */
.navbar {
    padding: 16px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: hsla(170, 24%, 3%, 0.55);
    border-bottom: 1px solid hsla(165, 40%, 88%, 0.05);
    transition: background 0.3s ease;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.16em;
    font-family: var(--font-display);
    text-transform: uppercase;
}

.navbar-brand i, .navbar-brand svg {
    color: var(--tq);
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 0 8px hsla(168, 92%, 48%, 0.6));
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lang-switcher {
    display: flex;
    background: hsla(165, 40%, 90%, 0.04);
    border-radius: 9px;
    padding: 2px;
    border: 1px solid hsla(165, 40%, 88%, 0.1);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-mono);
    padding: 6px 11px;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
}

.lang-btn:hover { color: #fff; transform: none; }

.lang-btn.active {
    background: var(--accent-gradient);
    color: hsl(170, 40%, 5%);
    box-shadow: 0 0 12px hsla(168, 92%, 48%, 0.35);
}

/* Hero */
.hero-section {
    padding: 90px 6% 70px;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 56px;
    align-items: center;
    position: relative;
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-tag {
    background: hsla(168, 92%, 48%, 0.08);
    border: 1px solid hsla(168, 92%, 48%, 0.28);
    color: var(--tq-soft);
    font-size: 10.5px;
    font-weight: 600;
    font-family: var(--font-mono);
    padding: 7px 15px;
    border-radius: 30px;
    margin-bottom: 26px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.hero-tag i, .hero-tag svg { width: 13px; height: 13px; }

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(30px, 4.4vw, 52px);
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
    color: #fff;
}

.hero-title .accent-word {
    background: linear-gradient(100deg, var(--tq) 10%, hsl(150, 85%, 55%) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 52ch;
    margin-bottom: 32px;
    line-height: 1.65;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    justify-content: flex-start;
    width: 100%;
    flex-wrap: wrap;
}

/* Hero mini metrics */
.hero-stats {
    display: flex;
    gap: 36px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hero-stat b {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}
.hero-stat b em { font-style: normal; color: var(--tq); }

.hero-stat span {
    font-size: 11px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}

/* Staggered reveal (landing) */
[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
}

[data-reveal].is-in {
    opacity: 1;
    transform: translateY(0);
}

/* Donation ticker marquee */
.ticker-section {
    border-top: 1px solid hsla(165, 40%, 88%, 0.05);
    border-bottom: 1px solid hsla(165, 40%, 88%, 0.05);
    background: hsla(170, 24%, 3%, 0.5);
    overflow: hidden;
    padding: 13px 0;
    position: relative;
}

.ticker-section::before, .ticker-section::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}
.ticker-section::before { left: 0; background: linear-gradient(90deg, var(--ink-0), transparent); }
.ticker-section::after { right: 0; background: linear-gradient(-90deg, var(--ink-0), transparent); }

.ticker-track {
    display: flex;
    gap: 44px;
    width: max-content;
    animation: tickerScroll 36s linear infinite;
}

.ticker-section:hover .ticker-track { animation-play-state: paused; }

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.tick {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.tick i, .tick svg { width: 13px; height: 13px; color: var(--tq); }
.tick b { color: #fff; font-weight: 600; }
.tick .tick-amt { color: var(--gold); font-weight: 700; }

/* Trust logo wall */
.trust-section {
    padding: 34px 6%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.trust-title {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.26em;
    color: var(--text-muted);
    margin-bottom: 22px;
    font-family: var(--font-mono);
}

.logo-wall {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.logo-wall img {
    height: 22px;
    max-width: 100%;
    opacity: 0.3;
    transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s var(--ease-out);
    filter: grayscale(1) brightness(1.6);
}

.logo-wall img:hover {
    opacity: 0.9;
    filter: none;
    transform: translateY(-2px);
}

/* Section headers */
.section-kicker {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--tq);
    text-align: center;
    margin-bottom: 14px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 14px;
    color: #ffffff;
    letter-spacing: 0;
}

.section-desc {
    font-size: 15px;
    color: var(--text-secondary);
    text-align: center;
    margin: 0 auto 46px;
    max-width: 60ch;
    line-height: 1.6;
}

/* How it works */
.how-section {
    padding: 80px 6%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.flow-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 44px 40px;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.flow-step {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.flow-num {
    background: transparent;
    border: 1px solid hsla(168, 92%, 48%, 0.45);
    color: var(--tq);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-display);
    margin-bottom: 16px;
    font-size: 15px;
    box-shadow: 0 0 20px -4px hsla(168, 92%, 48%, 0.35), inset 0 0 12px hsla(168, 92%, 48%, 0.1);
}

.flow-step h4 {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 7px;
}
.flow-step p {
    font-size: 12.5px;
    color: var(--text-secondary);
    max-width: 220px;
    line-height: 1.55;
}

.flow-arrow { color: var(--text-muted); }
.flow-arrow i, .flow-arrow svg { width: 22px; height: 22px; }

/* Features bento */
.features-section {
    padding: 60px 6%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(240px, auto);
    gap: 18px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 30px;
    border-radius: 18px;
    transition: transform 0.4s var(--ease-out), border-color 0.4s ease, box-shadow 0.4s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: hsla(168, 92%, 48%, 0.28);
    box-shadow: var(--shadow-premium), 0 14px 40px -14px hsla(168, 92%, 48%, 0.18);
}

.feature-card:nth-child(1) {
    grid-column: span 2;
    background: linear-gradient(135deg, hsla(168, 92%, 48%, 0.06), hsla(43, 96%, 56%, 0.02)), var(--card-bg);
}

.feature-card:nth-child(4) { grid-column: span 2; }

.bento-decorator-1 {
    position: absolute;
    top: -20px; right: -20px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, hsla(168, 92%, 48%, 0.14) 0%, transparent 70%);
    pointer-events: none;
}

.bento-decorator-2 {
    position: absolute;
    bottom: -40px; right: -40px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, hsla(43, 96%, 56%, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.feature-icon-wrapper {
    background: hsla(168, 92%, 48%, 0.08);
    border: 1px solid hsla(168, 92%, 48%, 0.2);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--tq);
    align-self: flex-start;
}

.feature-icon-wrapper i, .feature-icon-wrapper svg { width: 22px; height: 22px; }

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Simulator card */
.sim-container {
    background: hsla(166, 20%, 6%, 0.85);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-premium), inset 0 1px 0 0 hsla(165, 40%, 90%, 0.04);
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    transform-style: preserve-3d;
    transition: transform 0.2s ease-out, border-color 0.3s ease;
    position: relative;
}

.sim-container:hover { border-color: hsla(168, 92%, 48%, 0.2); }

/* status dot in the sim header */
.live-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--tq);
    box-shadow: 0 0 0 0 hsla(168, 92%, 48%, 0.6);
    animation: livePulse 2s infinite;
    display: inline-block;
}

@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 hsla(168, 92%, 48%, 0.5); }
    70% { box-shadow: 0 0 0 8px hsla(168, 92%, 48%, 0); }
    100% { box-shadow: 0 0 0 0 hsla(168, 92%, 48%, 0); }
}

.sim-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.sim-label {
    font-size: 10px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-family: var(--font-mono);
    font-weight: 600;
}

.sim-screen {
    background: hsl(170, 30%, 2%);
    border: 1px solid hsla(165, 40%, 88%, 0.04);
    height: 230px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image:
        linear-gradient(hsla(168, 92%, 48%, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, hsla(168, 92%, 48%, 0.025) 1px, transparent 1px);
    background-size: 26px 26px;
}

.sim-placeholder {
    color: var(--text-muted);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    padding: 0 20px;
}
.sim-placeholder i, .sim-placeholder svg { width: 30px; height: 30px; opacity: 0.5; }

.sim-alert-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-spring);
    pointer-events: none;
    background: hsla(170, 24%, 3%, 0.85);
}

.sim-alert-overlay.active {
    opacity: 1;
    transform: scale(1);
}

.sim-gif {
    width: 92px;
    height: 92px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 8px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.6);
}

.sim-name {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sim-amount {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--gold);
    margin: 2px 0;
    text-shadow: 0 0 18px hsla(43, 96%, 56%, 0.4);
}

.sim-message {
    font-size: 12.5px;
    color: var(--text-secondary);
    font-style: italic;
    max-width: 85%;
    text-align: center;
}

/* Pricing */
.pricing-section {
    padding: 60px 6% 110px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 26px;
    flex-wrap: wrap;
    margin-top: 10px;
    align-items: stretch;
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px 32px;
    width: 360px;
    max-width: 100%;
    text-align: center;
    position: relative;
    transition: transform 0.4s var(--ease-out), border-color 0.4s ease, box-shadow 0.4s ease;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover { transform: translateY(-6px); }

.pricing-card.popular {
    border-color: hsla(168, 92%, 48%, 0.4);
    box-shadow: 0 24px 60px -20px hsla(168, 92%, 48%, 0.2);
    background: linear-gradient(160deg, hsla(168, 92%, 48%, 0.045), transparent 45%), var(--card-bg);
}

.pricing-card.popular::before {
    content: attr(data-badge);
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    color: hsl(170, 40%, 5%);
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font-mono);
    padding: 5px 16px;
    border-radius: 30px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    box-shadow: 0 6px 16px -4px hsla(168, 92%, 48%, 0.5);
}

.pricing-card h3 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}

.pricing-price {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 700;
    color: #ffffff;
    margin: 15px 0;
}
.pricing-price span {
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-body);
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin: 25px 0 35px;
    display: flex;
    flex-direction: column;
    gap: 13px;
    flex-grow: 1;
}

.pricing-features li {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.pricing-features li i, .pricing-features li svg {
    color: var(--success);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Footer */
.landing-footer {
    padding: 38px 6%;
    border-top: 1px solid hsla(165, 40%, 88%, 0.05);
    background: hsla(170, 24%, 2%, 0.9);
    width: 100%;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.landing-footer p {
    font-size: 12.5px;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

/* ============================================================
   USER ID BADGES & MOBILE DASHBOARD HEADER STYLES
   ============================================================ */

.sidebar-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 14px;
}

.sidebar-mobile-user {
    display: none;
    align-items: center;
    gap: 8px;
}

.mobile-id-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(13, 235, 180, 0.12);
    border: 1.5px solid rgba(13, 235, 180, 0.4);
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.mobile-id-chip:active {
    transform: scale(0.96);
    background: rgba(13, 235, 180, 0.25);
}

.mobile-id-tag {
    font-size: 10px;
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.mobile-id-val {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 800;
    color: #fff;
}

.mobile-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.mobile-action-icon:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ff6b6b;
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-copy-id-compact {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(13, 235, 180, 0.12);
    border: 1px solid rgba(13, 235, 180, 0.35);
    color: var(--accent-color);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy-id-compact:hover {
    background: rgba(13, 235, 180, 0.22);
    border-color: var(--accent-color);
    color: #fff;
}

/* Streamer Account & ID Banner (Overview Tab) */
.streamer-id-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(13, 235, 180, 0.08) 0%, rgba(243, 195, 90, 0.04) 50%, rgba(138, 43, 226, 0.06) 100%);
    border: 1.5px solid rgba(13, 235, 180, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 0 20px rgba(13, 235, 180, 0.05);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.streamer-id-banner-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.streamer-id-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.45);
    border: 1.5px solid var(--accent-color);
    box-shadow: 0 0 15px rgba(13, 235, 180, 0.3);
    padding: 6px 12px;
    border-radius: 30px;
}

.pill-label {
    font-size: 10.5px;
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.pill-number {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1px;
}

.pill-copy-btn {
    background: var(--accent-gradient);
    border: none;
    color: #07090e;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.pill-copy-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.15);
}

.pill-copy-btn i, .pill-copy-btn svg {
    width: 12px;
    height: 12px;
}

.streamer-sub-text {
    font-size: 12px;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.banner-quick-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.banner-quick-link:hover {
    background: rgba(13, 235, 180, 0.15);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Kaspi ID Connection Helper Card */
.kaspi-id-connection-card {
    background: linear-gradient(135deg, rgba(243, 195, 90, 0.08) 0%, rgba(13, 235, 180, 0.04) 100%);
    border: 1.5px solid rgba(243, 195, 90, 0.3);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.kaspi-id-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.kaspi-id-icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(243, 195, 90, 0.15);
    border: 1.5px solid var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    flex-shrink: 0;
}

.kaspi-id-icon-circle i, .kaspi-id-icon-circle svg {
    width: 20px;
    height: 20px;
}

.kaspi-id-action-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.kaspi-id-code-badge {
    background: rgba(0, 0, 0, 0.5);
    border: 1.5px solid rgba(243, 195, 90, 0.4);
    padding: 6px 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(18, 14, 32, 0.96);
    border: 1.5px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 25px rgba(13, 235, 180, 0.35);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #ffffff;
    padding: 11px 22px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    z-index: 999999;
    pointer-events: none;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast-notification.show {
    bottom: 24px;
    opacity: 1;
}

/* ============================================================
   RESPONSIVE MEDIA QUERIES
   ============================================================ */

@media (max-width: 1100px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        padding-top: 50px;
        padding-bottom: 30px;
        gap: 36px;
        text-align: center;
    }
    .hero-content { align-items: center; text-align: center; }
    .hero-ctas, .hero-stats { justify-content: center; }

    .card-duo { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .features-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .feature-card:nth-child(1), .feature-card:nth-child(4) { grid-column: span 1; }
    .card-duo { grid-template-columns: 1fr; }

    .dashboard-container {
        flex-direction: column;
        width: 100%;
        overflow-x: hidden;
    }

    .sidebar {
        position: sticky;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        padding: 10px 14px;
        background: hsla(170, 24%, 4%, 0.97);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-right: none;
        border-bottom: 1px solid var(--card-border);
        z-index: 1000;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .sidebar-header-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        margin-bottom: 4px;
    }

    .sidebar-brand {
        margin-bottom: 0;
        padding: 0;
        font-size: 14px;
    }

    .sidebar-mobile-user {
        display: flex;
    }

    /* Hide bulky desktop user panel on mobile */
    .sidebar-user {
        display: none !important;
    }

    .sidebar-menu {
        display: flex !important;
        flex-direction: row;
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 4px 2px;
        width: 100%;
        flex-grow: 0;
    }

    .sidebar-menu::-webkit-scrollbar {
        display: none;
    }

    .menu-group-label {
        display: none !important;
    }

    .menu-item {
        display: inline-flex !important;
        align-items: center;
        gap: 6px;
        padding: 7px 12px;
        white-space: nowrap;
        border-radius: 20px;
        background: hsla(165, 40%, 90%, 0.04);
        border: 1px solid hsla(165, 40%, 88%, 0.08);
        font-size: 12px;
        flex-shrink: 0;
        width: auto !important;
        height: auto !important;
    }

    .menu-item span {
        display: inline !important;
        font-size: 12px;
    }

    .menu-item.active {
        background: var(--accent-gradient);
        color: #07090e;
        border-color: var(--accent-color);
        font-weight: 700;
    }

    .menu-item.active i, .menu-item.active svg {
        color: #07090e;
    }

    .menu-item.active::before {
        display: none;
    }

    .sidebar-footer {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 16px 14px 60px !important;
        max-width: 100vw;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .navbar { padding: 12px 4%; }
    .navbar .navbar-btn-outline { display: none; }
    .hero-stats { gap: 18px; }
    .pricing-cards { gap: 18px; }

    .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { padding: 14px; }
    .stat-value { font-size: 18px; }

    .flow-container { flex-direction: column; gap: 24px; padding: 26px 18px; }
    .flow-arrow svg, .flow-arrow i { transform: rotate(90deg); }
    .flow-step p { max-width: 100%; }

    .trust-section { padding: 20px 4%; }
    .logo-wall { gap: 24px; }
    .logo-wall img { height: 16px; }

    .streamer-id-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 14px;
        gap: 10px;
    }

    .streamer-id-banner-left {
        width: 100%;
        justify-content: space-between;
    }

    .streamer-id-banner-right {
        width: 100%;
    }

    .banner-quick-link {
        width: 100%;
        justify-content: center;
    }

    .kaspi-id-connection-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 14px;
    }

    .kaspi-id-action-row {
        width: 100%;
        justify-content: space-between;
    }

    .kaspi-id-action-row button {
        flex-grow: 1;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .sim-inputs { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .stat-card { padding: 12px 10px; }
    .stat-label { font-size: 11px; }
    .stat-value { font-size: 16px; }

    .card { padding: 16px 12px; }
    .page-header h2 { font-size: 18px; }
    .page-header p { font-size: 12px; }

    .row {
        flex-direction: column;
        gap: 8px;
    }

    .file-upload-wrapper {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .sidebar {
        padding: 8px 10px;
    }

    .sidebar-brand span {
        font-size: 13px;
    }

    .mobile-id-chip {
        padding: 4px 8px;
    }

    .mobile-id-val {
        font-size: 12px;
    }

    .pill-number {
        font-size: 14px;
    }

    .streamer-id-pill {
        width: 100%;
        justify-content: space-between;
    }
}

/* ============================================================
   MOTION SAFETY
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001s !important;
    }
    html { scroll-behavior: auto; }
    [data-reveal] { opacity: 1; transform: none; }
    .ticker-track { animation: none; }
}

/* ============================================================
   CHAT DRAWER BEAUTIFICATION
   ============================================================ */

/* Message Bubble Wrapper */
.chat-msg-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-msg-wrapper:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

.chat-msg-wrapper.admin-msg {
    background: rgba(250, 233, 101, 0.04);
    border: 1px solid rgba(250, 233, 101, 0.15);
    box-shadow: inset 0 0 10px rgba(250, 233, 101, 0.02);
}

.chat-msg-wrapper.admin-msg:hover {
    background: rgba(250, 233, 101, 0.06);
    border-color: rgba(250, 233, 101, 0.25);
}

/* Chat Header Badge */
.chat-role-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 6px;
    display: inline-block;
    vertical-align: middle;
}

.chat-role-badge.admin {
    background: rgba(250, 233, 101, 0.15);
    color: var(--accent-gold);
    border: 1px solid rgba(250, 233, 101, 0.3);
}

.chat-role-badge.streamer {
    background: rgba(13, 235, 180, 0.15);
    color: var(--accent-color);
    border: 1px solid rgba(13, 235, 180, 0.3);
}

/* Custom Scrollbar for chat messages */
#chatMessages::-webkit-scrollbar {
    width: 6px;
}

#chatMessages::-webkit-scrollbar-track {
    background: transparent;
}

#chatMessages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

#chatMessages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}
