:root {
    /* World Cup 2026 Inspired Vibrant Theme - Updated to Viagogo/SeatGeek Specs */
    --primary-color: #D4AF37; /* Gold */
    --secondary-color: #FF7A00; /* Vibrant Orange - CTA, Heat */
    --gold-color: #D4AF37;
    --accent-color: #00B42A; /* Safety Green - Success, In Stock */
    --error-color: #F53F3F; /* Error Red - Low Stock */
    --text-color: #333333;
    --text-light: #ffffff;
    --bg-color: #ffffff;
    --bg-light: #F5F7FA;
    --bg-dark: #121212;
    
    /* Global Theme Additions */
    --grass-main: #2E7D32;
    --grass-pattern: url('../images/grass-pattern.svg');
    
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 4px 20px 0 rgba(15, 43, 91, 0.08);
    
    --card-radius: 8px;
    --transition-speed: 0.2s;
}

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

body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text-light); /* Changed to white for contrast on green background >= 4.5:1 */
    background-color: var(--grass-main);
    background-image: radial-gradient(1100px 520px at 18% -10%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 60%),
        linear-gradient(135deg, rgba(46, 125, 50, 0.96), rgba(27, 94, 32, 0.96));
    background-attachment: fixed;
    will-change: background-position;
    line-height: 1.6;
    overflow-x: clip;
    position: relative;
    z-index: 0; /* Base z-index */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: var(--grass-pattern),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, rgba(0, 0, 0, 0) 1px 8px),
        repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.06) 0 1px, rgba(0, 0, 0, 0) 1px 11px);
    background-repeat: repeat;
    background-size: 360px 360px, 8px 8px, 11px 11px;
    opacity: 0.22;
    filter: saturate(1.08) contrast(1.05);
    pointer-events: none;
    z-index: 0;
}

#hot-matches-title {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    text-align: center;
    margin: 30px 0;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
    z-index: 1; /* Ensure content stays above background */
}

.bg-light {
    background-color: var(--bg-light);
}

