/* ==========================================================================
   style.css - Design System for 3D Game Arcade
   Color Scheme: Emerald Green, Silver Chrome, Deep Charcoal/Black (Logo Match)
   ========================================================================== */

:root {
    --primary-neon: #00ff66;       /* Radiant green matching logo icon */
    --primary-neon-glow: rgba(0, 255, 102, 0.4);
    --primary-neon-dim: #00b347;
    --dark-charcoal: #0e0f19;      /* Background match */
    --card-bg: #151726;
    --chrome-silver: #b3b9c9;      /* Chrome silver text/accents */
    --white: #ffffff;
    --glass-bg: rgba(21, 23, 38, 0.7);
    --border-glass: rgba(179, 185, 201, 0.15);
    --font-stack: 'Outfit', 'Inter', sans-serif;
    --overscan-padding: 4vw;       /* TV safe-zone standard */
}

/* Global Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--dark-charcoal);
    color: var(--white);
    font-family: var(--font-stack);
    overflow-x: hidden;
    min-height: 100vh;
    letter-spacing: 0.5px;
}

/* Hide scrollbars but keep functionality */
::-webkit-scrollbar {
    display: none;
}

/* Glassmorphism styling */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
}

/* Neon Green Shadow Helper */
.neon-glow {
    text-shadow: 0 0 10px var(--primary-neon-glow);
}

.neon-border-glow {
    box-shadow: 0 0 15px var(--primary-neon-glow);
}

/* ==========================================================================
   Header Navbar
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--overscan-padding);
    z-index: 100;
    transition: background 0.3s ease;
}

.main-header.scrolled {
    background: var(--dark-charcoal);
    border-bottom: 1px solid rgba(0, 255, 102, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-neon), #006622);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--chrome-silver);
    box-shadow: 0 0 8px var(--primary-neon-glow);
}

.logo-triangle {
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 12px solid var(--white);
    margin-left: 3px;
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-text span {
    color: var(--primary-neon);
}

/* Navigation items */
.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-item {
    font-size: 1rem;
    font-weight: 600;
    color: var(--chrome-silver);
    cursor: pointer;
    position: relative;
    padding: 5px 0;
    transition: color 0.25s ease;
    text-decoration: none;
}

.nav-item:hover, .nav-item.active {
    color: var(--primary-neon);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-neon);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.nav-item:hover::after, .nav-item.active::after {
    transform: scaleX(1);
}

/* Navigation System Focus Styling */
.focusable:focus, .tv-focused {
    transform: scale(1.06);
    border-color: var(--primary-neon) !important;
    box-shadow: 0 0 20px var(--primary-neon-glow) !important;
    background-color: rgba(0, 255, 102, 0.08) !important;
}

/* ==========================================================================
   Desktop Landing Page Hub
   ========================================================================== */
/* Ambient Background Effects */
.ambient-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background-image: 
        linear-gradient(rgba(0, 255, 102, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 102, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.ambient-glow {
    position: fixed;
    width: 50vw;
    height: 50vh;
    z-index: 0;
    pointer-events: none;
    filter: blur(120px);
    opacity: 0.6;
}

/* Redesigned Homepage Landing Layout */
.hero-landing {
    padding-top: 120px;
    padding-bottom: 40px;
    padding-left: var(--overscan-padding);
    padding-right: var(--overscan-padding);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, rgba(0, 255, 102, 0.06) 0%, transparent 60%);
    min-height: 100vh;
    text-align: center;
    position: relative;
    z-index: 1;
}

.landing-headline {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--white);
    margin-bottom: 12px;
    z-index: 10;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.landing-headline span {
    color: var(--primary-neon);
    text-shadow: 0 0 15px var(--primary-neon-glow);
}

.landing-tagline {
    font-size: 1.15rem;
    color: var(--chrome-silver);
    max-width: 600px;
    margin-bottom: 35px;
    line-height: 1.6;
    z-index: 10;
}

/* Premium Enter Arcade CTA Button */
.cta-container {
    margin-bottom: 40px;
    z-index: 10;
}

.btn-enter-arcade {
    position: relative;
    background: linear-gradient(135deg, #151726, #0e0f19);
    border: 2px solid var(--primary-neon);
    color: var(--white);
    font-family: var(--font-stack);
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 15px 42px;
    border-radius: 40px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.2), inset 0 0 10px rgba(0, 255, 102, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-enter-arcade::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 102, 0.25), transparent);
    transition: all 0.6s ease;
}

