/* styles.css - Complete rewrite for professional betting UI */

/* =============================================
   POWERSCORE — Professional Betting Platform
   Design System v3.0 - Premium Edition
   ============================================= */

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

/* =============================================
   CSS VARIABLES / DESIGN TOKENS
   ============================================= */
:root {
    /* Primary Colors */
    --primary: #00e85a;
    --primary-dark: #00c94d;
    --primary-light: #1aff6e;
    --primary-glow: rgba(0, 232, 90, 0.25);
    --primary-dim: rgba(0, 232, 90, 0.08);

    /* Backgrounds */
    --bg-body: #070b14;
    --bg-surface: #0c1524;
    --bg-elevated: #111d33;
    --bg-card: #0e1a2b;
    --bg-card-hover: #15233a;
    --bg-input: #0a1322;
    --bg-input-hover: #101d33;

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-light: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.18);

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #c8d0dc;
    --text-tertiary: #8896ab;
    --text-muted: #5a6a7f;
    --text-inverse: #0a0f18;

    /* Accents */
    --gold: #f5b400;
    --gold-dim: rgba(245, 180, 0, 0.12);
    --gold-glow: rgba(245, 180, 0, 0.25);
    --red: #f03e3e;
    --red-dim: rgba(240, 62, 62, 0.10);
    --red-glow: rgba(240, 62, 62, 0.25);
    --blue: #3b82f6;
    --blue-dim: rgba(59, 130, 246, 0.10);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px rgba(0, 232, 90, 0.08);

    /* Radii */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;

    /* Transitions */
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 0.15s ease;
    --transition: 0.25s ease;
    --transition-slow: 0.4s ease;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Barlow Condensed', 'Inter', sans-serif;

    /* Layout */
    --header-height: 60px;
    --sidebar-width: 220px;
    --betslip-width: 320px;
    --max-width: 1440px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    border: none;
    background: none;
    color: inherit;
}

input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

/* Selection */
::selection {
    background: var(--primary);
    color: var(--text-inverse);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--border-strong);
}

/* =============================================
   PROGRESS BAR
   ============================================= */
#global-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    z-index: 99999;
    transition: width 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    border-radius: 0 2px 2px 0;
}

/* =============================================
   HEADER
   ============================================= */
.top-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 11, 20, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    height: var(--header-height);
    padding: 0 20px;
    display: flex;
    align-items: center;
}

.header-container {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Logo */
.logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}


.logo-text {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    line-height: 1;
}

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

/* Header Nav */
.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 20px;
    flex: 1;
}

.header-nav-link {
    padding: 6px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-tertiary);
    transition: var(--transition-fast);
    position: relative;
}

.header-nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.header-nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.header-nav-link .live-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--red);
    border-radius: 50%;
    margin-right: 4px;
    animation: pulse-dot 1.2s infinite;
}

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

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 13px;
    transition: var(--transition-fast);
    white-space: nowrap;
    line-height: 1.2;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-inverse);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 20px var(--primary-glow);
    transform: translateY(-1px);
}
.btn-primary:active {
    transform: scale(0.97);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border-color: var(--border-light);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.10);
    color: var(--text-primary);
    border-color: var(--border-medium);
}

.btn-ghost {
    background: transparent;
    color: var(--text-tertiary);
}
.btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.btn-gold {
    background: var(--gold);
    color: var(--text-inverse);
    border-color: var(--gold);
}
.btn-gold:hover {
    background: #ffc800;
    border-color: #ffc800;
    box-shadow: 0 4px 20px var(--gold-glow);
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}
.btn-danger:hover {
    background: #d63031;
    border-color: #d63031;
    box-shadow: 0 4px 20px var(--red-glow);
}

.btn-sm {
    padding: 5px 12px;
    font-size: 11px;
    border-radius: var(--radius-sm);
}
.btn-lg {
    padding: 12px 28px;
    font-size: 15px;
}
.btn-block {
    width: 100%;
    justify-content: center;
}
.btn-disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    cursor: pointer;
}

.balance-display {
    background: rgba(0, 232, 90, 0.08);
    border: 1px solid rgba(0, 232, 90, 0.15);
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    color: var(--primary);
    transition: var(--transition-fast);
}
.balance-display:hover {
    background: rgba(0, 232, 90, 0.15);
    border-color: rgba(0, 232, 90, 0.25);
}

.avatar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition-fast);
}
.avatar-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-medium);
}
.avatar-btn .avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    color: var(--primary);
}
.avatar-btn .chevron {
    font-size: 10px;
    color: var(--text-muted);
}

