/* ==========================================================================
   Onlybetter Tr - Industrial Midnight Fantasy Football Design System
   Target GEO: United Kingdom (GB) | Typography: Outfit + Plus Jakarta Sans
   Governing Operator: Onlybetter Tr Ltd
   ========================================================================== */

:root {
    /* Color Palette - Midnight & Industrial Steel */
    --bg-dark: #0D1117;
    --bg-surface: #161B22;
    --bg-surface-elevated: #21262D;
    --bg-card: rgba(22, 27, 34, 0.88);
    --bg-card-hover: rgba(33, 38, 45, 0.98);
    --bg-glass: rgba(13, 17, 23, 0.78);
    --border-color: rgba(240, 246, 252, 0.12);
    --border-glow: rgba(92, 92, 92, 0.6);
    --steel-border: #30363D;

    /* Accents - Industrial Titanium, Neon Matrix & Gold */
    --primary: #8B949E;
    --primary-glow: rgba(139, 148, 158, 0.35);
    --primary-highlight: #58A6FF;
    --secondary: #79C0FF;
    --secondary-glow: rgba(121, 192, 255, 0.3);
    --gold: #D29922;
    --gold-glow: rgba(210, 153, 34, 0.35);
    --danger: #F85149;
    --steel: #3A3A3A;
    --steel-light: #5C5C5C;

    /* Text Colors */
    --text-main: #E6EDF3;
    --text-muted: #8B949E;
    --text-dim: #6E7681;
    --text-heading: #FFFFFF;

    /* Typography */
    --font-sans: 'Plus Jakarta Sans', 'Jakarta Fallback', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Outfit', 'Outfit Fallback', sans-serif;

    /* Squircle Radii (iOS Superellipse style) */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Animation & Transitions */
    --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Layout Dimensions */
    --container-max: 1240px;
    --header-height: 76px;
    --ticker-height: 48px;
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/outfit-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/outfit-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Outfit Fallback';
    src: local('Arial');
    size-adjust: 104%;
    ascent-override: 100%;
    descent-override: 20%;
    line-gap-override: 0%;
}

@font-face {
    font-family: 'Jakarta Fallback';
    src: local('Arial');
    size-adjust: 105%;
    ascent-override: 95%;
    descent-override: 22%;
    line-gap-override: 0%;
}

/* Base Resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background: radial-gradient(circle at 50% 0%, #161B22 0%, var(--bg-dark) 75%);
    background-attachment: fixed;
}

/* Keyboard Focus Accessibility */
:focus-visible {
    outline: 2px solid var(--secondary) !important;
    outline-offset: 3px !important;
    border-radius: var(--radius-xs);
}

/* Skip Navigation Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--text-heading);
    color: #0D1117;
    font-weight: 800;
    padding: 0.75rem 1.5rem;
    z-index: 9999;
    border-radius: var(--radius-sm);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

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

button {
    cursor: pointer;
}

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--text-heading);
    line-height: 1.22;
    letter-spacing: -0.01em;
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(135deg, #FFFFFF 20%, #A5D6FF 70%, #58A6FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gold {
    color: var(--gold);
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    min-height: 46px;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #30363D 0%, #21262D 100%);
    color: #FFFFFF;
    border-color: rgba(240, 246, 252, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    border-color: var(--secondary);
    box-shadow: 0 8px 24px rgba(88, 166, 255, 0.25);
    color: #FFFFFF;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-muted);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-gold {
    background: linear-gradient(135deg, #D29922 0%, #9E6A03 100%);
    color: #0D1117;
    box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(210, 153, 34, 0.5);
}

.btn-sm {
    padding: 0.5rem 1.15rem;
    font-size: 0.85rem;
    min-height: 40px;
    border-radius: var(--radius-sm);
}

/* Header & Command Bar */
#site-header,
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: var(--header-height);
    height: var(--header-height);
    background: rgba(13, 17, 23, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 800;
    color: #FFF;
    letter-spacing: -0.5px;
}

.brand-logo img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    box-shadow: 0 0 14px rgba(88, 166, 255, 0.2);
}

.brand-logo span strong {
    color: var(--secondary);
}

.nav-desktop {
    display: none;
}

@media (min-width: 992px) {
    .nav-desktop {
        display: flex;
        align-items: center;
        gap: 1.75rem;
    }
}

.nav-link {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.92rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: #FFFFFF;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary);
    box-shadow: 0 0 8px var(--secondary);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 3px;
    gap: 2px;
}

.lang-btn {
    background: transparent;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    min-height: 32px;
}

