@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800&display=swap');

:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.75);
    --border-glass: rgba(0, 0, 0, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --primary: #2563eb;
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --accent: #10b981;
    --accent-gradient: linear-gradient(135deg, #10b981 0%, #047857 100%);
    --danger: #ef4444;
    --danger-gradient: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    --warning: #f59e0b;
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --font-outfit: 'Outfit', sans-serif;
    --font-inter: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-inter);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-outfit);
    font-weight: 700;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Glassmorphism utility */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}
.navbar.scrolled {
    padding: 0.8rem 5%;
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--border-glass);
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-outfit);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #3b82f6, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}
.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}
.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}
.btn {
    display: inline-block;
    padding: 0.75rem 1.6rem;
    border-radius: 50px;
    font-family: var(--font-outfit);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}
.btn-secondary {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
}
.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 5% 4rem;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.15), transparent 45%),
                radial-gradient(circle at bottom left, rgba(16, 119, 87, 0.1), transparent 45%);
    position: relative;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}
.hero-text-side {
    text-align: left;
    z-index: 10;
}
.hero h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #0f172a 30%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}
.hero-btns {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
}
.hero-image-side {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}
.hero-img-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 460px;
    transition: transform 0.5s ease;
}
.hero-img-wrapper:hover {
    transform: translateY(-8px) scale(1.02);
}
.hero-img {
    width: 100%;
    height: auto;
    display: block;
}

/* SECTION CONTAINER */
.section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ABOUT US */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: var(--primary);
}
.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}
.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.stat-card {
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
}
.stat-card h4 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 0.25rem;
}
.stat-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* FEATURES / FITUR GRID */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}
.feature-card {
    border-radius: 24px;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(59, 130, 246, 0.08), transparent 40%);
    z-index: 1;
    pointer-events: none;
}
.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: var(--card-shadow);
}
.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.8rem;
    color: var(--primary);
}
.feature-card:hover .feature-icon-wrapper {
    background: var(--primary-gradient);
    color: #fff;
    transform: scale(1.05);
    transition: all 0.3s ease;
}
.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}
.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* TEAM GRID */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
}
.team-card {
    padding: 2rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s;
}
.team-card:hover {
    transform: scale(1.02);
}
.team-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.06);
    border: 2px dashed rgba(59, 130, 246, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--text-secondary);
}
.team-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}
.team-card p {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
}

/* FOOTER */
.footer {
    padding: 3rem 5%;
    border-top: 1px solid var(--border-glass);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: #ffffff;
}

/* -------------------------------------------------------------
   AI CHAT PAGE
   ------------------------------------------------------------- */
.chat-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-primary);
}

.chat-header {
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
    z-index: 10;
}
.chat-header .back-btn {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}
.chat-header .back-btn:hover {
    color: var(--text-primary);
}

.chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 10%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.05), transparent 40%);
}

.chat-bubble {
    max-width: 90%;
    padding: 1.2rem 1.5rem;
    border-radius: 20px;
    font-size: 0.98rem;
    line-height: 1.5;
    animation: fadeInBubble 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    position: relative;
}

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

.bubble-left {
    align-self: flex-start;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-bottom-left-radius: 4px;
    color: var(--text-primary);
}

.bubble-right {
    align-self: flex-end;
    background: var(--primary-gradient);
    border-bottom-right-radius: 4px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.quick-reply-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    width: 100%;
}

@media (max-width: 768px) {
    .quick-reply-container {
        grid-template-columns: 1fr;
    }
}

.quick-reply-card {
    background: #ffffff;
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1rem 1.2rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    width: 100%;
}

.quick-reply-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
    background: rgba(37, 99, 235, 0.01);
}

.quick-reply-card-icon {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0.2rem;
}

.quick-reply-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.quick-reply-card-title {
    font-family: var(--font-outfit);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.quick-reply-card-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Loader Bubble */
.loader-dots {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    height: 1.2rem;
}
.loader-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-secondary);
    animation: pulseDot 1.4s infinite ease-in-out both;
}
.loader-dot:nth-child(2) { animation-delay: 0.2s; }
.loader-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulseDot {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Chat Forms & Inputs inside bubble */
.bubble-form {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.form-control {
    background: #ffffff;
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
    color: var(--text-primary);
    font-family: var(--font-inter);
    outline: none;
    font-size: 0.9rem;
    width: 100%;
}
.form-control:focus {
    border-color: var(--primary);
}

/* Sliders layout for metrics input */
.sliders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
}
@media (max-width: 600px) {
    .sliders-grid { grid-template-columns: 1fr; }
}
.slider-container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.slider-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 500;
}
.slider-container input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.08);
    outline: none;
}
.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
}

