/* ==========================================================================
   GLOBAL GOLF LEAGUE (GGL) - COMPLETE BLUEPRINT SYSTEM
   PGL Premier Navy & Gold Inside Clean White Dual Showcase
   ========================================================================== */

:root, [data-theme="dark"] {
    /* Brand Exact Palette (Dark Navy Theme - Default) */
    --brand-navy-deep: #080b18;
    --brand-navy-main: #0f132a; /* Exact User Navy */
    --brand-navy-surface: #151b3d;
    --brand-navy-card: #1c2450;
    --brand-navy-hover: #262e63;
    
    /* Radiant Gold Palette */
    --brand-gold: #d5af4c; /* Exact User Gold */
    --brand-gold-bright: #ebd082;
    --brand-gold-dark: #aa8931;
    --brand-gold-glow: rgba(213, 175, 76, 0.2);
    --brand-gold-border: rgba(213, 175, 76, 0.38);
    --brand-gold-gradient: linear-gradient(135deg, #ebd082 0%, #d5af4c 50%, #8c7121 100%);
    
    /* Pure & Off-White Text Hierarchy */
    --text-primary: #ffffff; /* Exact User White */
    --text-secondary: #cbd5e1;
    --text-muted: #8e9bae;
    --text-inverse: #0f132a;
    
    /* Exact Blueprint Status Color Indicators */
    --status-improved: #10b981;  /* Green = Improved */
    --status-dropped: #ef4444;   /* Red = Increased / Dropped */
    --status-unchanged: #d5af4c; /* Gold = Unchanged */
    
    /* Typography Stacks */
    --font-sans: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Outfit', 'Plus Jakarta Sans', -apple-system, sans-serif;
    
    /* Shadows & Radii */
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.3);
    --shadow-gold-glow: 0 0 20px rgba(213, 175, 76, 0.22);
    --border-color: rgba(213, 175, 76, 0.3);
    --border-light: rgba(255, 255, 255, 0.08);
    
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    
    --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    
    --showcase-bg: #f8fafc;
    --mobile-frame-border: #1e293b;
    --modal-overlay-bg: rgba(0, 0, 0, 0.75);
}

[data-theme="light"] {
    /* Brand Light Theme (Light Mode) */
    --brand-navy-deep: #0f132a;
    --brand-navy-main: #ffffff; /* Pure White background */
    --brand-navy-surface: #f1f5f9; /* Slate surface */
    --brand-navy-card: #ffffff; /* Clean white card */
    --brand-navy-hover: #e2e8f0;
    
    /* Gold Accents stay vibrant gold #d5af4c */
    --brand-gold: #d5af4c; 
    --brand-gold-bright: #e5be62;
    --brand-gold-dark: #9e7f25;
    --brand-gold-glow: rgba(213, 175, 76, 0.16);
    --brand-gold-border: rgba(213, 175, 76, 0.45);
    --brand-gold-gradient: linear-gradient(135deg, #f3d489 0%, #d5af4c 50%, #a27e22 100%);
    
    /* Text Hierarchy for Light Mode */
    --text-primary: #0f132a; /* Navy primary text on light background */
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-inverse: #ffffff;
    
    --status-improved: #059669;
    --status-dropped: #dc2626;
    --status-unchanged: #b58d2a;
    
    --shadow-premium: 0 10px 30px rgba(15, 19, 42, 0.08);
    --shadow-gold-glow: 0 0 15px rgba(213, 175, 76, 0.25);
    --border-color: rgba(213, 175, 76, 0.4);
    --border-light: rgba(15, 19, 42, 0.1);
    
    --showcase-bg: #0f132a;
    --mobile-frame-border: #cbd5e1;
    --modal-overlay-bg: rgba(15, 19, 42, 0.6);
}

/* Base resets & App-Native Hidden Scrollbars */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE & Edge */
}

*::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari, Opera */
    width: 0 !important;
    height: 0 !important;
}

