/* ==========================================================================
   LIVENKI STREAM WEB APP - STYLESHEET
   Aesthetics: Vibrant Dark Glassmorphism, Neon Accents & Smooth Animations
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Propenki Luxury Dark Surface Tokens */
    --bg-cosmos: #030611;
    --bg-deep: #070c18;
    --bg-surface: #0d1424;
    --bg-card: rgba(15, 23, 42, 0.72);
    --bg-card-hover: rgba(22, 33, 58, 0.85);
    --bg-card-glass: rgba(15, 23, 42, 0.78);
    --bg-modal: rgba(11, 18, 33, 0.96);
    --bg-sidebar: rgba(11, 18, 33, 0.92);
    --bg-glass: rgba(255, 255, 255, 0.035);
    --bg-glass-strong: rgba(255, 255, 255, 0.07);

    /* Legacy mapping mapped to modern dark palette */
    --bg-app: var(--bg-cosmos);
    --bg-dark: var(--bg-deep);

    /* Brand & Streaming Accents */
    --accent-purple: #a855f7;
    --accent-purple-glow: rgba(168, 85, 247, 0.25);
    --accent-cyan: #06b6d4;
    --accent-cyan-glow: rgba(6, 182, 212, 0.22);
    --accent-teal: #10b981;
    --accent-pink: #ec4899;
    --accent-gold: #f59e0b;
    --accent-gold-light: #fbbf24;
    --accent-live: #ef4444;

    --primary-gradient: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
    --gold-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    --pink-gradient: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
    --cyan-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);

    /* Typography & Contrast */
    --text-main: #f8fafc;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.14);
    --border-hover: rgba(255, 255, 255, 0.24);
    --border-accent: rgba(168, 85, 247, 0.35);
    --border-glow: rgba(6, 182, 212, 0.25);

    /* Radii */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Shadows & Glass */
    --shadow-bento: 0 10px 40px -10px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(255, 255, 255, 0.07) inset;
    --shadow-glow: 0 0 40px rgba(168, 85, 247, 0.2);
    --shadow-purple: 0 8px 25px rgba(168, 85, 247, 0.25);
    --shadow-pink: 0 8px 25px rgba(236, 72, 153, 0.25);
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --backdrop-blur: blur(20px);

    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Outfit', var(--font-sans);
}

/* Global Reset & Basic setup */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    touch-action: manipulation;
}

html {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
    position: relative;
    -webkit-text-size-adjust: 100%;
}

html, body, button, a, div, .btn-heart-action {
    touch-action: manipulation !important;
}

/* Prevent auto-zoom on mobile inputs */
input, select, textarea, .chat-input, .search-input, .form-input, #broadcast-chat-input {
    font-size: 16px !important;
    touch-action: manipulation !important;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-cosmos);
    background-image: 
        radial-gradient(circle at 12% 10%, rgba(168, 85, 247, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 88% 30%, rgba(6, 182, 212, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 50% 90%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.modal-open {
    overflow: hidden !important;
    touch-action: none;
}

/* Navbar Glassmorphic Dark */
.app-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 12, 24, 0.85);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

.app-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(168, 85, 247, 0.35) 35%, rgba(6, 182, 212, 0.35) 65%, transparent 100%);
    pointer-events: none;
}

/* Hamburger Drawer Menu Styles */
.btn-hamburger {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 1.3rem;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-right: 12px;
}

.btn-hamburger:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
}

.hamburger-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.hamburger-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.hamburger-drawer-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 320px;
    height: 100%;
    max-height: 100vh;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: rgba(10, 15, 30, 0.96);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-right: 1px solid var(--border-subtle);
    padding: 24px 20px 48px 20px;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.8);
}

.hamburger-drawer-content::-webkit-scrollbar {
    width: 4px;
}
.hamburger-drawer-content::-webkit-scrollbar-track {
    background: transparent;
}
.hamburger-drawer-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}
.hamburger-drawer-content::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.4);
}

.hamburger-drawer-overlay.active .hamburger-drawer-content {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 16px;
    flex-shrink: 0;
}

/* PROMINENT PORTAL CARD IN DRAWER */
.drawer-portal-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(6, 182, 212, 0.12) 100%);
    border: 1px solid rgba(168, 85, 247, 0.35);
    text-decoration: none;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 8px;
    flex-shrink: 0;
}

.drawer-portal-card:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(6, 182, 212, 0.22) 100%);
    border-color: rgba(6, 182, 212, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.25);
}

.drawer-portal-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #a855f7, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.35);
}

.drawer-portal-info {
    flex: 1;
}

.drawer-portal-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: #f8fafc;
}

.drawer-portal-sub {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.drawer-portal-arrow {
    color: var(--text-muted);
    transition: transform 0.2s ease, color 0.2s ease;
}

.drawer-portal-card:hover .drawer-portal-arrow {
    color: #06b6d4;
    transform: translateX(3px);
}

.drawer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drawer-nav-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.2s ease;
}

.drawer-nav-item a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
    transform: translateX(3px);
}

.nav-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.drawer-nav-item a:hover .nav-icon-wrap {
    background: rgba(168, 85, 247, 0.18);
    border-color: rgba(168, 85, 247, 0.4);
    color: #c084fc;
}

.nav-icon-wrap.icon-discover {
    color: #c084fc;
}
.nav-icon-wrap.icon-tv {
    color: #06b6d4;
}
.nav-icon-wrap.icon-gold {
    color: #fbbf24;
}
.nav-icon-wrap.icon-apple {
    color: #e2e8f0;
}
.nav-icon-wrap.icon-admin {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
}

.nav-item-portal {
    background: rgba(168, 85, 247, 0.12) !important;
    border: 1px solid rgba(168, 85, 247, 0.3) !important;
    color: #e2e8f0 !important;
    font-weight: 700 !important;
}

.nav-item-portal:hover {
    background: rgba(168, 85, 247, 0.22) !important;
    border-color: rgba(6, 182, 212, 0.4) !important;
    color: #fff !important;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-purple);
}

.brand-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.search-bar-container {
    flex: 1;
    max-width: 440px;
    margin: 0 24px;
    position: relative;
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 10px 18px 10px 42px;
    color: #f8fafc;
    font-size: 0.92rem;
    outline: none;
    transition: all 0.25s ease;
}

.search-input:focus {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
    background: rgba(255, 255, 255, 0.07);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 1rem;
    pointer-events: none;
}

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

.desktop-only-btn {
    display: inline-flex;
}

.btn-go-live {
    background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    padding: 9px 20px;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-go-live:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.45);
}

.coin-badge {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-full);
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: var(--accent-gold-light);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.coin-badge:hover {
    background: rgba(245, 158, 11, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
}

.btn-auth-primary {
    background: var(--primary-gradient);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-full);
    padding: 10px 24px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-purple);
}

.btn-auth-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(168, 85, 247, 0.4);
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    padding: 5px 14px 5px 6px;
    border-radius: var(--radius-full);
    cursor: pointer;
    color: #f8fafc;
    transition: all 0.2s ease;
}

.user-profile-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--primary-gradient);
}

/* App Main Layout */
.app-container {
    display: flex;
    min-height: calc(100vh - 65px);
}

/* Sidebar */
.app-sidebar {
    width: 260px;
    background: rgba(14, 16, 26, 0.6);
    border-right: 1px solid var(--border-subtle);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.sidebar-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-dim);
    margin-bottom: 12px;
    font-weight: 700;
}

.sidebar-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-nav-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.sidebar-nav-item a:hover,
.sidebar-nav-item.active a {
    background: rgba(186, 73, 255, 0.15);
    color: #fff;
    border-left: 3px solid var(--accent-purple);
}

.recommended-channels {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.channel-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s ease;
}

.channel-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.channel-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.channel-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.channel-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-main);
}

.channel-category {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--accent-pink);
    font-weight: 700;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-pink);
    box-shadow: 0 0 8px var(--accent-pink);
    animation: blink 1.5s infinite ease-in-out;
}

@keyframes blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* Main Content Area */
.app-main {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 32px 60px 32px;
    width: 100%;
}

/* Clean Header Architecture */
.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 12px;
}

.nav-item {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    padding: 7px 16px;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav-item:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.06);
}

.nav-item.active {
    color: #ffffff;
    background: rgba(168, 85, 247, 0.22);
    border: 1px solid rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

@media (max-width: 1180px) {
    .header-nav-links {
        display: none !important;
    }
}

@media (max-width: 1100px) {
    .btn-appstore-header,
    #btn-admin-panel {
        display: none !important;
    }
}

@media (max-width: 900px) {
    #user-name-display,
    #btn-logout {
        display: none !important;
    }
    .user-profile-btn {
        padding: 2px !important;
        background: transparent !important;
        border: none !important;
    }
}

/* Elegant App Store Button in Header */
.btn-appstore-header {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: #FFFFFF !important;
    text-decoration: none;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-appstore-header:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

/* Sleek Transmit button */
.btn-golive-accent {
    background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-full);
    padding: 8px 18px;
    font-weight: 800;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
    transition: all 0.2s ease;
}

.btn-golive-accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(168, 85, 247, 0.45);
}

/* Minimalist Auth Ghost Button */
.btn-auth-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 8px 18px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-auth-ghost:hover {
    border-color: rgba(168, 85, 247, 0.5);
    color: #ffffff;
    background: rgba(168, 85, 247, 0.15);
}

.btn-logout-ghost {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-logout-ghost:hover {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.08);
}

/* Stream Feed Header */
.stream-feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.stream-feed-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pulse-indicator {
    width: 10px;
    height: 10px;
    background: #FF2D55;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(255, 45, 85, 0.7);
    animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 45, 85, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 45, 85, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 45, 85, 0); }
}

.feed-main-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.3px;
}

