/* ========================================
   X-LIVE — Ultra-Glass Futuristic Theme
   ======================================== */

:root {
    --bg-primary: #030308;
    --bg-secondary: rgba(8, 8, 18, 0.40);
    --bg-card: rgba(12, 12, 28, 0.18);
    --bg-glass: rgba(15, 15, 35, 0.12);
    --bg-glass-solid: rgba(8, 8, 20, 0.42);
    --bg-hover: rgba(255, 255, 255, 0.06);
    --bg-active: rgba(0, 245, 255, 0.08);

    --accent: #00f5ff;
    --accent-glow: rgba(0, 245, 255, 0.45);
    --accent2: #8b5cf6;
    --accent2-glow: rgba(139, 92, 246, 0.45);
    --accent3: #ff006e;
    --accent3-glow: rgba(255, 0, 110, 0.45);
    --gradient-main: linear-gradient(135deg, #00f5ff, #8b5cf6);
    --gradient-hot: linear-gradient(135deg, #ff006e, #ff6b35);
    --gradient-live: linear-gradient(135deg, #ff006e, #ff0050);

    --text-primary: rgba(255, 255, 255, 0.96);
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.35);

    --border: rgba(255, 255, 255, 0.08);
    --border-glass: rgba(255, 255, 255, 0.14);
    --border-glow: rgba(0, 245, 255, 0.25);

    --danger: #ff4757;
    --success: #2ed573;
    --warning: #ffa502;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --radius-full: 50%;

    --blur: 36px;
    --blur-heavy: 60px;

    --shadow-glow: 0 0 30px rgba(0, 245, 255, 0.18);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glass: 0 4px 30px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255,255,255,0.1);

    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);

    --nav-height: 60px;
}

/* === Theme: AMOLED === */
[data-theme="amoled"] {
    --bg-primary: #000000;
    --bg-secondary: rgba(0, 0, 0, 0.95);
    --bg-card: rgba(5, 5, 5, 0.9);
    --bg-glass: rgba(5, 5, 5, 0.6);
    --bg-glass-solid: rgba(0, 0, 0, 0.95);
    --bg-hover: rgba(255, 255, 255, 0.04);
    --bg-active: rgba(0, 245, 255, 0.06);
    --border: rgba(255, 255, 255, 0.05);
    --border-glass: rgba(255, 255, 255, 0.08);
    --shadow-card: none;
    --shadow-glass: none;
    --shadow-glow: 0 0 20px rgba(0, 245, 255, 0.1);
}

/* === Theme: Light === */
[data-theme="light"] {
    --bg-primary: #f5f5f8;
    --bg-secondary: rgba(235, 235, 240, 0.9);
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.6);
    --bg-glass-solid: rgba(245, 245, 248, 0.95);
    --bg-hover: rgba(0, 0, 0, 0.04);
    --bg-active: rgba(0, 200, 220, 0.08);
    --accent: #0095b6;
    --accent-glow: rgba(0, 149, 182, 0.25);
    --accent2: #7c3aed;
    --accent2-glow: rgba(124, 58, 237, 0.25);
    --accent3: #e5004f;
    --accent3-glow: rgba(229, 0, 79, 0.25);
    --text-primary: rgba(0, 0, 0, 0.9);
    --text-secondary: rgba(0, 0, 0, 0.55);
    --text-muted: rgba(0, 0, 0, 0.35);
    --border: rgba(0, 0, 0, 0.1);
    --border-glass: rgba(0, 0, 0, 0.12);
    --border-glow: rgba(0, 149, 182, 0.2);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-glass: 0 2px 15px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255,255,255,0.8);
    --shadow-glow: 0 0 15px rgba(0, 149, 182, 0.1);
}
[data-theme="light"] body::before { opacity: 0.03; }

/* === Theme: Midnight === */
[data-theme="midnight"] {
    --bg-primary: #0a0e1a;
    --bg-secondary: rgba(12, 18, 35, 0.85);
    --bg-card: rgba(16, 22, 42, 0.7);
    --bg-glass: rgba(18, 25, 50, 0.4);
    --bg-glass-solid: rgba(10, 14, 26, 0.95);
    --bg-hover: rgba(100, 140, 255, 0.06);
    --bg-active: rgba(80, 130, 255, 0.1);
    --accent: #5b9aff;
    --accent-glow: rgba(91, 154, 255, 0.35);
    --accent2: #a78bfa;
    --accent2-glow: rgba(167, 139, 250, 0.35);
    --border: rgba(100, 140, 255, 0.1);
    --border-glass: rgba(100, 140, 255, 0.15);
    --border-glow: rgba(91, 154, 255, 0.25);
    --shadow-glow: 0 0 25px rgba(91, 154, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    user-select: none;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 15% 50%, rgba(0, 245, 255, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 15%, rgba(139, 92, 246, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 85%, rgba(255, 0, 110, 0.07) 0%, transparent 55%),
        radial-gradient(circle at 70% 60%, rgba(0, 245, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 30% 20%, rgba(191, 90, 242, 0.04) 0%, transparent 35%);
    pointer-events: none;
    z-index: 0;
    animation: bgPulse 12s ease-in-out infinite alternate;
}
@keyframes bgPulse {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

input, textarea, select, button { font-family: inherit; }

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 10px; }

/* ===== GLASS EFFECTS ===== */
.glass-panel {
    background: rgba(12, 12, 30, 0.12);
    backdrop-filter: blur(var(--blur)) saturate(1.8);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(1.8);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glass);
}

.glass-panel-solid {
    background: rgba(8, 8, 22, 0.35);
    backdrop-filter: blur(var(--blur-heavy)) saturate(1.6);
    -webkit-backdrop-filter: blur(var(--blur-heavy)) saturate(1.6);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 2px 20px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.08);
}

.glass-pill {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    box-shadow: var(--shadow-glass);
}

.glass-input {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    padding: 10px 18px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.glass-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: var(--gradient-main);
    border: none;
    color: #000;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: var(--radius-xl);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:active { transform: scale(0.97); }

.btn-glow {
    box-shadow: 0 0 25px var(--accent-glow), 0 0 50px rgba(0, 245, 255, 0.1);
}
.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.btn-outline {
    background: rgba(255,255,255,0.06);
    border: 1.5px solid var(--border-glass);
    color: var(--text-primary);
    padding: 10px 24px;
    border-radius: var(--radius-xl);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
    -webkit-tap-highlight-color: rgba(0,245,255,0.15);
    touch-action: manipulation;
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--bg-active);
    box-shadow: 0 0 20px rgba(0,245,255,0.1);
}

.btn-danger {
    background: var(--gradient-hot);
    border: none;
    color: #fff;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: var(--radius-xl);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-danger:hover { box-shadow: 0 4px 20px var(--accent3-glow); }

.btn-sm { padding: 6px 16px; font-size: 13px; }
.btn-block { width: 100%; }

.icon-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-full);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.icon-btn:hover { background: var(--bg-hover); }
.icon-btn .material-icons-round { font-size: 24px; }

/* ===== TOGGLE SWITCH ===== */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    margin-left: auto;
    flex-shrink: 0;
}
.toggle-switch input { display: none; }
.toggle-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.12);
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    left: 3px; bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider {
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}
.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