html, body {
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    background-color: var(--showcase-bg);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Outer Wrapper for Dual Showcase: 2.5vh top/bottom, 2.5vw left/right */
.showcase-outer-wrapper {
    width: 100vw;
    height: 100vh;
    padding: 2.5vh 2.5vw;
    background-color: var(--showcase-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

/* Dual View Container: 95% screen width and 95% screen height */
.dual-view-container {
    display: flex;
    gap: 24px;
    width: 95vw;
    height: 95vh;
    margin: 0 auto;
    align-items: stretch;
    justify-content: center;
}

/* Desktop Application Panel (Left) */
.desktop-view-panel {
    flex: 1;
    min-width: 0;
    height: 100%;
    background: var(--brand-navy-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: var(--text-primary);
}

/* Mobile Application Panel / iPhone Preview (Right) */
.mobile-view-panel {
    width: 380px;
    max-width: 32%;
    height: 100%;
    flex-shrink: 0;
    background: var(--brand-navy-main);
    border: 8px solid var(--mobile-frame-border);
    border-radius: 40px;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: var(--text-primary);
    position: relative;
    top: 0;
}

@media (max-width: 1100px) {
    .showcase-outer-wrapper {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        padding: 2.5vh 2.5vw;
    }
    .dual-view-container {
        width: 95vw;
        height: auto;
        flex-direction: column;
        align-items: center;
    }
    .desktop-view-panel {
        width: 100%;
        height: 80vh;
    }
    .mobile-view-panel {
        width: 100%;
        max-width: 400px;
        height: 80vh;
    }
}

@media (max-width: 768px) {
    /* Hide the desktop panel completely on mobile screens */
    .desktop-view-panel {
        display: none !important;
    }
    
    /* Make the mobile view occupy 100% of the screen natively, first-person style */
    .mobile-view-panel {
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        flex-shrink: 0;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    
    .dual-view-container {
        width: 100vw !important;
        height: 100vh !important;
        margin: 0 !important;
        gap: 0 !important;
        padding: 0 !important;
    }
    
    .showcase-outer-wrapper {
        padding: 0 !important;
        height: 100vh !important;
        overflow: hidden !important;
    }
}

/* ==========================================================================
   TOP BAR HEADER & BLUEPRINT SECTION 9 TOP RIGHT PLAYER WIDGET
   ========================================================================== */
.ggl-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: var(--brand-navy-surface);
    border-bottom: 1px solid var(--border-light);
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle-btn {
    background: var(--brand-navy-card);
    border: 1px solid var(--border-color);
    color: var(--brand-gold);
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-left: 8px;
}

.theme-toggle-btn:hover {
    background: var(--brand-gold);
    color: var(--brand-navy-deep);
    border-color: var(--brand-gold);
}

.menu-drawer-trigger {
    background: var(--brand-navy-card);
    border: 1px solid var(--border-color);
    color: var(--brand-gold);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.menu-drawer-trigger:hover {
    background: var(--brand-gold);
    color: var(--brand-navy-deep);
}

.page-context-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

/* Blueprint Section 9: Top Right Player Widget */
.top-right-player-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--brand-navy-card);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 24px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.top-right-player-widget:hover {
    border-color: var(--brand-gold);
}

.player-badges-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    height: 22px;
    min-width: 90px;
    overflow: hidden;
}

.header-metric-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    position: absolute;
    right: 0;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    white-space: nowrap;
}

.header-metric-badge.active-metric {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.metric-label {
    color: var(--text-muted);
    font-size: 0.65rem;
    text-transform: uppercase;
}

/* Color Trend Badges (Green = Improved, Red = Increased/Dropped, Gold = Unchanged) */
.trend-improved {
    color: var(--status-improved);
    font-weight: 700;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
}

.trend-dropped {
    color: var(--status-dropped);
    font-weight: 700;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
}

.trend-unchanged {
    color: var(--status-unchanged);
    font-weight: 700;
    background: rgba(213, 175, 76, 0.12);
    border: 1px solid rgba(213, 175, 76, 0.3);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
}

/* ==========================================================================
   SCROLLING TICKER BANNER FOR GGL NEWS & UPDATES
   ========================================================================== */
.news-ticker-banner {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, var(--brand-navy-card) 0%, var(--brand-navy-surface) 100%);
    border-bottom: 1px solid var(--border-color);
    height: 38px;
    overflow: hidden;
    position: relative;
    z-index: 10;
    width: 100%;
}

.ticker-badge {
    background: var(--brand-gold-gradient);
    color: var(--brand-navy-deep);
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0 14px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    letter-spacing: 0.5px;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.2);
    z-index: 2;
    flex-shrink: 0;
}

.ticker-track-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-track {
    display: flex;
    align-items: center;
    gap: 32px;
    white-space: nowrap;
    will-change: transform;
    animation: ticker-scroll 38s linear infinite;
    padding-left: 10px;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.ticker-item {
    font-size: 0.78rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.ticker-item:hover {
    color: var(--brand-gold-bright);
}

.ticker-tag {
    background: var(--brand-gold-glow);
    border: 1px solid var(--brand-gold-border);
    color: var(--brand-gold);
    font-size: 0.62rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.player-avatar-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand-gold-gradient);
    color: var(--brand-navy-deep);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--brand-gold);
}

/* ==========================================================================
   VIEWPORT & SCREEN CARDS
   ========================================================================== */
.ggl-screen-viewport {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    position: relative;
    background: var(--brand-navy-main);
}

.app-screen {
    display: flex;
    flex-direction: column;
    gap: 18px;
    animation: fadeIn 0.25s ease-out;
}

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

.ggl-card {
    background: var(--brand-navy-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    transition: var(--transition-smooth);
}

.ggl-card:hover {
    border-color: var(--brand-gold);
}

.card-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.gold-badge {
    background: var(--brand-gold-glow);
    border: 1px solid var(--brand-gold-border);
    color: var(--brand-gold-bright);
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.gold-btn {
    background: var(--brand-gold-gradient);
    color: var(--brand-navy-deep);
    border: none;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-transform: uppercase;
}

.gold-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold-glow);
}

.outline-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.outline-btn:hover {
    border-color: var(--brand-gold);
    color: var(--brand-gold-bright);
}

/* ==========================================================================
   WELCOME & AUTH SCREENS (SECTION 1, 2, 3)
   ========================================================================== */
/* Center welcome and auth screens within the viewport */
.app-screen.auth-screen-layout {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 12px 0;
}

/* Strictly hide header top bar, news ticker, and bottom nav when shell is in auth-mode */
.auth-mode .ggl-top-bar,
.auth-mode .news-ticker-banner,
.auth-mode .ggl-bottom-nav {
    display: none !important;
}

.welcome-container {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    background: var(--brand-navy-surface);
    border: 1px solid var(--border-color);
    padding: 30px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
}

/* Step indicators & progress bar for multi-step */
.step-indicator {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--brand-gold-bright);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.step-progress-bar {
    width: 100%;
    height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    margin-bottom: 14px;
    overflow: hidden;
}

.step-progress-fill {
    height: 100%;
    background: var(--brand-gold-gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.welcome-logo-wrap {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
}

.welcome-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.welcome-tagline {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: -6px;
    line-height: 1.4;
}

.oauth-buttons-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.oauth-btn {
    width: 100%;
    background: var(--brand-navy-main);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.oauth-btn:hover {
    border-color: var(--brand-gold);
    background: var(--brand-navy-hover);
}

.form-group-ggl {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
}

.form-label-ggl {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.form-input-ggl {
    width: 100%;
    background: var(--brand-navy-main);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition-smooth);
}

.form-input-ggl:focus {
    border-color: var(--brand-gold);
}

/* ==========================================================================
   DASHBOARD GRID & NEWS FEED (SECTION 4 & 5)
   ========================================================================== */
.dashboard-grid-2col {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 18px;
}

@media (max-width: 850px) {
    .dashboard-grid-2col {
        grid-template-columns: 1fr;
    }
}

.news-feed-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-card-item {
    background: var(--brand-navy-surface);
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--brand-gold);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.news-card-tag {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--brand-gold);
    text-transform: uppercase;
}

.news-card-headline {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.news-card-body {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

/* ==========================================================================
   LEADERBOARDS & TABLES (SECTION 6 & 7)
   ========================================================================== */
.leaderboard-tabs-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 8px;
    overflow-x: auto;
}

.tab-btn-ggl {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.tab-btn-ggl.active {
    background: var(--brand-gold-glow);
    color: var(--brand-gold-bright);
    border: 1px solid var(--brand-gold-border);
    font-weight: 700;
}

.ggl-table {
    width: 100%;
    border-collapse: collapse;
}

.ggl-table th {
    background: var(--brand-navy-surface);
    color: var(--text-muted);
    font-size: 0.65rem;
    text-transform: uppercase;
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.ggl-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.8rem;
    color: var(--text-primary);
}

.ggl-table tr.active-player-row td {
    background: rgba(212, 175, 55, 0.1);
    font-weight: 700;
}

/* ==========================================================================
   LINK UP MATCHING ENGINE (SECTION 11 - 15)
   ========================================================================== */
.linkup-header-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.linkup-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    background: var(--brand-navy-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.linkup-tab.active {
    background: var(--brand-gold-gradient);
    color: var(--brand-navy-deep);
    border-color: var(--brand-gold);
}

.requests-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--brand-gold) var(--brand-navy-deep);
}

.requests-grid::-webkit-scrollbar {
    height: 6px;
}

.requests-grid::-webkit-scrollbar-track {
    background: var(--brand-navy-deep);
    border-radius: var(--radius-sm);
}

.requests-grid::-webkit-scrollbar-thumb {
    background-color: var(--brand-gold);
    border-radius: var(--radius-sm);
}

.request-card {
    flex: 0 0 310px;
    height: 260px;
    background: var(--brand-navy-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.requests-list-mobile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.request-card-mobile {
    background: var(--brand-navy-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-left: 3px solid var(--brand-gold);
}

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

.rating-stars {
    color: var(--brand-gold);
    font-size: 0.75rem;
}

/* ==========================================================================
   SIDE DRAWER MENU (SECTION 17)
   ========================================================================== */
.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
}

.drawer-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: var(--brand-navy-main);
    border-right: 1px solid var(--border-color);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.4);
}

.drawer-menu-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.drawer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.drawer-item:hover {
    background: var(--brand-gold-glow);
    color: var(--brand-gold-bright);
}

/* MODALS */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 4000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-card {
    background: var(--brand-navy-main);
    border: 1px solid var(--brand-gold);
    border-radius: var(--radius-md);
    padding: 24px;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-premium);
}

/* BOTTOM NAVIGATION BAR (SECTION 10) */
.ggl-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 14px;
    background: var(--brand-navy-surface);
    border-top: 1px solid var(--border-light);
}

.bottom-nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.bottom-nav-btn.active {
    color: var(--brand-gold-bright);
}

.bottom-nav-btn.active svg {
    stroke: var(--brand-gold-bright);
}

/* Toast Notifications */
.ggl-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--brand-navy-card);
    border: 1px solid var(--brand-gold);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-premium);
    z-index: 5000;
    display: none;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ==========================================================================
   ESPORTS WORLD CUP (EWC) INSPIRED HOME SCREEN UI SYSTEM
   ========================================================================== */
.ewc-hub-nav {
    display: flex;
    gap: 8px;
    background: var(--brand-navy-card);
    border: 1px solid var(--border-color);
    padding: 6px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow-x: auto;
    width: 100%;
}

.ewc-hub-tab {
    flex: 1;
    min-width: max-content;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ewc-hub-tab:hover {
    color: var(--text-primary);
    background: var(--brand-navy-surface);
}

.ewc-hub-tab.active {
    background: var(--brand-gold-gradient);
    color: var(--brand-navy-deep);
    box-shadow: 0 4px 12px rgba(213, 175, 76, 0.25);
}

.ewc-container-card {
    background: var(--brand-navy-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
    transition: var(--transition-smooth);
    position: relative;
}

.ewc-container-card:hover {
    border-color: var(--brand-gold);
    box-shadow: var(--shadow-gold-glow);
}

.ewc-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 12px;
}

.ewc-header-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ewc-live-pulse {
    width: 8px;
    height: 8px;
    background-color: var(--status-improved);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--status-improved);
    animation: pulse-glow 1.8s infinite;
}

@keyframes pulse-glow {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.ewc-subbadge {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ewc-jackpot-wrap {
    text-align: right;
}

.ewc-jackpot-label {
    display: block;
    font-size: 0.62rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.ewc-jackpot-amount {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--brand-gold-bright);
    letter-spacing: -0.5px;
}

.ewc-venue-banner {
    background: linear-gradient(135deg, rgba(15, 19, 42, 0.8) 0%, rgba(28, 36, 80, 0.9) 100%);
    border: 1px solid var(--brand-gold-border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ewc-venue-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.ewc-venue-details {
    font-size: 0.8rem;
    color: var(--brand-gold);
    margin-top: 2px;
}

.ewc-gold-pill {
    background: var(--brand-gold-glow);
    border: 1px solid var(--brand-gold-border);
    color: var(--brand-gold-bright);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
}

.ewc-subtab-bar {
    display: flex;
    gap: 6px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 8px;
    overflow-x: auto;
}

.ewc-subtab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.ewc-subtab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.ewc-subtab-btn.active {
    color: var(--brand-gold-bright);
    background: var(--brand-navy-surface);
    border: 1px solid var(--brand-gold-border);
}

.ewc-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

@media (min-width: 640px) {
    .ewc-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.ewc-stat-box {
    background: var(--brand-navy-surface);
    border: 1px solid var(--border-light);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-label {
    font-size: 0.62rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.ewc-description-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-bottom: 12px;
}

.ewc-winners-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ewc-winner-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--brand-navy-surface);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.winner-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand-gold);
    color: var(--brand-navy-deep);
    font-weight: 800;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.winner-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.winner-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
}

.winner-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.winner-prize {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand-gold-bright);
}

.ewc-rules-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    background: var(--brand-navy-surface);
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.ewc-dates-badge {
    background: var(--brand-navy-surface);
    border: 1px solid var(--brand-gold-border);
    color: var(--brand-gold);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
}

.ewc-tournament-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(15, 19, 42, 0.9) 0%, rgba(28, 36, 80, 0.9) 100%);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: var(--radius-sm);
}

.tournament-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

.tournament-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.ewc-countdown-card {
    background: var(--brand-navy-main);
    border: 1px solid var(--brand-gold-border);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    text-align: right;
}

.countdown-title {
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    display: block;
}

.countdown-timer {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--brand-gold-bright);
    letter-spacing: 0.5px;
}

