:root {
    --primary-yellow: #FFD700;
    --primary-yellow-hover: #e6c200;
    --dark-bg: #121212;
    --dark-nav: #0a0a0a;
    --text-dark: #1A1A1A;
    --text-muted: #6C757D;
    --bg-light: #ffffff;
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.text-accent {
    color: var(--primary-yellow) !important;
}

.btn-primary {
    background-color: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: var(--text-dark);
    font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-yellow-hover);
    border-color: var(--primary-yellow-hover);
    color: var(--text-dark);
}

.btn-outline-accent {
    color: var(--primary-yellow);
    border: 1.5px solid var(--primary-yellow);
    background: transparent;
    font-weight: 600;
}

.btn-outline-accent:hover {
    background: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: var(--text-dark);
}

/* Navbar */
.site-navbar {
    background: var(--dark-nav) !important;
}

.site-brand {
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff !important;
}

.site-brand .brand-icon {
    border-radius: 8px;
}

.site-navbar .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
}

.site-navbar .nav-link:hover {
    color: #fff !important;
}

.site-navbar .nav-link-accent {
    color: var(--primary-yellow) !important;
    font-weight: 600;
}

.search-bar {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    gap: 0.5rem;
}

.search-bar .search-icon {
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.search-bar input {
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
    width: 180px;
    font-size: 0.875rem;
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.theme-toggle:hover {
    opacity: 0.8;
}

/* League subnav */
.league-subnav {
    background: var(--dark-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.league-pills {
    scrollbar-width: none;
}

.league-pills::-webkit-scrollbar {
    display: none;
}

.league-pill {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.league-pill:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.league-pill.active {
    background: var(--primary-yellow);
    color: var(--text-dark);
    font-weight: 600;
}

/* Main layout */
.site-main {
    padding: 2rem 0;
}

.site-main--home {
    padding: 0;
    background: #fff;
}

.page-home .footer {
    margin-top: 0;
}

/* Hero */
.home-hero {
    position: relative;
    min-height: 420px;
    padding: 3.5rem 0 8rem;
    overflow: hidden;
}

.home-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.35);
}

.home-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(18, 18, 18, 0.5) 100%);
}

.home-hero__fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, #fff);
    pointer-events: none;
}

.home-hero .container {
    z-index: 2;
}

.home-hero__title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.home-hero__subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 480px;
    margin-bottom: 0;
}

.home-hero__player {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.home-hero__player-img {
    max-height: 340px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.4));
    border-radius: 12px;
}

/* Predictor card */
.predictor-wrap {
    margin-top: -5.5rem;
    position: relative;
    z-index: 10;
    margin-bottom: 3rem;
}

.predictor-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--card-shadow);
}

.predictor-card__body {
    padding: 2rem 2rem 1.5rem;
}

.predictor-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.predictor-select {
    border-radius: 12px;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    font-weight: 500;
}

.predictor-select:focus {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
}

.predictor-vs {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
    padding-top: 1.75rem;
}

.btn-predict {
    padding: 0.75rem 2.5rem !important;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.predictor-outlook {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: #f8f9fa;
    border-radius: 16px;
    border: 1px solid #eee;
}

.predictor-outlook__hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 1rem 0;
}

.predictor-outlook__loading {
    text-align: center;
    padding: 1.5rem 0;
}

.predictor-results {
    display: none;
}

.predictor-results.visible {
    display: block;
    animation: fadeSlideIn 0.35s ease;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.outlook-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    padding: 1rem;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.outlook-card--leading {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.outlook-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.outlook-card__icon--home {
    background: rgba(19, 207, 0, 0.12);
    color: #13a800;
}

.outlook-card__icon--draw {
    background: rgba(108, 117, 125, 0.12);
    color: #6c757d;
}

.outlook-card__icon--away {
    background: rgba(124, 58, 237, 0.12);
    color: #7c3aed;
}

.outlook-card__value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.outlook-card__label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.xg-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.xg-card__label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.25rem;
}

.xg-card__value {
    font-size: 1.5rem;
    font-weight: 700;
}

.h2h-pill {
    display: inline-block;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.premium-lock-panel {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px dashed #dee2e6;
}

.premium-lock-panel .lock-content {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
    padding: 0.5rem;
}

.premium-lock-panel .lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.75);
    z-index: 2;
}

.premium-lock-panel .lock-message {
    text-align: center;
    padding: 1rem;
    max-width: 280px;
}

.premium-lock-panel .lock-message h6 {
    color: var(--text-dark);
    font-weight: 700;
}

.premium-lock-panel .lock-message p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.scoreline-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 0.5rem 0.85rem;
    min-width: 60px;
}

.scoreline-chip .score {
    font-weight: 700;
}

