/* ============================================
   GirlCam Live - Premium Professional Stylesheet
   v3.0 - Complete Redesign
   ============================================ */

/* ============ Fonts ============ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ============ Design Tokens ============ */
:root {
    --bg-primary: #06060b;
    --bg-secondary: #0c0c14;
    --bg-card: #12121c;
    --bg-card-hover: #181826;
    --bg-elevated: #1a1a2e;
    --bg-input: #151522;
    --bg-hover: #1e1e30;
    --bg-glass: rgba(18, 18, 28, 0.65);

    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-active: rgba(233, 30, 140, 0.4);
    --surface-1: rgba(255, 255, 255, 0.03);
    --surface-2: rgba(255, 255, 255, 0.05);

    --text: #f0eef6;
    --text-secondary: #a8a3bf;
    --text-muted: #615e75;
    --text-dim: #4a4760;

    --pink: #e91e8c;
    --pink-light: #ff47b0;
    --pink-glow: rgba(233, 30, 140, 0.25);
    --pink-subtle: rgba(233, 30, 140, 0.08);
    --purple: #8b5cf6;
    --purple-light: #a78bfa;
    --blue: #3b82f6;
    --blue-light: #60a5fa;
    --cyan: #06b6d4;
    --green: #10b981;
    --green-light: #34d399;
    --gold: #f59e0b;
    --gold-light: #fbbf24;
    --gold-glow: rgba(245, 158, 11, 0.2);
    --orange: #f97316;
    --red: #ef4444;
    --red-light: #f87171;
    --teal: #14b8a6;

    --gradient-primary: linear-gradient(135deg, #e91e8c 0%, #8b5cf6 50%, #3b82f6 100%);
    --gradient-warm: linear-gradient(135deg, #e91e8c 0%, #f97316 100%);
    --gradient-cool: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-surface: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 100%);
    --gradient-card: linear-gradient(160deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 40%);
    --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(233,30,140,0.15) 0%, rgba(139,92,246,0.08) 40%, transparent 70%);

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    --shadow: 0 4px 16px rgba(0,0,0,0.3), 0 2px 4px rgba(0,0,0,0.2);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.35), 0 4px 8px rgba(0,0,0,0.2);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.4);
    --shadow-glow-pink: 0 0 30px rgba(233,30,140,0.15), 0 0 60px rgba(233,30,140,0.05);
    --shadow-glow-gold: 0 0 20px rgba(245,158,11,0.15);
    --shadow-inset: inset 0 1px 0 rgba(255,255,255,0.05);

    --radius: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --radius-full: 9999px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition: all 0.3s var(--ease-out);
    --transition-fast: all 0.15s var(--ease-out);
    --transition-slow: all 0.5s var(--ease-out);
}

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary); color: var(--text); line-height: 1.65;
    min-height: 100vh; overflow-x: hidden;
    background-image:
        radial-gradient(ellipse 100% 80% at 50% -30%, rgba(233,30,140,0.04), transparent),
        radial-gradient(ellipse 80% 50% at 80% 50%, rgba(139,92,246,0.03), transparent);
}
a { color: var(--pink); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--pink-light); }
img { max-width: 100%; height: auto; display: block; }
html { overflow-x: hidden; }
body { overflow-x: hidden; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
::selection { background: rgba(233,30,140,0.3); color: #fff; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* ============ Utility ============ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.text-pink { color: var(--pink) !important; }
.text-green { color: var(--green) !important; }
.text-red { color: var(--red) !important; }
.text-gold { color: var(--gold) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-center { text-align: center; }

/* ============ Buttons ============ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 20px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
    border: none; cursor: pointer; transition: var(--transition);
    text-decoration: none; line-height: 1.4; position: relative; overflow: hidden;
    white-space: nowrap; letter-spacing: 0.01em;
}
.btn::after {
    content: ''; position: absolute; inset: 0; opacity: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 60%);
    transition: var(--transition-fast);
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.97); }
.btn i { font-size: 13px; }
.btn-primary {
    background: var(--gradient-primary); color: #fff;
    box-shadow: 0 2px 12px rgba(233,30,140,0.25), var(--shadow-inset);
}
.btn-primary:hover { box-shadow: 0 4px 24px rgba(233,30,140,0.35); transform: translateY(-1px); color: #fff; }
.btn-outline {
    background: var(--surface-1); border: 1px solid var(--border-light); color: var(--text);
    backdrop-filter: blur(10px);
}
.btn-outline:hover { border-color: var(--pink); color: var(--pink); background: var(--pink-subtle); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--pink); background: var(--pink-subtle); }
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; box-shadow: 0 2px 8px rgba(239,68,68,0.25); }
.btn-danger:hover { box-shadow: 0 4px 16px rgba(239,68,68,0.35); color: #fff; }
.btn-warning { background: linear-gradient(135deg, #f97316, #ea580c); color: #fff; }
.btn-success { background: linear-gradient(135deg, #10b981, #059669); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: var(--radius-xs); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius-md); }
.btn-block { display: flex; width: 100%; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: var(--radius-sm); }
.btn-coins {
    background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(245,158,11,0.05));
    border: 1px solid rgba(245,158,11,0.25); color: var(--gold-light);
    backdrop-filter: blur(10px);
}
.btn-coins:hover { border-color: var(--gold); background: rgba(245,158,11,0.2); color: var(--gold-light); box-shadow: var(--shadow-glow-gold); }
.btn-go-live {
    background: var(--gradient-warm); color: #fff;
    box-shadow: 0 2px 12px rgba(233,30,140,0.2);
}
.btn-go-live:hover { box-shadow: 0 6px 20px rgba(233,30,140,0.35); transform: translateY(-1px); color: #fff; }
.btn-follow { background: var(--pink); color: #fff; }
.btn-follow:hover { background: var(--pink-light); color: #fff; }
.btn-follow.following { background: transparent; border: 1px solid var(--pink); color: var(--pink); }
.btn-follow.following:hover { background: var(--pink-subtle); }
.btn-following { background: var(--green, #22c55e); color: #fff; border: 1px solid var(--green, #22c55e); font-weight: 600; }
.btn-following:hover { background: #16a34a; color: #fff; border-color: #16a34a; }
.btn-tip {
    background: linear-gradient(135deg, var(--gold), #d97706); color: #000;
    font-weight: 700; box-shadow: 0 2px 12px var(--gold-glow);
}
.btn-tip:hover { box-shadow: 0 4px 20px rgba(245,158,11,0.4); transform: translateY(-1px); color: #000; }
.btn-group { display: flex; gap: 6px; }

/* ============ Forms ============ */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600;
    color: var(--text-secondary); letter-spacing: 0.02em;
}
.form-input {
    width: 100%; padding: 12px 16px; background: var(--bg-input);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text); font-size: 14px; transition: var(--transition);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}
.form-input:focus {
    outline: none; border-color: var(--pink);
    box-shadow: 0 0 0 3px var(--pink-glow), inset 0 1px 3px rgba(0,0,0,0.2);
    background: var(--bg-elevated);
}
.form-input::placeholder { color: var(--text-dim); }
select.form-input {
    cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23615e75' viewBox='0 0 16 16'%3E%3Cpath d='M8 12L2 6h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
textarea.form-input { resize: vertical; min-height: 80px; }
.form-row { display: flex; gap: 12px; align-items: center; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px; margin-bottom: 24px;
    box-shadow: var(--shadow-sm); position: relative;
    background-image: var(--gradient-card);
}
.form-card h3 { margin-bottom: 20px; font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Toggle */
.toggle-switch { position: relative; display: inline-block; width: 48px; height: 26px; cursor: pointer; }
.toggle-switch input { display: none; }
.toggle-slider { position: absolute; inset: 0; background: var(--bg-input); border-radius: 26px; transition: var(--transition); border: 1px solid var(--border); }
.toggle-slider::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 2px; background: var(--text-muted); border-radius: 50%; transition: var(--transition); }
.toggle-switch input:checked + .toggle-slider { background: var(--pink); border-color: var(--pink); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(21px); background: #fff; }

/* ============ Navbar ============ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(6, 6, 11, 0.85); backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border); height: 68px; padding: 0 24px;
}
.nav-container { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; height: 100%; gap: 24px; }
.nav-logo {
    display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800;
    color: var(--text); text-decoration: none; letter-spacing: -0.02em;
}
.nav-logo i {
    font-size: 18px; padding: 8px; border-radius: var(--radius-sm);
    background: var(--gradient-primary); color: #fff;
    box-shadow: 0 2px 10px rgba(233,30,140,0.3);
}
.nav-logo:hover { color: var(--text); }
.nav-lang-switch { display: flex; align-items: center; gap: 2px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 2px; }
.nav-lang-switch a { padding: 5px 9px; font-size: 12px; font-weight: 700; border-radius: 6px; color: var(--text-muted); text-decoration: none; transition: var(--transition-fast); }
.nav-lang-switch a:hover { color: var(--text); }
.nav-lang-switch a.active { background: var(--gradient-primary); color: #fff; }
.nav-search { flex: 1; max-width: 440px; position: relative; }
.nav-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 14px; }
.nav-search input {
    width: 100%; padding: 10px 16px 10px 40px;
    background: var(--surface-1); border: 1px solid var(--border);
    border-radius: var(--radius-full); color: var(--text); font-size: 14px;
    transition: var(--transition); backdrop-filter: blur(10px);
}
.nav-search input:focus { outline: none; border-color: var(--border-active); background: var(--bg-elevated); box-shadow: 0 0 0 3px var(--pink-glow); }
.nav-search input::placeholder { color: var(--text-dim); }
.nav-icon-btn {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: var(--radius-full);
    background: var(--surface-1); border: 1px solid var(--border);
    color: var(--text-muted); font-size: 15px; cursor: pointer;
    transition: var(--transition); flex-shrink: 0;
}
.nav-icon-btn:hover { color: var(--pink); border-color: var(--pink); background: var(--pink-subtle); }
.nav-search-toggle { display: none; }
.nav-search-dropdown {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-card); border-bottom: 1px solid var(--border);
    padding: 10px 16px; z-index: 99; box-shadow: var(--shadow-lg);
}
.nav-search-dropdown.active { display: block; }
.nav-search-dropdown-input {
    width: 100%; padding: 10px 14px; background: var(--surface-1);
    border: 1px solid var(--border); border-radius: var(--radius-full);
    color: var(--text); font-size: 14px;
}
.nav-search-dropdown-input:focus { outline: none; border-color: var(--border-active); box-shadow: 0 0 0 3px var(--pink-glow); }
.nav-toggler {
    display: none; flex-direction: column; justify-content: center; gap: 4px;
    width: 38px; height: 38px; background: var(--surface-1); border: 1px solid var(--border);
    border-radius: var(--radius-sm); cursor: pointer; padding: 8px 7px; flex-shrink: 0;
    transition: var(--transition);
}
.nav-toggler:hover { border-color: var(--pink); }
.nav-toggler span {
    display: block; height: 2px; width: 100%; background: var(--text);
    border-radius: 2px; transition: var(--transition);
}
.nav-desktop-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-mobile-menu { display: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-user-menu { position: relative; }
.nav-avatar {
    width: 40px; height: 40px; border-radius: var(--radius-full); overflow: hidden;
    cursor: pointer; border: 2px solid transparent; position: relative;
    background: var(--gradient-primary); padding: 2px; transition: var(--transition);
}
.nav-avatar:hover { box-shadow: var(--shadow-glow-pink); }
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-full); }
.online-dot {
    position: absolute; bottom: 1px; right: 1px; width: 11px; height: 11px;
    background: var(--green); border-radius: 50%; border: 2px solid var(--bg-primary);
    animation: onlinePulse 3s ease-in-out infinite;
}
@keyframes onlinePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); } 50% { box-shadow: 0 0 0 4px rgba(16,185,129,0); } }
.user-dropdown {
    position: absolute; top: calc(100% + 12px); right: 0; width: 240px; max-width: calc(100vw - 24px);
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.98);
    transition: var(--transition); z-index: 110; overflow: hidden;
    background-image: var(--gradient-card);
}
.user-dropdown.active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.dropdown-header { padding: 16px 18px; background: var(--surface-1); }
.dropdown-header strong { display: block; font-size: 14px; }
.dropdown-header small { color: var(--text-muted); font-size: 12px; }
.dropdown-divider { height: 1px; background: var(--border); margin: 2px 0; }
.user-dropdown a {
    display: flex; align-items: center; gap: 12px; padding: 11px 18px;
    color: var(--text-secondary); font-size: 13px; font-weight: 500; transition: var(--transition-fast);
}
.user-dropdown a i { width: 16px; text-align: center; font-size: 14px; }
.user-dropdown a:hover { background: var(--bg-hover); color: var(--text); }
.user-dropdown .text-danger { color: var(--red) !important; }
.user-dropdown .text-gold { color: var(--gold) !important; }

/* ============ Toast ============ */
.toast-bar { padding: 14px 0; transition: all 0.4s var(--ease-out); backdrop-filter: blur(20px); }
.toast-bar .container { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; }
.toast-success { background: rgba(16,185,129,0.1); border-bottom: 2px solid var(--green); color: var(--green-light); }
.toast-error { background: rgba(239,68,68,0.1); border-bottom: 2px solid var(--red); color: var(--red-light); }
.toast-warning { background: rgba(245,158,11,0.1); border-bottom: 2px solid var(--gold); color: var(--gold); }
.toast-info { background: rgba(59,130,246,0.1); border-bottom: 2px solid var(--blue); color: var(--blue-light); }
.toast-close { background: none; border: none; color: inherit; font-size: 20px; cursor: pointer; margin-left: auto; opacity: 0.7; }
.toast-close:hover { opacity: 1; }

/* ============ Hero ============ */
.hero {
    position: relative; padding: 120px 24px 100px; text-align: center;
    overflow: hidden; min-height: 640px; display: flex; align-items: center; justify-content: center;
    isolation: isolate;
}

/* --- Background Layers --- */
.hero-bg { position: absolute; inset: 0; z-index: -3; background: #06060e; }

/* Vibrant mesh gradient base */
.hero-mesh {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(139,92,246,0.25) 0%, transparent 60%),
        radial-gradient(ellipse 70% 50% at 80% 20%, rgba(233,30,140,0.20) 0%, transparent 55%),
        radial-gradient(ellipse 60% 70% at 50% 50%, rgba(59,130,246,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 90% 40% at 70% 90%, rgba(6,182,212,0.15) 0%, transparent 50%);
}

/* Animated gradient glows */
.hero-glow {
    position: absolute; border-radius: 50%;
    will-change: transform, opacity; pointer-events: none;
    filter: blur(80px);
}
.hero-glow--1 {
    width: 800px; height: 600px; top: -200px; left: 50%; margin-left: -400px;
    background: radial-gradient(ellipse, rgba(233,30,140,0.30) 0%, rgba(192,38,211,0.15) 40%, transparent 70%);
    animation: heroFloat1 10s ease-in-out infinite alternate;
}
.hero-glow--2 {
    width: 600px; height: 500px; top: -50px; right: -120px;
    background: radial-gradient(ellipse, rgba(139,92,246,0.28) 0%, rgba(59,130,246,0.12) 50%, transparent 70%);
    animation: heroFloat2 13s ease-in-out infinite alternate;
}
.hero-glow--3 {
    width: 700px; height: 400px; bottom: -150px; left: -100px;
    background: radial-gradient(ellipse, rgba(59,130,246,0.22) 0%, rgba(6,182,212,0.10) 50%, transparent 70%);
    animation: heroFloat3 15s ease-in-out infinite alternate;
}
.hero-glow--4 {
    width: 500px; height: 500px; bottom: -80px; right: 10%;
    background: radial-gradient(ellipse, rgba(245,158,11,0.12) 0%, rgba(233,30,140,0.08) 50%, transparent 70%);
    animation: heroFloat1 18s ease-in-out infinite alternate-reverse;
}
@keyframes heroFloat1 {
    0%   { transform: translate(0, 0) scale(1); opacity: .8; }
    100% { transform: translate(50px, 25px) scale(1.2); opacity: 1; }
}
@keyframes heroFloat2 {
    0%   { transform: translate(0, 0) scale(1); opacity: .6; }
    100% { transform: translate(-40px, 35px) scale(1.25); opacity: .9; }
}
@keyframes heroFloat3 {
    0%   { transform: translate(0, 0) scale(1); opacity: .6; }
    100% { transform: translate(60px, -25px) scale(1.15); opacity: .85; }
}

/* Aurora / northern-lights ribbon */
.hero-aurora {
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(
        125deg,
        transparent 0%,
        rgba(233,30,140,0.06) 15%,
        rgba(139,92,246,0.08) 30%,
        transparent 45%,
        rgba(59,130,246,0.06) 60%,
        rgba(6,182,212,0.05) 75%,
        transparent 100%
    );
    background-size: 200% 200%;
    animation: heroAurora 12s ease-in-out infinite;
}
@keyframes heroAurora {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Film-grain noise */
.hero-noise {
    position: absolute; inset: 0; opacity: 0.022; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px;
}

/* Edge vignette */
.hero-vignette {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 70% at 50% 50%, transparent 35%, #06060e 100%);
}

/* --- Light Streaks --- */
.hero-streaks { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.hero-streak {
    position: absolute; border-radius: 50%;
    will-change: transform, opacity;
}
.hero-streak--1 {
    width: 300px; height: 2px; top: 35%; left: -5%;
    background: linear-gradient(90deg, transparent, rgba(233,30,140,0.4), rgba(139,92,246,0.3), transparent);
    animation: streakMove1 8s ease-in-out infinite;
    filter: blur(1px);
}
.hero-streak--2 {
    width: 250px; height: 1.5px; top: 55%; right: -5%;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,0.35), rgba(6,182,212,0.3), transparent);
    animation: streakMove2 10s ease-in-out infinite;
    filter: blur(1px);
}
.hero-streak--3 {
    width: 200px; height: 1px; top: 20%; left: 30%;
    background: linear-gradient(90deg, transparent, rgba(139,92,246,0.25), rgba(233,30,140,0.2), transparent);
    animation: streakMove3 12s ease-in-out infinite;
    filter: blur(0.5px);
}
@keyframes streakMove1 {
    0%   { transform: translateX(-100%) rotate(-2deg); opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { transform: translateX(calc(100vw + 100%)) rotate(-2deg); opacity: 0; }
}
@keyframes streakMove2 {
    0%   { transform: translateX(100%) rotate(1.5deg); opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { transform: translateX(calc(-100vw - 100%)) rotate(1.5deg); opacity: 0; }
}
@keyframes streakMove3 {
    0%   { transform: translateX(-50%) rotate(-1deg); opacity: 0; }
    20%  { opacity: 0.7; }
    80%  { opacity: 0.7; }
    100% { transform: translateX(calc(100vw)) rotate(-1deg); opacity: 0; }
}

/* --- Content --- */
.hero-content {
    position: relative; z-index: 1; max-width: 780px; margin: 0 auto;
    display: flex; flex-direction: column; align-items: center;
}

/* Badge */
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px; padding: 7px 20px 7px 14px;
    background: rgba(233,30,140,0.06); border: 1px solid rgba(233,30,140,0.15);
    border-radius: var(--radius-full); font-size: 13px; font-weight: 600;
    color: var(--pink-light); margin-bottom: 28px;
    animation: heroFadeIn 0.7s var(--ease-out) both;
    backdrop-filter: blur(12px);
    transition: var(--transition);
}
.hero-badge:hover { border-color: rgba(233,30,140,0.35); background: rgba(233,30,140,0.1); }
.hero-badge__dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--pink);
    box-shadow: 0 0 8px rgba(233,30,140,0.6); animation: pulse 2s infinite;
}
.hero-badge__arrow { font-size: 14px; opacity: 0.5; transition: var(--transition-fast); }
.hero-badge:hover .hero-badge__arrow { opacity: 1; transform: translateX(3px); }

/* Title */
.hero-title {
    font-size: 58px; font-weight: 800; line-height: 1.1; margin-bottom: 24px;
    letter-spacing: -0.035em;
}
.hero-title__line {
    display: block;
    animation: heroFadeIn 0.7s var(--ease-out) both;
}
.hero-title__line:nth-child(1) { animation-delay: 0.1s; }
.hero-title__line:nth-child(2) { animation-delay: 0.2s; }
.hero-title__line:nth-child(3) { animation-delay: 0.3s; }
.hero-title__line--accent {
    font-size: 68px; padding: 4px 0;
}
.hero-title .gradient-text {
    background: linear-gradient(135deg, #e91e8c 0%, #c026d3 25%, #8b5cf6 50%, #3b82f6 75%, #06b6d4 100%);
    background-size: 200% auto;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroGradientShift 6s ease infinite;
}
@keyframes heroGradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

/* Subtitle */
.hero-subtitle {
    font-size: 18px; color: var(--text-secondary); margin-bottom: 40px;
    max-width: 560px; line-height: 1.75; animation: heroFadeIn 0.7s var(--ease-out) 0.35s both;
}

/* Stats */
.hero-stats {
    display: flex; align-items: center; gap: 0; margin-bottom: 40px;
    background: rgba(255,255,255,0.03); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 6px 8px;
    backdrop-filter: blur(12px);
    animation: heroFadeIn 0.7s var(--ease-out) 0.45s both;
}
.hero-stat {
    display: flex; align-items: center; gap: 12px; padding: 12px 24px;
}
.hero-stat__icon {
    width: 40px; height: 40px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; flex-shrink: 0;
}
.hero-stat:nth-child(1) .hero-stat__icon { background: rgba(233,30,140,0.1); color: var(--pink); }
.hero-stat:nth-child(3) .hero-stat__icon { background: rgba(139,92,246,0.1); color: var(--purple-light); }
.hero-stat:nth-child(5) .hero-stat__icon { background: rgba(59,130,246,0.1); color: var(--blue-light); }
.hero-stat__body { text-align: left; }
.hero-stat__num {
    display: block; font-size: 24px; font-weight: 800; letter-spacing: -0.02em;
    color: var(--text); line-height: 1;
}
.hero-stat__label {
    display: block; font-size: 12px; color: var(--text-muted); font-weight: 500;
    margin-top: 3px; letter-spacing: 0.02em;
}
.hero-stat__divider {
    width: 1px; height: 36px; background: var(--border); flex-shrink: 0;
}

/* Action Buttons */
.hero-actions {
    display: flex; gap: 14px; justify-content: center;
    animation: heroFadeIn 0.7s var(--ease-out) 0.55s both;
}
.btn-hero-primary {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 32px; font-size: 16px; font-weight: 700;
    color: #fff; border: none; border-radius: var(--radius-md);
    background: var(--gradient-primary); background-size: 200% auto;
    cursor: pointer; position: relative; overflow: hidden;
    box-shadow: 0 4px 24px rgba(233,30,140,0.3), 0 1px 3px rgba(0,0,0,0.3);
    transition: var(--transition); text-decoration: none; letter-spacing: 0.01em;
}
.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 36px rgba(233,30,140,0.4), 0 2px 6px rgba(0,0,0,0.3);
    background-position: right center; color: #fff;
}
.btn-hero-primary:active { transform: translateY(0) scale(0.98); }
.btn-hero-primary__shine {
    position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: heroShine 4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes heroShine {
    0%, 70%, 100% { left: -100%; }
    85% { left: 150%; }
}
.btn-hero-outline {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 32px; font-size: 16px; font-weight: 700;
    color: var(--text); border: 1px solid var(--border-light);
    border-radius: var(--radius-md); background: rgba(255,255,255,0.03);
    cursor: pointer; backdrop-filter: blur(10px);
    transition: var(--transition); text-decoration: none; letter-spacing: 0.01em;
}
.btn-hero-outline:hover {
    border-color: var(--pink); color: var(--pink-light);
    background: rgba(233,30,140,0.06); transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(233,30,140,0.15);
}

/* Trust line */
.hero-trust {
    display: flex; align-items: center; gap: 8px; margin-top: 36px;
    font-size: 12px; color: var(--text-dim); font-weight: 500;
    animation: heroFadeIn 0.7s var(--ease-out) 0.65s both;
}
.hero-trust i { font-size: 11px; color: var(--text-muted); }
.hero-trust__sep { opacity: 0.3; }

/* Master fade-in keyframe */
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    .hero-glow, .hero-aurora, .hero-streak,
    .btn-hero-primary__shine, .hero-title .gradient-text {
        animation: none !important;
    }
}

/* ============ Sections ============ */
.section { padding: 48px 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 16px; }
.section-header h2 { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 12px; letter-spacing: -0.01em; }
.section-filters { display: flex; align-items: center; gap: 10px; }
.filter-form { display: flex; gap: 8px; }
.filter-form select {
    padding: 8px 32px 8px 14px; background: var(--surface-1); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text); font-size: 13px; cursor: pointer;
}

/* ============ Categories (removed) ============ */
/* ============ Stream Cards ============ */
.streams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.streamers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.streamers-grid .stream-card { display: flex; flex-direction: column; }
.streamers-grid .stream-thumbnail { aspect-ratio: 1/1; flex-shrink: 0; }
.streamers-grid .stream-info { display: flex; flex-direction: column; flex: 1; }
.streamers-grid .stream-info-top { flex: 1; }
.streamers-grid .btn-group { margin-top: auto; padding-top: 14px; }
.stream-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; transition: var(--transition);
    display: block; color: var(--text); position: relative;
    background-image: var(--gradient-card);
}
.stream-card:hover {
    transform: translateY(-6px); border-color: rgba(233,30,140,0.3);
    box-shadow: var(--shadow-lg), var(--shadow-glow-pink); color: var(--text);
}
.stream-thumbnail { position: relative; aspect-ratio: 16/9; background: var(--bg-input); overflow: hidden; }
.stream-thumbnail::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.6) 100%);
    opacity: 0; transition: var(--transition);
    pointer-events: none;
}
.stream-card:hover .stream-thumbnail::after { opacity: 1; }
.stream-thumbnail-img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-slow); }
.stream-card:hover .stream-thumbnail-img { transform: scale(1.05); }
.stream-thumbnail video { transition: none; }
.stream-card:hover .stream-thumbnail video { transform: none; }
.video-play-icon {
    position: absolute; inset: 0; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--transition);
}
.video-play-icon i {
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(0,0,0,0.6); color: #fff; font-size: 20px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
    transition: var(--transition); padding-left: 4px;
}
.stream-card:hover .video-play-icon i {
    background: rgba(233,30,140,0.9);
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 4px 24px rgba(233,30,140,0.5);
    transform: scale(1.15);
}
.stream-play-overlay {
    position: absolute; inset: 0; z-index: 1;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.stream-play-overlay i {
    width: 52px; height: 52px; border-radius: 50%;
    background: rgba(0,0,0,0.5); color: #fff; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: var(--transition); padding-left: 3px;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
}
.stream-card:hover .stream-play-overlay i {
    background: rgba(233,30,140,0.9);
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 4px 24px rgba(233,30,140,0.5);
    transform: scale(1.15);
}
.stream-live-badge {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
    padding: 4px 10px; border-radius: var(--radius-xs);
    display: flex; align-items: center; gap: 5px;
    box-shadow: 0 2px 8px rgba(239,68,68,0.4);
}
.stream-live-badge i { font-size: 6px; animation: pulse 1.5s infinite; }
.stream-viewer-count {
    position: absolute; bottom: 12px; right: 12px; z-index: 2;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
    color: #fff; font-size: 12px; font-weight: 600;
    padding: 4px 10px; border-radius: var(--radius-xs);
    display: flex; align-items: center; gap: 5px;
}
.stream-category-badge {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    background: rgba(0,0,0,0.55); backdrop-filter: blur(8px);
    color: var(--text-secondary); font-size: 11px; font-weight: 600;
    padding: 4px 10px; border-radius: var(--radius-xs);
}
.stream-info { padding: 16px; }
.stream-info-top { display: flex; gap: 12px; }
.stream-avatar { width: 40px; height: 40px; border-radius: var(--radius-full); object-fit: cover; flex-shrink: 0; border: 2px solid var(--border); }
.stream-details { min-width: 0; flex: 1; }
.stream-title { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -0.01em; }
.stream-streamer { font-size: 13px; color: var(--text-secondary); font-weight: 500; margin-top: 2px; }
.stream-meta { display: flex; gap: 14px; margin-top: 6px; font-size: 12px; color: var(--text-muted); }
.stream-meta span { display: flex; align-items: center; gap: 4px; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.pulse { animation: pulse 1.5s infinite; }

/* ============ Stream Page ============ */
.stream-page-layout { display: grid; grid-template-columns: 1fr 380px; max-width: 1500px; margin: 0 auto; min-height: calc(100vh - 68px); height: calc(100vh - 68px); overflow: hidden; }
.stream-main { display: flex; flex-direction: column; overflow-y: auto; }
.stream-player { position: relative; aspect-ratio: 16/9; background: #000; overflow: hidden; }
.stream-player canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.player-overlay { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; pointer-events: none; }
.player-info { display: flex; gap: 10px; }
.live-badge { background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: var(--radius-xs); display: flex; align-items: center; gap: 6px; box-shadow: 0 2px 10px rgba(239,68,68,0.4); }
.viewer-badge { background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); color: #fff; font-size: 12px; padding: 5px 12px; border-radius: var(--radius-xs); display: flex; align-items: center; gap: 6px; }
.player-center { text-align: center; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.player-avatar-large { width: 88px; height: 88px; border-radius: var(--radius-full); overflow: hidden; margin: 0 auto 14px; border: 3px solid var(--pink); box-shadow: 0 4px 20px rgba(233,30,140,0.3); }
.player-avatar-large img { width: 100%; height: 100%; object-fit: cover; }
.player-center h2 { color: #fff; font-size: 22px; text-shadow: 0 2px 16px rgba(0,0,0,0.6); letter-spacing: -0.01em; }
.stream-info-bar { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; background: var(--bg-card); border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 16px; background-image: var(--gradient-card); }
.stream-info-left { display: flex; align-items: center; gap: 14px; }
.streamer-profile { display: flex; align-items: center; gap: 14px; }
.avatar-md { width: 52px; height: 52px; border-radius: var(--radius-full); object-fit: cover; border: 2px solid var(--border); }
.stream-info-right { display: flex; align-items: center; gap: 10px; }
.category-badge { background: var(--surface-2); padding: 5px 14px; border-radius: var(--radius-full); font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.stream-description { padding: 18px 24px; color: var(--text-secondary); font-size: 14px; line-height: 1.7; }

/* ============ Chat ============ */
.chat-panel { display: flex; flex-direction: column; background: var(--bg-secondary); border-left: 1px solid var(--border); height: 100%; overflow: hidden; }
.chat-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.chat-header h3 { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.chat-viewers { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 14px; min-height: 0; scroll-behavior: smooth; overscroll-behavior: contain; }
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }
.chat-welcome { text-align: center; padding: 30px 16px; color: var(--text-dim); }
.chat-welcome i { font-size: 28px; margin-bottom: 10px; display: block; }
.chat-msg { padding: 8px 12px; margin-bottom: 4px; border-radius: var(--radius-sm); transition: var(--transition-fast); }
.chat-msg:hover { background: var(--surface-1); }
.chat-msg.tip { background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(245,158,11,0.03)); border-left: 3px solid var(--gold); border-radius: var(--radius-xs); }
.chat-msg-header { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.chat-msg-name { font-weight: 700; font-size: 13px; color: var(--pink); }
.chat-msg-time { font-size: 11px; color: var(--text-dim); margin-left: auto; }
.chat-msg-text { font-size: 13px; color: var(--text-secondary); word-break: break-word; line-height: 1.5; }
.chat-tip-amount { font-size: 12px; color: var(--gold); font-weight: 700; display: flex; align-items: center; gap: 3px; }
.chat-input-area { border-top: 1px solid var(--border); padding: 14px; flex-shrink: 0; background: var(--bg-secondary); }
.chat-input-box { display: flex; gap: 8px; }
.chat-input-box input { flex: 1; padding: 11px 16px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-full); color: var(--text); font-size: 13px; transition: var(--transition); }
.chat-input-box input:focus { outline: none; border-color: var(--border-active); box-shadow: 0 0 0 3px var(--pink-glow); }
.chat-send-btn { background: var(--gradient-primary); color: #fff; border: none; width: 40px; height: 40px; border-radius: var(--radius-full); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); box-shadow: 0 2px 8px rgba(233,30,140,0.2); }
.chat-send-btn:hover { box-shadow: 0 4px 16px rgba(233,30,140,0.35); transform: scale(1.05); }
.chat-login-prompt { text-align: center; padding: 14px; color: var(--text-muted); font-size: 13px; }

/* ============ Coins ============ */
.page-header { text-align: center; padding: 48px 0 36px; }
.page-header h1 { font-size: 32px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.02em; }
.page-header p { color: var(--text-secondary); font-size: 16px; }
.current-balance { display: inline-flex; align-items: center; gap: 14px; margin-top: 20px; background: var(--bg-card); border: 1px solid var(--border); padding: 14px 28px; border-radius: var(--radius-full); box-shadow: var(--shadow-sm); font-weight: 500; background-image: var(--gradient-card); }
.current-balance strong { color: var(--gold-light); font-size: 22px; font-weight: 800; }
.coins-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; margin-bottom: 48px; }
.coin-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 20px; text-align: center; transition: var(--transition); position: relative; overflow: hidden; background-image: var(--gradient-card); }
.coin-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient-primary); opacity: 0; transition: var(--transition); }
.coin-card:hover { transform: translateY(-6px); border-color: rgba(233,30,140,0.3); box-shadow: var(--shadow-lg), var(--shadow-glow-pink); }
.coin-card:hover::before { opacity: 1; }
.coin-card.popular { border-color: rgba(245,158,11,0.3); box-shadow: var(--shadow-glow-gold); }
.coin-card.popular::before { background: var(--gradient-gold); opacity: 1; }
.coin-card.popular::after { content: '⭐ Beliebt'; position: absolute; top: 14px; right: -28px; background: var(--gradient-gold); color: #000; font-size: 10px; font-weight: 800; padding: 3px 32px; transform: rotate(45deg); letter-spacing: 0.05em; }
.coin-icon { font-size: 40px; color: var(--gold); margin-bottom: 14px; filter: drop-shadow(0 2px 8px var(--gold-glow)); }
.coin-name { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.08em; }
.coin-amount { font-size: 32px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.coin-bonus { font-size: 13px; color: var(--green); font-weight: 700; margin-bottom: 10px; min-height: 20px; }
.coin-price { font-size: 24px; font-weight: 800; margin-bottom: 4px; background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.coin-per { font-size: 11px; color: var(--text-dim); margin-bottom: 2px; }
.coin-vat { font-size: 10px; color: var(--text-dim); margin-bottom: 14px; opacity: 0.7; }
.payment-info { text-align: center; padding: 36px 20px; }
.payment-info h3 { font-size: 16px; margin-bottom: 16px; color: var(--text-secondary); }
.payment-icons { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.payment-icon { font-size: 14px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.payment-icon i { font-size: 28px; }
.payment-security { margin-top: 20px; color: var(--text-dim); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; }
.tip-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.tip-btn { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; color: var(--text); cursor: pointer; font-weight: 700; font-size: 14px; transition: var(--transition); }
.tip-btn:hover { border-color: var(--gold); color: var(--gold); background: rgba(245,158,11,0.08); }
.tip-balance { text-align: center; margin: 14px 0; color: var(--text-muted); font-size: 13px; }

/* ============ Auth ============ */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 200px); padding: 48px 24px; }
.auth-card { width: 100%; max-width: 440px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 44px 36px; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); background-image: var(--gradient-card); }
.auth-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient-primary); }
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-header i { font-size: 28px; color: #fff; margin-bottom: 16px; display: inline-flex; width: 60px; height: 60px; align-items: center; justify-content: center; border-radius: var(--radius-md); background: var(--gradient-primary); box-shadow: 0 4px 16px rgba(233,30,140,0.3); }
.auth-header h1 { font-size: 26px; margin-bottom: 8px; letter-spacing: -0.02em; }
.auth-header p { color: var(--text-muted); font-size: 14px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-muted); }
.auth-demo { text-align: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.auth-demo small { color: var(--text-dim); font-size: 12px; }
.auth-demo code { background: var(--surface-2); padding: 3px 8px; border-radius: var(--radius-xs); font-size: 12px; color: var(--pink); }

/* ============ Profile ============ */
.profile-header { display: flex; align-items: center; gap: 28px; padding: 48px 0; }
.profile-avatar-large { width: 110px; height: 110px; border-radius: var(--radius-full); overflow: hidden; flex-shrink: 0; padding: 3px; background: var(--gradient-primary); box-shadow: var(--shadow-glow-pink); }
.profile-avatar-large img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-full); }
.profile-info h1 { font-size: 28px; letter-spacing: -0.02em; }
.profile-username { color: var(--text-muted); font-size: 14px; }
.profile-bio { color: var(--text-secondary); margin: 10px 0; font-size: 15px; line-height: 1.6; }
.profile-stats { display: flex; gap: 28px; margin-top: 16px; }
.profile-stat { font-size: 14px; color: var(--text-secondary); }
.profile-stat strong { color: var(--text); margin-right: 4px; font-weight: 700; }

/* ============ Profile Page v2 ============ */
.profile-page { min-height: calc(100vh - 70px); overflow-x: hidden; width: 100%; box-sizing: border-box; }

/* Hero */
.profile-hero {
    position: relative; overflow: hidden;
    padding: 52px 24px 40px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}
.profile-hero-bg {
    position: absolute; inset: 0; pointer-events: none;
    background: var(--gradient-hero);
    opacity: 0.7;
}
.profile-hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 80% at 10% 50%, rgba(139,92,246,0.1) 0%, transparent 70%);
}
.profile-hero-inner {
    position: relative; max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.profile-hero-avatar-wrap {
    position: relative; flex-shrink: 0;
}
.profile-hero-avatar {
    width: 100px; height: 100px; border-radius: var(--radius-full);
    object-fit: cover;
    padding: 3px; background: var(--gradient-primary);
    box-shadow: 0 0 0 3px rgba(233,30,140,0.2), var(--shadow-lg);
    display: block;
}
.profile-avatar-placeholder {
    width: 100px; height: 100px; border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; font-weight: 800; color: #fff; letter-spacing: -1px;
    box-shadow: 0 0 0 3px rgba(233,30,140,0.2), var(--shadow-lg);
}
.profile-hero-avatar-badge {
    position: absolute; bottom: 2px; right: 2px;
}
.role-badge {
    display: flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: var(--radius-full);
    font-size: 11px; border: 2px solid var(--bg-card);
}
.role-admin { background: linear-gradient(135deg,#f59e0b,#ef4444); color:#fff; }
.role-streamer { background: var(--gradient-primary); color:#fff; }

.profile-hero-info { flex: 1; min-width: 0; overflow: hidden; }
.profile-hero-name { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 2px; word-break: break-word; overflow-wrap: break-word; }
.profile-hero-username { color: var(--text-muted); font-size: 13.5px; margin-bottom: 8px; word-break: break-all; overflow-wrap: break-word; }
.profile-hero-bio { color: var(--text-secondary); font-size: 14px; line-height: 1.6; max-width: 480px; word-break: break-word; overflow-wrap: break-word; }

.profile-hero-stats {
    display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto;
}
.profile-hero-stat {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 70px; padding: 12px 16px;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(8px);
    text-align: center;
}
.profile-hero-stat strong { font-size: 20px; font-weight: 800; color: var(--text); display: block; line-height: 1; margin-bottom: 4px; }
.profile-hero-stat span { font-size: 11.5px; color: var(--text-muted); font-weight: 500; }

/* Grid Layout */
.profile-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 48px;
    box-sizing: border-box;
}
.profile-col-left { display: flex; flex-direction: column; gap: 20px; }
.profile-col-right { display: flex; flex-direction: column; gap: 20px; }

/* Card */
.profile-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px;
    background-image: var(--gradient-card);
    overflow: hidden; min-width: 0; max-width: 100%; box-sizing: border-box;
}
.profile-card-header {
    font-size: 14px; font-weight: 700; color: var(--text-secondary);
    margin-bottom: 20px; display: flex; align-items: center; gap: 8px;
    padding-bottom: 14px; border-bottom: 1px solid var(--border);
    letter-spacing: 0.01em; text-transform: uppercase; font-size: 11.5px;
}
.profile-card-header i { color: var(--purple-light); }
.profile-card-streamer { border-color: rgba(233,30,140,0.2); background-image: linear-gradient(160deg, rgba(233,30,140,0.05) 0%, transparent 50%); }

/* Avatar Upload */
.avatar-upload-area {
    cursor: pointer; border-radius: var(--radius-md);
    overflow: hidden; position: relative;
    aspect-ratio: 1; width: 100%;
    max-width: 200px; margin: 0 auto;
    display: block;
}
.avatar-upload-preview {
    width: 100%; height: 100%; position: relative;
}
.avatar-upload-preview img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    border-radius: var(--radius-md);
}
.avatar-upload-placeholder {
    width: 100%; height: 100%;
    background: var(--gradient-primary);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    border-radius: var(--radius-md); gap: 8px;
}
.avatar-upload-placeholder i { font-size: 40px; color: rgba(255,255,255,0.5); }
.avatar-upload-placeholder span { font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -1px; }
.avatar-upload-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.55);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; opacity: 0; transition: opacity 0.2s; border-radius: var(--radius-md);
    color: #fff;
}
.avatar-upload-overlay i { font-size: 22px; }
.avatar-upload-overlay span { font-size: 12px; font-weight: 600; }
.avatar-upload-area:hover .avatar-upload-overlay { opacity: 1; }
.avatar-upload-hint { text-align: center; font-size: 11.5px; color: var(--text-dim); margin: 10px 0 0; }