.btn-enter-arcade:hover::before {
    left: 100%;
}

.btn-enter-arcade:hover {
    transform: scale(1.06);
    box-shadow: 0 0 35px var(--primary-neon-glow), inset 0 0 15px rgba(0, 255, 102, 0.2);
    border-color: var(--white);
    text-shadow: 0 0 8px var(--primary-neon-glow);
}

.btn-enter-arcade:active {
    transform: scale(0.96);
}

.btn-enter-icon {
    font-size: 1.3rem;
    filter: drop-shadow(0 0 5px var(--primary-neon));
    animation: pulse-icon 1.5s infinite alternate;
}

@keyframes pulse-icon {
    0% { transform: scale(1); }
    100% { transform: scale(1.2); }
}

/* Autoplay Landing Carousel Grid */
.landing-carousel-wrapper {
    width: 100%;
    max-width: 1000px;
    overflow: hidden;
    position: relative;
    margin-top: 10px;
    z-index: 10;
    padding: 10px 0;
    mask-image: linear-gradient(to right, transparent, white 15%, white 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, white 15%, white 85%, transparent);
}

.landing-carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 10px 0;
}

.landing-card {
    flex: 0 0 200px;
    height: 300px; /* 9:16 Aspect Ratio adjusted for better non-fullscreen height */
    border-radius: 16px;
    border: 1px solid var(--border-glass);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.landing-card:hover {
    transform: translateY(-8px) scale(1.04);
    border-color: var(--primary-neon);
    box-shadow: 0 12px 30px var(--primary-neon-glow);
}

.landing-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(14, 15, 25, 0.95) 0%, rgba(14, 15, 25, 0.3) 50%, transparent 100%);
    z-index: 2;
}

.landing-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 16px;
    z-index: 3;
    text-align: left;
    transition: transform 0.3s ease;
}

.landing-card:hover .landing-card-content {
    transform: translateY(-5px);
}

.landing-card-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 6px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.landing-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--chrome-silver);
}

.landing-card-rating {
    color: #ffcc00;
    font-weight: 700;
}

.landing-card-category {
    background: rgba(0, 255, 102, 0.1);
    border: 1px solid rgba(0, 255, 102, 0.2);
    color: var(--primary-neon);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.65rem;
}

/* ==========================================================================
   TV Dashboard Layout & Scroll Snapping
   ========================================================================== */
.tv-body {
    padding-bottom: 0;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100vh;
}

/* TV Hero Slider Section (Full Screen Viewport) */
.tv-hero-slider {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.slide-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: background-image 0.8s ease-in-out;
}

.slide-backdrop::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, var(--dark-charcoal) 5%, transparent 70%),
                linear-gradient(90deg, rgba(14, 15, 25, 0.9) 0%, rgba(14, 15, 25, 0.2) 60%, transparent 100%);
}

.slide-content {
    position: absolute;
    bottom: 12%;
    left: var(--overscan-padding);
    max-width: 750px;
    z-index: 10;
}