/* ===== SPLASH SCREEN ===== */
.splash {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}
.splash.hidden {
    opacity: 0;
    visibility: hidden;
}
.splash-content {
    text-align: center;
}
.splash-logo {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 30px;
    animation: logoGlow 2s ease-in-out infinite alternate;
}
.logo-x {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}
.logo-dash { color: var(--text-muted); }
.logo-live {
    color: var(--text-primary);
    text-shadow: 0 0 20px var(--accent-glow);
}

@keyframes logoGlow {
    0% { filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.2)); }
    100% { filter: drop-shadow(0 0 30px rgba(0, 245, 255, 0.5)); }
}

.splash-loader {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.loader-ring {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.splash-tagline {
    color: var(--text-muted);
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ===== AUTH SCREEN ===== */
.screen {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 100;
}

#auth-screen {
    background: var(--bg-primary);
    background-image:
        radial-gradient(ellipse at 30% 20%, rgba(0, 245, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 0, 110, 0.04) 0%, transparent 50%);
}

.auth-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.auth-logo {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 40px;
}

.auth-form {
    width: 100%;
    padding: 30px;
    animation: fadeUp 0.5s;
    background: rgba(12, 12, 30, 0.18) !important;
    backdrop-filter: blur(32px) !important;
    border: 1px solid var(--border-glass) !important;
    box-shadow: 0 8px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08) !important;
}

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

.auth-form h2 {
    font-size: 24px;
    margin-bottom: 24px;
    text-align: center;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.input-group {
    position: relative;
    margin-bottom: 16px;
}
.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 20px;
}
.input-group input {
    width: 100%;
    padding: 14px 14px 14px 44px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: all 0.3s;
    backdrop-filter: blur(8px);
}
.input-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
    background: rgba(0, 245, 255, 0.03);
}
.input-group input::placeholder { color: var(--text-muted); }

.auth-form .btn-primary {
    width: 100%;
    margin-top: 8px;
    padding: 14px;
}

.auth-switch {
    text-align: center;
    margin-top: 18px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===== PAGES ===== */
.page {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: none;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: calc(var(--nav-height) + var(--safe-bottom));
}
.page.active { display: flex; flex-direction: column; }

#page-home { padding-bottom: 0; }
#page-camera { padding-bottom: 0; }
#page-live { padding-bottom: 0; }
#page-live-broadcast { padding-bottom: 0; }

/* ===== BOTTOM NAV ===== */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--nav-height);
    padding-bottom: var(--safe-bottom);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 50;
    background: rgba(5, 5, 15, 0.25);
    backdrop-filter: blur(44px) saturate(1.8);
    -webkit-backdrop-filter: blur(44px) saturate(1.8);
    border-top: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 -4px 30px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.08);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px 12px;
    transition: all 0.2s;
    position: relative;
}
.nav-item.active { color: var(--text-primary); }
.nav-item.active::after {
    content: '';
    position: absolute;
    top: 0; left: 30%; right: 30%;
    height: 2px;
    background: var(--accent);
    border-radius: 0 0 2px 2px;
    box-shadow: 0 0 8px var(--accent-glow);
}
.nav-item .material-icons-round { font-size: 26px; }
.nav-label { font-size: 10px; font-weight: 500; }

.nav-badge {
    position: absolute;
    top: 2px;
    right: 4px;
    background: var(--accent3);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 0 8px var(--accent3-glow);
}

.create-btn-wrap {
    width: 44px;
    height: 30px;
    background: var(--gradient-main);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 15px var(--accent-glow);
}
.create-btn-wrap::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-sm);
    background: var(--gradient-main);
    filter: blur(6px);
    opacity: 0.4;
    z-index: -1;
}
.create-btn-wrap .material-icons-round {
    font-size: 22px;
    color: #000;
    font-weight: bold;
}
.nav-create .nav-label { display: none; }
.nav-create.active::after { display: none; }

/* ===== FEED ===== */
.feed-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: calc(var(--safe-top) + 10px) 16px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(5,5,10,0.8), transparent);
}

.feed-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
}
.feed-tab {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px;
    transition: all 0.2s;
}
.feed-tab.active { color: var(--text-primary); font-weight: 700; }
.feed-tab-divider { color: var(--text-muted); font-size: 14px; }

.header-search {
    position: absolute;
    right: 16px;
}
.header-live-icon {
    position: absolute;
    left: 16px;
}

.feed-container {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
}

.feed-video-item {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feed-video-item video,
.feed-video-item .video-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a1a, #1a0a2a);
    position: relative;
    overflow: hidden;
}
.video-placeholder::before {
    content: '';
    position: absolute;
    width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0,245,255,0.05), transparent, rgba(139,92,246,0.05), transparent);
    animation: spin 8s linear infinite;
}
.video-placeholder .material-icons-round {
    font-size: 60px;
    color: var(--accent);
    opacity: 0.5;
    position: relative;
    z-index: 1;
}

.feed-video-info {
    position: absolute;
    bottom: calc(var(--nav-height) + 10px);
    left: 12px;
    right: 70px;
    z-index: 5;
}

.feed-video-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.feed-video-user .avatar-sm {
    width: 36px; height: 36px;
    border: 2px solid var(--accent);
}
.feed-video-username {
    font-weight: 700;
    font-size: 15px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.feed-video-caption {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.feed-video-caption .hashtag {
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
}

.feed-video-music {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}
.feed-video-music .material-icons-round {
    font-size: 14px;
    animation: spin 3s linear infinite;
}

.feed-video-actions {
    position: absolute;
    right: 8px;
    bottom: calc(var(--nav-height) + 20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    z-index: 5;
}

.feed-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.feed-action .material-icons-round { font-size: 30px; transition: transform 0.2s, color 0.2s; }
.feed-action span:last-child { font-size: 12px; font-weight: 600; }
.feed-action.liked .material-icons-round { color: var(--accent3); transform: scale(1.15); }
.feed-action.saved .material-icons-round { color: var(--warning); }

.feed-action-avatar {
    position: relative;
    margin-bottom: 8px;
}
.feed-action-avatar .avatar-sm {
    width: 40px; height: 40px;
    border: 2px solid #fff;
}
.follow-badge {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px; height: 20px;
    background: var(--accent3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.follow-badge .material-icons-round { font-size: 14px; }

/* Feed double-tap like animation */
.like-animation {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 100px;
    color: var(--accent3);
    pointer-events: none;
    z-index: 20;
    animation: likeAnim 0.8s ease forwards;
}
@keyframes likeAnim {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    40% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* Long press context menu */
.video-context-menu {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10, 10, 25, 0.65);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 8px 0;
    min-width: 220px;
    z-index: 150;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
    animation: fadeUp 0.2s ease;
}
.context-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.15s;
    background: none;
    border: none;
    color: var(--text-primary);
    width: 100%;
    text-align: left;
}
.context-menu-item:hover {
    background: rgba(255,255,255,0.06);
}
.context-menu-item .material-icons-round {
    font-size: 22px;
    color: var(--text-secondary);
}
.context-menu-item.danger { color: var(--danger); }
.context-menu-item.danger .material-icons-round { color: var(--danger); }
.context-menu-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 149;
}

/* ===== SEARCH ===== */
.search-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: calc(var(--safe-top) + 10px) 12px 10px;
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(8, 8, 22, 0.45) !important;
    backdrop-filter: blur(36px) !important;
    border-bottom: 1px solid var(--border-glass) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.2) !important;
}
.search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    padding: 8px 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(12px);
}
.search-input-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(0,245,255,0.15);
}
.search-input-wrap .material-icons-round { font-size: 20px; color: var(--text-muted); }
.search-input-wrap input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
}
.search-input-wrap input::placeholder { color: var(--text-muted); }