/* Info List */
.profile-info-list { display: flex; flex-direction: column; }
.profile-info-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 11px 0; border-bottom: 1px solid var(--border); gap: 12px;
    min-width: 0;
}
.profile-info-item:last-child { border-bottom: none; }
.pii-label { font-size: 12.5px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.pii-label i { width: 14px; text-align: center; }
.pii-value { font-size: 13px; font-weight: 600; color: var(--text); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.pii-gold { color: var(--gold-light); }
.pii-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
    background: var(--surface-2); color: var(--text-secondary);
}
.pii-badge-gold { background: rgba(245,158,11,0.15); color: var(--gold-light); }
.pii-badge-pink { background: rgba(233,30,140,0.12); color: var(--pink-light); }

.profile-streamer-links { display: flex; flex-direction: column; gap: 10px; }

/* Responsive */
@media (max-width: 900px) {
    .profile-hero { padding: 36px 16px 28px; }
    .profile-hero-stats { margin-left: 0; width: 100%; justify-content: flex-start; }
    .profile-grid { grid-template-columns: 1fr; padding: 0 16px 40px; gap: 16px; max-width: 100%; width: 100%; box-sizing: border-box; }
    .profile-hero-inner { flex-wrap: wrap; padding: 0 16px; max-width: 100%; box-sizing: border-box; }
    .profile-card { padding: 18px; width: 100%; max-width: 100%; box-sizing: border-box; }
    .profile-card-header { font-size: 11px; margin-bottom: 14px; padding-bottom: 10px; }
    .profile-info-item { padding: 9px 0; gap: 10px; }
    .pii-label { font-size: 11.5px; }
    .pii-value { font-size: 12px; max-width: 55%; }
    .container { padding: 0 16px; }
    .auth-page { padding: 48px 16px; }
    .go-live-layout { padding: 0 16px; }
    .preview-card { padding: 18px; }
    .form-card { padding: 18px; }
    .transactions-list { padding: 0 16px; }
    .transaction-item { padding: 14px 12px; }
    .stream-info-bar { padding: 14px 16px; }
    .stream-description { padding: 14px 16px; }
    .empty-state { padding: 48px 16px; }
    .section { padding-left: 16px; padding-right: 16px; }
    .media-grid-layout { grid-template-columns: 1fr !important; padding: 0 16px 40px; gap: 16px; width: 100%; max-width: 100%; box-sizing: border-box; overflow: hidden; }
    .gallery-view-layout { grid-template-columns: 1fr; padding: 0 16px 40px; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); padding: 0 16px 40px; }
    .media-hero { padding: 28px 16px 20px; }
    .media-hero h1 { font-size: 20px; }
    .media-hero p { font-size: 12px; }
    .media-hero-stat { min-width: 70px; padding: 10px 14px; }
    .media-hero-stat strong { font-size: 16px; }
    .media-hero-stat span { font-size: 10px; }
    .media-item { padding: 10px; gap: 10px; }
    .media-item-thumb { width: 46px; height: 46px; }
    .media-item-info strong { font-size: 12px; }
    .media-item-meta { font-size: 10px; gap: 8px; }
    .media-dropzone { padding: 20px 14px; }
    .media-dropzone i { font-size: 22px; }
    .media-dropzone span { font-size: 11px; }
    .media-dropzone small { font-size: 10px; }
    .gallery-header { padding: 20px 16px 14px; }
    .gallery-view-header { padding: 14px 16px; }
}
@media (max-width: 600px) {
    .profile-hero-inner { flex-direction: column; align-items: flex-start; gap: 20px; padding: 0; }
    .profile-hero-stats { gap: 8px; }
    .profile-hero-stat { min-width: 60px; padding: 10px 12px; }
    .profile-hero-stat strong { font-size: 16px; }
    .profile-hero-stat span { font-size: 10px; }
    .profile-grid { padding: 0 12px 32px; }
    .profile-card { padding: 12px; width: 100%; }
    .profile-card-header { font-size: 10px; margin-bottom: 10px; padding-bottom: 7px; }
    .profile-info-item { padding: 6px 0; gap: 4px; }
    .pii-label { font-size: 10px; }
    .pii-label i { width: 11px; font-size: 9px; }
    .pii-value { font-size: 10.5px; max-width: 48%; }
    .media-hero-stat { min-width: 60px; padding: 8px 10px; }
    .media-hero-stat strong { font-size: 14px; }
    .media-hero-stat span { font-size: 9px; }
    .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 12px 32px; }
    .gallery-card-body { padding: 8px 10px; }
    .gallery-card-body strong { font-size: 11px; }
    .container { padding: 0 12px; }
    .auth-page { padding: 32px 12px; }
    .auth-card { padding: 24px 16px; }
    .go-live-layout { padding: 0 12px; }
    .preview-card { padding: 12px; }
    .form-card { padding: 12px; }
    .transactions-list { padding: 0 12px; }
    .transaction-item { padding: 12px 10px; }
    .stream-info-bar { padding: 10px 12px; }
    .stream-description { padding: 12px 12px; }
    .empty-state { padding: 32px 12px; }
    .section { padding-left: 12px; padding-right: 12px; }
    .media-grid-layout { grid-template-columns: 1fr !important; padding: 0 12px 32px; gap: 12px; width: 100%; max-width: 100%; box-sizing: border-box; overflow: hidden; }
    .gallery-view-layout { padding: 0 12px 32px; }
    .gallery-header { padding: 16px 12px 10px; }
    .gallery-view-header { padding: 10px 12px; }
    .media-hero { padding: 20px 12px 16px; }
    .media-hero h1 { font-size: 18px; }
    .media-hero p { font-size: 11px; }
    .media-item { padding: 8px; gap: 8px; }
    .media-item-thumb { width: 40px; height: 40px; }
    .media-item-info strong { font-size: 11px; margin-bottom: 2px; }
    .media-item-meta { font-size: 9px; gap: 6px; }
    .media-dropzone { padding: 16px 10px; }
    .media-dropzone i { font-size: 20px; }
    .media-dropzone span { font-size: 10px; }
    .media-dropzone small { font-size: 9px; }
    .gallery-header h1 { font-size: 18px; }
}