.lang-btn.active {
    background: var(--steel-light);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Mobile Toggle */
.mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    padding: 10px;
    z-index: 1001;
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
    align-items: center;
}

@media (min-width: 992px) {
    .mobile-toggle {
        display: none;
    }
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-surface);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.85);
    z-index: 999;
    padding: 5.5rem 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: right var(--transition-normal);
    border-left: 1px solid var(--border-color);
}

.mobile-drawer.open {
    right: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.mobile-nav-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mobile-nav-link.active, .mobile-nav-link:hover {
    color: var(--secondary);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.drawer-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Ticker Bar */
#match-ticker-container,
.match-ticker {
    background: #11161D;
    border-bottom: 1px solid var(--border-color);
    min-height: var(--ticker-height);
    padding: 0.5rem 0;
    overflow: hidden;
    font-size: 0.85rem;
}

.ticker-track {
    display: flex;
    gap: 2rem;
    animation: tickerScroll 40s linear infinite;
    white-space: nowrap;
}

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

.ticker-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.3rem 0.9rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.ticker-badge {
    background: var(--steel-light);
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Main Content Wrapper */
main {
    flex: 1;
}

/* Sections */
.section {
    padding: 3.75rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 5rem 0;
    }
}

.section-darkened {
    background: rgba(22, 27, 34, 0.5);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.header-subpage {
    background: radial-gradient(ellipse at center, rgba(33, 38, 45, 0.6) 0%, rgba(13, 17, 23, 0.9) 100%);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}

.section-tag {
    display: inline-block;
    color: var(--secondary);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    margin-bottom: 0.6rem;
}

.section-title {
    font-size: 2.1rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.85rem;
    }
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.02rem;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 4.5rem 0 5.5rem;
    background: linear-gradient(180deg, rgba(13,17,23,0.7) 0%, var(--bg-dark) 100%), url('../images/hero-bg.webp') center/cover no-repeat;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
}

.hero-grid, .hero-grid-matrix {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-grid, .hero-grid-matrix {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 4rem;
    }
}

.hero-content {
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.3);
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-full);
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.35rem;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.6rem;
    }
}

.hero-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2.25rem;
    max-width: 620px;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
}

.hero-graphic img {
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 669;
}

/* Glass & Bolted Cards */
.card-glass {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.85rem;
    backdrop-filter: blur(12px);
    transition: all var(--transition-normal);
    position: relative;
}

.card-glass:hover {
    background: var(--bg-card-hover);
    border-color: rgba(240, 246, 252, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6);
}

.frame-bolted {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-rivet {
    position: relative;
}

.card-rivet::before, .card-rivet::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #30363D;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-rivet::before { top: 10px; left: 10px; }
.card-rivet::after { top: 10px; right: 10px; }

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 576px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Feature Cards */
.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border-color);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.65rem;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Sports / Game Cards */
.sport-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--steel-border);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-normal);
}

.sport-card:hover {
    border-color: var(--secondary);
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}

.sport-card-img-wrap {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #0B0E14;
}

.sport-card-img {
    width: 100%;
    height: 100%;
    aspect-ratio: 700 / 390;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sport-card:hover .sport-card-img {
    transform: scale(1.06);
}

.sport-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(13, 17, 23, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary);
}

.sport-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sport-card-title {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.sport-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-color);
}

.sport-card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.sport-card-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex: 1;
}

/* Step Cards */
.step-card {
    position: relative;
    padding: 2rem 1.5rem;
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #30363D 0%, #161B22 100%);
    border: 1px solid var(--border-color);
    color: #FFFFFF;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.step-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* Accordion FAQ */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 820px;
    margin: 0 auto;
    width: 100%;
}

.accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--steel-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.accordion-item:hover {
    border-color: rgba(240, 246, 252, 0.2);
}

.accordion-item.active {
    border-color: var(--secondary);
    background: rgba(22, 27, 34, 0.95);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.accordion-header {
    width: 100%;
    background: transparent;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    color: var(--text-heading);
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.accordion-header span:first-child {
    flex: 1;
}

.accordion-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: var(--radius-xs);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
    background: var(--secondary);
    color: #0D1117;
    border-color: var(--secondary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
    padding: 0 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    opacity: 0;
}

.accordion-item.active .accordion-content {
    max-height: 600px;
    padding: 0 1.5rem 1.35rem;
    opacity: 1;
}

/* ==========================================================================
   SQUAD BUILDER WIDGET STYLING
   ========================================================================== */
.squad-builder-box {
    background: linear-gradient(135deg, rgba(22,27,34,0.95) 0%, rgba(13,17,23,0.98) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
    position: relative;
    overflow: hidden;
}

.squad-builder-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #5C5C5C 0%, #58A6FF 50%, #D29922 100%);
}

.squad-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--border-color);
}