.search-results {
    padding: 16px;
}

.discover-section {
    margin-bottom: 24px;
}
.discover-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.trending-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.trend-tag {
    background: rgba(15, 15, 35, 0.20);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--accent);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-glass);
}
.trend-tag:hover {
    border-color: var(--accent);
    background: var(--bg-active);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: translateY(-1px);
}

.discover-users {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: none;
}
.discover-users::-webkit-scrollbar { display: none; }

.discover-user-card {
    flex-shrink: 0;
    width: 150px;
    text-align: center;
    padding: 16px 12px;
    background: rgba(12, 12, 30, 0.18);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-glass);
}
.discover-user-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}
.discover-user-card .avatar-md { margin: 0 auto 8px; }
.discover-user-card .name { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.discover-user-card .handle { font-size: 12px; color: var(--text-muted); }

.discover-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}
.discover-grid-item {
    aspect-ratio: 9/16;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.discover-grid-item .material-icons-round {
    font-size: 32px;
    color: var(--text-muted);
}
.discover-grid-item .views {
    position: absolute;
    bottom: 4px;
    left: 6px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 3px;
}
.discover-grid-item .views .material-icons-round { font-size: 14px; }

/* Hashtag page */
.hashtag-page-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: rgba(12, 12, 30, 0.18);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: var(--shadow-glass);
}
.hashtag-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: #000;
    margin-bottom: 10px;
}
.hashtag-stats {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Sound page */
.sound-page-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(12, 12, 30, 0.18);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: var(--shadow-glass);
}
.sound-cover {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spin 4s linear infinite;
}
.sound-info { flex: 1; }
.sound-info .sound-title { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.sound-info .sound-artist { font-size: 13px; color: var(--text-secondary); }
.sound-info .sound-uses { font-size: 12px; color: var(--text-muted); }

.sound-icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sound-icon-circle .material-icons-round { font-size: 22px; }

/* ===== CAMERA ===== */
.camera-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}
.camera-screen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-top-controls {
    position: absolute;
    top: calc(var(--safe-top) + 10px);
    left: 12px; right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 5;
}
.camera-top-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.camera-top-controls .icon-btn {
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-full);
}

.camera-mode-tabs {
    position: absolute;
    bottom: 130px;
    left: 0; right: 0;
    display: flex;
    justify-content: center;
    gap: 16px;
    z-index: 5;
}
.cam-mode {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.2s;
    position: relative;
}
.cam-mode.active {
    color: var(--text-primary);
}
.cam-mode.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%; transform: translateX(-50%);
    width: 4px; height: 4px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent-glow);
}

.camera-bottom-controls {
    position: absolute;
    bottom: 30px;
    left: 0; right: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 40px;
    z-index: 5;
}
.camera-bottom-controls .icon-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cam-label {
    font-size: 11px;
    color: var(--text-secondary);
}

.record-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 4px solid #fff;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s;
}
.record-inner {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent3);
    transition: all 0.3s;
}
.record-btn.recording .record-inner {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--accent3);
}
.record-btn.live-mode {
    border-color: var(--accent3);
}

.record-timer {
    position: absolute;
    top: calc(var(--safe-top) + 60px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,0,0,0.25);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,0,0,0.3);
    padding: 6px 16px;
    border-radius: 50px;
    z-index: 6;
}
.rec-dot {
    width: 8px; height: 8px;
    background: #ff0000;
    border-radius: 50%;
    animation: recBlink 1s ease infinite;
}
@keyframes recBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Speed selector */
.speed-selector {
    position: absolute;
    top: calc(var(--safe-top) + 60px);
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 6px;
    z-index: 6;
}
.speed-option {
    padding: 6px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.speed-option.active {
    color: var(--accent);
    background: var(--bg-active);
}

/* ===== POST EDITOR ===== */
.post-editor {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-primary);
    overflow-y: auto;
    z-index: 10;
}
.editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(var(--safe-top) + 10px) 12px 10px;
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(8, 8, 22, 0.45);
    backdrop-filter: blur(36px);
}
.editor-header h3 { font-size: 17px; }

.editor-preview {
    width: 100%;
    max-height: 350px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}
.editor-preview video {
    width: 100%;
    max-height: 350px;
    object-fit: contain;
}

.editor-form {
    margin: 16px;
    padding: 16px;
    background: rgba(12, 12, 30, 0.18) !important;
    backdrop-filter: blur(20px) !important;
}
.editor-form textarea {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 15px;
    resize: none;
    outline: none;
    min-height: 60px;
    margin-bottom: 16px;
}
.editor-form textarea::placeholder { color: var(--text-muted); }

.editor-options { display: flex; flex-direction: column; }
.editor-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 15px;
    cursor: pointer;
    transition: color 0.2s;
}
.editor-option:hover { color: var(--accent); }
.editor-option .material-icons-round { font-size: 22px; color: var(--text-secondary); }
.editor-option select {
    margin-left: auto;
    background: rgba(15, 15, 35, 0.20);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 4px 8px;
    font-size: 13px;
    outline: none;
}

/* ===== INBOX ===== */
.inbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(var(--safe-top) + 10px) 16px 10px;
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(8, 8, 22, 0.45) !important;
    backdrop-filter: blur(36px) !important;
    border-bottom: 1px solid var(--border-glass) !important;
}
.inbox-header h2 { font-size: 22px; font-weight: 700; }

.inbox-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(8, 8, 22, 0.25);
    backdrop-filter: blur(20px);
}
.inbox-tab {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 600;
    padding: 12px;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}
.inbox-tab.active {
    color: var(--text-primary);
}
.inbox-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 20%; right: 20%;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    box-shadow: 0 0 8px var(--accent-glow);
}

.notifications-list, .messages-list {
    padding: 0;
}

.notification-item, .message-thread {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    cursor: pointer;
    transition: background 0.2s;
}
.notification-item:hover, .message-thread:hover {
    background: rgba(255,255,255,0.04);
}