/* ============ Go Live ============ */
.go-live-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.stream-key-display { display: flex; gap: 8px; align-items: center; }
.stream-key-display .form-input { flex: 1; font-family: monospace; font-size: 13px; }
.camera-preview { aspect-ratio: 16/9; background: var(--bg-input); border-radius: var(--radius-md); overflow: hidden; position: relative; border: 1px solid var(--border); }
.camera-preview video { width: 100%; height: 100%; object-fit: cover; }
.camera-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-dim); }
.camera-placeholder i { font-size: 40px; margin-bottom: 14px; opacity: 0.4; }
.preview-controls { display: flex; gap: 8px; margin-top: 14px; }
.preview-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; background-image: var(--gradient-card); }
.preview-card h3 { margin-bottom: 14px; font-size: 16px; display: flex; align-items: center; gap: 10px; }

/* ============ Transactions ============ */
.transactions-list { max-width: 740px; margin: 0 auto; }
.transaction-item { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 10px; transition: var(--transition); background-image: var(--gradient-card); gap: 12px; flex-wrap: wrap; }
.transaction-item:hover { border-color: var(--border-light); transform: translateX(4px); }
.transaction-info { display: flex; align-items: center; gap: 14px; }
.transaction-icon { width: 42px; height: 42px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 15px; }
.transaction-icon.positive { background: rgba(16,185,129,0.12); color: var(--green); }
.transaction-icon.negative { background: rgba(239,68,68,0.12); color: var(--red); }
.transaction-desc { font-weight: 600; font-size: 14px; }
.transaction-date { font-size: 12px; color: var(--text-dim); margin-top: 3px; }
.transaction-amount { font-weight: 800; font-size: 17px; }
.transaction-amount.positive { color: var(--green); }
.transaction-amount.negative { color: var(--red); }

