/* ============================================
   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: #030303;
    --bg-secondary: #070707;
    --bg-card: #0c0c0c;
    --bg-card-hover: #131313;
    --bg-elevated: #161616;
    --bg-input: #101010;
    --bg-hover: #171717;
    --bg-glass: rgba(8, 8, 8, 0.82);

    --border: rgba(148, 190, 230, 0.10);
    --border-light: rgba(148, 190, 230, 0.16);
    --border-active: rgba(148, 190, 230, 0.45);
    --surface-1: rgba(148, 190, 230, 0.05);
    --surface-2: rgba(148, 190, 230, 0.08);

    --text: #f2f5f9;
    --text-secondary: #c3ccd8;
    --text-muted: #8b96a6;
    --text-dim: #5c6675;

    --theme-color-1: #e9eff6;
    --theme-color-2: #3f7fc4;
    --theme-btn-text: #071627;

    --pink: var(--theme-color-1);
    --pink-light: var(--theme-color-1);
    --pink-glow: rgba(63, 127, 196, 0.22);
    --pink-subtle: rgba(63, 127, 196, 0.10);
    --purple: var(--theme-color-2);
    --purple-light: var(--theme-color-1);
    --blue: var(--theme-color-2);
    --blue-light: var(--theme-color-1);
    --cyan: var(--theme-color-2);
    --green: var(--theme-color-1);
    --green-light: var(--theme-color-1);
    --gold: var(--theme-color-1);
    --gold-light: var(--theme-color-1);
    --gold-glow: rgba(63, 127, 196, 0.20);
    --orange: var(--theme-color-2);
    --red: var(--theme-color-1);
    --red-light: var(--theme-color-1);
    --teal: var(--theme-color-2);

    --gradient-primary: linear-gradient(180deg, var(--theme-color-1) 0%, var(--theme-color-2) 100%);
    --gradient-warm: linear-gradient(180deg, var(--theme-color-1) 0%, var(--theme-color-2) 100%);
    --gradient-cool: linear-gradient(180deg, var(--theme-color-1) 0%, var(--theme-color-2) 100%);
    --gradient-gold: linear-gradient(180deg, var(--theme-color-1) 0%, var(--theme-color-2) 100%);
    --gradient-surface: linear-gradient(180deg, rgba(148,190,230,0.06) 0%, rgba(148,190,230,0) 100%);
    --gradient-card: linear-gradient(160deg, rgba(148,190,230,0.08) 0%, rgba(148,190,230,0) 40%);
    --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(63,127,196,0.14) 0%, rgba(63,127,196,0.04) 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 24px rgba(63,127,196,0.16), 0 0 48px rgba(63,127,196,0.06);
    --shadow-glow-gold: 0 0 20px rgba(63,127,196,0.16);
    --shadow-inset: inset 0 1px 0 rgba(148,190,230,0.08);

    --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; }
:root { --site-font: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }
body {
    font-family: var(--site-font);
    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(255,255,255,0.035), transparent),
        radial-gradient(ellipse 80% 50% at 80% 50%, rgba(255,255,255,0.02), transparent);
}
a { color: var(--text); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: #ffffff; }
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(255,255,255,0.3); color: #000; }
::-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::before {
    content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255,255,255,0.45), transparent);
    transform: skewX(-20deg); transition: left 0.6s ease; pointer-events: none;
}
.btn:hover::before { left: 130%; }
.btn:active { transform: scale(0.97); }
.btn i { font-size: 13px; }
.btn-primary {
    background: var(--gradient-primary); color: var(--theme-btn-text);
    border: 1px solid rgba(255,255,255,0.28);
    box-shadow: 0 2px 12px rgba(255,255,255,0.14), var(--shadow-inset);
}
.btn-primary:hover { box-shadow: 0 4px 24px rgba(255,255,255,0.18); transform: translateY(-1px); color: var(--theme-btn-text); }
.btn-outline {
    background: var(--surface-1); border: 1px solid var(--border-light); color: var(--text);
    backdrop-filter: blur(10px);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.26); color: #fff; background: rgba(255,255,255,0.08); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,0.08); }
.btn-danger { background: var(--gradient-primary); color: var(--theme-btn-text); box-shadow: 0 2px 8px rgba(255,255,255,0.12); }
.btn-danger:hover { box-shadow: 0 4px 16px rgba(255,255,255,0.18); color: var(--theme-btn-text); }
.btn-warning { background: var(--gradient-primary); color: var(--theme-btn-text); }
.btn-success { background: var(--gradient-primary); color: var(--theme-btn-text); }
.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(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.18); color: #fff;
    backdrop-filter: blur(10px);
}
.btn-coins:hover { border-color: rgba(255,255,255,0.32); background: rgba(255,255,255,0.12); color: #fff; box-shadow: var(--shadow-glow-gold); }
.btn-go-live {
    background: var(--gradient-primary); color: var(--theme-btn-text);
    border: 1px solid rgba(255,255,255,0.28);
    box-shadow: 0 2px 12px rgba(255,255,255,0.12);
}
.btn-go-live:hover { box-shadow: 0 6px 20px rgba(255,255,255,0.18); transform: translateY(-1px); color: var(--theme-btn-text); }
.btn-follow { background: var(--gradient-primary); color: var(--theme-btn-text); border: 1px solid rgba(255,255,255,0.28); }
.btn-follow:hover { background: var(--gradient-primary); color: var(--theme-btn-text); }
.btn-follow.following { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: #fff; }
.btn-follow.following:hover { background: rgba(255,255,255,0.08); }
.btn-following { background: var(--gradient-primary); color: var(--theme-btn-text); border: 1px solid rgba(255,255,255,0.28); font-weight: 600; }
.btn-following:hover { background: var(--gradient-primary); color: var(--theme-btn-text); border-color: rgba(255,255,255,0.32); }
.btn-tip {
    background: var(--gradient-primary); color: var(--theme-btn-text);
    font-weight: 700; box-shadow: 0 2px 12px var(--gold-glow);
}
.btn-tip:hover { box-shadow: 0 4px 20px rgba(255,255,255,0.18); transform: translateY(-1px); color: var(--theme-btn-text); }
.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: rgba(255,255,255,0.28);
    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; }
input[type="file"].form-input {
    padding: 8px; cursor: pointer; box-shadow: none;
    background: var(--surface-1);
}
input[type="file"].form-input::-webkit-file-upload-button {
    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.18); color: #fff;
    padding: 8px 16px; border-radius: var(--radius-sm); cursor: pointer;
    font-size: 13px; font-weight: 600; margin-right: 12px;
}
input[type="file"].form-input::-webkit-file-upload-button:hover {
    background: rgba(255,255,255,0.18);
}
.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: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.28); }
.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: 2px; font-size: 21px; font-weight: 800;
    color: var(--text); text-decoration: none; letter-spacing: -0.02em;
}
.nav-logo-img {
    width: 34px; height: 34px; border-radius: var(--radius-sm);
    object-fit: cover; flex-shrink: 0;
}
.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: var(--theme-btn-text); }
.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: #fff; border-color: rgba(255,255,255,0.24); background: rgba(255,255,255,0.08); }
.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: rgba(255,255,255,0.24); }
.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: 12px; margin-left: auto; }
.nav-links-group { display: flex; align-items: center; gap: 8px; }
.nav-action-group { display: flex; align-items: center; gap: 8px; padding-left: 12px; border-left: 1px solid var(--border); }
.nav-mobile-menu { display: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.dropdown-lang-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; }
.nav-user-menu { position: relative; }
.nav-avatar {
    width: 40px; height: 40px; border-radius: var(--radius-full); overflow: visible;
    cursor: pointer; border: 2px solid transparent; position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #bebebe 100%); padding: 2px; transition: var(--transition);
}
.nav-avatar:hover { box-shadow: 0 0 16px rgba(0, 210, 255, 0.35); }
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-full); display: block; }
.online-dot {
    position: absolute; bottom: 0px; right: 0px; width: 12px; height: 12px;
    background: radial-gradient(circle at 35% 35%, #80e5ff 0%, #00b4d8 55%, #0077b6 100%);
    border-radius: 50%; border: 2px solid #06090e;
    box-shadow: 0 0 8px #00d2ff, 0 0 16px rgba(0, 210, 255, 0.85);
    animation: onlineBluePulse 2.5s ease-in-out infinite;
    z-index: 10;
    pointer-events: none;
}
@keyframes onlineBluePulse {
    0%, 100% {
        box-shadow: 0 0 6px #00d2ff, 0 0 12px rgba(0, 210, 255, 0.75), 0 0 0 0 rgba(0, 210, 255, 0.45);
    }
    50% {
        box-shadow: 0 0 10px #38bdf8, 0 0 20px rgba(56, 189, 248, 0.95), 0 0 0 3px rgba(0, 210, 255, 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: #fff !important; }
.user-dropdown .text-gold { color: #fff !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: 0;
    isolation: isolate;
    background: #030303;
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 55% 65% at 82% 8%, rgba(63,127,196,0.28) 0%, transparent 60%),
        radial-gradient(ellipse 50% 55% at 12% 88%, rgba(63,127,196,0.16) 0%, transparent 65%),
        radial-gradient(ellipse 70% 50% at 50% -10%, rgba(148,190,230,0.10) 0%, transparent 60%),
        linear-gradient(160deg, #050608 0%, #0a0d12 38%, #0b1119 68%, #050608 100%);
    animation: heroGradientShift 16s ease-in-out infinite;
}
.hero::after {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, rgba(0,0,0,0.5) 0%, transparent 75%);
}
@keyframes heroGradientShift {
    0%, 100% { opacity: 1; filter: hue-rotate(0deg); }
    50% { opacity: 0.85; filter: hue-rotate(6deg); }
}

.hero-card {
    width: 100%; max-width: 100%; margin: 0;
    background: transparent; border-radius: 0; overflow: hidden;
    display: flex; flex-direction: column;
    border: none;
    box-shadow: none;
    position: relative; z-index: 1;
}
.hero-card::before { display: none; }
.hero-card::after { display: none; }

.hero-inner {
    display: flex; flex-direction: row; align-items: center; gap: 0;
    min-height: 540px;
    max-width: 1280px; margin: 0 auto;
    padding: 0 24px;
}

/* --- Left Content --- */
.hero-left {
    flex: 1; padding: 54px 26px 44px 56px;
    display: flex; flex-direction: column; justify-content: center;
    min-width: 0;
}