.ewc-schedule-timeline {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.schedule-day-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--brand-navy-surface);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.day-badge {
    background: var(--brand-gold-gradient);
    color: var(--brand-navy-deep);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.68rem;
    padding: 4px 8px;
    border-radius: 4px;
}

.day-details {
    display: flex;
    flex-direction: column;
}

.day-date {
    font-size: 0.72rem;
    color: var(--brand-gold);
    font-weight: 700;
}

.day-title {
    font-size: 0.8rem;
    color: var(--text-primary);
}

.ewc-division-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.division-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--brand-navy-surface);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.div-tag {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--brand-gold);
}

.div-range {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.div-pts {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--status-improved);
}

/* ==========================================================================
   EWC SPORTS WORLD CUP DESIGN REVAMP & GGL #GGL26 MOMENTS STYLES
   ========================================================================== */

/* Diagonal Zebra Striped Image Placeholders */
.ewc-zebra-placeholder {
    width: 100%;
    height: 140px;
    border-radius: var(--radius-sm);
    background: repeating-linear-gradient(
        135deg,
        rgba(213, 175, 76, 0.14),
        rgba(213, 175, 76, 0.14) 14px,
        rgba(15, 19, 42, 0.95) 14px,
        rgba(15, 19, 42, 0.95) 28px
    );
    border: 1px solid var(--brand-gold-border);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.ewc-zebra-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 11, 24, 0.1) 0%, rgba(8, 11, 24, 0.85) 100%);
    pointer-events: none;
}