/* ============ Pagination ============ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 36px 0; }
.pagination-info { color: var(--text-muted); font-size: 14px; }

/* ============ Empty ============ */
.empty-state { text-align: center; padding: 72px 24px; }
.empty-state i { font-size: 52px; color: var(--text-dim); margin-bottom: 20px; display: block; opacity: 0.5; }
.empty-state h3 { font-size: 20px; margin-bottom: 10px; font-weight: 700; }
.empty-state p { color: var(--text-muted); max-width: 360px; margin: 0 auto; }

/* ============ Modal ============ */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: var(--transition); }
.modal.active { opacity: 1; visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(8px); }
.modal-content { position: relative; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 0; width: 92%; max-width: 480px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-xl); transform: scale(0.95); transition: var(--transition); background-image: var(--gradient-card); }
.modal.active .modal-content { transform: scale(1); }
.modal-sm { max-width: 400px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.modal-header h2 { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 26px; cursor: pointer; line-height: 1; transition: var(--transition-fast); }
.modal-close:hover { color: var(--text); transform: rotate(90deg); }
.modal-body { padding: 24px; }

/* ============ Footer ============ */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 56px 0 28px; margin-top: 72px; position: relative; }
.footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--gradient-primary); opacity: 0.3; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .nav-logo { font-size: 22px; }
.footer-brand .nav-logo i { font-size: 16px; padding: 7px; border-radius: 8px; background: linear-gradient(135deg, #e91e8c, #8b5cf6); color: #fff; }
.footer-brand p { color: var(--text-muted); margin-top: 14px; font-size: 14px; line-height: 1.7; }
.footer-links h4 { margin-bottom: 16px; font-size: 14px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }
.footer-links a { display: block; color: var(--text-muted); padding: 5px 0; font-size: 14px; transition: var(--transition-fast); }
.footer-links a i { width: 14px; margin-right: 6px; font-size: 11px; display: inline-block; text-align: center; }
.footer-links a:hover { color: var(--pink); transform: translateX(4px); }
.footer-bottom { text-align: center; padding-top: 28px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 13px; }
.footer-bottom .footer-heart { color: var(--pink); }

/* ============ Site Page Modal ============ */
.spm-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 24px;
}
.spm-overlay.active { opacity: 1; visibility: visible; }
.spm-overlay.active .spm-dialog { transform: translateY(0) scale(1); opacity: 1; }
.spm-container {
    width: 100%; max-width: 720px; max-height: calc(100vh - 48px);
    display: flex; flex-direction: column;
}
.spm-dialog {
    display: flex; flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.04) inset;
    overflow: hidden;
    transform: translateY(20px) scale(0.96); opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    max-height: calc(100vh - 48px);
}
.spm-header {
    position: relative;
    display: flex; align-items: center; gap: 16px;
    padding: 22px 28px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    flex-shrink: 0;
}
.spm-header-accent {
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--pink), var(--purple-light), var(--pink));
    opacity: 0.8;
}
.spm-header-content { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.spm-header-icon {
    width: 40px; height: 40px; border-radius: 12px;
    background: linear-gradient(135deg, rgba(233,30,140,0.15), rgba(139,92,246,0.15));
    border: 1px solid rgba(233,30,140,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: var(--pink-light); flex-shrink: 0;
}
.spm-title {
    font-size: 18px; font-weight: 700; color: var(--text);
    letter-spacing: -0.02em; margin: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.spm-close {
    width: 38px; height: 38px; border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-1);
    color: var(--text-muted); font-size: 16px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease; flex-shrink: 0;
}
.spm-close:hover {
    background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.3);
    color: #fca5a5; transform: rotate(90deg);
}
.spm-body {
    padding: 32px 28px;
    overflow-y: auto; flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.spm-body::-webkit-scrollbar { width: 5px; }
.spm-body::-webkit-scrollbar-track { background: transparent; }
.spm-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 10px; }
.spm-body .spinner {
    width: 32px; height: 32px; border-radius: 50%;
    border: 3px solid var(--border); border-top-color: var(--pink);
    animation: spm-spin 0.7s linear infinite;
}
@keyframes spm-spin { to { transform: rotate(360deg); } }
.site-page-content h2 { color: var(--text); font-size: 22px; font-weight: 800; margin: 0 0 16px 0; letter-spacing: -0.02em; }
.site-page-content h3 { color: var(--text); font-size: 16px; font-weight: 700; margin: 28px 0 10px 0; padding-top: 20px; border-top: 1px solid var(--border); letter-spacing: -0.01em; }
.site-page-content h3:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.site-page-content p { color: var(--text-secondary); line-height: 1.75; margin: 0 0 14px 0; font-size: 14px; }
.site-page-content ul { color: var(--text-secondary); line-height: 1.8; padding-left: 0; list-style: none; margin: 0 0 16px 0; }
.site-page-content li { margin-bottom: 8px; padding-left: 20px; position: relative; font-size: 14px; }
.site-page-content li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, var(--pink), var(--purple-light)); }
.site-page-content strong { color: var(--text); font-weight: 600; }
.spm-contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.spm-contact-input { padding: 12px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-1); color: var(--text); font-size: 14px; width: 100%; box-sizing: border-box; }
.spm-contact-textarea { width: 100%; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-1); color: var(--text); font-size: 14px; resize: vertical; margin-bottom: 16px; box-sizing: border-box; }
.spm-contact-subject { width: 100%; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-1); color: var(--text); font-size: 14px; margin-bottom: 16px; box-sizing: border-box; }
.spm-contact-form { margin-top: 24px; }
.spm-contact-result { margin-top: 12px; text-align: center; }
@media (max-width: 640px) {
    .spm-overlay { padding: 12px; }
    .spm-dialog { border-radius: 16px; max-height: calc(100vh - 24px); }
    .spm-header { padding: 16px 20px; gap: 12px; }
    .spm-header-icon { width: 34px; height: 34px; font-size: 14px; border-radius: 10px; }
    .spm-title { font-size: 15px; }
    .spm-close { width: 34px; height: 34px; }
    .spm-body { padding: 24px 20px; }
    .site-page-content h2 { font-size: 18px; }
    .site-page-content h3 { font-size: 14px; }
    .site-page-content p, .site-page-content li { font-size: 13px; }
    .spm-contact-row { grid-template-columns: 1fr; }
}

