/* Footballive90 — Stadium Night theme */
:root {
    --site-header-height: 74px;
    --primary: #a4e404;
    --primary-bright: #c8ff2a;
    --primary-dark: #7ab800;
    --primary-glow: rgba(164, 228, 4, 0.42);
    --accent-blue: #00a8ff;
    --accent-blue-glow: rgba(0, 168, 255, 0.35);
    --accent-red: #ff3366;
    --accent-gold: #ffd700;
    --dark-bg: #0a0e1a;
    --dark-bg-2: #12182b;
    --card-bg: rgba(30, 41, 59, 0.72);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-light: #f8fafc;
    --text-dim: #94a3b8;
    --glass-blur: 14px;
    --radius: 16px;
    --shadow-3d: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 30px var(--primary-glow);
    --font-en: 'Outfit', 'Poppins', sans-serif;
    --font-fa: 'Vazirmatn', sans-serif;
    /* Vertical rhythm */
    --space-section-y: 44px;
    --space-section-title: 22px;
    --space-hero-top: 52px;
    --space-hero-bottom: 36px;
    --space-hero-gap: 32px;
    --space-hero-min-h: 62vh;
    --space-page-y: 72px;
    --space-page-bottom: 44px;
    --space-footer-mt: 28px;
    --space-footer-y: 32px;
    --space-grid-gap: 16px;
    --space-news-gap: 18px;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--dark-bg);
    color: var(--text-light);
    font-family: var(--font-en);
    line-height: 1.6;
    overflow-x: clip;
    padding-top: var(--site-header-height);
    min-height: 100vh;
}

body.rtl { font-family: var(--font-fa); }

/* Stadium background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 45% at 85% 5%, rgba(164, 228, 4, 0.14), transparent),
        radial-gradient(ellipse 60% 40% at 10% 15%, var(--accent-blue-glow), transparent),
        linear-gradient(180deg, var(--dark-bg) 0%, var(--dark-bg-2) 100%);
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(164, 228, 4, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(164, 228, 4, 0.035) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
    z-index: -1;
    pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ── Header (fixed — sticky breaks when body has overflow-x) ── */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

body.has-app-return #site-header {
    top: 48px;
}

body.has-app-return {
    padding-top: calc(48px + var(--site-header-height));
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 5%;
    background: rgba(10, 14, 26, 0.92);
    backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--card-border);
    min-height: var(--site-header-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 1.25rem;
    color: #fff;
}

.logo-img {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 0 18px var(--primary-glow), 0 0 8px var(--accent-blue-glow);
}

.logo-img-sm {
    width: 36px;
    height: 36px;
    border-radius: 9px;
}

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-link {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-dim);
    transition: color 0.2s, transform 0.2s;
}

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

.nav-cta {
    background: linear-gradient(135deg, var(--primary), var(--accent-blue));
    color: #000 !important;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.nav-cta:hover { transform: translateY(-2px); }

.lang-switch {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.8rem;
    margin-inline-start: 12px;
    transition: background 0.2s, color 0.2s;
}

.lang-switch:hover {
    background: var(--primary);
    color: #000;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.btn:active { transform: scale(0.97); }

.btn-store {
    background: #fff;
    color: #000;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-store:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent-blue));
    color: #000;
    box-shadow: 0 8px 24px var(--primary-glow);
}

.btn-primary:hover { transform: translateY(-3px); }

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover { background: rgba(164, 228, 4, 0.1); }

.btn-outline.active {
    background: rgba(164, 228, 4, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

/* ── Hero ── */
.hero {
    padding: var(--space-hero-top) 5% var(--space-hero-bottom);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-hero-gap);
    flex-wrap: wrap;
    min-height: var(--space-hero-min-h);
}

.hero-text { flex: 1; min-width: 280px; }

.hero-logo {
    width: clamp(72px, 18vw, 96px);
    height: clamp(72px, 18vw, 96px);
    border-radius: 22%;
    object-fit: cover;
    margin-bottom: 12px;
    box-shadow: 0 0 28px var(--primary-glow), 0 0 12px var(--accent-blue-glow);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 51, 102, 0.15);
    border: 1px solid rgba(255, 51, 102, 0.4);
    color: var(--accent-red);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-red);
    border-radius: 50%;
    animation: pulse 1s infinite;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.15;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #fff 40%, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 20px;
    max-width: 520px;
}

.download-btns { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual {
    flex: 1;
    min-width: 280px;
    display: flex;
    justify-content: center;
    perspective: 900px;
}

.phone-mockup {
    width: 270px;
    height: 520px;
    background: #111;
    border-radius: 36px;
    border: 6px solid #2a2a2a;
    overflow: hidden;
    transform: rotateY(-12deg) rotateX(4deg);
    box-shadow: var(--shadow-3d);
    transition: transform 0.4s;
}

.phone-mockup:hover { transform: rotateY(-6deg) rotateX(2deg) translateY(-8px); }

.screen-content {
    height: 100%;
    background: linear-gradient(160deg, #1a237e 0%, #0a0e1a 60%);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.screen-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 40px,
        rgba(164, 228, 4, 0.05) 40px,
        rgba(164, 228, 4, 0.05) 41px
    );
}

.live-score-display { position: relative; z-index: 1; }

.live-label {
    color: var(--accent-red);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    animation: pulse 1.2s infinite;
}

.score-big {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 12px 0;
    text-shadow: 0 0 20px var(--primary-glow);
}

.match-teams-text { font-size: 0.8rem; color: var(--text-dim); }

/* ── Live ticker ── */
.live-ticker {
    background: rgba(0, 0, 0, 0.4);
    border-block: 1px solid var(--card-border);
    overflow: hidden;
    padding: 10px 0;
}

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

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.ticker-item strong { color: #fff; }
.ticker-live { color: var(--accent-red); font-weight: 700; font-size: 0.7rem; }

/* ── Sections ── */
.section { padding: var(--space-section-y) 5%; }

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--space-section-title);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    inset-inline-start: 0;
    width: 48px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* Feature cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-grid-gap);
}

.feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 22px 16px;
    text-align: center;
    transform-style: preserve-3d;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    width: 100%;
    font: inherit;
}

.feature-card-action {
    appearance: none;
    -webkit-appearance: none;
}

.feature-card:hover,
.feature-card:focus-visible {
    transform: translateY(-8px) rotateX(2deg);
    border-color: var(--primary);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 20px var(--primary-glow);
    color: inherit;
    outline: none;
}

.feature-card:focus-visible {
    outline: 2px solid var(--primary-bright);
    outline-offset: 2px;
}

.feature-icon { font-size: 2.2rem; margin-bottom: 8px; }
.feature-card h3 { font-size: 1rem; margin-bottom: 6px; }
.feature-card p { font-size: 0.85rem; color: var(--text-dim); }
.feature-card-cta {
    display: block;
    margin-top: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.02em;
}

/* News cards */
.news-grid, .dynamic-news-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-news-gap);
}

.news-card {
    background: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    display: block;
    color: inherit;
}

.news-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: var(--primary);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.news-img-wrap {
    height: 180px;
    overflow: hidden;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-img { width: 100%; height: 100%; object-fit: cover; }
.news-img.logo-fit { object-fit: contain; padding: 24px; }

.news-content { padding: 14px; }
.news-cat { font-size: 0.7rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.news-headline { font-size: 1rem; margin: 6px 0; line-height: 1.4; }
.news-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted, #94a3b8);
    line-height: 1.5;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-read { font-size: 0.8rem; color: var(--primary); font-weight: 600; }

/* News article detail */
.news-article-view { max-width: 760px; margin: 0 auto; }
.news-back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}
.news-back-link:hover { text-decoration: underline; }
.news-article {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 28px;
}
.news-article-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.35;
    margin: 12px 0 20px;
}
.news-article-img-wrap {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 24px;
    aspect-ratio: 16 / 9;
    background: rgba(0,0,0,0.2);
}
.news-article-img { width: 100%; height: 100%; object-fit: cover; }
.news-article-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 28px;
}
.news-article-body p { margin: 0 0 1em; }
.news-no-summary { color: var(--text-muted, #94a3b8); font-style: italic; }
.news-article-footer {
    padding-top: 20px;
    border-top: 1px solid var(--card-border);
}
.news-source-link { display: inline-flex; align-items: center; gap: 6px; }

/* App return bar (opened from PWA) */
.app-return-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(90deg, var(--primary), var(--accent-blue, #00a8ff));
    padding: 10px 16px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.app-return-btn {
    color: #0a0a0a;
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;
}
.app-return-btn:hover { text-decoration: underline; }

/* Back to top */
.back-to-top {
    position: fixed;
    inset-inline-end: 20px;
    bottom: 24px;
    z-index: 9998;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent-blue));
    color: #0a0e1a;
    font-size: 1.25rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--primary-glow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--primary-glow);
}

.back-to-top:focus-visible {
    outline: 2px solid var(--primary-bright);
    outline-offset: 2px;
}

.page-header { padding: 20px 5% 24px; }
.page-header h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }

.league-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 28px 0 14px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--card-border);
}

.league-logo { width: 22px; height: 22px; object-fit: contain; }

.match-card {
    background: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.match-card:hover {
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: -4px 0 0 var(--primary), 0 8px 24px rgba(0, 0, 0, 0.3);
}

.match-card-highlight {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px var(--primary-glow), 0 8px 24px rgba(0, 0, 0, 0.35);
}

body.rtl .match-card:hover { transform: translateX(-4px); box-shadow: 4px 0 0 var(--primary), 0 8px 24px rgba(0, 0, 0, 0.3); }

.match-teams {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.team-side {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

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

.team-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.team-name {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.score-pill {
    font-size: 1.1rem;
    font-weight: 900;
    background: #000;
    padding: 6px 14px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    flex-shrink: 0;
    min-width: 64px;
    text-align: center;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.score-pill.score-updated {
    background: rgba(164, 228, 4, 0.2);
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
    transform: scale(1.05);
}

.match-status {
    width: 72px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

.match-status.live { color: var(--accent-red); }
.match-status.finished { color: var(--text-dim); }

.live-indicator {
    width: 8px;
    height: 8px;
    background: var(--accent-red);
    border-radius: 50%;
    display: inline-block;
    margin-inline-end: 4px;
    animation: pulse 1s infinite;
}

/* About */
.about-hero { padding: var(--space-page-y) 5% 28px; text-align: center; }
.stats-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 28px 0;
}

.stat-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 28px 36px;
    min-width: 140px;
    transform-style: preserve-3d;
    transition: transform 0.3s;
}

.stat-box:hover { transform: translateY(-6px) rotateX(4deg); }

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
}

.stat-label { font-size: 0.85rem; color: var(--text-dim); }

.mission-block {
    max-width: 800px;
    margin: 0 auto;
    padding: 28px 5% var(--space-page-bottom);
    text-align: center;
}

.mission-block h2 { font-size: 1.5rem; margin-bottom: 16px; }
.mission-block p { color: var(--text-dim); line-height: 1.8; }

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 0 5% var(--space-page-bottom);
    max-width: 900px;
    margin: 0 auto;
}

.value-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}

.value-card span { font-size: 2rem; display: block; margin-bottom: 10px; }

/* Contact */
.contact-wrap {
    display: flex;
    gap: 32px;
    padding: var(--space-page-y) 5% var(--space-page-bottom);
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.contact-info { flex: 1; min-width: 260px; }
.contact-form {
    flex: 1.5;
    min-width: 280px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 32px;
}

.form-group { margin-bottom: 18px; }
.form-label { display: block; margin-bottom: 8px; font-size: 0.85rem; color: var(--primary); font-weight: 600; }
.form-input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(10, 14, 26, 0.8);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-message {
    margin-bottom: 14px;
    padding: 12px;
    border-radius: 8px;
    display: none;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    font-size: 1rem;
}

.info-icon {
    width: 44px;
    height: 44px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* FAQ */
.faq-wrap { max-width: 800px; margin: 0 auto; padding: var(--space-page-y) 5% var(--space-page-bottom); }
.faq-wrap h1 { text-align: center; font-size: 2rem; margin-bottom: 36px; }

details.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}

details.faq-item summary {
    padding: 18px 20px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item[open] summary { color: var(--primary); border-bottom: 1px solid var(--card-border); }
.faq-answer { padding: 16px 20px; color: var(--text-dim); line-height: 1.7; font-size: 0.95rem; }

/* Install */
.guide-wrap { max-width: 800px; margin: 0 auto; padding: var(--space-page-y) 5% var(--space-page-bottom); }
.guide-wrap h1 { text-align: center; font-size: 2rem; margin-bottom: 40px; }

.step-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    border-inline-start: 4px solid var(--primary);
    transition: transform 0.2s;
}

.step-card:hover { transform: translateX(6px); }
body.rtl .step-card:hover { transform: translateX(-6px); }

.step-num {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--accent-blue));
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    flex-shrink: 0;
}

.step-content h3 { margin-bottom: 8px; }
.step-content p { color: var(--text-dim); font-size: 0.9rem; }