.ewc-zebra-placeholder:hover {
    border-color: var(--brand-gold-bright);
    box-shadow: var(--shadow-gold-glow);
}

.zebra-overlay-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding: 12px;
}

.zebra-icon-tag {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--brand-gold-bright);
    background: rgba(8, 11, 24, 0.85);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    text-transform: uppercase;
}

/* EWC Moments #ggl26 Section */
.ggl-moments-section {
    margin-top: 16px;
    background: var(--brand-navy-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
}

.ggl-moments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.moments-hashtag-badge {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 900;
    color: var(--brand-navy-deep);
    background: var(--brand-gold-gradient);
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.moments-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.moment-card-item {
    background: var(--brand-navy-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

.moment-card-item:hover {
    transform: translateY(-3px);
    border-color: var(--brand-gold);
    box-shadow: var(--shadow-gold-glow);
}

.moment-thumbnail-box {
    height: 120px;
    background: repeating-linear-gradient(
        45deg,
        rgba(213, 175, 76, 0.18),
        rgba(213, 175, 76, 0.18) 12px,
        rgba(21, 27, 61, 0.95) 12px,
        rgba(21, 27, 61, 0.95) 24px
    );
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.moment-play-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-gold-gradient);
    color: var(--brand-navy-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transition: var(--transition-smooth);
    z-index: 3;
}

.moment-card-item:hover .moment-play-button {
    transform: scale(1.15);
}

.moment-duration-pill {
    position: absolute;
    bottom: 6px;
    right: 8px;
    background: rgba(8, 11, 24, 0.88);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    z-index: 3;
}

.moment-card-info {
    padding: 10px;
}

.moment-card-title {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.moment-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* EWC Leaderboards Spotlight Podium Cards */
.ewc-podium-spotlight {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .ewc-podium-spotlight {
        grid-template-columns: 1fr;
    }
}

.podium-card {
    background: var(--brand-navy-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: var(--transition-smooth);
}

.podium-card.rank-1 {
    border-color: var(--brand-gold);
    background: linear-gradient(180deg, rgba(213, 175, 76, 0.15) 0%, rgba(15, 19, 42, 0.95) 100%);
    box-shadow: var(--shadow-gold-glow);
    transform: scale(1.03);
}

.podium-card.rank-2 {
    border-color: rgba(203, 213, 225, 0.4);
    background: linear-gradient(180deg, rgba(203, 213, 225, 0.08) 0%, rgba(15, 19, 42, 0.95) 100%);
}

.podium-card.rank-3 {
    border-color: rgba(205, 127, 50, 0.4);
    background: linear-gradient(180deg, rgba(205, 127, 50, 0.08) 0%, rgba(15, 19, 42, 0.95) 100%);
}

.podium-rank-badge {
    position: absolute;
    top: -10px;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.rank-1 .podium-rank-badge {
    background: var(--brand-gold-gradient);
    color: var(--brand-navy-deep);
}

.rank-2 .podium-rank-badge {
    background: #e2e8f0;
    color: #0f172a;
}

.rank-3 .podium-rank-badge {
    background: #cd7f32;
    color: #ffffff;
}

.podium-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-top: 8px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    border: 2px solid var(--border-color);
}

.rank-1 .podium-avatar {
    background: var(--brand-gold);
    color: var(--brand-navy-deep);
    border-color: var(--brand-gold-bright);
}

.rank-2 .podium-avatar {
    background: #cbd5e1;
    color: #0f172a;
}

.rank-3 .podium-avatar {
    background: #cd7f32;
    color: #ffffff;
}

.podium-name {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-primary);
}

.podium-club {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.podium-points {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 900;
    color: var(--brand-gold-bright);
    margin-top: 6px;
}

/* EWC Ranking Search & Filter Bar */
.ewc-leaderboard-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.ewc-search-input-wrap {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.ewc-search-input {
    width: 100%;
    background: var(--brand-navy-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 12px 8px 32px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    outline: none;
    transition: var(--transition-smooth);
}

.ewc-search-input:focus {
    border-color: var(--brand-gold-bright);
    box-shadow: 0 0 10px rgba(213, 175, 76, 0.2);
}

.ewc-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* EWC Ranking Badges inside Table */
.rank-badge-cell {
    font-family: var(--font-heading);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: 6px;
    padding: 0 6px;
    font-size: 0.78rem;
}

.rank-badge-cell.gold {
    background: var(--brand-gold-gradient);
    color: var(--brand-navy-deep);
}

.rank-badge-cell.silver {
    background: #cbd5e1;
    color: #0f172a;
}

.rank-badge-cell.bronze {
    background: #cd7f32;
    color: #ffffff;
}

.rank-badge-cell.normal {
    background: var(--brand-navy-surface);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
}

/* EWC Tournament Registration Entry Modal Styling */
.entry-modal-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.entry-step-box {
    background: var(--brand-navy-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.tee-slot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

.tee-slot-option {
    background: var(--brand-navy-card);
    border: 1px solid var(--border-light);
    padding: 10px;
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tee-slot-option.selected, .tee-slot-option:hover {
    border-color: var(--brand-gold);
    background: rgba(213, 175, 76, 0.12);
}

.tee-slot-time {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--brand-gold-bright);
}

.tee-slot-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ==========================================================================
   ESPORTS CHARTS (ESCHARTS.COM) LEADERBOARD DESIGN SYSTEM
   ========================================================================== */
.escharts-summary-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 14px;
    background: var(--brand-navy-deep);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
}

@media (max-width: 640px) {
    .escharts-summary-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

.escharts-stat-chip {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.escharts-stat-chip .chip-label {
    font-size: 0.62rem;
    color: #8a90a8;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.6px;
}

.escharts-stat-chip .chip-val {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 800;
    color: #ffffff;
}

.escharts-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    background: var(--brand-navy-surface);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.escharts-select {
    background: var(--brand-navy-card);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.escharts-select:focus {
    border-color: var(--brand-gold-bright);
}

/* ESCharts Matrix Data Grid Table */
.escharts-table-wrap {
    overflow-x: auto;
    width: 100%;
}

.escharts-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 4px;
}

.escharts-table th {
    text-transform: uppercase;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #8a90a8;
    padding: 10px 12px;
    border-bottom: 2px solid rgba(213, 175, 76, 0.25);
    text-align: left;
}

.escharts-table th.num-col {
    text-align: right;
}

.escharts-table td {
    padding: 10px 12px;
    background: rgba(15, 19, 42, 0.65);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition-smooth);
    vertical-align: middle;
}

.escharts-table td:first-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    border-left: 3px solid transparent;
}

.escharts-table td:last-child {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.escharts-table tr:hover td {
    background: var(--brand-navy-card);
}

.escharts-table tr:hover td:first-child {
    border-left-color: var(--brand-gold-bright);
}

.escharts-table tr.active-player-row td {
    background: rgba(213, 175, 76, 0.12);
}

.escharts-table tr.active-player-row td:first-child {
    border-left-color: var(--brand-gold);
}

/* ESCharts Relative Points Visualizer Bar */
.escharts-points-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.escharts-points-val {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 900;
    color: var(--brand-gold-bright);
}

.escharts-bar-bg {
    width: 90px;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.escharts-bar-fill {
    height: 100%;
    background: var(--brand-gold-gradient);
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* ==========================================================================
   EWC SCREENSHOT-MATCHING DESIGN COMPONENTS (EWC MOMENTS, NEWS & AUTH)
   ========================================================================== */

/* EWC Moments Asymmetric Collage (Screenshot 5) */
.ewc-moments-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--brand-navy-surface);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 20px;
}

.ewc-moments-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ewc-moments-nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.ewc-moments-nav-btn:hover {
    background: var(--brand-gold-gradient);
    color: var(--brand-navy-deep);
}

.ewc-moments-collage-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 14px;
    min-height: 340px;
}

@media (max-width: 900px) {
    .ewc-moments-collage-grid {
        grid-template-columns: 1fr;
    }
}

.ewc-moment-hero-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--brand-navy-card);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    min-height: 300px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.ewc-moment-hero-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border-color: var(--brand-gold-bright);
}

.ewc-moments-mid-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ewc-moment-mid-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--brand-navy-card);
    border: 1px solid var(--border-color);
    flex: 1;
    min-height: 140px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.ewc-moment-mid-card:hover {
    border-color: var(--brand-gold);
}

.ewc-moment-tall-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--brand-navy-card);
    border: 1px solid var(--border-color);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 300px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.ewc-moment-tall-card:hover {
    border-color: var(--brand-gold-bright);
}

.ewc-moments-carousel-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.ewc-moments-carousel-fill {
    width: 35%;
    height: 100%;
    background: var(--brand-gold-gradient);
    border-radius: 2px;
}

/* EWC Latest News Cards Grid (Screenshot 6) */
.ewc-news-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 16px;
}

.ewc-see-all-link {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.ewc-see-all-link:hover {
    color: var(--brand-gold-bright);
}

.ewc-news-4col-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 1024px) {
    .ewc-news-4col-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .ewc-news-4col-grid {
        grid-template-columns: 1fr;
    }
}

.ewc-news-card {
    background: var(--brand-navy-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.ewc-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--brand-gold);
}

.ewc-news-card-thumb {
    height: 150px;
    width: 100%;
    position: relative;
}

.ewc-news-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.ewc-news-year-pill {
    align-self: flex-start;
    background: var(--brand-gold);
    color: var(--brand-navy-deep);
    font-size: 0.68rem;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--font-heading);
}

.ewc-news-card-title {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
    text-transform: uppercase;
}

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

/* EWC Auth Modal Styling (Screenshots 3 & 4) */
.ewc-auth-card {
    background: var(--brand-navy-surface);
    color: var(--text-primary);
    border-radius: 24px;
    padding: 30px 24px;
    max-width: 440px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium);
}

.ewc-auth-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    text-align: center;
    color: var(--text-primary);
}

.ewc-auth-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 6px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.ewc-sso-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.ewc-sso-btn {
    background: var(--brand-navy-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.ewc-sso-btn:hover {
    transform: scale(1.05);
    border-color: var(--brand-gold);
}

.ewc-auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 16px 0;
}

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

.ewc-auth-divider::before {
    margin-right: 12px;
}

.ewc-auth-divider::after {
    margin-left: 12px;
}

.ewc-input-light {
    width: 100%;
    background: var(--brand-navy-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.ewc-input-light:focus {
    border-color: var(--brand-gold);
    background: var(--brand-navy-card);
}

.ewc-auth-primary-btn {
    width: 100%;
    background: var(--brand-gold);
    color: var(--brand-navy-surface);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.88rem;
    padding: 14px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 16px;
    transition: var(--transition-smooth);
}

.ewc-auth-primary-btn.active, .ewc-auth-primary-btn:hover {
    background: var(--brand-gold-bright);
    color: var(--brand-navy-surface);
    transform: translateY(-1px);
}

.ewc-auth-sec-btn {
    width: 100%;
    background: var(--brand-navy-card);
    color: var(--brand-gold);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.82rem;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
    transition: var(--transition-smooth);
}

.ewc-auth-sec-btn:hover {
    border-color: var(--brand-gold);
    background: var(--brand-navy-surface);
}

.ewc-auth-footer-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 16px;
    line-height: 1.4;
}

.ewc-auth-footer-text a {
    color: var(--brand-gold);
    text-decoration: underline;
}


/* ==========================================================================
   EWC & ESCHARTS ULTRA-PREMIUM SEAMLESS DESKTOP OVERRIDES
   ========================================================================== */
#desktop-screen-home .ewc-container-card,
#desktop-screen-home .ggl-moments-section {
    background: transparent !important;
    border: none !important;
    border-radius: 0px !important;
    box-shadow: none !important;
    padding: 35px 0 !important;
    margin-bottom: 0px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

#desktop-screen-home #d-home-container-moments {
    border-bottom: none !important;
}

/* ESCHARTS Bento Style Grid Cards Override */
#desktop-screen-home .ewc-stat-box {
    background: rgba(15, 19, 42, 0.6) !important;
    border: 1px solid rgba(213, 175, 76, 0.15) !important;
    border-radius: 12px !important;
    padding: 18px 16px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 4px 15px rgba(0, 0, 0, 0.18) !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

#desktop-screen-home .ewc-stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(213, 175, 76, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#desktop-screen-home .ewc-stat-box:hover {
    border-color: rgba(213, 175, 76, 0.4) !important;
    box-shadow: 0 8px 25px rgba(213, 175, 76, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-2px) !important;
}

#desktop-screen-home .ewc-stat-box:hover::before {
    opacity: 1;
}

