:root {
    --bg: #070b10;
    --surface: #0d141c;
    --surface2: #111d28;
    --border: #1e2a36;
    --text: #e7eef5;
    --muted: #8a99a8;
    --accent: #16d97f;
    --accent-dim: rgba(22,217,127,.12);
    --accent-text: #031a0c;
    --success: #10b981;
    --danger: #ef4444;
    --info: #3b82f6;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Poppins', system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; }

h1, h2, h3, h4, .syne {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 700;
}

/* ─── GLOBAL TEXT ─── */
.text-muted { color: #b8c5d3 !important; }

/* ─── BOOTSTRAP OVERRIDES (warning → green accent) ─── */
.text-warning { color: var(--accent) !important; }
.btn-warning {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
    color: var(--accent-text) !important;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}
.btn-warning:hover, .btn-warning:focus {
    background-color: #12c470 !important;
    border-color: #12c470 !important;
    color: var(--accent-text) !important;
}
.btn-outline-warning {
    color: var(--accent) !important;
    border-color: var(--accent) !important;
}
.btn-outline-warning:hover {
    background-color: var(--accent) !important;
    color: var(--accent-text) !important;
}
.badge.bg-warning { background-color: var(--accent) !important; color: var(--accent-text) !important; }

/* ─── NAV ─── */
.navbar {
    background: var(--surface) !important;
    border-bottom: 1px solid var(--border);
}
.navbar-brand {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -.3px;
    color: var(--text) !important;
}
.nav-link { color: var(--text) !important; font-size: .9rem; font-weight: 700; }
.nav-link:hover { color: var(--accent) !important; }
.dropdown-dark { background: var(--surface2); border: 1px solid var(--border); }
.dropdown-dark .dropdown-item { color: #cbd5e1; font-size: .88rem; }
.dropdown-dark .dropdown-item:hover { background: var(--accent-dim); color: var(--accent); }

/* ─── HERO ─── */
.hero {
    background-color: var(--bg);
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 44px 44px;
    padding: 72px 0 56px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(22,217,127,.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero h1 {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text);
}
.hero h1 span { color: var(--accent); }
.hero .pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid rgba(22,217,127,.3);
    border-radius: 50px;
    padding: 5px 18px;
    font-size: .78rem;
    font-weight: 600;
    margin-bottom: 22px;
    letter-spacing: .4px;
}
.hero .lead { color: var(--muted); font-size: 1rem; max-width: 520px; margin: 14px auto 0; }

/* ─── SECTION TITLES ─── */
.section-title {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text);
}
.section-sub { color: var(--muted); font-size: .88rem; }

/* ─── FREE GAMES ─── */
.game-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    transition: border-color .2s, transform .2s;
}
.game-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.game-card .league { font-size: .7rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--accent); font-weight: 600; }
.game-card .teams { font-family: 'Barlow Semi Condensed', sans-serif; font-size: 1rem; font-weight: 700; margin: 10px 0 14px; text-align: center; color: var(--text); }
.game-card .vs { color: var(--muted); font-size: .75rem; margin: 0 8px; }
.game-card .tip-chip {
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid rgba(22,217,127,.3);
    border-radius: 6px;
    padding: 3px 12px;
    font-size: .78rem;
    font-weight: 700;
}
.game-card .kick { font-size: .73rem; color: var(--muted); }
/* ─── PAYMENT MODAL ─── */
#payModal .modal-content {
    background: #0d141c !important;
    border: 1px solid #1e2a36 !important;
    color: #e7eef5 !important;
    border-radius: 16px !important;
    overflow: hidden;
}
#payModal .modal-header {
    background: #0d141c !important;
    border-bottom: 1px solid #1e2a36 !important;
}
#payModal .modal-body { background: #0d141c !important; }
#payModal .modal-title { color: #e7eef5 !important; }
.pay-option {
    width: 100% !important;
    background: #111d28 !important;
    border: 1px solid #1e2a36 !important;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex !important;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-align: left;
    color: #e7eef5 !important;
    transition: border-color .15s, background .15s;
    margin-bottom: 10px;
}
.pay-option:last-child { margin-bottom: 0; }
.pay-option:hover, .pay-option:focus { border-color: #16d97f !important; background: rgba(22,217,127,.06) !important; outline: none; }
.pay-option .pay-label { font-weight: 600; font-size: .95rem; color: #e7eef5; }
.pay-option .pay-sub { font-size: .78rem; color: #8a99a8; margin-top: 2px; }
.pay-option .pay-amt { color: #16d97f; font-weight: 700; font-size: 1rem; margin-left: auto; white-space: nowrap; }
.btn-pay-back {
    background: transparent !important; border: none !important; color: #8a99a8 !important;
    font-size: .85rem; padding: 0; cursor: pointer; display: flex; align-items: center;
    box-shadow: none !important;
}
.btn-pay-back:hover { color: #e7eef5 !important; }

.free-empty {
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: 14px;
    padding: 48px;
    text-align: center;
    color: var(--muted);
}

/* ─── VIP CATEGORIES ─── */
.cat-section {
    background: var(--bg);
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 44px 44px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 64px 0;
}
.cat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px 26px;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: border-color .2s, transform .2s, box-shadow .2s;
    height: 100%;
}
.cat-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(22,217,127,.1);
}
.cat-card.popular { border-color: var(--accent); position: relative; box-shadow: 0 0 30px rgba(22,217,127,.1); }
.cat-card.popular::before {
    content: 'Most Popular';
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--accent-text);
    font-size: .68rem;
    font-weight: 800;
    font-family: 'Barlow Semi Condensed', sans-serif;
    padding: 3px 14px;
    border-radius: 50px;
    white-space: nowrap;
    letter-spacing: .5px;
}
.cat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 18px;
}
.cat-icon-warning { background: rgba(22,217,127,.12); color: var(--accent); }
.cat-icon-info    { background: rgba(59,130,246,.15);  color: #3b82f6; }
.cat-icon-danger  { background: rgba(239,68,68,.15);   color: #ef4444; }
.cat-icon-success { background: rgba(22,217,127,.12);  color: var(--accent); }
.cat-card-name {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}
.cat-price { font-family: 'Barlow Semi Condensed', sans-serif; font-size: 2.2rem; font-weight: 700; color: var(--accent); line-height: 1; }
.cat-price span { font-size: .9rem; font-weight: 400; color: var(--muted); font-family: 'Poppins', sans-serif; }
.cat-features { list-style: none; padding: 0; margin: 16px 0; text-align: left; font-size: .84rem; }
.cat-features li { padding: 5px 0; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.cat-features li i { color: var(--accent); font-size: .9rem; }

/* ─── HOW IT WORKS ─── */
.how-step-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    height: 100%;
    transition: border-color .2s, transform .2s;
}
.how-step-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.how-step-num {
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: var(--accent-text);
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}
.how-step-title {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 8px;
}
.how-step-desc { color: var(--muted); font-size: .83rem; margin: 0; line-height: 1.55; }

/* ─── AUTH ─── */
.auth-wrap { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.auth-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 38px;
    width: 100%;
    max-width: 420px;
}
.auth-box h5 {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 800;
    color: var(--text);
}

/* ─── FORMS ─── */
.form-control, .form-select {
    background: var(--bg);
    border-color: var(--border);
    color: var(--text);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: .88rem;
}
.form-control:focus, .form-select:focus {
    background: var(--bg);
    border-color: var(--accent);
    color: var(--text);
    box-shadow: 0 0 0 3px rgba(22,217,127,.12);
}
.form-control::placeholder { color: var(--muted); }
.input-group-text { background: var(--surface2); border-color: var(--border); color: var(--muted); }
.form-label { font-size: .8rem; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }

/* ─── VIP DASHBOARD ─── */
.access-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
}
.access-card.has-access { border-color: var(--accent); box-shadow: 0 0 24px rgba(22,217,127,.07); }
.access-card.no-access { opacity: .65; }
.access-card-title {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text);
}
.booking-code-box {
    background: var(--bg);
    border: 2px dashed rgba(22,217,127,.5);
    border-radius: 12px;
    padding: 28px;
    text-align: center;
}
.booking-code-box .code {
    font-family: 'Courier New', monospace;
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: 4px;
    word-break: break-all;
}
.copy-btn { cursor: pointer; }

/* ─── ADMIN ─── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 230px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 300;
    transition: left .25s ease;
}
.admin-sidebar .brand {
    padding: 18px 18px;
    border-bottom: 1px solid var(--border);
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sidebar-close {
    background: none; border: none; color: var(--muted);
    font-size: 1.1rem; padding: 0; line-height: 1; cursor: pointer;
}
.sidebar-close:hover { color: var(--text); }
.sidebar-toggle {
    background: none; border: none; color: var(--text);
    font-size: 1.4rem; padding: 0; line-height: 1; cursor: pointer;
}
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 299;
}
.sidebar-backdrop.open { display: block; }
.admin-sidebar .nav-link {
    color: var(--muted);
    padding: 9px 18px;
    border-radius: 0;
    font-size: .84rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 3px solid transparent;
}
.admin-sidebar .nav-link:hover { color: var(--text); background: rgba(255,255,255,.03); }
.admin-sidebar .nav-link.active { color: var(--accent); background: var(--accent-dim); border-left-color: var(--accent); }
.admin-sidebar .nav-section {
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: #334155;
    padding: 16px 18px 4px;
    font-weight: 600;
}
.admin-main { margin-left: 230px; flex: 1; display: flex; flex-direction: column; }
.admin-topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}
.admin-topbar h6 { font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 700; }
.admin-content { padding: 20px; }
.dash-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}
.stat-num {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
}
.stat-label { font-size: .75rem; color: var(--muted); font-weight: 500; }

/* ─── TABLES ─── */
.table { --bs-table-bg: transparent; --bs-table-striped-bg: transparent; --bs-table-hover-bg: rgba(255,255,255,.03); color: var(--text); }
.table > :not(caption) > * > * { background-color: transparent !important; border-color: var(--border); color: var(--text); }
.table-dark-custom { color: var(--text); }
.table-dark-custom th {
    background: var(--bg) !important;
    border-color: var(--border) !important;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--muted) !important;
    padding: 11px 16px;
    font-weight: 700;
}
.table-dark-custom td { border-color: var(--border) !important; padding: 13px 16px; vertical-align: middle; font-size: .87rem; color: var(--text) !important; }
.table-dark-custom tbody tr { background: transparent !important; }
.table-dark-custom tbody tr:hover { background: rgba(255,255,255,.03) !important; }
.table-dark-custom tbody tr td { background: transparent !important; }
.table-responsive { border-radius: 10px; overflow: hidden; }
.dash-card .table-responsive { margin: -1px; }

