/*
Theme Name: 1xBet Egypt
Theme URI: https://1xbet.com
Author: Dev
Description: Modern 1xBet affiliate theme with RTL support, dynamic content, and SEO optimization
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: 1xbet
Tags: rtl-language-support, custom-menu, custom-logo
*/

/* ============================================
   DESIGN SYSTEM - CSS Variables
   ============================================ */
:root {
    /* Brand Colors */
    --brand-primary: #2D7DD2;
    --brand-dark: #0A1628;
    --brand-accent: #00E676;
    --brand-accent-hover: #69F0AE;
    --brand-gold: #FFD54F;

    /* Dark Theme - Better Contrast */
    --bg-body: #0B1120;
    --bg-card: #111B2E;
    --bg-dark: #0B1120;
    --bg-section-alt: #0F1729;
    --bg-card-hover: #162240;
    --border-light: rgba(45,125,210,.12);
    --border-card: rgba(45,125,210,.08);
    --text-primary: #E8EDF5;
    --text-secondary: #8899B0;
    --text-muted: #5A6B82;
    --text-on-dark: #E8EDF5;

    /* Typography */
    --font-display: 'Tajawal', sans-serif;
    --font-body: 'Cairo', sans-serif;

    /* Spacing */
    --section-py: clamp(3rem, 6vw, 5rem);
    --container-max: 1200px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Shadows */
    --shadow-card: 0 4px 16px rgba(0,0,0,.3);
    --shadow-card-hover: 0 8px 32px rgba(0,0,0,.4), 0 0 0 1px rgba(45,125,210,.15);
    --shadow-btn: 0 4px 20px rgba(0,230,118,.3);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    background: var(--bg-body);
    color: var(--text-primary);
    direction: rtl;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 60px;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color .2s; }
ul, ol { list-style: none; }

/* ============================================
   LAYOUT
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.25rem;
}
.section { padding: var(--section-py) 0; }
.section--alt { background: var(--bg-section-alt); }
.section--dark { background: var(--bg-dark); color: var(--text-on-dark); }

/* ============================================
   TYPOGRAPHY
   ============================================ */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(27,94,158,.15);
    color: var(--brand-primary);
    padding: .35rem 1rem;
    border-radius: 99px;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.section--dark .section-badge { background: rgba(255,255,255,0.08); color: var(--brand-accent); }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: .75rem;
}
.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    line-height: 1.8;
}
.section--dark .section-subtitle { color: var(--text-muted); }

.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header .section-subtitle { margin: 0 auto; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .8rem 2rem;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: .95rem;
    border: none;
    cursor: pointer;
    transition: all .25s ease;
}
.btn--primary {
    background: var(--brand-accent);
    color: var(--bg-dark);
    box-shadow: var(--shadow-btn);
}
.btn--primary:hover {
    background: var(--brand-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,200,83,0.35);
}
.btn--outline {
    background: transparent;
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
}
.btn--outline:hover { background: var(--brand-primary); color: #fff; }
.btn--dark { background: var(--bg-dark); color: #fff; }
.btn--dark:hover { background: #162d47; }
.btn--sm { padding: .55rem 1.25rem; font-size: .85rem; }
.btn--lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-card);
    transition: transform .3s ease, box-shadow .3s ease;
    border: 1px solid var(--border-light);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}
.card__icon {
    width: 52px; height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: rgba(27,94,158,.15);
    color: var(--brand-primary);
}
.card__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: .5rem;
}
.card__text { color: var(--text-secondary); font-size: .92rem; line-height: 1.8; }

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(12,27,46,0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background .3s;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.site-logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.site-logo__img { height: 36px; width: auto; max-width: 160px; object-fit: contain; }
.site-logo img { height: 36px; width: auto; max-width: 160px; object-fit: contain; }
.site-logo__text {
    font-family: var(--font-display);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}
/* Coded Logo */
.site-logo__brand {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    line-height: 1;
    direction: ltr;
}
.site-logo__1x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00E676, #00C853);
    color: var(--brand-dark);
    font-family: 'Arial Black', 'Segoe UI Black', sans-serif;
    font-size: 1.35rem;
    font-weight: 900;
    padding: .2rem .5rem .25rem;
    border-radius: 7px;
    letter-spacing: -0.5px;
    line-height: 1;
}
.site-logo__bet {
    color: #fff;
    font-family: 'Arial Black', 'Segoe UI Black', sans-serif;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-left: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: .15rem;
}
.nav-menu a {
    color: rgba(255,255,255,0.7);
    padding: .45rem .85rem;
    border-radius: var(--radius-sm);
    font-size: .88rem;
    font-weight: 500;
    transition: all .2s;
}
.nav-menu a:hover { color: #fff; background: rgba(255,255,255,0.08); }

.header-actions { display: flex; align-items: center; gap: .6rem; }
.header-actions .btn--outline { color: #fff; border-color: rgba(255,255,255,0.25); font-size: .85rem; padding: .45rem 1.1rem; }
.header-actions .btn--outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); color: #fff; }
.header-actions .btn--primary { font-size: .85rem; padding: .45rem 1.1rem; }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: .25rem;
}

/* ============================================
   HERO — Clean card style
   ============================================ */
.hero {
    padding: 6rem 0 3rem;
    background: linear-gradient(160deg, #080E1C 0%, #0C1628 40%, #101D35 100%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -30%; left: -15%;
    width: 60%; height: 130%;
    background: radial-gradient(ellipse, rgba(45,125,210,0.08) 0%, transparent 65%);
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-particles { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-particle {
    position: absolute; width: 3px; height: 3px;
    background: rgba(0,230,118,.2); border-radius: 50%;
    animation: particleFloat linear infinite;
}
@keyframes particleFloat {
    0% { transform: translateY(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh); opacity: 0; }
}

/* Layout: text left, card right */
.hero-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: center;
}
.hero-text {
    animation: heroFadeIn .7s ease-out;
}
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.8vw, 1.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.45;
    margin-bottom: 1rem;
}
.hero-desc {
    color: rgba(255,255,255,.5);
    font-size: .88rem;
    line-height: 1.8;
}

/* ── Hero Card ── */
.hero-card-wrap {
    animation: heroCardIn .8s ease-out .2s both;
}
@keyframes heroCardIn {
    from { opacity: 0; transform: translateY(20px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.hero-card {
    background: #f0f4f8;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,.35);
}

/* Header / Logo */
.hero-card__header {
    background: #fff;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    border-radius: 20px 20px 0 0;
}
.hero-card__img {
    max-width: 200px;
    max-height: 100px;
    height: auto;
    object-fit: contain;
}
.hero-card__logo-fallback {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    color: var(--brand-primary);
}

/* Title bar */
.hero-card__title-bar {
    background: linear-gradient(135deg, #e8f0f8, #dce8f4);
    padding: .75rem 1.25rem;
    font-family: var(--font-display);
    font-size: .9rem;
    font-weight: 700;
    color: #1a4a7a;
    text-align: center;
    border-bottom: 1px solid rgba(45,125,210,.1);
}

/* Info rows */
.hero-card__info {
    background: #f0f4f8;
}
.hero-card__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .65rem 1.25rem;
    border-bottom: 1px solid rgba(45,125,210,.08);
    font-size: .82rem;
}
.hero-card__row:last-child {
    border-bottom: none;
}
.hero-card__row-label {
    color: #1a4a7a;
    font-weight: 600;
    font-family: var(--font-display);
    white-space: nowrap;
    padding-left: 1rem;
}
.hero-card__row-value {
    color: #3a5a80;
    text-align: left;
    direction: ltr;
    font-size: .8rem;
}

/* Action buttons */
.hero-card__actions {
    padding: .75rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    background: #f0f4f8;
    border-radius: 0 0 20px 20px;
}
.hero-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .85rem 1.25rem;
    background: var(--brand-primary);
    color: #fff;
    border-radius: 12px;
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all .25s ease;
    box-shadow: 0 3px 12px rgba(45,125,210,.2);
    direction: ltr;
}
.hero-card__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45,125,210,.3);
    background: #2570bf;
}
.hero-card__btn i {
    font-size: 1.1rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    .hero-card-wrap {
        max-width: 360px;
        margin: 0 auto;
        order: -1;
    }
    .hero-desc {
        max-width: 100%;
        margin: 0 auto;
    }
}
@media (max-width: 480px) {
    .hero { padding: 5rem 0 2rem; }
    .hero-title { font-size: 1.15rem; }
    .hero-desc { font-size: .82rem; }
    .hero-card-wrap { max-width: 300px; }
    .hero-card__header { padding: 1.5rem; min-height: 100px; }
    .hero-card__img { max-width: 160px; }
    .hero-card__logo-fallback { font-size: 2.2rem; }
    .hero-card__title-bar { font-size: .82rem; padding: .6rem 1rem; }
    .hero-card__row { padding: .55rem 1rem; font-size: .78rem; }
    .hero-card__btn { padding: .7rem 1rem; font-size: .88rem; }
}


/* ============================================
   FEATURES GRID
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.about-content .section-title { text-align: right; }
.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}
.stat-card {
    background: rgba(27,94,158,0.05);
    border: 1px solid rgba(27,94,158,0.1);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
}
.stat-card__value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand-primary);
}
.stat-card__label { color: var(--text-secondary); font-size: .85rem; margin-top: .25rem; }
.about-timeline { display: flex; flex-direction: column; gap: 1rem; }
.timeline-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
}
.timeline-year {
    min-width: 56px;
    height: 56px;
    background: var(--brand-primary);
    color: #fff;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .85rem;
    flex-shrink: 0;
}
.timeline-text h4 { font-size: .95rem; font-weight: 700; margin-bottom: .2rem; }
.timeline-text p { color: var(--text-secondary); font-size: .88rem; line-height: 1.7; }

/* ============================================
   COMPARISON TABLE
   ============================================ */
.comparison-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
}
.comparison-table th {
    background: var(--bg-dark);
    color: #fff;
    padding: 1rem;
    font-weight: 700;
    font-size: .9rem;
    text-align: center;
}
.comparison-table th:first-child { text-align: right; }
.comparison-table td {
    padding: .9rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    font-size: .9rem;
}
.comparison-table td:first-child {
    text-align: right;
    font-weight: 600;
    background: rgba(45,125,210,.04);
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table .highlight { color: var(--brand-accent); font-weight: 700; }
.comparison-table .winner-col { background: rgba(0,200,83,0.04); }

/* ============================================
   STEPS
   ============================================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    counter-reset: step;
}
.step-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    position: relative;
}
.step-num {
    width: 44px;
    height: 44px;
    margin: 0 auto 1rem;
    background: var(--brand-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}
.step-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: .35rem; }
.step-item p { color: var(--text-secondary); font-size: .88rem; line-height: 1.7; }

/* ============================================
   PROMOTIONS
   ============================================ */
.promos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}
.promo-card {
    border-radius: var(--radius-lg);
    padding: 2rem;
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    border-top: 4px solid var(--brand-primary);
    transition: all .3s ease;
}
.promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.promo-card__icon { font-size: 2rem; margin-bottom: .75rem; }
.promo-card__title { font-weight: 700; font-size: 1.05rem; margin-bottom: .35rem; }
.promo-card__text { color: var(--text-secondary); font-size: .9rem; line-height: 1.8; }