/* File Upload drag-and-drop */
.upload-dropzone {
    border: 2px dashed rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    background: rgba(59, 130, 246, 0.02);
    transition: all 0.2s;
    margin-top: 0.8rem;
}
.upload-dropzone:hover, .upload-dropzone.dragover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
}
.upload-dropzone svg {
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

/* Results Formatting inside bubble */
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 0.5rem;
}
.result-title {
    font-family: var(--font-outfit);
    font-weight: 700;
    font-size: 1.15rem;
}
.result-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}
.badge-success { background: rgba(16, 185, 129, 0.2); color: var(--accent); }
.badge-primary { background: rgba(59, 130, 246, 0.2); color: var(--primary); }
.badge-warning { background: rgba(245, 158, 11, 0.2); color: var(--warning); }
.badge-danger { background: rgba(239, 68, 68, 0.2); color: var(--danger); }

/* Playable Media */
.processed-media {
    border-radius: 12px;
    overflow: hidden;
    margin-top: 1rem;
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--border-glass);
}
.processed-media video, .processed-media img {
    display: block;
    width: 100%;
    height: auto;
}

/* Group 5 Chart canvas container */
.chart-container-inner {
    position: relative;
    width: 100%;
    height: 220px;
    margin-top: 1rem;
    background: rgba(59, 130, 246, 0.03);
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
}

/* Autocomplete suggestions */
.autocomplete-suggestions {
    position: absolute;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    max-height: 180px;
    overflow-y: auto;
    width: calc(100% - 2px);
    z-index: 100;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    margin-top: 2px;
}
.autocomplete-suggestion {
    padding: 0.6rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
}
.autocomplete-suggestion:hover {
    background: var(--primary);
    color: #fff;
}

/* Tackle Offence highlight frame strip */
.keyframes-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}
.keyframe-img-box {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
}
.keyframe-img-box img {
    width: 100%;
    height: auto;
    display: block;
}

/* Detail statistics layout */
.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-top: 0.5rem;
}
.detail-item {
    font-size: 0.85rem;
}
.detail-item strong {
    color: var(--text-secondary);
}

/* CHAT FOOTER & INPUT */
.chat-footer {
    padding: 1.5rem 10%;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: center;
}
.restart-chat-btn {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-glass);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    color: var(--text-secondary);
    font-family: var(--font-outfit);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}
.restart-chat-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .navbar { padding: 1.25rem 1.5rem; }
    .nav-menu { display: none; } /* keep it simple */
    .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .hero-text-side { text-align: center; }
    .hero h1 { font-size: 2.4rem; }
    .hero p { font-size: 1rem; }
    .hero-btns { justify-content: center; }
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .chat-history { padding: 1.5rem 5%; }
    .chat-bubble { max-width: 90%; }
    .chat-footer { padding: 1rem 5%; }
}