.feed-badge-info {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.hero-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0.85;
}

.hero-action-card.card-tv::before {
    background: linear-gradient(90deg, #BA49FF 0%, #00F2FE 100%);
}

.hero-action-card.card-stream::before {
    background: linear-gradient(90deg, #BA49FF 0%, #00FFAA 100%);
}

.hero-action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.hero-card-badge {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: rgba(186, 73, 255, 0.12);
    color: var(--accent-purple);
    border: 1px solid rgba(186, 73, 255, 0.25);
}

.hero-card-badge.live-badge {
    background: rgba(0, 242, 254, 0.15);
    color: #0284C7;
    border-color: rgba(0, 242, 254, 0.4);
}

.hero-card-icon {
    font-size: 2.4rem;
    margin-bottom: 6px;
}

.hero-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 6px;
}

.hero-card-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.hero-card-btn {
    width: 100%;
    padding: 12px 20px;
    border-radius: var(--radius-full);
    border: none;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-stream-gradient {
    background: linear-gradient(135deg, #BA49FF 0%, #00F2FE 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(186, 73, 255, 0.3);
}

.hero-card-btn:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .app-hero-selection-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 24px;
    }

    .hero-action-card {
        padding: 18px 16px;
    }

    .hero-card-title {
        font-size: 1.25rem;
    }
}

/* Hero Category Chips */
.category-chips {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

.chip {
    padding: 9px 22px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.25s ease;
}

.chip:hover {
    background: #F1F5F9;
    color: #0F172A;
    transform: translateY(-2px);
}

.chip.active {
    background: linear-gradient(135deg, #BA49FF 0%, #00F2FE 100%);
    color: #ffffff;
    border-color: transparent;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(186, 73, 255, 0.3);
    transform: translateY(-2px);
}

/* Section Header */
.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.3px;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: var(--primary-gradient);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

/* Streams Grid */
.streams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stream-card {
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-bento);
    animation: cardFadeUp 0.4s ease-out forwards;
}

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

.stream-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #a855f7, #06b6d4);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.stream-card:hover {
    transform: translateY(-6px);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(168, 85, 247, 0.2);
}

.stream-card:hover::before {
    opacity: 1;
}

.thumbnail-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #090a10;
    overflow: hidden;
}

.thumbnail-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10, 11, 18, 0.6) 100%);
    pointer-events: none;
}

.stream-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stream-card:hover .stream-thumbnail {
    transform: scale(1.07);
}

.card-live-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, rgba(255, 51, 133, 0.95) 0%, rgba(186, 73, 255, 0.95) 100%);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(255, 51, 133, 0.4);
    z-index: 3;
}

.card-viewers-count {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(10, 11, 18, 0.82);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 3;
}

.stream-details {
    padding: 16px;
    display: flex;
    gap: 12px;
}

.streamer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    padding: 2px;
    background: linear-gradient(135deg, #FF3385 0%, #BA49FF 50%, #00F2FE 100%);
    flex-shrink: 0;
}

.stream-meta {
    flex: 1;
    overflow: hidden;
}

.stream-title {
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--text-main);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.streamer-name {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.stream-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    color: var(--accent-cyan);
    font-weight: 600;
}

/* Full Screen / Stream View Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 6, 10, 0.85);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   STREAM MODAL / LIVE VIEWER - CINEMA DARK TITANIUM (1:1 iOS App Parity)
   ========================================================================== */

.stream-modal-content {
    width: 96%;
    max-width: 1320px;
    height: 90vh;
    height: 90dvh;
    background: #030611;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 50px rgba(168, 85, 247, 0.15);
    position: relative;
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
}

/* Left Area: Video Player Cinema Stage */
.stream-video-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #000;
    position: relative;
    min-width: 0;
    overflow: hidden;
}

/* Stream Top HUD Header (Overlaid over video like iOS topHeaderBar) */
.stream-hud-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(3, 6, 17, 0.85) 0%, rgba(3, 6, 17, 0.3) 65%, transparent 100%);
    pointer-events: auto;
}

.stream-hud-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.stream-hud-close-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.stream-hud-close-btn:hover {
    background: rgba(239, 68, 68, 0.85);
    border-color: rgba(239, 68, 68, 1);
    transform: scale(1.06);
}

.stream-streamer-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(10, 15, 30, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 4px 14px 4px 5px;
    min-width: 0;
}

.streamer-avatar-wrapper {
    position: relative;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.host-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

.streamer-live-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #00E676;
    border: 2px solid #000;
}

.streamer-meta-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.streamer-name-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.streamer-username {
    font-weight: 800;
    font-size: 0.88rem;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-display);
}

.streamer-badge-verified {
    font-size: 0.7rem;
    color: var(--accent-cyan);
    font-weight: 900;
}

.streamer-live-subject {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.btn-streamer-follow-pill {
    background: linear-gradient(135deg, #FF3385 0%, #BA49FF 100%);
    border: none;
    color: #FFFFFF;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(255, 51, 133, 0.4);
    margin-left: 4px;
}

.btn-streamer-follow-pill:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(255, 51, 133, 0.6);
}

.btn-streamer-follow-pill.following {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    box-shadow: none;
}

.stream-hud-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.stream-live-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 999px;
    padding: 6px 14px;
    color: #FFFFFF;
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stream-live-tag:hover {
    border-color: rgba(239, 68, 68, 0.7);
    background: rgba(239, 68, 68, 0.2);
}

.live-dot-pulse {
    width: 8px;
    height: 8px;
    background: #EF4444;
    border-radius: 50%;
    box-shadow: 0 0 10px #EF4444;
    animation: livePulse 1.2s infinite;
}

.live-label {
    color: #EF4444;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.live-separator {
    color: rgba(255, 255, 255, 0.3);
}

/* Video Stage */
.video-player-wrapper {
    flex: 1;
    position: relative;
    background: radial-gradient(circle at center, rgba(168, 85, 247, 0.08) 0%, #000 85%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-element {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    outline: none;
}

/* Floating Hearts Container overlay */
.floating-hearts-overlay {
    position: absolute;
    bottom: 80px;
    right: 24px;
    width: 120px;
    height: 320px;
    pointer-events: none;
    overflow: hidden;
    z-index: 50;
}

.floating-heart {
    position: absolute;
    bottom: 0;
    font-size: 1.8rem;
    animation: floatUpAndFade 2.5s ease-out forwards;
}

@keyframes floatUpAndFade {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0.8) rotate(0deg);
    }
    50% {
        opacity: 0.9;
        transform: translateY(-130px) scale(1.25) rotate(-15deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-280px) scale(0.6) rotate(15deg);
    }
}

/* Stream Bottom Action Dock */
.stream-controls-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 30;
    padding: 16px 20px;
    background: linear-gradient(0deg, rgba(3, 6, 17, 0.94) 0%, rgba(3, 6, 17, 0.55) 60%, transparent 100%);
    border-top: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: auto;
}

.stream-quick-actions-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stream-hud-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: #F8FAFC;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stream-hud-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.stream-hud-btn.btn-cohost-purple {
    background: rgba(168, 85, 247, 0.18);
    border-color: rgba(168, 85, 247, 0.4);
    color: #F3E8FF;
}

.stream-hud-btn.btn-cohost-purple:hover {
    background: rgba(168, 85, 247, 0.32);
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.35);
}

.stream-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-heart-action {
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #FF3366;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.2s ease;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.25);
}

.btn-heart-action:hover {
    transform: scale(1.1);
    background: rgba(239, 68, 68, 0.3);
}

.btn-heart-action:active {
    transform: scale(1.28);
    background: #FF3366;
    color: #FFFFFF;
}

.btn-gift-action {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 50%, #B45309 100%);
    color: #FFFFFF;
    border: 1px solid rgba(251, 191, 36, 0.5);
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4), 0 0 15px rgba(245, 158, 11, 0.2);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-gift-action:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.55), 0 0 20px rgba(245, 158, 11, 0.35);
}

/* Right Area: Dark Titanium Live Chat */
.stream-chat-area {
    width: 360px;
    background: rgba(7, 11, 24, 0.94);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

.stream-chat-area.collapsed {
    display: none !important;
}

.chat-header {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(12, 18, 38, 0.4);
}

.chat-header-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00E676;
    box-shadow: 0 0 10px #00E676;
}

.chat-header-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.2px;
}

.chat-status-badge {
    font-size: 0.7rem;
    color: var(--text-dim);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.chat-messages-container {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: transparent;
    scroll-behavior: smooth;
}

.chat-messages-container::-webkit-scrollbar {
    width: 5px;
}
.chat-messages-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.chat-msg {
    font-size: 0.86rem;
    line-height: 1.45;
    word-break: break-word;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 14px;
    color: #E2E8F0;
}

.chat-user {
    font-weight: 800;
    background: linear-gradient(135deg, #BA49FF 0%, #00F2FE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 6px;
    font-size: 0.86rem;
}

.chat-text {
    color: #F1F5F9;
}

.chat-gift-alert {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(217, 119, 6, 0.08) 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 10px 14px;
    border-radius: 16px;
    color: #FCD34D;
    font-weight: 700;
    font-size: 0.84rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
    animation: fadeInUp 0.3s ease-out;
}

.chat-input-area {
    padding: 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(12, 18, 38, 0.5);
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 999px;
    padding: 10px 18px !important;
    color: #FFFFFF !important;
    font-size: 0.88rem !important;
    outline: none;
    transition: all 0.2s ease;
}

.chat-input:focus {
    border-color: rgba(168, 85, 247, 0.6) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15) !important;
}

.btn-send-msg {
    background: linear-gradient(135deg, #A855F7 0%, #06B6D4 100%);
    border: none;
    color: #FFFFFF;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.4);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-send-msg:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.6);
}

/* Modals (Auth, Gifts, Go Live, Coin Shop, Profile, Live Viewers, Follow Lists) */
.modal-overlay,
#profile-modal,
#live-viewers-modal,
#follow-list-modal,
#gift-modal,
#coin-shop-modal,
#login-modal,
#register-modal,
#go-live-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: rgba(6, 7, 12, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 30000 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 16px 12px !important;
    box-sizing: border-box !important;
    animation: modalOverlayFade 0.25s ease-out;
}

.modal-overlay.active,
#profile-modal.active,
#live-viewers-modal.active,
#follow-list-modal.active,
#gift-modal.active,
#coin-shop-modal.active,
#login-modal.active,
#register-modal.active,
#go-live-modal.active {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 35000 !important;
}