/* Dropdown */
.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 6px 0;
    z-index: 1001;
    overflow: hidden;
}
.dropdown-menu.open {
    display: block;
    animation: dropdownFade 0.2s ease;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-8px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-menu .dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.02);
}
.dropdown-menu .dropdown-header .label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}
.dropdown-menu .dropdown-header .value {
    font-size: 16px;
    font-weight: 800;
    color: var(--gold);
    margin-top: 2px;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-tertiary);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition-fast);
    border-left: 2px solid transparent;
}
.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border-left-color: var(--primary);
}
.dropdown-menu a i {
    width: 16px;
    text-align: center;
    font-size: 13px;
}
.dropdown-menu a.danger {
    color: var(--red);
}
.dropdown-menu a.danger:hover {
    background: var(--red-dim);
    border-left-color: var(--red);
}

/* =============================================
   LAYOUT
   ============================================= */
.app-layout {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Left Sidebar */
.left-sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--header-height) + 16px);
    max-height: calc(100vh - var(--header-height) - 32px);
    overflow-y: auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 8px 0;
    scrollbar-width: none;
}
.left-sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar-section {
    padding: 8px 0;
}
.sidebar-section:not(:last-child) {
    border-bottom: 1px solid var(--border-subtle);
}

.sidebar-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    padding: 6px 16px 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    color: var(--text-tertiary);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition-fast);
    border-left: 2px solid transparent;
}
.sidebar-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}
.sidebar-link.active {
    color: var(--primary);
    border-left-color: var(--primary);
    background: var(--primary-dim);
}
.sidebar-link i {
    width: 18px;
    text-align: center;
    font-size: 14px;
}
.sidebar-link .badge {
    margin-left: auto;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--red-dim);
    color: var(--red);
}

/* Main Content */
.main-feed {
    flex: 1;
    min-width: 0;
}

/* Right Sidebar - Betslip */
.right-sidebar {
    width: var(--betslip-width);
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--header-height) + 16px);
    max-height: calc(100vh - var(--header-height) - 32px);
    overflow-y: auto;
    scrollbar-width: none;
}
.right-sidebar::-webkit-scrollbar {
    display: none;
}

/* =============================================
   PANELS & CARDS
   ============================================= */
.panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.panel-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
}
.panel-card:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.section-header .icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.section-header .icon.green {
    background: var(--primary-dim);
    color: var(--primary);
}
.section-header .icon.gold {
    background: var(--gold-dim);
    color: var(--gold);
}
.section-header .icon.red {
    background: var(--red-dim);
    color: var(--red);
}
.section-header h2 {
    font-size: 17px;
    font-weight: 800;
}
.section-header .sub {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 500;
    margin-left: auto;
}

/* =============================================
   MATCH ROW - Premium
   ============================================= */
.match-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.match-row {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: stretch;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-fast);
    min-height: 60px;
}
.match-row:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
}
.match-row:active {
    transform: scale(0.995);
}

/* Time column */
.match-time {
    width: 64px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    border-right: 1px solid var(--border-subtle);
    background: rgba(0, 0, 0, 0.2);
    gap: 2px;
    text-align: center;
}
.match-time .time {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    line-height: 1.1;
}
.match-time .date {
    font-size: 9px;
    color: var(--text-muted);
    line-height: 1.1;
}
.match-time .league {
    font-size: 8px;
    color: var(--text-muted);
    max-width: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.1;
}
.match-time .live-indicator {
    font-size: 9px;
    font-weight: 800;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.match-time .live-indicator .dot {
    width: 5px;
    height: 5px;
    background: var(--red);
    border-radius: 50%;
    animation: pulse-dot 1s infinite;
}
.match-time .score {
    font-size: 14px;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}

/* Teams column */
.match-teams {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 14px;
    gap: 4px;
}
.match-team {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.2;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.match-team .logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.05);
}
.match-team .name {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Odds column */
.match-odds {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
    align-items: center;
    padding: 8px 8px 8px 0;
}

.odd-btn {
    width: 52px;
    height: 42px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    gap: 1px;
    position: relative;
}
.odd-btn:hover {
    background: var(--primary-dim);
    border-color: rgba(0, 232, 90, 0.25);
}
.odd-btn:hover .odd-value {
    color: var(--primary);
}
.odd-btn:active {
    transform: scale(0.95);
}
.odd-btn .odd-label {
    font-size: 7px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-muted);
    line-height: 1;
}
.odd-btn .odd-value {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-secondary);
    line-height: 1;
}
.odd-btn.selected {
    background: var(--primary);
    border-color: var(--primary);
}
.odd-btn.selected .odd-label,
.odd-btn.selected .odd-value {
    color: var(--text-inverse);
}
.odd-btn.selected .odd-value {
    color: var(--text-inverse);
}

