/* =========================================
   1. GLOBAL VARIABLES & THEMES
   ========================================= */

/* Dark Theme (Default) */
:root {
    --bg-main: #0a0a0f;
    --bg-card: #15151e;
    --bg-search: #1c1c28;
    --bg-dropdown: #14141e;
    --accent-purple: #7835ff;
    --accent-hover: #9055ff;
    --text-main: #ffffff;
    --text-muted: #8e8e9e;
    --border-color: rgba(255, 255, 255, 0.08);
    --hover-bg: rgba(255, 255, 255, 0.05);
    --placeholder-bg: #1e1e2f;
    --font-family: 'Poppins', sans-serif;
}

/* Light Theme Overrides */
[data-theme="light"] {
    --bg-main: #f4f5f8;
    --bg-card: #ffffff;
    --bg-search: #e4e6eb;
    --bg-dropdown: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #65676b;
    --border-color: rgba(0, 0, 0, 0.1);
    --hover-bg: rgba(0, 0, 0, 0.05);
    --placeholder-bg: #e0e0e0;
}

/* LIGHT MODE FIX: Strip the dark image backgrounds and overlays from dashboard pages */
[data-theme="light"] .settings-page,
[data-theme="light"] .favorites-page,
[data-theme="light"] .dashboard-page {
    background: var(--bg-main) !important;
}

[data-theme="light"] .settings-page::before,
[data-theme="light"] .favorites-page::before,
[data-theme="light"] .dashboard-page::before {
    display: none !important;
}

/* --- Global Reset --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Base element resets */
button, input, select, textarea {
    font-family: var(--font-family);
    outline: none;
}


/* =========================================
   2. EDGE PADDING & WIDTH CONSTRAINTS
   ========================================= */

/* Pulls the edges inward to prevent ultra-wide stretching */
.container {
    max-width: 1250px !important; 
    padding: 0 6% !important;     
    margin: 0 auto;
    width: 100%;
}

/* Applies the exact same constraints to the Public Profile Page components */
.profile-hero, .profile-stats-bar, .profile-content-grid {
    padding-left: 6% !important;
    padding-right: 6% !important;
}

@media (min-width: 1300px) {
    .profile-hero .hero-inner,
    .profile-content-grid,
    .profile-stats-bar {
        max-width: 1250px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
}


/* =========================================
   3. NAVIGATION HEADER
   ========================================= */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 4%; background: transparent; position: absolute;
    width: 100%; z-index: 100;
}

.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: 1px; color: var(--text-main); text-decoration: none;}
.logo span { color: var(--accent-purple); }

.nav-menu { display: flex; gap: 2rem; }
.nav-menu a { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 0.3s; }
.nav-menu a:hover, .nav-menu a.active { color: var(--text-main); border-bottom: 2px solid var(--accent-purple); padding-bottom: 5px; }

.nav-right { display: flex; align-items: center; gap: 1.5rem; }
.search-box {
    background: var(--bg-search); border-radius: 20px; padding: 8px 15px;
    display: flex; align-items: center; border: 1px solid var(--border-color);
}
.search-box input { background: transparent; border: none; color: var(--text-main); outline: none; margin-left: 10px; font-family: var(--font-family); }


/* =========================================
   4. USER PROFILE & DROPDOWN (HOVER)
   ========================================= */
.user-profile { position: relative; cursor: pointer; }
.avatar-wrapper { position: relative; display: inline-block; }

.avatar-circle {
    width: 40px; height: 40px; border-radius: 50%;
    border: 2px solid transparent; transition: border-color 0.2s;
    background: var(--placeholder-bg);
}
.user-profile:hover .avatar-circle { border-color: var(--accent-purple); }

.notification-badge {
    position: absolute; top: -2px; right: -4px;
    background-color: #ff3b30; color: white;
    font-size: 0.7rem; font-weight: 700; width: 18px; height: 18px;
    display: flex; justify-content: center; align-items: center;
    border-radius: 50%; border: 2px solid var(--bg-main);
}

.user-profile::after { content: ''; position: absolute; top: 100%; right: 0; width: 100px; height: 20px; }

.profile-dropdown {
    position: absolute; top: 55px; right: 0; width: 260px;
    background: var(--bg-dropdown); border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 15px 0; opacity: 0; visibility: hidden;
    transform: translateY(10px); transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 200;
}

.user-profile:hover .profile-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-arrow {
    position: absolute; top: -6px; right: 14px; width: 12px; height: 12px;
    background: var(--bg-dropdown); border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color); transform: rotate(45deg);
}

.dropdown-header {
    display: flex; align-items: center; gap: 15px; padding: 0 20px 20px 20px;
    border-bottom: 1px solid var(--border-color); margin-bottom: 10px;
}
.dropdown-avatar { width: 50px; height: 50px; border-radius: 50%; }
.dropdown-user-info h4 { font-size: 1.1rem; color: var(--text-main); margin-bottom: 2px; }
.dropdown-user-info p { font-size: 0.85rem; color: var(--text-muted); }

