:root {
    --primary-green: #0e7d58;
    --dark-green: #075a3e;
    --light-grey: #f0f0f0;
    --bg-grey: #e9ecef;
    --yellow: #ffc107;
    --text-dark: #333;
    --text-light: #fff;
    --border-color: #ddd;
    --red: #dc3545;
}

/* ── Utility Classes ── */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: block !important;
}

@media (max-width: 991px) {
    .mobile-only {
        display: block !important;
    }

    .desktop-only {
        display: none !important;
    }
}

/* Hide Mobile UI on Desktop explicitly */
@media (min-width: 992px) {

    .mobile-bottom-nav,
    .account-drawer,
    .drawer-overlay {
        display: none !important;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-grey);
    color: var(--text-dark);
}

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

ul {
    list-style: none;
}

/* ── Header Styles (Premium Yellow) ── */
.main-header {
    background: linear-gradient(135deg, #ffc107 0%, #ffc107 100%) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.logo h1 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 2px;
    color: #1a1a1a;
}

.logo .hub-text {
    color: #000;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
}

.tagline {
    font-size: 10px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.6);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-bar {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
}

.search-bar input {
    border: none;
    background: transparent;
    padding: 5px;
    width: 250px;
    outline: none;
    color: var(--text-dark);
}

.search-bar i {
    color: #555;
}

.time-display {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
}

/* Auth Buttons */
.btn {
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-login {
    background-color: #1a1a1a;
    color: #fff;
}

.btn-signup {
    background-color: transparent;
    border: 1.5px solid #1a1a1a !important;
    color: #1a1a1a;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Sub Navigation (Glassmorphic) */
.sub-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sub-nav ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0 20px;
    overflow-x: auto;
}

.sub-nav li a {
    display: block;
    padding: 12px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    border-bottom: 2px solid transparent;
}

.sub-nav li.active a,
.sub-nav li:hover a {
    color: var(--primary-green);
}

/* Main Layout */
.main-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px;
    gap: 15px;
}

/* Sidebar */
.left-sidebar {
    width: 240px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
    align-self: flex-start;
}

.sport-list li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #444;
    font-size: 14px;
    font-weight: 500;
    gap: 12px;
    border-left: 3px solid transparent;
    transition: background 0.2s;
}

.sport-list li a:hover {
    background-color: var(--light-grey);
    border-left-color: var(--primary-green);
}

.sport-list i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

/* Banners */
.banners-wrapper {
    background: #111;
    border-radius: 8px;
    height: 300px;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hero-banner {
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1540747913346-19e32dc3e97e?ixlib=rb-1.2.1&auto=format&fit=crop&w=1200&q=80') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-content h2 {
    color: var(--yellow);
    font-size: 5rem;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
    line-height: 1;
    transform: skew(-10deg);
}

/* ── In-Play Section Modernization ── */
.market-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 25px;
}

.section-header {
    background: linear-gradient(135deg, #075a3e, #0e7d58);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sport-header {
    padding: 12px 20px;
    background: #fdfdfd;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sport-header h4 {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filters .badge {
    cursor: pointer;
    padding: 5px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
    background: white;
}

.filters .badge.active {
    background: var(--primary-green);
    color: #fff;
    border-color: var(--primary-green);
}

.odds-table-container {
    overflow-x: auto;
}

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

.odds-table th {
    background: #f8f9fa;
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    text-align: right;
}

.odds-table th:first-child {
    text-align: left;
}

.odds-table td {
    padding: 15px;
    border-bottom: 1px solid #f9f9f9;
    vertical-align: middle;
}

/* Premium Match Row */
.premium-match-row:hover {
    background: #fcfcfc;
}

.match-info-box {
    display: flex;
    align-items: center;
    gap: 20px;
}

.status-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70px;
    padding-right: 20px;
    border-right: 1px solid #eee;
}

.pulse-live {
    color: #dc3545;
    font-weight: 800;
    font-size: 11px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
}

.pulse-live::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #dc3545;
    border-radius: 50%;
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(220, 53, 69, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.match-time {
    font-size: 11px;
    color: #888;
}

.teams-display {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.team-row {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
}

/* Odds Action Buttons */
.odds-btn {
    width: 64px;
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    margin-left: auto;
}

.odds-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.odds-btn .price {
    font-size: 15px;
    font-weight: 800;
}

.odds-btn .volume {
    font-size: 9px;
    opacity: 0.6;
}

.odds-btn.back {
    background-color: #72bbef;
    color: #1a1a1a;
}

.odds-btn.lay {
    background-color: #faa9ba;
    color: #1a1a1a;
}

.odds-btn.back:hover {
    background-color: #58a9e6;
}

.odds-btn.lay:hover {
    background-color: #f890a5;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: var(--primary-green);
    margin: 10% auto;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    color: white;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* User Info */
.user-info {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    align-items: flex-end;
    color: white;
}

.balance-info {
    display: flex;
    gap: 10px;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.btn-deposit {
    background-color: var(--primary-green);
    border: 1px solid white;
    color: white;
}

.btn-withdraw {
    background-color: var(--red);
    color: white;
}

.btn-account {
    background: var(--yellow);
    color: #333;
}

.btn-logout {
    background: #333;
    color: white;
}