.odd-btn-more {
    width: 28px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    background: var(--primary-dim);
    border: 1px solid rgba(0, 232, 90, 0.10);
}
.odd-btn-more:hover {
    background: rgba(0, 232, 90, 0.15);
}

/* =============================================
   BETSLIP
   ============================================= */
.betslip {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.betslip-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
}
.betslip-header .title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.betslip-header .title .count {
    background: var(--primary);
    color: var(--text-inverse);
    font-size: 10px;
    font-weight: 900;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.betslip-header .clear-btn {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition-fast);
}
.betslip-header .clear-btn:hover {
    color: var(--red);
}

.betslip-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px;
    max-height: 340px;
}
.betslip-body .empty {
    text-align: center;
    padding: 40px 16px;
    color: var(--text-muted);
}
.betslip-body .empty i {
    font-size: 32px;
    opacity: 0.2;
    margin-bottom: 12px;
    display: block;
}
.betslip-body .empty p {
    font-size: 13px;
    font-weight: 600;
}
.betslip-body .empty .sub {
    font-size: 11px;
    opacity: 0.6;
    margin-top: 4px;
}

.betslip-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    margin-bottom: 6px;
    position: relative;
    transition: var(--transition-fast);
}
.betslip-item:hover {
    border-color: var(--border-light);
}
.betslip-item .match {
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 2px;
    font-weight: 500;
}
.betslip-item .pick-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.betslip-item .pick-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}
.betslip-item .pick-odd {
    font-size: 13px;
    font-weight: 800;
    color: var(--gold);
}
.betslip-item .remove-btn {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 11px;
    color: var(--text-muted);
    padding: 2px 4px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}
.betslip-item .remove-btn:hover {
    color: var(--red);
    background: var(--red-dim);
}

.betslip-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-subtle);
    background: rgba(0, 0, 0, 0.2);
}

.betslip-summary {
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin-bottom: 10px;
}
.betslip-summary .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    padding: 2px 0;
    color: var(--text-tertiary);
}
.betslip-summary .row .value {
    font-weight: 700;
}
.betslip-summary .row .value.gold {
    color: var(--gold);
}
.betslip-summary .row .value.green {
    color: var(--primary);
}

.betslip-stake {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.betslip-stake label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    white-space: nowrap;
}
.betslip-stake input {
    flex: 1;
    height: 36px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0 12px;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
    transition: var(--transition-fast);
}
.betslip-stake input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.betslip-actions {
    display: flex;
    gap: 8px;
}
.betslip-actions .btn {
    flex: 1;
    height: 40px;
    font-size: 12px;
    font-weight: 700;
}

/* =============================================
   BOOKING CODE
   ============================================= */
.booking-section {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    gap: 8px;
}
.booking-section input {
    flex: 1;
    height: 34px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-primary);
    transition: var(--transition-fast);
}
.booking-section input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}
.booking-section input::placeholder {
    text-transform: none;
    color: var(--text-muted);
}
.booking-section .btn {
    height: 34px;
    padding: 0 14px;
    font-size: 11px;
    font-weight: 700;
}

/* =============================================
   SPORT FILTER
   ============================================= */
.sport-filter {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 0 0 12px;
    margin-bottom: 16px;
    scrollbar-width: none;
}
.sport-filter::-webkit-scrollbar {
    display: none;
}

.sport-filter .btn {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-tertiary);
    white-space: nowrap;
    flex-shrink: 0;
}
.sport-filter .btn:hover {
    border-color: var(--border-light);
    color: var(--text-secondary);
    background: var(--bg-card-hover);
}
.sport-filter .btn.active {
    background: var(--primary);
    color: var(--text-inverse);
    border-color: var(--primary);
}
.sport-filter .btn i {
    font-size: 12px;
}

/* =============================================
   HERO BANNER
   ============================================= */
.hero-banner {
    background: linear-gradient(135deg, #0a1628 0%, #0f2040 50%, #081228 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 24px 28px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.hero-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 232, 90, 0.04) 0%, transparent 70%);
    pointer-events: none;
}
.hero-banner .content {
    position: relative;
    z-index: 1;
}
.hero-banner .content h1 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 900;
    line-height: 1.1;
}
.hero-banner .content h1 .highlight {
    color: var(--primary);
}
.hero-banner .content p {
    color: var(--text-tertiary);
    font-size: 13px;
    max-width: 340px;
    margin-top: 4px;
}
.hero-banner .action {
    position: relative;
    z-index: 1;
}

