:root {
    --bg-main: #070b1f;
    --bg-main-soft: #0a0e27;
    --bg-card: #151b34;
    --bg-card-dark: #0f1428;
    --bg-card-soft: #1d2442;
    --border: #2a2f4a;
    --border-soft: rgba(255, 255, 255, 0.08);
    --text-main: #f2f5f7;
    --text-body: #c9cfdb;
    --text-muted: #8f96a8;
    --primary: #00d4aa;
    --primary-dark: #00b892;
    --accent: #ff6b4a;
    --danger: #ff4444;
    --success: #00d4aa;
    --warning: #facc15;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
    --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.18);
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(0, 212, 170, 0.08), transparent 35%),
        radial-gradient(circle at top right, rgba(255, 107, 74, 0.08), transparent 35%),
        var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
}

.container {
    width: min(1220px, 92%);
    margin: 0 auto;
}

select.form-control,
input.form-control,
textarea.form-control {
    -webkit-appearance: auto;
    appearance: auto;
    min-height: 46px;
    touch-action: manipulation;
}

select {
    background-color: var(--bg-card-dark);
    color: #fff;
}

/* HEADER / NAV */
.header {
    background: rgba(15, 20, 40, 0.96);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(14px);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo img {
    height: 44px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.logo span {
    display: inline-block;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    color: #ffffff;
    letter-spacing: -0.5px;
}

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

.nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex-wrap: nowrap;
    position: relative;
}

.nav a,
.nav span {
    color: var(--text-body);
    text-decoration: none;
    font-size: 14px;
    font-weight: 650;
    white-space: nowrap;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--primary);
}

.premium-link {
    color: var(--accent) !important;
    font-weight: 900;
    background: rgba(255, 107, 74, 0.12);
    padding: 6px 12px;
    border-radius: 30px;
}

.user-label {
    color: var(--primary) !important;
    font-weight: 800;
}

/* NAV DROPDOWN */
.nav-more {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 3000;
}

.nav-more-btn {
    background: #1a1f3a;
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 900;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s;
}

.nav-more-btn:hover {
    background: var(--primary);
    color: var(--bg-main);
    border-color: var(--primary);
}

.nav-more-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #1a1f3a;
    border: 1px solid var(--border);
    border-radius: 12px;
    min-width: 185px;
    z-index: 9999;
    box-shadow: 0 20px 40px rgba(0,0,0,0.45);
    padding: 8px;
}

.nav-more-menu.show {
    display: block;
}

.nav-more-menu a {
    display: block;
    padding: 11px 13px;
    border-radius: 8px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.nav-more-menu a:hover {
    background: var(--bg-card-dark);
    color: var(--primary);
}

/* LAYOUT */
.main-content {
    min-height: 72vh;
    padding: 36px 0;
}

.section {
    margin: 64px 0;
}

.page-title {
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.05;
    margin-bottom: 14px;
    letter-spacing: -1.2px;
}

.page-subtitle {
    color: var(--text-muted);
    max-width: 760px;
    margin-bottom: 30px;
    font-size: 16px;
}

.section-title {
    font-size: clamp(26px, 4vw, 36px);
    margin-bottom: 25px;
    letter-spacing: -0.6px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-main);
    padding: 11px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 900;
    border: none;
    cursor: pointer;
    transition: 0.2s ease;
    min-height: 42px;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 212, 170, 0.22);
}

.btn-secondary {
    background: var(--bg-card-dark);
    color: var(--primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-soft);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

/* CARDS */
.card,
.widget,
.tip-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005)), var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-soft);
}

.widget {
    margin-bottom: 22px;
}

.widget h3 {
    color: var(--primary);
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
    margin-top: 25px;
}

.tip-card {
    transition: 0.22s ease;
    position: relative;
    overflow: hidden;
}

.tip-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 170, 0.5);
}

.tip-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.07), transparent 35%);
    opacity: 0;
    transition: 0.2s ease;
    pointer-events: none;
}

.tip-card:hover::before {
    opacity: 1;
}

.metric-box {
    background: var(--bg-card-dark);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
}