.notif-content {
    flex: 1;
    min-width: 0;
}
.notif-text {
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-primary);
}
.notif-text strong { font-weight: 700; }
.notif-time {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.msg-content {
    flex: 1;
    min-width: 0;
}
.msg-name {
    font-size: 15px;
    font-weight: 600;
}
.msg-preview {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.msg-time {
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
}
.msg-unread {
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px var(--accent-glow);
}

/* ===== CHAT ===== */
.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: calc(var(--safe-top) + 10px) 12px 10px;
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(8, 8, 22, 0.45) !important;
    backdrop-filter: blur(36px) !important;
    border-bottom: 1px solid var(--border-glass) !important;
}
.chat-user-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}
.chat-user-info span { font-weight: 600; }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-bubble {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    animation: fadeUp 0.2s;
}
.chat-bubble.sent {
    align-self: flex-end;
    background: var(--accent);
    color: #000;
    border-bottom-right-radius: 4px;
}
.chat-bubble.received {
    align-self: flex-start;
    background: rgba(15, 15, 35, 0.30);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-glass);
}
.chat-bubble-time {
    font-size: 11px;
    margin-top: 4px;
    opacity: 0.6;
}

.chat-input-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px calc(8px + var(--safe-bottom));
    border-top: 1px solid var(--border-glass);
    background: rgba(8, 8, 22, 0.40) !important;
    backdrop-filter: blur(32px) !important;
}
.chat-input-bar input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    padding: 10px 16px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    backdrop-filter: blur(8px);
}
.chat-input-bar input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(0,245,255,0.15);
}
.chat-input-bar input::placeholder { color: var(--text-muted); }

/* ===== PROFILE ===== */
.profile-header {
    padding-top: var(--safe-top);
}
.profile-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
}
.profile-top-bar h2 {
    font-size: 18px;
    font-weight: 700;
    flex: 1;
    text-align: center;
}
.profile-top-actions {
    display: flex;
    gap: 4px;
}

.profile-info {
    margin: 0 16px 16px;
    padding: 20px;
    text-align: center;
    background: rgba(12, 12, 30, 0.10) !important;
    backdrop-filter: blur(32px) saturate(1.8) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    box-shadow: 0 4px 30px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.08) !important;
}

.profile-avatar-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
}
.avatar-edit-btn {
    position: absolute;
    bottom: 0; right: 0;
    width: 28px; height: 28px;
    background: var(--accent);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-glow);
}
.avatar-edit-btn .material-icons-round { font-size: 16px; color: #000; }

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 16px;
}
.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    transition: transform 0.2s;
}
.stat:hover { transform: scale(1.05); }
.stat strong {
    font-size: 18px;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat span { font-size: 12px; color: var(--text-muted); }

.profile-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.profile-bio {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.profile-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(8, 8, 22, 0.20);
}
.profile-tab {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 12px;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: center;
    transition: color 0.2s;
}
.profile-tab.active { color: var(--text-primary); }
.profile-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 30%; right: 30%;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}
.profile-tab .material-icons-round { font-size: 22px; }

.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    padding: 2px;
}
.profile-grid-item {
    aspect-ratio: 9/16;
    background: var(--bg-card);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}
.profile-grid-item:hover { opacity: 0.85; }
.profile-grid-item .material-icons-round {
    font-size: 28px;
    color: var(--text-muted);
}
.profile-grid-item .item-views {
    position: absolute;
    bottom: 4px;
    left: 6px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 3px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.profile-grid-item .item-views .material-icons-round { font-size: 14px; }
.profile-grid-item .draft-badge {
    position: absolute;
    top: 6px; right: 6px;
    background: var(--accent2);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* Followers/Following list popup */
.followers-popup {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.followers-list-panel {
    width: 100%;
    max-height: 75vh;
    background: rgba(10, 10, 25, 0.65);
    backdrop-filter: blur(40px);
    border-top: 1px solid var(--border-glass);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
}
.followers-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.followers-list-header h3 { font-size: 16px; font-weight: 700; }
.followers-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}
.follower-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s;
}
.follower-item:hover { background: rgba(255,255,255,0.04); }
.follower-item .follower-info { flex: 1; }
.follower-item .follower-name { font-weight: 600; font-size: 14px; }
.follower-item .follower-handle { font-size: 12px; color: var(--text-muted); }

/* ===== LIVE ===== */
.live-view, .live-broadcast {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}
.live-view video, .live-broadcast video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.live-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: calc(var(--safe-top) + 10px) 12px calc(var(--safe-bottom) + 10px);
}

.live-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.live-streamer-info {
    display: flex;
    align-items: center;
    gap: 8px;
}
.live-badge {
    background: var(--gradient-live);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
    box-shadow: 0 0 10px var(--accent3-glow);
}
.live-viewers {
    font-size: 13px;
    color: var(--text-secondary);
}

.live-chat {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    padding: 10px 0;
    max-height: 40vh;
}
.live-chat-msg {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 4px 8px;
    animation: fadeUp 0.3s;
}
.live-chat-msg .chat-name {
    font-weight: 700;
    font-size: 13px;
    color: var(--accent);
}
.live-chat-msg .chat-text {
    font-size: 13px;
    color: var(--text-primary);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.live-bottom-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}
.live-bottom-bar .glass-input { flex: 1; }

.gift-btn .material-icons-round { color: var(--warning); }

.broadcast-controls {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 12px;
}
.broadcast-controls .icon-btn {
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    width: 48px; height: 48px;
}

/* Gift animation */
.gift-animation {
    position: fixed;
    bottom: 200px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50px;
    animation: giftSlide 3s ease forwards;
    z-index: 100;
    box-shadow: var(--shadow-glass);
}
.gift-animation .gift-emoji { font-size: 32px; }
.gift-animation .gift-sender {
    font-weight: 700;
    font-size: 13px;
    color: var(--accent);
}
.gift-animation .gift-name {
    font-size: 12px;
    color: var(--text-secondary);
}
@keyframes giftSlide {
    0% { transform: translateX(-100px); opacity: 0; }
    10% { transform: translateX(0); opacity: 1; }
    80% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(-100px); opacity: 0; }
}

/* ===== GIFTS GRID ===== */
.gifts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 16px;
}
.gift-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    background: rgba(12, 12, 30, 0.18);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-glass);
}
.gift-item:hover {
    border-color: var(--accent);
    background: var(--bg-active);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}
.gift-item.selected {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}
.gift-emoji { font-size: 36px; }
.gift-name { font-size: 11px; color: var(--text-secondary); }
.gift-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--warning);
    display: flex;
    align-items: center;
    gap: 2px;
}

/* ===== EFFECTS GRID ===== */
.effects-categories {
    display: flex;
    gap: 8px;
    padding: 0 16px 12px;
    overflow-x: auto;
    scrollbar-width: none;
}
.effects-categories::-webkit-scrollbar { display: none; }
.effect-cat {
    flex-shrink: 0;
    background: rgba(15, 15, 35, 0.20);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.effect-cat.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    font-weight: 600;
    box-shadow: 0 0 12px var(--accent-glow);
}