/* =============================================
   MODALS
   ============================================= */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 5000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.modal-overlay.open {
    display: flex;
    animation: modalFade 0.25s ease;
}

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

.modal-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl);
    max-width: 440px;
    width: 100%;
    padding: 32px 28px;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: modalSlide 0.3s var(--ease-bounce);
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalSlide {
    from { transform: translateY(30px) scale(0.96); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-box .close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition-fast);
}
.modal-box .close-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.modal-box .modal-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
}
.modal-box .modal-subtitle {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 24px;
}

/* Bottom Sheet */
.bottom-sheet {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 5000;
    justify-content: center;
    align-items: flex-end;
}
.bottom-sheet.open {
    display: flex;
}
.bottom-sheet .sheet-content {
    width: 100%;
    max-width: 600px;
    background: var(--bg-surface);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    padding: 16px 20px 24px;
    animation: sheetSlide 0.35s var(--ease-bounce);
    max-height: 85vh;
    overflow-y: auto;
    border-top: 1px solid var(--border-light);
}
@keyframes sheetSlide {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.bottom-sheet .sheet-handle {
    width: 40px;
    height: 4px;
    background: var(--border-medium);
    border-radius: 4px;
    margin: 0 auto 16px;
}

/* =============================================
   TOAST NOTIFICATIONS
   ============================================= */
#notification-container {
    position: fixed;
    top: calc(var(--header-height) + 16px);
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 360px;
    width: 100%;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.35s var(--ease-bounce);
    transition: var(--transition);
}
.toast.hide {
    opacity: 0;
    transform: translateX(20px) scale(0.95);
}

.toast .icon {
    font-size: 18px;
    flex-shrink: 0;
}
.toast .icon.success { color: var(--primary); }
.toast .icon.error { color: var(--red); }
.toast .icon.warning { color: var(--gold); }
.toast .icon.info { color: var(--blue); }

.toast .message {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}
.toast .message strong {
    color: var(--text-primary);
}

@keyframes toastIn {
    from { transform: translateX(30px) scale(0.92); opacity: 0; }
    to { transform: translateX(0) scale(1); opacity: 1; }
}

/* =============================================
   FORMS
   ============================================= */
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    margin-bottom: 6px;
}
.form-group .input-wrap {
    position: relative;
}
.form-group .input-wrap .icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}
.form-group .input-wrap input,
.form-group .input-wrap select {
    width: 100%;
    padding: 11px 14px 11px 40px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition-fast);
}
.form-group .input-wrap input:focus,
.form-group .input-wrap select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: var(--bg-input-hover);
}
.form-group .input-wrap input::placeholder {
    color: var(--text-muted);
}
.form-group .input-wrap select {
    appearance: none;
    padding-right: 36px;
    cursor: pointer;
}
.form-group .input-wrap select option {
    background: var(--bg-surface);
    color: var(--text-primary);
}
.form-group .input-wrap .select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 8px 0;
}
.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}
.checkbox-group label {
    font-size: 13px;
    color: var(--text-tertiary);
    cursor: pointer;
    line-height: 1.4;
}
.checkbox-group label a {
    color: var(--primary);
}
.checkbox-group label a:hover {
    text-decoration: underline;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1200px) {
    .right-sidebar {
        width: 280px;
    }
    .app-layout {
        gap: 16px;
        padding: 12px 16px;
    }
}