/* Badge */
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px;
    background: linear-gradient(135deg, rgba(63,127,196,0.14), rgba(255,255,255,0.03));
    border: 1px solid rgba(125,177,224,0.28);
    border-radius: var(--radius-full); font-size: 13px; font-weight: 600;
    color: rgba(230,240,250,0.9); margin-bottom: 30px; cursor: default;
    width: fit-content; backdrop-filter: blur(12px);
    box-shadow: 0 4px 18px rgba(63,127,196,0.10), inset 0 1px 0 rgba(255,255,255,0.06);
    animation: heroElementSlide 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}
.hero-badge__dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #cfe6fb, #4f95d6);
    box-shadow: 0 0 12px rgba(94,165,219,0.85); animation: pulse 2s infinite;
}

/* Title — bold italic, line by line */
.hero-title {
    font-size: 68px; font-weight: 800; font-style: normal; line-height: 0.98;
    margin-bottom: 22px; letter-spacing: -0.05em; color: #fff;
    text-shadow: 0 6px 24px rgba(255,255,255,0.08);
}
.hero-title span {
    display: block;
    animation: heroTitleLine 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-title span:nth-child(1) { animation-delay: 0.18s; }
.hero-title span:nth-child(2) { animation-delay: 0.28s; }
.hero-title span:nth-child(3) { animation-delay: 0.38s; }
.hero-title span:nth-child(4) { animation-delay: 0.48s; }

/* Subtitle — italic */
.hero-subtitle {
    font-size: 18px; color: rgba(255,255,255,0.62); margin-bottom: 38px;
    max-width: 520px; line-height: 1.6; font-style: normal;
    animation: heroElementSlide 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.44s both;
}
.hero-subtitle strong, .hero-subtitle b {
    color: rgba(255,255,255,0.96); font-weight: 800;
}

/* Stats */
.hero-stats {
    display: flex; align-items: center; gap: 0; margin-bottom: 32px;
    background: linear-gradient(135deg, rgba(148,190,230,0.06), rgba(255,255,255,0.015));
    border: 1px solid rgba(125,177,224,0.16);
    border-radius: 18px; padding: 6px 10px;
    width: 100%; max-width: 480px; box-sizing: border-box;
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
    animation: heroElementSlide 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.54s both;
}
.hero-stat {
    flex: 1 1 0; min-width: 0;
    display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 12px;
    transition: background 0.25s ease, transform 0.25s ease;
    border-radius: 14px; box-sizing: border-box;
}
.hero-stat:hover {
    background: rgba(148, 190, 230, 0.08);
}
.hero-stat__icon {
    width: 36px; height: 36px; border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; flex-shrink: 0;
    background: linear-gradient(145deg, rgba(63,127,196,0.32), rgba(63,127,196,0.08));
    color: #bfdcf3;
    border: 1px solid rgba(125,177,224,0.25);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.hero-stat:hover .hero-stat__icon {
    transform: scale(1.08) translateY(-1px);
    border-color: rgba(125,177,224,0.45);
    box-shadow: 0 0 16px rgba(94,165,219,0.35);
    color: #fff;
}
.hero-stat__body { text-align: left; min-width: 0; flex: 1; }
.hero-stat__num {
    display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.03em;
    color: #fff; line-height: 1.1;
}
.hero-stat__label {
    display: block; font-size: 11px; color: rgba(255,255,255,0.6); font-weight: 500;
    margin-top: 2px; letter-spacing: 0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero-stat__divider {
    width: 1px; height: 32px; background: linear-gradient(180deg, transparent, rgba(125,177,224,0.25), transparent); flex-shrink: 0;
}

/* Action Buttons */
.hero-actions {
    display: flex; gap: 16px;
    animation: heroElementSlide 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.64s both;
}
/* Primary: silver/white gradient, black text */
.btn-hero-primary {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 34px; font-size: 16px; font-weight: 700;
    color: #06121f; border: 1px solid rgba(255,255,255,0.3); border-radius: 15px;
    background: linear-gradient(180deg, #ffffff 0%, #dce8f5 44%, #a9c6e0 100%);
    cursor: pointer; position: relative; overflow: hidden;
    transition: var(--transition); text-decoration: none; letter-spacing: 0.01em;
    box-shadow: 0 8px 26px rgba(63,127,196,0.22), inset 0 1px 0 rgba(255,255,255,0.55);
}
.btn-hero-primary::before {
    content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255,255,255,0.55), transparent);
    transform: skewX(-20deg); transition: left 0.6s ease;
}
.btn-hero-primary:hover::before { left: 130%; }
.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(63,127,196,0.32), inset 0 1px 0 rgba(255,255,255,0.6);
    color: #06121f;
    background: linear-gradient(180deg, #ffffff 0%, #cfe1f1 44%, #8fb6da 100%);
}
.btn-hero-primary:active { transform: translateY(0) scale(0.98); }
/* Outline: glass with blue-tinted border */
.btn-hero-outline {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 34px; font-size: 16px; font-weight: 700;
    color: rgba(230,240,250,0.92); border: 1px solid rgba(125,177,224,0.28);
    border-radius: 15px; background: rgba(148,190,230,0.05);
    backdrop-filter: blur(10px);
    cursor: pointer; position: relative; overflow: hidden;
    transition: var(--transition); text-decoration: none; letter-spacing: 0.01em;
}
.btn-hero-outline::before {
    content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg); transition: left 0.6s ease; pointer-events: none;
}
.btn-hero-outline:hover::before { left: 130%; }
.btn-hero-outline:hover {
    border-color: rgba(125,177,224,0.5); color: #fff;
    background: rgba(63,127,196,0.14); transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(63,127,196,0.18);
}

/* --- Right Image & Dedicated Animations --- */
.hero-right {
    flex-shrink: 0; width: 50%; max-width: 620px;
    display: flex; align-items: center; justify-content: center;
    padding: 16px 26px 16px 0; position: relative;
    perspective: 1200px;
}
.hero-img-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 480px;
    transform-style: preserve-3d;
    will-change: transform;
}
/* Ambient pulsing backlight aura */
.hero-img-aura {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(63,140,230,0.38) 0%, rgba(94,165,219,0.18) 45%, transparent 70%);
    filter: blur(52px);
    pointer-events: none;
    z-index: 0;
    animation: heroAuraPulse 7s ease-in-out infinite alternate;
}
/* 3D Floating Wrapper with sheen */
.hero-img-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 36px;
    overflow: hidden;
    z-index: 1;
    transform-style: preserve-3d;
    will-change: transform, filter;
    animation: heroImgEntrance 1.1s cubic-bezier(0.16, 1, 0.3, 1) both,
               hero3DFloat 7s ease-in-out 1.1s infinite alternate;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
}
.hero-img-wrap:hover {
    transform: translateY(-8px) scale(1.02);
    filter: drop-shadow(0 15px 45px rgba(63,140,230,0.45));
}
.hero-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    border-radius: 36px;
    filter: drop-shadow(0 0 50px rgba(63,127,196,0.30)) drop-shadow(0 0 90px rgba(148,190,230,0.12));
    transition: transform 0.4s ease;
    user-select: none;
    -webkit-user-drag: none;
}
/* Metallic Specular Sheen sweep */
.hero-img-sheen {
    position: absolute;
    top: -50%;
    left: -60%;
    width: 60%;
    height: 200%;
    background: linear-gradient(
        115deg,
        transparent 0%,
        rgba(255, 255, 255, 0.04) 30%,
        rgba(195, 230, 255, 0.40) 50%,
        rgba(255, 255, 255, 0.12) 70%,
        transparent 100%
    );
    transform: rotate(25deg);
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: screen;
    animation: heroSheenSweep 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* --- Features Row --- */
.hero-features {
    display: flex; align-items: center; justify-content: center;
    border-top: 1px solid rgba(125,177,224,0.14);
    background: linear-gradient(180deg, rgba(63,127,196,0.03), transparent);
    padding: 22px 42px;
    gap: 0; position: relative; z-index: 1;
    animation: heroElementSlide 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.74s both;
}
.hero-feature {
    display: flex; align-items: center; gap: 14px; padding: 0 40px;
    transition: transform 0.25s ease;
}
.hero-feature:hover {
    transform: translateY(-2px);
}
.hero-feature i {
    font-size: 18px; color: #bfdcf3; flex-shrink: 0;
    width: 38px; height: 38px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(145deg, rgba(63,127,196,0.28), rgba(63,127,196,0.06));
    border: 1px solid rgba(125,177,224,0.22);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.hero-feature:hover i {
    transform: scale(1.1) rotate(4deg);
    color: #fff;
    border-color: rgba(125,177,224,0.50);
    box-shadow: 0 0 20px rgba(63,127,196,0.40);
}
.hero-feature strong {
    display: block; font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.92);
    line-height: 1.3;
}
.hero-feature span {
    display: block; font-size: 12px; color: rgba(255,255,255,0.5); font-weight: 500;
    margin-top: 1px;
}
.hero-feature__sep {
    width: 1px; height: 40px; background: linear-gradient(180deg, transparent, rgba(125,177,224,0.25), transparent); flex-shrink: 0;
}

/* Keyframes */
@keyframes heroElementSlide {
    0%   { opacity: 0; transform: translateY(22px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes heroTitleLine {
    0%   { opacity: 0; transform: translateY(26px); filter: blur(3px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes heroImgEntrance {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(32px);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

@keyframes hero3DFloat {
    0% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg);
    }
    25% {
        transform: translateY(-8px) rotateX(2.2deg) rotateY(-3deg) rotateZ(0.5deg);
    }
    50% {
        transform: translateY(-16px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    75% {
        transform: translateY(-8px) rotateX(-2.2deg) rotateY(3deg) rotateZ(-0.5deg);
    }
    100% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
}

@keyframes heroAuraPulse {
    0% {
        opacity: 0.45;
        transform: scale(0.92);
        filter: blur(45px);
    }
    100% {
        opacity: 0.85;
        transform: scale(1.15);
        filter: blur(60px);
    }
}

@keyframes heroSheenSweep {
    0%, 25% {
        transform: translateX(-160%) rotate(25deg);
        opacity: 0;
    }
    35% {
        opacity: 0.85;
    }
    50% {
        transform: translateX(360%) rotate(25deg);
        opacity: 0;
    }
    100% {
        transform: translateX(360%) rotate(25deg);
        opacity: 0;
    }
}

@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); } }

/* Responsive */
@media (max-width: 900px) {
    .hero-inner { flex-direction: column; min-height: auto; }
    .hero-left { padding: 40px 24px 32px; text-align: center; align-items: center; }
    .hero-title { font-size: 38px; }
    .hero-subtitle { max-width: 100%; }
    .hero-stats {
        width: 100%; max-width: 480px; margin: 0 auto 28px;
        flex-direction: row; justify-content: space-between;
        padding: 6px 8px;
    }
    .hero-stat {
        flex: 1 1 0; min-width: 0; padding: 8px 6px; gap: 8px; justify-content: center;
    }
    .hero-actions { justify-content: center; flex-wrap: wrap; }
    .hero-right { display: none !important; }
    .hero-img-container--mobile {
        display: block !important;
        width: 100% !important;
        max-width: 230px !important;
        margin: 16px auto 20px !important;
    }
    .hero-img-container--mobile .hero-img-wrap {
        border-radius: 20px !important;
        max-width: 230px !important;
        margin: 0 auto !important;
    }
    .hero-img-container--mobile .hero-img {
        max-height: 230px !important;
        width: 100% !important;
        object-fit: cover !important;
        border-radius: 20px !important;
    }
    .hero-img-container--mobile .hero-img-aura {
        width: 170px !important;
        height: 170px !important;
        filter: blur(28px) !important;
    }
    .hero-features {
        flex-direction: row; align-items: center; justify-content: space-between;
        padding: 14px 10px; gap: 4px; width: 100%; box-sizing: border-box;
    }
    .hero-feature {
        flex: 1 1 0; min-width: 0; padding: 0 4px;
        display: flex; align-items: center; justify-content: center; gap: 6px;
    }
    .hero-feature i {
        width: 28px; height: 28px; font-size: 11px; border-radius: 8px; flex-shrink: 0;
    }
    .hero-feature > div {
        min-width: 0; flex: 1; text-align: left; overflow: hidden;
    }
    .hero-feature strong {
        font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; line-height: 1.2;
    }
    .hero-feature span {
        font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; line-height: 1.2; margin-top: 1px;
    }
    .hero-feature__sep {
        display: block; width: 1px; height: 24px; flex-shrink: 0;
    }
}
@media (max-width: 480px) {
    .hero { padding: 12px 12px 0; }
    .hero-left { padding: 32px 20px 24px; }
    .hero-title { font-size: 30px; }
    .hero-stat { padding: 8px 12px; gap: 8px; }
    .hero-stat__num { font-size: 18px; }
    .hero-stat__icon { width: 30px; height: 30px; font-size: 12px; }
    .btn-hero-primary, .btn-hero-outline { padding: 12px 20px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-badge, .hero-title span, .hero-subtitle, .hero-stats, .hero-actions, .hero-features, .hero-img-wrap, .hero-img {
        animation: none !important;
        transition: none !important;
    }
    .hero-img-aura, .hero-img-sheen {
        display: 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;
    color-scheme: dark;
}
select {
    color-scheme: dark;
}
select option {
    background-color: #161722;
    color: #ffffff;
}

/* ============ 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(255,255,255,0.18);
    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(255,255,255,0.88);
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 4px 24px rgba(255,255,255,0.22);
    color: var(--theme-btn-text);
    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(255,255,255,0.88);
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 4px 24px rgba(255,255,255,0.22);
    color: var(--theme-btn-text);
    transform: scale(1.15);
}
.stream-live-badge {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    background: rgba(255,255,255,0.92); color: var(--theme-btn-text); 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(255,255,255,0.18);
}
.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: rgba(255,255,255,0.92); color: var(--theme-btn-text); 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(255,255,255,0.18); }
.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 rgba(255,255,255,0.85); box-shadow: 0 4px 20px rgba(255,255,255,0.14); }
.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(63,127,196,0.2); }
.chat-send-btn:hover { box-shadow: 0 4px 16px rgba(63,127,196,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(63,127,196,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: var(--theme-btn-text); 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(255,255,255,0.14); }
.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(125,177,224,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(63,127,196,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(63,127,196,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(63,127,196,0.2); background-image: linear-gradient(160deg, rgba(63,127,196,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(63,127,196,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(255,255,255,0.10); color: #fff; }
.transaction-icon.negative { background: rgba(255,255,255,0.10); color: #fff; }
.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: #fff; }
.transaction-amount.negative { color: #fff; }

/* ============ 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-img { width: 36px; height: 36px; }
.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: #fff; 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: #fff; }

/* ============ 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(63,127,196,0.15), rgba(125,177,224,0.15));
    border: 1px solid rgba(63,127,196,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(63,127,196,0.12); color: var(--pink-light); }
.badge-purple { background: rgba(125,177,224,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-links-group { 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: rgba(255,255,255,0.24); }
    .nav-mobile-links a:hover i { color: #fff; }
    .nav-mobile-links a.text-gold { color: #fff; }
    .nav-mobile-links a.text-gold i { color: #fff; }

    .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-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-img { width: 28px; height: 28px; }
    .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-img { width: 26px; height: 26px; }
    .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-img { width: 22px; height: 22px; }
    .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-img { width: 24px; height: 24px; }
    .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-img { width: 22px; height: 22px; }
    .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(63,127,196,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(125,177,224,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(63,127,196,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(125,177,224,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(255,255,255,0.09); color: #fff;
    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: rgba(255,255,255,0.92); color: var(--theme-btn-text); border-color: rgba(255,255,255,0.28); box-shadow: 0 4px 20px rgba(255,255,255,0.18); }
.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: rgba(255,255,255,0.18); }
.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: rgba(255,255,255,0.92); color: var(--theme-btn-text);
    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(255,255,255,0.18);
}
.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(63,127,196,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, #3f7fc4);
    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(63,127,196,0.12); color: var(--pink-light); }
.earnings-platform .earnings-card-icon { background: rgba(125,177,224,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; }
}

.chat-msg.tip,
.toast-success,
.toast-error,
.toast-warning,
.toast-info,
.badge-green,
.badge-red,
.badge-blue,
.badge-gold,
.badge-pink,
.badge-purple,
.badge-orange,
.pii-badge-gold,
.pii-badge-pink,
.pkg-top .pkg-popularity-rank,
.earnings-total .earnings-card-icon,
.earnings-streamer .earnings-card-icon,
.earnings-platform .earnings-card-icon,
.earnings-sales .earnings-card-icon {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.2);
}

.chat-send-btn,
.role-admin,
.role-streamer,
.nav-mobile-logout {
    background: var(--gradient-primary);
    color: var(--theme-btn-text);
    border: 1px solid rgba(255,255,255,0.28);
    box-shadow: 0 4px 16px rgba(255,255,255,0.14);
}

.chat-send-btn:hover,
.nav-mobile-logout:hover {
    background: var(--gradient-primary);
    color: var(--theme-btn-text);
    border-color: rgba(255,255,255,0.32);
    box-shadow: 0 6px 20px rgba(255,255,255,0.18);
}

.coin-card:hover,
.coin-card.popular,
.profile-card-streamer {
    border-color: rgba(255,255,255,0.18);
    box-shadow: var(--shadow-lg), var(--shadow-glow-pink);
}

.profile-card-streamer {
    background-image: linear-gradient(160deg, rgba(255,255,255,0.04) 0%, transparent 50%);
}

.tip-btn:hover,
.footer-links a:hover,
.section-header h2 i,
.profile-card-header i,
.coin-icon,
.coin-bonus,
.chat-tip-amount,
.current-balance strong {
    color: #fff;
}

.tip-btn:hover {
    border-color: rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.08);
}

.coin-card.popular::after {
    background: var(--gradient-primary);
    color: var(--theme-btn-text);
}

.profile-hero-bg::after {
    background: radial-gradient(ellipse 60% 80% at 10% 50%, rgba(255,255,255,0.08) 0%, transparent 70%);
}

.profile-avatar-large,
.profile-hero-avatar,
.profile-avatar-placeholder,
.avatar-upload-placeholder,
.nav-mobile-user img {
    background: var(--gradient-primary);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.14), var(--shadow-lg);
}

.spm-header-icon {
    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
}

.spm-close:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.24);
    color: #fff;
}

.site-page-content li::before,
.pkg-popularity-fill,
.pkg-top .pkg-popularity-fill,
.spm-header-accent {
    background: var(--gradient-primary);
}

/* ==========================================================================
   Server-Side Live Stream Modal & Creator Studio
   ========================================================================== */

/* Page Lock during active livestream */
body.stream-modal-active {
    overflow: hidden !important;
    height: 100vh !important;
    touch-action: none;
}

/* Modal Backdrop */
.stream-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    background: rgba(4, 7, 13, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    overflow: hidden;
    pointer-events: auto;
}

/* Main Modal Dialog */
.stream-modal-dialog {
    width: 100%;
    max-width: 1480px;
    height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #0d1524 0%, #080d16 100%);
    border: 1px solid rgba(0, 210, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.85), 0 0 50px rgba(0, 210, 255, 0.12);
    overflow: hidden;
    position: relative;
    animation: streamModalFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes streamModalFadeIn {
    from { opacity: 0; transform: scale(0.97) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Modal Header */
.stream-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: rgba(13, 22, 38, 0.95);
    border-bottom: 1px solid rgba(125, 177, 224, 0.16);
    flex-shrink: 0;
    gap: 16px;
    flex-wrap: wrap;
    z-index: 10;
}

.stream-modal-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

.stream-modal-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.6);
    flex-shrink: 0;
}

.stream-modal-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    animation: streamPulseLive 1.4s ease-in-out infinite;
}

@keyframes streamPulseLive {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.5; }
}

.stream-modal-title {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 440px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.stream-modal-header-center {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.stream-modal-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    color: #bfdcf3;
    background: rgba(63, 127, 196, 0.12);
    border: 1px solid rgba(125, 177, 224, 0.22);
    padding: 6px 14px;
    border-radius: 8px;
}

.stream-modal-pill i {
    color: #38bdf8;
    font-size: 12px;
}

.stream-modal-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #94a3b8;
    display: inline-block;
    transition: all 0.3s;
}

.stream-modal-status-dot.connected {
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
}

.stream-modal-status-dot.connecting {
    background: #f59e0b;
    box-shadow: 0 0 10px #f59e0b;
}

.stream-modal-status-dot.failed,
.stream-modal-status-dot.disconnected {
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
}

.stream-modal-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-stream-modal-stop {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: #ffffff;
    border: 1px solid rgba(239, 68, 68, 0.5);
    padding: 9px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 18px rgba(239, 68, 68, 0.4);
    letter-spacing: 0.3px;
}

.btn-stream-modal-stop:hover {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(239, 68, 68, 0.6);
}

/* Modal Body */
.stream-modal-body {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 0;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Video Column */
.stream-modal-video-col {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    overflow-y: auto;
    background: rgba(6, 10, 18, 0.65);
}

.stream-modal-video-card {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000000;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(125, 177, 224, 0.2);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stream-modal-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #000;
}

.stream-modal-video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(4, 7, 13, 0.85);
    backdrop-filter: blur(6px);
    z-index: 5;
    transition: opacity 0.3s ease;
}

.stream-modal-video-overlay.hidden {
    display: none;
}

.stream-modal-video-overlay i {
    font-size: 42px;
    color: #38bdf8;
    opacity: 0.8;
}

.stream-modal-video-overlay p {
    font-size: 14px;
    margin: 0;
    color: #94a3b8;
}

/* Controls Toolbar */
.stream-modal-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: rgba(13, 20, 33, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 16px;
}

.stream-modal-ctrl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stream-modal-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
}

.stream-modal-ctrl-btn.active {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.45);
    color: #34d399;
}

.stream-modal-ctrl-btn.muted {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.45);
    color: #f87171;
}

/* OBS Stream Key Box */
.stream-modal-obs-card {
    background: rgba(13, 22, 36, 0.75);
    border: 1px solid rgba(125, 177, 224, 0.16);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stream-modal-obs-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.stream-modal-obs-desc {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
}

.stream-modal-obs-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stream-modal-obs-input {
    flex: 1;
    min-width: 0;
}

/* Chat & Room Column */
.stream-modal-chat-col {
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(125, 177, 224, 0.14);
    background: rgba(9, 14, 24, 0.85);
    min-height: 0;
    height: 100%;
    overflow: hidden;
    padding: 16px;
}

.stream-modal-chat-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Creator Studio Classes (for golive.blade.php without inline styles) */
.studio-page {
    min-height: calc(100vh - 60px);
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.studio-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    flex: 1;
    align-items: start;
}

.studio-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.studio-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 80px;
}

.studio-setup-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    flex: 1;
    align-items: start;
}

.studio-setup-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.studio-setup-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.studio-card,
.studio-live-card,
.studio-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    background-image: var(--gradient-card);
}