@keyframes modalOverlayFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-overlay.active {
    display: flex !important;
}

.standard-modal {
    width: 92%;
    max-width: 440px;
    max-height: calc(100vh - 40px) !important;
    max-height: calc(100dvh - 40px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    margin: auto !important;
    background: rgba(13, 15, 26, 0.96);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 28px 24px !important;
    position: relative;
    box-sizing: border-box !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(186, 73, 255, 0.2);
    animation: modalPopUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Enhanced Clamped Profile Modal Sheet - Zero Lateral Scroll, Sober Titanium */
#profile-modal .standard-modal,
.profile-modal-sheet {
    width: min(94vw, 440px) !important;
    max-width: 440px !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 24px !important;
    background: rgba(11, 16, 28, 0.98) !important;
    backdrop-filter: blur(28px) !important;
    -webkit-backdrop-filter: blur(28px) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(168, 85, 247, 0.25) !important;
    margin: auto !important;
}

.profile-modal-banner {
    background: linear-gradient(135deg, #FF3385 0%, #7F3DEC 50%, #00F2FE 100%);
    height: 105px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.profile-modal-banner .close-modal-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
}

.profile-modal-banner .close-modal-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.08);
}

.profile-modal-body {
    padding: 0 18px 22px 18px;
    margin-top: -44px;
    max-height: calc(85vh - 105px);
    max-height: calc(85dvh - 105px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    width: 100%;
}

.profile-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    width: 100%;
    box-sizing: border-box;
}

.profile-avatar-wrap {
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

#profile-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3.5px solid #0d101d;
    object-fit: cover;
    background: #1a1d2d;
    display: block;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.profile-camera-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: var(--accent-cyan);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border: 2px solid #0d101d;
    color: #000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.profile-actions-strip {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    min-width: 0;
    flex: 1;
}

.profile-action-btn {
    padding: 6px 12px;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    box-sizing: border-box;
    border: none;
}

.profile-action-btn:active {
    transform: scale(0.96);
}

.btn-action-edit {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    color: #fff;
}

.btn-action-edit:hover {
    background: rgba(255, 255, 255, 0.16);
}

.btn-action-follow {
    background: linear-gradient(135deg, #FF3385 0%, #7F3DEC 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 51, 133, 0.3);
}

.btn-action-chat {
    border: 1px solid rgba(0, 242, 254, 0.4);
    color: #00f2fe;
    background: rgba(0, 242, 254, 0.12);
}

.btn-action-block {
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
}

.btn-action-recharge {
    background: linear-gradient(135deg, #FFD700 0%, #FF9900 100%);
    color: #000;
    border: none;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.btn-action-logout {
    background: rgba(255, 51, 133, 0.08);
    border: 1px solid rgba(255, 51, 133, 0.4);
    color: #ff3385;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
}

.profile-display-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    word-break: break-word;
}

.profile-vip-badge {
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.5);
    color: #ffd700;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 9px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.profile-username-tag {
    font-size: 0.85rem;
    color: var(--accent-cyan);
    font-weight: 600;
    margin-top: 2px;
}

.profile-bio-box {
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 10px 14px;
    box-sizing: border-box;
    width: 100%;
}

.profile-bio-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.profile-bio-text {
    font-size: 0.85rem;
    color: #e0e5ff;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: break-word;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-top: 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 10px 6px;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
}

@media (max-width: 375px) {
    .profile-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 10px 8px;
    }
}

.profile-stat-box {
    min-width: 0;
    overflow: hidden;
    padding: 2px;
}

.profile-stat-box.clickable {
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.profile-stat-box.clickable:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.profile-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-stat-label.label-cyan {
    color: var(--accent-cyan);
    font-weight: 700;
}

.profile-stat-label.label-pink {
    color: var(--accent-pink);
    font-weight: 700;
}

.profile-stat-val {
    font-weight: 800;
    font-size: 1.05rem;
    color: #fff;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-stat-val.val-gold {
    color: #ffd700;
}

.profile-stat-val.val-cyan {
    color: #00f2fe;
}

.profile-vip-progress-card {
    margin-top: 14px;
    background: linear-gradient(135deg, rgba(255,215,0,0.08) 0%, rgba(186,73,255,0.08) 100%);
    border: 1px solid rgba(255,215,0,0.25);
    border-radius: 16px;
    padding: 12px 14px;
    box-sizing: border-box;
    width: 100%;
}

.vip-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 7px;
}

.vip-progress-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: #ffd700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vip-progress-pts {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
}

.vip-progress-track {
    width: 100%;
    height: 8px;
    background: rgba(0,0,0,0.4);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.vip-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd700 0%, #ff3385 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.profile-options-column {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.profile-option-row {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    width: 100%;
}

.profile-option-row:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.18);
    transform: translateY(-1px);
}

.profile-option-row.danger-row {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.25);
}

.option-row-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.option-emoji {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.option-text-group {
    min-width: 0;
    flex: 1;
}

.option-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.option-title.text-danger {
    color: #ef4444;
}

.option-subtitle {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.option-subtitle.sub-danger {
    color: rgba(239, 68, 68, 0.8);
}

.option-arrow {
    font-weight: 700;
    font-size: 0.88rem;
    flex-shrink: 0;
    margin-left: 8px;
}

.arrow-cyan {
    color: var(--accent-cyan);
}

.arrow-pink {
    color: var(--accent-pink);
}

.arrow-danger {
    color: #ef4444;
}

.profile-info-row {
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    width: 100%;
}

.info-label {
    font-size: 0.84rem;
    font-weight: 600;
    color: #e0e5ff;
}

.info-val {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
}

.info-val.val-pink {
    color: var(--accent-pink);
    font-weight: 700;
}

@keyframes modalPopUp {
    from { opacity: 0; transform: scale(0.92) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #FF3385 0%, #BA49FF 50%, #00F2FE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.3px;
}

.modal-subtitle {
    text-align: center;
    color: #CBD5E1;
    font-size: 0.9rem;
    margin-bottom: 24px;
    line-height: 1.4;
}

.form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: #E2E8F0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: #FFFFFF;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.25s ease;
}

.form-input::placeholder {
    color: #94A3B8;
}

.form-input:focus {
    border-color: #00F2FE;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.3);
}

.btn-submit-full {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #FF3385 0%, #BA49FF 50%, #00F2FE 100%);
    border: none;
    border-radius: var(--radius-full);
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 8px 25px rgba(255, 51, 133, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 51, 133, 0.5), 0 0 20px rgba(0, 242, 254, 0.3);
}

.btn-google-auth {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    transition: background 0.2s ease;
}

.btn-google-auth:hover {
    background: rgba(255, 255, 255, 0.12);
}

.auth-switch-text {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 20px;
}

.auth-switch-text a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 700;
}

/* ==========================================================================
   GIFTS MODAL & BENTO TIERS (Aligned with iOS GIFT_CATALOG & Dark Titanium)
   ========================================================================== */

.close-modal-btn {
    position: absolute !important;
    top: 18px !important;
    right: 18px !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #CBD5E1 !important;
    font-size: 1.25rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    z-index: 50 !important;
    line-height: 1 !important;
    padding: 0 !important;
}

.close-modal-btn:hover {
    background: rgba(239, 68, 68, 0.8) !important;
    border-color: rgba(239, 68, 68, 1) !important;
    color: #FFFFFF !important;
    transform: scale(1.08) !important;
}

.gift-modal-content {
    width: 94%;
    max-width: 680px;
    max-height: 90vh;
    max-height: 90dvh;
    background: rgba(6, 9, 20, 0.97) !important;
    backdrop-filter: blur(36px);
    -webkit-backdrop-filter: blur(36px);
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 28px !important;
    padding: 24px 26px !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 50px rgba(245, 158, 11, 0.12) !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.gift-modal-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    padding-right: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

.gift-coins-balance-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 999px;
    padding: 5px 6px 5px 14px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.gift-coins-info {
    display: flex;
    flex-direction: column;
}

.gift-coins-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.gift-coins-num {
    font-size: 0.92rem;
    font-weight: 900;
    color: #FCD34D;
    font-family: var(--font-display);
}

.btn-gift-recharge {
    background: linear-gradient(135deg, #FF3385 0%, #BA49FF 100%);
    border: none;
    color: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(255, 51, 133, 0.35);
}

.btn-gift-recharge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(255, 51, 133, 0.55);
}

/* Tier Tabs Ribbon */
.gift-tier-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 0 10px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.gift-tier-tabs::-webkit-scrollbar {
    display: none;
}

.gift-tier-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94A3B8;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.gift-tier-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.2);
}

.gift-tier-tab.active {
    background: linear-gradient(135deg, #BA49FF 0%, #00F2FE 100%);
    border-color: transparent;
    color: #FFFFFF;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(186, 73, 255, 0.35);
}

/* Bento Gifts Grid */
.modern-bento-gifts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    grid-auto-rows: minmax(130px, auto);
    gap: 12px;
    padding: 12px 4px 10px 4px;
    max-height: 420px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.modern-bento-gifts::-webkit-scrollbar {
    width: 5px;
}

.modern-bento-gifts::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}