#desktop-screen-home .ewc-stat-box .stat-label {
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    color: #8a90a8 !important;
    letter-spacing: 0.8px !important;
    margin-bottom: 4px !important;
    text-transform: uppercase !important;
}

#desktop-screen-home .ewc-stat-box .stat-value {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: -0.2px !important;
}

/* Ensure clean headers inside borderless segments */
#desktop-screen-home .ewc-card-header,
#desktop-screen-home .ggl-moments-header {
    border-bottom: none !important;
    padding-bottom: 14px !important;
}

/* Adjust tournament hero display for borderless flow */
#desktop-screen-home .ewc-tournament-hero {
    background: rgba(15, 19, 42, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 14px !important;
    padding: 24px !important;
}


/* ==========================================================================
   MOBILE VIEWPORT & PREVIEW FRAME LAYOUT OVERRIDES (No horizontal scrolling)
   ========================================================================== */
#mobile-app-shell,
.mobile-view-panel {
    overflow-x: hidden !important;
}

#mobile-app-shell * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Force grid stacking in mobile preview regardless of browser window width */
#mobile-app-shell .ewc-podium-spotlight {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
}

#mobile-app-shell .escharts-summary-bar {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
}

#mobile-app-shell .ewc-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
}

#mobile-app-shell .ewc-news-4col-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
}