.match-header {
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.match-teams {
    color: var(--primary);
    font-weight: 900;
    font-size: 17px;
}

.pick-box {
    background: rgba(15, 20, 40, 0.92);
    padding: 14px;
    border-radius: var(--radius-sm);
    margin: 16px 0;
    border-left: 3px solid var(--accent);
    position: relative;
    z-index: 1;
}

.odds {
    color: var(--accent);
    font-size: 20px;
    font-weight: 950;
}

/* LIVE MATCH STRIP */
.live-games-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.live-games-strip::-webkit-scrollbar {
    height: 6px;
}

.live-games-strip::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 999px;
}

.live-game-card {
    min-width: 260px;
    max-width: 280px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 12px !important;
}

.live-game-card .match-teams {
    font-size: 13px;
    line-height: 1.35;
}

.live-score {
    font-size: 22px;
    font-weight: 900;
    color: var(--primary);
    white-space: nowrap;
}

/* LIVE STRIP SCROLL CONTROLS */
.live-strip-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.scroll-btn {
    background: var(--bg-card-dark);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-body);
    font-size: 20px;
    flex-shrink: 0;
}

.scroll-btn:hover {
    background: var(--primary);
    color: var(--bg-main);
    border-color: var(--primary);
}

.live-strip-scroll {
    flex: 1;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.live-strip-scroll::-webkit-scrollbar {
    display: none;
}

/* BADGES */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.25px;
}

.badge-premium {
    background: var(--accent);
    color: #fff;
}

.badge-free {
    background: rgba(255,255,255,0.08);
    color: var(--primary);
}

.badge-pending {
    background: #facc1520;
    color: var(--warning);
}

.badge-approved {
    background: #00d4aa20;
    color: var(--success);
}

.badge-rejected {
    background: #ff444420;
    color: var(--danger);
}

/* ANALYTICS */
.metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 10px 0;
}

.progress {
    width: 100%;
    height: 9px;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 999px;
}

.stat-value {
    font-size: 34px;
    font-weight: 950;
    color: var(--primary);
}

.stat-label {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 4px;
}

/* FORMS */
.form-card {
    max-width: 460px;
    margin: 60px auto;
    background: var(--bg-card);
    padding: 42px;
    border-radius: 20px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow);
}

.form-title {
    text-align: center;
    color: var(--primary);
    font-size: 30px;
    margin-bottom: 10px;
}

.form-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 800;
}

.form-control {
    width: 100%;
    padding: 13px 14px;
    background: var(--bg-card-dark);
    color: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    font-size: 15px;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.12);
}

/* TABLES */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    min-width: 650px;
}

.custom-table th,
.custom-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 14px;
}

.custom-table th {
    color: var(--primary);
    background: var(--bg-card-dark);
    font-weight: 900;
}

/* ALERTS */
.alert {
    padding: 13px 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-size: 14px;
}

.alert-error {
    background: #ff444420;
    border: 1px solid rgba(255, 68, 68, 0.4);
    color: #ff8a8a;
}

.alert-success {
    background: #00d4aa20;
    border: 1px solid rgba(0, 212, 170, 0.4);
    color: var(--success);
}

/* FOOTER */
.footer {
    background: rgba(15, 20, 40, 0.95);
    border-top: 1px solid var(--border);
    padding: 35px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer a:hover {
    color: var(--primary);
}

/* MOBILE STICKY BOTTOM BUTTON */
.mobile-sticky-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(7, 11, 31, 0.96);
    backdrop-filter: blur(12px);
    padding: 10px 16px;
    text-align: center;
    z-index: 1100;
    display: none;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.sticky-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), #ff4a2a);
    color: #fff;
    font-weight: 900;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    width: 90%;
    max-width: 300px;
    text-align: center;
    transition: transform 0.2s;
    box-shadow: 0 4px 12px rgba(255, 107, 74, 0.3);
}

.sticky-btn:active {
    transform: scale(0.98);
}

/* MOBILE STICKY TOP BAR */
.mobile-sticky-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(7, 11, 31, 0.98);
    backdrop-filter: blur(12px);
    z-index: 1050;
    display: none;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
}

.mobile-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 26px;
    cursor: pointer;
    padding: 0 10px 0 0;
}