.effects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 0 16px 16px;
}
.effect-item {
    aspect-ratio: 1;
    background: rgba(12, 12, 30, 0.18);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 28px;
    box-shadow: var(--shadow-glass);
}
.effect-item:hover {
    border-color: var(--accent2);
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--accent2-glow);
}
.effect-item span:last-child {
    font-size: 10px;
    color: var(--text-muted);
}

/* ===== BOTTOM SHEET ===== */
.bottom-sheet {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    max-height: 70vh;
    background: rgba(8, 8, 22, 0.30);
    backdrop-filter: blur(var(--blur-heavy)) saturate(1.8);
    -webkit-backdrop-filter: blur(var(--blur-heavy)) saturate(1.8);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    z-index: 60;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s;
    border-top: 1px solid rgba(255,255,255,0.10);
    border-left: 1px solid rgba(255,255,255,0.06);
    border-right: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 -8px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.10);
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.bottom-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    font-weight: 600;
    font-size: 15px;
    background: rgba(8, 8, 22, 0.35) !important;
    backdrop-filter: blur(36px) !important;
}

/* Comments */
.comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
}
.comment-item {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}
.comment-body {
    flex: 1;
}
.comment-name {
    font-weight: 700;
    font-size: 13px;
    color: var(--text-secondary);
}
.comment-text {
    font-size: 14px;
    margin-top: 2px;
    line-height: 1.4;
}
.comment-actions {
    display: flex;
    gap: 16px;
    margin-top: 6px;
}
.comment-action {
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
}
.comment-action:hover { color: var(--text-secondary); }
.comment-action .material-icons-round { font-size: 14px; }
.comment-action.liked-comment .material-icons-round { color: var(--accent3); }

/* Comment replies */
.comment-replies {
    margin-left: 40px;
    margin-top: 8px;
    padding-left: 12px;
    border-left: 1px solid rgba(255,255,255,0.06);
}
.comment-replies .comment-item {
    margin-bottom: 10px;
}
.view-replies-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 0;
    margin-left: 40px;
}
.view-replies-btn:hover { color: var(--accent); }

.comment-input-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px calc(10px + var(--safe-bottom));
    border-top: 1px solid var(--border-glass);
    background: rgba(8, 8, 22, 0.35);
    backdrop-filter: blur(28px);
}
.comment-input-bar input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    padding: 10px 16px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    backdrop-filter: blur(8px);
}
.comment-input-bar input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(0,245,255,0.15);
}
.comment-input-bar input::placeholder { color: var(--text-muted); }

/* Share */
.share-options { padding: 16px; }
.share-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    scrollbar-width: none;
}
.share-row::-webkit-scrollbar { display: none; }

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 70px;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}
.share-btn .material-icons-round {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: rgba(12, 12, 30, 0.22);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.2s;
    box-shadow: var(--shadow-glass);
}
.share-btn:hover .material-icons-round {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}
.share-btn span:last-child { font-size: 11px; color: var(--text-secondary); }

.share-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 16px;
}
.share-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    transition: transform 0.2s;
}
.share-action:hover { transform: translateY(-2px); }
.share-action .material-icons-round { font-size: 24px; color: var(--text-secondary); }
.share-action span:last-child { font-size: 12px; }

/* ===== SETTINGS ===== */
.settings-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: calc(var(--safe-top) + 10px) 12px 10px;
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(8, 8, 22, 0.30) !important;
    backdrop-filter: blur(44px) saturate(1.6) !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}
.settings-header h2 { flex: 1; font-size: 18px; }

.settings-list {
    padding: 16px;
}
.settings-section {
    margin-bottom: 16px;
    padding: 4px 0;
    overflow: hidden;
    background: rgba(12, 12, 30, 0.10) !important;
    backdrop-filter: blur(24px) saturate(1.6) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-glass) !important;
}
.settings-section h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 16px 4px;
}
.settings-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 15px;
}
.settings-item:hover { background: rgba(255,255,255,0.04); }
.settings-item .material-icons-round:first-child {
    font-size: 22px;
    color: var(--text-secondary);
}
.settings-item span:nth-child(2) { flex: 1; }
.settings-item .material-icons-round:last-child {
    font-size: 20px;
    color: var(--text-muted);
}

.settings-list .btn-danger {
    margin-top: 16px;
}
.settings-version {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 20px;
    padding-bottom: 20px;
}

/* Screen time widget */
.screen-time-card {
    padding: 20px;
    background: rgba(12, 12, 30, 0.18);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    box-shadow: var(--shadow-glass);
    text-align: center;
}
.screen-time-value {
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.screen-time-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}
.screen-time-bar {
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    margin-top: 12px;
    overflow: hidden;
}
.screen-time-fill {
    height: 100%;
    background: var(--gradient-main);
    border-radius: 2px;
    transition: width 0.3s;
}

/* ===== EDIT PROFILE ===== */
.edit-profile-form {
    padding: 16px;
}
.edit-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.edit-fields {
    padding: 16px;
    background: rgba(12, 12, 30, 0.18) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid var(--border-glass) !important;
    box-shadow: var(--shadow-glass) !important;
}
.edit-field {
    margin-bottom: 20px;
}
.edit-field label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}
.edit-field input, .edit-field textarea {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 12px;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(8px);
}
.edit-field input:focus, .edit-field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(0,245,255,0.15);
}
.edit-field textarea {
    resize: none;
    min-height: 80px;
}

/* ===== ADMIN PANEL ===== */
.admin-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: calc(var(--safe-top) + 10px) 12px 10px;
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(8, 8, 22, 0.45) !important;
    backdrop-filter: blur(36px) !important;
    border-bottom: 1px solid var(--border-glass) !important;
}
.admin-header h2 { flex: 1; font-size: 18px; }

.admin-badge {
    background: var(--gradient-main);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    box-shadow: 0 0 10px var(--accent-glow);
}

.admin-tabs {
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    scrollbar-width: none;
    background: rgba(8, 8, 22, 0.20);
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}
.admin-tab.active { color: var(--accent); }
.admin-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 20%; right: 20%;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}
.admin-tab .material-icons-round { font-size: 22px; }

.admin-content {
    padding: 16px;
}