/* ============ Badges ============ */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; font-size: 11px; font-weight: 600; border-radius: var(--radius-xs); background: var(--surface-2); color: var(--text-secondary); letter-spacing: 0.02em; }
.badge-green { background: rgba(16,185,129,0.12); color: var(--green); }
.badge-red { background: rgba(239,68,68,0.12); color: var(--red-light); }
.badge-blue { background: rgba(59,130,246,0.12); color: var(--blue-light); }
.badge-gold { background: rgba(245,158,11,0.12); color: var(--gold-light); }
.badge-pink { background: rgba(233,30,140,0.12); color: var(--pink-light); }
.badge-purple { background: rgba(139,92,246,0.12); color: var(--purple-light); }
.badge-orange { background: rgba(249,115,22,0.12); color: var(--orange); }
.badge-gray { background: var(--surface-1); color: var(--text-dim); }

/* ============ Responsive ============ */
.hide-mobile { display: inline-flex; }
.hide-mobile-sm { display: inline-flex; }
@media (max-width: 1064px) {
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-links a { font-size: 13px; white-space: nowrap; }
    .footer-links h4 { font-size: 13px; }
}
@media (max-width: 1024px) {
    .nav-container { gap: 16px; }
    .nav-search { max-width: 320px; }
    .hero { padding: 64px 20px 52px; }
    .hero-title { font-size: 48px; }
    .hero-title__line--accent { font-size: 56px; }
    .streams-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}
@media (max-width: 900px) {
    .stream-page-layout {
        grid-template-columns: 1fr;
        height: calc(100vh - 68px); height: calc(100dvh - 68px);
        overflow: hidden;
    }
    .stream-main {
        flex: 1; min-height: 0; overflow: hidden;
        display: flex; flex-direction: column;
    }
    .stream-player { aspect-ratio: auto; flex: 1 1 0; min-height: 0; }
    .stream-player canvas { position: relative; width: 100%; height: 100%; object-fit: contain; }
    .stream-player video { width: 100% !important; height: 100% !important; object-fit: contain !important; }
    .stream-info-bar { padding: 8px 12px; gap: 8px; flex-shrink: 0; }
    .stream-info-bar h3 { font-size: 13px !important; }
    .stream-info-bar p { font-size: 11px !important; }
    .avatar-md { width: 34px; height: 34px; }
    .stream-description { display: none; }
    .stream-actions-bar { flex-shrink: 0; }
    .chat-panel {
        flex: 0 0 180px;
        min-height: 0;
        max-height: none;
        border-left: none;
        border-top: 1px solid var(--border);
    }
    .chat-messages { flex: 1; min-height: 0; }
    .chat-input-area { flex-shrink: 0; padding: 10px 12px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
    .hero { padding: 80px 24px 60px; min-height: 520px; }
    .hero-title { font-size: 42px; }
    .hero-title__line--accent { font-size: 50px; }
    .hero-stat { padding: 10px 16px; }
    .hero-stat__num { font-size: 20px; }
    .hero-glow--1 { width: 500px; height: 350px; }
    .hero-glow--2 { width: 350px; height: 280px; }
    .hero-glow--3 { width: 400px; height: 280px; }
    .hero-glow--4 { width: 300px; height: 300px; }
    .hero-streaks { display: none; }
    .go-live-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) and (orientation: landscape) {
    .stream-page-layout { height: 100vh; height: 100dvh; grid-template-columns: 1fr; }
    .stream-main { flex: 1; min-height: 0; }
    .stream-player { flex: 1; min-height: 0; aspect-ratio: auto; }
    .stream-info-bar { display: none; }
    .chat-panel { display: none; }
}
@media (max-width: 900px) {
    .nav-toggler { display: flex !important; margin-left: auto; margin-right: 4px; z-index: 101; position: relative; }
    .nav-desktop-actions { display: none; }
    .nav-search { display: none; }
    .nav-search-toggle { display: flex; }
    .nav-mobile-menu {
        display: none; position: fixed; top: 68px; left: 0; right: 0;
        max-height: -webkit-calc(100vh - 68px); max-height: calc(100vh - 68px); height: auto;
        background: var(--bg-card); z-index: 98; overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex-direction: column; gap: 0;
        box-shadow: var(--shadow-lg);
        border-bottom: 1px solid var(--border);
        -webkit-animation: navSlideDown 0.25s ease-out;
        animation: navSlideDown 0.25s ease-out;
    }
    @-webkit-keyframes navSlideDown { from { opacity: 0; -webkit-transform: translateY(-8px); transform: translateY(-8px); } to { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); } }
    @keyframes navSlideDown { from { opacity: 0; -webkit-transform: translateY(-8px); transform: translateY(-8px); } to { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); } }
    body.nav-mobile-open .nav-mobile-menu { display: flex; }

    .nav-mobile-top {
        display: flex; align-items: center; justify-content: space-between;
        padding: 14px 20px; border-bottom: 1px solid var(--border);
    }
    .nav-mobile-close {
        width: 36px; height: 36px; border: 1px solid var(--border); border-radius: var(--radius-sm);
        background: var(--surface-1); color: var(--text); cursor: pointer; font-size: 15px;
        display: flex; align-items: center; justify-content: center; transition: var(--transition-fast);
    }
    .nav-mobile-close:hover { border-color: var(--pink); color: var(--pink); }

    .nav-mobile-user {
        display: flex; align-items: center; gap: 12px; padding: 16px 20px;
        border-bottom: 1px solid var(--border);
    }
    .nav-mobile-user img {
        width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
        border: 2px solid var(--pink); padding: 1px; background: var(--gradient-primary);
    }
    .nav-mobile-user-info { flex: 1; min-width: 0; }
    .nav-mobile-user-info strong { display: block; font-size: 15px; color: var(--text); }
    .nav-mobile-user-info small { font-size: 12px; color: var(--text-muted); }
    .nav-mobile-coins { flex-shrink: 0; padding: 6px 12px; font-size: 13px; }

    .nav-mobile-actions {
        display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
        padding: 16px 20px; border-bottom: 1px solid var(--border);
    }
    .nav-mobile-action-btn {
        display: flex; flex-direction: column; align-items: center; gap: 6px;
        padding: 12px 6px; border-radius: var(--radius-sm);
        background: var(--surface-1); border: 1px solid var(--border);
        color: var(--text); text-decoration: none; font-size: 11px; font-weight: 600;
        transition: var(--transition-fast);
    }
    .nav-mobile-action-btn i { font-size: 18px; color: var(--text-muted); }
    .nav-mobile-action-btn:hover { border-color: var(--pink); background: var(--surface-2); }
    .nav-mobile-action-btn:hover i { color: var(--pink); }
    .nav-mobile-action-live { border-color: var(--pink); }
    .nav-mobile-action-live i { color: var(--pink); }

    .nav-mobile-links {
        display: flex; flex-direction: column; padding: 8px 0;
    }
    .nav-mobile-links a {
        display: flex; align-items: center; gap: 14px; padding: 14px 20px;
        color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500;
        transition: var(--transition-fast); border-left: 3px solid transparent;
    }
    .nav-mobile-links a i { font-size: 16px; color: var(--text-muted); width: 20px; text-align: center; }
    .nav-mobile-links a:hover { background: var(--surface-1); border-left-color: var(--pink); }
    .nav-mobile-links a:hover i { color: var(--pink); }
    .nav-mobile-links a.text-gold { color: var(--gold); }
    .nav-mobile-links a.text-gold i { color: var(--gold); }

    .nav-mobile-footer {
        padding: 16px 20px; border-top: 1px solid var(--border);
    }
    .nav-mobile-logout {
        display: flex; align-items: center; justify-content: center; gap: 10px;
        padding: 12px 20px; border-radius: var(--radius-sm);
        background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3);
        color: var(--red); text-decoration: none; font-size: 14px; font-weight: 600;
        transition: var(--transition-fast);
    }
    .nav-mobile-logout:hover { background: rgba(239,68,68,0.2); border-color: var(--red); }

    .nav-mobile-auth {
        display: flex; flex-direction: column; gap: 12px; padding: 24px 20px;
    }

    .nav-toggler.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .nav-toggler.active span:nth-child(2) { opacity: 0; }
    .nav-toggler.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

@media (max-width: 640px) {
    .hero { padding: 56px 16px 44px; min-height: auto; }
    .hero-title { font-size: 30px; }
    .hero-title__line--accent { font-size: 36px; }
    .hero-subtitle { font-size: 15px; margin-bottom: 28px; }
    .hero-stats { flex-direction: column; gap: 0; width: 100%; max-width: 320px; }
    .hero-stat__divider { width: 100%; height: 1px; }
    .hero-stat { justify-content: flex-start; }
    .hero-actions { flex-direction: column; align-items: center; width: 100%; }
    .btn-hero-primary, .btn-hero-outline { width: 100%; max-width: 320px; justify-content: center; }
    .hero-trust { flex-wrap: wrap; justify-content: center; gap: 6px; }
    .streams-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
    .coins-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .profile-header { flex-direction: column; text-align: center; }
    .profile-stats { justify-content: center; }
    .form-row-2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .auth-card { padding: 32px 24px; }
    .categories-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
}