.mobile-logo {
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.mobile-upgrade-mini {
    background: var(--accent);
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 900;
    font-size: 13px;
}

.mobile-menu-dropdown {
    display: none;
    flex-direction: column;
    background: rgba(10, 14, 39, 0.98);
    padding: 8px 0;
    border-top: 1px solid var(--border);
}

.mobile-menu-dropdown a {
    color: var(--text-body);
    padding: 12px 20px;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid var(--border-soft);
}

.mobile-menu-dropdown a:active {
    background: var(--primary-dark);
    color: #fff;
}

.mobile-menu-dropdown.show {
    display: flex;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    .tips-grid {
        grid-template-columns: 1fr;
    }
    .header-content {
        gap: 16px;
    }
    .nav {
        gap: 12px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
        padding-bottom: 80px;
        padding-top: 65px;
    }
    .container {
        width: 100%;
        padding-left: 14px;
        padding-right: 14px;
    }
    .main-content {
        padding: 20px 0;
    }
    .header {
        display: none;
    }
    .mobile-sticky-top {
        display: flex;
    }
    .mobile-sticky-bottom {
        display: block;
    }
    .page-title {
        font-size: 27px;
        line-height: 1.12;
        letter-spacing: -0.5px;
    }
    .page-subtitle {
        font-size: 14px;
        line-height: 1.7;
    }
    .section {
        margin: 32px 0;
    }
    .section-title {
        font-size: 23px;
    }
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 18px;
    }
    .card,
    .widget,
    .tip-card,
    .metric-box {
        padding: 15px;
        border-radius: 14px;
    }
    .tip-card:hover {
        transform: none;
    }
    .pick-box {
        padding: 12px;
        margin: 12px 0;
    }
    .match-teams {
        font-size: 14px;
        line-height: 1.4;
    }
    .odds {
        font-size: 17px;
    }
    .btn {
        padding: 10px 14px;
        font-size: 13px;
        border-radius: 10px;
        min-height: 40px;
    }
    .live-game-card {
        min-width: 225px;
        max-width: 245px;
        padding: 11px !important;
    }
    .live-score {
        font-size: 19px;
    }
    .form-card {
        padding: 28px 20px;
        margin: 34px auto;
    }
    .scroll-btn {
        display: none;
    }
}

@media (max-width: 640px) {
    .scroll-btn {
        display: none;
    }
}

@media (max-width: 420px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    .logo {
        max-width: 52%;
    }
    .logo img {
        height: 30px;
    }
    .logo span {
        font-size: 19px;
    }
    .page-title {
        font-size: 24px;
    }
    .section-title {
        font-size: 21px;
    }
    .card,
    .widget,
    .tip-card,
    .metric-box {
        padding: 13px;
    }
    .btn {
        width: 100%;
        text-align: center;
    }
    .live-game-card {
        min-width: 210px;
        max-width: 225px;
    }
}

/* Contact email styling */
.contact-email {
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.2s;
}

.contact-email:hover {
    opacity: 0.8;
    text-decoration: underline;
}


/* ============================================
   FLASHSCORE-STYLE COMPACT CARDS
   No backend changes – pure CSS performance
   ============================================ */

/* Compact card base */
.card-compact {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    transition: all 0.2s ease;
}

.card-compact:hover {
    background: var(--bg-card-soft);
    border-color: var(--primary);
}

/* Match row – horizontal layout */
.match-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
}

.match-teams-compact {
    flex: 2;
    min-width: 0;
}

.match-teams-compact .team-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-teams-compact .team-name img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.match-teams-compact .vs-divider {
    font-size: 10px;
    color: var(--text-muted);
    margin: 0 4px;
}

/* Odds compact */
.odds-compact {
    text-align: right;
    min-width: 65px;
    flex-shrink: 0;
}

.odds-compact .odds-value {
    font-size: 16px;
    font-weight: 900;
    color: var(--accent);
    line-height: 1.2;
}

.odds-compact .confidence-badge {
    font-size: 10px;
    background: var(--bg-card-dark);
    padding: 2px 6px;
    border-radius: 20px;
    color: var(--text-muted);
    display: inline-block;
    margin-top: 4px;
}

/* Match meta – league, time, badge */
.match-meta-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 10px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-soft);
    padding-top: 8px;
}