/* Admin Dashboard */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.admin-stat-card {
    padding: 16px;
    background: rgba(12, 12, 30, 0.18);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s;
    box-shadow: var(--shadow-glass);
    position: relative;
    z-index: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0,245,255,0.15);
    touch-action: manipulation;
}
.admin-stat-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}
.admin-stat-card:active {
    transform: scale(0.96);
}
.admin-stat-card .stat-value {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.admin-stat-card .stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.admin-section-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.admin-section-title .material-icons-round {
    color: var(--accent);
    font-size: 20px;
}

/* Admin User List */
.admin-user-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(12, 12, 30, 0.10);
    backdrop-filter: blur(20px) saturate(1.6);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    transition: all 0.2s;
    box-shadow: var(--shadow-glass);
}
.admin-user-item:hover {
    border-color: var(--border-glow);
    background: rgba(0, 245, 255, 0.03);
}
.admin-user-top {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.admin-user-info {
    flex: 1;
    min-width: 0;
}
.admin-user-name {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-user-email {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-user-role {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}
.role-owner { background: var(--accent3); color: #fff; }
.role-admin3 { background: var(--accent); color: #000; }
.role-admin2 { background: var(--accent2); color: #fff; }
.role-admin1 { background: var(--warning); color: #000; }
.role-user { background: rgba(15,15,35,0.20); color: var(--text-muted); border: 1px solid var(--border-glass); }

.admin-user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    padding-top: 6px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.admin-user-stats-row {
    display: flex;
    gap: 12px;
    width: 100%;
    padding: 4px 0 2px;
}
.admin-user-stat {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: var(--text-muted);
}
.admin-user-stat .material-icons-round {
    font-size: 13px;
    opacity: 0.6;
}
.admin-user-actions .admin-action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-glass);
    background: rgba(255,255,255,0.04);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.admin-user-actions .admin-action-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--border-glow);
}
.admin-user-actions .admin-action-btn .material-icons-round { font-size: 16px; }
.admin-action-btn.action-danger { color: var(--danger); border-color: rgba(255,71,87,0.2); }
.admin-action-btn.action-danger:hover { background: rgba(255,71,87,0.1); }
.admin-action-btn.action-coins { color: #ffa502; border-color: rgba(255,165,2,0.25); }
.admin-action-btn.action-coins:hover { background: rgba(255,165,2,0.12); }
.admin-action-btn.action-success { color: var(--success); border-color: rgba(46,213,115,0.2); }
.admin-action-btn.action-success:hover { background: rgba(46,213,115,0.1); }
.admin-action-btn.action-accent { color: var(--accent); border-color: rgba(0,245,255,0.2); }
.admin-action-btn.action-accent:hover { background: rgba(0,245,255,0.1); }
.admin-action-btn.action-accent2 { color: var(--accent2); border-color: rgba(139,92,246,0.2); }
.admin-action-btn.action-accent2:hover { background: rgba(139,92,246,0.1); }
.admin-action-btn.action-warning { color: var(--warning); border-color: rgba(255,165,2,0.2); }
.admin-action-btn.action-warning:hover { background: rgba(255,165,2,0.1); }

/* Monitoring System */
.monitor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 12px;
}
.monitor-card {
    background: rgba(12, 12, 30, 0.15);
    backdrop-filter: blur(20px) saturate(1.5);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s;
}
.monitor-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}
.monitor-card.offline { opacity: 0.5; }
.monitor-card.is-live { border-color: rgba(255, 0, 110, 0.4); box-shadow: 0 0 15px rgba(255, 0, 110, 0.15); }
.monitor-feed {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.monitor-feed-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
}
.monitor-cam-icon .material-icons-round { font-size: 28px; opacity: 0.5; }
.monitor-live-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--accent3);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    animation: pulse 1.5s infinite;
}
.monitor-rec-indicator {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    color: var(--danger);
}
.rec-dot-anim {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--danger);
    animation: pulse 1s infinite;
}
.monitor-info {
    padding: 8px;
}
.monitor-user-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}
.monitor-user-name {
    font-size: 12px;
    font-weight: 600;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.monitor-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.monitor-status-dot.on { background: var(--success); box-shadow: 0 0 6px var(--success); }
.monitor-status-dot.off { background: var(--text-muted); }
.monitor-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.monitor-actions {
    display: flex;
    gap: 4px;
}
.monitor-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    background: rgba(255,255,255,0.04);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}
.monitor-btn:hover:not(:disabled) { background: rgba(0,245,255,0.08); color: var(--accent); border-color: var(--border-glow); }
.monitor-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.monitor-btn .material-icons-round { font-size: 16px; }
.monitor-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 50px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glass);
    font-size: 12px;
    color: var(--text-secondary);
}
.monitor-status-pill.online { color: var(--success); border-color: rgba(46,213,115,0.2); }
.monitor-status-pill.live { color: var(--accent3); border-color: rgba(255,0,110,0.2); }
.monitor-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
}
.monitor-dot.live { background: var(--accent3); animation: pulse 1s infinite; }
.monitor-view-modal { max-width: 420px; }
.monitor-view-feed {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    margin-bottom: 12px;
}
.monitor-view-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(0,0,0,0.35);
}
.monitor-view-rec {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--danger);
    background: rgba(0,0,0,0.5);
    padding: 4px 10px;
    border-radius: 20px;
}
.monitor-view-controls { padding: 4px 0; }
.monitor-view-status {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-sm);
}

/* Admin Live Stream Controls */
.admin-live-panel {
    position: absolute;
    right: 8px;
    top: 60px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.admin-live-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0,245,255,0.3);
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.admin-live-toggle.active {
    background: rgba(0,245,255,0.15);
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}
.admin-live-toggle .material-icons-round { font-size: 20px; }
.admin-live-controls {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(0,245,255,0.15);
    border-radius: var(--radius-md);
    padding: 10px;
    min-width: 180px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.admin-live-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}
.admin-live-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}
.admin-live-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: none;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.06);
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    text-align: left;
}
.admin-live-btn:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }
.admin-live-btn.active { background: rgba(0,245,255,0.12); color: var(--accent); }
.admin-live-btn.action-warning { color: var(--warning); }
.admin-live-btn.action-danger { color: var(--danger); }
.admin-live-btn .material-icons-round { font-size: 16px; }

/* Admin Content */
.admin-video-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: rgba(12, 12, 30, 0.10);
    backdrop-filter: blur(20px) saturate(1.6);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    box-shadow: var(--shadow-glass);
}
.admin-video-thumb {
    width: 60px;
    height: 80px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.admin-video-thumb .material-icons-round { color: var(--text-muted); }
.admin-video-info { flex: 1; }
.admin-video-info .video-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.admin-video-info .video-meta { font-size: 12px; color: var(--text-muted); }

/* Admin Reports */
.admin-report-item {
    padding: 12px;
    background: rgba(12, 12, 30, 0.10);
    backdrop-filter: blur(20px) saturate(1.6);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    box-shadow: var(--shadow-glass);
}
.report-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.report-type {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 50px;
    background: var(--danger);
    color: #fff;
    font-weight: 600;
}
.report-content {
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}
.report-actions {
    display: flex;
    gap: 8px;
}

/* Admin role selector modal */
.admin-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    animation: fadeIn 0.2s;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.admin-modal-content {
    background: rgba(10, 10, 25, 0.50);
    backdrop-filter: blur(50px) saturate(1.8);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 360px;
    width: calc(100% - 40px);
    animation: fadeUp 0.3s;
    box-shadow: 0 8px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.10);
}
.admin-modal-content h3 {
    font-size: 18px;
    margin-bottom: 16px;
    text-align: center;
}
.role-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(255,255,255,0.02);
}
.role-option:hover {
    border-color: var(--accent);
    background: var(--bg-active);
}
.role-option .role-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.role-option .role-title { font-weight: 600; font-size: 14px; }
.role-option .role-desc { font-size: 12px; color: var(--text-muted); }