.pitch-container {
    position: relative;
    background: radial-gradient(ellipse at center, #163622 0%, #0d2115 65%, #07120b 100%);
    border: 2px solid rgba(88, 166, 255, 0.3);
    border-radius: var(--radius-md);
    min-height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 1rem;
    overflow: hidden;
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.8), 0 10px 30px rgba(0, 0, 0, 0.5);
}

.pitch-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.02) 0px,
        rgba(255, 255, 255, 0.02) 40px,
        transparent 40px,
        transparent 80px
    );
    pointer-events: none;
}

.pitch-markings {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.25;
}

.pitch-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 5;
    position: relative;
}

.player-card-fut {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
}

.player-card-fut:hover {
    transform: translateY(-8px) scale(1.08);
}

.fut-card-shield {
    width: 68px;
    height: 92px;
    background: linear-gradient(135deg, #21262D 0%, #161B22 100%);
    border: 2px solid var(--gold);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), 0 0 12px var(--gold-glow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 6px 4px;
    position: relative;
    overflow: hidden;
}

.fut-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 4px;
}

.fut-ovr {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
}

.fut-pos {
    font-size: 0.65rem;
    font-weight: 800;
    background: var(--steel-light);
    color: #FFFFFF;
    padding: 1px 4px;
    border-radius: 3px;
}

.fut-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, #30363D 0%, #161B22 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: #FFF;
    margin: 2px 0;
}

.fut-price {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--secondary);
    background: rgba(0, 0, 0, 0.6);
    width: 100%;
    text-align: center;
    border-radius: 2px;
    padding: 1px 0;
}

.fut-player-name {
    margin-top: 6px;
    background: rgba(13, 17, 23, 0.95);
    border: 1px solid var(--border-color);
    color: #FFF;
    font-size: 0.725rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

/* Progress Budget Bar */
.budget-progress-wrap {
    width: 180px;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-top: 4px;
}

.budget-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #5C5C5C 0%, #58A6FF 100%);
    box-shadow: 0 0 10px rgba(88, 166, 255, 0.35);
    transition: width 0.4s ease;
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.form-group {
    margin-bottom: 1.35rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-input, .form-textarea {
    width: 100%;
    padding: 0.9rem 1.1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--steel-border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    transition: border-color var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 12px rgba(88, 166, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
}

/* Map Container */
#map-container {
    width: 100%;
    height: 340px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

/* Footer */
.footer {
    background: #090D13;
    border-top: 1px solid var(--border-color);
    padding: 4.5rem 0 2.5rem;
    margin-top: auto;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.65;
    max-width: 320px;
}

.footer-col-title {
    color: #FFF;
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    font-family: var(--font-display);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: center;
    font-size: 0.825rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        text-align: left;
    }
}

.footer-legal-notice {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 1.15rem;
    margin-bottom: 2rem;
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    max-width: 540px;
    width: 100%;
    padding: 2.25rem;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.5rem;
}

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

.squad-builder-box.is-compact .pitch-container {
    min-height: 480px;
}

#matchday-studio,
#match-sim-widget {
    scroll-margin-top: calc(var(--header-height) + 18px);
}

.btn:disabled {
    opacity: 0.45;
    pointer-events: none;
    transform: none;
}

/* ==========================================================================
   MATCH SIMULATION PITCH
   ========================================================================== */
.match-sim-box {
    background: linear-gradient(135deg, rgba(22, 27, 34, 0.95) 0%, rgba(13, 17, 23, 0.98) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    position: relative;
}

.match-sim-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #5C5C5C 0%, #58A6FF 50%, #D29922 100%);
}

.sim-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.sim-kicker {
    font-size: 0.75rem;
    color: var(--secondary);
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.sim-heading {
    font-size: 1.65rem;
    margin-top: 2px;
    font-family: var(--font-display);
}

.sim-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.sim-opp-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.sim-opp-select {
    width: auto;
    min-width: 220px;
    font-family: var(--font-display);
    font-weight: 700;
}

.sim-scoreboard {
    background: #11161D;
    border: 1px solid var(--border-color);
    padding: 1.35rem 1.5rem 1.15rem;
    margin-bottom: 1.25rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.75rem 1rem;
    align-items: center;
    text-align: center;
}

.sim-side {
    min-width: 0;
}

.sim-side-away {
    text-align: center;
}

.sim-side-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sim-side strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: #fff;
    margin-top: 2px;
}

.sim-ovr {
    font-size: 0.8rem;
    font-weight: 700;
}

.sim-ovr-home { color: var(--gold); }
.sim-ovr-away { color: var(--danger); }

.sim-score-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sim-score-row {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.sim-score-colon {
    color: var(--border-color);
    font-size: 2rem;
}

.sim-clock {
    font-size: 0.78rem;
    color: var(--secondary);
    font-weight: 800;
    letter-spacing: 0.6px;
    background: rgba(88, 166, 255, 0.12);
    padding: 3px 10px;
    border-radius: 4px;
    margin-top: 8px;
}

.sim-progress-wrap {
    grid-column: 1 / -1;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.sim-progress-fill {
    width: 0%;
    height: 100%;
    background: #58A6FF;
    transition: width 0.15s linear;
}

.sim-pitch {
    position: relative;
    aspect-ratio: 16 / 10;
    min-height: 320px;
    background: radial-gradient(ellipse at center, #163622 0%, #0d2115 62%, #07120b 100%);
    border: 2px solid rgba(88, 166, 255, 0.28);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.75);
}

.sim-pitch::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.025) 0,
        rgba(255, 255, 255, 0.025) 62px,
        transparent 62px,
        transparent 124px
    );
    pointer-events: none;
}