.match-meta-compact .league-name {
    display: flex;
    align-items: center;
    gap: 4px;
}

.match-meta-compact .league-name img {
    width: 14px;
    height: 14px;
}

.match-meta-compact .pick-badge {
    background: var(--primary-dark);
    color: var(--bg-main);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 9px;
    text-transform: uppercase;
}

/* VIP badge mini */
.vip-badge-mini {
    background: var(--accent);
    color: #fff;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 6px;
    font-weight: 700;
}

.free-badge-mini {
    background: var(--bg-card-dark);
    color: var(--primary);
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 6px;
    font-weight: 700;
}

/* Live game compact */
.live-game-compact {
    min-width: 240px;
    background: var(--bg-card);
    border-left: 3px solid var(--danger);
    padding: 8px 12px;
}

.live-score-compact {
    font-size: 18px;
    font-weight: 900;
    color: var(--primary);
    font-family: monospace;
}

.live-minute {
    font-size: 10px;
    background: var(--danger);
    padding: 2px 6px;
    border-radius: 10px;
    color: white;
}

/* Grid adjustments for compact cards */
.tips-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .tips-grid-compact {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .match-teams-compact .team-name {
        font-size: 12px;
    }
    
    .odds-compact .odds-value {
        font-size: 14px;
    }
}

/* ============================================
   COMPACT SIDEBAR LISTS (Trending & Recently Won)
   ============================================ */

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

.compact-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card-dark);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.compact-list-item:hover {
    border-left-color: var(--primary);
    background: var(--bg-card-soft);
}

.compact-list-info {
    flex: 2;
    min-width: 0;
}

.compact-list-teams {
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-list-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.compact-list-meta img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.compact-list-value {
    text-align: right;
    flex-shrink: 0;
}

.compact-list-value .value-number {
    font-size: 16px;
    font-weight: 900;
    color: var(--success);
}

.compact-list-value .value-label {
    font-size: 10px;
    color: var(--text-muted);
    display: block;
}

.trending-pick {
    font-size: 12px;
    color: var(--primary);
    margin-top: 4px;
    font-weight: 600;
}

.won-badge {
    background: var(--success);
    color: var(--bg-main);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    display: inline-block;
}

/* Make compact cards clickable */
a.card-compact {
    transition: transform 0.15s ease, border-color 0.2s;
}

a.card-compact:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    background: var(--bg-card-soft);
}


/* =================================================
   FINAL MOBILE OPTIMIZATION PATCH
   ================================================= */

@media (max-width: 768px) {

    /* SECTION SPACING */
    .section {
        margin: 22px 0;
    }

    /* HEADINGS */
    .section-title {
        font-size: 20px !important;
        line-height: 1.2;
    }

    /* CARD GLOBAL */
    .card,
    .card-compact,
    .compact-list-item {
        padding: 10px !important;
        border-radius: 12px;
    }

    /* LIVE GAMES */
    .live-game-compact {
        min-width: 185px;
        max-width: 185px;
        padding: 8px;
    }

    .live-score-compact {
        font-size: 15px;
    }

    .live-game-compact .live-minute {
        font-size: 9px;
    }

    .live-game-compact .match-teams {
        font-size: 11px;
    }

    /* PREDICTION GRID */
    .tips-grid-compact {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        scroll-snap-type: x mandatory;
        padding-bottom: 6px;
    }

    .tips-grid-compact::-webkit-scrollbar {
        display: none;
    }

    .tips-grid-compact .card-compact {
        min-width: 240px;
        max-width: 240px;
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    /* MATCH ROW */
    .match-row {
        gap: 8px;
        align-items: center;
    }

    /* TEAM NAMES */
    .match-teams-compact .team-name {
        font-size: 11px;
        gap: 6px;
    }

    /* TEAM LOGOS */
    .match-teams-compact .team-name img {
        width: 16px;
        height: 16px;
    }

    /* LEAGUE LOGOS */
    .match-meta-compact .league-name img,
    .compact-list-meta img {
        width: 11px;
        height: 11px;
    }

    /* ODDS */
    .odds-compact {
        min-width: 52px;
    }

    .odds-compact .odds-value {
        font-size: 12px;
    }

    .odds-compact .confidence-badge {
        font-size: 8px;
        padding: 2px 5px;
    }

    /* PICK BADGES */
    .pick-badge,
    .vip-badge-mini,
    .free-badge-mini {
        font-size: 8px !important;
        padding: 2px 5px !important;
    }

    /* TRENDING / RECENT */
    .compact-list {
        gap: 6px;
    }

    .compact-list-item {
        padding: 8px;
    }

    .compact-list-teams {
        font-size: 11px;
    }

    .compact-list-meta {
        font-size: 9px;
        gap: 5px;
    }

    .compact-list-value .value-number {
        font-size: 12px;
    }

    .compact-list-value .value-label {
        font-size: 8px;
    }

    .trending-pick {
        font-size: 10px;
    }

    /* HERO BUTTONS */
    .btn {
        min-height: 36px;
        font-size: 12px;
        padding: 8px 12px;
    }

    /* STATS */
    .stat-value {
        font-size: 24px;
    }

    .stat-label {
        font-size: 11px;
    }

    /* REMOVE EXCESSIVE HEIGHT */
    .grid-2 {
        gap: 12px;
    }

}

.live-game-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.live-league {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 95px;
}

.live-game-body {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
}

.live-team {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-main);
}