.gift-card {
    position: relative;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 10px 8px 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 130px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    user-select: none;
    box-sizing: border-box;
}

.gift-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: background 0.2s ease;
}

.gift-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

.gift-card:active {
    transform: scale(0.97);
}

/* Tier-specific visual accents */
.gift-card[data-tier="1"]:hover {
    border-color: rgba(6, 182, 212, 0.6);
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.2);
}
.gift-card[data-tier="1"]::before { background: linear-gradient(90deg, #06B6D4, #3B82F6); }

.gift-card[data-tier="2"]:hover {
    border-color: rgba(168, 85, 247, 0.7);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.25);
}
.gift-card[data-tier="2"]::before { background: linear-gradient(90deg, #A855F7, #EC4899); }

.gift-card[data-tier="3"]:hover {
    border-color: rgba(245, 158, 11, 0.7);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}
.gift-card[data-tier="3"]::before { background: linear-gradient(90deg, #F59E0B, #EAB308); }

.gift-card[data-tier="4"]:hover {
    border-color: rgba(239, 68, 68, 0.7);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.35);
}
.gift-card[data-tier="4"]::before { background: linear-gradient(90deg, #EF4444, #F43F5E); }

.gift-card[data-tier="5"]:hover {
    border-color: rgba(192, 132, 252, 0.9);
    box-shadow: 0 10px 28px rgba(192, 132, 252, 0.45);
}
.gift-card[data-tier="5"]::before { background: linear-gradient(90deg, #BA49FF, #00F2FE, #F59E0B); }

.gift-tier-tag {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 1px 6px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: rgba(255, 255, 255, 0.08);
    color: #94A3B8;
}

.gift-card[data-tier="1"] .gift-tier-tag { color: #67E8F9; background: rgba(6, 182, 212, 0.15); }
.gift-card[data-tier="2"] .gift-tier-tag { color: #D8B4FE; background: rgba(168, 85, 247, 0.15); }
.gift-card[data-tier="3"] .gift-tier-tag { color: #FCD34D; background: rgba(245, 158, 11, 0.15); }
.gift-card[data-tier="4"] .gift-tier-tag { color: #FDA4AF; background: rgba(239, 68, 68, 0.15); }
.gift-card[data-tier="5"] .gift-tier-tag { color: #FDE047; background: linear-gradient(135deg, rgba(186, 73, 255, 0.3), rgba(0, 242, 254, 0.3)); }

.gift-icon {
    font-size: 2.3rem;
    line-height: 1;
    margin: 4px 0 2px 0;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gift-card:hover .gift-icon {
    transform: scale(1.15) rotate(4deg);
}

.gift-name {
    font-weight: 700;
    font-size: 0.82rem;
    color: #F1F5F9;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.gift-price {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 999px;
    padding: 3px 10px;
    color: #FCD34D;
    font-weight: 800;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.12);
}

/* ==========================================================================
   VIEWERS MODAL (Modern Dark Titanium Parity)
   ========================================================================== */

.modern-viewers-modal {
    width: 92%;
    max-width: 440px;
    background: rgba(6, 9, 20, 0.97) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 26px !important;
    padding: 24px !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 40px rgba(6, 182, 212, 0.12) !important;
}

.viewers-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
}

.viewers-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.35);
    color: #00F2FE;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modern-viewers-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 4px;
}

.viewer-row-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.viewer-row-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateX(3px);
}

/* ==========================================================================
   STREAM MODAL RESPONSIVE STYLES (< 900px Mobile Live Experience)
   ========================================================================== */

@media (max-width: 900px) {
    #stream-modal {
        padding: 0 !important;
        align-items: stretch !important;
    }

    .stream-modal-content {
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-width: 100vw !important;
        border-radius: 0 !important;
        border: none !important;
        flex-direction: column !important;
    }

    .stream-video-area {
        width: 100%;
        height: 100%;
        position: relative;
    }

    .video-player-wrapper {
        background: #000;
    }

    .video-element {
        object-fit: cover !important;
    }

    .stream-hud-top {
        padding: 12px 14px;
        padding-top: max(12px, env(safe-area-inset-top));
    }

    .streamer-live-subject {
        display: none;
    }

    .stream-streamer-pill {
        padding: 3px 10px 3px 4px;
    }

    /* On mobile, floating chat overlay directly inside video area (TikTok / iOS style) */
    .stream-chat-area {
        position: absolute !important;
        bottom: calc(76px + env(safe-area-inset-bottom)) !important;
        left: 14px !important;
        width: min(320px, calc(100% - 28px)) !important;
        max-height: 200px !important;
        height: auto !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        z-index: 25 !important;
        pointer-events: none !important;
        mask-image: linear-gradient(to top, black 70%, transparent 100%) !important;
        -webkit-mask-image: linear-gradient(to top, black 70%, transparent 100%) !important;
    }

    .stream-chat-area.collapsed {
        display: none !important;
    }

    .stream-chat-area .chat-header {
        display: none !important;
    }

    .stream-chat-area .chat-input-area {
        display: none !important;
    }

    .stream-chat-area .chat-messages-container {
        pointer-events: auto !important;
        max-height: 190px !important;
        gap: 6px !important;
        padding: 0 !important;
        scrollbar-width: none !important;
    }
    .stream-chat-area .chat-messages-container::-webkit-scrollbar {
        display: none !important;
    }

    .stream-controls-bar {
        padding: 10px 14px !important;
        padding-bottom: max(14px, calc(env(safe-area-inset-bottom, 0px) + 8px)) !important;
        background: linear-gradient(0deg, rgba(3, 6, 17, 0.95) 0%, rgba(3, 6, 17, 0.4) 75%, transparent 100%) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
    }

    .stream-controls-bar .stream-actions {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .stream-controls-bar .btn-heart-action,
    .stream-controls-bar .stream-hud-btn {
        width: 40px !important;
        height: 40px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
    }

    .stream-controls-bar .btn-gift-action {
        padding: 8px 14px !important;
        font-size: 0.82rem !important;
        border-radius: 9999px !important;
    }

    .gift-modal-content {
        align-self: flex-end !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 26px 26px 0 0 !important;
        max-height: 80vh !important;
        padding: 20px 16px !important;
        margin: 0 !important;
    }

    .modern-bento-gifts {
        grid-template-columns: repeat(3, 1fr) !important;
        grid-auto-rows: minmax(126px, auto) !important;
        gap: 8px !important;
        max-height: 52vh !important;
    }
}

/* Mobile Tab Bar & Responsive Mobile Layout */
.mobile-tab-bar {
    display: none !important;
}

@media (min-width: 769px) {
    .mobile-tab-bar {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

@media (max-width: 768px) {
    .desktop-only-btn {
        display: none !important;
    }

    .search-bar-container {
        display: none !important;
    }

    .app-header {
        padding: 10px 14px !important;
        gap: 8px !important;
    }

    .header-left {
        gap: 8px !important;
    }

    .btn-hamburger {
        width: 36px !important;
        height: 36px !important;
        margin-right: 4px !important;
        border-radius: 10px !important;
    }

    .brand-title {
        font-size: 1.22rem !important;
    }

    .brand-logo {
        width: 32px !important;
        height: 32px !important;
    }

    .header-actions {
        gap: 8px !important;
    }

    .btn-golive-accent span {
        display: none !important;
    }

    .btn-golive-accent {
        width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        justify-content: center !important;
        border-radius: 50% !important;
    }

    .coin-badge {
        padding: 5px 9px !important;
        font-size: 0.8rem !important;
        gap: 4px !important;
    }

    .btn-auth-ghost,
    .btn-auth-primary {
        padding: 7px 14px !important;
        font-size: 0.82rem !important;
        white-space: nowrap !important;
    }

    /* FLOATING SMART APP STORE BAR (Mobile) */
    .mobile-appstore-bar {
        display: flex;
        position: fixed;
        bottom: 16px;
        left: 14px;
        right: 14px;
        background: rgba(10, 15, 30, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(168, 85, 247, 0.35);
        border-radius: 20px;
        padding: 10px 14px;
        align-items: center;
        justify-content: space-between;
        z-index: 9999;
        box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
        animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .mobile-appstore-bar.closed {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
    }

    .mobile-bar-left {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }

    .mobile-bar-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(168, 85, 247, 0.35);
        flex-shrink: 0;
    }

    .mobile-bar-text {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .mobile-bar-title {
        color: #FFFFFF;
        font-size: 0.84rem;
        font-weight: 800;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-bar-sub {
        color: #94A3B8;
        font-size: 0.7rem;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-bar-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    .mobile-bar-btn {
        padding: 7px 16px;
        background: #FFFFFF;
        color: #0F172A !important;
        font-weight: 800;
        font-size: 0.8rem;
        border-radius: 999px;
        text-decoration: none;
        white-space: nowrap;
        box-shadow: 0 2px 10px rgba(255, 255, 255, 0.25);
        transition: transform 0.15s ease;
    }

    .mobile-bar-btn:active {
        transform: scale(0.96);
    }

    .mobile-bar-close {
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.14);
        color: #cbd5e1;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
        padding: 0;
        flex-shrink: 0;
    }

    .mobile-bar-close:hover,
    .mobile-bar-close:active {
        background: rgba(255, 255, 255, 0.2);
        color: #ffffff;
        transform: scale(1.08);
    }

    .mobile-bar-btn:active {
        transform: scale(0.96);
    }

    .app-main {
        padding: 14px 14px 90px 14px !important;
    }

    .streams-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .creators-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .discover-header-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .discover-filter-dock {
        width: 100% !important;
        display: flex !important;
    }

    .discover-tab-btn {
        flex: 1 !important;
        justify-content: center !important;
    }

    .btn-visibility-toggle {
        width: 100% !important;
        justify-content: center !important;
    }

    .hidden-profile-alert-banner {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .mobile-tab-bar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: calc(58px + env(safe-area-inset-bottom, 0px)) !important;
        padding-bottom: env(safe-area-inset-bottom, 6px) !important;
        background: rgba(255, 255, 255, 0.96) !important;
        backdrop-filter: blur(24px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
        border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-around !important;
        z-index: 999 !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05) !important;
    }

    .mobile-tab-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: #64748B;
        font-size: 0.70rem;
        font-weight: 700;
        cursor: pointer;
        padding: 4px 0;
        gap: 2px;
        transition: all 0.2s ease;
        position: relative;
    }

    .mobile-tab-item .mobile-tab-icon {
        font-size: 1.25rem;
        line-height: 1;
    }

    .mobile-tab-item.active {
        color: #BA49FF !important;
        font-weight: 800;
    }

    .mobile-tab-item.active::after {
        content: '';
        position: absolute;
        top: 0;
        width: 32px;
        height: 2.5px;
        background: linear-gradient(90deg, #BA49FF, #00F2FE);
        border-radius: 9999px;
    }

    .mobile-golive-fab {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: linear-gradient(135deg, #BA49FF 0%, #00F2FE 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        font-size: 1.25rem;
        box-shadow: 0 4px 14px rgba(186, 73, 255, 0.4);
        margin-top: -14px;
        margin-bottom: 2px;
        transition: transform 0.2s ease;
    }

    .mobile-golive-fab:active {
        transform: scale(0.92);
    }
}

/* ==========================================================================
   GO LIVE SETUP MODAL STYLES (Ultra Professional Streamer Setup)
   ========================================================================== */
#go-live-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(6, 7, 12, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: none;
    align-items: flex-start !important;
    justify-content: center;
    z-index: 35000 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 24px 12px 60px 12px !important;
    animation: modalOverlayFade 0.25s ease-out;
}

#go-live-modal.active {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    overflow-y: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.go-live-modal-content {
    width: 100% !important;
    max-width: 560px !important;
    max-height: calc(100vh - 48px) !important;
    max-height: calc(100dvh - 48px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: rgba(18, 21, 33, 0.98) !important;
    backdrop-filter: blur(28px) !important;
    -webkit-backdrop-filter: blur(28px) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 26px !important;
    padding: 26px 24px 30px 24px !important;
    margin: auto 0 !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85), 0 0 35px rgba(255, 51, 133, 0.18) !important;
}

.go-live-modal-content::-webkit-scrollbar {
    width: 6px;
}
.go-live-modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 999px;
}
.go-live-modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}
.go-live-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.5);
}

.golive-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    flex-shrink: 0;
}

.golive-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, #FF3385 0%, #7F3DEC 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 6px 16px rgba(255, 51, 133, 0.35);
    flex-shrink: 0;
}

.webcam-preview-container {
    position: relative;
    width: 100%;
    height: 220px;
    max-height: 30vh;
    background: #090a10;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
    flex-shrink: 0;
}

.webcam-preview-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1); /* Mirror view for natural camera feedback */
}

.preview-status-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(10, 12, 22, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 255, 136, 0.4);
    color: #00ff88;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
}

.preview-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff88;
    animation: livePulse 1.2s infinite;
}

.preview-watermark {
    position: absolute;
    bottom: 12px;
    right: 14px;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 5;
}

.golive-form-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.golive-input {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;
    color: #fff !important;
    padding: 12px 16px !important;
    font-size: 0.92rem !important;
    transition: all 0.2s ease !important;
}

.golive-input:focus {
    border-color: #FF3385 !important;
    box-shadow: 0 0 14px rgba(255, 51, 133, 0.3) !important;
}

.custom-select-wrapper {
    position: relative;
}

.golive-select {
    width: 100%;
    background: #151828 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;
    color: #fff !important;
    padding: 12px 16px !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    outline: none;
}

.golive-select option {
    background: #151828 !important;
    color: #ffffff !important;
    padding: 10px !important;
}

.btn-start-broadcast-primary {
    background: linear-gradient(135deg, #00E676 0%, #00B0FF 100%) !important;
    color: #05140b !important;
    font-size: 1.02rem !important;
    font-weight: 900 !important;
    padding: 14px 24px !important;
    border-radius: 20px !important;
    box-shadow: 0 6px 20px rgba(0, 230, 118, 0.35) !important;
    margin-top: 6px !important;
    transition: all 0.25 ease !important;
    cursor: pointer;
}

.btn-start-broadcast-primary:hover {
    transform: translateY(-2px) scale(1.01) !important;
    box-shadow: 0 10px 28px rgba(0, 230, 118, 0.5) !important;
}

@media (max-width: 640px), (max-height: 800px) {
    #go-live-modal {
        padding: 12px 10px 40px 10px !important;
    }
    .go-live-modal-content {
        padding: 20px 16px 28px 16px !important;
        border-radius: 20px !important;
        max-height: calc(100vh - 24px) !important;
        max-height: calc(100dvh - 24px) !important;
    }
    .golive-modal-header {
        margin-bottom: 12px !important;
        gap: 10px !important;
    }
    .golive-icon-badge {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.2rem !important;
        border-radius: 12px !important;
    }
    .webcam-preview-container {
        height: 160px !important;
        margin-bottom: 12px !important;
    }
    .golive-form-container {
        gap: 12px !important;
    }
    .btn-start-broadcast-primary {
        padding: 13px 18px !important;
        font-size: 0.95rem !important;
    }
}

/* ==========================================================================
   IMMERSIVE FULLSCREEN LIVE STREAMING STYLES (App Parity & Stunning UI)
   ========================================================================== */

.immersive-stream-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100% !important;
    width: 100vw !important;
    height: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    background: #000;
    z-index: 10000;
    display: none !important;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

.immersive-stream-container.active {
    display: flex !important;
}

/* Hide ALL underlying page elements while transmitting live */
body.is-broadcasting > *:not(.immersive-stream-container) {
    display: none !important;
}

.broadcast-stage {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    display: flex;
    flex-direction: column;
}

/* Desktop PC Studio Stage Layout for Broadcaster Screen */
@media (min-width: 993px) {
    .immersive-stream-container {
        align-items: center;
        justify-content: center;
        background: radial-gradient(circle at center, #1b1f33 0%, #06070d 100%) !important;
    }

    .broadcast-stage {
        width: 450px;
        height: 92vh;
        max-height: 840px;
        border-radius: 24px;
        border: 2px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 50px rgba(127, 61, 236, 0.35);
    }
}

body.is-broadcasting .mobile-tab-bar {
    display: none !important;
}

/* Fullscreen Background Camera Video */
.immersive-camera-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1); /* Mirror camera for natural selfie view */
    z-index: 1;
    transition: filter 0.3s ease;
}

/* Top & Bottom Vignettes for Contrast */
.stream-vignette-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    z-index: 2;
    pointer-events: none;
}

.stream-vignette-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 220px;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Realtime CSS Camera Filters */
.camera-filter-none { filter: none !important; }
.camera-filter-beauty { filter: brightness(1.08) contrast(0.98) saturate(1.15) blur(0.3px) !important; }
.camera-filter-warm { filter: sepia(0.25) saturate(1.3) hue-rotate(-10deg) brightness(1.05) !important; }
.camera-filter-cyberpunk { filter: contrast(1.3) saturate(1.8) hue-rotate(190deg) !important; }
.camera-filter-neon { filter: contrast(1.4) saturate(2.2) brightness(1.1) hue-rotate(270deg) !important; }
.camera-filter-vintage { filter: sepia(0.4) contrast(1.1) brightness(0.95) saturate(0.85) !important; }
.camera-filter-sepia { filter: sepia(0.85) contrast(1.1) !important; }
.camera-filter-bw { filter: grayscale(1) contrast(1.25) brightness(1.05) !important; }

/* Top Header Bar Overlay */
/* Top Header Bar Overlay */
.immersive-top-bar {
    position: absolute;
    top: max(14px, env(safe-area-inset-top));
    left: 14px;
    right: 14px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    pointer-events: none;
}

.immersive-top-bar > * {
    pointer-events: auto;
}

.streamer-info-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 14, 26, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    flex-shrink: 1;
    min-width: 0;
}