.scoreline-chip .pct {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Home content tabs */
.home-content {
    padding-bottom: 3rem;
}

.home-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.home-tab {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.home-tab:hover {
    border-color: #ccc;
    color: var(--text-dark);
}

.home-tab.active {
    background: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: var(--text-dark);
    font-weight: 600;
}

.section-title {
    font-weight: 700;
    font-size: 1.125rem;
}

.empty-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.empty-card__icon {
    color: #ccc;
    margin-bottom: 1rem;
}

.match-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 1.25rem;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s;
}

.match-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.match-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.badge-trending {
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
}

.match-card__teams {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.badge-prediction {
    display: inline-block;
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-dark);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}

.prob-track {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background: #eee;
}

.prob-seg--home { background: #13CF00; }
.prob-seg--draw { background: var(--primary-yellow); }
.prob-seg--away { background: #E90052; }

.prob-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

/* AI Chat */
.ai-chat {
    background: var(--dark-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    position: sticky;
    top: 1rem;
}

.ai-chat__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
}

.ai-chat__logo {
    border-radius: 8px;
    flex-shrink: 0;
}

.ai-chat__body {
    display: flex;
    flex-direction: column;
    height: 420px;
}

.ai-chat__gate {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    text-align: center;
}

.ai-chat__gate-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary-yellow);
}

.ai-chat__gate-title {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.ai-chat__gate-text {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8125rem;
    margin-bottom: 1.25rem;
    max-width: 260px;
    line-height: 1.5;
}

.ai-chat__gate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.ai-chat__gate-footnote {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.75rem;
    margin: 0;
}

.ai-chat__gate-footnote a {
    color: var(--primary-yellow);
    text-decoration: none;
    font-weight: 500;
}

.ai-chat__gate-footnote a:hover {
    color: var(--primary-yellow-hover);
    text-decoration: underline;
}

.ai-chat__messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
}

.chat-suggestions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-suggestion {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    padding: 0.65rem 0.85rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}

.chat-suggestion:hover {
    background: rgba(255, 255, 255, 0.1);
}

.chat-bubble-wrap {
    margin-bottom: 0.65rem;
}

.chat-bubble-wrap--user {
    text-align: right;
}

.chat-bubble {
    display: inline-block;
    max-width: 90%;
    padding: 0.6rem 0.85rem;
    border-radius: 12px;
    font-size: 0.8125rem;
    white-space: pre-wrap;
    text-align: left;
}

.chat-bubble--user {
    background: var(--primary-yellow);
    color: var(--text-dark);
}

.chat-bubble--assistant {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-chat__input-row {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-chat__input-row .form-control {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: #fff;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
}

.ai-chat__input-row .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.ai-chat__input-row .form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: none;
    color: #fff;
}

.ai-chat__send {
    width: 42px;
    height: 42px;
    border-radius: 50% !important;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* How it works */
.how-section {
    padding: 4rem 0;
    background: #fafafa;
    border-top: 1px solid #eee;
}

.section-heading {
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -0.02em;
}

.steps-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.step-card {
    flex: 1;
    min-width: 220px;
    max-width: 300px;
    text-align: center;
    padding: 1.5rem 1rem;
    position: relative;
}

.step-card__number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-yellow);
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.step-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #eee;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.step-card h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.step-connector {
    flex: 0 0 60px;
    height: 2px;
    margin-top: 4.5rem;
    background: repeating-linear-gradient(
        to right,
        #ccc 0,
        #ccc 6px,
        transparent 6px,
        transparent 12px
    );
}

@media (max-width: 767px) {
    .step-connector {
        display: none;
    }
}

/* About */
.about-section {
    padding: 4rem 0;
}

.video-thumb {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.video-thumb__img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.video-thumb__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s;
}

.video-thumb__play:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

.video-thumb__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: #fff;
    font-size: 1.1rem;
}

.video-thumb__caption strong {
    color: var(--primary-yellow);
}

/* Features bar */
.features-bar {
    background: var(--dark-bg);
    padding: 2.5rem 0;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-item__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 215, 0, 0.12);
    color: var(--primary-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-item h6 {
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
    margin-bottom: 0;
}

/* Footer */
.footer {
    background-color: #0a0a0a;
    color: #fff;
    padding: 3rem 0;
}

.footer a {
    color: #bbb;
    text-decoration: none;
}

.footer a:hover {
    color: #fff;
}

/* Shared / other pages */
.form-badge {
    font-size: 0.7rem;
    font-weight: 700;
}

.form-w { background-color: #13CF00; color: white; }
.form-d { background-color: #767676; color: white; }
.form-l { background-color: #E90052; color: white; }

.custom-table th {
    font-weight: 600;
    letter-spacing: 0.5px;
    border-bottom-width: 1px;
}

.custom-table td {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.position-number {
    font-weight: 600;
    color: var(--text-muted);
}

.team-name {
    font-size: 0.95rem;
    color: var(--text-dark);
}

@media (max-width: 991px) {
    .home-hero {
        padding-bottom: 6rem;
        min-height: 360px;
    }

    .predictor-wrap {
        margin-top: -4rem;
    }

    .predictor-card__body {
        padding: 1.5rem;
    }

    .ai-chat {
        position: static;
    }
}

@media (max-width: 575px) {
    .home-hero__title {
        font-size: 1.75rem;
    }

    .feature-item {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Profile management */
.profile-user-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-yellow);
    color: var(--text-dark);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-nav-link {
    display: block;
    padding: 0.6rem 0.85rem;
    border-radius: 0.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.925rem;
    transition: background 0.15s ease;
}

.profile-nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
}

.profile-nav-link.active {
    background: rgba(255, 215, 0, 0.2);
    color: var(--text-dark);
    font-weight: 600;
}

.profile-stat-card {
    background: #f8f9fa;
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.profile-form {
    max-width: 480px;
}

.site-navbar .dropdown-menu {
    min-width: 200px;
}

.site-navbar .dropdown-toggle::after {
    margin-left: 0.4em;
}