.live-team span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-team-away {
    justify-content: flex-end;
    text-align: right;
}

.live-team-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 2px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .live-game-compact {
        min-width: 190px;
        max-width: 190px;
        border-radius: 12px;
    }

    .live-score-compact {
        font-size: 14px;
    }
}

/* FINAL LIVE GAMES CARD FIX */

.live-card-pro {
    min-width: 260px;
    max-width: 260px;
    flex: 0 0 auto;
    background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01)), var(--bg-card);
    border: 1px solid var(--border-soft);
    border-left: 3px solid var(--danger);
    border-radius: 14px;
    padding: 10px;
    scroll-snap-align: start;
}

.live-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.live-pill {
    background: var(--danger);
    color: #fff;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
}

.live-league-name {
    color: var(--text-muted);
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-card-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
}

.live-team-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
    text-align: center;
}

.live-team-block span {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-main);
    max-width: 82px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-logo-pro {
    width: 38px;
    height: 38px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 3px;
}

.live-score-pro {
    color: var(--primary);
    font-size: 20px;
    font-weight: 950;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .live-card-pro {
        min-width: 210px;
        max-width: 210px;
        padding: 9px;
    }

    .live-logo-pro {
        width: 30px;
        height: 30px;
    }

    .live-score-pro {
        font-size: 16px;
    }

    .live-team-block span {
        font-size: 11px;
        max-width: 62px;
    }
}

/* =================================================
   ENTERPRISE AI CARD UPGRADE
   ================================================= */

.card-compact.enterprise-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.02),
            rgba(255,255,255,0.01)
        ),
        var(--bg-card);
    backdrop-filter: blur(12px);
}

.card-compact.enterprise-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            135deg,
            rgba(0,212,170,0.06),
            transparent 35%,
            transparent 65%,
            rgba(255,107,74,0.05)
        );
    pointer-events: none;
}

.card-compact.enterprise-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0,212,170,0.5);
    box-shadow:
        0 8px 24px rgba(0,0,0,0.35),
        0 0 0 1px rgba(0,212,170,0.15);
}

/* AI HEADER */

.ai-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.ai-model-badge {
    background: rgba(0,212,170,0.12);
    color: var(--primary);
    border: 1px solid rgba(0,212,170,0.2);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .3px;
    text-transform: uppercase;
}

/* CONFIDENCE */

.confidence-ring {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.confidence-bar {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
}

.confidence-bar-fill {
    height: 100%;
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            #00d4aa,
            #00ffbf
        );
}

/* AI METRICS */

.ai-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 14px;
}

.ai-metric-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 8px;
}

.ai-metric-label {
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.ai-metric-value {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}

/* SCORELINE */

.predicted-scoreline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(0,212,170,0.12);
    border: 1px solid rgba(0,212,170,0.18);
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
    margin-top: 12px;
}

/* PREMIUM LOCK */

.vip-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(7,11,31,0.35),
            rgba(7,11,31,0.85)
        );

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    backdrop-filter: blur(4px);
    z-index: 5;
}