/* ============================================
   PAYMENT METHODS
   ============================================ */
.payments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}
.payment-item {
    text-align: center;
    padding: 1.25rem 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    transition: all .25s;
}
.payment-item:hover { border-color: var(--brand-primary); transform: translateY(-2px); }
.payment-item__icon { font-size: 2rem; margin-bottom: .5rem; }
.payment-item__name { font-weight: 600; font-size: .9rem; }
.payment-item__info { color: var(--text-muted); font-size: .78rem; margin-top: .15rem; }

/* ============================================
   RICH TEXT CONTENT
   ============================================ */
.rich-text p {
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: .95rem;
    margin-bottom: 1rem;
}
.rich-text p:last-child { margin-bottom: 0; }
.section--dark .rich-text p { color: var(--text-muted); }

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: .75rem; }
/* FAQ styles defined below in consolidated section */

/* ============================================
   LATEST POSTS GRID
   ============================================ */
.latest-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}
.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    transition: transform .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}
.post-card__img {
    height: 180px;
    overflow: hidden;
}
.post-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}
.post-card:hover .post-card__img img {
    transform: scale(1.06);
}
.post-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45,125,210,.06);
    color: var(--text-muted);
    font-size: 2rem;
}
.post-card__body {
    padding: 1.15rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.post-card__cat {
    display: inline-block;
    background: rgba(0,230,118,.1);
    color: var(--brand-accent);
    padding: .2rem .65rem;
    border-radius: 99px;
    font-size: .72rem;
    font-weight: 600;
    font-family: var(--font-display);
    margin-bottom: .6rem;
    width: fit-content;
}
.post-card__title {
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.5;
    margin: 0 0 .5rem;
}
.post-card__excerpt {
    font-size: .82rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0 0 .75rem;
    flex: 1;
}
.post-card__meta {
    display: flex;
    gap: 1rem;
    font-size: .75rem;
    color: var(--text-muted);
}
.post-card__meta span {
    display: flex;
    align-items: center;
    gap: .3rem;
}
.post-card__meta i {
    font-size: .65rem;
    color: var(--brand-primary);
}
@media (max-width: 600px) {
    .latest-posts-grid { grid-template-columns: 1fr; }
    .post-card__img { height: 160px; }
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #162d47 100%);
    border-radius: var(--radius-xl);
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 40%;
    height: 100%;
    background: radial-gradient(ellipse at right, rgba(0,200,83,0.08), transparent 70%);
}
.cta-banner .section-title { color: #fff; }
.cta-banner .section-subtitle { color: rgba(255,255,255,0.6); margin: 0 auto 1.5rem; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer { background: var(--bg-dark); color: var(--text-on-dark); padding: 3rem 0 0; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-about p { color: var(--text-muted); font-size: .9rem; line-height: 1.8; margin-top: .75rem; }
.footer-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .95rem;
    margin-bottom: 1rem;
    color: #fff;
}
.footer-links a {
    display: block;
    color: var(--text-muted);
    padding: .3rem 0;
    font-size: .88rem;
    transition: color .2s;
}
.footer-links a:hover { color: var(--brand-accent); }
.footer-contact li {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--text-muted);
    font-size: .88rem;
    padding: .3rem 0;
}
.footer-contact i { color: var(--brand-primary); width: 16px; text-align: center; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    color: var(--text-muted);
    font-size: .82rem;
}
.footer-badges { display: flex; gap: .75rem; align-items: center; }
.footer-badges span {
    background: rgba(255,255,255,0.06);
    padding: .3rem .75rem;
    border-radius: var(--radius-sm);
    font-size: .78rem;
}

/* ============================================
   FLOATING BUTTONS
   ============================================ */
.floating-btns {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.97) 60%, rgba(10, 22, 40, 0.0));
    direction: rtl;
}
.floating-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.75rem;
    border-radius: 99px;
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    transition: transform .25s, box-shadow .25s, filter .25s;
    text-decoration: none;
}
.floating-btn i {
    font-size: 1rem;
}
.floating-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}
.floating-btn--green {
    background: linear-gradient(135deg, #00E676, #00C853);
    color: var(--brand-dark);
    box-shadow: 0 4px 20px rgba(0, 230, 118, 0.3);
}
.floating-btn--green:hover {
    box-shadow: 0 6px 28px rgba(0, 230, 118, 0.45);
}
.floating-btn--blue {
    background: linear-gradient(135deg, #2D7DD2, #1565C0);
    box-shadow: 0 4px 20px rgba(45, 125, 210, 0.3);
}
.floating-btn--blue:hover {
    box-shadow: 0 6px 28px rgba(45, 125, 210, 0.45);
}

/* موبايل */
@media (max-width: 480px) {
    .floating-btns {
        gap: 0.5rem;
        padding: 0.6rem 0.75rem;
    }
    .floating-btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.82rem;
        flex: 1;
    }
}

/* ============================================
   LIVE SCORES
   ============================================ */
.livescores-widget { max-width: 900px; margin: 0 auto; }
.ls-container { max-width: 800px; margin: 0 auto; }
.ls-loading, .ls-empty { text-align: center; padding: 3rem; color: rgba(255,255,255,.5); }
.ls-loading i, .ls-empty i { font-size: 2rem; display: block; margin-bottom: 1rem; }
.ls-empty small { display: block; margin-top: .5rem; opacity: .6; }

/* Toolbar */
.ls-toolbar { display: flex; align-items: center; gap: .4rem; margin-bottom: 1rem; justify-content: center; flex-wrap: wrap; padding-bottom: .3rem; }
.ls-tab { padding: .45rem 1rem; border-radius: 2rem; border: 1px solid rgba(255,255,255,.15); background: transparent; color: rgba(255,255,255,.6); cursor: pointer; font-weight: 600; font-size: .8rem; transition: all .2s; font-family: var(--font-body); white-space: nowrap; flex-shrink: 0; }
@media (max-width: 768px) {
    .ls-toolbar { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .ls-toolbar::-webkit-scrollbar { display: none; }
}
.ls-tab:hover { border-color: var(--brand-accent); color: #fff; }
.ls-tab.active { background: var(--brand-accent); color: var(--brand-dark); border-color: var(--brand-accent); }
.ls-badge { background: #e53935; color: #fff; font-size: .7rem; padding: 1px 6px; border-radius: 10px; margin-right: 4px; animation: lsPulse 1.5s ease-in-out infinite; }
.ls-badge-ns { background: #1a73e8; animation: none; }
.ls-badge-ft { background: #555; animation: none; }
.ls-badge-all { background: rgba(255,255,255,.15); animation: none; }
.ls-refresh { width: 36px; height: 36px; min-width: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); background: transparent; color: rgba(255,255,255,.5); cursor: pointer; font-size: .85rem; transition: all .3s; flex-shrink: 0; }
.ls-refresh:hover { color: #fff; border-color: #fff; transform: rotate(180deg); }

/* League */
.ls-league { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius-lg); margin-bottom: 1rem; overflow: hidden; }
.ls-lhdr { display: flex; align-items: center; gap: .5rem; padding: .5rem .8rem; background: rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.06); color: #fff; font-size: .8rem; font-weight: 700; }
.ls-lflag { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }
.ls-limg { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.ls-lcount { background: rgba(255,255,255,.08); padding: .15rem .4rem; border-radius: 4px; font-size: .65rem; color: rgba(255,255,255,.35); flex-shrink: 0; }
.ls-limg { width: 22px; height: 22px; object-fit: contain; }
.ls-lcountry { font-size: .7rem; color: rgba(255,255,255,.35); font-weight: 400; margin-right: .3rem; }

/* Match Row */
.ls-m { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: .6rem .8rem; border-bottom: 1px solid rgba(255,255,255,.04); transition: background .2s; }
.ls-m:last-child { border-bottom: none; }
.ls-m:hover { background: rgba(255,255,255,.03); }
.ls-m.ls-live { background: rgba(0,200,83,.08); border-right: 3px solid var(--brand-accent); }
.ls-m.ls-ft { opacity: .55; }

/* Teams */
.ls-tm { display: flex; align-items: center; gap: .4rem; min-width: 0; }
.ls-home { justify-content: flex-end; }
.ls-away { justify-content: flex-start; }
.ls-ti { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.ls-tn { color: #fff; font-size: .8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Score Center */
.ls-mid { text-align: center; min-width: 65px; padding: 0 .3rem; }
.ls-sc { font-size: 1.05rem; font-weight: 800; color: #fff; font-family: var(--font-display); letter-spacing: 1px; }
.ls-st { display: block; font-size: .65rem; margin-top: 2px; color: rgba(255,255,255,.45); }
.ls-pulse { color: var(--brand-accent); font-weight: 700; animation: lsPulse 1.5s ease-in-out infinite; }
@keyframes lsPulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* Setup Box */
.ls-setup { max-width: 550px; margin: 0 auto; }
.ls-setup-box { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); padding: 2.5rem; text-align: center; color: rgba(255,255,255,.65); line-height: 2; }
.ls-setup-box i { font-size: 2.5rem; color: var(--brand-accent); margin-bottom: .75rem; display: block; }
.ls-setup-box h3 { color: #fff; margin-bottom: .5rem; }
.ls-setup-box small { opacity: .5; }

/* Tablet */
@media (max-width: 768px) {
    .ls-container { max-width: 100%; }
    .ls-tn { font-size: .75rem; }
    .ls-ti { width: 20px; height: 20px; }
    .ls-m { padding: .5rem .6rem; }
    .ls-mid { min-width: 60px; }
    .ls-sc { font-size: 1rem; }
    .ls-lhdr { font-size: .75rem; padding: .45rem .6rem; }
}
/* Phone */
@media (max-width: 480px) {
    .ls-tn { font-size: .65rem; }
    .ls-ti { width: 18px; height: 18px; }
    .ls-tm { gap: .15rem; }
    .ls-m { padding: .4rem .35rem; }
    .ls-mid { min-width: 50px; }
    .ls-sc { font-size: .9rem; }
    .ls-st { font-size: .55rem; }
    .ls-lhdr { font-size: .65rem; padding: .4rem .4rem; gap: .3rem; }
    .ls-limg { width: 16px; height: 16px; }
    .ls-lcountry { font-size: .55rem; }
    .ls-league { margin-bottom: .4rem; border-radius: 8px; }
    .ls-tab { padding: .35rem .6rem; font-size: .7rem; }
}

/* ── League Selector ── */
.ls-league-selector { display: flex; gap: .4rem; margin-bottom: 1rem; justify-content: center; flex-wrap: wrap; padding-bottom: .3rem; }
.ls-league-selector::-webkit-scrollbar { display: none; }
.ls-lg-btn { padding: .35rem .8rem; border-radius: 2rem; border: 1px solid rgba(255,255,255,.1); background: transparent; color: rgba(255,255,255,.5); cursor: pointer; font-size: .75rem; font-weight: 600; transition: all .2s; font-family: var(--font-body); white-space: nowrap; flex-shrink: 0; }
@media (max-width: 768px) {
    .ls-league-selector { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
}
.ls-lg-btn.active { background: var(--brand-accent); color: var(--brand-dark); border-color: var(--brand-accent); }
.ls-lg-btn:hover { border-color: var(--brand-accent); color: #fff; }

/* ── Standings Table ── */
.ls-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid rgba(255,255,255,.06); }
.ls-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.ls-table thead { background: rgba(255,255,255,.04); }
.ls-table th { padding: .6rem .5rem; color: rgba(255,255,255,.4); font-weight: 600; text-align: center; font-size: .7rem; white-space: nowrap; }
.ls-table td { padding: .5rem .4rem; text-align: center; color: rgba(255,255,255,.7); border-bottom: 1px solid rgba(255,255,255,.03); }
.ls-table tbody tr:hover { background: rgba(255,255,255,.03); }
.ls-rank { font-weight: 700; color: rgba(255,255,255,.35); width: 30px; }
.ls-pts { font-weight: 900; color: #fff; font-size: .9rem; }
.ls-team-cell { display: flex; align-items: center; gap: .4rem; text-align: right; white-space: nowrap; font-weight: 600; color: #fff; }
.ls-team-cell .ls-ti { width: 20px; height: 20px; }
.ls-group-title { color: var(--brand-accent); font-weight: 700; font-size: .85rem; padding: .75rem 0 .4rem; text-align: center; }

/* Zone colors */
.ls-zone-cl { border-right: 3px solid #1a73e8; }
.ls-zone-el { border-right: 3px solid #f97316; }
.ls-zone-ecl { border-right: 3px solid #22c55e; }
.ls-zone-rel { border-right: 3px solid #e53935; }

/* Form indicators */
.ls-form-w,.ls-form-d,.ls-form-l { display: inline-block; width: 16px; height: 16px; line-height: 16px; text-align: center; border-radius: 3px; font-size: .6rem; font-weight: 700; color: #fff; margin: 0 1px; }
.ls-form-w { background: #22c55e; }
.ls-form-d { background: #888; }
.ls-form-l { background: #e53935; }

/* ── Scorers Table ── */
.ls-player-cell { display: flex; align-items: center; gap: .5rem; text-align: right; }
.ls-player-img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.1); }
.ls-player-info { display: flex; flex-direction: column; }
.ls-player-name { color: #fff; font-weight: 600; font-size: .8rem; white-space: nowrap; }
.ls-player-info small { color: rgba(255,255,255,.35); font-size: .65rem; }
.ls-goals { font-weight: 900; color: var(--brand-accent); font-size: 1rem; }

@media (max-width: 768px) {
    .ls-table { font-size: .7rem; }
    .ls-table th, .ls-table td { padding: .35rem .25rem; }
    .ls-player-img { width: 26px; height: 26px; }
    .ls-team-cell { font-size: .7rem; gap: .25rem; }
    .ls-team-cell .ls-ti { width: 18px; height: 18px; }
}
@media (max-width: 480px) {
    .ls-table { font-size: .6rem; }
    .ls-table th, .ls-table td { padding: .3rem .15rem; }
    .ls-table th { font-size: .55rem; }
    .ls-player-img { width: 20px; height: 20px; }
    .ls-player-name { font-size: .65rem; }
    .ls-player-info small { font-size: .5rem; }
    .ls-lg-btn { font-size: .6rem; padding: .2rem .4rem; }
    .ls-team-cell { font-size: .6rem; gap: .15rem; }
    .ls-team-cell .ls-ti { width: 14px; height: 14px; }
    .ls-rank { width: 18px; font-size: .6rem; }
    .ls-pts { font-size: .7rem; }
    .ls-goals { font-size: .75rem; }
}

/* ── Predictions ── */
.ls-predictions { display: flex; flex-direction: column; gap: 1rem; }
.ls-pred-card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 1rem; overflow: hidden; }
.ls-pred-hdr { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.ls-pred-league { font-size: .7rem; color: rgba(255,255,255,.4); }
.ls-pred-time { font-size: .75rem; color: var(--brand-accent); font-weight: 600; }
.ls-pred-teams { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 1rem; }
.ls-pred-team { display: flex; flex-direction: column; align-items: center; gap: .3rem; flex: 1; }
.ls-pred-logo { width: 36px; height: 36px; object-fit: contain; }
.ls-pred-team span { color: #fff; font-size: .8rem; font-weight: 600; text-align: center; }
.ls-pred-vs { color: rgba(255,255,255,.25); font-weight: 900; font-size: .85rem; }

/* Prediction bars */
.ls-pred-bars { display: flex; flex-direction: column; gap: .4rem; margin-bottom: .75rem; }
.ls-pred-bar-row { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: .5rem; }
.ls-pred-label { color: rgba(255,255,255,.5); font-size: .7rem; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-pred-bar { height: 22px; background: rgba(255,255,255,.05); border-radius: 11px; overflow: hidden; }
.ls-pred-fill { height: 100%; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: .65rem; font-weight: 700; color: #fff; min-width: 30px; transition: width .8s ease; }
.ls-pred-home { background: linear-gradient(90deg, #1a73e8, #4a9af5); }
.ls-pred-draw { background: linear-gradient(90deg, #666, #888); }
.ls-pred-away { background: linear-gradient(90deg, #e53935, #f06292); }

/* Advice */
.ls-pred-advice { background: rgba(255,193,7,.08); border: 1px solid rgba(255,193,7,.15); border-radius: 8px; padding: .5rem .75rem; font-size: .75rem; color: #ffc107; font-weight: 600; margin-bottom: .5rem; text-align: center; }
.ls-pred-advice i { margin-left: .3rem; }

/* H2H */
.ls-pred-h2h { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .7rem; color: rgba(255,255,255,.4); padding-top: .5rem; border-top: 1px solid rgba(255,255,255,.05); margin-bottom: .5rem; }
.ls-h2h-w { color: var(--brand-accent); font-weight: 600; }
.ls-h2h-d { color: rgba(255,255,255,.35); }

/* Comparison */
.ls-pred-comp { display: flex; flex-direction: column; gap: .3rem; padding-top: .5rem; border-top: 1px solid rgba(255,255,255,.05); }
.ls-pred-comp-title { text-align: center; font-size: .7rem; color: rgba(255,255,255,.3); margin-bottom: .2rem; font-weight: 600; }
.ls-pred-comp-row { display: grid; grid-template-columns: 50px 1fr 50px; text-align: center; align-items: center; }
.ls-pred-cv { color: rgba(255,255,255,.5); font-size: .75rem; font-weight: 600; }
.ls-pred-cv.ls-pred-win { color: var(--brand-accent); }
.ls-pred-cn { color: rgba(255,255,255,.3); font-size: .65rem; }

/* Tips (Over/Under, BTTS, etc) */
.ls-pred-tips { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin-bottom: .75rem; }
.ls-tip { background: rgba(255,255,255,.04); border-radius: 8px; padding: .5rem; display: flex; flex-direction: column; align-items: center; gap: .2rem; text-align: center; }
.ls-tip i { color: var(--brand-accent); font-size: .75rem; }
.ls-tip span { color: rgba(255,255,255,.4); font-size: .6rem; }
.ls-tip strong { color: #fff; font-size: .75rem; }

/* H2H Scores */
.ls-h2h-scores { display: flex; gap: .3rem; margin-top: .3rem; width: 100%; }
.ls-h2h-score { background: rgba(255,255,255,.06); padding: .15rem .4rem; border-radius: 4px; font-size: .65rem; color: rgba(255,255,255,.5); font-weight: 600; }

@media (max-width: 768px) {
    .ls-pred-card { padding: .8rem; }
    .ls-pred-logo { width: 30px; height: 30px; }
    .ls-pred-team span { font-size: .75rem; }
    .ls-pred-bar-row { grid-template-columns: 60px 1fr; }
}
@media (max-width: 480px) {
    .ls-pred-card { padding: .6rem; }
    .ls-pred-logo { width: 24px; height: 24px; }
    .ls-pred-team span { font-size: .65rem; }
    .ls-pred-bar-row { grid-template-columns: 50px 1fr; }
    .ls-pred-label { font-size: .55rem; }
    .ls-pred-fill { font-size: .5rem; }
    .ls-pred-advice { font-size: .6rem; padding: .35rem .5rem; }
    .ls-pred-h2h { font-size: .55rem; }
    .ls-pred-comp-row { grid-template-columns: 35px 1fr 35px; }
    .ls-pred-cv { font-size: .6rem; }
    .ls-pred-cn { font-size: .5rem; }
    .ls-pred-tips { grid-template-columns: 1fr 1fr; gap: .25rem; }
    .ls-tip { padding: .3rem; }
    .ls-tip span { font-size: .5rem; }
    .ls-tip strong { font-size: .6rem; }
    .ls-h2h-score { font-size: .5rem; padding: .1rem .2rem; }
}

/* ── Match Modal ── */
.ls-modal { position: fixed; inset: 0; z-index: 99999; background: rgba(0,0,0,.7); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
.ls-modal.open { opacity: 1; pointer-events: all; }
.ls-modal-box { background: var(--brand-dark); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; width: 95%; max-width: 600px; max-height: 85vh; overflow: hidden; display: flex; flex-direction: column; position: relative; animation: lsSlideUp .3s ease; }
@keyframes lsSlideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.ls-modal-close { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.1); border: none; color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: .85rem; z-index: 2; transition: background .2s; }
.ls-modal-close:hover { background: rgba(255,255,255,.2); }

/* Modal Header */
.ls-modal-hdr { padding: 1.5rem 1rem 1rem; text-align: center; }
.lsm-teams { display: flex; align-items: center; justify-content: center; gap: 1.5rem; }
.lsm-team { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.lsm-team img { width: 40px; height: 40px; object-fit: contain; }
.lsm-team span { color: #fff; font-size: .85rem; font-weight: 600; }
.lsm-score { font-size: 1.8rem; font-weight: 900; color: #fff; font-family: var(--font-display); line-height: 1; }
.lsm-score small { display: block; font-size: .65rem; font-weight: 400; color: rgba(255,255,255,.5); margin-top: 4px; }

/* Modal Tabs */
.lsm-tabs { display: flex; gap: .4rem; padding: 0 1rem .75rem; justify-content: center; }
.lsm-tab { padding: .4rem 1rem; border-radius: 2rem; border: 1px solid rgba(255,255,255,.1); background: transparent; color: rgba(255,255,255,.5); cursor: pointer; font-size: .8rem; font-weight: 600; transition: all .2s; font-family: var(--font-body); }
.lsm-tab.active { background: var(--brand-accent); color: var(--brand-dark); border-color: var(--brand-accent); }

/* Modal Body */
.ls-modal-body { overflow-y: auto; padding: .5rem 1rem 1.5rem; flex: 1; max-height: 55vh; }

/* Statistics */
.lsm-stats { display: flex; flex-direction: column; gap: .6rem; }
.lsm-stat-row { display: grid; grid-template-columns: 50px 1fr 50px; align-items: center; gap: .5rem; }
.lsm-sv { color: #fff; font-weight: 700; font-size: .85rem; text-align: center; }
.lsm-sv.lsm-win { color: var(--brand-accent); }
.lsm-stat-mid { text-align: center; }
.lsm-sl { display: block; font-size: .7rem; color: rgba(255,255,255,.4); margin-bottom: 4px; }
.lsm-bar { display: flex; height: 4px; border-radius: 2px; overflow: hidden; background: rgba(255,255,255,.05); }
.lsm-bar-h { background: var(--brand-accent); transition: width .5s; }
.lsm-bar-a { background: rgba(255,255,255,.2); transition: width .5s; }

/* Events */
.lsm-events { display: flex; flex-direction: column; }
.lsm-event { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.lsm-ev-time { color: var(--brand-accent); font-weight: 700; font-size: .8rem; min-width: 36px; text-align: center; }
.lsm-ev-icon { font-size: 1rem; }
.lsm-ev-player { color: #fff; font-size: .85rem; font-weight: 600; }
.lsm-ev-assist { color: rgba(255,255,255,.4); font-size: .75rem; margin-right: .3rem; }

/* Lineups */
.lsm-lineups { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.lsm-lineup-hdr { color: #fff; font-weight: 700; font-size: .85rem; padding-bottom: .5rem; border-bottom: 2px solid var(--brand-accent); margin-bottom: .5rem; display: flex; align-items: center; gap: .4rem; }
.lsm-lineup-hdr small { color: rgba(255,255,255,.4); font-weight: 400; }
.lsm-lineup-coach { color: rgba(255,255,255,.4); font-size: .75rem; margin-bottom: .5rem; }
.lsm-players { display: flex; flex-direction: column; gap: 2px; }
.lsm-player { display: flex; align-items: center; gap: .4rem; padding: .25rem .4rem; font-size: .78rem; color: rgba(255,255,255,.75); border-radius: 4px; }
.lsm-player:hover { background: rgba(255,255,255,.04); }
.lsm-pnum { color: var(--brand-accent); font-weight: 700; min-width: 22px; text-align: center; font-size: .7rem; }
.lsm-subs-title { font-size: .7rem; color: rgba(255,255,255,.3); margin-top: .5rem; padding-top: .5rem; border-top: 1px dashed rgba(255,255,255,.08); }
.lsm-subs .lsm-player { opacity: .5; }

@media (max-width: 600px) {
    .lsm-lineups { grid-template-columns: 1fr; }
    .lsm-teams { gap: .75rem; }
    .lsm-team img { width: 32px; height: 32px; }
    .lsm-score { font-size: 1.4rem; }
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-page { padding: 0 0 4rem; background: var(--bg-dark); color: var(--text-on-dark); min-height: 100vh; }
.legal-page + .site-footer,
.guide-page + .site-footer { border-top: 2px solid rgba(255,255,255,.06); }

/* Ensure legal-update box creates clear end boundary */
.legal-update { text-align: center; padding: 1.5rem; background: rgba(255,255,255,.03); border-radius: 8px; margin-top: 3rem; margin-bottom: 2rem; font-size: .8rem; color: rgba(255,255,255,.35); border: 1px solid rgba(255,255,255,.05); }
.legal-hero { padding: 4.5rem 0 .5rem; text-align: center; position: relative; overflow: hidden; }
.legal-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(46,204,113,.08) 0%, transparent 60%); }
.legal-hero .section-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem 1rem; border-radius: 2rem; background: rgba(46,204,113,.1); border: 1px solid rgba(46,204,113,.15); color: var(--brand-accent); font-size: .8rem; font-weight: 600; margin-bottom: 1rem; }
.legal-hero h1 { font-size: 2.5rem; font-weight: 800; color: #fff; margin: 0 0 .75rem; line-height: 1.2; }
.legal-hero p { font-size: 1rem; color: rgba(255,255,255,.5); max-width: 600px; margin: 0 auto; }
.legal-breadcrumb { display: flex; align-items: center; justify-content: center; gap: .4rem; font-size: .8rem; color: rgba(255,255,255,.35); margin-top: 1.5rem; }
.legal-breadcrumb a { color: var(--brand-accent); text-decoration: none; }
.legal-breadcrumb a:hover { text-decoration: underline; }

.legal-content-wrap { max-width: 860px; margin: 0 auto; padding: 0 1.5rem; }
.legal-toc { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 1.5rem 2rem; margin-bottom: 2.5rem; }
.legal-toc h3 { font-size: .9rem; color: var(--brand-accent); margin: 0 0 .75rem; font-weight: 700; }
.legal-toc ol { margin: 0; padding-right: 1.2rem; list-style: decimal; color: rgba(255,255,255,.5); }
.legal-toc li { margin-bottom: .4rem; color: rgba(255,255,255,.5); }
.legal-toc a { color: rgba(255,255,255,.6); text-decoration: none; font-size: .85rem; transition: color .2s; }
.legal-toc a:hover { color: var(--brand-accent); }

.legal-section { margin-bottom: 2.5rem; scroll-margin-top: 100px; background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.05); border-radius: 14px; padding: 2rem 2.5rem; }
.legal-page, .guide-page { background: var(--bg-dark) !important; }
.legal-page *, .guide-page * { box-sizing: border-box; }
.legal-section h2 { font-size: 1.4rem; font-weight: 700; color: #fff; margin: 0 0 1rem; padding-bottom: .75rem; border-bottom: 1px solid rgba(255,255,255,.06); display: flex; align-items: center; gap: .5rem; }
.legal-section h2 .ls-num { background: var(--brand-accent); color: var(--brand-dark); width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 800; flex-shrink: 0; }
.legal-section h3 { font-size: 1.1rem; font-weight: 600; color: rgba(255,255,255,.85); margin: 1.5rem 0 .75rem; }
.legal-section p { font-size: .95rem; line-height: 1.85; color: rgba(255,255,255,.75); margin: 0 0 1rem; }
.legal-section ul, .legal-section ol { padding-right: 1.5rem; margin: .75rem 0 1.25rem; list-style-type: disc; color: rgba(255,255,255,.7); }
.legal-section ol { list-style-type: decimal; }
.legal-section li { font-size: .9rem; line-height: 1.8; color: rgba(255,255,255,.7); margin-bottom: .4rem; }
.legal-section strong { color: rgba(255,255,255,.9); }
.legal-section a { color: var(--brand-accent); text-decoration: none; }
.legal-section a:hover { text-decoration: underline; }

.legal-highlight { background: rgba(46,204,113,.08); border-right: 3px solid var(--brand-accent); padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; margin: 1rem 0; }
.legal-highlight p { color: rgba(255,255,255,.8); margin: 0; }

/* legal-update moved above with page definitions */

/* Dynamic content from editor */
.legal-dynamic h2 { font-size: 1.4rem; font-weight: 700; color: #fff; margin: 2rem 0 1rem; }
.legal-dynamic h3 { font-size: 1.1rem; font-weight: 600; color: rgba(255,255,255,.9); margin: 1.5rem 0 .75rem; }
.legal-dynamic p { font-size: .95rem; line-height: 1.85; color: rgba(255,255,255,.75); margin: 0 0 1rem; }
.legal-dynamic ul, .legal-dynamic ol { padding-right: 1.5rem; margin: .75rem 0 1.25rem; }
.legal-dynamic li { font-size: .9rem; line-height: 1.8; color: rgba(255,255,255,.7); margin-bottom: .4rem; }
.legal-dynamic strong { color: rgba(255,255,255,.9); }
.legal-dynamic a { color: var(--brand-accent); }
.legal-dynamic table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.legal-dynamic th, .legal-dynamic td { padding: .6rem .8rem; border: 1px solid rgba(255,255,255,.08); font-size: .85rem; color: rgba(255,255,255,.6); text-align: right; }
.legal-dynamic th { background: rgba(255,255,255,.04); color: rgba(255,255,255,.8); font-weight: 600; }

@media (max-width: 768px) {
    .legal-hero { padding: 3rem 0 2rem; }
    .legal-hero h1 { font-size: 1.8rem; }
    .legal-content-wrap { padding: 0 1rem; }
    .legal-toc { padding: 1rem 1.25rem; }
    .legal-section h2 { font-size: 1.15rem; }
}

/* ============================================
   GUIDE PAGES
   ============================================ */
.guide-page { padding: 0 0 4rem; background: var(--bg-dark); color: var(--text-on-dark); min-height: 100vh; }
.guide-hero { padding: 4.5rem 0 .5rem; text-align: center; position: relative; }
.guide-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(46,204,113,.1) 0%, transparent 50%); }
.guide-hero .section-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem 1rem; border-radius: 2rem; background: rgba(46,204,113,.1); border: 1px solid rgba(46,204,113,.15); color: var(--brand-accent); font-size: .8rem; font-weight: 600; margin-bottom: 1rem; }
.guide-hero h1 { font-size: 2.5rem; font-weight: 800; color: #fff; margin: 0 0 .75rem; }
.guide-hero p { font-size: 1rem; color: rgba(255,255,255,.5); max-width: 600px; margin: 0 auto; }

.guide-content { max-width: 860px; margin: 0 auto; padding: 0 1.5rem; }

/* Steps */
.guide-steps { display: flex; flex-direction: column; gap: 1.5rem; margin: 2rem 0; }
.guide-step { display: flex; gap: 1rem; background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.05); border-radius: 12px; padding: 1.25rem; transition: border-color .3s; }
.guide-step:hover { border-color: rgba(46,204,113,.2); }
.guide-step-num { width: 42px; height: 42px; background: var(--brand-accent); color: var(--brand-dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; flex-shrink: 0; }
.guide-step-body h3 { font-size: 1.05rem; font-weight: 700; color: #fff; margin: 0 0 .5rem; }
.guide-step-body p { font-size: .9rem; line-height: 1.8; color: rgba(255,255,255,.55); margin: 0; }

/* Info Cards Grid */
.guide-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 2rem 0; }
.guide-card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 1.25rem; text-align: center; transition: transform .3s, border-color .3s; }
.guide-card:hover { transform: translateY(-3px); border-color: rgba(46,204,113,.2); }
.guide-card-icon { font-size: 2rem; margin-bottom: .75rem; }
.guide-card h3 { font-size: .95rem; font-weight: 700; color: #fff; margin: 0 0 .5rem; }
.guide-card p { font-size: .85rem; line-height: 1.7; color: rgba(255,255,255,.5); margin: 0; }

/* Tip Box */
.guide-tip { background: rgba(26,115,232,.06); border-right: 3px solid #1a73e8; padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; margin: 1.5rem 0; }
.guide-tip p { color: rgba(255,255,255,.7); margin: 0; font-size: .9rem; }
.guide-tip strong { color: #64b5f6; }

.guide-warning { background: rgba(255,193,7,.06); border-right: 3px solid #ffc107; padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; margin: 1.5rem 0; }
.guide-warning p { color: rgba(255,255,255,.7); margin: 0; font-size: .9rem; }

/* Guide Table */
.guide-table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.guide-table { width: 100%; border-collapse: collapse; }
.guide-table th, .guide-table td { padding: .65rem .8rem; border: 1px solid rgba(255,255,255,.06); font-size: .85rem; text-align: right; }
.guide-table th { background: rgba(46,204,113,.08); color: var(--brand-accent); font-weight: 700; }
.guide-table td { color: rgba(255,255,255,.6); }
.guide-table tr:hover td { background: rgba(255,255,255,.02); }

/* FAQ inline */
.guide-faq { margin: 2rem 0; }
.guide-faq-item { border: 1px solid rgba(255,255,255,.06); border-radius: 8px; margin-bottom: .5rem; overflow: hidden; }
.guide-faq-q { padding: .8rem 1rem; background: rgba(255,255,255,.03); color: #fff; font-weight: 600; font-size: .9rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.guide-faq-q::after { content: '+'; font-size: 1.2rem; color: var(--brand-accent); transition: transform .3s; }
.guide-faq-q.open::after { transform: rotate(45deg); }
.guide-faq-a { padding: 0 1rem; max-height: 0; overflow: hidden; transition: max-height .3s, padding .3s; }
.guide-faq-a.open { padding: .8rem 1rem; max-height: 500px; }
.guide-faq-a p { font-size: .85rem; line-height: 1.8; color: rgba(255,255,255,.55); margin: 0; }

@media (max-width: 768px) {
    .guide-hero { padding: 4.5rem 0 1rem; }
    .guide-hero h1 { font-size: 1.8rem; }
    .guide-content { padding: 0 1rem; }
    .guide-step { flex-direction: column; align-items: flex-start; }
    .guide-cards { grid-template-columns: 1fr; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content { max-width: 100%; margin: 0 auto; }
    .hero-btns { justify-content: center; }
    .hero-meta { justify-content: center; }
    .hero-visual { order: -1; }
    .about-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .mobile-toggle { display: block; }
    .header-actions .btn--outline { display: none; }
    .hero { padding: 6rem 0 3rem; }
    .hero-title { font-size: 1.6rem; }
    .features-grid, .promos-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: .75rem; text-align: center; }
    .about-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .steps-grid { grid-template-columns: 1fr; }
    .payments-grid { grid-template-columns: 1fr 1fr; }
    .hero-meta { flex-wrap: wrap; gap: 0; }
    .cta-banner { padding: 2rem 1.25rem; }
}

/* Mobile menu */
.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    background: var(--bg-dark);
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Extra content paragraphs */
.section-extra-content {
    max-width: 900px;
    margin: 2rem auto 0;
    color: var(--text-secondary);
    line-height: 1.9;
    text-align: center;
    font-size: .95rem;
}


/* ═══════════════════════════════════════════════════════════ */
/* 🎯 CTA Buttons — Premium Design                           */
/* ═══════════════════════════════════════════════════════════ */

/* Base Button */
.cta-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 36px; border-radius: 14px; font-weight: 800;
    font-size: 1.05rem; text-decoration: none !important;
    transition: all .35s cubic-bezier(.4,0,.2,1);
    cursor: pointer; border: none; position: relative;
    overflow: hidden; letter-spacing: .3px;
    text-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.cta-btn::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
    transition: left .5s ease;
}
.cta-btn:hover::before { left: 100%; }
.cta-btn i { font-size: 1.2em; transition: transform .3s ease; }
.cta-btn:hover i { transform: scale(1.15); }

/* Register Button */
.cta-btn--register {
    background: linear-gradient(135deg, #2ecc71 0%, #1abc9c 50%, #27ae60 100%);
    color: #fff !important;
    box-shadow: 0 6px 25px rgba(46,204,113,.35), 0 2px 8px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.2);
}
.cta-btn--register:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 35px rgba(46,204,113,.5), 0 4px 12px rgba(0,0,0,.2);
    color: #fff !important;
}

/* App Button */
.cta-btn--app {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 50%, #2980b9 100%);
    color: #fff !important;
    box-shadow: 0 6px 25px rgba(52,152,219,.3), 0 2px 8px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.15);
}
.cta-btn--app:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 35px rgba(52,152,219,.45), 0 4px 12px rgba(0,0,0,.2);
    color: #fff !important;
}

/* Large variant */
.cta-btn--lg { padding: 18px 44px; font-size: 1.15rem; border-radius: 16px; }

/* ── Hero CTA ── */
.hero-cta {
    display: flex; gap: 16px; justify-content: center;
    margin-top: 1.8rem; flex-wrap: wrap;
}
.hero-cta .cta-btn { font-size: 1.1rem; padding: 16px 38px; }

/* ── Inline CTA (between sections) ── */
.inline-cta {
    display: flex; gap: 16px; justify-content: center;
    padding: 2rem 1.5rem; margin: 2rem 0;
    background: linear-gradient(135deg, rgba(46,204,113,.04) 0%, rgba(52,152,219,.04) 100%);
    border: 1px dashed rgba(255,255,255,.08);
    border-radius: 16px; flex-wrap: wrap;
}

/* ── Final CTA Block ── */
.final-cta {
    margin: 3rem 0 2rem; border-radius: 20px; overflow: hidden;
    background: linear-gradient(135deg, rgba(46,204,113,.06) 0%, rgba(52,152,219,.06) 50%, rgba(155,89,182,.04) 100%);
    border: 1px solid rgba(46,204,113,.12);
    position: relative;
}
.final-cta::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #2ecc71, #3498db, #9b59b6);
}
.final-cta__inner { padding: 2.5rem 3rem; text-align: center; }
.final-cta__inner h3 {
    font-size: 1.6rem; margin: 0 0 .6rem;
    background: linear-gradient(135deg, #2ecc71, #3498db);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.final-cta__inner p { color: rgba(255,255,255,.65); margin: 0 0 1.8rem; font-size: 1.08rem; line-height: 1.6; }
.final-cta__buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Pulse animation */
@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 6px 25px rgba(46,204,113,.35), 0 2px 8px rgba(0,0,0,.15); }
    50% { box-shadow: 0 6px 35px rgba(46,204,113,.55), 0 2px 12px rgba(0,0,0,.2); }
}
.final-cta .cta-btn--register { animation: ctaPulse 2.5s ease-in-out infinite; }

/* ═══════════════════════════════════════════════════════════ */
/* 🔗 Backlinks Section — Premium Design                     */
/* ═══════════════════════════════════════════════════════════ */
.backlinks-section {
    margin: 2.5rem 0 1.5rem; padding: 2rem 2.5rem;
    background: linear-gradient(135deg, rgba(52,152,219,.03) 0%, rgba(155,89,182,.03) 100%);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.06);
}
.backlinks-section h3 {
    color: #fff; font-size: 1.2rem; margin: 0 0 1.5rem;
    display: flex; align-items: center; gap: 10px;
    padding-bottom: .8rem; border-bottom: 1px solid rgba(255,255,255,.06);
}
.backlinks-section h3 i { color: #3498db; font-size: 1.1em; }
.backlinks-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.backlink-card {
    display: flex; align-items: center; gap: 16px;
    padding: 18px 20px; border-radius: 14px;
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.05);
    text-decoration: none !important;
    transition: all .3s cubic-bezier(.4,0,.2,1);
}
.backlink-card:hover {
    background: rgba(52,152,219,.08);
    border-color: rgba(52,152,219,.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,.15);
}
.backlink-card i {
    font-size: 1.5rem; color: #3498db; min-width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(52,152,219,.08); border-radius: 10px;
    transition: all .3s ease;
}
.backlink-card:hover i { background: rgba(52,152,219,.15); transform: scale(1.1); }
.backlink-card strong { display: block; color: #fff; font-size: .92rem; margin-bottom: 3px; }
.backlink-card span { display: block; color: rgba(255,255,255,.45); font-size: .8rem; line-height: 1.35; }

/* ── Mobile Responsive ── */
@media (max-width: 768px) {
    .hero-cta { flex-direction: column; align-items: stretch; padding: 0 1rem; }
    .hero-cta .cta-btn { justify-content: center; padding: 14px 24px; font-size: 1rem; }
    .inline-cta { flex-direction: column; align-items: stretch; padding: 1.5rem 1rem; }
    .inline-cta .cta-btn { justify-content: center; }
    .final-cta__inner { padding: 2rem 1.5rem; }
    .final-cta__inner h3 { font-size: 1.3rem; }
    .final-cta__buttons { flex-direction: column; }
    .final-cta__buttons .cta-btn { width: 100%; justify-content: center; padding: 16px 24px; }
    .backlinks-section { padding: 1.5rem; }
    .backlinks-grid { grid-template-columns: 1fr; }
    .cta-btn { border-radius: 12px; }
}

/* TOC CTA Buttons (inside table of contents box) */
.toc-cta {
    display: flex; gap: 14px; justify-content: center;
    margin-top: 1.2rem; padding-top: 1.2rem;
    border-top: 1px solid rgba(255,255,255,.06);
    flex-wrap: wrap;
}
.toc-cta .cta-btn { font-size: 1rem; padding: 14px 32px; }
@media (max-width: 768px) {
    .toc-cta { flex-direction: column; }
    .toc-cta .cta-btn { justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════ */
/* 🔒 Force Dark Background on Inner Pages                   */
/* ═══════════════════════════════════════════════════════════ */
body.page-template-page-terms,
body.page-template-page-privacy,
body.page-template-page-cookies,
body.page-template-page-responsible,
body.page-template-page-registration,
body.page-template-page-verification,
body.page-template-page-betting-guide,
body.page-template-page-aviator,
body.page-template-page-app,
body.page-template-page-casino,
body.page-template-page-promo,
body.page-template-page-payments,
body.page-template-page-faq-full,
body.page-template-page-comparison,
body.page-template-page-affiliate,
body.page-template-page-mobile-betting {
    background: #0C1B2E !important;
}

/* ═══════════════════════════════════════════════════════════ */

/* ============================================
   INFO TABLE (About, Features, Register, Apps)
   ============================================ */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    font-size: .9rem;
    font-family: var(--font-body);
    border: 1px solid var(--border-card);
}
.info-table thead th {
    background: rgba(45,125,210,.12);
    color: var(--brand-primary);
    padding: .85rem 1.1rem;
    font-weight: 700;
    text-align: right;
    font-family: var(--font-display);
    font-size: .85rem;
    border-bottom: 2px solid var(--brand-primary);
}
.info-table tbody td {
    padding: .75rem 1.1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    vertical-align: top;
    line-height: 1.6;
}
.info-table tbody td:first-child {
    font-weight: 600;
    color: #fff;
    background: rgba(45,125,210,.04);
}
.info-table tbody tr:nth-child(even) {
    background: rgba(255,255,255,.015);
}
.info-table tbody tr:hover {
    background: rgba(45,125,210,.05);
}
.info-table tbody tr:last-child td {
    border-bottom: none;
}
@media (max-width: 600px) {
    .info-table { font-size: .8rem; }
    .info-table thead th, .info-table tbody td { padding: .6rem .7rem; }
}

/* ═════════════════════════════════════
   CTA BANNER
   ═════════════════════════════════════ */
.cta-banner {
    background: linear-gradient(135deg, #0E1F3A 0%, #162B4A 50%, #0E1F3A 100%);
    border-radius: 20px; padding: 3.5rem 2.5rem; text-align: center;
    position: relative; overflow: hidden;
    border: 1px solid rgba(0,230,118,.1);
}
.cta-banner::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(0,230,118,.06), transparent 65%);
}
.cta-banner .section-title, .cta-banner .section-subtitle, .cta-banner p, .cta-banner .btn, .cta-banner > div { position: relative; }
.cta-banner .section-title { color: #fff; }
.cta-banner .section-subtitle { color: var(--text-secondary); }

/* ═════════════════════════════════════
   BUTTONS
   ═════════════════════════════════════ */
.btn--dark { background: var(--bg-card); color: #fff; border: 1px solid rgba(45,125,210,.15); }
.btn--dark:hover { background: var(--bg-card-hover); border-color: rgba(45,125,210,.25); }

/* ── Section images ── */
.section-image { text-align: center; margin: 1.75rem auto; max-width: 800px; }
.section-image img { border-radius: 14px; width: 100%; height: auto; box-shadow: 0 8px 32px rgba(0,0,0,.35); border: 1px solid var(--border-card); }

/* ── Hero custom image ── */
.hero-custom-img { max-width: 100%; height: auto; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }

/* ── Dark Section (Mobile App) ── */
.section--dark { background: var(--bg-section-alt); }
.section--dark .card { background: var(--bg-card); border-color: var(--border-card); }
.section--dark .card:hover { background: var(--bg-card-hover); }
.section--dark .card__icon { background: linear-gradient(135deg, rgba(0,230,118,.12), rgba(45,125,210,.08)); color: var(--brand-accent); }

/* ── Footer ── */
.site-footer { background: #070D18; border-top: 1px solid rgba(45,125,210,.06); }

/* ═════════════════════════════════════
   RESPONSIVE
   ═════════════════════════════════════ */
@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .features-grid { grid-template-columns: 1fr; }
    .promos-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .payments-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-banner { padding: 2.5rem 1.5rem; border-radius: 14px; }
    .comparison-table th, .comparison-table td { padding: .55rem .45rem; font-size: .75rem; }
    .section-image { margin: 1.25rem auto; }
    .card__img img { height: 145px; }
}
@media (max-width: 480px) {
    .steps-grid { grid-template-columns: 1fr; }
    .payments-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   ARCHIVE / TAGS / CATEGORIES PAGE
   ============================================ */
.arc-hero {
    background: linear-gradient(135deg, #0A1628 0%, #0F2035 50%, #0A1628 100%);
    padding: clamp(2.5rem, 6vw, 4rem) 1.25rem;
    text-align: center;
    border-bottom: 1px solid rgba(45,125,210,.1);
}
.arc-hero__container { max-width: 700px; margin: 0 auto; }
.arc-hero__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 .75rem;
    line-height: 1.35;
}
.arc-hero__desc {
    font-size: .95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.arc-body {
    background: var(--bg-body);
    padding: 2.5rem 1.25rem;
}
.arc-body__container {
    max-width: 1100px;
    margin: 0 auto;
}

.arc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.arc-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    transition: transform .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
}
.arc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}
.arc-card__img {
    height: 190px;
    overflow: hidden;
}
.arc-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}
.arc-card:hover .arc-card__img img {
    transform: scale(1.06);
}
.arc-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45,125,210,.06);
    color: var(--text-muted);
    font-size: 2rem;
}
.arc-card__body {
    padding: 1.15rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.arc-card__cat {
    display: inline-block;
    background: rgba(0,230,118,.1);
    color: var(--brand-accent);
    padding: .2rem .65rem;
    border-radius: 99px;
    font-size: .72rem;
    font-weight: 600;
    font-family: var(--font-display);
    margin-bottom: .6rem;
    width: fit-content;
}
.arc-card__title {
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.5;
    margin: 0 0 .5rem;
}
.arc-card__excerpt {
    font-size: .82rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0 0 .75rem;
    flex: 1;
}
.arc-card__meta {
    display: flex;
    gap: 1rem;
    font-size: .75rem;
    color: var(--text-muted);
}
.arc-card__meta span {
    display: flex;
    align-items: center;
    gap: .3rem;
}
.arc-card__meta i {
    font-size: .65rem;
    color: var(--brand-primary);
}

/* Pagination */
.arc-pagination { text-align: center; margin: 1rem 0; }
.arc-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
}
.arc-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 .75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: .85rem;
    transition: all .2s;
}
.arc-pagination .page-numbers.current {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}
.arc-pagination .page-numbers:hover:not(.current) {
    background: var(--bg-card-hover);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}
.arc-pagination .prev,
.arc-pagination .next {
    gap: .3rem;
    font-size: .8rem;
}

/* Empty state */
.arc-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-muted);
}
.arc-empty i { font-size: 3rem; margin-bottom: 1rem; display: block; }
.arc-empty p { font-size: 1.1rem; margin-bottom: 1.5rem; }

@media (max-width: 600px) {
    .arc-grid { grid-template-columns: 1fr; }
    .arc-card__img { height: 160px; }
}

/* ============================================
   SECTION SPACING & LAYOUT FIXES
   ============================================ */
/* Consistent section spacing */
.section { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section + .section { border-top: 1px solid rgba(45,125,210,.04); }

/* Section headers consistent */
.section-header { text-align: center; margin-bottom: 2rem; max-width: 800px; margin-left: auto; margin-right: auto; }
.section-header .section-title { font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 800; color: #fff; margin-bottom: .6rem; }
.section-header .section-subtitle { font-size: .88rem; color: var(--text-secondary); line-height: 1.7; max-width: 650px; margin: 0 auto; }

/* Rich text blocks consistent */
.rich-text { max-width: 900px; margin: 0 auto 1.5rem; }
.rich-text p { font-size: .88rem; line-height: 1.85; color: var(--text-secondary); margin-bottom: .85rem; }

/* About section layout */
.about-content { max-width: 900px; margin: 0 auto; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin: 2.5rem 0; max-width: 900px; margin-left: auto; margin-right: auto; }
.stat-card { background: linear-gradient(145deg, var(--bg-card), rgba(45,125,210,.03)); border: 1px solid var(--border-card); border-radius: var(--radius-lg); padding: 1.75rem 1rem; text-align: center; position: relative; overflow: hidden; transition: transform .3s, box-shadow .3s; }
.stat-card::after { content: ''; position: absolute; bottom: 0; right: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent)); opacity: .4; }
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.stat-card__value { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: .3rem; }
.stat-card__label { font-size: .78rem; color: var(--text-secondary); font-weight: 500; }

/* Features grid */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.card { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--radius-md); padding: 1.5rem; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.card__icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(45,125,210,.1); color: var(--brand-primary); font-size: 1.1rem; margin-bottom: 1rem; }
.card__title { font-family: var(--font-display); font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: .4rem; }
.card__text { font-size: .82rem; color: var(--text-secondary); line-height: 1.65; }

/* Steps grid */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.step-item { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--radius-md); padding: 1.5rem; text-align: center; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-primary), #1565C0); color: #fff; font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; margin: 0 auto .75rem; }
.step-item h3 { font-family: var(--font-display); font-size: .9rem; font-weight: 700; color: #fff; margin-bottom: .4rem; }
.step-item p { font-size: .8rem; color: var(--text-secondary); line-height: 1.6; }

/* Info tables - center them */
.info-table { max-width: 900px; margin: 1.5rem auto; }

/* Section images */
.section-image { max-width: 700px; margin: 1.5rem auto; border-radius: var(--radius-md); overflow: hidden; }
.section-image img { width: 100%; height: auto; display: block; border-radius: var(--radius-md); }

/* About timeline */
.about-timeline { max-width: 700px; margin: 2rem auto 0; }

/* FAQ list centering */
.faq-list { max-width: 800px; margin: 0 auto; }

/* Mobile fixes */
@media (max-width: 600px) {
    .about-stats { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .section-header .section-title { font-size: 1.2rem; }
}

/* ============================================
   ABOUT SECTION - New Layout
   ============================================ */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 2rem;
}
.about-layout__text .rich-text {
    margin: 0;
}
.about-layout__text .rich-text p {
    font-size: .88rem;
    line-height: 1.85;
    color: var(--text-secondary);
    margin-bottom: .85rem;
}

/* About Info Card */
.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: sticky;
    top: 80px;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.about-card__title {
    background: linear-gradient(135deg, rgba(45,125,210,.18), rgba(0,230,118,.08));
    padding: 1rem 1.25rem;
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
    border-bottom: 2px solid rgba(45,125,210,.15);
}
.about-card__title i {
    color: var(--brand-primary);
    font-size: .85rem;
}

/* About Info Table - Compact Style */
.about-info-tbl {
    width: 100%;
    border-collapse: collapse;
}
.about-info-tbl tr {
    border-bottom: 1px solid rgba(255,255,255,.04);
    transition: background .15s;
}
.about-info-tbl tr:last-child {
    border-bottom: none;
}
.about-info-tbl tr:hover {
    background: rgba(45,125,210,.05);
}
.about-info-tbl td {
    padding: .7rem 1.25rem;
    font-size: .84rem;
    vertical-align: middle;
    line-height: 1.5;
}
.about-info-tbl td:first-child {
    color: var(--text-secondary);
    white-space: nowrap;
    width: 50%;
}
.about-info-tbl td:first-child i {
    color: var(--brand-primary);
    width: 18px;
    text-align: center;
    margin-left: .5rem;
    font-size: .75rem;
    opacity: .7;
}
.about-info-tbl td:last-child {
    color: var(--brand-accent);
    font-weight: 600;
    text-align: left;
    direction: ltr;
}
.about-info-tbl tr:nth-child(even) {
    background: rgba(255,255,255,.01);
}

@media (max-width: 900px) {
    .about-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .about-card {
        position: relative;
        top: 0;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* ============================================
   ANIMATIONS & INTERACTIONS
   ============================================ */

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-accent), var(--brand-primary));
    z-index: 9999;
    transition: width .1s linear;
    width: 0;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Header scroll states */
.site-header {
    transition: background .3s, transform .3s, box-shadow .3s;
}
.site-header.scrolled {
    background: rgba(10,22,40,0.98) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.site-header.header-hidden {
    transform: translateY(-100%);
}

/* Card hover glow */
.card {
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover {
    border-color: rgba(45,125,210,.2);
    box-shadow: 0 8px 32px rgba(0,0,0,.3), 0 0 0 1px rgba(45,125,210,.1);
}

/* Stat card pulse on hover */
.stat-card {
    transition: transform .3s, box-shadow .3s;
    cursor: default;
}
.stat-card:hover {
    box-shadow: 0 0 20px rgba(0,230,118,.1), var(--shadow-card-hover);
}
.stat-card:hover .stat-card__value {
    text-shadow: 0 0 20px rgba(0,230,118,.3);
}

/* Step number animation */
.step-num {
    transition: transform .3s, box-shadow .3s;
}
.step-item:hover .step-num {
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(45,125,210,.3);
}

/* FAQ open animation */
details.faq-item[open] {
    animation: faqOpen .3s ease;
}
@keyframes faqOpen {
    from { background: var(--bg-card); }
    to { background: var(--bg-card-hover); }
}

/* CTA Banner glow */
.cta-banner {
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(0,230,118,.05) 0%, transparent 50%);
    animation: ctaGlow 8s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes ctaGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-10%, 10%); }
}

/* Hero floating elements */
.hero {
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(45,125,210,.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroFloat 6s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes heroFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -20px) scale(1.1); }
}

/* Button hover effects */
.btn--primary {
    position: relative;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,230,118,.3);
}
.btn--primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width .5s, height .5s;
}
.btn--primary:hover::after {
    width: 300px;
    height: 300px;
}

/* Section badge float */
.section-badge {
    animation: badgeFloat 3s ease-in-out infinite;
}
@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* About info table row hover */
.about-info-tbl tr {
    transition: background .2s, transform .2s;
}
.about-info-tbl tr:hover {
    background: rgba(45,125,210,.06);
    transform: translateX(-3px);
}

/* Comparison table highlight animation */
.info-table tbody tr {
    transition: background .2s, transform .15s;
}
.info-table tbody tr:hover {
    background: rgba(45,125,210,.06);
    transform: scale(1.005);
}

/* Icon spin on card hover */
.card:hover .card__icon i {
    animation: iconPop .4s ease;
}
@keyframes iconPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2) rotate(5deg); }
    100% { transform: scale(1); }
}

/* Floating action buttons pulse */
.floating-btn--green {
    animation: btnPulse 2s ease-in-out infinite;
}
@keyframes btnPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(0,230,118,.3); }
    50% { box-shadow: 0 4px 30px rgba(0,230,118,.5); }
}

/* Logo hover */
.site-logo__brand:hover .site-logo__1x {
    transform: scale(1.05);
    transition: transform .2s;
}

/* ═════════════════════════════════════
   APK DOWNLOAD SECTION — Enhanced Styles
   ═════════════════════════════════════ */

/* APK Section wrapper — subtle card-like background */
.section .apk-content-block {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 2rem 2rem 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}
.section .apk-content-block::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--brand-primary), var(--brand-accent));
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

/* APK info table — enhanced version */
.apk-info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    font-size: .88rem;
    border: 1px solid var(--border-card);
    background: var(--bg-card);
}
.apk-info-table td {
    padding: .85rem 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,.04);
    vertical-align: middle;
    line-height: 1.6;
}
.apk-info-table td:first-child {
    font-weight: 600;
    color: rgba(255,255,255,.85);
    background: rgba(45,125,210,.06);
    width: 45%;
    white-space: nowrap;
}
.apk-info-table td:first-child i {
    color: var(--brand-primary);
    margin-left: .5rem;
    width: 18px;
    text-align: center;
    opacity: .8;
}
.apk-info-table td:last-child {
    color: var(--brand-accent);
    font-weight: 500;
}
.apk-info-table tr:nth-child(even) {
    background: rgba(255,255,255,.012);
}
.apk-info-table tr:hover {
    background: rgba(45,125,210,.06);
}
.apk-info-table tr:last-child td {
    border-bottom: none;
}

/* Section sub-headings inside rich-text */
.section .rich-text h3 {
    font-size: 1.15rem;
    margin-bottom: .75rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid rgba(45,125,210,.15);
    display: inline-block;
}
.section .rich-text h3 i {
    margin-left: .4rem;
    color: var(--brand-primary);
}

/* Two-column layout for APK tables */
.apk-tables-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 768px) {
    .apk-tables-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* APK steps — enhanced with connecting line */
.apk-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    max-width: 900px;
    margin: 1.5rem auto 2rem;
    position: relative;
}
.apk-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
    opacity: .3;
    z-index: 0;
}
.apk-steps .step-item {
    position: relative;
    z-index: 1;
    transition: transform .25s ease, box-shadow .25s ease;
}
.apk-steps .step-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.apk-steps .step-num {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    color: #fff;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(45,125,210,.3);
}
@media (max-width: 768px) {
    .apk-steps {
        grid-template-columns: 1fr 1fr;
    }
    .apk-steps::before {
        display: none;
    }
}
@media (max-width: 480px) {
    .apk-steps {
        grid-template-columns: 1fr;
    }
}

/* APK section CTA buttons area */
.apk-cta-area {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(45,125,210,.08), rgba(0,230,118,.05));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(45,125,210,.12);
}
.apk-cta-area .btn {
    margin: .35rem;
}

/* Section image styling for APK section */
.apk-section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
    margin: 2rem auto;
    border-radius: 2px;
}

/* ═════════════════════════════════════════════════
   GLOBAL ENHANCED STYLES — All Sections Upgrade
   ═════════════════════════════════════════════════ */

/* ── Section Badge — Glow effect ── */
.section-badge {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(45,125,210,.12);
    letter-spacing: .02em;
    transition: all .3s ease;
}
.section-badge:hover {
    background: rgba(45,125,210,.2);
    transform: translateY(-1px);
}

/* ── Section Headers — Gradient underline ── */
.section-header .section-title {
    position: relative;
    display: inline-block;
}
.section-header .section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 50%;
    transform: translateX(50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
    border-radius: 2px;
}

/* ── Cards — Enhanced with gradient border-top & glow ── */
.card {
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
    opacity: 0;
    transition: opacity .3s ease;
}
.card:hover::before {
    opacity: 1;
}
.card__icon {
    background: linear-gradient(135deg, rgba(45,125,210,.15), rgba(0,230,118,.08));
    transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover .card__icon {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(45,125,210,.2);
}
.card__img {
    overflow: hidden;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    margin: -1.75rem -1.75rem 1.25rem;
}
.card__img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform .4s ease;
}
.card:hover .card__img img {
    transform: scale(1.06);
}

/* ── About Section — Enhanced layout ── */
.about-layout {
    position: relative;
}
.about-layout::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -5%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(45,125,210,.04), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.about-card {
    position: relative;
    overflow: hidden;
}
.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
}
.about-info-tbl tr {
    transition: background .2s ease;
}
.about-info-tbl tr:hover {
    background: rgba(45,125,210,.04);
}

/* ── Stat Cards — Enhanced with counter animation feel ── */
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}
.stat-card {
    background: linear-gradient(145deg, var(--bg-card), rgba(45,125,210,.04));
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}
.stat-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
    opacity: .5;
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.stat-card__value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
@media (max-width: 768px) {
    .about-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .about-stats { grid-template-columns: 1fr 1fr; gap: .75rem; }
    .stat-card { padding: 1rem .75rem; }
    .stat-card__value { font-size: 1.5rem; }
}

/* ── Features Grid — Enhanced cards ── */
.features-grid .card {
    text-align: center;
}
.features-grid .card .card__icon {
    margin: 0 auto 1rem;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    font-size: 1.4rem;
}

/* ── Steps — Enhanced with connecting gradient line ── */
.steps-grid {
    position: relative;
}
.steps-grid::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
    opacity: .2;
    z-index: 0;
}
.step-item {
    position: relative;
    z-index: 1;
    transition: transform .25s ease, box-shadow .25s ease;
}
.step-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.step-num {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    box-shadow: 0 4px 12px rgba(45,125,210,.25);
    transition: transform .25s ease;
}
.step-item:hover .step-num {
    transform: scale(1.15);
}
@media (max-width: 768px) {
    .steps-grid::before { display: none; }
}

/* ── Promo Cards — Enhanced with gradient top-border ── */
.promo-card {
    border-top: none;
    position: relative;
    overflow: hidden;
}
.promo-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
}
.promo-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(45,125,210,.12), rgba(0,230,118,.08));
    border-radius: 14px;
    margin-bottom: .75rem;
    transition: transform .3s ease;
}
.promo-card:hover .promo-card__icon {
    transform: scale(1.12) rotate(3deg);
}

/* ── Payment Items — Enhanced with hover glow ── */
.payment-item {
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}
.payment-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
    opacity: 0;
    transition: opacity .3s ease;
}
.payment-item:hover::after {
    opacity: 1;
}
.payment-item:hover {
    background: rgba(45,125,210,.04);
    border-color: rgba(45,125,210,.15);
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.payment-item__icon {
    transition: transform .3s ease;
}
.payment-item:hover .payment-item__icon {
    transform: scale(1.15);
}

/* ── Comparison Table — Enhanced ── */
.comparison-table {
    box-shadow: 0 4px 24px rgba(0,0,0,.2);
}
.comparison-table th {
    background: linear-gradient(135deg, #0E1F3A, #162B4A);
    letter-spacing: .02em;
}
.comparison-table td:first-child {
    background: rgba(45,125,210,.03);
    color: var(--text-primary);
}
.comparison-table .winner-col {
    background: rgba(0,230,118,.03);
}
.comparison-table .highlight {
    font-weight: 700;
    color: var(--brand-accent);
}
.comparison-table tbody tr {
    transition: background .2s ease;
}
.comparison-table tbody tr:hover {
    background: rgba(45,125,210,.04);
}
.comparison-table tbody tr:hover .winner-col {
    background: rgba(0,230,118,.06);
}

/* ── Info Table — Enhanced ── */
.info-table {
    box-shadow: 0 2px 16px rgba(0,0,0,.15);
    transition: box-shadow .3s ease;
}
.info-table:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,.2);
}
.info-table thead th {
    background: linear-gradient(135deg, rgba(45,125,210,.15), rgba(45,125,210,.08));
    letter-spacing: .02em;
}
.info-table tbody td:first-child i {
    color: var(--brand-primary);
    margin-left: .4rem;
    opacity: .7;
}

/* ── FAQ — Enhanced Accordion ── */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all .3s ease;
}
.faq-item:hover {
    border-color: rgba(45,125,210,.15);
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.faq-item[open] {
    border-color: rgba(45,125,210,.2);
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.faq-item[open]::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--brand-primary), var(--brand-accent));
}
.faq-item {
    position: relative;
}
.faq-question {
    padding: 1.15rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-family: var(--font-display);
    font-size: .95rem;
    color: var(--text-primary);
    transition: color .2s ease;
}
.faq-question:hover {
    color: var(--brand-primary);
}
.faq-question i {
    transition: transform .3s ease;
    color: var(--brand-primary);
    font-size: .8rem;
    opacity: .6;
}
.faq-item[open] .faq-question i {
    transform: rotate(180deg);
    opacity: 1;
}
.faq-answer__inner {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-secondary);
    font-size: .9rem;
    line-height: 1.85;
    border-top: 1px solid rgba(45,125,210,.06);
    padding-top: 1rem;
}

/* ── CTA Banner — Enhanced with double glow ── */
.cta-banner {
    position: relative;
}
.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: 10%;
    width: 35%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(45,125,210,.06), transparent 70%);
    pointer-events: none;
}

/* ── Post Cards — Enhanced ── */
.post-card {
    overflow: hidden;
    position: relative;
}
.post-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
    opacity: 0;
    transition: opacity .3s ease;
    z-index: 1;
}
.post-card:hover::before {
    opacity: 1;
}