/* ===== AVATARS ===== */
.avatar-xs, .avatar-sm, .avatar-md, .avatar-lg {
    border-radius: var(--radius-full);
    background: var(--bg-card);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}
.avatar-xs { width: 28px; height: 28px; font-size: 12px; }
.avatar-sm { width: 36px; height: 36px; font-size: 14px; }
.avatar-md { width: 50px; height: 50px; font-size: 18px; }
.avatar-lg {
    width: 80px; height: 80px; font-size: 28px;
    border: 3px solid var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: calc(var(--nav-height) + 20px);
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 245, 255, 0.12);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 245, 255, 0.3);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: var(--radius-xl);
    font-size: 14px;
    font-weight: 500;
    z-index: 500;
    transition: transform 0.3s, opacity 0.3s;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 0 30px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.08);
}
.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ===== COINS DISPLAY ===== */
.coins-display {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    color: var(--warning);
}
.coins-display .material-icons-round { font-size: 20px; }

/* ===== APP CONTAINER ===== */
#app {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
    #app {
        max-width: 420px;
        margin: 0 auto;
        position: relative;
        box-shadow: 0 0 60px rgba(0, 245, 255, 0.05);
        border-left: 1px solid var(--border-glass);
        border-right: 1px solid var(--border-glass);
    }
    .bottom-nav {
        max-width: 420px;
        left: 50%;
        transform: translateX(-50%);
    }
    .bottom-sheet {
        max-width: 420px;
        left: 50%;
        transform: translateX(-50%);
    }
    .feed-header {
        max-width: 420px;
        left: 50%;
        transform: translateX(-50%);
    }
    .video-context-menu {
        max-width: 280px;
    }
}

/* ===== ANIMATIONS ===== */
.page-enter {
    animation: pageSlideIn 0.3s ease forwards;
}
@keyframes pageSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, rgba(255,255,255,0.04) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Particles background effect */
.particles-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: float linear infinite;
}
@keyframes float {
    from { transform: translateY(100vh) rotate(0deg); }
    to { transform: translateY(-10vh) rotate(720deg); }
}

/* Verified badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    margin-left: 4px;
    box-shadow: 0 0 6px var(--accent-glow);
}
.verified-badge .material-icons-round {
    font-size: 12px;
    color: #000;
}

/* Live indicator on avatars */
.avatar-live {
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}
.avatar-live::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--gradient-live);
    z-index: -1;
}

/* Connection status */
.online-dot {
    width: 10px;
    height: 10px;
    background: var(--success);
    border: 2px solid var(--bg-primary);
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    right: 0;
    box-shadow: 0 0 6px rgba(46, 213, 115, 0.4);
}

/* Search results */
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.search-result-item:hover { background: rgba(255,255,255,0.04); }
.search-result-text { flex: 1; }
.search-result-text .primary { font-weight: 600; font-size: 15px; }
.search-result-text .secondary { font-size: 13px; color: var(--text-muted); }

/* Empty state */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}
.empty-state .material-icons-round {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: 16px;
    opacity: 0.5;
}
.empty-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
}
.empty-state p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Duet layout */
.duet-layout {
    display: flex;
}
.duet-layout > * {
    flex: 1;
}

/* Live lists on discover */
.live-discover-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0;
    margin-bottom: 24px;
    scrollbar-width: none;
}
.live-discover-list::-webkit-scrollbar { display: none; }
.live-card {
    flex-shrink: 0;
    width: 140px;
    height: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
    border: 1px solid rgba(255,255,255,0.04);
}
.live-card:hover { transform: scale(1.02); }
.live-card .live-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
}
.live-card .live-card-info {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    padding: 8px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
}
.live-card .live-card-info .name { font-size: 13px; font-weight: 600; }
.live-card .live-card-info .count { font-size: 11px; color: var(--text-muted); }

/* ===== ENHANCED VIDEO BACKGROUND ===== */
.video-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
}
.video-bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0.2) 0%,
        transparent 25%,
        transparent 60%,
        rgba(0,0,0,0.65) 100%
    );
    pointer-events: none;
    z-index: 2;
}
.video-emoji-particles {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 3;
}
.float-emoji {
    position: absolute;
    font-size: 52px;
    opacity: 0.12;
    animation: floatEmoji 7s ease-in-out infinite;
    filter: blur(1px);
}
.float-emoji[style*="--d:0"] { animation-delay: 0s; left: 12%; top: 30%; }
.float-emoji[style*="--d:1"] { animation-delay: 1.8s; left: 58%; top: 50%; }
.float-emoji[style*="--d:2"] { animation-delay: 3.5s; left: 32%; top: 20%; }
.float-emoji[style*="--d:3"] { animation-delay: 5s; left: 72%; top: 65%; }
@keyframes floatEmoji {
    0%, 100% { transform: translateY(0) scale(1) rotate(0deg); opacity: 0.1; }
    25% { transform: translateY(-50px) scale(1.3) rotate(12deg); opacity: 0.2; }
    50% { transform: translateY(-100px) scale(0.8) rotate(-8deg); opacity: 0.14; }
    75% { transform: translateY(-50px) scale(1.15) rotate(6deg); opacity: 0.18; }
}

/* ===== MUSIC DISC ===== */
.music-disc-wrap {
    margin-top: 16px;
}
.music-disc-wrap .avatar-sm {
    animation: spin 4s linear infinite;
}

/* ===== ADMIN GLOW NAME ===== */
.admin-glow-name {
    background: linear-gradient(90deg, #00f5ff, #bf5af2, #ff2d55, #00f5ff);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: adminGlowShift 4s linear infinite;
    text-shadow: none;
    font-weight: 700;
    position: relative;
}
.admin-glow-name::after {
    content: attr(data-text);
    position: absolute;
    left: 0; top: 0;
    z-index: -1;
    filter: blur(8px);
    opacity: 0.5;
    background: linear-gradient(90deg, #00f5ff, #bf5af2, #ff2d55, #00f5ff);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: adminGlowShift 4s linear infinite;
}
@keyframes adminGlowShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}
.feed-video-username.admin-glow-name {
    text-shadow: 0 0 10px rgba(0,245,255,0.4), 0 0 20px rgba(191,90,242,0.3);
}

/* ===== CO-STREAM GRID ===== */
.co-stream-grid {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: grid;
    gap: 2px;
    z-index: 3;
}
.co-stream-grid.co-stream-2 { grid-template-columns: 1fr 1fr; }
.co-stream-grid.co-stream-3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.co-stream-grid.co-stream-3 .co-stream-cell:first-child { grid-column: span 2; }
.co-stream-grid.co-stream-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.co-stream-cell {
    position: relative;
    background: rgba(8,8,20,0.6);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.co-stream-media,
.co-stream-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    object-fit: cover;
}
.co-stream-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 20px;
}
.co-stream-avatar-wrap {
    width: 108px;
    height: 108px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.co-stream-avatar-wrap .avatar-lg {
    width: 88px;
    height: 88px;
    font-size: 32px;
}
.co-stream-role {
    max-width: 90%;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0,0,0,0.3);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}