.slide-title {
    font-size: 4rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.slide-description {
    font-size: 1.3rem;
    color: var(--chrome-silver);
    line-height: 1.6;
    margin-bottom: 30px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

/* Badges showing control compatibility */
.badge-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.badge {
    background: rgba(14, 15, 25, 0.6);
    border: 1px solid var(--border-glass);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge span {
    color: var(--primary-neon);
}

/* ==========================================================================
   Horizontal Catalog Rows (Full Screen Viewport Panels)
   ========================================================================== */
.category-row-container {
    padding: 0 var(--overscan-padding);
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.row-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 30px;
    color: var(--white);
    letter-spacing: 1px;
    text-shadow: 0 0 15px rgba(0, 255, 102, 0.15);
}

.horizontal-row {
    display: flex;
    gap: 50px;
    overflow-x: auto;
    padding: 40px 0;
    scroll-behavior: smooth;
    align-items: center;
    /* Center the active card in the middle of the screen */
    scroll-padding: 0 calc(50vw - 125px); 
    padding-left: calc(50vw - 125px);
    padding-right: calc(50vw - 125px);
}

/* Game Card - Vertical Portrait (9:16 Aspect Ratio) with Cover-Flow Style */
.game-card {
    flex: 0 0 250px; /* Increased width */
    height: 444px;  /* Aspect 9:16 */
    border-radius: 18px;
    border: 2px solid var(--border-glass);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background-size: cover;
    background-position: center;
    transform: scale(0.85); /* Sibling cards are scaled down */
    opacity: 0.5;           /* Sibling cards are dimmed */
    filter: blur(2px);      /* Sibling cards are slightly blurred */
}

.game-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(14, 15, 25, 0.95) 0%, rgba(14, 15, 25, 0.2) 60%, transparent 100%);
}

.card-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 10;
    opacity: 0; /* Hide details on sibling cards */
    transition: opacity 0.3s ease;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-transform: uppercase;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/* Card focus animations (Scale up, restore full opacity, clear blur, and reveal card text details) */
.game-card:focus, .game-card.tv-focused {
    transform: scale(1.15) translateY(-10px);
    border-color: var(--primary-neon) !important;
    box-shadow: 0 15px 35px var(--primary-neon-glow) !important;
    opacity: 1;
    filter: blur(0);
    z-index: 20;
}

.game-card:focus .card-content, .game-card.tv-focused .card-content {
    opacity: 1;
}

/* ==========================================================================
   Details Drawer Panel Overlay
   ========================================================================== */
.tv-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45vh;
    z-index: 150;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    border-top: 2px solid rgba(0, 255, 102, 0.3);
}

.tv-drawer.active {
    transform: translateY(0);
}

.drawer-banner {
    width: 35%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.drawer-banner::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 80px;
    background: linear-gradient(90deg, transparent, var(--dark-charcoal));
}

.drawer-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: var(--dark-charcoal);
}

.drawer-close {
    position: absolute;
    top: 20px;
    right: var(--overscan-padding);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.drawer-close:hover {
    background: rgba(0, 255, 102, 0.2);
    color: var(--primary-neon);
}

/* ==========================================================================
   Admin Management Interface
   ========================================================================== */
.admin-container {
    padding-top: 110px;
    max-width: 900px;
    margin: 0 auto;
    padding-left: var(--overscan-padding);
    padding-right: var(--overscan-padding);
}

.admin-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--chrome-silver);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--white);
    font-family: var(--font-stack);
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.form-input:focus {
    border-color: var(--primary-neon);
    box-shadow: 0 0 10px var(--primary-neon-glow);
}

.checkbox-row {
    display: flex;
    gap: 30px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-input {
    accent-color: var(--primary-neon);
    width: 18px;
    height: 18px;
}

/* Modal form popup */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(14, 15, 25, 0.85);
    backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 650px;
    border-radius: 20px;
    padding: 40px;
    border: 2px solid var(--border-glass);
}

/* Drag-Drop Image Uploader Box */
.upload-dropzone {
    border: 2px dashed var(--border-glass);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    background: rgba(255, 255, 255, 0.02);
}

.upload-dropzone:hover, .upload-dropzone.dragover {
    border-color: var(--primary-neon);
    background: rgba(0, 255, 102, 0.02);
}

/* Table Listing */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th {
    text-align: left;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 2px solid var(--border-glass);
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--chrome-silver);
}

.admin-table td {
    padding: 14px;
    border-bottom: 1px solid var(--border-glass);
    font-size: 0.95rem;
}

.btn-small {
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.btn-danger {
    background: #ff3b30;
    color: var(--white);
}

.btn-danger:hover {
    background: #ff453a;
    box-shadow: 0 0 10px rgba(255, 59, 48, 0.4);
}

/* ==========================================================================
   Full Screen CRT Loading Emulator Frame
   ========================================================================== */
.crt-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 1000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.crt-loader-overlay.active {
    display: flex;
}

/* Retro green phosphor CRT monitor console font */
.crt-terminal {
    font-family: 'Courier New', monospace;
    color: var(--primary-neon);
    width: 80%;
    max-width: 700px;
    font-size: 1.2rem;
    line-height: 1.6;
    text-shadow: 0 0 6px var(--primary-neon-glow);
}

.crt-static-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 3px, 6px 100%;
    z-index: 1005;
    pointer-events: none;
}