.dropdown-menu-list { list-style: none; }
.dropdown-menu-list li { padding: 0 10px; }
.dropdown-menu-list a, .dark-mode-item {
    display: flex; align-items: center; padding: 12px 15px;
    color: var(--text-main); text-decoration: none; font-size: 0.95rem; font-weight: 500;
    border-radius: 8px; transition: all 0.2s; cursor: pointer;
}
.dropdown-menu-list a:hover, .dark-mode-item:hover { background: var(--hover-bg); }
.dropdown-menu-list .icon { font-size: 1.2rem; margin-right: 12px; opacity: 0.8; }
.dark-mode-item { justify-content: space-between; }
.dark-mode-label { display: flex; align-items: center; }
.logout-item a { color: #ff914d; }
.logout-item a:hover { background: rgba(255, 145, 77, 0.1); }

/* Custom Toggle Switch for Dark Mode */
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 24px; }
[data-theme="dark"] .slider { background-color: #333; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #6366f1; }
input:checked + .slider:before { transform: translateX(20px); }


/* =========================================
   5. BUTTONS & BADGES 
   ========================================= */
.btn-primary {
    background: var(--accent-purple); color: white; border: none; padding: 12px 32px;
    font-size: 1rem; font-weight: 700; border-radius: 6px; cursor: pointer;
    box-shadow: 0 4px 15px rgba(120, 53, 255, 0.3); transition: 0.2s; display: inline-block;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }

.btn-secondary {
    background: var(--bg-search); color: var(--text-main); border: 1px solid var(--border-color); 
    padding: 10px 24px; font-size: 0.9rem; font-weight: 600; border-radius: 6px; cursor: pointer; transition: 0.2s;
}
.btn-secondary:hover { background: var(--hover-bg); border-color: var(--accent-purple); }

.btn-action-block {
    background: transparent; color: var(--text-main); border: 2px solid var(--border-color);
    padding: 12px 20px; border-radius: 8px; font-weight: 600; font-size: 0.95rem;
    cursor: pointer; transition: all 0.2s ease; text-align: center; width: 100%;
}
.btn-action-block:hover {
    background: var(--accent-purple); border-color: var(--accent-purple); color: white;
    transform: translateY(-2px); box-shadow: 0 4px 15px rgba(120, 53, 255, 0.25);
}

/* Profile Action Row Buttons (Follow, Tip, Edit Profile) */
.action-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn-action {
    padding: 8px 18px; border-radius: 6px; font-weight: 600; font-family: var(--font-family);
    font-size: 0.9rem; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; gap: 8px;
}
.btn-follow { background: var(--accent-purple); color: white; border: 1px solid var(--accent-purple); }
.btn-follow:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(120, 53, 255, 0.3); }