/* Dynamic Gradients */
.text-gradient {
    color: var(--secondary-color);
    display: inline-block;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.live-ticker-container {
    background: var(--bg-dark);
    color: var(--secondary-color);
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.live-ticker-track {
    display: flex;
    white-space: nowrap;
    animation: marquee 25s linear infinite;
    gap: 50px;
}

.ticker-item {
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.ticker-item::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    margin-right: 10px;
    animation: pulse-glow 1.5s infinite;
}

/* Fan Community Section */
.fan-community {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.community-card {
    background: #fff;
    border-radius: var(--card-radius);
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

.community-card h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 22px;
}

/* Polls */
.poll-option {
    background: var(--bg-color);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}

.poll-option:hover {
    background: #e2e8f0;
}

.poll-fill {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    background: rgba(63, 0, 255, 0.1);
    z-index: 0;
    width: 0%;
    transition: width 1s ease-out;
}

.poll-text { position: relative; z-index: 1; }
.poll-percent { position: relative; z-index: 1; color: var(--primary-color); }

/* Live Chat */
.chat-box {
    height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-right: 10px;
}

.chat-msg {
    background: var(--bg-color);
    padding: 12px 15px;
    border-radius: 12px;
    border-bottom-left-radius: 2px;
    font-size: 14px;
    animation: slideUp 0.3s ease;
}

.chat-user {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 4px;
    font-size: 12px;
}

.chat-input-area {
    display: flex;
    margin-top: 15px;
    gap: 10px;
}

.chat-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 20px;
    outline: none;
}

.chat-btn {
    background: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 0 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
}

/* Urgency Popup */
.urgency-popup {
    position: fixed;
    bottom: 30px;
    left: -400px;
    background: #fff;
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 320px;
    z-index: 9999;
    transition: left 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.urgency-popup.show {
    left: 30px;
}

.up-icon {
    font-size: 28px;
    animation: pulse-glow 2s infinite;
    border-radius: 50%;
}

.up-content {
    flex: 1;
}

.up-title {
    font-size: 13px;
    color: #666;
    margin-bottom: 3px;
}

.up-desc {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 4px;
}

.up-time {
    font-size: 11px;
    color: #999;
}

/* Animations */
@keyframes pulse-glow {
    0% { box-shadow: 0 0 5px rgba(255, 122, 0, 0.3); }
    50% { box-shadow: 0 0 15px rgba(255, 122, 0, 0.6); }
    100% { box-shadow: 0 0 5px rgba(255, 122, 0, 0.3); }
}

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

/* Navbar - Glassmorphism */
.navbar {
    background-color: rgba(255, 255, 255, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 10000;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    transition: all var(--transition-speed);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 44px; /* Base height for desktop, made more compact */
    position: relative;
}

.navbar nav {
    display: none;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    min-height: 30px;
}

.logo .logo-fan {
    color: var(--secondary-color) !important;
    font-weight: 900;
    letter-spacing: -0.2px;
}

.logo .logo-year {
    color: var(--gold-color) !important;
    font-weight: 900;
    letter-spacing: -0.2px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 16px;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 4px 16px;
    border-radius: 8px;
    background: transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a:hover, nav a:focus-visible {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(15, 43, 91, 0.2);
    transform: translateY(-2px);
    outline: none;
}

nav a:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(15, 43, 91, 0.1);
}

nav a[disabled], nav a.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-actions #nav-login,
.nav-actions .btn-login[href="login.html"],
.nav-actions .btn-login[href="./login.html"] {
    display: none !important;
}

.nav-search-mini {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    width: 46px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
    overflow: hidden;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    z-index: 10;
}

.nav-search-mini.is-open {
    width: calc(100% - 24px);
    background: #fff;
}



.nav-search {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f7f8fa;
    border: 1px solid #e6eaf0;
    border-radius: 999px;
    padding: 6px 8px 6px 12px;
    width: 260px;
    transition: box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.nav-search:focus-within {
    background: #fff;
    border-color: rgba(15, 43, 91, 0.22);
    box-shadow: 0 10px 22px rgba(15, 43, 91, 0.10);
}

.nav-search input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    min-width: 0;
    font-size: 14px;
    color: #111827;
}

.page-matches .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}

.page-matches .matches-page-container {
    margin-top: 0 !important;
    padding-top: 72px;
}

.nav-search .nav-search-clear {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: rgba(17, 24, 39, 0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-search .nav-search-clear:active {
    transform: scale(0.98);
}

.nav-search .nav-search-submit {
    border: none;
    background: var(--secondary-color);
    color: #fff;
    width: 36px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-search .nav-search-submit:active {
    transform: scale(0.99);
}

.nav-toggle-btn {
    display: inline-flex;
    position: fixed;
    top: 80px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: #fff;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 10001;
    transition: background 0.3s ease;
    touch-action: none;
}

.nav-toggle-btn svg {
    stroke: currentColor;
}

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

.site-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 20000;
    display: none;
}

.site-drawer {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: min(340px, 86vw);
    background: #fff;
    z-index: 20001;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    display: flex;
    flex-direction: column;
}

body.drawer-open .site-drawer-overlay {
    display: block;
}

body.drawer-open .site-drawer {
    transform: translateX(0);
}

.site-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px 10px;
    border-bottom: 1px solid #f0f2f5;
}

.site-drawer-title {
    font-size: 14px;
    font-weight: 800;
    color: #d4af37;
    letter-spacing: 0.2px;
}

.drawer-account-head {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    border-radius: 99px;
    border: 1px solid rgba(15, 43, 91, 0.12);
    background: #fff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.drawer-account-head:active {
    transform: scale(0.98);
    background: #f8fafc;
}

.drawer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 900;
    user-select: none;
}

.drawer-login-text {
    color: var(--primary-color);
    font-weight: 900;
    font-size: 14px;
    padding-left: 0px;
    padding-right: 8px;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #e9edf2;
    background: #fff;
    color: #333;
    cursor: pointer;
}

.site-drawer-body {
    padding: 12px 14px 18px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    flex: 1;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.site-drawer-body::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.drawer-section {
    margin-bottom: 14px;
}

.drawer-section-title {
    font-size: 12px;
    font-weight: 800;
    color: #1b2b46;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #eef1f5;
    background: #f9fafb;
    color: #d4af37;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.drawer-link.is-active {
    background: rgba(15, 43, 91, 0.06);
    border-color: rgba(15, 43, 91, 0.18);
}

.drawer-link:active {
    transform: scale(0.99);
}

.drawer-search {
    display: flex;
    gap: 8px;
    align-items: center;
}

.drawer-search input {
    flex: 1;
    height: 44px;
    border-radius: 14px;
    border: 1px solid #eef1f5;
    padding: 0 12px;
    font-size: 15px;
    outline: none;
    background: #fff;
    color: #111827;
}

.drawer-search .search-clear {
    width: 44px;
    height: 44px;
    min-height: 44px;
    border-radius: 14px;
    border: 1px solid #eef1f5;
    background: #fff;
    color: rgba(17, 24, 39, 0.65);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.drawer-search .search-submit {
    height: 44px;
    min-height: 44px;
    border-radius: 14px;
    width: 44px;
    padding: 0;
    border: none;
    background: var(--accent-color);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.drawer-search .search-clear:active,
.drawer-search .search-submit:active {
    transform: scale(0.99);
}

.site-drawer .filter-section {
    background: transparent;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.site-drawer .filter-group {
    width: 100%;
}

.site-drawer .filter-group select {
    min-width: 0;
    width: 100%;
    border-radius: 12px;
    height: 44px;
}

.btn-login {
    text-decoration: none;
    background-color: var(--accent-color); /* Changed to green */
    color: #fff;
    padding: 0 15px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn-login:hover {
    filter: brightness(0.96);
}

/* Banner */
.banner {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(63, 0, 255, 0.7));
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 100%);
    opacity: 0.6;
    pointer-events: none;
}

.banner-content {
    position: relative;
    z-index: 2;
    animation: slideUp 0.8s ease-out;
}

.banner h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.btn-primary {
    background: linear-gradient(45deg, var(--secondary-color), #00d2ff);
    color: var(--text-color);
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 800;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.4);
    transition: all var(--transition-speed);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.6);
}

/* Sections */
section {
    padding: 40px 0;
}

section h2 {
    text-align: center;
    margin-bottom: 32px;
    font-size: 32px;
    font-weight: 800;
    color: var(--text-color);
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Matches Grid */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.matches-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
}

.matches-layout > * {
    min-width: 0;
}

.matches-page-head {
    margin-bottom: 10px;
}

.matches-subhead {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 12px;
}

.subhead-pill {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 43, 91, 0.10);
    color: #d4af37;
    border-radius: 999px;
    padding: 8px 10px;
    font-weight: 800;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    white-space: normal;
}

.subhead-pill.subhead-muted {
    color: rgba(15, 43, 91, 0.75);
    font-weight: 700;
}

.subhead-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 180, 42, 0.14);
}

.subhead-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 900;
}

.subhead-link:hover {
    text-decoration: underline;
}

.matches-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 43, 91, 0.10);
    border-radius: 16px;
    padding: 14px;
    color: #d4af37;
    box-shadow: 0 10px 24px rgba(15, 43, 91, 0.08);
}