/* ── Section Alternating backgrounds — Visual rhythm ── */
.section:nth-child(even) {
    position: relative;
}
.section--alt {
    position: relative;
}
.section--alt::before {
    content: '';
    position: absolute;
    top: 0;
    right: -5%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(45,125,210,.03), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.section--alt::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -5%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(0,230,118,.02), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ── Section Dark — Enhanced Mobile App section ── */
.section--dark .card {
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.section--dark .card:hover {
    border-color: rgba(0,230,118,.15);
    box-shadow: 0 8px 24px rgba(0,0,0,.3), 0 0 0 1px rgba(0,230,118,.08);
}

/* ── Global smooth scroll & selection ── */
::selection {
    background: rgba(45,125,210,.3);
    color: #fff;
}

/* ── Rich text links ── */
.rich-text a {
    color: var(--brand-primary);
    text-decoration: underline;
    text-decoration-color: rgba(45,125,210,.3);
    text-underline-offset: 3px;
    transition: all .2s ease;
}
.rich-text a:hover {
    color: var(--brand-accent);
    text-decoration-color: var(--brand-accent);
}

/* ── Section divider utility ── */
.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
    margin: 2rem auto;
    border-radius: 2px;
}

/* ── Enhanced Buttons in dark sections ── */
.section--dark .btn--primary {
    box-shadow: 0 4px 20px rgba(0,230,118,.25);
}
.section--dark .btn--primary:hover {
    box-shadow: 0 6px 28px rgba(0,230,118,.35);
}

/* ── About card title ── */
.about-card__title {
    position: relative;
    padding-bottom: .75rem;
}
.about-card__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
    border-radius: 2px;
}