#mobile-app-shell .ewc-moments-collage-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
}

#mobile-app-shell .ewc-moments-mid-col {
    gap: 14px !important;
}

#mobile-app-shell .player-badges-group {
    gap: 4px !important;
}

#mobile-app-shell .header-metric-badge {
    padding: 3px 6px !important;
    font-size: 0.65rem !important;
}

/* Fix mobile modal margins */
#mobile-app-shell .modal-content {
    width: 90% !important;
    padding: 16px !important;
}

/* Ensure mobile images and thumbnails scale nicely */
#mobile-app-shell img {
    height: auto !important;
}

/* Match news/updates ticker physical scroll speed on mobile and desktop */
#mobile-app-shell .ticker-track {
    animation: ticker-scroll 38s linear infinite !important;
}

/* ==========================================================================
   GGL MEMBERSHIP PAGE & CREDIT CARD PASS MOCKUP STYLES
   ========================================================================== */

/* Credit Card Pass Container */
.ggl-pass-card-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: center;
    margin-bottom: 24px;
}

@media (max-width: 820px) {
    .ggl-pass-card-section {
        grid-template-columns: 1fr;
    }
}

/* 3D Metal Membership Card */
.ggl-credit-card-3d-wrap {
    perspective: 1000px;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.ggl-credit-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1.586 / 1;
    border-radius: 18px;
    background: linear-gradient(135deg, #090c1f 0%, #151b3d 45%, #1c2450 80%, #0d112b 100%);
    border: 1.5px solid rgba(213, 175, 76, 0.45);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 25px rgba(213, 175, 76, 0.2);
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.ggl-credit-card:hover {
    transform: translateY(-4px) rotateX(4deg) rotateY(-4deg);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.6), 0 0 35px rgba(213, 175, 76, 0.3);
}

.ggl-credit-card.flipped {
    transform: rotateY(180deg);
}

.ggl-card-face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backface-visibility: hidden;
    border-radius: 18px;
}

.ggl-card-front {
    background: radial-gradient(circle at 85% 15%, rgba(213, 175, 76, 0.15) 0%, transparent 60%),
                radial-gradient(circle at 15% 85%, rgba(15, 19, 42, 0.9) 0%, transparent 50%),
                linear-gradient(135deg, #0a0d21 0%, #121736 50%, #1a224a 100%);
}

.ggl-card-back {
    background: linear-gradient(135deg, #0d112b 0%, #151b3d 100%);
    transform: rotateY(180deg);
    padding: 16px 0;
}

/* Card Metallic Sheen Effect */
.ggl-credit-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 45%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 55%
    );
    pointer-events: none;
    transform: rotate(25deg);
    transition: transform 0.8s ease;
}

.ggl-credit-card:hover::before {
    transform: rotate(25deg) translate(20%, 20%);
}

/* Micro Grid Pattern Overlay */
.ggl-card-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image: radial-gradient(rgba(213, 175, 76, 0.8) 1px, transparent 1px);
    background-size: 14px 14px;
    pointer-events: none;
}

/* Card Header elements */
.ggl-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.ggl-card-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ggl-card-logo-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.ggl-card-title-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.15em;
    color: var(--brand-gold-bright);
    text-transform: uppercase;
}

.ggl-card-tier-tag {
    background: linear-gradient(135deg, #ebd082 0%, #d5af4c 100%);
    color: #0b0e20;
    font-weight: 800;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(213, 175, 76, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ggl-card-tier-tag .live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

/* Card Middle EMV Chip & Wireless Symbol */
.ggl-card-chip-row {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 2;
    margin: 6px 0;
}

.ggl-emv-chip {
    width: 42px;
    height: 30px;
    border-radius: 5px;
    background: linear-gradient(135deg, #ebd082 0%, #c49c39 50%, #edd388 100%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ggl-emv-chip::after {
    content: '';
    position: absolute;
    inset: 4px 5px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 2px;
}

.ggl-contactless-icon {
    color: var(--brand-gold);
    opacity: 0.85;
}

.ggl-hologram-seal {
    margin-left: auto;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Card Footer Data */
.ggl-card-footer {
    position: relative;
    z-index: 2;
}

.ggl-card-member-id {
    font-family: monospace, var(--font-sans);
    font-size: 1.05rem;
    letter-spacing: 0.2em;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 6px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.ggl-card-holder-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.ggl-card-holder-name {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-gold-bright);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ggl-card-subinfo {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    gap: 10px;
}

/* Card Back Styles */
.ggl-mag-stripe {
    width: 100%;
    height: 38px;
    background: #000000;
    margin-top: 8px;
}

.ggl-card-back-body {
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(100% - 38px);
}

.ggl-sig-strip {
    background: #ffffff;
    color: #0f132a;
    padding: 4px 10px;
    font-size: 0.78rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px;
    font-weight: 700;
}

.ggl-card-barcode-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 4px;
}

/* Quick Card Actions Toolbar */
.ggl-card-actions-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--brand-navy-surface);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: var(--radius-md);
}

.ggl-action-btn-row {
    display: flex;
    gap: 10px;
}

@media (max-width: 480px) {
    .ggl-action-btn-row {
        flex-direction: column;
    }
}

/* Membership Tier Comparison Grid */
.ggl-tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 16px;
}

@media (max-width: 900px) {
    .ggl-tier-grid {
        grid-template-columns: 1fr;
    }
}

.ggl-tier-card {
    background: var(--brand-navy-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-smooth);
}

.ggl-tier-card:hover {
    border-color: var(--brand-gold-border);
    transform: translateY(-2px);
}

.ggl-tier-card.active-tier {
    border: 2px solid var(--brand-gold);
    background: linear-gradient(180deg, var(--brand-navy-card) 0%, var(--brand-navy-surface) 100%);
    box-shadow: var(--shadow-gold-glow);
}

.ggl-tier-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--brand-gold-gradient);
    color: #0f132a;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ggl-tier-title {
    font-family: var(--font-heading);
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.ggl-tier-price {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--brand-gold-bright);
    margin-bottom: 14px;
}

.ggl-tier-price span {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-muted);
}