/* SOCCER FIELD TACTICAL MAP IN CHAT */
.field-container {
    position: relative;
    margin-top: 1rem;
    width: 100%;
}
.soccer-field {
    width: 100%;
    height: 240px;
    background: #0A1A0A;
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.soccer-field::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 10% 25%;
}
.field-center-line {
    position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
}
.field-center-circle {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60px; height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}
.field-center-dot {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 5px; height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}
.field-box-left {
    position: absolute;
    left: 0; top: 20%; width: 16%; height: 60%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: none;
}
.field-box-right {
    position: absolute;
    right: 0; top: 20%; width: 16%; height: 60%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-right: none;
}
.field-goal-left {
    position: absolute;
    left: 0; top: 37%; width: 3%; height: 26%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-left: none;
}
.field-goal-right {
    position: absolute;
    right: 0; top: 37%; width: 3%; height: 26%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-right: none;
}
.heatmap-tint {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 30% 40% at 25% 50%, rgba(59, 130, 246, 0.04) 0%, transparent 70%),
                radial-gradient(ellipse 30% 40% at 75% 50%, rgba(16, 185, 129, 0.04) 0%, transparent 70%);
    mix-blend-mode: screen;
}
.map-coord-label {
    position: absolute;
    font-size: 8px;
    font-family: var(--font-inter);
    color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
}
.object-dot {
    position: absolute;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    transition: all 0.3s;
    animation: dotPop 0.4s ease-out;
    z-index: 10;
}
@keyframes dotPop {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    60% { transform: translate(-50%, -50%) scale(1.4); }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
.dot-player {
    width: 8px; height: 8px;
    background: #3b82f6;
    box-shadow: 0 0 6px #3b82f6;
}
.dot-ball {
    width: 10px; height: 10px;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}
.dot-referee {
    width: 8px; height: 8px;
    background: #ef4444;
    box-shadow: 0 0 6px #ef4444;
}
.dot-goalkeeper {
    width: 9px; height: 9px;
    background: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
}
.field-legend {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 8px 0 0;
    font-size: 11px;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-transform: uppercase;
}
.legend-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
}

/* Injury Form Section Cards */
.injury-section-card {
    background: #f8fafc;
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.injury-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 0.4rem;
}
.injury-section-title {
    font-family: var(--font-outfit);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* --- RESPONSIVE ENHANCEMENTS FOR MOBILE --- */
.header-spacer {
    width: 140px;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .about-grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .header-spacer {
        width: 0;
        display: none;
    }
    .chat-header {
        padding: 1rem 1.25rem;
    }
    .chat-header .logo {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .navbar .logo {
        font-size: 1.25rem;
    }
    .navbar .btn {
        padding: 0.45rem 0.85rem;
        font-size: 0.8rem;
        border-radius: 8px;
    }
    .hero {
        padding: 6rem 1rem 3rem;
        text-align: center;
    }
    .hero h1 {
        font-size: 2.1rem;
        line-height: 1.2;
    }
    .hero p {
        font-size: 0.95rem;
    }
    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
    }
    .hero-btns .btn {
        width: 100%;
        text-align: center;
    }
    .section {
        padding: 4rem 1.25rem;
    }
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .features-grid {
        gap: 1.25rem;
    }
    .feature-card {
        padding: 2rem 1.5rem;
    }
    .chat-history {
        padding: 1rem 0.8rem;
        gap: 1rem;
    }
    .chat-bubble {
        max-width: 95%;
        padding: 1rem;
        font-size: 0.92rem;
        border-radius: 16px;
    }
    .chat-footer {
        padding: 0.8rem 1rem;
    }
    .restart-chat-btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
    }
    .details-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .quick-reply-btn {
        padding: 0.65rem 0.85rem;
        font-size: 0.82rem;
        gap: 0.4rem;
        border-radius: 10px;
    }
    .bubble-form input, .bubble-form select, .bubble-form button {
        font-size: 0.85rem !important;
        padding: 0.55rem 0.75rem !important;
    }
}

@media (max-width: 360px) {
    .navbar {
        padding: 1rem 0.75rem;
    }
    .navbar .logo span {
        display: none; /* Hide logo text on extremely small screens to fit the CTA button */
    }
}


/* INFINITE SCROLLING MARQUEE FOR TEAM PHOTOS */
.team-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1.5rem 0;
}

.marquee-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: scrollMarquee 45s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 1.5rem 1.2rem;
    text-align: center;
    width: 220px;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.marquee-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
}

.marquee-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.25rem;
    border: 3px solid rgba(37, 99, 235, 0.15);
    background: rgba(0, 0, 0, 0.05);
}

.marquee-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.marquee-info h3 {
    font-size: 0.92rem;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.marquee-info p {
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 600;
}

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

/* CHAT GRID LAYOUT WITH SIDEBAR */
.chat-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
    width: 100vw;
}

.chat-sidebar {
    width: 280px;
    background-color: #0f172a;
    color: #f8fafc;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.sidebar-header {
    padding: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.new-chat-btn {
    width: 100%;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-family: var(--font-outfit);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
    transition: all 0.2s;
}

.new-chat-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.5);
}