.studio-live-card {
    border-color: var(--green);
    border-width: 2px;
}

.studio-card-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.studio-card-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 0 14px;
}

.studio-live-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.studio-live-heading {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.studio-live-status-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.studio-live-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--text-muted);
    display: inline-block;
}

.studio-live-desc {
    color: var(--text-muted);
    margin-top: 8px;
}

.studio-video-wrap {
    margin-top: 14px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    width: 100%;
}

.studio-video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.studio-cam-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-dim);
}

.studio-cam-icon {
    font-size: 36px;
    opacity: 0.5;
}

.studio-cam-text {
    font-size: 13px;
    margin: 0;
}

.studio-btn-row {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.studio-btn-flex {
    flex: 1;
}

.studio-form-stop {
    margin-top: 12px;
}

.studio-form-start {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.studio-key-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
}

.studio-key-input {
    flex: 1;
}

.studio-preset-section {
    margin-bottom: 16px;
}

.studio-section-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.studio-preset-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.studio-custom-box {
    border-top: 1px solid var(--border);
    padding-top: 14px;
    margin-bottom: 16px;
}

.studio-custom-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.studio-custom-inputs-row {
    display: flex;
    gap: 8px;
}

.studio-custom-icon-select {
    flex: 1;
    max-width: 120px;
}

.studio-actions-ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.studio-actions-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--surface-1);
    border-radius: var(--radius-sm);
}