@media (max-width: 1024px) {
    .app-layout {
        flex-direction: column;
    }
    .left-sidebar {
        display: none;
    }
    .right-sidebar {
        display: none;
    }
    .main-feed {
        width: 100%;
    }
    
    .header-nav {
        display: none;
    }
    .header-actions .btn-secondary {
        display: none;
    }
    
    .match-time {
        width: 56px;
        padding: 8px 4px;
    }
    .match-time .time {
        font-size: 11px;
    }
    .match-odds {
        padding: 6px 6px 6px 0;
    }
    .odd-btn {
        width: 44px;
        height: 36px;
    }
    .odd-btn .odd-value {
        font-size: 12px;
    }
    .odd-btn .odd-label {
        font-size: 6px;
    }
    .odd-btn-more {
        width: 24px;
        height: 36px;
        font-size: 8px;
    }
    .match-teams {
        padding: 8px 10px;
    }
    .match-team {
        font-size: 11px;
    }
    .match-team .logo {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 768px) {
    .top-header {
        padding: 0 12px;
        height: 54px;
    }
    .logo-text {
        font-size: 20px;
    }
    .logo-icon {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
    .header-actions .btn-primary {
        padding: 6px 12px;
        font-size: 12px;
    }
    .header-actions .btn-primary span {
        display: none;
    }
    .balance-display {
        font-size: 12px;
        padding: 4px 10px;
    }
    .avatar-btn .username {
        display: none;
    }
    
    .app-layout {
        padding: 10px 10px;
        gap: 12px;
    }
    
    .hero-banner {
        padding: 18px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .hero-banner .content h1 {
        font-size: 22px;
    }
    .hero-banner .content p {
        font-size: 12px;
    }
    .hero-banner .action {
        width: 100%;
    }
    .hero-banner .action .btn {
        width: 100%;
        justify-content: center;
    }
    
    .match-time {
        width: 48px;
        padding: 6px 3px;
    }
    .match-time .time {
        font-size: 10px;
    }
    .match-time .score {
        font-size: 12px;
    }
    .match-time .live-indicator {
        font-size: 7px;
    }
    .match-time .league {
        font-size: 7px;
    }
    .match-teams {
        padding: 6px 8px;
        gap: 3px;
    }
    .match-team {
        font-size: 10px;
        gap: 5px;
    }
    .match-team .logo {
        width: 14px;
        height: 14px;
    }
    .match-odds {
        gap: 3px;
        padding: 5px 5px 5px 0;
    }
    .odd-btn {
        width: 38px;
        height: 32px;
    }
    .odd-btn .odd-value {
        font-size: 10px;
    }
    .odd-btn .odd-label {
        font-size: 6px;
    }
    .odd-btn-more {
        width: 20px;
        height: 32px;
        font-size: 7px;
    }
    
    .modal-box {
        padding: 24px 20px;
        margin: 10px;
    }
    .modal-box .modal-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .match-time {
        width: 42px;
        padding: 4px 2px;
    }
    .match-time .time {
        font-size: 9px;
    }
    .match-time .score {
        font-size: 11px;
    }
    .match-time .league {
        display: none;
    }
    .match-team {
        font-size: 9px;
        gap: 4px;
    }
    .match-team .logo {
        width: 12px;
        height: 12px;
    }
    .odd-btn {
        width: 34px;
        height: 28px;
        border-radius: var(--radius-sm);
    }
    .odd-btn .odd-value {
        font-size: 9px;
    }
    .odd-btn .odd-label {
        display: none;
    }
    .odd-btn-more {
        width: 18px;
        height: 28px;
        font-size: 6px;
    }
}

/* =============================================
   UTILITIES
   ============================================= */
.text-green { color: var(--primary) !important; }
.text-gold { color: var(--gold) !important; }
.text-red { color: var(--red) !important; }
.text-white { color: var(--text-primary) !important; }
.text-gray { color: var(--text-tertiary) !important; }
.text-muted { color: var(--text-muted) !important; }

.bg-green { background: var(--primary) !important; }
.bg-gold { background: var(--gold) !important; }
.bg-red { background: var(--red) !important; }
.bg-surface { background: var(--bg-surface) !important; }
.bg-card { background: var(--bg-card) !important; }

.font-display { font-family: var(--font-display) !important; }
.font-mono { font-family: 'Courier New', monospace !important; }

.flex { display: flex !important; }
.flex-col { flex-direction: column !important; }
.items-center { align-items: center !important; }
.justify-between { justify-content: space-between !important; }
.gap-1 { gap: 4px !important; }
.gap-2 { gap: 8px !important; }
.gap-3 { gap: 12px !important; }
.gap-4 { gap: 16px !important; }

.m-0 { margin: 0 !important; }
.mt-1 { margin-top: 4px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 12px !important; }
.mt-4 { margin-top: 16px !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 12px !important; }
.mb-4 { margin-bottom: 16px !important; }

.p-1 { padding: 4px !important; }
.p-2 { padding: 8px !important; }
.p-3 { padding: 12px !important; }
.p-4 { padding: 16px !important; }

.w-full { width: 100% !important; }
.h-full { height: 100% !important; }

.rounded { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }

.shadow { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

.hidden { display: none !important; }
.block { display: block !important; }

.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

.relative { position: relative !important; }
.absolute { position: absolute !important; }

/* =============================================
   BOTTOM NAV - Mobile
   ============================================= */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    padding: 6px 0 env(safe-area-inset-bottom, 12px);
    z-index: 100;
    justify-content: space-around;
    align-items: center;
}
.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 600;
    padding: 4px 12px;
    transition: var(--transition-fast);
}
.bottom-nav .nav-item i {
    font-size: 20px;
}
.bottom-nav .nav-item.active {
    color: var(--primary);
}
.bottom-nav .nav-item .fab-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--text-inverse);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -20px;
    box-shadow: 0 4px 20px var(--primary-glow);
}
.bottom-nav .nav-item .fab-btn i {
    font-size: 20px;
}