.promo-card {
    background: linear-gradient(135deg, rgba(255, 122, 0, 0.18), rgba(15, 43, 91, 0.10)), rgba(255, 255, 255, 0.96);
}

.promo-title {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -0.2px;
    margin-bottom: 6px;
}

.promo-desc {
    font-size: 13px;
    color: rgba(15, 43, 91, 0.80);
    line-height: 1.35;
    margin-bottom: 10px;
}

.promo-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.promo-btn {
    background: var(--accent-color); /* Unified green */
    color: #fff;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.promo-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 900;
}

.promo-link:hover {
    text-decoration: underline;
}

.sidebar-title {
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.sidebar-desc {
    font-size: 13px;
    color: rgba(15, 43, 91, 0.80);
    line-height: 1.35;
    margin-bottom: 10px;
}

.sidebar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: rgba(15, 43, 91, 0.06);
    border: 1px solid rgba(15, 43, 91, 0.12);
    color: var(--primary-color);
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 900;
    min-height: 40px;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-links a {
    text-decoration: none;
    color: rgba(15, 43, 91, 0.92);
    font-weight: 800;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(15, 43, 91, 0.10);
}

.sidebar-links a:hover {
    border-color: rgba(255, 122, 0, 0.35);
}

.content-section {
    margin-top: 22px;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.section-title {
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -0.2px;
}

.section-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 900;
    text-decoration: none;
    font-size: 12px;
}

.section-link:hover {
    text-decoration: underline;
}

.updates-carousel {
    display: flex;
    gap: 12px;
    overflow: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.updates-carousel::-webkit-scrollbar {
    display: none;
}

.updates-carousel .match-card {
    min-width: 280px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.quick-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.quick-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 43, 91, 0.10);
    border-radius: 16px;
    padding: 14px;
    text-decoration: none;
    color: #d4af37;
    box-shadow: 0 10px 24px rgba(15, 43, 91, 0.08);
}

.quick-card-title {
    font-weight: 900;
    font-size: 14px;
    margin-bottom: 4px;
}

.quick-card-desc {
    color: rgba(15, 43, 91, 0.78);
    font-size: 13px;
    line-height: 1.35;
}

.newsletter-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 43, 91, 0.10);
    border-radius: 16px;
    padding: 16px;
    color: #d4af37;
    box-shadow: 0 10px 24px rgba(15, 43, 91, 0.08);
}

.newsletter-title {
    font-weight: 900;
    font-size: 16px;
    margin-bottom: 4px;
}

.newsletter-desc {
    font-size: 13px;
    color: rgba(15, 43, 91, 0.78);
    line-height: 1.35;
    margin-bottom: 12px;
}

.newsletter-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.newsletter-btn {
    background: var(--secondary-color);
    color: #fff;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 900;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.newsletter-link {
    color: var(--primary-color);
    font-weight: 900;
    text-decoration: none;
}

