/* ==========================================================================
   FG FOOTBALL - SMART MOBILE PLATFORM STYLES
   Modern Glassmorphism & High-End Sports Trading Theme
   ========================================================================== */

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

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

:root {
    /* Brand & Accent Colors */
    --primary: #2563eb;
    --primary-light: #38bdf8;
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --primary-blue: #38bdf8;
    --dark-blue: #1d4ed8;
    --light-blue: #60a5fa;

    /* Smart Neon Accents */
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-rose: #f43f5e;
    --accent-amber: #f59e0b;
    --accent-purple: #8b5cf6;

    /* Dark Theme Surface Palettes */
    --bg-main: #070b14;
    --bg-secondary: #0d1527;
    --bg-card: rgba(17, 26, 46, 0.88);
    --bg-card-solid: #111a2e;
    --bg-card-hover: rgba(26, 38, 66, 0.95);
    --bg-glass: rgba(15, 23, 42, 0.75);

    /* Borders & Outlines */
    --border-glass: rgba(255, 255, 255, 0.09);
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-glow: rgba(56, 189, 248, 0.35);

    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-dark: #f8fafc;

    /* Status Colors */
    --white: #ffffff;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;

    /* Shadows & Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 36px -6px rgba(0, 0, 0, 0.7);
    --glow-cyan: 0 0 20px rgba(6, 182, 212, 0.25);
    --glow-emerald: 0 0 20px rgba(16, 185, 129, 0.25);
    --glow-rose: 0 0 20px rgba(244, 63, 94, 0.25);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-main);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.18) 0%, transparent 60%),
        radial-gradient(circle at 100% 30%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 0% 70%, rgba(139, 92, 246, 0.06) 0%, transparent 45%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    padding-bottom: 95px;
    overflow-x: hidden;
    line-height: 1.5;
}

.page-section { display: none; }
.page-section.active { display: block; animation: fadeIn 0.3s ease; }

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

/* ==========================================================================
   APP HEADER & SMART USER BAR
   ========================================================================== */
.app-header {
    background: rgba(11, 17, 32, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    padding: 14px 18px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

.header-brand {
    display: flex;
    align-items: center;
}

.header-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffffff 30%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.header-action-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.header-action-btn:active {
    transform: scale(0.92);
    background: rgba(56, 189, 248, 0.2);
}

.header-dots {
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0 4px;
    transition: color 0.2s;
}

.header-dots:hover {
    color: var(--primary-light);
}

/* Sub-Header / User Capsule */
.sub-header {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
}

.user-status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 24px;
    border: 1px solid var(--border-glass);
    max-width: 70%;
}

.status-pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-emerald);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px var(--accent-emerald); }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.home-icon {
    font-size: 0.95rem;
    color: var(--primary-light);
}

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

.login-btn {
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    color: white;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    padding: 7px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
    transition: all 0.2s ease;
}

.login-btn:active {
    transform: scale(0.95);
}

/* ==========================================================================
   SMART ANNOUNCEMENT TICKER (Single Row, No Wrapping)
   ========================================================================== */