/* ═════════════════════════════════════════════════
   MOBILE & OVERFLOW FIXES — Comprehensive
   ═════════════════════════════════════════════════ */

/* Global overflow prevention */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* All sections must contain content */
.section {
    overflow: hidden;
    position: relative;
}

/* Container must clip overflow */
.container {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

/* Rich text — prevent text overflow */
.rich-text {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    max-width: 100%;
    padding: 0;
}
.rich-text p {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Section header text overflow fix */
.section-header {
    overflow-wrap: break-word;
    word-wrap: break-word;
    padding: 0 .5rem;
}
.section-title {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}
.section-subtitle {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Tables — responsive without breaking layout */
.info-table,
.apk-info-table,
.comparison-table,
.about-info-tbl {
    max-width: 100%;
    table-layout: fixed;
    width: 100%;
}

/* Wrap tables in scrollable container on mobile */
.comparison-wrapper,
.info-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

/* APK tables grid — responsive */
.apk-tables-grid {
    max-width: 100%;
    overflow: hidden;
}

/* Steps — prevent overflow */
.apk-steps,
.steps-grid {
    max-width: 100%;
    overflow: hidden;
}

/* CTA area overflow */
.apk-cta-area,
.cta-banner {
    overflow: hidden;
    overflow-wrap: break-word;
}

/* Cards text overflow */
.card__text,
.card__title,
.promo-card__text,
.promo-card__title,
.step-item p,
.step-item h3,
.faq-answer__inner,
.faq-question span {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

/* ── Mobile Small (≤480px) ── */
@media (max-width: 480px) {
    /* Container tighter padding */
    .container {
        padding: 0 1rem;
    }
    
    /* Section spacing */
    .section {
        padding: 2rem 0;
    }
    
    /* Section header */
    .section-header {
        margin-bottom: 1.5rem;
        padding: 0;
    }
    .section-header .section-title {
        font-size: 1.15rem;
        line-height: 1.45;
        padding: 0 .25rem;
    }
    .section-header .section-subtitle {
        font-size: .82rem;
        line-height: 1.65;
        padding: 0 .25rem;
    }
    
    /* Rich text */
    .rich-text {
        padding: 0;
    }
    .rich-text p {
        font-size: .82rem;
        line-height: 1.75;
    }
    .rich-text h3 {
        font-size: 1rem;
    }
    
    /* APK tables - single column */
    .apk-tables-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* APK info table - compact */
    .apk-info-table td {
        padding: .6rem .8rem;
        font-size: .8rem;
    }
    .apk-info-table td:first-child {
        white-space: normal;
        width: 50%;
    }
    
    /* APK steps - single column */
    .apk-steps {
        grid-template-columns: 1fr;
        gap: .75rem;
    }
    .apk-steps::before {
        display: none;
    }
    
    /* Step items compact */
    .step-item {
        padding: 1.25rem 1rem;
    }
    
    /* APK CTA */
    .apk-cta-area {
        padding: 1.5rem 1rem;
    }
    .apk-cta-area h3 {
        font-size: .95rem;
    }
    .apk-cta-area .btn {
        width: 100%;
        justify-content: center;
        margin: .25rem 0;
    }
    
    /* Cards */
    .card {
        padding: 1.25rem;
    }
    .card__title {
        font-size: .88rem;
    }
    .card__text {
        font-size: .78rem;
    }
    
    /* Features grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: .75rem;
    }
    
    /* Stat cards */
    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: .6rem;
    }
    .stat-card {
        padding: 1rem .5rem;
    }
    .stat-card__value {
        font-size: 1.3rem;
    }
    .stat-card__label {
        font-size: .7rem;
    }
    
    /* Info tables */
    .info-table {
        font-size: .78rem;
    }
    .info-table thead th,
    .info-table tbody td {
        padding: .55rem .65rem;
    }
    
    /* FAQ */
    .faq-question {
        padding: .9rem 1rem;
        font-size: .85rem;
    }
    .faq-answer__inner {
        padding: 0 1rem 1rem;
        font-size: .82rem;
    }
    
    /* CTA banner */
    .cta-banner {
        padding: 2rem 1.25rem;
        border-radius: var(--radius-md);
    }
    
    /* Hero */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-title {
        font-size: 1.4rem;
        line-height: 1.35;
    }
    .hero-desc {
        font-size: .88rem;
        line-height: 1.7;
    }
    .hero-btns {
        justify-content: center;
    }
    .hero-meta {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0;
    }
    .hero-meta__value {
        font-size: 1.2rem;
    }
    .hero-visual {
        order: -1;
    }
    
    /* Buttons */
    .btn--lg {
        padding: .8rem 1.5rem;
        font-size: .9rem;
    }
    
    /* Promo cards */
    .promos-grid {
        grid-template-columns: 1fr;
    }
    
    /* Payment items */
    .payments-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: .6rem;
    }
    .payment-item {
        padding: .9rem .6rem;
    }
    
    /* About layout */
    .about-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Comparison table scroll */
    .comparison-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .comparison-table th,
    .comparison-table td {
        padding: .5rem .4rem;
        font-size: .72rem;
        white-space: nowrap;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: .75rem;
        text-align: center;
    }
    
    /* Posts grid */
    .latest-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Mobile Medium (≤768px) ── */
@media (max-width: 768px) {
    .container {
        padding: 0 1.1rem;
    }
    
    .section-header .section-title {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
        line-height: 1.4;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-btns {
        justify-content: center;
    }
    .hero-meta {
        justify-content: center;
        flex-wrap: wrap;
    }
    .hero-visual {
        order: -1;
    }
    .hero-phone {
        width: 200px;
        height: 400px;
    }
    
    .about-layout {
        grid-template-columns: 1fr;
    }
    
    .apk-tables-grid {
        grid-template-columns: 1fr;
    }
    
    .apk-steps {
        grid-template-columns: 1fr 1fr;
    }
    .apk-steps::before {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ── Fix inline styles max-width on mobile ── */
@media (max-width: 768px) {
    [style*="max-width:900px"],
    [style*="max-width:800px"],
    [style*="max-width:700px"],
    [style*="max-width: 900px"],
    [style*="max-width: 800px"],
    [style*="max-width: 700px"] {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* ═══════════════════════════════════════════
   MOBILE PERFORMANCE — Disable heavy animations
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
    .hero-particles { display: none !important; }
    .hero::before, .hero::after { display: none !important; }
    .hero-card-wrap { animation: none !important; }
    .hero-text { animation: none !important; }
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero-particles { display: none !important; }
}

/* Force GPU compositing for smoother mobile scroll */
.hero, .section, .hero-card {
    will-change: auto;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Reduce paint complexity on mobile */
@media (max-width: 480px) {
    .hero-card { box-shadow: 0 8px 20px rgba(0,0,0,.2); }
    .card { box-shadow: none; border: 1px solid rgba(45,125,210,.08); }
    .card:hover { transform: none; box-shadow: none; }
    .stat-card:hover { transform: none; box-shadow: none; }
    .step-item:hover { transform: none; box-shadow: none; }
}

/* ═══════════════════════════════════════════
   ARCHIVE & TAG PAGES — Mobile Fixes
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
    .arc-hero { padding: 5rem 1rem 1.5rem; }
    .arc-hero__title { font-size: 1.3rem; line-height: 1.4; overflow-wrap: break-word; }
    .arc-hero__desc { font-size: .85rem; }
    .arc-body__container { padding: 0 .75rem; }
    .arc-grid { grid-template-columns: 1fr; gap: 1rem; }
    .arc-card { border-radius: 12px; }
    .arc-card__img { height: 180px; }
    .arc-card__img img { width: 100%; height: 100%; object-fit: cover; }
    .arc-card__body { padding: 1rem; }
    .arc-card__title { font-size: .9rem; line-height: 1.5; overflow-wrap: break-word; word-break: break-word; }
    .arc-card__excerpt { font-size: .8rem; line-height: 1.6; }
    .arc-card__meta { font-size: .7rem; flex-wrap: wrap; gap: .5rem; }
}
@media (max-width: 480px) {
    .arc-hero { padding: 4.5rem .75rem 1.25rem; }
    .arc-hero__title { font-size: 1.1rem; }
    .arc-card__img { height: 160px; }
    .arc-card__body { padding: .85rem; }
    .arc-card__title { font-size: .85rem; }
    .arc-card__cat { font-size: .65rem; }
}