.rooms-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.room-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    border: none;
    text-align: left;
    width: 100%;
    color: #cbd5e1;
}

.room-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #f8fafc;
}

.room-item.active {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    font-weight: 500;
    border-left: 3px solid #3b82f6;
    border-radius: 0 10px 10px 0;
    padding-left: 0.7rem;
}

.room-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex: 1;
}

.room-title-text {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.88rem;
}

.room-delete-btn {
    opacity: 0;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.2rem;
    display: flex;
    align-items: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.room-item:hover .room-delete-btn {
    opacity: 1;
}

.room-delete-btn:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

/* SIDEBAR TOGGLE BUTTON */
.sidebar-toggle-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    transition: background 0.2s;
}

.sidebar-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.chat-container {
    flex: 1;
    height: 100%;
}

/* RESPONSIVE LAYOUT FOR SIDEBAR */
@media (max-width: 768px) {
    .sidebar-toggle-btn {
        display: flex;
    }
    
    .chat-sidebar {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        transform: translateX(-100%);
    }
    
    .chat-sidebar.active {
        transform: translateX(0);
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
    }
}


/* Custom confirm modal (replaces native browser confirm()) */
.confirm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: confirmFadeIn 0.2s ease;
}
.confirm-modal-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
    max-width: 340px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    animation: confirmPopIn 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.confirm-modal-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--danger);
}
.confirm-modal-message {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}
.confirm-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}
.confirm-modal-actions .btn {
    flex: 1;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
}
.btn-danger {
    background: var(--danger-gradient);
    color: #fff;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}
.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
}
@keyframes confirmFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes confirmPopIn {
    from { opacity: 0; transform: scale(0.9) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}


/* EPL result header (Kel_2 only, scoped classes) */
.epl-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 0.15rem 0 1rem 0.9rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}
.epl-result-title-group {
    min-width: 0;
}
.epl-result-kicker {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin: 0 0 1px;
}
.epl-result-team {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-outfit);
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* EPL probability bar list, polished (Kel_2 only, scoped classes) */
.epl-prob-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--bg-primary);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 16px;
    padding: 1.15rem 1.1rem;
    box-shadow: var(--card-shadow);
}
.epl-prob-row-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.45rem;
}
.epl-prob-row-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.epl-prob-row-value {
    font-family: var(--font-outfit);
    font-size: 0.95rem;
    font-weight: 800;
}
.epl-prob-row-track {
    width: 100%;
    height: 8px;
    background: rgba(15, 23, 42, 0.06);
    border-radius: 10px;
    overflow: hidden;
}
.epl-prob-row-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
/* WIDE BUBBLE FOR SPATIAL MAPS / CHARTS */
@media (min-width: 769px) {
    .chat-bubble.wide-bubble {
        max-width: 85% !important;
        width: 620px !important;
    }
}
@media (max-width: 768px) {
    .chat-bubble.wide-bubble {
        max-width: 95% !important;
        width: 100% !important;
    }
}

/* REVEAL ON SCROLL ANIMATIONS */
.reveal-fade-up {
    opacity: 0 !important;
    transform: translateY(40px) !important;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}
.reveal-fade-up.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* responsive grid styling for workflow section */
@media (max-width: 992px) {
    .workflow-timeline {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 576px) {
    .workflow-timeline {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }
}

/* responsive grid styling for premium footer */
@media (max-width: 768px) {
    .footer-grid-container {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }
}

/* MOBILE NAVBAR AND SIDEBAR FOR LANDING PAGE */
.mobile-only {
    display: none;
}
.desktop-only {
    display: inline-block;
}

@media (max-width: 992px) {
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: block;
    }
    .navbar .btn-primary {
        display: none !important;
    }
    .nav-toggle {
        display: block !important;
    }
    .nav-menu {
        position: fixed !important;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: #ffffff !important;
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.1);
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        gap: 1.5rem !important;
        padding: 6rem 2rem 2rem !important;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 1001 !important;
    }
    .nav-menu.active {
        right: 0 !important;
    }
    .nav-menu li {
        width: 100%;
    }
    .nav-menu .nav-link {
        font-size: 1.1rem !important;
        display: block;
        padding: 0.5rem 0;
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
}