.studio-actions-item-label {
    font-size: 13px;
}

.studio-actions-item-icon {
    color: var(--pink-light);
    margin-right: 6px;
}

.studio-actions-item-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.studio-actions-item-cost {
    font-size: 13px;
}

.studio-actions-del-btn {
    background: none;
    border: none;
    color: var(--red);
    cursor: pointer;
    font-size: 13px;
    padding: 2px 6px;
}

.studio-no-actions-msg {
    font-size: 12px;
    color: var(--text-dim);
    text-align: center;
    padding: 12px;
    display: none;
}

.studio-min-coins-wrap {
    display: none;
}

.studio-min-coins-input {
    max-width: 200px;
}

.studio-goal-custom-input {
    display: none;
}

.studio-guide-list {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 2;
}

.studio-guide-card {
    background: var(--surface-1);
    border: 1px dashed var(--border);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.studio-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
    padding: 8px 12px;
    background: var(--surface-1);
    border-radius: var(--radius-sm);
}

.studio-checkbox input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .stream-modal-dialog {
        height: 100vh;
        border-radius: 0;
        border: none;
    }
    .stream-modal-backdrop {
        padding: 0;
    }
    .stream-modal-body {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }
    .stream-modal-chat-col {
        border-left: none;
        border-top: 1px solid rgba(125, 177, 224, 0.14);
        height: 480px;
        flex-shrink: 0;
    }
    .studio-layout, .studio-setup-layout {
        grid-template-columns: 1fr;
    }
    .studio-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .stream-modal-header {
        padding: 12px 16px;
    }
    .stream-modal-title {
        max-width: 220px;
        font-size: 15px;
    }
    .stream-modal-video-col {
        padding: 12px;
        gap: 12px;
    }
    .studio-page {
        padding: 16px;
    }
    .studio-card, .studio-live-card, .studio-form-card {
        padding: 16px;
    }
    .form-row-2 {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   18+ Streamer Verification Badges & Page Styles
   ============================================================ */
.badge-verified-18 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    background: rgba(34, 197, 94, 0.15);
    color: var(--green, #22c55e);
    border: 1px solid rgba(34, 197, 94, 0.4);
    vertical-align: middle;
    letter-spacing: 0.3px;
    text-transform: none;
}
.badge-verified-18 i {
    font-size: 14px;
}
.badge-verified-18-mini {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 9999px;
    background: rgba(34, 197, 94, 0.16);
    color: var(--green, #22c55e);
    border: 1px solid rgba(34, 197, 94, 0.35);
    margin-left: 6px;
    vertical-align: middle;
}
.badge-verified-18-mini i {
    font-size: 11px;
}

.profile-hero-name {
    margin: 14px 0 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Verification Page */
.verify-page {
    min-height: calc(100vh - 60px);
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.verify-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}
.verify-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.verify-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 80px;
}
.verify-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    background-image: var(--gradient-card);
}
.verify-card-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.verify-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 18px;
    line-height: 1.5;
}
.verify-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.verify-file-input {
    padding: 8px 12px;
}
.form-hint {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 4px;
    display: block;
}
.verify-checkbox {
    margin: 6px 0 10px;
}