.newsletter-link:hover {
    text-decoration: underline;
}

/* Premium Match Card */
.match-card {
    border: none;
    border-radius: var(--card-radius);
    padding: 0;
    background: #fff;
    color: var(--text-color); /* Ensure dark text on white card */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all var(--transition-speed) cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
    text-decoration: none;
}

.match-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.match-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

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

.hot-match-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ffebeb;
    color: #e4393c;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #e4393c;
    z-index: 10;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 5px rgba(228, 57, 60, 0.2);
}

.match-card.out-of-stock {
    opacity: 0.65;
    filter: grayscale(100%);
    cursor: not-allowed;
}

.match-card.out-of-stock:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border-color: #f0f0f0;
}

.match-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

@media (max-width: 980px) {
    .matches-layout {
        grid-template-columns: 1fr;
    }
    .matches-sidebar {
        order: 2;
    }
}

.match-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.match-mobile-header {
    display: none;
}

.mmh-date {
    font-weight: 900;
    color: #d4af37;
    font-size: 13px;
    letter-spacing: -0.1px;
    margin-bottom: 10px;
}

.mmh-title {
    font-size: 16px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.2px;
    line-height: 1.25;
    margin-bottom: 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.mmh-flags {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 8px;
    vertical-align: middle;
}

.mmh-team {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.mmh-team-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mmh-vs {
    font-size: 12px;
    font-weight: 900;
    color: rgba(148, 163, 184, 0.95);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.mmh-flag {
    width: 22px;
    height: 16px;
    border-radius: 3px;
    object-fit: cover;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    background: #fff;
}

.mmh-sub {
    color: rgba(15, 43, 91, 0.72);
    font-weight: 800;
    font-size: 12px;
    width: 100%;
    max-width: 100%;
    line-height: 1.4;
}

.mmh-stage {
    margin-bottom: 2px;
}

.mmh-venue {
    opacity: 0.85;
}

.mmh-venue {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-weight: 800;
    font-size: 12px;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-date-badge {
    background: #f4f6f8;
    border-radius: 8px;
    padding: 4px 10px;
    text-align: center;
    min-width: auto;
    margin-right: 0;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.match-date-badge span {
    position: relative;
    z-index: 1;
}

.match-date-month {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 800;
    text-transform: uppercase;
    display: inline;
    letter-spacing: 0.5px;
}

.match-date-day {
    font-size: 15px;
    color: #1e293b;
    font-weight: 900;
    line-height: 1;
    margin: 0;
    display: inline;
}

.match-date-time {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    display: inline;
    margin-left: 4px;
    padding-left: 10px;
    border-left: 1px solid #cbd5e1;
}

.match-meta {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.match-stage {
    font-size: 13px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
    max-width: 100%;
}

.match-teams-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    width: 100%;
    padding: 0 8px;
}

.team-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    text-align: center;
}

.flag-icon {
    width: 56px;
    height: 42px;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.08);
}

.flag-icon.placeholder {
    background: #e2e8f0;
}

.team-name {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    max-width: 100px;
    word-wrap: break-word;
}

.vs-text {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 700;
    margin: 0 15px;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.match-location {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1.4;
    text-align: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.match-location svg {
    width: 14px;
    height: 14px;
    fill: #94a3b8;
    flex-shrink: 0;
}

.match-divider {
    display: none;
}

.match-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 5px;
}

.stock-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stock-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.stock-count {
    font-size: 12px;
    line-height: 1;
    color: #64748b;
    font-weight: 700;
}

.stock-info {
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
}

.stock-info.good {
    color: #059669;
    background: #d1fae5;
}

.stock-info.low {
    color: #d97706;
    background: #fef3c7;
}

.stock-info.out {
    color: #64748b;
    background: #f1f5f9;
}

.price-info {
    padding-left: 15px;
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 6px;
    text-align: right;
}

.price-label {
    font-size: 11px;
    color: #64748b;
    display: inline;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.price-amount {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.price-amount.out {
    color: #94a3b8;
    font-size: 18px;
}

/* Guarantee Grid */
.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.guarantee-item h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* App Download Banner */
.app-banner {
    background: #f4f9f4; /* Light greenish/yellowish tint matching screenshot */
    padding: 30px 40px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px auto;
}

.app-banner-text h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 800;
}

.app-banner-text p {
    color: #666;
    font-size: 15px;
}

.app-badges {
    display: flex;
    gap: 15px;
    align-items: center;
}

.app-badge {
    height: 44px;
    background: #000;
    color: #fff;
    border-radius: 6px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    font-weight: bold;
    text-decoration: none;
    font-size: 14px;
}

.qr-placeholder {
    width: 60px;
    height: 60px;
    background: #fff;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #999;
    border-radius: 4px;
}

/* Newsletter */
.newsletter-section {
    text-align: center;
    padding: 50px 20px;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.newsletter-section h3 {
    margin-bottom: 25px;
    color: #333;
    font-size: 20px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 4px 0 0 4px;
    outline: none;
    font-size: 16px;
}

.newsletter-form button {
    padding: 14px 30px;
    background: #fff;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 0 4px 4px 0;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

.newsletter-form button:hover {
    background: var(--accent-color);
    color: #fff;
}

.newsletter-disclaimer {
    font-size: 12px;
    color: #999;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.newsletter-disclaimer a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Mega Footer */
.site-footer {
    background: #fff;
    padding: 24px 0 16px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.footer-col h4 {
    color: #333;
    font-size: 15px;
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

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

.footer-guarantee {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #059669;
    font-weight: 800;
    font-size: 18px;
}

.guarantee-list {
    list-style: none;
    padding: 0;
}

.guarantee-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #555;
    font-size: 14px;
    margin-bottom: 8px;
}

.guarantee-list li::before {
    content: '✓';
    color: #059669;
    font-weight: bold;
    font-size: 16px;
}

.region-selector {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #333;
    font-size: 14px;
    background: #fff;
}

.region-selector:hover {
    border-color: #bbb;
}

.footer-bottom {
    border-top: 1px solid #eee;
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #999;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-bottom-links a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 24px 0 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 16px;
        font-size: 14px !important;
    }

    .footer-col h4 {
        margin-bottom: 10px;
        font-size: 14px;
    }

    .footer-guarantee {
        margin-bottom: 12px;
        font-size: 16px !important;
        gap: 10px;
    }

    .footer-guarantee img {
        height: 34px !important;
        margin-bottom: 0 !important;
    }

    .footer-guarantee p {
        margin: 0;
        font-size: 13px;
        line-height: 1.35;
    }

    .guarantee-list li {
        margin-bottom: 8px;
        font-size: 13px;
        gap: 10px;
    }

    .region-selector {
        padding: 10px 12px;
        margin-bottom: 8px;
        font-size: 13px;
    }

    .footer-bottom {
        padding-top: 12px;
        gap: 8px;
    }

    .footer-bottom-links {
        gap: 10px;
        font-size: 11px;
        line-height: 1.4;
    }
}

/* Forms */
.form-container {
    width: 100%;
    max-width: 400px;
    margin: 32px auto;
    padding: 24px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

/* Global Loading Overlay */
.global-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.global-loading-overlay.active {
    display: flex;
    opacity: 1;
}

.global-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(15, 43, 91, 0.1);
    border-left-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.global-loading-text {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    animation: pulse-text 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse-text {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-height: 44px;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: var(--accent-color); /* Unified green */
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    min-height: 44px;
}

.btn-submit:hover {
    filter: brightness(0.96);
}

/* Global Auth Modal */
.auth-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.auth-modal-content.premium-auth-modal {
    background: #fff;
    color: var(--text-color); /* Ensure dark text on white modal */
    width: 850px;
    max-width: 95%;
    border-radius: 20px;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(15, 43, 91, 0.25);
}

.auth-modal-left {
    flex: 1;
    background: url('../images/login-bg.png') center/cover no-repeat;
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-modal-left::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.8) 0%, rgba(59, 130, 246, 0.6) 100%);
    z-index: 1;
}

.auth-modal-left::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.auth-modal-left-content {
    position: relative;
    z-index: 2;
}

.auth-modal-left h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.auth-modal-left p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
}

.auth-modal-right {
    flex: 1.2;
    padding: 40px 50px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.auth-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    outline: none;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #e74c3c;
    transition: all 0.2s;
    font-size: 24px;
    line-height: 1;
    padding: 0;
    box-sizing: border-box;
}

.auth-modal-close:hover {
    color: #c0392b;
}

.auth-modal-body h3 {
    margin: 0;
    font-size: 28px;
    color: #0f172a;
    font-weight: 700;
}

.auth-subtitle {
    color: #64748b;
    margin-top: 5px;
    margin-bottom: 30px;
    font-size: 15px;
}

.auth-form-group {
    margin-bottom: 20px;
}

.auth-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #334155;
}

.auth-form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.auth-form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.auth-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    cursor: pointer;
}

.forgot-pwd {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.forgot-pwd:hover {
    text-decoration: underline;
}

.btn-auth-submit {
    width: 100%;
    padding: 14px;
    background: var(--accent-color); /* Unified green */
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-auth-submit:hover {
    background: #22c55e;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: #94a3b8;
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.auth-divider span {
    padding: 0 10px;
}

.auth-social {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-social:hover {
    background: #f8fafc;
}

.btn-social img {
    width: 20px;
    height: 20px;
}

.auth-toggle {
    text-align: center;
    font-size: 14px;
    color: #64748b;
}

.auth-toggle a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    margin-left: 5px;
}

.auth-toggle a:hover {
    text-decoration: underline;
}

/* User Avatar & Dropdown */
.user-profile-menu {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-left: 15px;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    margin-right: 8px;
}

.user-dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 150px;
    display: flex;
    flex-direction: column;
    z-index: 100;
    
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease 1s, visibility 0s linear 1.3s;
}

.user-profile-menu:hover .user-dropdown {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease 0s, visibility 0s linear 0s;
}

.user-dropdown a {
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f9f9f9;
    font-size: 14px;
}

.user-dropdown a:hover {
    background: #f4f6f8;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(15, 43, 91, 0.95);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.2);
    transition: bottom 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-content a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-cookie {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: 0.2s;
}

.btn-cookie.accept {
    background: var(--accent-color);
    color: #fff;
}

.btn-cookie.accept:hover {
    background: #009923;
}

.btn-cookie.reject {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    color: #fff;
}

.btn-cookie.reject:hover {
    background: rgba(255,255,255,0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .auth-modal-content.premium-auth-modal {
        flex-direction: column;
        height: auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    .auth-modal-left {
        display: none; /* Hide left panel on mobile */
    }
    .auth-modal-right {
        padding: 40px 30px;
        background: url('../images/login-bg.png') center/cover no-repeat;
        position: relative;
        z-index: 1;
    }
    .auth-modal-right::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(15, 43, 91, 0.88); /* Deep blue mask for text readability */
        z-index: -1;
    }
    
    /* Override text colors for mobile dark background */
    .auth-modal-right .auth-modal-body h3,
    .auth-modal-right .auth-form-group label,
    .auth-modal-right .remember-me,
    .auth-modal-right .auth-toggle {
        color: #ffffff;
    }
    .auth-modal-right .auth-subtitle {
        color: rgba(255, 255, 255, 0.8);
    }
    .auth-modal-right .auth-divider {
        color: rgba(255, 255, 255, 0.6);
    }
    .auth-modal-right .auth-divider::before,
    .auth-modal-right .auth-divider::after {
        border-bottom-color: rgba(255, 255, 255, 0.2);
    }
    .auth-modal-right .auth-form-group input {
        background: rgba(255, 255, 255, 0.95);
        border-color: transparent;
    }
    .auth-modal-right .auth-form-group input:focus {
        background: #ffffff;
        box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.4);
    }
    .auth-modal-right .auth-modal-close {
        color: #ffffff;
        background: transparent;
        border: none;
        border-radius: 50%;
    }
}

/* Qty Modal Unified UI */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.modal-content.qty-modal-content {
    background: var(--bg-color);
    border-radius: 16px;
    padding: 32px;
    width: 90%;
    max-width: 420px;
    position: relative;
    box-shadow: var(--glass-shadow);
    border: 1px solid rgba(0,0,0,0.05);
}

.modal-close {
    position: absolute;
    top: 20px; right: 24px;
    font-size: 28px;
    cursor: pointer;
    color: #e74c3c; /* Unified red color for close buttons */
    line-height: 1;
    transition: color var(--transition-speed);
}

.modal-close:hover {
    color: #c0392b;
}

.modal-title {
    font-size: 24px;
    margin: 0 0 16px 0;
    color: var(--primary-color);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.qty-match-info {
    margin-bottom: 24px;
    color: #64748b;
    font-size: 15px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 16px;
}

.qty-mname {
    color: var(--primary-color);
    font-size: 18px;
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

.qty-prices {
    font-weight: 600;
    color: var(--secondary-color);
}

.qty-selector-container {
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
}

.qty-price-summary {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    color: #334155;
}

.qty-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    padding: 4px 0;
}

.qty-price-row strong {
    color: #0f172a;
    font-weight: 800;
}

.qty-price-meta {
    opacity: 0.85;
    font-size: 13px;
}

.qty-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
    color: #991b1b;
    font-size: 13px;
    line-height: 1.4;
}

.qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: #fff;
    border-radius: 6px;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
    transition: all var(--transition-speed);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--accent-color);
    color: #fff;
}

.qty-input {
    width: 80px;
    text-align: center;
    border: none;
    font-size: 22px;
    font-weight: 800;
    background: transparent;
    outline: none;
    color: var(--text-color);
}

.qty-seating-preference {
    background: #f0fdf4;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #bbf7d0;
}

.qty-seating-text strong {
    display: block;
    margin-bottom: 4px;
    color: #166534;
    font-size: 15px;
}

.qty-seating-text span {
    font-size: 13px;
    color: #15803d;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--accent-color);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.full-width {
    width: 100%;
    margin-bottom: 16px;
    border-radius: 8px;
}

.qty-info-box {
    background: #f1f5f9;
    padding: 16px;
    border-radius: 8px;
    margin-top: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.info-icon {
    color: #3b82f6;
    font-size: 20px;
    margin-top: -2px;
}

.qty-info-box p {
    margin: 0;
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
}


/* Mobile Match Card Strip Layout */
@media (max-width: 768px) {
    .match-mobile-header {
        display: block;
    }

    .match-top {
        display: none;
    }

    .match-card {
        border-radius: 8px;
        margin-bottom: 5px;
    }
    .match-card-body {
        flex-direction: column;
        padding: 12px;
        align-items: stretch;
        gap: 10px;
    }
    .match-top {
        margin-bottom: 0;
        padding-bottom: 10px;
        border-bottom: 1px solid #f1f5f9;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        min-width: 0;
    }
    .match-date-badge {
        flex-direction: row;
        margin-bottom: 0;
        padding: 8px 10px;
        min-width: 0;
        width: 100%;
        justify-content: center;
        gap: 10px;
        align-self: center;
    }
    .match-date-month { font-size: 9px; }
    .match-date-day { font-size: 14px; }
    .match-date-time { font-size: 9px; }

    
    .match-meta {
        flex: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        min-width: 0;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        align-items: center;
    }
    .match-stage {
        text-align: center;
        font-size: 10px;
        margin-bottom: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .match-teams-row {
        margin-bottom: 10px;
        padding: 0;
        justify-content: space-between;
        gap: 10px;
        max-width: 100%;
        overflow: hidden;
    }
    .team-block {
        flex-direction: column;
        gap: 2px;
        flex: 1;
        align-items: center;
    }
    .flag-icon {
        width: 44px;
        height: 32px;
    }
    .team-name {
        font-size: 13px;
        font-weight: 800;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: center;
    }
    .vs-text {
        font-size: 11px;
        margin: 0;
    }
    .match-location {
        justify-content: center;
        font-size: 10px;
        margin-top: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .match-divider {
        display: none;
    }
    .match-bottom {
        padding-top: 10px;
        margin-top: 0;
        border-top: 1px solid #e2e8f0;
        border-left: none;
        padding-left: 0;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        min-width: 0;
    }
    .stock-container {
        margin-bottom: 0;
        align-items: flex-start;
    }
    .stock-info {
        font-size: 12px;
        padding: 4px 8px;
        white-space: nowrap;
    }
    .price-info {
        flex-direction: row;
        align-items: baseline;
        justify-content: flex-end;
        gap: 6px;
        text-align: right;
    }
    .price-label {
        font-size: 12px;
        display: inline;
    }
    .price-amount {
        font-size: 26px;
    }
    
    /* Mobile Navbar Layout */
    .navbar {
        position: sticky;
        top: 0;
        z-index: 10000;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }
    
    .nav-container {
        flex-wrap: nowrap;
        height: 56px;
        padding-top: 0;
        padding-bottom: 0;
        gap: 10px;
    }
    
    .logo {
        flex: 1 1 auto;
        font-size: 20px !important;
        min-height: 30px;
    }
    .nav-actions {
        flex: none;
    }
    .navbar nav {
        display: none !important;
    }
    .btn-login {
        min-height: 30px;
        padding: 0 10px;
        font-size: 13px;
    }
    /* Ensure no horizontal overflow */
    html, body {
        overflow-x: clip;
        width: 100%;
        max-width: 100vw;
    }
}


@media (max-width: 768px) {
    body {
        font-size: 16px;
        line-height: 1.55;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    .container {
        padding: 0 12px;
    }

    .page-matches .container {
        padding: 0 10px;
    }

    .matches-page-container {
        margin-top: 16px !important;
    }

    .matches-layout {
        gap: 14px;
    }

    .matches-page-head {
        margin-bottom: 8px;
    }

    .matches-subhead {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .subhead-pill {
        width: 100%;
        justify-content: center;
        flex-wrap: nowrap;
        border-radius: 8px;
        padding: 6px 12px;
        line-height: 1.25;
        font-size: 11px;
        font-weight: 800;
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.25);
        color: #ffffff;
        letter-spacing: 0.2px;
        backdrop-filter: blur(4px);
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

    .subhead-pill.subhead-muted {
        justify-content: flex-start;
    }

    .subhead-dot {
        width: 6px;
        height: 6px;
        background: #22c55e;
        box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
    }

    .matches-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .match-card {
        width: 100%;
    }

    .quick-cards {
        grid-template-columns: 1fr;
    }

    .matches-subhead {
        overflow: hidden;
    }

    nav a,
    .navbar nav a {
        min-height: 44px;
        font-size: 15px;
        padding: 10px 14px;
        border-radius: 12px;
    }

    .btn-login {
        min-height: 44px;
        padding: 0 14px;
        font-size: 15px;
        border-radius: 12px;
    }

    button:not(.icon-btn):not(.btn-close),
    .btn-primary,
    .btn-submit,
    .btn-auth-submit,
    .btn-cookie {
        min-height: 48px;
        font-size: 16px;
        letter-spacing: 0.5px;
        touch-action: manipulation;
    }

    .icon-btn,
    .btn-close {
        min-height: unset;
        height: 32px;
        width: 32px;
        padding: 0;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    input,
    select,
    textarea {
        min-height: 48px;
        font-size: 16px;
        line-height: 1.35;
        touch-action: manipulation;
    }

    .match-date-month { font-size: 10px; }
    .match-date-day { font-size: 16px; }
    .match-date-time { font-size: 10px; }
    .team-name { font-size: 13px; }
    .vs-text { font-size: 12px; }
    .match-stage { font-size: 11px; }
    .match-location { font-size: 11px; }

    #qty-modal.modal-overlay {
        align-items: flex-end;
        justify-content: center;
        padding: 10px;
    }

    #qty-modal .modal-content.qty-modal-content {
        width: 100%;
        max-width: none;
        border-radius: 18px 18px 14px 14px;
        padding: 18px;
        max-height: 88svh;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    #qty-modal .modal-close {
        top: 14px;
        right: 14px;
        font-size: 32px;
    }

    #qty-modal .modal-title {
        font-size: 22px;
        margin-bottom: 14px;
    }

    #qty-modal .qty-mname {
        font-size: 18px;
    }

    #qty-modal .qty-match-info {
        font-size: 15px;
        margin-bottom: 18px;
        padding-bottom: 14px;
    }

    #qty-modal .qty-selector-container {
        margin-bottom: 18px;
        padding: 14px;
        border-radius: 12px;
    }

    #qty-modal .qty-btn {
        width: 56px;
        height: 56px;
        font-size: 26px;
        border-radius: 14px;
    }

    #qty-modal .qty-input {
        width: 96px;
        font-size: 26px;
    }

    #qty-modal .qty-price-row {
        font-size: 15px;
        padding: 6px 0;
    }

    #qty-modal .qty-seating-text strong {
        font-size: 16px;
    }

    #qty-modal .qty-seating-text span {
        font-size: 14px;
    }

    #qty-modal .toggle-switch {
        width: 60px;
        height: 34px;
    }

    #qty-modal .toggle-slider:before {
        height: 24px;
        width: 24px;
        left: 5px;
        bottom: 5px;
    }

    #qty-modal .toggle-switch input:checked + .toggle-slider:before {
        transform: translateX(26px);
    }

    .cookie-banner {
        padding: 14px;
        padding-bottom: calc(14px + env(safe-area-inset-bottom));
        gap: 12px;
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-content p {
        font-size: 15px;
        line-height: 1.55;
    }

    .cookie-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .btn-cookie {
        width: 100%;
        border-radius: 12px;
        padding: 12px 14px;
        font-size: 16px;
    }
}