.ggl-tier-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.ggl-tier-feature-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ggl-tier-feature-list li .check-icon {
    color: var(--status-improved);
    font-weight: 700;
}

.ggl-tier-feature-list li.disabled {
    opacity: 0.45;
    text-decoration: line-through;
}

/* Exclusive Partner Perks Bento Grid */
.ggl-perks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 16px;
}

@media (max-width: 990px) {
    .ggl-perks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .ggl-perks-grid {
        grid-template-columns: 1fr;
    }
}

.ggl-perk-card {
    background: var(--brand-navy-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.ggl-perk-card:hover {
    border-color: var(--brand-gold-border);
    transform: translateY(-2px);
}

.ggl-perk-brand-badge {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--brand-gold-bright);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.ggl-perk-offer {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.ggl-perk-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.35;
}

/* Invoices History Data Table */
.ggl-invoices-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 0.82rem;
}

.ggl-invoices-table th {
    text-align: left;
    padding: 10px 12px;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border-light);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
}

.ggl-invoices-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.ggl-invoices-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* FAQ Accordion Styling */
.ggl-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.ggl-faq-item {
    background: var(--brand-navy-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.ggl-faq-item:hover {
    border-color: var(--brand-gold-border);
}

.ggl-faq-question {
    width: 100%;
    padding: 14px 18px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.86rem;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.ggl-faq-answer {
    padding: 0 18px 14px 18px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: none;
}

.ggl-faq-item.open .ggl-faq-answer {
    display: block;
}

.ggl-faq-item.open .faq-toggle-icon {
    transform: rotate(180deg);
}
/* HNA MANUAL VERIFICATION & SUBMISSION STYLES */
.hna-submission-card {
    background: rgba(10, 14, 26, 0.95);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    margin: 8px 0;
    text-align: left;
}

.hna-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.hna-card-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand-gold-bright);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hna-upload-dropzone {
    border: 1.5px dashed var(--brand-gold-border);
    background: rgba(213, 175, 76, 0.04);
    border-radius: 8px;
    padding: 14px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 10px;
    position: relative;
}

.hna-upload-dropzone:hover {
    background: rgba(213, 175, 76, 0.08);
    border-color: var(--brand-gold);
}

.hna-upload-preview-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--brand-navy-surface);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
}

.hna-upload-thumb {
    width: 54px;
    height: 54px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--brand-gold-border);
    cursor: pointer;
}

.hna-upload-meta {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.hna-upload-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hna-upload-status {
    font-size: 0.68rem;
    color: var(--brand-gold-bright);
    margin-top: 2px;
}

.hna-info-notice {
    background: rgba(30, 41, 59, 0.6);
    border-left: 3px solid var(--brand-gold);
    border-radius: 0 6px 6px 0;
    padding: 8px 10px;
    margin-bottom: 12px;
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.4;
    text-align: left;
}

/* Status Badges */
.badge-hna-verified {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #10B981 !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-hna-pending {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #F59E0B !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-hna-rejected {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #EF4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ADMIN CONSOLE MODAL & PANELS */
.admin-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.admin-modal-panel {
    background: var(--brand-navy-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

.admin-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    background: rgba(10, 14, 26, 0.8);
}

.admin-stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 12px 20px;
    background: rgba(5, 8, 17, 0.5);
    border-bottom: 1px solid var(--border-light);
}

.admin-stat-card {
    background: var(--brand-navy-main);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 8px 12px;
    text-align: center;
}

.admin-stat-num {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.admin-stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    gap: 12px;
    border-bottom: 1px solid var(--border-light);
}

.admin-tabs {
    display: flex;
    gap: 6px;
}

.admin-tab-btn {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-tab-btn.active {
    background: var(--brand-gold);
    color: #000000;
    border-color: var(--brand-gold);
}

.admin-member-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-member-card {
    background: var(--brand-navy-main);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.2s ease;
}

.admin-member-card:hover {
    border-color: var(--brand-gold-border);
}

.admin-member-main-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.admin-member-info {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.admin-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
    background: rgba(10, 14, 26, 0.6);
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    font-size: 0.72rem;
}

.admin-grid-item-label {
    color: var(--text-muted);
    font-size: 0.65rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}

.admin-grid-item-val {
    font-weight: 700;
    color: var(--text-primary);
}

.admin-screenshot-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 8px 10px;
}

.admin-screenshot-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--brand-gold-border);
    cursor: pointer;
    transition: transform 0.15s;
}

.admin-screenshot-thumb:hover {
    transform: scale(1.05);
}

.admin-actions-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
}

/* Lightbox Modal */
.image-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 20000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.image-lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    border: 1px solid var(--brand-gold-border);
    object-fit: contain;
}

@media (max-width: 640px) {
    .admin-stats-strip {
        grid-template-columns: repeat(2, 1fr);
    }
    .admin-member-main-row {
        flex-direction: column;
    }
    .admin-actions-row {
        flex-wrap: wrap;
        justify-content: stretch;
    }
    .admin-actions-row button {
        flex: 1;
    }
}
/* Progressive HNA In-App Verification Banner & Feature Lock */
.hna-verify-banner {
    background: linear-gradient(135deg, rgba(200, 162, 88, 0.12), rgba(10, 14, 26, 0.85));
    border: 1px solid var(--brand-gold-border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: var(--transition-smooth);
}

.hna-verify-banner:hover {
    border-color: var(--brand-gold);
    box-shadow: 0 4px 20px rgba(200, 162, 88, 0.1);
}

.feature-locked-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    color: var(--brand-gold-bright);
    background: rgba(200, 162, 88, 0.15);
    border: 1px solid var(--brand-gold-border);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

/* ==========================================================================
   SUBSCRIPTION, TRIAL & PAYMENT WORKFLOWS
   ========================================================================== */
.plan-selector-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 10px 0;
}