/* Status Cards */
.verify-status-card {
    text-align: center;
    padding: 36px 24px;
}
.verify-badge-large {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: rgba(34, 197, 94, 0.15);
    color: var(--green, #22c55e);
    border: 2px solid rgba(34, 197, 94, 0.4);
}
.verify-badge-large.pending {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
    border-color: rgba(234, 179, 8, 0.4);
}
.verify-badge-large.rejected {
    background: rgba(239, 68, 68, 0.15);
    color: var(--red, #ef4444);
    border-color: rgba(239, 68, 68, 0.4);
}
.verify-status-card h2 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
}
.verify-desc {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 18px;
    line-height: 1.6;
}
.verify-subdesc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 auto;
}
.verify-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 13px;
}
.verify-pill.verified {
    background: rgba(34, 197, 94, 0.2);
    color: var(--green, #22c55e);
    border: 1px solid rgba(34, 197, 94, 0.5);
}
.verify-pill.pending {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.5);
}

.verify-info-card {
    background: var(--surface-1);
    border: 1px dashed var(--border);
}
.verify-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}
.verify-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}
.verify-info-list li i {
    margin-top: 3px;
    flex-shrink: 0;
}

@media (max-width: 860px) {
    .verify-layout {
        grid-template-columns: 1fr;
    }
    .verify-sidebar {
        position: static;
    }
    .verify-page {
        padding: 16px;
    }
}