.co-stream-label {
    position: absolute;
    bottom: 8px; left: 8px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    padding: 4px 10px;
    border-radius: var(--radius-xl);
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    z-index: 2;
}
.co-stream-remove {
    position: absolute;
    top: 6px; right: 6px;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: rgba(255,45,85,0.7);
    border: none;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}
.co-stream-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-glass);
    background: rgba(0,245,255,0.08);
    color: var(--accent);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.co-stream-btn:hover {
    background: rgba(0,245,255,0.15);
    border-color: var(--accent);
}

/* ===== EFFECT PARTICLES ===== */
.effect-overlay-layer {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}
.effect-particle {
    position: absolute;
    font-size: 28px;
    pointer-events: none;
    animation: effectParticleFloat 5s ease-out forwards;
    z-index: 5;
}
@keyframes effectParticleFloat {
    0% { transform: translateY(0) scale(0.5) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-400px) scale(1.5) rotate(360deg); opacity: 0; }
}
.effect-color-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 4;
    border-radius: inherit;
}
.effect-face-sticker, .face-sticker {
    position: absolute;
    top: 25%; left: 50%;
    transform: translateX(-50%);
    font-size: 80px;
    pointer-events: none;
    z-index: 6;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.4));
}

/* ===== MOD BADGES ===== */
.mod-badge-inline, .mod-chat-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: linear-gradient(135deg, rgba(0,245,255,0.15), rgba(191,90,242,0.15));
    border: 1px solid rgba(0,245,255,0.25);
    padding: 1px 6px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 600;
    color: var(--accent);
    margin-left: 4px;
}
.mod-chat-badge .material-icons-round { font-size: 12px; }
.admin-chat-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: linear-gradient(135deg, rgba(255,45,85,0.15), rgba(191,90,242,0.15));
    border: 1px solid rgba(191,90,242,0.3);
    padding: 1px 6px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 600;
    color: var(--accent3);
    margin-left: 4px;
}
.chat-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 1px 6px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 4px;
}
.chat-name-mod { color: var(--accent); font-weight: 700; }
.chat-name-streamer { color: var(--warning); font-weight: 700; }

/* ===== ADMIN QUICK ACTIONS ===== */
.admin-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
    z-index: 2;
}
.admin-quick-actions .btn-outline {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 8px 14px;
    position: relative;
    z-index: 2;
    pointer-events: auto;
}
.admin-filter-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}
.admin-filter-bar::-webkit-scrollbar { display: none; }
.admin-filter-bar .btn-sm { white-space: nowrap; font-size: 12px; }
.admin-filter-bar .btn-sm.active { background: var(--accent); color: #000; border-color: var(--accent); }

/* Admin Edit Form */
.edit-field {
    margin-bottom: 14px;
}
.edit-field label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 600;
}
.edit-field input,
.edit-field textarea {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
    resize: none;
}
.edit-field input:focus,
.edit-field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

/* ===== BROADCAST SETTINGS MODAL ===== */
.broadcast-settings-modal {
    background: rgba(10,10,25,0.75);
    backdrop-filter: blur(30px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 20px;
    max-width: 340px;
    width: calc(100% - 40px);
}
.broadcast-settings-modal h3 {
    font-size: 16px;
    margin-bottom: 16px;
    text-align: center;
}

/* ===== ENHANCED GLASS PANELS (merged into main .glass-panel) ===== */

/* ===== BTN DANGER ===== */
.btn-danger {
    background: var(--danger);
    color: #fff;
    border: none;
    border-radius: var(--radius-xl);
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}
.btn-danger:hover { opacity: 0.85; }

/* ===== DRAFT BADGE ===== */
.draft-badge {
    position: absolute;
    top: 6px; right: 6px;
    background: rgba(255,204,0,0.8);
    color: #000;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
}

/* ===== VIDEO PROGRESS BAR ===== */
.video-progress {
    position: absolute;
    bottom: var(--nav-height);
    left: 0; right: 0;
    height: 2px;
    background: rgba(255,255,255,0.12);
    z-index: 15;
}
.video-progress-fill {
    height: 100%;
    background: rgba(255,255,255,0.85);
    width: 0%;
    transition: width 0.15s linear;
}

/* ===== FEED COUNTER ===== */
.feed-counter {
    position: absolute;
    top: calc(var(--safe-top) + 52px);
    right: 16px;
    font-size: 12px;
    color: rgba(255,255,255,0.2);
    z-index: 12;
}

/* ===== FOLLOW BUTTON IN FEED ===== */
.follow-btn-feed {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.6);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.2s;
}
.follow-btn-feed:hover {
    background: var(--accent3);
    border-color: var(--accent3);
}

/* ===== NOTIFICATION UNREAD ===== */
.notification-item.unread {
    background: rgba(0, 245, 255, 0.04);
    border-left: 3px solid var(--accent);
}

/* ===== ENHANCED GRID ITEMS ===== */
.discover-grid-item,
.profile-grid-item {
    transition: transform 0.2s, opacity 0.2s;
}
.discover-grid-item:hover,
.profile-grid-item:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

/* ===== QR CODE MODAL ===== */
.qr-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}
.qr-content {
    background: rgba(10, 10, 25, 0.65);
    backdrop-filter: blur(40px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
    animation: fadeUp 0.3s;
}
.qr-placeholder {
    width: 180px;
    height: 180px;
    background: #fff;
    border-radius: var(--radius-md);
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 14px;
    font-weight: 600;
}
.qr-content h3 { margin-bottom: 4px; }
.qr-content p { color: var(--text-muted); font-size: 14px; }

/* ===== WATCH HISTORY ===== */
.history-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    cursor: pointer;
    transition: background 0.2s;
}
.history-item:hover { background: rgba(255,255,255,0.04); }
.history-thumb {
    width: 80px;
    height: 100px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.history-info { flex: 1; }
.history-info .h-user { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.history-info .h-caption { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
.history-info .h-time { font-size: 12px; color: var(--text-muted); }

/* ===== REPOST INDICATOR ===== */
.repost-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.repost-indicator .material-icons-round { font-size: 14px; }

/* ===== GLASS REFLECTION EFFECT ===== */
.glass-reflection {
    position: relative;
    overflow: hidden;
}
.glass-reflection::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(
        135deg,
        transparent 40%,
        rgba(255,255,255,0.03) 45%,
        rgba(255,255,255,0.05) 50%,
        rgba(255,255,255,0.03) 55%,
        transparent 60%
    );
    pointer-events: none;
}

/* ===== GLASS BORDER GLOW ON HOVER ===== */
.glass-hover-glow {
    transition: border-color 0.3s, box-shadow 0.3s;
}
.glass-hover-glow:hover {
    border-color: rgba(0, 245, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.08), var(--shadow-glass);
}