@media (max-width: 1024px) {
    .bottom-nav {
        display: flex;
    }
}

/* =============================================
   MOBILE SIDEBAR
   ============================================= */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: var(--bg-surface);
    z-index: 2000;
    transition: left 0.3s var(--ease);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
}
.mobile-sidebar.open {
    left: 0;
}
.mobile-sidebar .sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
.mobile-sidebar .sidebar-header .logo {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 900;
}
.mobile-sidebar .sidebar-header .logo .accent {
    color: var(--primary);
}
.mobile-sidebar .sidebar-header .close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}
.mobile-sidebar .sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}
.mobile-sidebar .sidebar-body .sidebar-link {
    padding: 12px 20px;
}
.mobile-sidebar .sidebar-body .sidebar-label {
    padding: 12px 20px 4px;
}
.mobile-sidebar .sidebar-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
}
.sidebar-overlay.active {
    display: block;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    padding: 40px 20px 24px;
    margin-top: 40px;
}
.footer .container {
    max-width: var(--max-width);
    margin: 0 auto;
}
.footer .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}
.footer .grid .col h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}
.footer .grid .col ul {
    list-style: none;
}
.footer .grid .col ul li {
    margin-bottom: 6px;
}
.footer .grid .col ul li a {
    font-size: 13px;
    color: var(--text-muted);
    transition: var(--transition-fast);
}
.footer .grid .col ul li a:hover {
    color: var(--primary);
}
.footer .bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.footer .bottom .payments {
    display: flex;
    gap: 16px;
    font-size: 24px;
    color: var(--text-muted);
}
.footer .bottom .payments i:hover {
    color: var(--text-secondary);
}
.footer .bottom .badges {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.footer .bottom .badges .age {
    background: var(--red);
    color: #fff;
    font-weight: 900;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 3px;
}
.footer .bottom .text {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
}

/* =============================================
   DEPOSIT / WITHDRAWAL SPECIFIC
   ============================================= */
.gateway-card {
    flex: 1;
    text-align: center;
    padding: 16px 12px;
    background: var(--bg-input);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 13px;
    transition: var(--transition-fast);
    cursor: pointer;
}
.gateway-card:hover {
    border-color: var(--border-light);
    background: var(--bg-input-hover);
}
.gateway-card.active {
    border-color: var(--primary);
    background: var(--primary-dim);
}
.gateway-card i {
    font-size: 28px;
    display: block;
    margin-bottom: 6px;
}

.amount-btn {
    padding: 12px 8px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-fast);
}
.amount-btn:hover {
    border-color: var(--border-light);
    background: var(--bg-input-hover);
}
.amount-btn.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-inverse);
}

.step-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.step-label .num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    color: var(--primary);
}

/* =============================================
   BET HISTORY
   ============================================= */
.bet-card {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-card);
}
.bet-card .header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
}
.bet-card .header .status {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}
.bet-card .header .status.pending {
    background: var(--gold-dim);
    color: var(--gold);
}
.bet-card .header .status.won {
    background: var(--primary-dim);
    color: var(--primary);
}
.bet-card .header .status.lost {
    background: var(--red-dim);
    color: var(--red);
}
.bet-card .body {
    padding: 12px 16px;
}
.bet-card .body .selection {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-subtle);
}
.bet-card .body .selection:last-child {
    border-bottom: none;
}
.bet-card .body .selection .pick {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}
.bet-card .body .selection .odd {
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
}
.bet-card .footer {
    padding: 10px 16px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.15);
}
.bet-card .footer .label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-muted);
}
.bet-card .footer .value {
    font-size: 14px;
    font-weight: 800;
}
.bet-card .footer .value.gold {
    color: var(--gold);
}
.bet-card .footer .value.green {
    color: var(--primary);
}
.bet-card .footer .value.red {
    color: var(--red);
}