.btn-tip { background: rgba(255, 171, 0, 0.15); color: #ffb100; border: 1px solid rgba(255, 171, 0, 0.4); }
.btn-tip:hover { background: rgba(255, 171, 0, 0.25); transform: translateY(-2px); }

.btn-edit { background: var(--bg-search); color: var(--text-main); border: 1px solid var(--border-color); }
.btn-edit:hover { background: var(--hover-bg); border-color: var(--accent-purple); transform: translateY(-2px); }

/* Badges */
.live-badge { background: #b52bff; color: white; padding: 3px 8px; font-size: 0.7rem; font-weight: 700; border-radius: 3px; letter-spacing: 1px; }
.verified-tick { background: #0084ff; color: white; border-radius: 50%; width: 20px; height: 20px; display: flex; justify-content: center; align-items: center; font-size: 0.7rem; }
.verified-tick.small { width: 14px; height: 14px; font-size: 0.5rem; display: inline-flex; }


/* =========================================
   6. HOME PAGE ELEMENTS (Hero, Grids, Cards)
   ========================================= */
.hero-banner {
    position: relative; width: 100%; height: 600px; display: flex; flex-direction: column; justify-content: flex-end;
    padding: 4% 4% 6% 4%; 
    background: linear-gradient(to bottom, rgba(10, 10, 15, 0.1) 0%, var(--bg-main) 100%), 
    url('https://images.unsplash.com/photo-1542751371-adc38448a05e?q=80&w=1920&auto=format&fit=crop') center/cover;
}
.hero-content h1 { font-size: 4.5rem; font-weight: 800; line-height: 1; margin-bottom: 10px; color: white; }
.hero-content h1 span { color: var(--accent-purple); }
.hero-content p { font-size: 1.2rem; font-weight: 500; letter-spacing: 2px; margin-bottom: 25px; text-transform: uppercase; color: white; }
.hero-stats { display: flex; gap: 15px; font-size: 0.9rem; font-weight: 600; color: #ddd; align-items: center; }
.stat-box { background: rgba(255,255,255,0.1); padding: 5px 12px; border-radius: 4px; backdrop-filter: blur(5px); }

.main-content { padding: 0 4%; }
.content-section { margin-bottom: 50px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-header h2, .section-title { font-size: 1.4rem; font-weight: 600; color: var(--text-main); }
.nav-arrows span { color: var(--accent-purple); font-size: 1.5rem; cursor: pointer; margin-left: 15px; }

/* Grid Layouts */
.grid-landscape { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-portrait { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.grid-wide { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-five { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-bottom: 40px; }
.grid-two { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 40px; }

/* Base Cards */
.card { background: var(--bg-card); border-radius: 8px; overflow: hidden; transition: transform 0.2s; cursor: pointer; border: 1px solid var(--border-color); }
.card:hover { transform: translateY(-5px); border-color: rgba(120, 53, 255, 0.5); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

.card-thumb { position: relative; overflow: hidden; height: 160px; padding: 10px; background: var(--placeholder-bg) !important; }
.landscape-card .card-info { padding: 15px; display: flex; gap: 12px; align-items: center; }
.portrait-card .game-cover { height: 260px; background: var(--placeholder-bg) !important; }
.portrait-card .game-info { padding: 15px; display: flex; gap: 10px; align-items: center; }

.streamer-avatar { width: 35px; height: 35px; border-radius: 50%; background: #888; flex-shrink: 0; }
.text-info h4 { font-size: 1rem; margin-bottom: 2px; color: var(--text-main); }
.text-info p { font-size: 0.8rem; color: var(--text-muted); }


/* =========================================
   7. PUBLIC PROFILE PAGE
   ========================================= */
.profile-page { padding-top: 80px; }

/* Hero Section */
.profile-hero { padding: 40px 4% 20px 4%; background-size: cover !important; background-position: center !important; }
.profile-info-main { display: flex; align-items: center; gap: 30px; }
.profile-avatar-large { width: 120px; height: 120px; border-radius: 50%; border: 3px solid #00c6ff; padding: 3px; background: var(--bg-main); box-shadow: 0 0 20px rgba(0, 198, 255, 0.3); }
.name-row h1 { font-size: 2.2rem; font-weight: 800; display: flex; align-items: center; gap: 10px; margin-bottom: 5px; color: white; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.handle { color: #ccc; font-size: 0.95rem; margin-bottom: 15px; }

.social-icons { display: flex; gap: 10px; color: var(--text-muted); }
.social-icons svg { cursor: pointer; transition: color 0.2s; }
.social-icons svg:hover { color: var(--text-main); }

/* Stats Bar */
.profile-stats-bar { display: flex; justify-content: space-between; align-items: center; padding: 20px 4%; border-bottom: 1px solid var(--border-color); }
.stats-left { display: flex; gap: 50px; }
.stat-item { display: flex; flex-direction: column; align-items: center; opacity: 0.6; transition: 0.2s; }
.stat-item.active, .stat-item:hover { opacity: 1; }
.stat-num { font-size: 1.4rem; font-weight: 700; color: var(--text-main); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.stats-right { display: flex; align-items: center; gap: 20px; }
.discord-link { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

/* Interactive Tab System */
.inline-tabs { display: flex; gap: 15px; border-bottom: 2px solid var(--border-color); margin: 30px 0; padding-bottom: 0; }
.tab-btn { background: none; border: none; color: var(--text-muted); font-size: 1.05rem; font-family: var(--font-family); font-weight: 600; padding: 15px 20px; cursor: pointer; position: relative; transition: color 0.2s; }
.tab-btn:hover { color: var(--text-main); }
.tab-btn.active { color: var(--text-main); }
.tab-btn.active::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 3px; background: var(--accent-purple); border-radius: 3px 3px 0 0; }
.tab-content { display: none; animation: fadeInTab 0.4s ease forwards; }
.tab-content.active { display: block; }
@keyframes fadeInTab { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.about-panel { background: var(--bg-dropdown); border: 1px solid var(--border-color); padding: 25px; border-radius: 12px; }
.about-panel h3 { margin-bottom: 10px; color: var(--text-main); }
.about-panel p { color: var(--text-muted); line-height: 1.6; }

/* Video Grid Badges (Profile specific) */
.watch-badge { position: absolute; top: 10px; left: 10px; background: var(--accent-purple); color: white; padding: 2px 8px; border-radius: 3px; font-size: 0.7rem; font-weight: 700; z-index: 5; }
.duration-badge { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,0.8); color: white; padding: 2px 6px; border-radius: 3px; font-size: 0.75rem; z-index: 5; }
.thumb-bottom-left { position: absolute; bottom: 10px; left: 10px; font-size: 0.75rem; color: #ff2b85; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,0.8); z-index: 5; }

/* Video Player Layout */
.profile-content-grid { display: grid; grid-template-columns: 1fr 320px; gap: 30px; padding: 30px 4% 50px 4%; align-items: start; }
.video-player-wrapper { position: relative; width: 100%; aspect-ratio: 16 / 9; background-color: var(--placeholder-bg); border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color); margin-bottom: 20px; }
.video-overlay-top { position: absolute; top: 15px; left: 15px; display: flex; gap: 10px; align-items: center; }
.streamer-pill { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px); padding: 5px 15px 5px 5px; border-radius: 30px; display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: white; border: 1px solid rgba(255, 255, 255, 0.1); }
.streamer-pill img { width: 24px; height: 24px; border-radius: 50%; }
.video-overlay-bottom { position: absolute; bottom: 15px; left: 15px; display: flex; gap: 10px; align-items: center; }
.live-badge.pink { background: #ff2b85; }
.viewer-count { font-size: 0.85rem; font-weight: 700; color: white; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8); }

/* Video Details */
/* =========================================
   FIXED VIDEO DETAILS & BUTTONS LAYOUT
   ========================================= */

.video-details-box { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    padding-bottom: 30px; 
    gap: 20px; /* Prevents the title from crashing into the buttons */
}

/* Left Side (Title and Tags) */
.details-left {
    flex: 1; /* Allows the title to flexibly take up empty space */
}

.details-left h2 { 
    font-size: 1.5rem; 
    font-weight: 800; 
    margin-bottom: 12px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    color: var(--text-main); 
    flex-wrap: wrap; /* Ensures the title and fire emoji wrap neatly together */
}

.details-left h2 span { 
    color: var(--accent-purple); 
    font-size: 1.1rem; 
    white-space: nowrap; /* Prevents the username from splitting in half */
}

.tags-row { 
    display: flex; 
    gap: 10px; 
    flex-wrap: wrap; 
}

.tag { 
    background: var(--hover-bg); 
    padding: 6px 12px; 
    border-radius: 6px; 
    font-size: 0.75rem; 
    color: var(--text-muted); 
    font-weight: 600; 
    border: 1px solid var(--border-color);
}

/* Right Side (Buttons and Meta Text) */
.details-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Aligns the entire right block to the edge */
    flex-shrink: 0; /* Absolutely prevents the buttons from being squished */
}

.action-row { 
    display: flex; 
    align-items: center; 
    justify-content: flex-end; 
    gap: 10px; 
    flex-wrap: wrap; 
}

/* Fixes the followers / streaming time text */
.stream-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    text-align: right; /* Forces the text to align flush with the buttons */
    margin-top: 10px;
    white-space: nowrap; /* Prevents the text from stacking weirdly */
}


/* Responsive Fix: If the screen is small (like a tablet or phone), stack them! */
@media (max-width: 900px) {
    .video-details-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .details-right {
        align-items: flex-start;
        width: 100%;
    }
    .action-row {
        justify-content: flex-start;
    }
    .stream-meta {
        text-align: left;
    }
}

/* --- Sticky Chat Box --- */
.chat-column { position: sticky; top: 90px; height: calc(100vh - 120px); max-height: 800px; }
.chat-container { background: var(--bg-dropdown); border-radius: 12px; border: 1px solid var(--border-color); display: flex; flex-direction: column; height: 100%; }
.chat-header { padding: 15px 20px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--text-main); }
.chat-messages { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.chat-msg { display: flex; gap: 12px; align-items: flex-start; }
.chat-msg img { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-color); flex-shrink: 0; }
.msg-content { flex: 1; }
.chat-name { font-weight: 600; font-size: 0.85rem; color: var(--accent-purple); }
.chat-meta { font-size: 0.7rem; color: var(--text-muted); margin-left: 5px; }
.msg-content p { font-size: 0.85rem; color: var(--text-main); margin-top: 4px; line-height: 1.4; }
.chat-input-area { padding: 15px; border-top: 1px solid var(--border-color); display: flex; align-items: center; gap: 10px; }
.chat-input-area input { flex: 1; background: var(--bg-main); border: 1px solid var(--border-color); border-radius: 20px; padding: 10px 15px; color: var(--text-main); font-family: var(--font-family); font-size: 0.85rem; outline: none; }
.btn-send { background: var(--bg-search); border: 1px solid var(--border-color); color: var(--text-muted); width: 38px; height: 38px; border-radius: 8px; cursor: pointer; transition: 0.2s; display: flex; justify-content: center; align-items: center; }
.btn-send:hover { background: var(--hover-bg); color: var(--text-main); }


/* =========================================
   8. IN-LINE EDITING STYLES 
   ========================================= */
.edit-only { display: none !important; }
.profile-page.is-editing .view-only { display: none !important; }
.profile-page.is-editing .edit-only { display: block !important; }
.profile-page.is-editing .edit-only.item-edit-overlay { display: flex !important; }
.profile-page.is-editing .edit-only.upload-card { display: flex !important; }
.profile-page.is-editing .edit-only.avatar-upload-overlay { display: flex !important; }

.upload-card { border: 2px dashed var(--border-color); background: transparent; cursor: pointer; min-height: 220px; align-items: center; justify-content: center; text-align: center; transition: all 0.2s ease; }
.upload-card:hover { border-color: var(--accent-purple); background: rgba(120, 53, 255, 0.05); }
.upload-inner { display: flex; flex-direction: column; align-items: center; }

.item-edit-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(2px); z-index: 20; align-items: center; justify-content: center; gap: 15px; }
.overlay-action-btn { width: 40px; height: 40px; border-radius: 50%; border: none; font-size: 1.1rem; cursor: pointer; transition: 0.2s transform; display: flex; justify-content: center; align-items: center; }
.overlay-action-btn.edit { background: var(--bg-card); color: white; }
.overlay-action-btn.delete { background: #ff3b30; color: white; }
.overlay-action-btn:hover { transform: scale(1.15); }


/* =========================================
   9. MY CHANNEL DASHBOARD 
   ========================================= */
.dashboard-page {
    padding-top: 100px;
    padding-bottom: 80px;
    min-height: 100vh;
    background: var(--bg-main); 
}

/* Editable Banner */
.dashboard-banner-container {
    position: relative; width: 100%; height: 220px;
    border-radius: 12px; overflow: hidden; margin-bottom: 30px;
    border: 1px solid var(--border-color);
    display: flex; align-items: center; padding-left: 50px;
}
.banner-overlay-bg {
    position: absolute; top: 0; left: 0; width: 60%; height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
}
.banner-content {
    position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column;
    justify-content: center; align-items: flex-start;
}
.banner-text h2 { font-size: 3.5rem; font-weight: 900; color: white; text-shadow: 2px 2px 10px rgba(0,0,0,0.8); line-height: 1; }
.banner-text h2 span { color: var(--accent-purple); }
.live-now-badge {
    background: var(--accent-purple); color: white; padding: 6px 12px; border-radius: 4px;
    font-weight: 800; font-size: 0.85rem; display: inline-block; margin-top: 5px;
}
.live-now-badge.small { font-size: 0.7rem; padding: 4px 8px; }
.edit-banner-btn {
    position: absolute; bottom: 15px; left: 15px;
    background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.2);
    color: white; padding: 6px 12px; border-radius: 6px; font-size: 0.8rem; cursor: pointer; transition: 0.2s;
}
.edit-banner-btn:hover { background: var(--accent-purple); border-color: var(--accent-purple); }

/* Dashboard Title Bar */
.dashboard-title-bar {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--border-color); padding-bottom: 15px; margin-bottom: 30px;
}
.dashboard-title-bar h2 { font-size: 1.5rem; font-weight: 700; color: var(--text-main); }

/* Settings Panels */
.dashboard-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.dashboard-panel {
    background: var(--bg-card); 
    border-radius: 12px; border: 1px solid var(--border-color); padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.dashboard-panel h3 { font-size: 1.2rem; margin-bottom: 25px; font-weight: 600; color: var(--text-main); }

/* Forms inside panels */
.form-group { margin-bottom: 20px; }
.form-group label { 
    display: block; font-size: 0.85rem; color: var(--text-muted); 
    font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px;
}
.form-input {
    width: 100%; background: var(--bg-main); border: 1px solid var(--border-color); color: var(--text-main);
    padding: 12px 15px; border-radius: 8px; font-family: var(--font-family); font-size: 0.95rem; outline: none; transition: 0.2s;
}
.form-input:focus { border-color: var(--accent-purple); box-shadow: 0 0 0 3px rgba(120, 53, 255, 0.1); }
.custom-select { 
    appearance: none; 
    background-image: url('data:image/svg+xml;utf8,<svg fill="%238e8e9e" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>'); 
    background-repeat: no-repeat; background-position: right 10px center; 
}

/* Tags */
.tags-input-box {
    display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
    background: var(--bg-main); border: 1px solid var(--border-color);
    padding: 12px 15px; border-radius: 8px;
}
.tag-pill {
    background: var(--hover-bg); color: var(--text-muted); padding: 4px 12px;
    border-radius: 4px; font-size: 0.8rem; font-weight: 600; border: 1px solid var(--border-color);
}
.tag-input-field { background: transparent; border: none; color: var(--text-main); outline: none; font-size: 0.85rem; font-family: var(--font-family); }

/* Stream Info Previews */
.preview-thumbnail {
    width: 100%; aspect-ratio: 16/9; border-radius: 8px; border: 2px solid var(--accent-purple);
    position: relative; display: flex; align-items: center; padding-left: 30px; margin-bottom: 20px;
}
.selected-badge { position: absolute; top: 10px; left: 10px; background: var(--accent-purple); color: white; font-size: 0.7rem; padding: 3px 8px; border-radius: 4px; font-weight: bold; }
.thumb-overlay-text h2 { font-size: 1.8rem; font-weight: 900; line-height: 1; text-shadow: 2px 2px 5px rgba(0,0,0,0.8); color: white; }
.thumb-overlay-text h2 span { color: var(--accent-purple); }
.views-badge-bottom { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,0.7); color: white; font-size: 0.75rem; padding: 4px 8px; border-radius: 4px; font-weight: 600;}

.thumbnail-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.thumbnail-gallery img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; opacity: 0.5; border: 2px solid transparent; cursor: pointer; transition: 0.2s; }
.thumbnail-gallery img:hover { opacity: 1; border-color: var(--accent-purple); }
.upload-new-thumb { 
    width: 100%; aspect-ratio: 16/9; border-radius: 8px; border: 2px dashed var(--border-color); background: var(--bg-main);
    display: flex; justify-content: center; align-items: center; color: var(--text-muted); cursor: pointer; font-size: 0.9rem; font-weight: 600; transition: 0.2s; 
}
.upload-new-thumb:hover { color: var(--accent-purple); border-color: var(--accent-purple); }

/* Quick Action Grid Bottom Blocks */
.dashboard-actions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
.action-block, .dashboard-revenue-block {
    background: var(--bg-card); border-radius: 12px; border: 1px solid var(--border-color); padding: 25px;
    display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; gap: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.action-block h4, .dashboard-revenue-block h4 { font-size: 1rem; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 5px; color: var(--text-main); }
.action-block p, .dashboard-revenue-block p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }


/* =========================================
   10. FAVORITES / FOLLOWING PAGE
   ========================================= */

.favorites-page {
    padding-top: 100px;
    padding-bottom: 80px;
    min-height: 100vh;
    background: var(--bg-main);
}

.page-header { margin-bottom: 30px; }
.page-header h1 { font-size: 2.5rem; font-weight: 800; color: var(--text-main); margin-bottom: 8px; }
.page-header p { color: var(--text-muted); font-size: 1rem; }

/* Classic Text Tabs */
.classic-tabs {
    display: flex; gap: 30px; 
    border-bottom: 1px solid var(--border-color); 
    margin-bottom: 40px;
}
.classic-tabs .tab-link {
    color: var(--text-muted); text-decoration: none; 
    font-size: 1.1rem; font-weight: 600; 
    padding-bottom: 15px; position: relative; transition: color 0.2s;
}
.classic-tabs .tab-link:hover { color: var(--text-main); }
.classic-tabs .tab-link.active { color: var(--text-main); }
.classic-tabs .tab-link.active::after {
    content: ''; position: absolute; bottom: -1px; left: 0; 
    width: 100%; height: 3px; background: var(--accent-purple); 
    border-radius: 3px 3px 0 0;
}

/* Section Headings */
.section-heading-row {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;
}
.section-heading-row h2 {
    font-size: 1.1rem; color: var(--text-main); font-weight: 700; 
    letter-spacing: 0.5px; text-transform: uppercase;
}
.section-heading-row .view-all {
    color: var(--text-muted); font-size: 0.85rem; text-decoration: none; 
    font-weight: 600; transition: color 0.2s;
}
.section-heading-row .view-all:hover { color: var(--accent-purple); }

/* Favorite Cards */
.follow-card {
    background: var(--bg-card); border-radius: 12px; overflow: hidden; 
    border: 1px solid var(--border-color); transition: transform 0.2s, border-color 0.2s; 
    cursor: pointer;
}
.follow-card:hover { transform: translateY(-5px); border-color: var(--accent-purple); }
.follow-card .card-thumb { position: relative; aspect-ratio: 16/9; width: 100%; background: var(--placeholder-bg); }
.follow-card .card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.follow-card .live-badge {
    position: absolute; top: 10px; left: 10px; background: #ff2b85; 
    color: white; padding: 4px 8px; font-size: 0.7rem; font-weight: 800; 
    border-radius: 4px; z-index: 2;
}
.follow-card .card-info { display: flex; align-items: center; gap: 12px; padding: 15px; }
.follow-card .card-avatar {
    width: 40px; height: 40px; border-radius: 50%; object-fit: cover; 
    border: 2px solid var(--border-color); flex-shrink: 0;
}
.follow-card .card-text { flex: 1; overflow: hidden; }
.follow-card .card-text h4 {
    font-size: 0.95rem; color: var(--text-main); font-weight: 700; 
    white-space: nowrap; text-overflow: ellipsis; overflow: hidden; margin-bottom: 3px;
}
.follow-card .card-text p {
    font-size: 0.8rem; color: var(--text-muted); 
    white-space: nowrap; text-overflow: ellipsis; overflow: hidden;
}

/* Wide Game Cards */
.game-wide-card {
    position: relative; height: 220px; border-radius: 12px; overflow: hidden; 
    border: 1px solid var(--border-color); cursor: pointer; transition: transform 0.2s;
}
.game-wide-card:hover { transform: translateY(-5px); border-color: var(--accent-purple); }
.game-wide-card .bg-image {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    object-fit: cover; z-index: 1;
}
.game-wide-card .overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: linear-gradient(to right, rgba(14,9,24,0.95) 0%, rgba(14,9,24,0.4) 50%, rgba(14,9,24,0) 100%); 
    z-index: 2; padding: 30px; display: flex; flex-direction: column; 
    justify-content: center; align-items: flex-start;
}
.game-wide-card .tag-label {
    background: rgba(255,255,255,0.1); color: white; font-size: 0.75rem; 
    padding: 4px 10px; border-radius: 4px; font-weight: 700; 
    letter-spacing: 1px; margin-bottom: 10px; backdrop-filter: blur(4px);
}
.game-wide-card h3 {
    font-size: 2.5rem; font-weight: 900; color: white; margin-bottom: 10px; 
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8); line-height: 1;
}
.game-wide-card h3 span { color: var(--accent-purple); }
.game-wide-card .stats-bottom {
    position: absolute; bottom: 20px; right: 20px; color: rgba(255,255,255,0.9); 
    font-size: 0.85rem; font-weight: 600; background: rgba(0,0,0,0.6); 
    padding: 6px 12px; border-radius: 6px; backdrop-filter: blur(4px);
}


/* =========================================
   11. SETTINGS PAGE STYLES
   ========================================= */

.settings-page {
    padding-top: 100px;
    padding-bottom: 80px;
    min-height: 100vh;
    background: var(--bg-main); 
}

/* Settings Navigation */
.settings-top-nav { display: flex; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; }
.settings-top-nav a {
    background: var(--bg-card); color: var(--text-main);
    padding: 10px 20px; border-radius: 8px; text-decoration: none;
    font-weight: 600; display: flex; align-items: center; gap: 10px;
    border: 1px solid var(--border-color); transition: 0.2s;
}
.settings-top-nav a:hover { background: var(--hover-bg); border-color: var(--accent-purple); }
.settings-top-nav a.active { background: rgba(120, 53, 255, 0.1); color: var(--accent-purple); border-color: var(--accent-purple); }

/* Settings Layout */
.settings-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.settings-sidebar { display: flex; flex-direction: column; gap: 5px; }
.settings-sidebar a {
    padding: 15px 20px; color: var(--text-muted); text-decoration: none;
    font-weight: 600; border-radius: 8px; display: flex; align-items: center; gap: 15px;
    transition: 0.2s; font-size: 0.95rem;
}
.settings-sidebar a i { width: 20px; text-align: center; }
.settings-sidebar a:hover { background: var(--hover-bg); color: var(--text-main); }
.settings-sidebar a.active {
    background: var(--hover-bg); color: var(--text-main);
    border-left: 3px solid var(--accent-purple); border-radius: 0 8px 8px 0;
}

/* Settings Panels */
.settings-content { display: flex; flex-direction: column; gap: 30px; }
.settings-panel {
    background: var(--bg-card); 
    border-radius: 12px; border: 1px solid var(--border-color); padding: 35px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.settings-panel .panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.settings-panel h2 { font-size: 1.4rem; font-weight: 700; color: var(--text-main); }
.settings-panel h3 { font-size: 1.1rem; font-weight: 600; color: var(--text-main); margin-bottom: 20px; }

/* Settings Content Blocks */
.account-overview { display: flex; gap: 30px; align-items: center; }
.account-avatar { width: 100px; height: 100px; border-radius: 50%; border: 3px solid var(--border-color); object-fit: cover;}
.account-info h3 { margin-bottom: 5px; display: flex; align-items: center; font-size: 1.4rem; color: var(--text-main); }
.account-info .handle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 12px; }
.account-stats { display: flex; gap: 20px; font-size: 0.85rem; color: var(--text-muted); flex-wrap: wrap; }
.account-stats strong { color: var(--text-main); font-weight: 700; font-size: 0.9rem; }

.connected-account-list { display: flex; flex-direction: column; gap: 15px; }
.settings-row-item {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--bg-main); border: 1px solid var(--border-color);
    padding: 15px 20px; border-radius: 8px; transition: 0.2s;
}
.settings-row-item:hover { border-color: var(--accent-purple); }
.platform-info { display: flex; align-items: center; gap: 15px; font-weight: 600; color: var(--text-main); font-size: 0.95rem; }
.platform-info i { font-size: 1.3rem; width: 24px; text-align: center; }


/* =========================================
   12. RESPONSIVE MEDIA QUERIES 
   ========================================= */
@media (max-width: 1200px) {
    .grid-five { grid-template-columns: repeat(3, 1fr); }
    .grid-landscape { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .profile-content-grid { grid-template-columns: 1fr; }
    .chat-column { height: 500px; position: relative; top: 0; margin-top: 30px; }
    .dashboard-settings-grid { grid-template-columns: 1fr; }
    .dashboard-actions-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .settings-layout { grid-template-columns: 1fr; }
    .settings-sidebar { flex-direction: row; overflow-x: auto; padding-bottom: 10px; }
    .settings-sidebar a.active { border-left: none; border-bottom: 3px solid var(--accent-purple); border-radius: 8px 8px 0 0; }
    .account-overview { flex-direction: column; text-align: left; align-items: flex-start;}
}

@media (max-width: 768px) {
    .grid-five { grid-template-columns: repeat(2, 1fr); }
    .grid-two { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 3rem; }
}


/* =========================================
   13. FOOTER
   ========================================= */
.site-footer { display: flex; justify-content: space-between; padding: 30px 4%; border-top: 1px solid var(--border-color); margin-top: auto; }
.footer-links a { color: var(--text-muted); text-decoration: none; margin-right: 20px; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-main); }
.footer-socials span { margin-left: 15px; cursor: pointer; color: var(--text-muted); transition: color 0.2s; }
.footer-socials span:hover { color: var(--text-main); }

/* =========================================
   14. AUTHENTICATION PAGES (Register/Login)
   ========================================= */

/* Main Wrapper (Accounts for the global header) */
.auth-page-wrapper {
    background: var(--bg-main) url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=1920&auto=format&fit=crop') center/cover fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    padding: 120px 20px 80px 20px; /* Top padding pushes it below the navbar */
    width: 100%;
}
.auth-page-wrapper::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(14, 9, 24, 0.85); z-index: -1;
}

/* Light Mode Overrides for Auth */
[data-theme="light"] .auth-page-wrapper { background: var(--bg-main) !important; }
[data-theme="light"] .auth-page-wrapper::before { display: none !important; }
[data-theme="light"] .auth-card { box-shadow: 0 10px 40px rgba(0,0,0,0.08); border-color: rgba(0,0,0,0.1); }

/* Auth Header */
.auth-header {
    text-align: center; margin-bottom: 30px; max-width: 600px;
}
.auth-header h2 { font-size: 1.8rem; font-weight: 700; color: var(--text-main); margin: 0 0 10px 0; }
.auth-header p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }

/* Auth Card */
.auth-card {
    background: rgba(22, 16, 36, 0.6); 
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
}

/* Auth Form Groups */
.auth-form-group { margin-bottom: 20px; }
.auth-form-group label {
    display: flex; align-items: center; gap: 10px;
    font-size: 1rem; font-weight: 600; color: var(--text-main);
    margin-bottom: 10px;
}
.auth-form-group label i { color: var(--text-muted); font-size: 1.1rem; width: 20px; text-align: center; }

/* Custom Auth Inputs */
.auth-input {
    width: 100%;
    background: rgba(10, 6, 18, 0.6); 
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-main); padding: 14px 15px; border-radius: 8px;
    font-family: var(--font-family); font-size: 0.95rem; outline: none; transition: 0.2s;
}
[data-theme="light"] .auth-input { background: var(--bg-search); border-color: var(--border-color); }
.auth-input:focus { border-color: var(--accent-purple); box-shadow: 0 0 0 3px rgba(120, 53, 255, 0.1); }
.auth-input::placeholder { color: var(--text-muted); opacity: 0.6; }

/* Icons inside Input */
.input-icon-wrapper { position: relative; }
.toggle-password {
    position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); cursor: pointer; padding: 5px; transition: color 0.2s;
}
.toggle-password:hover { color: var(--text-main); }
.input-icon-wrapper .auth-input { padding-right: 45px; }