.live-dot-pulse {
    width: 8px;
    height: 8px;
    background-color: #ff3366;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff3366;
    animation: livePulse 1.2s infinite;
    flex-shrink: 0;
}

@keyframes livePulse {
    0% { transform: scale(0.95); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
    100% { transform: scale(0.95); opacity: 1; }
}

.live-badge-text {
    font-size: 0.72rem;
    font-weight: 900;
    color: #ff3366;
    letter-spacing: 0.6px;
    flex-shrink: 0;
}

.streamer-text-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.streamer-live-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: #fff;
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.streamer-live-category {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--accent-cyan);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-bar-right-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.immersive-viewers-pill {
    background: rgba(10, 14, 26, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 6px 10px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 800;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.immersive-viewers-pill.coin-pill {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.35);
    color: #ffd700;
}

.immersive-viewers-pill.diamond-pill {
    background: rgba(0, 242, 254, 0.15);
    border-color: rgba(0, 242, 254, 0.35);
    color: #00f2fe;
}

.btn-end-stream-danger {
    background: rgba(239, 68, 68, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    padding: 6px 14px;
    font-weight: 800;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.45);
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-end-stream-danger:hover {
    background: #dc2626;
    transform: scale(1.04);
}

.btn-end-stream-danger:active {
    transform: scale(0.94);
}

/* Superimposed Transparent Chat Overlay (Bottom Left) with Fade Mask */
.immersive-chat-overlay {
    position: absolute;
    bottom: calc(max(14px, env(safe-area-inset-bottom, 0px)) + 106px);
    left: 14px;
    width: min(340px, calc(100% - 28px));
    max-height: 180px;
    z-index: 20;
    pointer-events: none;
    mask-image: linear-gradient(to top, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, black 70%, transparent 100%);
}

@media (min-width: 993px) {
    .immersive-chat-overlay {
        bottom: 110px !important;
    }
}

.immersive-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    max-height: 180px;
    pointer-events: auto;
    scrollbar-width: none;
}
.immersive-chat-messages::-webkit-scrollbar {
    display: none;
}

.immersive-chat-msg {
    background: rgba(8, 12, 22, 0.68);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.84rem;
    line-height: 1.35;
    display: inline-block;
    align-self: flex-start;
    max-width: 95%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    animation: fadeInSlideUp 0.25s ease;
}

.immersive-chat-msg.system-msg {
    border-left: 3px solid var(--accent-pink);
    background: rgba(255, 51, 133, 0.16);
}

.chat-user-name {
    font-weight: 800;
    color: var(--accent-cyan);
    margin-right: 6px;
}

.chat-text-content {
    color: #fff;
    word-break: break-word;
}

/* Floating Controls & Filters Bar (Bottom: 2-Tier Hierarchy) */
.immersive-controls-wrapper {
    position: absolute;
    bottom: max(14px, calc(env(safe-area-inset-bottom, 0px) + 8px));
    left: 12px;
    right: 12px;
    z-index: 35;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-sizing: border-box;
    pointer-events: auto;
}

@media (min-width: 993px) {
    .immersive-controls-wrapper {
        bottom: 14px !important;
    }
}

/* Camera Filters Drawer Track */
.filters-ribbon-drawer {
    display: none;
    background: rgba(10, 14, 26, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 10px 14px;
    animation: fadeInSlideUp 0.25s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.filters-ribbon-drawer.active {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
}

.drawer-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--accent-pink);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-close-drawer-icon {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-close-drawer-icon:hover {
    background: rgba(255, 255, 255, 0.25);
}

.filters-scroll-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.filters-scroll-track::-webkit-scrollbar {
    display: none;
}

.filter-chip-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip-btn.active, .filter-chip-btn:hover {
    background: linear-gradient(135deg, #FF3385 0%, #7F3DEC 100%);
    border-color: transparent;
    box-shadow: 0 0 14px rgba(255, 51, 133, 0.5);
    transform: translateY(-1px);
}

/* Dedicated Streamer Action Strip (Row 1) */
.immersive-tools-strip {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
}

.icon-action-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(10, 14, 26, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    flex-shrink: 0;
}

.icon-action-circle .action-label,
.icon-action-circle .icon-caption {
    display: none;
}

.icon-action-circle:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.05);
}

.icon-action-circle:active {
    transform: scale(0.92);
}

.icon-action-circle.active,
.icon-action-circle.muted-state {
    background: rgba(239, 68, 68, 0.4);
    border-color: #ef4444;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.6);
}

.heart-action-btn:hover {
    background: rgba(255, 51, 133, 0.35);
    border-color: #ff3385;
    box-shadow: 0 0 14px rgba(255, 51, 133, 0.6);
}

/* Row 2: Chat Input Bar */
.immersive-bottom-bar {
    width: 100%;
}

.immersive-input-box {
    display: flex;
    align-items: center;
    background: rgba(10, 14, 26, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-full);
    padding: 5px 6px 5px 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    width: 100%;
    box-sizing: border-box;
}

.immersive-input-box input,
#broadcast-chat-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px !important; /* Prevents iOS Safari from auto-zooming / shifting viewport */
    outline: none;
    min-width: 0;
    touch-action: manipulation;
}

.immersive-input-box input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.btn-send-chat-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00f2fe 0%, #7b2ff7 100%);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.btn-send-chat-icon:active {
    transform: scale(0.9);
}

/* Floating Hearts & Animated Gifts Layer */
.immersive-hearts-layer {
    position: absolute;
    bottom: calc(max(14px, env(safe-area-inset-bottom, 0px)) + 100px);
    right: 20px;
    width: 80px;
    height: 300px;
    pointer-events: none;
    z-index: 18;
}

@media (min-width: 993px) {
    .immersive-hearts-layer {
        bottom: 105px !important;
    }
}

.gift-anim-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 25;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.giant-gift-item {
    font-size: 6rem;
    animation: popAndZoom 2.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popAndZoom {
    0% { transform: scale(0.2); opacity: 0; }
    30% { transform: scale(1.3); opacity: 1; }
    70% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

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

/* Back Navigation Button Styles */
.btn-back-nav {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-back-nav:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--accent-pink);
    transform: translateX(-3px);
    box-shadow: 0 6px 16px rgba(255, 51, 133, 0.3);
}

.btn-back-floating-mobile {
    display: none;
}

@media (max-width: 768px) {
    .btn-back-floating-mobile {
        position: fixed;
        top: 10px;
        left: 12px;
        z-index: 1200;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border: 1px solid rgba(0, 0, 0, 0.1);
        color: #0F172A;
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 800;
        display: flex;
        align-items: center;
        gap: 4px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
        cursor: pointer;
    }

    .btn-back-floating-mobile:active {
        transform: scale(0.92);
    }
}


/* ==========================================================================
   TV CHANNELS 24/7 - STREAMING CONTINUO SECTION
   ========================================================================== */

/* --- Section Header --- */
.tv-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.tv-section-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tv-section-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(186, 73, 255, 0.2) 0%, rgba(0, 242, 254, 0.2) 100%);
    border: 1px solid rgba(186, 73, 255, 0.4);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 20px rgba(186, 73, 255, 0.2);
}