.vip-overlay-title {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
}

.vip-overlay-subtitle {
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    margin-bottom: 18px;
}

.vip-overlay-btn {
    background: linear-gradient(
        90deg,
        #00d4aa,
        #00ffbf
    );

    color: #041019;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
    font-size: 12px;
}

/* MOBILE */

@media (max-width: 768px) {

    .ai-metrics-grid {
        grid-template-columns: 1fr 1fr;
    }

    .predicted-scoreline {
        font-size: 12px;
    }
}

/* =================================================
   PREMIUM BETTING TERMINAL POLISH
   ================================================= */

.enterprise-card .match-row {
    position: relative;
    z-index: 2;
}

.enterprise-card .match-meta-compact {
    position: relative;
    z-index: 2;
}

.enterprise-card .pick-badge {
    background: rgba(0,212,170,0.13);
    border: 1px solid rgba(0,212,170,0.22);
    color: #00d4aa;
    font-weight: 900;
}

.enterprise-card .free-badge-mini,
.enterprise-card .vip-badge-mini {
    box-shadow: 0 0 14px rgba(0,212,170,0.18);
}

.enterprise-card .odds-value {
    font-weight: 950;
    letter-spacing: .3px;
}

.enterprise-card .ai-metric-box {
    transition: transform .15s ease, border-color .2s ease;
}

.enterprise-card:hover .ai-metric-box {
    border-color: rgba(0,212,170,0.15);
}

.enterprise-card:hover .confidence-bar-fill {
    box-shadow: 0 0 16px rgba(0,212,170,0.55);
}

.enterprise-card .predicted-scoreline {
    width: fit-content;
    box-shadow: 0 0 18px rgba(0,212,170,0.12);
}

.enterprise-card .ai-metric-value {
    font-variant-numeric: tabular-nums;
}

.enterprise-card .confidence-ring span {
    white-space: nowrap;
}

/* Better premium visual */
.enterprise-card:has(.vip-overlay) {
    border-color: rgba(255,107,74,0.35);
}

.badge-premium,
.vip-badge-mini {
    background: linear-gradient(90deg, #ff6b4a, #ffb347) !important;
    color: #111 !important;
    font-weight: 950;
}

/* Mobile premium cards */
@media (max-width: 768px) {
    .enterprise-card .ai-metrics-grid {
        gap: 6px;
    }

    .enterprise-card .ai-metric-box {
        padding: 7px;
    }

    .enterprise-card .ai-metric-value {
        font-size: 12px;
    }

    .enterprise-card .confidence-ring {
        gap: 6px;
    }
}


/* HOMEPAGE VIP LOCK FIX
   Replace heavy full-card blur overlay with compact non-blocking badge.
*/
.enterprise-card .vip-overlay {
    position: static !important;
    inset: auto !important;
    background: rgba(255, 107, 74, 0.10) !important;
    border: 1px solid rgba(255, 107, 74, 0.22) !important;
    border-radius: 10px !important;
    padding: 8px 10px !important;
    margin-top: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-direction: row !important;
    gap: 8px !important;
    backdrop-filter: none !important;
    z-index: auto !important;
}

.enterprise-card .vip-overlay-title {
    font-size: 11px !important;
    font-weight: 950 !important;
    color: #ffb347 !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

.enterprise-card .vip-overlay-subtitle {
    display: none !important;
}

.enterprise-card .vip-overlay-btn {
    padding: 5px 8px !important;
    font-size: 9px !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
}


/* GLOBAL VIP OVERLAY KILL SWITCH - HOMEPAGE READABILITY FIX */
.vip-overlay {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    background: rgba(255, 107, 74, 0.10) !important;
    border: 1px solid rgba(255, 107, 74, 0.25) !important;
    border-radius: 10px !important;
    padding: 8px 10px !important;
    margin-top: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-direction: row !important;
    gap: 8px !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 1 !important;
}

.vip-overlay-title {
    font-size: 11px !important;
    margin: 0 !important;
    color: #ffb347 !important;
    white-space: nowrap !important;
}

.vip-overlay-subtitle {
    display: none !important;
}

.vip-overlay-btn {
    padding: 5px 8px !important;
    font-size: 9px !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
}