.sim-markings {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.28;
    pointer-events: none;
}

.sim-tokens {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.sim-token {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    pointer-events: none;
    will-change: left, top;
}

.sim-token-ini {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 800;
    color: #fff;
    background: #161B22;
    border: 2px solid var(--steel-light);
}

.sim-token-home .sim-token-ini {
    border-color: var(--gold);
}

.sim-token-away .sim-token-ini {
    border-color: var(--danger);
}

.sim-token.has-ball .sim-token-ini {
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.45);
}

.sim-token-name {
    font-size: 0.58rem;
    font-weight: 700;
    color: #fff;
    background: rgba(13, 17, 23, 0.88);
    border: 1px solid var(--border-color);
    padding: 0 5px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sim-ball {
    position: absolute;
    width: 10px;
    height: 10px;
    margin: 0;
    border-radius: 50%;
    background: #E6EDF3;
    border: 1px solid #8B949E;
    transform: translate(-50%, -50%);
    z-index: 4;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
    will-change: left, top;
}

.sim-caption {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    z-index: 5;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    background: rgba(13, 17, 23, 0.82);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.75rem;
}

.sim-flash {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 17, 23, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.sim-flash.is-on {
    opacity: 1;
}

.sim-flash span {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #fff;
}

.sim-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
    margin: 0.85rem 0 1.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}

.sim-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: 1px;
    border: 2px solid;
}

.sim-dot-home { background: #161B22; border-color: var(--gold); }
.sim-dot-away { background: #161B22; border-color: var(--danger); }
.sim-dot-ball { background: #E6EDF3; border-color: #8B949E; }

.sim-panels {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 900px) {
    .sim-panels {
        grid-template-columns: 1fr 1fr;
    }
}

.sim-panel {
    padding: 1.35rem;
}

.sim-panel-title {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.sim-log {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.sim-log-item {
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xs);
    color: var(--text-main);
}

.sim-log-item.is-highlight {
    background: rgba(88, 166, 255, 0.12);
    border-color: var(--secondary);
    color: #fff;
}

.sim-log-item strong {
    color: var(--secondary);
    margin-right: 4px;
}

.sim-stat-row,
.sim-stat-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.sim-stat-label,
.sim-stat-line span:nth-child(2) {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.4px;
}

.sim-stat-bar {
    display: flex;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0.4rem 0 1rem;
}

.sim-stat-bar #bar-poss-home { background: var(--secondary); }
.sim-stat-bar #bar-poss-away { background: var(--danger); }

.sim-stat-line {
    border-bottom: 1px solid var(--border-color);
    padding: 0.55rem 0;
}

.sim-stat-line-last {
    border-bottom: 0;
    padding-bottom: 0;
}

.sim-stat-line span:first-child,
.sim-stat-line span:last-child {
    font-weight: 700;
    color: #fff;
}

.sim-gold { color: var(--gold) !important; }

@media (max-width: 720px) {
    .sim-scoreboard {
        grid-template-columns: 1fr 1fr;
    }

    .sim-score-block {
        grid-column: 1 / -1;
        order: -1;
    }

    .sim-token-name {
        display: none;
    }

    .sim-token-ini {
        width: 22px;
        height: 22px;
        font-size: 0.52rem;
    }

    .sim-pitch {
        min-height: 240px;
        aspect-ratio: 4 / 3;
    }

    .sim-score-row {
        font-size: 2.4rem;
    }
}