/* WebGL Build File Status Indicators */
.file-status {
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.file-status.ready {
    border-color: var(--primary-neon) !important;
    color: var(--primary-neon) !important;
    background: rgba(0, 255, 102, 0.05) !important;
}

/* ==========================================================================
   Authentication UI Styles
   ========================================================================== */
.auth-panel {
    position: relative;
    max-width: 480px;
    padding: 35px 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 0 0 30px var(--primary-neon-glow);
    border: 1px solid var(--primary-neon);
}

.auth-title {
    text-align: center;
    color: var(--white);
    font-size: 1.6rem;
    margin-bottom: 25px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.auth-tabs {
    display: flex;
    border-bottom: 1.5px solid var(--border-glass);
    margin-bottom: 25px;
    gap: 10px;
}

.auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--chrome-silver);
    font-family: var(--font-stack);
    font-size: 1rem;
    font-weight: 700;
    padding: 12px 0;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s ease;
    border-bottom: 3px solid transparent;
}

.auth-tab:hover, .auth-tab:focus {
    color: var(--primary-neon);
}

.auth-tab.active {
    color: var(--primary-neon);
    border-bottom-color: var(--primary-neon);
    text-shadow: 0 0 10px var(--primary-neon-glow);
}

.auth-submit {
    width: 100%;
    margin-top: 15px;
    padding: 14px 0;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: var(--chrome-silver);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-glass);
}

.auth-divider span {
    padding: 0 15px;
}

.auth-oauth-row {
    display: flex;
    gap: 15px;
}

.btn-oauth {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: var(--white);
    padding: 12px;
    font-family: var(--font-stack);
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-oauth:hover, .btn-oauth:focus {
    transform: translateY(-2px);
    background: rgba(0, 255, 102, 0.05);
    border-color: var(--primary-neon);
    box-shadow: 0 0 15px var(--primary-neon-glow);
}

.google-btn svg {
    width: 18px;
    height: 18px;
}

.guest-btn {
    border-color: rgba(0, 255, 102, 0.3);
}

.auth-error-msg {
    margin-top: 20px;
    padding: 10px 15px;
    background: rgba(255, 59, 48, 0.15);
    border: 1px solid #ff3b30;
    border-radius: 8px;
    color: #ff453a;
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: center;
}

/* Header User Profile Badge */
.user-profile-menu {
    position: relative;
    display: inline-block;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px !important;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass) !important;
    color: var(--white);
    cursor: pointer;
    transition: all 0.25s ease;
}

.profile-btn:hover, .profile-btn:focus {
    border-color: var(--primary-neon) !important;
    background: rgba(0, 255, 102, 0.05) !important;
    box-shadow: 0 0 15px var(--primary-neon-glow) !important;
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid var(--primary-neon);
    object-fit: cover;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 700;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 230px;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: none;
    flex-direction: column;
    z-index: 105;
}

.profile-dropdown.active {
    display: flex;
}

.dropdown-header {
    margin-bottom: 12px;
}

.dropdown-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 2px;
}

.dropdown-email {
    font-size: 0.75rem;
    color: var(--chrome-silver);
    word-break: break-all;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-glass);
    margin-bottom: 12px;
}

.dropdown-item {
    background: transparent;
    border: 1px solid transparent;
    color: #ff3b30;
    padding: 10px;
    border-radius: 8px;
    text-align: left;
    font-family: var(--font-stack);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-item:hover, .dropdown-item:focus {
    background: rgba(255, 59, 48, 0.1);
    border-color: #ff3b30;
    box-shadow: 0 0 10px rgba(255, 59, 48, 0.2);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--chrome-silver);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    z-index: 10;
}

.modal-close:hover, .modal-close:focus {
    color: var(--primary-neon);
    transform: scale(1.15);
}