@media (max-width: 420px) {
    .main-content { padding-top: 60px; }
    .navbar { padding: 0 12px; height: 60px; }
    .nav-container { gap: 8px; }
    .nav-logo { font-size: 17px; gap: 6px; }
    .nav-logo i { font-size: 14px; padding: 6px; }
    .nav-mobile-menu { top: 60px; max-height: -webkit-calc(100vh - 60px); max-height: calc(100vh - 60px); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-links a { font-size: 11px; padding: 2px 0; white-space: nowrap; }
    .footer-links a i { width: 11px; margin-right: 3px; font-size: 9px; }
    .footer-links h4 { font-size: 10px; margin-bottom: 6px; }
    .nav-icon-btn { width: 34px; height: 34px; font-size: 13px; }
    .btn-coins { padding: 6px 10px; font-size: 12px; gap: 4px; }
    .nav-avatar { width: 34px; height: 34px; }
    .nav-toggler { width: 34px; height: 34px; }
    .nav-toggler span { width: 20px; }
}

@media (max-width: 380px) {
    .hide-mobile-sm { display: none; }
    .container { padding: 0 10px; }
    .navbar { padding: 0 8px; height: 60px; }
    .nav-container { gap: 8px; }
    .nav-mobile-menu { top: 60px; max-height: -webkit-calc(100vh - 60px); max-height: calc(100vh - 60px); }
    .nav-logo { font-size: 16px; gap: 6px; }
    .nav-logo i { font-size: 13px; }
    .nav-icon-btn { width: 32px; height: 32px; font-size: 13px; }
    .btn-coins { padding: 6px 10px; font-size: 12px; }
    .btn-coins span { font-size: 12px; }
    .nav-avatar { width: 32px; height: 32px; }
    .nav-lang-switch a { padding: 4px 6px; font-size: 11px; }
    .hero { padding: 40px 12px 32px; }
    .hero-title { font-size: 24px; }
    .hero-title__line--accent { font-size: 28px; }
    .hero-subtitle { font-size: 13px; margin-bottom: 20px; }
    .hero-badge { font-size: 11px; padding: 5px 12px; }
    .hero-stat__num { font-size: 18px; }
    .hero-stat__label { font-size: 11px; }
    .hero-trust { font-size: 11px; gap: 4px; }
    .hero-trust__sep { display: none; }
    .section { padding: 32px 0; }
    .section-header h2 { font-size: 18px; }
    .featured-carousel .streamer-week-card { flex: 0 0 130px; min-width: 130px; }
    .streamer-week-info { padding: 10px 12px; }
    .streamer-week-info strong { font-size: 13px; }
    .streamer-week-info small { font-size: 11px; }
    .streamer-week-stats { gap: 8px; font-size: 11px; }
    .stream-card { border-radius: var(--radius-sm); }
    .stream-info { padding: 10px; }
    .stream-title { font-size: 13px; }
    .stream-streamer { font-size: 12px; }
    .stream-meta { gap: 8px; font-size: 11px; }
    .stream-avatar { width: 32px; height: 32px; }
    .stream-live-badge { font-size: 9px; padding: 3px 6px; top: 8px; left: 8px; }
    .stream-viewer-count { font-size: 10px; padding: 3px 6px; bottom: 8px; right: 8px; }
    .btn { padding: 8px 14px; font-size: 12px; }
    .btn-lg { padding: 10px 16px; font-size: 13px; }
    .btn-block { width: 100%; }
    .form-input { font-size: 13px; padding: 10px 12px; }
    .form-label { font-size: 12px; }
    .form-hint { font-size: 11px; }
    .form-group { margin-bottom: 14px; }
    .page-header h1 { font-size: 20px; }
    .page-header p { font-size: 12px; }
    .profile-hero { padding: 20px 12px; }
    .profile-hero-name { font-size: 18px; }
    .profile-hero-username { font-size: 12px; }
    .profile-hero-bio { font-size: 12px; }
    .profile-hero-stats { gap: 12px; }
    .profile-hero-stat-num { font-size: 18px; }
    .profile-hero-stat-label { font-size: 10px; }
    .profile-card { padding: 14px; }
    .profile-card-header { font-size: 13px; }
    .profile-col-left, .profile-col-right { padding: 0; }
    .profile-layout { grid-template-columns: 1fr; gap: 12px; padding: 12px; }
    .call-settings-layout { grid-template-columns: 1fr; gap: 12px; padding: 12px; }
    .go-live-layout { grid-template-columns: 1fr; gap: 12px; }
    .form-card { padding: 14px; }
    .form-row-2 { grid-template-columns: 1fr; gap: 10px; }
    .form-row { grid-template-columns: 1fr; }
    .empty-state { padding: 32px 16px; }
    .empty-state h3 { font-size: 16px; }
    .empty-state p { font-size: 12px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
    .footer { padding: 32px 0 20px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-brand p { font-size: 11px; margin-top: 8px; }
    .footer-links a { font-size: 11px; padding: 3px 0; }
    .footer-links a i { width: 12px; margin-right: 4px; font-size: 9px; }
    .footer-links h4 { font-size: 11px; margin-bottom: 8px; }
    .stream-info-bar { flex-wrap: wrap; gap: 8px; padding: 8px 10px; }
    .stream-info-left { flex: 1; min-width: 0; }
    .stream-info-right { width: 100%; justify-content: flex-start; gap: 8px; }
    .stream-info-right .btn { padding: 6px 10px; font-size: 11px; }
    .chat-panel { min-width: 0; flex: 0 0 140px !important; }
    .chat-message { font-size: 12px; }
    .chat-input { font-size: 12px; padding: 8px 10px; }
    .modal-content { margin: 10px; max-width: calc(100% - 20px); }
    .modal-header { padding: 14px 16px; font-size: 15px; }
    .modal-body { padding: 14px 16px; }
    .coins-grid { grid-template-columns: 1fr; }
    .auth-card { padding: 20px 14px; }
    .auth-card h2 { font-size: 18px; }
    .role-select { grid-template-columns: 1fr; }
    .toggle-switch { width: 40px; height: 22px; }
    .toggle-slider::before { width: 16px; height: 16px; }
    .toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }
    .broadcast-stats { gap: 8px; }
    .bstat { padding: 8px 10px; }
    .bstat-value { font-size: 13px; }
    .bstat-label { font-size: 10px; }
    .pagination { gap: 4px; }
    .pagination a, .pagination span { padding: 6px 10px; font-size: 12px; }
    .week-badge { font-size: 11px; padding: 4px 10px; }
    .section-filters { gap: 6px; }
    .filter-form select { font-size: 11px; padding: 6px 24px 6px 10px; }
}

@media (max-width: 280px) {
    .container { padding: 0 6px; }
    .navbar { padding: 0 6px; height: 56px; }
    .nav-container { gap: 4px; }
    .nav-logo { font-size: 14px; gap: 4px; }
    .nav-logo i { font-size: 11px; }
    .nav-icon-btn { width: 28px; height: 28px; font-size: 11px; }
    .nav-avatar { width: 28px; height: 28px; }
    .hero { padding: 28px 8px 24px; }
    .hero-title { font-size: 20px; }
    .hero-title__line--accent { font-size: 22px; }
    .hero-subtitle { font-size: 11px; margin-bottom: 16px; line-height: 1.5; }
    .hero-badge { font-size: 10px; padding: 4px 8px; }
    .hero-stat { padding: 6px 10px; }
    .hero-stat__num { font-size: 15px; }
    .hero-stat__label { font-size: 9px; }
    .hero-stat__icon { font-size: 12px; }
    .hero-trust { font-size: 9px; gap: 2px; }
    .hero-trust i { font-size: 10px; }
    .section { padding: 24px 0; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .section-header h2 { font-size: 15px; }
    .featured-carousel .streamer-week-card { flex: 0 0 110px; min-width: 110px; }
    .featured-carousel { gap: 10px; }
    .streamer-week-info { padding: 8px 10px; }
    .streamer-week-info strong { font-size: 12px; }
    .streamer-week-info small { font-size: 10px; }
    .streamer-week-stats { gap: 6px; font-size: 10px; flex-wrap: wrap; }
    .stream-info { padding: 8px; }
    .stream-title { font-size: 12px; }
    .stream-streamer { font-size: 11px; }
    .stream-meta { gap: 6px; font-size: 10px; flex-wrap: wrap; }
    .stream-avatar { width: 28px; height: 28px; }
    .stream-live-badge { font-size: 8px; padding: 2px 5px; top: 6px; left: 6px; }
    .stream-viewer-count { font-size: 9px; padding: 2px 5px; bottom: 6px; right: 6px; }
    .stream-play-overlay i { width: 36px; height: 36px; font-size: 13px; }
    .btn { padding: 7px 10px; font-size: 11px; gap: 4px; }
    .btn-lg { padding: 8px 12px; font-size: 12px; }
    .btn i { font-size: 11px; }
    .form-input { font-size: 12px; padding: 8px 10px; }
    .form-label { font-size: 11px; }
    .form-hint { font-size: 10px; }
    .form-group { margin-bottom: 10px; }
    .page-header h1 { font-size: 17px; }
    .page-header p { font-size: 11px; }
    .profile-hero { padding: 16px 8px; }
    .profile-hero-name { font-size: 16px; }
    .profile-hero-bio { font-size: 11px; line-height: 1.5; }
    .profile-hero-stats { gap: 8px; flex-wrap: wrap; }
    .profile-hero-stat-num { font-size: 15px; }
    .profile-hero-stat-label { font-size: 9px; }
    .profile-card { padding: 10px; }
    .profile-card-header { font-size: 12px; }
    .profile-layout { padding: 8px; gap: 10px; }
    .call-settings-layout { padding: 8px; gap: 10px; }
    .form-card { padding: 10px; }
    .empty-state { padding: 24px 10px; }
    .empty-state i { font-size: 32px; }
    .empty-state h3 { font-size: 14px; }
    .empty-state p { font-size: 11px; }
    .footer { padding: 24px 0 16px; }
    .footer-grid { gap: 16px; }
    .footer-brand p { font-size: 11px; }
    .footer-links a { font-size: 10px; padding: 2px 0; }
    .footer-links h4 { font-size: 10px; margin-bottom: 6px; }
    .footer-bottom { font-size: 11px; }
    .stream-info-bar { padding: 6px 8px; gap: 6px; }
    .stream-info-right .btn { padding: 5px 8px; font-size: 10px; }
    .chat-message { font-size: 11px; }
    .chat-input { font-size: 11px; padding: 6px 8px; }
    .chat-input-area { padding: 6px 8px; }
    .modal-content { margin: 6px; max-width: calc(100% - 12px); }
    .modal-header { padding: 10px 12px; font-size: 13px; }
    .modal-body { padding: 10px 12px; }
    .modal-close { width: 24px; height: 24px; font-size: 14px; }
    .auth-card { padding: 16px 10px; }
    .auth-card h2 { font-size: 15px; }
    .toggle-switch { width: 34px; height: 18px; }
    .toggle-slider::before { width: 12px; height: 12px; }
    .toggle-switch input:checked + .toggle-slider::before { transform: translateX(16px); }
    .broadcast-stats { flex-direction: column; gap: 6px; }
    .pagination a, .pagination span { padding: 4px 8px; font-size: 11px; }
    .week-badge { font-size: 10px; padding: 3px 8px; }
    .user-dropdown { min-width: 200px; }
    .user-dropdown a { font-size: 12px; padding: 8px 12px; }
    .dropdown-header strong { font-size: 13px; }
    .dropdown-header small { font-size: 11px; }
}

@media (max-width: 360px) {
    .navbar { padding: 0 8px; height: 58px; }
    .nav-container { gap: 6px; }
    .nav-logo { font-size: 15px; gap: 5px; }
    .nav-logo i { font-size: 12px; padding: 5px; }
    .nav-icon-btn { width: 30px; height: 30px; font-size: 12px; }
    .nav-toggler { width: 32px; height: 32px; }
    .nav-mobile-menu { padding: 14px 16px; }
    .hero { padding: 32px 10px 28px; }
    .hero-title { font-size: 22px; }
    .hero-title__line--accent { font-size: 26px; }
    .streams-grid { grid-template-columns: 1fr; }
    .coins-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 16px; }
    .footer-brand { grid-column: 1; }
    .auth-card { padding: 16px 10px; }
    .container { padding: 0 8px; }
}

@media (max-width: 320px) {
    .navbar { padding: 0 6px; height: 56px; }
    .nav-container { gap: 4px; }
    .nav-logo { font-size: 14px; gap: 4px; }
    .nav-logo i { font-size: 11px; padding: 5px; }
    .nav-icon-btn { width: 28px; height: 28px; font-size: 11px; }
    .nav-search-toggle { width: 28px; height: 28px; }
    .nav-toggler { width: 30px; height: 30px; padding: 6px 5px; }
    .nav-toggler span { height: 1.5px; }
    .nav-mobile-menu { top: 56px; max-height: -webkit-calc(100vh - 56px); max-height: calc(100vh - 56px); }
    .nav-mobile-top { padding: 12px 14px; }
    .nav-mobile-user { padding: 14px 14px; }
    .nav-mobile-user img { width: 40px; height: 40px; }
    .nav-mobile-actions { grid-template-columns: repeat(2, 1fr); padding: 12px 14px; }
    .nav-mobile-action-btn { padding: 10px 6px; }
    .nav-mobile-links a { padding: 12px 14px; font-size: 13px; }
    .nav-mobile-footer { padding: 14px 14px; }
    .nav-mobile-auth { padding: 18px 14px; }
    .hero { padding: 28px 8px 24px; }
    .hero-title { font-size: 20px; }
    .hero-title__line--accent { font-size: 24px; }
    .hero-subtitle { font-size: 12px; margin-bottom: 16px; line-height: 1.5; }
    .hero-badge { font-size: 10px; padding: 4px 8px; }
    .hero-stat { padding: 6px 10px; }
    .hero-stat__num { font-size: 16px; }
    .hero-stat__label { font-size: 10px; }
    .hero-trust { font-size: 10px; gap: 3px; }
    .section { padding: 28px 0; }
    .section-header h2 { font-size: 16px; }
    .featured-carousel .streamer-week-card { flex: 0 0 120px; min-width: 120px; }
    .streamer-week-info { padding: 8px 10px; }
    .streamer-week-info strong { font-size: 12px; }
    .streamer-week-info small { font-size: 10px; }
    .stream-info { padding: 8px; }
    .stream-title { font-size: 12px; }
    .stream-streamer { font-size: 11px; }
    .stream-meta { gap: 6px; font-size: 10px; flex-wrap: wrap; }
    .stream-avatar { width: 28px; height: 28px; }
    .stream-live-badge { font-size: 8px; padding: 2px 5px; top: 6px; left: 6px; }
    .stream-viewer-count { font-size: 9px; padding: 2px 5px; bottom: 6px; right: 6px; }
    .btn { padding: 7px 10px; font-size: 11px; gap: 4px; }
    .btn-lg { padding: 8px 12px; font-size: 12px; }
    .btn i { font-size: 11px; }
    .form-input { font-size: 12px; padding: 8px 10px; }
    .form-label { font-size: 11px; }
    .form-hint { font-size: 10px; }
    .form-group { margin-bottom: 10px; }
    .page-header h1 { font-size: 17px; }
    .page-header p { font-size: 11px; }
    .profile-hero { padding: 16px 8px; }
    .profile-hero-name { font-size: 16px; }
    .profile-hero-bio { font-size: 11px; line-height: 1.5; }
    .profile-hero-stats { gap: 8px; flex-wrap: wrap; }
    .profile-hero-stat-num { font-size: 15px; }
    .profile-hero-stat-label { font-size: 9px; }
    .profile-card { padding: 10px; }
    .profile-card-header { font-size: 12px; }
    .profile-layout { padding: 8px; gap: 10px; }
    .call-settings-layout { padding: 8px; gap: 10px; }
    .form-card { padding: 10px; }
    .empty-state { padding: 24px 10px; }
    .empty-state i { font-size: 32px; }
    .empty-state h3 { font-size: 14px; }
    .empty-state p { font-size: 11px; }
    .footer { padding: 24px 0 16px; }
    .footer-grid { grid-template-columns: 1fr; gap: 14px; }
    .footer-brand { grid-column: 1; }
    .footer-brand p { font-size: 10px; }
    .footer-links a { font-size: 10px; padding: 2px 0; }
    .footer-links h4 { font-size: 10px; margin-bottom: 6px; }
    .footer-bottom { font-size: 10px; }
    .stream-info-bar { padding: 6px 8px; gap: 6px; }
    .stream-info-right .btn { padding: 5px 8px; font-size: 10px; }
    .chat-message { font-size: 11px; }
    .chat-input { font-size: 11px; padding: 6px 8px; }
    .chat-input-area { padding: 6px 8px; }
    .modal-content { margin: 6px; max-width: calc(100% - 12px); }
    .modal-header { padding: 10px 12px; font-size: 13px; }
    .modal-body { padding: 10px 12px; }
    .modal-close { width: 24px; height: 24px; font-size: 14px; }
    .auth-card { padding: 16px 10px; }
    .auth-card h2 { font-size: 15px; }
    .toggle-switch { width: 34px; height: 18px; }
    .toggle-slider::before { width: 12px; height: 12px; }
    .toggle-switch input:checked + .toggle-slider::before { transform: translateX(16px); }
    .broadcast-stats { flex-direction: column; gap: 6px; }
    .pagination a, .pagination span { padding: 4px 8px; font-size: 11px; }
    .week-badge { font-size: 10px; padding: 3px 8px; }
    .user-dropdown { min-width: 200px; }
    .user-dropdown a { font-size: 12px; padding: 8px 12px; }
    .dropdown-header strong { font-size: 13px; }
    .dropdown-header small { font-size: 11px; }
    .coins-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: 1fr 1fr; }
    .container { padding: 0 6px; }
}

/* ============ Animations ============ */
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
.main-content { animation: pageIn 0.4s var(--ease-out); padding-top: 68px; }

/* ============ Role Selection (Register) ============ */
.role-select { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.role-option input { display: none; }
.role-card {
    display: flex; align-items: center; gap: 14px; padding: 16px;
    background: var(--bg-input); border: 2px solid var(--border);
    border-radius: var(--radius-md); cursor: pointer;
    transition: var(--transition);
}
.role-card:hover { border-color: var(--border-active); }
.role-card.selected { border-color: var(--pink); background: rgba(233,30,140,0.06); }
.role-icon {
    width: 44px; height: 44px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
    background: rgba(139,92,246,0.1); color: var(--purple-light);
}
.role-card.selected .role-icon {
    background: var(--gradient-primary); color: #fff;
}
.role-info strong { display: block; font-size: 14px; font-weight: 700; }
.role-info small { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

.gender-select { display: flex; gap: 10px; }
.gender-option input { display: none; }
.gender-pill {
    padding: 10px 24px; border-radius: var(--radius-full);
    background: var(--bg-input); border: 2px solid var(--border);
    cursor: pointer; font-size: 14px; font-weight: 600;
    color: var(--text-secondary); transition: var(--transition);
    display: inline-flex; align-items: center; gap: 8px;
}
.gender-pill:hover { border-color: var(--border-active); }
.gender-pill.selected { border-color: var(--pink); background: rgba(233,30,140,0.06); color: var(--pink-light); }

.role-hint {
    display: flex; align-items: flex-start; gap: 8px; margin-top: 10px;
    padding: 10px 14px; border-radius: var(--radius-sm);
    font-size: 13px; line-height: 1.5;
}
.role-hint i { flex-shrink: 0; margin-top: 2px; }
.role-hint--info { background: rgba(59,130,246,0.08); color: var(--blue-light); border: 1px solid rgba(59,130,246,0.15); }
.role-hint--success { background: rgba(16,185,129,0.08); color: var(--green-light); border: 1px solid rgba(16,185,129,0.15); }
.role-hint--error { background: rgba(239,68,68,0.08); color: var(--red-light); border: 1px solid rgba(239,68,68,0.15); }

/* ============ Broadcast Status ============ */
.broadcast-status { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.status-dot.connecting { background: var(--gold); animation: pulse 1.5s infinite; }
.status-dot.connected { background: var(--blue-light); }
.status-dot.live { background: var(--green); animation: pulse 1.5s infinite; box-shadow: 0 0 8px rgba(16,185,129,0.5); }
.status-dot.error { background: var(--red); }
.broadcast-stats { display: flex; gap: 16px; }
.bstat { display: flex; flex-direction: column; gap: 2px; }
.bstat-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.bstat-value { font-size: 14px; font-weight: 700; }

/* ============ Broadcast Live Modal ============ */
.broadcast-modal {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(0,0,0,0.92); backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.35s var(--ease-out);
}
.broadcast-modal.active { opacity: 1; visibility: visible; }
.broadcast-modal__inner {
    display: grid; grid-template-columns: 1fr 380px;
    width: 95vw; max-width: 1400px; height: 85vh; max-height: 800px;
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: 0 32px 80px rgba(0,0,0,0.6);
    transform: scale(0.95); transition: transform 0.35s var(--ease-out);
}
.broadcast-modal.active .broadcast-modal__inner { transform: scale(1); }

/* Stream side */
.broadcast-modal__stream {
    background: #000; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.broadcast-modal__video-wrap {
    width: 100%; height: 100%; position: relative;
}
.broadcast-modal__video-wrap video {
    width: 100%; height: 100%; object-fit: cover;
}
.broadcast-modal__placeholder {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; color: var(--text-dim);
    font-size: 14px;
}

/* Overlay (always visible) */
.broadcast-modal__overlay {
    position: absolute; inset: 0; z-index: 2;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 16px; pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 25%, transparent 70%, rgba(0,0,0,0.5) 100%);
}
.broadcast-modal__top-bar {
    display: flex; align-items: center; gap: 10px;
}
.broadcast-modal__live-badge {
    background: var(--red); color: #fff; font-size: 12px; font-weight: 800;
    padding: 5px 14px; border-radius: var(--radius-xs);
    display: flex; align-items: center; gap: 6px;
    box-shadow: 0 2px 10px rgba(239,68,68,0.5);
    letter-spacing: 0.06em;
}
.broadcast-modal__live-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #fff;
    animation: pulse 1.5s infinite;
}
.broadcast-modal__viewers {
    background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
    color: #fff; font-size: 12px; font-weight: 600; padding: 5px 12px;
    border-radius: var(--radius-xs); display: flex; align-items: center; gap: 5px;
}
.broadcast-modal__quality {
    background: rgba(139,92,246,0.7); backdrop-filter: blur(8px);
    color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px;
    border-radius: var(--radius-xs); letter-spacing: 0.04em;
}
.broadcast-modal__duration {
    background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
    color: var(--text-secondary); font-size: 12px; font-weight: 600; padding: 5px 12px;
    border-radius: var(--radius-xs); font-family: 'Fira Code', monospace;
    margin-left: auto;
}
.broadcast-modal__bottom-bar {
    display: flex; align-items: center; gap: 10px; pointer-events: auto;
}
.broadcast-modal__stream-info {
    flex: 1; text-align: center; color: #fff; font-size: 13px;
}
.broadcast-modal__stream-info strong { display: block; font-weight: 700; }
.broadcast-modal__stream-info span { font-size: 12px; color: rgba(255,255,255,0.6); }

/* Control buttons in modal */
.bm-ctrl {
    width: 42px; height: 42px; border-radius: 50%; border: none;
    background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
    color: #fff; font-size: 15px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.bm-ctrl:hover { background: rgba(255,255,255,0.25); transform: scale(1.1); }
.bm-ctrl--off { background: rgba(239,68,68,0.7); }
.bm-ctrl--off:hover { background: rgba(239,68,68,0.9); }
.bm-ctrl--close { background: rgba(255,255,255,0.1); }
.bm-ctrl--close:hover { background: rgba(255,255,255,0.2); }
.bm-ctrl--screen { background: rgba(59,130,246,0.3); }
.bm-ctrl--screen:hover { background: rgba(59,130,246,0.5); }

/* Chat side */
.broadcast-modal__chat {
    display: flex; flex-direction: column;
    background: var(--bg-secondary); border-left: 1px solid var(--border);
}
.bm-chat-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px; border-bottom: 1px solid var(--border);
}
.bm-chat-header h3 { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.bm-chat-viewers { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.bm-chat-messages {
    flex: 1; overflow-y: auto; padding: 14px;
    scroll-behavior: smooth;
}
.bm-chat-input { border-top: 1px solid var(--border); padding: 14px; }

/* ============ Broadcast Modal Responsive ============ */
@media (max-width: 900px) {
    .broadcast-modal__inner {
        grid-template-columns: 1fr;
        width: 100vw; height: 100vh; max-height: none;
        border-radius: 0;
    }
    .broadcast-modal__stream { max-height: 45vh; }
    .broadcast-modal__chat { max-height: 55vh; }
    .role-select { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .broadcast-modal__stream { max-height: 35vh; }
    .broadcast-modal__chat { max-height: 65vh; }
    .bm-ctrl { width: 36px; height: 36px; font-size: 13px; }
}

/* ============ Form Hints ============ */
.form-hint { display: block; font-size: 12px; color: var(--text-dim); margin-top: 6px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.form-label i { width: 14px; text-align: center; }

/* ============ Media Manager ============ */
.media-page { min-height: calc(100vh - 70px); overflow-x: hidden; width: 100%; box-sizing: border-box; }
.media-hero {
    padding: 40px 24px 32px; background: var(--bg-card);
    border-bottom: 1px solid var(--border); margin-bottom: 28px;
    background-image: var(--gradient-hero);
}
.media-hero-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.media-hero h1 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.media-hero p { color: var(--text-muted); font-size: 14px; }
.media-hero-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.media-hero-stat {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 90px; padding: 14px 20px;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border);
    border-radius: var(--radius-md); text-align: center;
}
.media-hero-stat strong { font-size: 20px; font-weight: 800; color: var(--text); line-height: 1; margin-bottom: 4px; }
.media-hero-stat span { font-size: 11.5px; color: var(--text-muted); }
.media-hero-stat-gold strong { color: var(--gold-light); }

.media-grid-layout {
    display: grid; grid-template-columns: 340px 1fr; gap: 24px;
    max-width: 1200px; margin: 0 auto; padding: 0 24px 48px;
    width: 100%; box-sizing: border-box;
}

.media-dropzone {
    border: 2px dashed var(--border-light); border-radius: var(--radius-md);
    padding: 28px 20px; text-align: center; cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.media-dropzone:hover { border-color: var(--pink); background: var(--pink-subtle); }
.media-dropzone i { font-size: 28px; color: var(--text-dim); }
.media-dropzone span { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.media-dropzone small { font-size: 11px; color: var(--text-dim); }

.media-items { display: flex; flex-direction: column; gap: 10px; }
.media-item {
    display: flex; align-items: center; gap: 14px;
    padding: 12px; background: var(--surface-1); border: 1px solid var(--border);
    border-radius: var(--radius-md); transition: border-color 0.2s;
}
.media-item:hover { border-color: var(--border-light); }
.media-item-inactive { opacity: 0.5; }
.media-item-thumb {
    width: 56px; height: 56px; border-radius: var(--radius-sm);
    overflow: hidden; flex-shrink: 0; position: relative;
    background: var(--bg-input);
}
.media-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-item-video-icon {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: var(--gradient-primary); color: rgba(255,255,255,0.7); font-size: 20px;
}
.media-type-badge {
    position: absolute; bottom: 2px; right: 2px;
    font-size: 9px; font-weight: 700; padding: 1px 5px;
    background: rgba(0,0,0,0.6); color: #fff; border-radius: 4px;
    text-transform: uppercase;
}
.media-item-info { flex: 1; min-width: 0; }
.media-item-info strong { font-size: 14px; display: block; margin-bottom: 4px; }
.media-item-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-muted); flex-wrap: wrap; }
.media-earning { color: var(--gold-light) !important; font-weight: 600; }
.media-item-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ============ Gallery ============ */
.gallery-page { min-height: calc(100vh - 70px); }
.gallery-header {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 32px 24px 20px; max-width: 1200px; margin: 0 auto; flex-wrap: wrap;
}
.gallery-header h1 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.gallery-header p { color: var(--text-muted); font-size: 14px; }
.gallery-filter-pills { display: flex; gap: 6px; flex-wrap: wrap; }

.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px; max-width: 1200px; margin: 0 auto; padding: 0 24px 48px;
}
.gallery-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
    text-decoration: none; color: inherit; display: block;
    background-image: var(--gradient-card);
}
.gallery-card:hover { transform: translateY(-3px); border-color: var(--border-light); }
.gallery-card-thumb {
    aspect-ratio: 4/3; position: relative; overflow: hidden; background: var(--bg-input);
}
.gallery-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-card-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: var(--gradient-primary); font-size: 36px; color: rgba(255,255,255,0.5);
}
.gallery-card-locked {
    position: absolute; top: 10px; right: 10px;
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 12px; backdrop-filter: blur(4px);
}
.gallery-card-type {
    position: absolute; bottom: 8px; left: 8px;
    font-size: 10px; font-weight: 600; padding: 3px 8px;
    background: rgba(0,0,0,0.6); color: #fff; border-radius: 999px; backdrop-filter: blur(4px);
}
.gallery-card-body { padding: 14px 16px; }
.gallery-card-body strong { font-size: 13.5px; display: block; margin-bottom: 8px; }
.gallery-card-creator { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.gallery-card-creator img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.gallery-card-creator span { font-size: 12px; color: var(--text-muted); }
.gallery-card-footer { display: flex; justify-content: space-between; align-items: center; }
.gallery-card-price { font-size: 13px; font-weight: 700; color: var(--gold-light); display: flex; align-items: center; gap: 4px; }
.gallery-card-owned { font-size: 12px; font-weight: 600; color: var(--green-light); display: flex; align-items: center; gap: 4px; }
.gallery-card-sales { font-size: 11px; color: var(--text-dim); }

/* Gallery View */
.gallery-view-header { padding: 20px 24px; max-width: 1200px; margin: 0 auto; }
.gallery-view-layout {
    display: grid; grid-template-columns: 1fr 320px; gap: 24px;
    max-width: 1200px; margin: 0 auto; padding: 0 24px 48px;
}
.gallery-view-media {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; min-height: 400px;
    display: flex; align-items: center; justify-content: center;
}
.gallery-full-media { max-width: 100%; max-height: 70vh; object-fit: contain; display: block; }
.gallery-locked { position: relative; width: 100%; }
.gallery-locked-blur { filter: blur(24px) brightness(0.4); overflow: hidden; }
.gallery-locked-blur img { width: 100%; max-height: 400px; object-fit: cover; display: block; }
.gallery-locked-placeholder {
    width: 100%; height: 300px; display: flex; align-items: center; justify-content: center;
    background: var(--bg-input); font-size: 60px; color: var(--text-dim);
}
.gallery-locked-overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 12px; text-align: center;
    color: #fff; padding: 20px;
}
.gallery-locked-overlay i { font-size: 40px; color: var(--gold-light); }
.gallery-locked-overlay h3 { font-size: 20px; font-weight: 700; }
.gallery-locked-overlay p { font-size: 14px; color: var(--text-secondary); }
.gallery-locked-balance { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.gallery-not-enough { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.gallery-not-enough-warning {
    background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.25);
    border-radius: var(--radius-sm); padding: 10px 16px;
    font-size: 13px; color: #fca5a5; text-align: center;
}
.gallery-not-enough-warning i { margin-right: 4px; }

.gallery-view-info {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px; background-image: var(--gradient-card);
}
.gallery-view-info h2 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.gallery-view-creator { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.gallery-view-creator img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.gallery-view-creator strong { display: block; font-size: 14px; }
.gallery-view-creator small { font-size: 12px; color: var(--text-muted); }
.gallery-view-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.gallery-view-meta { display: flex; flex-direction: column; gap: 8px; }
.gallery-view-meta span { font-size: 12.5px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.gallery-view-meta i { width: 16px; text-align: center; }

/* ============ Streamer of the Week ============ */
.week-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 999px;
    background: rgba(245,158,11,0.12); color: var(--gold-light);
    font-size: 13px; font-weight: 600;
}
.featured-carousel-wrap { position: relative; }
.featured-carousel {
    display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth;
    padding-bottom: 8px; scrollbar-width: none; -ms-overflow-style: none;
}
.featured-carousel::-webkit-scrollbar { display: none; }
.featured-carousel .streamer-week-card {
    flex: 0 0 240px; min-width: 240px;
}
.carousel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text); font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 5; transition: var(--transition);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.carousel-arrow:hover { background: var(--pink); color: #fff; border-color: var(--pink); box-shadow: 0 4px 20px rgba(233,30,140,0.4); }
.carousel-arrow--left { left: -22px; }
.carousel-arrow--right { right: -22px; }
.carousel-arrow:disabled { opacity: 0.3; cursor: default; }
.carousel-arrow:disabled:hover { background: var(--bg-card); color: var(--text); border-color: var(--border); box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
@media (max-width: 768px) {
    .carousel-arrow { width: 36px; height: 36px; font-size: 14px; }
    .carousel-arrow--left { left: -7px; }
    .carousel-arrow--right { right: -7px; }
    .featured-carousel .streamer-week-card { flex: 0 0 160px; min-width: 160px; }
}
.streamer-week-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    text-decoration: none; color: inherit;
    transition: transform 0.2s, border-color 0.2s;
    background-image: var(--gradient-card);
}
.streamer-week-card:hover { transform: translateY(-3px); border-color: var(--border-light); }
.streamer-week-avatar {
    position: relative; aspect-ratio: 1; overflow: hidden;
}
.streamer-week-avatar img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.3s;
}
.streamer-week-card:hover .streamer-week-avatar img { transform: scale(1.05); }
.streamer-week-live {
    position: absolute; top: 10px; right: 10px;
    background: var(--red); color: #fff;
    font-size: 10px; font-weight: 700; padding: 3px 10px;
    border-radius: 999px; display: flex; align-items: center; gap: 4px;
    box-shadow: 0 2px 8px rgba(239,68,68,0.4);
}
.streamer-week-live i { font-size: 7px; animation: pulse 1.5s infinite; }
.streamer-week-info { padding: 14px 16px; }
.streamer-week-info strong { font-size: 15px; font-weight: 700; display: block; margin-bottom: 2px; }
.streamer-week-info small { font-size: 12px; color: var(--text-muted); display: block; margin-bottom: 10px; }
.streamer-week-stats { display: flex; gap: 14px; font-size: 12px; color: var(--text-dim); }
.streamer-week-stats span { display: flex; align-items: center; gap: 4px; }

/* ============ User Edit Page ============ */
.user-edit-breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--text-muted); margin-bottom: 20px;
}
.user-edit-breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.user-edit-breadcrumb a:hover { color: var(--pink); }
.user-edit-breadcrumb i { font-size: 10px; color: var(--border-light); }
.user-edit-breadcrumb span { color: var(--text-primary); font-weight: 600; }

/* Hero Card */
.user-edit-hero {
    display: flex; align-items: center; gap: 24px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px 28px;
    background-image: var(--gradient-card); margin-bottom: 20px;
}
.user-edit-hero-avatar {
    position: relative; flex-shrink: 0;
}
.user-edit-hero-avatar img {
    width: 80px; height: 80px; border-radius: 50%;
    object-fit: cover; border: 3px solid var(--border-light);
}
.user-edit-hero-status {
    position: absolute; bottom: 2px; right: 2px;
    width: 24px; height: 24px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; border: 2px solid var(--bg-card);
}
.user-edit-hero-status.admin { background: var(--gold); color: #000; }
.user-edit-hero-status.streamer { background: var(--pink); color: #fff; }
.user-edit-hero-status.banned { background: var(--red); color: #fff; }
.user-edit-hero-status.user { background: var(--surface-2); color: var(--text-dim); }

.user-edit-hero-info { flex: 1; min-width: 0; }
.user-edit-hero-name { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.user-edit-hero-name h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.user-edit-hero-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.user-edit-hero-meta {
    display: flex; gap: 16px; flex-wrap: wrap;
    font-size: 12px; color: var(--text-muted);
}
.user-edit-hero-meta span { display: flex; align-items: center; gap: 4px; }

.user-edit-hero-stats {
    display: flex; gap: 0; flex-shrink: 0;
    border-left: 1px solid var(--border); padding-left: 24px; margin-left: 8px;
}
.user-edit-stat {
    display: flex; flex-direction: column; align-items: center;
    padding: 0 20px; text-align: center;
    border-right: 1px solid var(--border);
}
.user-edit-stat:last-child { border-right: none; }
.user-edit-stat strong { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 5px; margin-bottom: 3px; }
.user-edit-stat span { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }

/* Earnings Row */
.user-earnings-row {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px;
}
.user-earning-card {
    display: flex; align-items: center; gap: 14px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px 18px;
    background-image: var(--gradient-card);
    transition: border-color 0.2s;
}
.user-earning-card:hover { border-color: var(--border-light); }
.user-earning-total { border-color: rgba(99,102,241,0.25); }
.user-earning-icon {
    width: 40px; height: 40px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.user-earning-value { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.user-earning-label { font-size: 11px; color: var(--text-dim); margin-top: 2px; }

/* Edit Grid */
.user-edit-grid {
    display: grid; grid-template-columns: 1fr 380px; gap: 20px; align-items: start;
}
.user-edit-sidebar { display: flex; flex-direction: column; gap: 16px; }
.user-edit-form-card .admin-card-header { margin-bottom: 20px; }

/* Form label style */
.form-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.form-input-readonly { opacity: 0.5; cursor: not-allowed; }

/* Role toggles */
.role-toggle-row { display: flex; gap: 10px; }
.role-toggle {
    flex: 1; display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); cursor: pointer;
    font-size: 13px; font-weight: 600; color: var(--text-muted);
    transition: all 0.2s; user-select: none;
}
.role-toggle:hover { border-color: var(--border-light); color: var(--text-primary); }
.role-toggle input { display: none; }
.role-toggle.active-streamer {
    background: rgba(233,30,140,0.1); border-color: var(--pink);
    color: var(--pink);
}
.role-toggle.active-admin {
    background: rgba(245,158,11,0.1); border-color: var(--gold);
    color: var(--gold-light);
}

/* Meta list highlights */
.meta-item-highlight {
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-sm);
    margin: 2px -8px; padding: 6px 8px;
}

/* Protected note */
.admin-protected-note {
    display: flex; align-items: center; gap: 10px;
    padding: 14px; border-radius: var(--radius-sm);
    background: rgba(245,158,11,0.07); border: 1px solid rgba(245,158,11,0.2);
    font-size: 13px; color: var(--gold-light); line-height: 1.5;
}
.admin-protected-note i { font-size: 18px; flex-shrink: 0; }

/* Badge blue */
.badge-blue { background: rgba(59,130,246,0.15); color: #93c5fd; border: 1px solid rgba(59,130,246,0.25); }

@media (max-width: 1100px) {
    .user-edit-grid { grid-template-columns: 1fr; }
    .user-earnings-row { grid-template-columns: 1fr 1fr; }
    .user-edit-hero-stats { border-left: none; padding-left: 0; margin-left: 0; border-top: 1px solid var(--border); padding-top: 16px; width: 100%; justify-content: space-around; }
    .user-edit-hero { flex-wrap: wrap; }
}
@media (max-width: 600px) {
    .user-earnings-row { grid-template-columns: 1fr; }
    .user-edit-stat { padding: 0 10px; }
}

/* ============ Coin Package Popularity ============ */
.pkg-popularity-item {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 16px 22px; border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.pkg-popularity-item:last-child { border-bottom: none; }
.pkg-popularity-item:hover { background: var(--surface-1); }
.pkg-popularity-item.pkg-top {
    background: linear-gradient(90deg, rgba(245,158,11,0.06), transparent);
}
.pkg-popularity-rank {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; flex-shrink: 0;
    background: var(--surface-1);
}
.pkg-top .pkg-popularity-rank { background: rgba(245,158,11,0.12); }
.pkg-popularity-info { flex: 1; min-width: 0; }
.pkg-popularity-header {
    display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.pkg-popularity-header strong { font-size: 14px; font-weight: 700; }
.pkg-popularity-bar {
    height: 6px; background: var(--surface-1); border-radius: 999px;
    overflow: hidden; margin-bottom: 8px;
}
.pkg-popularity-fill {
    height: 100%; border-radius: 999px;
    background: linear-gradient(90deg, #f59e0b, #e91e8c);
    transition: width 0.5s ease;
}
.pkg-top .pkg-popularity-fill {
    background: linear-gradient(90deg, #f59e0b, #f97316);
    box-shadow: 0 0 8px rgba(245,158,11,0.3);
}
.pkg-popularity-stats {
    display: flex; gap: 16px; font-size: 12px; color: var(--text-dim);
}
.pkg-popularity-stats span { display: flex; align-items: center; gap: 4px; }

/* ============ Admin Earnings ============ */
.earnings-section {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
    margin-bottom: 24px;
}
.earnings-card {
    display: flex; align-items: center; gap: 16px;
    padding: 20px 24px; border-radius: var(--radius);
    border: 1px solid var(--border); background: var(--bg-card);
    background-image: var(--gradient-card);
}
.earnings-card-icon {
    width: 48px; height: 48px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}
.earnings-total .earnings-card-icon { background: rgba(16,185,129,0.12); color: var(--green-light); }
.earnings-streamer .earnings-card-icon { background: rgba(233,30,140,0.12); color: var(--pink-light); }
.earnings-platform .earnings-card-icon { background: rgba(139,92,246,0.12); color: var(--purple-light); }
.earnings-sales .earnings-card-icon { background: rgba(245,158,11,0.12); color: var(--gold-light); }
.earnings-card-body { display: flex; flex-direction: column; gap: 2px; }
.earnings-card-value { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.earnings-card-label { font-size: 11.5px; color: var(--text-muted); font-weight: 500; }

@media (max-width: 900px) {
    .earnings-section { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .earnings-section { grid-template-columns: 1fr; }
    .earnings-card { padding: 14px 16px; }
}