.tv-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #BA49FF 0%, #00F2FE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.tv-section-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.tv-live-master-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.3);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    animation: tv-badge-glow 2s ease-in-out infinite alternate;
}

.tv-live-master-badge .tv-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00f2fe;
    box-shadow: 0 0 10px #00f2fe, 0 0 20px rgba(0, 242, 254, 0.4);
    animation: tv-dot-pulse 1.5s ease-in-out infinite;
}

.tv-live-master-badge span:last-child {
    color: #00f2fe;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
}

@keyframes tv-badge-glow {
    0% { box-shadow: 0 0 8px rgba(0, 242, 254, 0.1); }
    100% { box-shadow: 0 0 20px rgba(0, 242, 254, 0.2); }
}

@keyframes tv-dot-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

/* --- Channels Grid --- */
.tv-channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding-bottom: 40px;
}

/* --- Channel Card --- */
.tv-channel-card {
    position: relative;
    background: rgba(15, 17, 28, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tv-channel-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-accent);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5), 0 0 30px var(--card-glow-color, rgba(186, 73, 255, 0.2));
}

.tv-channel-card:active {
    transform: translateY(-2px) scale(0.98);
}

/* Card Visual Preview Area */
.tv-card-visual {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--card-bg-gradient, linear-gradient(135deg, #1a1a2e 0%, #16213e 100%));
}

.tv-card-visual canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.tv-card-visual::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, rgba(15, 17, 28, 0.9));
    pointer-events: none;
}

/* Card Badges Overlay */
.tv-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
}

.tv-badge-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 51, 133, 0.85);
    backdrop-filter: blur(8px);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.72rem;
    color: #fff;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 2px 12px rgba(255, 51, 133, 0.5);
}

.tv-badge-live .badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    animation: tv-dot-pulse 1.2s ease-in-out infinite;
}

.tv-badge-viewers {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(10, 11, 18, 0.75);
    backdrop-filter: blur(8px);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.72rem;
    color: #e0e5ff;
}

/* Card Info Section */
.tv-card-info {
    padding: 16px 18px 18px;
}

.tv-card-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.tv-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    background: var(--card-icon-bg, rgba(186, 73, 255, 0.15));
    border: 1px solid var(--card-icon-border, rgba(186, 73, 255, 0.3));
}

.tv-card-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    color: #fff;
}

.tv-card-category {
    font-size: 0.72rem;
    color: var(--card-accent-color, var(--accent-cyan));
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tv-card-desc {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-top: 8px;
}

.tv-card-enter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 14px;
    padding: 10px;
    border: none;
    border-radius: 14px;
    background: var(--card-btn-gradient, linear-gradient(135deg, #BA49FF 0%, #00F2FE 100%));
    color: #fff;
    font-weight: 800;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px var(--card-btn-shadow, rgba(186, 73, 255, 0.3));
}

.tv-card-enter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--card-btn-shadow, rgba(186, 73, 255, 0.4));
}

/* --- TV Channel Modal (Fullscreen Player) --- */
.tv-channel-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.96);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tv-channel-modal-overlay.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.tv-channel-modal-content {
    width: 100%;
    height: 100%;
    display: flex;
    overflow: hidden;
}

/* Visual Player Area */
.tv-player-area {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    background: #000;
    min-width: 0;
}

.tv-player-canvas-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.tv-player-canvas-wrapper canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
}

.tv-player-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    background: #000;
}

/* Player Info Overlay */
.tv-player-top-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 24px;
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, transparent 100%);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tv-player-channel-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tv-player-channel-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.tv-player-channel-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
}

.tv-player-channel-cat {
    font-size: 0.78rem;
    color: var(--accent-cyan);
    font-weight: 700;
}

.tv-player-stats {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tv-player-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(10, 11, 18, 0.7);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.8rem;
    color: #e0e5ff;
    border: 1px solid var(--border-subtle);
}

.tv-player-stat-pill.live-pill {
    background: rgba(255, 51, 133, 0.2);
    border-color: rgba(255, 51, 133, 0.5);
    color: #ff3385;
}