@media (max-width: 480px) {
    .plan-selector-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.plan-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.plan-card:hover {
    border-color: rgba(200, 162, 88, 0.5);
    background: rgba(200, 162, 88, 0.04);
}

.plan-card.selected {
    border-color: var(--brand-gold);
    background: rgba(200, 162, 88, 0.08);
    box-shadow: 0 0 15px rgba(200, 162, 88, 0.15);
}

.plan-card-tag {
    position: absolute;
    top: -8px;
    right: 10px;
    background: var(--brand-gold);
    color: #0b111e;
    font-size: 0.58rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.plan-title {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.plan-price {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--brand-gold-bright);
    font-family: var(--font-heading);
}

.plan-period {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 400;
}

.plan-trial-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    margin-top: 4px;
}

.stripe-card-box {
    background: rgba(10, 14, 26, 0.7);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stripe-brand-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.native-iap-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.apple-iap-btn {
    background: #000000;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.apple-iap-btn:hover {
    background: #1a1a1a;
    border-color: #ffffff;
}

.google-iap-btn {
    background: #ffffff;
    color: #1f1f1f;
}

.google-iap-btn:hover {
    background: #f0f0f0;
}

.trial-disclosure-box {
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1.45;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 4px;
}

.trial-highlight-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 6px;
    font-size: 0.78rem;
    margin-bottom: 8px;
}

/* ==========================================================================
   WHATSAPP-STYLE MESSAGING ENGINE & CHAT INTERFACE
   ========================================================================== */

.whatsapp-layout-desktop {
    display: flex;
    height: 640px;
    background: var(--brand-navy-deep);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.whatsapp-sidebar {
    width: 320px;
    border-right: 1px solid var(--border-light);
    background: var(--brand-navy-card);
    display: flex;
    flex-direction: column;
    height: 100%;
    flex-shrink: 0;
}

.whatsapp-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--brand-navy-surface);
    border-bottom: 1px solid var(--border-light);
}

.whatsapp-user-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.whatsapp-header-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.whatsapp-icon-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.whatsapp-icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--brand-gold-bright);
}

.whatsapp-search-wrap {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-light);
}

.whatsapp-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-navy-deep);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 6px 12px;
}

.whatsapp-search-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.78rem;
    width: 100%;
}

.whatsapp-search-input::placeholder {
    color: var(--text-muted);
}

.whatsapp-filter-pills {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-light);
}

.wa-filter-pill {
    background: var(--brand-navy-deep);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.wa-filter-pill.active {
    background: rgba(200, 169, 81, 0.15);
    border-color: var(--brand-gold);
    color: var(--brand-gold-bright);
    font-weight: 600;
}

.whatsapp-conv-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.whatsapp-conv-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.whatsapp-conv-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.whatsapp-conv-item.active {
    background: rgba(200, 169, 81, 0.1);
    border-left: 3px solid var(--brand-gold);
}

.whatsapp-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1b4332, #2d6a4f);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    position: relative;
}

.whatsapp-avatar.is-group {
    background: linear-gradient(135deg, #1f2937, #374151);
    color: var(--brand-gold-bright);
}

.whatsapp-online-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #00a884;
    border-radius: 50%;
    border: 2px solid var(--brand-navy-card);
}

.whatsapp-conv-meta {
    flex: 1;
    min-width: 0;
}

.whatsapp-conv-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}

.whatsapp-conv-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.whatsapp-conv-time {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.whatsapp-conv-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.whatsapp-conv-last-msg {
    font-size: 0.72rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.whatsapp-unread-badge {
    background: #00a884;
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
}

/* Chat Panel */
.whatsapp-chat-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #0b141a;
    position: relative;
}

.whatsapp-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 30px;
    text-align: center;
}

.whatsapp-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--brand-navy-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 1px solid var(--border-light);
}

.whatsapp-empty-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.whatsapp-empty-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    max-width: 360px;
    line-height: 1.5;
}

.whatsapp-active-view {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.whatsapp-active-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--brand-navy-surface);
    border-bottom: 1px solid var(--border-light);
    z-index: 2;
}

.whatsapp-chat-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.whatsapp-chat-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.whatsapp-chat-status {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.whatsapp-pill-action {
    background: rgba(200, 169, 81, 0.12);
    border: 1px solid var(--brand-gold);
    color: var(--brand-gold-bright);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.whatsapp-pill-action:hover {
    background: var(--brand-gold);
    color: #0d1b2a;
}

/* Verified Badge */
.ggl-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    vertical-align: middle;
}

.whatsapp-messages-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: radial-gradient(circle at 50% 30%, #0d1527 0%, #060a14 100%);
}

.whatsapp-date-divider {
    align-self: center;
    background: rgba(18, 27, 46, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--text-muted);
    font-size: 0.65rem;
    padding: 4px 12px;
    border-radius: 10px;
    margin: 6px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.whatsapp-bubble {
    max-width: 78%;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.84rem;
    line-height: 1.45;
    position: relative;
    word-break: break-word;
    display: flex;
    flex-direction: column;
}

.whatsapp-bubble-in {
    align-self: flex-start;
    background: #131b2e;
    color: #e5e9f0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top-left-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.whatsapp-bubble-out {
    align-self: flex-end;
    background: linear-gradient(135deg, #1c2744 0%, #25345a 100%);
    color: #ffffff;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-top-right-radius: 2px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.whatsapp-sender-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--brand-gold-bright);
    margin-bottom: 3px;
    display: flex;
    align-items: center;
}

.whatsapp-bubble-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 4px;
    align-self: flex-end;
}

.whatsapp-check-icon {
    color: var(--brand-gold);
    font-size: 0.7rem;
}

.whatsapp-match-card {
    background: rgba(10, 15, 29, 0.85);
    border: 1px solid var(--brand-gold);
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 6px;
}

.whatsapp-input-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--brand-navy-surface);
    border-top: 1px solid var(--border-light);
    flex-shrink: 0;
}

.whatsapp-input-action-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-input-action-btn:hover {
    color: var(--brand-gold-bright);
}

.whatsapp-text-input {
    flex: 1;
    background: var(--brand-navy-deep);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 10px 14px;
    color: #ffffff;
    font-size: 0.84rem;
    outline: none;
    min-height: 40px;
}

.whatsapp-text-input:focus {
    border-color: var(--brand-gold);
}

.whatsapp-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand-gold-gradient);
    border: none;
    color: #0d1b2a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.whatsapp-send-btn:hover {
    transform: scale(1.05);
}

/* Screen Messages Full-Height Flush Positioning */
#mobile-screen-messages,
#desktop-screen-messages {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    z-index: 10;
}

/* Mobile WhatsApp Layout */
.whatsapp-layout-mobile {
    height: 100%;
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background: #060a14;
    border-radius: 0;
    overflow: hidden;
    border: none;
}

.whatsapp-mobile-chats-view,
.whatsapp-mobile-convo-view {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.whatsapp-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--brand-navy-surface);
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
}

.whatsapp-mobile-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--text-primary);
    margin: 0;
}

.whatsapp-mobile-convo-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--brand-navy-surface);
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
}

.whatsapp-back-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-contact-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--brand-navy-deep);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.whatsapp-contact-item:hover {
    border-color: var(--brand-gold);
}

/* Smooth Scrolling & Hardware-Accelerated Viewports */
.whatsapp-conv-list,
.whatsapp-messages-body,
#new-chat-golfers-list {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    contain: layout;
}

.whatsapp-bubble {
    animation: waBubbleFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: transform, opacity;
}

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

.whatsapp-conv-item {
    transition: background 0.15s ease, border-color 0.15s ease;
    contain: layout style;
}