/* Privacy */
.policy-wrap { max-width: 800px; margin: 0 auto; padding: var(--space-page-y) 5% var(--space-page-bottom); }
.policy-wrap h1 { font-size: 2rem; margin-bottom: 24px; }
.policy-wrap h2 { color: var(--primary); font-size: 1.2rem; margin: 32px 0 12px; }
.policy-wrap p { color: var(--text-dim); margin-bottom: 16px; line-height: 1.8; }

/* Footer */
.site-footer {
    border-top: 1px solid var(--card-border);
    padding: var(--space-footer-y) 5%;
    margin-top: var(--space-footer-mt);
    background: rgba(10, 14, 26, 0.6);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.footer-brand p { font-size: 0.85rem; color: var(--text-dim); margin-top: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--text-dim); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }

.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 36px;
    height: 36px;
    border: 1px solid var(--card-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dim);
    transition: border-color 0.2s, color 0.2s;
}

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

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 12px; }
.loading-box, .empty-box {
    text-align: center;
    padding: 48px;
    color: var(--text-dim);
    grid-column: 1 / -1;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes floatBall {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(15deg); }
}

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

/* Mobile */
@media (max-width: 767px) {
    :root {
        --space-section-y: 22px;
        --space-section-title: 12px;
        --space-hero-top: 20px;
        --space-hero-bottom: 18px;
        --space-hero-gap: 14px;
        --space-hero-min-h: auto;
        --space-page-y: 20px;
        --space-page-bottom: 28px;
        --space-footer-mt: 16px;
        --space-footer-y: 24px;
    }

    .hamburger { display: block; z-index: 1001; }

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

    .feature-card {
        padding: 12px 6px;
        border-radius: 12px;
        min-width: 0;
    }

    .feature-icon {
        font-size: 1.35rem;
        margin-bottom: 4px;
    }

    .feature-card h3 {
        font-size: 0.62rem;
        margin-bottom: 0;
        line-height: 1.25;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .feature-card p,
    .feature-card-cta {
        display: none;
    }

    .news-grid,
    .dynamic-news-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .news-card {
        min-width: 0;
    }

    .news-img-wrap {
        height: 72px;
    }

    .news-content {
        padding: 8px 6px;
    }

    .news-headline {
        font-size: 0.72rem;
        margin: 3px 0 0;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.35;
    }

    .news-excerpt,
    .news-read {
        display: none;
    }

    .news-cat {
        font-size: 0.52rem;
        letter-spacing: 0.3px;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .nav-links {
        position: fixed;
        top: var(--site-header-height);
        inset-inline-end: -100%;
        width: 100%;
        height: calc(100vh - var(--site-header-height));
        background: rgba(10, 14, 26, 0.98);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        transition: inset-inline-end 0.35s;
        border-top: 1px solid var(--card-border);
    }

    body.has-app-return .nav-links {
        top: calc(48px + var(--site-header-height));
        height: calc(100vh - 48px - var(--site-header-height));
    }

    .nav-links.active { inset-inline-end: 0; }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-logo { margin-bottom: 8px; }
    .hero-badge { margin-bottom: 8px; }
    .hero h1 { margin-bottom: 8px; }
    .hero-desc { margin-bottom: 14px; margin-inline: auto; font-size: 0.95rem; }

    .download-btns { justify-content: center; gap: 8px; }
    .phone-mockup { transform: none; width: 210px; height: 380px; }

    .live-ticker { padding: 6px 0; }

    .stats-grid { gap: 12px; margin: 18px 0; }
    .stat-box { padding: 18px 22px; min-width: 110px; }

    .mission-block { padding: 16px 5% var(--space-page-bottom); }

    .faq-wrap h1,
    .guide-wrap h1 { margin-bottom: 20px; }

    .match-card { flex-wrap: wrap; }
    .match-teams { width: 100%; }
    .match-status { width: 100%; text-align: start; }

    .team-side.away { justify-content: flex-start; text-align: start; }
    body.rtl .team-side.away { text-align: end; justify-content: flex-end; }

    .footer-inner { flex-direction: column; text-align: center; }
    .contact-wrap { flex-direction: column; }

    .mt-2 { margin-top: 8px; }

    .loading-box, .empty-box {
        padding: 28px 16px;
    }

    .page-header { padding: 14px 5% 16px; }

    .back-to-top {
        inset-inline-end: 14px;
        bottom: 18px;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

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