.tv-player-stat-pill.live-pill .stat-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff3385;
    box-shadow: 0 0 8px #ff3385;
    animation: tv-dot-pulse 1.2s ease-in-out infinite;
}

.tv-player-close-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(10, 11, 18, 0.7);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.tv-player-close-btn:hover {
    background: rgba(255, 51, 133, 0.3);
    border-color: rgba(255, 51, 133, 0.5);
    transform: scale(1.1);
}

/* Player Bottom Controls */
.tv-player-bottom-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 24px;
    background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 100%);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tv-player-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tv-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.25s ease;
    color: #fff;
}

.tv-action-btn.btn-tv-heart {
    background: rgba(255, 51, 133, 0.2);
    border: 1px solid rgba(255, 51, 133, 0.4);
    color: #ff3385;
}

.tv-action-btn.btn-tv-heart:hover {
    background: rgba(255, 51, 133, 0.35);
    transform: scale(1.08);
}

.tv-action-btn.btn-tv-gift {
    background: linear-gradient(135deg, #FF3385 0%, #FF9900 100%);
    box-shadow: 0 4px 16px rgba(255, 51, 133, 0.3);
}

.tv-action-btn.btn-tv-gift:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 51, 133, 0.4);
}

.tv-action-btn.btn-tv-follow {
    background: linear-gradient(135deg, #BA49FF 0%, #7F3DEC 100%);
    box-shadow: 0 4px 16px rgba(186, 73, 255, 0.3);
}

.tv-action-btn.btn-tv-follow:hover {
    transform: translateY(-2px);
}

.tv-action-btn.btn-tv-mute {
    background: rgba(0, 242, 254, 0.15);
    border: 1px solid rgba(0, 242, 254, 0.4);
    color: #00f2fe;
}

.tv-action-btn.btn-tv-mute:hover {
    background: rgba(0, 242, 254, 0.3);
    transform: scale(1.05);
}

/* Floating hearts overlay in TV player */
.tv-hearts-overlay {
    position: absolute;
    bottom: 80px;
    left: 20px;
    width: 60px;
    height: 200px;
    pointer-events: none;
    z-index: 6;
    overflow: visible;
}

.tv-floating-heart {
    position: absolute;
    bottom: 0;
    font-size: 1.4rem;
    animation: tv-heart-float 3s ease-out forwards;
    opacity: 0;
}

@keyframes tv-heart-float {
    0% { 
        transform: translateY(0) scale(0.5) rotate(0deg); 
        opacity: 1; 
    }
    50% { 
        opacity: 1;
        transform: translateY(-100px) scale(1.1) rotate(-15deg);
    }
    100% { 
        transform: translateY(-200px) scale(0.6) rotate(15deg); 
        opacity: 0; 
    }
}

/* --- TV Chat Panel (Right Side) --- */
.tv-chat-panel {
    width: 360px;
    display: flex;
    flex-direction: column;
    background: rgba(13, 15, 26, 0.98);
    border-left: 1px solid var(--border-subtle);
}

.tv-chat-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(18, 21, 33, 0.8);
}

.tv-chat-header-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tv-chat-header-viewers {
    font-size: 0.78rem;
    color: var(--accent-cyan);
    font-weight: 700;
}

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

.tv-chat-msg {
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.84rem;
    line-height: 1.4;
    animation: tv-msg-appear 0.3s ease-out;
}

.tv-chat-msg .tv-chat-user {
    font-weight: 800;
    color: var(--accent-cyan);
    margin-right: 6px;
    font-size: 0.8rem;
}

.tv-chat-msg .tv-chat-text {
    color: #d0d5f0;
}

.tv-chat-msg.system-msg {
    background: rgba(186, 73, 255, 0.08);
    border: 1px solid rgba(186, 73, 255, 0.15);
}

.tv-chat-msg.system-msg .tv-chat-user {
    color: var(--accent-purple);
}

.tv-chat-msg.gift-msg {
    background: linear-gradient(135deg, rgba(255, 51, 133, 0.1) 0%, rgba(255, 153, 0, 0.1) 100%);
    border: 1px solid rgba(255, 51, 133, 0.2);
}

.tv-chat-msg.gift-msg .tv-chat-user {
    color: #ff9900;
}

@keyframes tv-msg-appear {
    from { transform: translateY(8px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.tv-chat-input-area {
    padding: 12px 16px;
    border-top: 1px solid var(--border-subtle);
    background: rgba(18, 21, 33, 0.9);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tv-chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 10px 16px;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.tv-chat-input:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 12px rgba(186, 73, 255, 0.15);
}

.tv-chat-input::placeholder {
    color: var(--text-dim);
}

.tv-chat-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #BA49FF 0%, #00F2FE 100%);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.tv-chat-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(186, 73, 255, 0.4);
}

/* --- Card Visual Animations (Mini Canvases in Grid) --- */
@keyframes tv-gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.tv-card-visual-animated {
    background-size: 300% 300%;
    animation: tv-gradient-shift 8s ease infinite;
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
    .tv-channel-modal-content {
        flex-direction: column;
    }

    .tv-chat-panel {
        width: 100%;
        height: 45%;
        border-left: none;
        border-top: 1px solid var(--border-subtle);
    }

    .tv-player-area {
        height: 55%;
    }

    .tv-channels-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 14px;
    }

    .tv-section-title {
        font-size: 1.4rem;
    }

    .tv-card-visual {
        height: 150px;
    }

    .tv-player-top-overlay {
        padding: 14px 16px;
    }

    .tv-player-channel-icon {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }

    .tv-player-channel-name {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .tv-channels-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tv-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tv-card-visual {
        height: 140px;
    }

    .tv-chat-panel {
        height: 50%;
    }

    .tv-player-area {
        height: 50%;
    }

    .tv-player-bottom-overlay {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .tv-player-actions {
        justify-content: center;
    }

    .tv-player-stats {
        flex-wrap: wrap;
        gap: 6px;
    }
}

/* ==========================================================================
   DESCUBRIR & RADAR SECTION - UNIFIED APP STYLES
   ========================================================================== */
.discover-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.discover-filter-dock {
    display: inline-flex;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 4px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    gap: 4px;
}

.discover-filter-btn {
    padding: 8px 18px;
    border-radius: var(--radius-full);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.discover-filter-btn.active {
    background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.3);
}

.btn-visibility-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    font-weight: 700;
    font-size: 0.88rem;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-visibility-toggle.is-hidden {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.35);
    color: var(--accent-gold-light);
}

.hidden-profile-alert-banner {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
}

.creators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 16px;
    margin-bottom: 40px;
}

.creator-card {
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-bento);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.creator-card:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(168, 85, 247, 0.15);
}

.creator-avatar-wrap {
    height: 130px;
    position: relative;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.12) 0%, rgba(6, 182, 212, 0.12) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.creator-avatar-img,
.creator-avatar {
    width: 86px !important;
    height: 86px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid rgba(15, 23, 42, 0.9) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

.creator-badge-live {
    position: absolute;
    bottom: 10px;
    right: 14px;
    background: #ff0055;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 0, 85, 0.35);
}

.creator-avatar-initial {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    border: 3px solid rgba(15, 23, 42, 0.9);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.creator-info-box {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.creator-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.creator-username {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.creator-bio {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.3em;
}

.creator-actions-row {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
}

.btn-creator-follow {
    flex: 1;
    padding: 9px 12px;
    border-radius: 12px;
    border: none;
    background: #a855f7;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-creator-follow.following {
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}

.btn-creator-msg {
    flex: 1;
    padding: 9px 12px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.25);
    transition: all 0.2s ease;
}

.btn-creator-msg:hover {
    transform: scale(1.02);
}

.paid-msg-modal-content {
    background: rgba(13, 15, 26, 0.96) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 24px !important;
    padding: 24px !important;
    max-width: 420px !important;
    color: #fff !important;
}

/* ==========================================================================
   CATEGORY PILLS BAR (Twitch / Kick inspired)
   ========================================================================== */
.category-pills-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 20px 2px;
    margin-bottom: 24px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.category-pills-bar::-webkit-scrollbar {
    display: none;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

.category-pill:hover {
    transform: translateY(-2px);
    background: rgba(22, 33, 58, 0.85);
    border-color: var(--border-hover);
    color: #f8fafc;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.category-pill.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.85) 0%, rgba(6, 182, 212, 0.85) 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.category-pill .pill-icon {
    font-size: 1.05rem;
}

/* ==========================================================================
   SOPHISTICATED COIN SHOP & APP STORE GATEWAY
   ========================================================================== */
.coin-shop-container {
    padding: 4px 2px;
}

.coin-balance-card {
    background: linear-gradient(135deg, rgba(255, 226, 89, 0.12) 0%, rgba(255, 167, 81, 0.18) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.08);
}

.coin-balance-info .label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94A3B8;
    font-weight: 700;
}

.coin-balance-info .amount {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #FFE200;
    display: flex;
    align-items: center;
    gap: 6px;
}

.coin-balance-badge {
    background: rgba(255, 226, 0, 0.15);
    border: 1px solid rgba(255, 226, 0, 0.35);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 800;
    color: #FFE200;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Coin Packages Grid */
.coin-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.coin-pack-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 16px 12px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.coin-pack-card:hover {
    transform: translateY(-3px);
    border-color: #BA49FF;
    background: rgba(186, 73, 255, 0.1);
    box-shadow: 0 8px 20px rgba(186, 73, 255, 0.25);
}

.coin-pack-card.popular {
    border-color: rgba(0, 242, 254, 0.7);
    background: rgba(0, 242, 254, 0.08);
}

.coin-pack-badge {
    position: absolute;
    top: -9px;
    background: linear-gradient(135deg, #FF2D55 0%, #BA49FF 100%);
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(255, 45, 85, 0.4);
}

.coin-pack-icon {
    font-size: 2rem;
    margin-bottom: 6px;
    filter: drop-shadow(0 4px 8px rgba(255, 226, 0, 0.3));
}

.coin-pack-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 2px;
}

.coin-pack-bonus {
    font-size: 0.72rem;
    color: #00FFAA;
    font-weight: 700;
    margin-bottom: 8px;
}

.coin-pack-price {
    font-size: 0.88rem;
    font-weight: 800;
    color: #F8FAFC;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 8px;
    width: 100%;
}

/* App Store Direct Gateway Box */
.appstore-gateway-box {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    padding: 22px 24px;
    text-align: center;
    color: #FFFFFF;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 14px;
}

.gateway-apple-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    color: #00F2FE;
    margin-bottom: 10px;
}

.gateway-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.18rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 6px;
}

.gateway-desc {
    font-size: 0.84rem;
    color: #94A3B8;
    line-height: 1.45;
    margin-bottom: 18px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.btn-gateway-appstore {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: #FFFFFF;
    color: #0F172A !important;
    font-weight: 800;
    font-size: 0.96rem;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
    transition: all 0.22s ease;
}

.btn-gateway-appstore:hover {
    transform: translateY(-2px);
    background: #F8FAFC;
    box-shadow: 0 10px 28px rgba(255, 255, 255, 0.35);
}

.gateway-security-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 14px;
    font-size: 0.74rem;
    color: #94A3B8;
}

.gateway-security-row span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   COIN SHOP MODAL - CLEAN APPLE PAY STANDARD
   ========================================================================== */
.clean-coin-shop-modal {
    width: 92%;
    max-width: 490px;
    background: rgba(11, 18, 33, 0.96) !important;
    backdrop-filter: blur(28px) !important;
    -webkit-backdrop-filter: blur(28px) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 28px !important;
    padding: 30px 28px !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 40px rgba(245, 158, 11, 0.15) !important;
    color: #f8fafc !important;
    position: relative;
    margin: auto !important;
}

.clean-coin-header {
    text-align: center;
    margin-bottom: 20px;
}

.clean-coin-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 4px;
}

.clean-coin-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.clean-balance-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.clean-balance-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clean-balance-value {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--accent-gold-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.clean-packages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}

.clean-pack-item {
    background: rgba(15, 23, 42, 0.7);
    border: 1.5px solid var(--border-subtle);
    border-radius: 16px;
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.clean-pack-item:hover {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(22, 33, 58, 0.85);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(245, 158, 11, 0.2);
}

.clean-pack-item.selected {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3);
}

.clean-pack-badge {
    position: absolute;
    top: -8px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #030611;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.2px;
}

.clean-pack-coins {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 2px;
}

.clean-pack-bonus {
    font-size: 0.7rem;
    color: var(--accent-teal);
    font-weight: 700;
    margin-bottom: 8px;
}

.clean-pack-price {
    font-size: 0.84rem;
    font-weight: 800;
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 8px;
    width: 100%;
}

.clean-apple-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 18px 20px;
    text-align: center;
}