.announcement-bar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 14px !important;
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    gap: 10px !important;
    min-height: 42px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.speaker-pill {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 5px !important;
    background: rgba(33, 150, 243, 0.12) !important;
    border: 1px solid rgba(33, 150, 243, 0.25) !important;
    padding: 4px 8px !important;
    border-radius: 12px !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

.speaker-icon {
    font-size: 0.95rem !important;
    line-height: 1 !important;
    display: inline-block !important;
}

.speaker-live-badge {
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    color: #1976d2 !important;
    letter-spacing: 0.5px !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}

.announcement-marquee {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    display: flex !important;
    align-items: center !important;
}

.announcement-text {
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    color: #475569 !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
}

.language-select {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 10px !important;
    background: rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

.flag-icon {
    width: 18px !important;
    height: 13px !important;
    background: linear-gradient(180deg, #002868 33%, #fff 33%, #fff 66%, #bf0a30 66%) !important;
    border-radius: 2px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
    flex-shrink: 0 !important;
}

/* ==========================================================================
   BANNER & REWARDS SECTION
   ========================================================================== */
.banner-section {
    padding: 14px 16px;
    position: relative;
}

.banner-content {
    background: linear-gradient(135deg, #131d35 0%, #1e2d4e 50%, #0d1527 100%);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 18px;
    padding: 18px 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.banner-content::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.banner-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 10px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.banner-title {
    font-family: 'Outfit', sans-serif;
    color: #ffd700;
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 14px;
    text-align: center;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

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

.reward-item {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 7px 12px;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.reward-item .reward-icon { font-size: 0.9rem; }
.reward-item .level { color: var(--primary-light); font-weight: 700; }
.reward-item .arrow { color: var(--text-muted); font-size: 0.75rem; }
.reward-item .amount {
    color: #fbbf24;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}

.banner-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
}

.banner-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
}

.banner-dot.active {
    width: 20px;
    border-radius: 10px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

/* ==========================================================================
   SMART SEGMENTED TABS & LIVE TICKER
   ========================================================================== */
.tabs-container {
    padding: 0 16px;
    margin-top: 6px;
}

.tabs-section {
    display: flex;
    background: rgba(17, 26, 46, 0.8);
    border: 1px solid var(--border-glass);
    padding: 4px;
    border-radius: 28px;
    gap: 4px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.3);
}

.tab-btn {
    flex: 1;
    padding: 10px 16px;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tab-btn .tab-icon { font-size: 0.95rem; }

.tab-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35);
}

.tab-btn.active::after { display: none; }

/* Online Users Radar Bar */
.online-users-bar {
    padding: 10px 16px 4px;
    display: flex;
    justify-content: flex-end;
}

.online-users, .online-users-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 5px 12px;
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
}

.pulse-radar {
    width: 8px;
    height: 8px;
    background: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-emerald);
    animation: statusPulse 1.8s infinite;
}

.online-count {
    color: #34d399;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   SMART MATCH / EVENT CARDS
   ========================================================================== */
.events-section {
    padding: 8px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 18px;
    padding: 16px;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.event-card:hover, .event-card:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Theme Accents for Match Cards */
.event-card.pink {
    border-color: rgba(244, 63, 94, 0.25);
    background: linear-gradient(145deg, rgba(244, 63, 94, 0.08) 0%, rgba(17, 26, 46, 0.95) 100%);
}
.event-card.pink::before { background: linear-gradient(90deg, #f43f5e, #ec4899); }
.event-card.pink .quantity-value { color: #f43f5e; text-shadow: 0 0 12px rgba(244, 63, 94, 0.3); }

.event-card.green {
    border-color: rgba(16, 185, 129, 0.25);
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.08) 0%, rgba(17, 26, 46, 0.95) 100%);
}
.event-card.green::before { background: linear-gradient(90deg, #10b981, #34d399); }
.event-card.green .quantity-value { color: #10b981; text-shadow: 0 0 12px rgba(16, 185, 129, 0.3); }

.event-card.blue {
    border-color: rgba(6, 182, 212, 0.25);
    background: linear-gradient(145deg, rgba(6, 182, 212, 0.08) 0%, rgba(17, 26, 46, 0.95) 100%);
}
.event-card.blue::before { background: linear-gradient(90deg, #06b6d4, #3b82f6); }
.event-card.blue .quantity-value { color: #38bdf8; text-shadow: 0 0 12px rgba(56, 189, 248, 0.3); }

/* Card Top Row */
.card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
}

.league-tag {
    color: var(--text-secondary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.timer-tag {
    color: var(--primary-light);
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
}

/* Card Main Body Content */
.card-main-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.event-quantity {
    text-align: center;
    min-width: 85px;
    padding: 10px 8px;
    background: rgba(0, 0, 0, 0.28);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.quantity-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.quantity-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.1;
}

.volume-bar-bg {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}

.volume-bar-fill {
    height: 100%;
    width: 75%;
    background: currentColor;
    border-radius: 2px;
}

.event-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.event-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.event-teams {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.prediction-box, .event-prediction {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
}

.rate-badge {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 800;
}

.event-timer {
    font-size: 0.75rem;
    color: var(--primary-light);
    font-weight: 600;
}

/* Card Bottom Action Row */
.card-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid var(--border-subtle);
}

.status-live-chip {
    font-size: 0.72rem;
    color: #34d399;
    font-weight: 600;
}

.golden-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 900;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

.trade-cta-btn {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* ==========================================================================
   SMART FLOATING BOTTOM NAVIGATION BAR
   ========================================================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(11, 17, 32, 0.94);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 10px 12px;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.6);
    z-index: 9999;
    border-top: 1px solid var(--border-glass);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    min-width: 58px;
    transition: all 0.2s ease;
    position: relative;
}

.nav-icon {
    font-size: 1.35rem;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.nav-label {
    font-size: 0.72rem;
}

.nav-item.active {
    color: var(--primary-light);
}

.nav-item.active .nav-icon {
    transform: translateY(-2px);
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6));
}

.nav-item.active .nav-indicator {
    position: absolute;
    bottom: -4px;
    width: 16px;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    border-radius: 3px;
    box-shadow: 0 0 8px #06b6d4;
}

/* Center Floating Action Button (FAB) */
.nav-item.center {
    position: relative;
    margin-top: -24px;
}

.center-fab-ring {
    padding: 4px;
    border-radius: 50%;
    background: rgba(11, 17, 32, 0.95);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.35);
}

.center-logo {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.6);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.center-logo:active {
    transform: scale(0.9);
}

.fab-logo-text {
    background: linear-gradient(135deg, #ffffff 40%, #cffafe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   MY PAGE & VIP LUXURY CARD
   ========================================================================== */
.mypage-header {
    background: rgba(11, 17, 32, 0.95);
    backdrop-filter: blur(20px);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
}

.back-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.mypage-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
}

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

.notification-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vip-privilege-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
    color: #000;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 800;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

/* VIP Member Card Section */
.vip-card-section {
    padding: 16px;
    background: linear-gradient(180deg, #e3f2fd 0%, #f5f7fa 100%);
}

.vip-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
    border-radius: 20px;
    padding: 24px 20px;
    position: relative;
    box-shadow: 0 8px 32px rgba(33, 150, 243, 0.25);
    overflow: hidden;
}

.vip-badge {
    background: linear-gradient(135deg, #1976D2, #0d47a1);
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 8px;
}

.user-id {
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.balance-section {
    margin-bottom: 16px;
}

.balance-label {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.balance-value {
    font-size: 2.6rem;
    font-weight: 800;
    color: #2196F3;
    line-height: 1.1;
}

.card-stats {
    display: flex !important;
    justify-content: space-between !important;
    gap: 20px !important;
    width: 100% !important;
}

.card-stat {
    flex: 1 !important;
    min-width: 0 !important;
}

.stat-label {
    color: #64748b;
    font-size: 0.8rem;
    margin-bottom: 2px;
    white-space: nowrap;
}

.stat-value {
    color: #1e293b;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
}

.card-logo {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.75rem;
    color: #1976D2;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* Action Buttons (Deposit & Withdrawal) */
.action-buttons {
    display: flex;
    gap: 12px;
    padding: 0 16px 16px;
}

.action-btn {
    flex: 1;
    padding: 14px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    border: none;
    transition: all 0.2s ease;
    text-align: center;
}

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

.action-btn.deposit {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

.action-btn.withdrawal {
    background: white;
    color: #2196F3;
    border: 2px solid #2196F3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.action-btn.withdrawal:disabled, .action-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ==========================================================================
   SMART COLORFUL MENU GRID & LOGOS
   ========================================================================== */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 16px 14px;
}

.menu-item {
    background: var(--bg-card);
    border-radius: 18px;
    padding: 16px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0.9;
}

.menu-item:hover, .menu-item:active {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.smart-menu-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease;
}

.menu-item:hover .smart-menu-icon, .menu-item:active .smart-menu-icon {
    transform: scale(1.1) rotate(2deg);
}

.menu-label {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* 1. INFO (Electric Cyan / Teal) */
.menu-item.item-info::before { background: linear-gradient(90deg, #06b6d4, #0891b2); }
.menu-item.item-info .smart-menu-icon {
    background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.4);
}
.menu-item.item-info:hover { border-color: rgba(6, 182, 212, 0.4); background: rgba(6, 182, 212, 0.08); }

/* 2. RECORDS (Indigo / Royal Violet) */
.menu-item.item-records::before { background: linear-gradient(90deg, #8b5cf6, #6366f1); }
.menu-item.item-records .smart-menu-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}
.menu-item.item-records:hover { border-color: rgba(139, 92, 246, 0.4); background: rgba(139, 92, 246, 0.08); }

/* 3. ACCOUNT MANAGEMENT (Royal Blue / Azure) */
.menu-item.item-account::before { background: linear-gradient(90deg, #3b82f6, #1d4ed8); }
.menu-item.item-account .smart-menu-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}
.menu-item.item-account:hover { border-color: rgba(59, 130, 246, 0.4); background: rgba(59, 130, 246, 0.08); }

/* 4. LIVE CHAT (Neon Emerald / Mint) */
.menu-item.item-chat::before { background: linear-gradient(90deg, #10b981, #059669); }
.menu-item.item-chat .smart-menu-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}
.menu-item.item-chat:hover { border-color: rgba(16, 185, 129, 0.4); background: rgba(16, 185, 129, 0.08); }

/* 5. SETTING (Sunset Coral Orange) */
.menu-item.item-setting::before { background: linear-gradient(90deg, #f97316, #ea580c); }
.menu-item.item-setting .smart-menu-icon {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4);
}
.menu-item.item-setting:hover { border-color: rgba(249, 115, 22, 0.4); background: rgba(249, 115, 22, 0.08); }

/* 6. APP DOWNLOAD (Cyber Rose / Pink) */
.menu-item.item-download::before { background: linear-gradient(90deg, #ec4899, #d946ef); }
.menu-item.item-download .smart-menu-icon {
    background: linear-gradient(135deg, #ec4899 0%, #d946ef 100%);
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.4);
}
.menu-item.item-download:hover { border-color: rgba(236, 72, 153, 0.4); background: rgba(236, 72, 153, 0.08); }

/* ==========================================================================
   SMART COLORFUL INFO LINKS (REFERRALS & WALLET)
   ========================================================================== */
.info-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 16px 20px;
}

.info-link {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border: 1px solid var(--border-glass);
    transition: all 0.25s ease;
}

.info-link:hover, .info-link:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.info-link-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-link-text {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

/* 7. REFERRALS (Luxury Amber Gold) */
.info-link.item-referral {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(17, 26, 46, 0.9) 100%);
    border-color: rgba(245, 158, 11, 0.3);
}
.info-link.item-referral .info-link-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}
.info-link.item-referral:hover { border-color: rgba(245, 158, 11, 0.5); }

/* 8. WALLET (Emerald / Green) */
.info-link.item-wallet {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(17, 26, 46, 0.9) 100%);
    border-color: rgba(16, 185, 129, 0.3);
}
.info-link.item-wallet .info-link-icon {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}
.info-link.item-wallet:hover { border-color: rgba(16, 185, 129, 0.5); }

/* ==========================================================================
   RECORDS & TRADE LIST
   ========================================================================== */
.records-tabs {
    display: flex;
    background: rgba(17, 26, 46, 0.8);
    border: 1px solid var(--border-glass);
    margin: 12px 16px;
    border-radius: 24px;
    padding: 4px;
}

.records-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-weight: 700;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.records-tab.active {
    color: white;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 2px 10px rgba(6, 182, 212, 0.3);
}

.records-list {
    padding: 0 16px 20px;
}

.record-item {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
}

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

.record-type {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.record-status {
    padding: 3px 8px;
    border-radius: 14px;
    font-size: 0.7rem;
    font-weight: 700;
}

.record-status.approved { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.record-status.pending { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.record-status.rejected { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }

.record-details {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.record-amount {
    font-weight: 800;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
}

/* ==========================================================================
   FORMS, SETTINGS & TOGGLES
   ========================================================================== */
.info-section, .account-section, .settings-section {
    padding: 16px;
}

.info-card, .account-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 14px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.85rem;
}

.info-row:last-child { border-bottom: none; }
.info-label { color: var(--text-muted); }
.info-value { font-weight: 600; color: var(--text-primary); }

.account-card-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    font-size: 1rem;
}

.account-field { margin-bottom: 14px; }
.account-label { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 6px; display: block; }
.account-input, .form-input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(11, 17, 32, 0.8);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.account-input:focus, .form-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.save-btn, .submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.logout-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3) !important;
}

/* Settings Items */
.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    margin-bottom: 4px;
    border-radius: 12px;
}

.settings-left { display: flex; align-items: center; gap: 10px; }
.settings-icon { font-size: 1.1rem; }
.settings-label { font-weight: 600; color: var(--text-primary); font-size: 0.88rem; }

.toggle-switch {
    width: 46px;
    height: 26px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 26px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-switch.active {
    background: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.3s;
}

.toggle-switch.active::after { transform: translateX(20px); }

/* ==========================================================================
   MODALS & DIALOGS
   ========================================================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active { display: flex; animation: fadeIn 0.2s ease; }

.modal-box {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-glass);
    width: 90%;
    max-width: 390px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.modal-header {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
}

.modal-title { font-weight: 800; font-size: 1.05rem; font-family: 'Outfit', sans-serif; }
.modal-close { background: transparent; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; }
.modal-body { padding: 20px; }
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--text-secondary); font-size: 0.82rem; }

/* Customer Service Modal */
.cs-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.cs-modal.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.cs-content {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-glass);
    width: 90%;
    max-width: 390px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.cs-header {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
    font-weight: 800;
    font-size: 1.05rem;
    font-family: 'Outfit', sans-serif;
}

.cs-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.cs-body {
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cs-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cs-option:hover, .cs-option:active {
    background: rgba(33, 150, 243, 0.15);
    border-color: rgba(33, 150, 243, 0.35);
    transform: translateY(-1px);
}

.cs-icon {
    font-size: 1.6rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

.cs-option h4 {
    margin: 0 0 3px 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.cs-option p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Live Chat Modal */
.chat-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-card-solid);
    z-index: 10005;
    flex-direction: column;
    max-width: 480px;
    margin: 0 auto;
}

.chat-modal.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.chat-header {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: white;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
}

.chat-title {
    font-weight: 800;
    font-size: 1.05rem;
    font-family: 'Outfit', sans-serif;
}

.chat-status {
    font-size: 0.75rem;
    color: #22c55e;
    font-weight: 600;
}

.chat-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

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

.chat-input-row {
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.98);
    border-top: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 10px 16px;
    color: #fff;
    font-size: 0.88rem;
    outline: none;
}

.chat-send-btn {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 18px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}

.chat-attach-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
    cursor: pointer;
    color: white;
}

/* ==========================================================================
   STATS GRID & REFERRALS
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 16px 12px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-box-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent-cyan);
    font-family: 'Outfit', sans-serif;
    margin-bottom: 4px;
}

.stat-box-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.referral-share-container {
    text-align: center;
    padding: 6px 0;
}

.referral-code-display {
    background: rgba(0, 0, 0, 0.35);
    border: 1px dashed var(--accent-cyan);
    padding: 12px 18px;
    border-radius: 14px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-cyan);
    font-family: 'Outfit', sans-serif;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.copy-btn-full {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    margin-bottom: 12px;
    font-size: 0.88rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.share-buttons-mobile {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.share-btn-m {
    flex: 1;
    padding: 9px 4px;
    border-radius: 10px;
    border: none;
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
}

.share-btn-m.whatsapp { background: #25d366; }
.share-btn-m.telegram { background: #0088cc; }
.share-btn-m.facebook { background: #1877f2; }

.referral-link-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-subtle);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 4px;
    word-break: break-all;
}

.referral-link {
    color: var(--accent-cyan);
    font-weight: 600;
}

/* Empty state */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.empty-icon { font-size: 3.5rem; margin-bottom: 12px; opacity: 0.6; }

/* Toast Notification */
@keyframes slideUpToast {
    from { transform: translate(-50%, 20px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

@keyframes slideDownToast {
    from { transform: translate(-50%, 0); opacity: 1; }
    to { transform: translate(-50%, 20px); opacity: 0; }
}

.chip-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    border-radius: 8px;
    padding: 9px 4px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}
.chip-btn:hover, .chip-btn:active {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