/* DOB Grid */
.dob-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

/* Custom Checkbox */
.auth-checkbox-group { margin: 25px 0; }
.custom-checkbox {
    display: flex; align-items: center; position: relative; padding-left: 30px;
    cursor: pointer; font-size: 0.9rem; color: var(--text-muted); user-select: none; font-weight: normal;
}
.custom-checkbox a { color: #b580ff; text-decoration: none; margin-left: 4px; transition: 0.2s; }
.custom-checkbox a:hover { color: var(--accent-purple); text-decoration: underline; }
.custom-checkbox input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.checkmark {
    position: absolute; top: 0; left: 0; height: 20px; width: 20px;
    background-color: rgba(10, 6, 18, 0.6); border: 1px solid rgba(255,255,255,0.2); border-radius: 4px; transition: 0.2s;
}
[data-theme="light"] .checkmark { background: var(--bg-search); border-color: var(--border-color); }
.custom-checkbox input:checked ~ .checkmark { background-color: var(--accent-purple); border-color: var(--accent-purple); }
.checkmark:after {
    content: ""; position: absolute; display: none; left: 6px; top: 2px;
    width: 5px; height: 10px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.custom-checkbox input:checked ~ .checkmark:after { display: block; }

/* Submit Button & Links */
.btn-auth-submit { width: 100%; padding: 14px; font-size: 1.05rem; }
.auth-links { text-align: center; margin-top: 15px; font-size: 0.9rem; color: var(--text-muted); }
.auth-links a { color: #b580ff; text-decoration: none; font-weight: 600; transition: 0.2s; }
.auth-links a:hover { color: var(--accent-hover); }
.bottom-link { margin-top: 25px; }

/* Divider */
.auth-divider { text-align: center; margin: 25px 0; position: relative; }
.auth-divider::before {
    content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px;
    background: rgba(255,255,255,0.1); z-index: 1;
}
[data-theme="light"] .auth-divider::before { background: var(--border-color); }
.auth-divider span {
    position: relative; z-index: 2; padding: 0 15px; color: var(--text-muted); 
    font-size: 0.85rem; font-weight: 500; background: #171221; 
}
[data-theme="light"] .auth-divider span { background: var(--bg-card); }

/* Social Auth Grid */
.social-auth-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.btn-social {
    padding: 12px; border-radius: 8px; border: none; color: white;
    font-size: 1.3rem; cursor: pointer; transition: 0.2s transform, 0.2s opacity;
}
.btn-social:hover { transform: translateY(-2px); opacity: 0.9; }
.btn-social.twitch { background-color: #6441a5; }
.btn-social.youtube { background-color: #ff0000; }
.btn-social.discord { background-color: #5865f2; }

@media (max-width: 600px) {
    .auth-card { padding: 30px 20px; }
    .dob-grid { grid-template-columns: 1fr; }
}

/* =========================================
   14. AUTHENTICATION PAGES (login.php)
   ========================================= */

/* Use a unique body class for distinct background and centered layout */
.auth-page-body {
    background-color: var(--bg-main);
    /* Full screen dark purple marble texture adapting previous gradient */
    background-image: linear-gradient(135deg, rgba(30, 26, 47, 0.9) 0%, rgba(10, 10, 15, 0.95) 100%), 
                      url('https://images.unsplash.com/photo-1614729939124-032f0b56c9ce?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: space-between;
    align-items: center;
    padding: 50px 0;
    -webkit-font-smoothing: antialiased;
}

/* Minimalist auth header */
.auth-header {
    text-align: center;
    margin-bottom: -50px; /* Pull modern card closer to header */
}
.gameflix-logo-large {
    font-size: 3rem; font-weight: 800; letter-spacing: 1px; color: var(--text-main); margin-bottom: 20px;
}
.gameflix-logo-large span { color: var(--accent-purple); }
.auth-header h1 {
    font-size: 2.2rem; font-weight: 800; color: var(--text-main); margin-bottom: 10px;
}
.auth-header p {
    color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; max-width: 500px; margin: 0 auto;
}

/* Auth card modern translucent design */
.auth-card-container { margin: auto; } /* Center card on viewport */
.auth-card.modern-card-translucent {
    background-color: rgba(22, 16, 36, 0.6); 
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); padding: 35px 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2); width: 100%; max-width: 480px; 
}

/* Login page input styles */
.auth-form-group { margin-bottom: 20px; }
.auth-form-group label {
    display: flex; align-items: center; gap: 10px;
    color: var(--text-main); font-weight: 600; font-size: 0.9rem; margin-bottom: 8px;
}
.auth-form-group label i { color: var(--text-muted); width: 20px; text-align: center; } /* Add uniform icon width */
.auth-input {
    width: 100%; background-color: rgba(10, 6, 18, 0.6); border: 1px solid rgba(255,255,255,0.05); 
    color: var(--text-main); padding: 12px 15px; border-radius: 6px; font-family: var(--font-family); font-size: 0.95rem; outline: none; transition: 0.2s;
}
[data-theme="light"] .auth-input { background-color: #f0f0f5; border-color: #ccc; } /* Minimal light adaptation */
.auth-input:focus { border-color: var(--accent-purple); box-shadow: 0 0 0 3px rgba(120, 53, 255, 0.1); }
.auth-input::placeholder { color: var(--text-muted); opacity: 0.6; }

/* Icon positioning inside input */
.input-icon-wrapper { position: relative; }
.toggle-password {
    position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); cursor: pointer; padding: 5px; transition: 0.2s color;
}
.toggle-password:hover { color: var(--text-main); }
.input-icon-wrapper .auth-input { padding-right: 45px; } /* Prevent text overlap */

/* Controls row (Checkbox & Forgot Password) */
.controls-row {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px;
}
.remember-me-toggle { display: flex; align-items: center; gap: 10px; }
.remember-me-toggle p { color: var(--text-muted); font-weight: 500; font-size: 0.85rem; }
.small-switch .slider { transform: scale(0.85); margin-right: -5px;} /* Shrink standard switch style */
.small-switch input:checked + .slider { background-color: var(--accent-purple); }
.small-switch input:checked + .slider:before { background-color: #fff; }

.forgot-password-link {
    color: var(--text-muted); font-weight: 500; font-size: 0.85rem; text-decoration: none; transition: 0.2s;
}
.forgot-password-link:hover { color: var(--text-main); }

/* Submit Button adaptive design */
.btn-auth-submit { width: 100%; padding: 14px; font-size: 1rem; margin-top: 10px; }

/* Minimal footer adapted for auth pages */
.auth-footer {
    display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1400px;
    margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05);
}
.auth-footer-links a {
    color: var(--text-muted); text-decoration: none; margin-right: 20px; font-size: 0.8rem; transition: color 0.2s;
}
.auth-footer-links a:hover { color: var(--text-main); }
.auth-social-icons { display: flex; gap: 15px; }
.auth-social-icons i { color: var(--text-muted); font-size: 1rem; }
.auth-social-icons i:hover { color: var(--text-main); }

@media (max-width: 600px) {
    .gameflix-logo-large { font-size: 2rem; }
    .auth-header h1 { font-size: 1.5rem; }
    .auth-card.modern-card-translucent { padding: 25px; }
    .auth-footer { flex-direction: column; gap: 10px; }
    .auth-footer-right { margin-top: 10px; }
}

/* Light Mode Overrides for Auth */
[data-theme="light"] .auth-page-wrapper { background: var(--bg-main) !important; }
[data-theme="light"] .auth-page-wrapper::before { display: none !important; }

/* FIX: Forces the card to turn crisp white in light mode instead of staying dark */
[data-theme="light"] .auth-card { 
    background: var(--bg-card); 
    box-shadow: 0 10px 40px rgba(0,0,0,0.08); 
    border-color: rgba(0,0,0,0.1); 
}

/* Auth Buttons in Header */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 10px;
}

.btn-signin {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.2s;
}

.btn-signin:hover {
    color: var(--accent-purple);
}

.btn-signup {
    background: var(--accent-purple);
    color: white;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(120, 53, 255, 0.2);
}

.btn-signup:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(120, 53, 255, 0.3);
}

/* Ensure the navbar right side doesn't wrap weirdly */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}