.clean-apple-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-bottom: 14px;
}

.btn-clean-apple-pay {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: #000000;
    color: #FFFFFF !important;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.94rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.btn-clean-apple-pay:hover {
    background: #1E293B;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.clean-apple-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 12px;
    font-size: 0.72rem;
    color: #94A3B8;
}

/* ==========================================================================
   CLEAN AUTH MODAL (LOGIN & REGISTER) - ULTRA LEGIBLE & SOPHISTICATED
   ========================================================================== */
.clean-auth-modal {
    width: 92% !important;
    max-width: 440px !important;
    background: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 28px !important;
    padding: 34px 30px !important;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.15) !important;
    color: #0F172A !important;
    position: relative !important;
    margin: auto !important;
    backdrop-filter: none !important;
    animation: modalPopUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.clean-auth-modal .modal-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.65rem !important;
    font-weight: 800 !important;
    text-align: center !important;
    margin-bottom: 6px !important;
    color: #0F172A !important;
    background: none !important;
    -webkit-text-fill-color: #0F172A !important;
    letter-spacing: -0.4px !important;
}

.clean-auth-modal .modal-subtitle {
    text-align: center !important;
    color: #64748B !important;
    font-size: 0.88rem !important;
    margin-bottom: 22px !important;
    line-height: 1.45 !important;
}

.clean-auth-modal .form-group {
    margin-bottom: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.clean-auth-modal .form-label {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: #0F172A !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.clean-auth-modal .form-input {
    background: #F8FAFC !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 14px !important;
    padding: 13px 16px !important;
    color: #0F172A !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}

.clean-auth-modal .form-input::placeholder {
    color: #94A3B8 !important;
}

.clean-auth-modal .form-input:focus {
    border-color: #BA49FF !important;
    background: #FFFFFF !important;
    box-shadow: 0 0 0 3px rgba(186, 73, 255, 0.15) !important;
}

.clean-auth-modal .btn-submit-full {
    width: 100% !important;
    padding: 14px !important;
    background: linear-gradient(135deg, #BA49FF 0%, #00F2FE 100%) !important;
    border: none !important;
    border-radius: 14px !important;
    color: #FFFFFF !important;
    font-weight: 800 !important;
    font-size: 0.98rem !important;
    cursor: pointer !important;
    margin-top: 8px !important;
    box-shadow: 0 6px 20px rgba(186, 73, 255, 0.3) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.clean-auth-modal .btn-submit-full:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(186, 73, 255, 0.4) !important;
}

.clean-auth-modal .btn-google-auth {
    width: 100% !important;
    padding: 13px !important;
    background: #FFFFFF !important;
    border: 1.5px solid #E2E8F0 !important;
    border-radius: 14px !important;
    color: #0F172A !important;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-top: 12px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    transition: background 0.2s ease, border-color 0.2s ease !important;
}

.clean-auth-modal .btn-google-auth:hover {
    background: #F8FAFC !important;
    border-color: #CBD5E1 !important;
}

.clean-auth-modal .auth-switch-text {
    text-align: center !important;
    font-size: 0.85rem !important;
    color: #64748B !important;
    margin-top: 18px !important;
}

.clean-auth-modal .auth-switch-text a {
    color: #BA49FF !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}

.clean-auth-modal .auth-switch-text a:hover {
    text-decoration: underline !important;
}

.clean-auth-modal .close-modal-btn {
    color: #64748B !important;
    background: rgba(0, 0, 0, 0.05) !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem !important;
    top: 16px !important;
    right: 16px !important;
}

.clean-auth-modal .close-modal-btn:hover {
    background: rgba(0, 0, 0, 0.1) !important;
    color: #0F172A !important;
}

/* ==========================================================================
   INTERNATIONALIZATION (i18n) - LANGUAGE SELECTOR & MODAL
   ========================================================================== */

.lang-picker-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: #f1f5f9;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.lang-picker-btn:hover {
    background: rgba(168, 85, 247, 0.18);
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.25);
}

.lang-picker-btn .lang-flag {
    font-size: 1rem;
    line-height: 1;
}

.lang-picker-btn .lang-code {
    letter-spacing: 0.5px;
}

/* Language Modal */
.language-modal-content {
    width: 92%;
    max-width: 520px;
    max-height: 85vh;
    max-height: 85dvh;
    background: rgba(11, 15, 28, 0.98) !important;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 26px !important;
    padding: 24px !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 40px rgba(168, 85, 247, 0.15) !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.language-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-right: 40px;
}

.language-modal-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.language-search-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.language-search-input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.language-search-input:focus {
    border-color: var(--accent-purple);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.25);
}

.language-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.language-list-container {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 4px;
}

.language-list-container::-webkit-scrollbar {
    width: 5px;
}

.language-list-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.lang-select-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.18s ease;
    text-align: left;
    color: #f1f5f9;
}

.lang-select-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(2px);
}

.lang-select-item.active {
    background: rgba(0, 242, 254, 0.1);
    border-color: rgba(0, 242, 254, 0.4);
}

.lang-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-item-flag {
    font-size: 1.4rem;
    line-height: 1;
}

.lang-item-names {
    display: flex;
    flex-direction: column;
}

.lang-item-native {
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
}

.lang-item-en {
    font-size: 0.76rem;
    color: #94a3b8;
}

.lang-item-check {
    font-size: 1rem;
    font-weight: 800;
    color: var(--accent-cyan);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.lang-select-item.active .lang-item-check {
    opacity: 1;
}

/* Drawer Language Card */
.drawer-lang-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    margin: 8px 0 16px 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #fff;
}

.drawer-lang-card:hover {
    background: rgba(168, 85, 247, 0.12);
    border-color: rgba(168, 85, 247, 0.35);
}

/* ==========================================================================
   RTL (Right-to-Left) SUPPORT - Arabic (ar) & Hebrew (he)
   ========================================================================== */

[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .header-nav-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .search-bar-container input {
    text-align: right;
    padding-right: 38px;
    padding-left: 14px;
}

[dir="rtl"] .search-bar-container .search-icon {
    right: 14px;
    left: auto;
}

[dir="rtl"] .language-search-input {
    padding: 12px 42px 12px 16px;
    text-align: right;
}

[dir="rtl"] .language-search-icon {
    right: 14px;
    left: auto;
}

[dir="rtl"] .lang-select-item {
    text-align: right;
}

[dir="rtl"] .drawer-nav-item a {
    flex-direction: row-reverse;
}

[dir="rtl"] .stream-hud-top {
    flex-direction: row-reverse;
}

[dir="rtl"] .chat-input-bar {
    flex-direction: row-reverse;
}

[dir="rtl"] .gift-modal-top-bar {
    padding-left: 48px;
    padding-right: 0;
}

[dir="rtl"] .close-modal-btn {
    left: 18px !important;
    right: auto !important;
}