/* ─── BADGES ─── */
.badge-active  { background: rgba(22,217,127,.12);  color: var(--accent);   border: 1px solid rgba(22,217,127,.3); border-radius: 6px; padding: 3px 10px; font-size: .75rem; font-weight: 600; }
.badge-pending { background: rgba(251,191,36,.12);  color: #fbbf24;          border: 1px solid rgba(251,191,36,.3); border-radius: 6px; padding: 3px 10px; font-size: .75rem; font-weight: 600; }
.badge-failed  { background: rgba(239,68,68,.12);   color: #f87171;          border: 1px solid rgba(239,68,68,.3); border-radius: 6px; padding: 3px 10px; font-size: .75rem; font-weight: 600; }

/* ─── ALERTS ─── */
.alert { border: none; border-radius: 10px; font-size: .88rem; }
.alert-success { background: rgba(22,217,127,.1);  color: #16d97f; }
.alert-danger  { background: rgba(239,68,68,.12);  color: #f87171; }
.alert-info    { background: rgba(59,130,246,.12);  color: #93c5fd; }
.alert-warning { background: rgba(251,191,36,.1);   color: #fbbf24; }

/* ─── FOOTER ─── */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); color: var(--text); }
.site-footer .text-muted { color: var(--text) !important; }
.site-footer a { color: var(--text) !important; text-decoration: none; }
.site-footer a:hover { color: var(--accent) !important; }
.site-footer h6 { color: var(--text) !important; }
.site-footer p { color: var(--text) !important; }
.disclaimer { background: rgba(22,217,127,.05); border: 1px solid rgba(22,217,127,.15); color: var(--text) !important; }

/* ─── CURRENCY SWITCHER ─── */
.currency-switcher { display: inline-block; }
.currency-btn {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 14px;
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: border-color .2s;
}
.currency-btn:hover { border-color: var(--accent); }
.currency-flag { font-size: 1rem; }
.currency-menu {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    padding: 6px !important;
    min-width: 180px;
    box-shadow: 0 8px 32px rgba(0,0,0,.4) !important;
}
.currency-menu .dropdown-item {
    color: var(--text) !important;
    border-radius: 7px;
    padding: 10px 14px;
    font-size: .85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background .15s;
}
.currency-menu .dropdown-item:hover { background: rgba(255,255,255,.05) !important; }
.currency-menu .dropdown-item.active { background: var(--accent-dim) !important; color: var(--accent) !important; }

/* ─── MOBILE NAV DRAWER ─── */
.mob-menu-btn {
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.mob-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all .25s;
}

.mob-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 999;
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity .3s;
}
.mob-overlay.open { display: block; opacity: 1; }

.mob-drawer {
    position: fixed;
    top: 0; right: 0;
    width: 280px;
    height: 100vh;
    background: var(--surface);
    border-left: 1px solid var(--border);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
}
.mob-drawer.open { transform: translateX(0); }

.mob-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px;
    border-bottom: 1px solid var(--border);
}
.mob-drawer-brand {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text);
}
.mob-drawer-close {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color .2s, background .2s;
}
.mob-drawer-close:hover { color: var(--text); background: rgba(255,255,255,.05); }

.mob-drawer-nav {
    display: flex;
    flex-direction: column;
    padding: 16px 12px;
    flex: 1;
    gap: 4px;
}
.mob-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    transition: background .2s, color .2s;
}
.mob-nav-link i { font-size: 1rem; width: 20px; text-align: center; }
.mob-nav-link:hover { background: rgba(255,255,255,.05); color: var(--text); }
.mob-nav-link.accent { color: var(--accent); }
.mob-nav-link.accent:hover { background: var(--accent-dim); }
.mob-nav-link.danger { color: #f87171; }
.mob-nav-link.danger:hover { background: rgba(239,68,68,.08); }

.mob-drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    font-size: .75rem;
    color: var(--muted);
}

/* ─── MOBILE ─── */
@media (max-width: 767px) {
    .admin-sidebar { left: -260px; width: 260px; }
    .admin-sidebar.open { left: 0; }
    .admin-main { margin-left: 0; }
    .admin-content { padding: 16px; }
    .cat-card.popular { transform: none; }
    .booking-code-box .code { font-size: 1.4rem; letter-spacing: 2px; }
    .hero { padding: 48px 0 40px; }
    .hero h1 { font-size: 1.9rem; }
}