.policy-shell {
    max-width: 980px;
    margin: 40px auto;
}

.policy-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.06);
    padding: 28px;
    color: #1f2937;
}

.policy-header h1 {
    font-size: 30px;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.policy-meta {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 18px;
}

.policy-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 18px;
    align-items: start;
}

.policy-toc {
    position: sticky;
    top: 76px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 14px;
    background: #fff;
}

.policy-toc-title {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.8px;
    color: #111827;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.policy-toc a {
    display: block;
    text-decoration: none;
    color: #d4af37;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 10px;
}

.policy-toc a:hover {
    background: #f5f7fa;
}

.policy-content h2 {
    font-size: 18px;
    color: #d4af37;
    margin-top: 22px;
    margin-bottom: 10px;
}

.policy-content h3 {
    font-size: 15px;
    color: #111827;
    margin-top: 14px;
    margin-bottom: 8px;
}

.policy-content p {
    font-size: 14px;
    color: #374151;
    margin-bottom: 10px;
    line-height: 1.75;
}

.policy-content ul {
    margin-left: 18px;
    margin-bottom: 12px;
    color: #374151;
}

.policy-content li {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .policy-shell {
        margin: 16px;
    }
    .policy-card {
        padding: 18px;
        border-radius: 12px;
    }
    .policy-grid {
        grid-template-columns: 1fr;
    }
    .policy-toc {
        position: relative;
        top: auto;
    }
    .policy-header h1 {
        font-size: 24px;
    }
}