.studio-verify-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    border-radius: var(--radius);
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.35);
    flex-wrap: wrap;
}
.studio-verify-banner-text {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text);
}
.studio-verify-banner-text i {
    font-size: 24px;
}
.studio-verify-banner-text div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.studio-verify-banner-text div span {
    font-size: 12px;
    color: var(--text-muted);
}

/* Profile 18+ Verification Card */
.profile-verify-card {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border-radius: var(--radius, 16px);
    margin-bottom: 24px;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    background: var(--bg-card, #0d1117);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    width: 100%;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}
.profile-verify-card--action {
    background: rgba(234, 179, 8, 0.08);
    border-color: rgba(234, 179, 8, 0.35);
}
.profile-verify-card--pending {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.35);
}
.profile-verify-card--verified {
    background: rgba(34, 197, 94, 0.08) !important;
    border-color: rgba(34, 197, 94, 0.35) !important;
}
.profile-verify-card--rejected {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.35);
}
.profile-verify-card-left {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 16px;
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 0;
}
.profile-verify-card-left i {
    font-size: 30px;
    line-height: 1;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    margin-right: 4px;
}
.profile-verify-card-left div {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 0;
}
.profile-verify-card-left div h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}
.profile-verify-card-left div p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted, rgba(255, 255, 255, 0.7));
    line-height: 1.4;
}
