/* ========================================
   AlfCasino - Optimized CSS v2.0
   Merged style + responsive, sidebar fix
   ======================================== */

:root {
    --bg-dark: #0a0814;
    --bg-main: #0d0b1e;
    --bg-card: #161432;
    --bg-sidebar: #100e24;
    --purple-dark: #2d2650;
    --purple-mid: #5b4b9e;
    --purple-light: #7c5bbd;
    --purple-bright: #9d4edd;
    --green-main: #00d4aa;
    --green-dark: #00a88a;
    --green-glow: rgba(0, 212, 170, 0.4);
    --gold: #ffd700;
    --gold-dark: #cc9900;
    --orange: #ff6b35;
    --pink: #d946ef;
    --text-white: #ffffff;
    --text-gray: #9ca3af;
    --text-muted: #6b7280;
    --border-purple: #3d3270;
    --header-h: 56px;
    --sidebar-w: 160px;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-main);
    color: var(--text-white);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    min-height: 100vh;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
svg { display: block; }

/* ========================================
   HEADER
   ======================================== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: linear-gradient(180deg, #1a1640 0%, var(--bg-main) 100%);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 20px;
    z-index: 1000;
}
.header__border {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: url('../images/ui/header-border-bottom-bg.78571673a551f4f8.png') repeat-x center / auto 100%;
}
.header__logo img { height: 36px; width: auto; }
.header__login-link {
    color: var(--green-main);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 16px;
    border: 1px solid var(--green-main);
    border-radius: 6px;
    transition: all 0.2s;
    margin-left: 16px;
}
.header__login-link:hover {
    background: var(--green-main);
    color: var(--bg-dark);
}
.header__search {
    max-width: 300px;
    position: relative;
    margin-left: auto;
}
.header__search .search-icon {
    position: absolute; left: 14px; top: 50%;
    transform: translateY(-50%);
    width: 16px; height: 16px;
    color: var(--text-muted);
}
.header__search input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-purple);
    border-radius: 24px;
    color: var(--text-white);
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.header__search input:focus {
    border-color: var(--purple-mid);
    background: rgba(255,255,255,0.08);
}
.header__search input::placeholder { color: var(--text-muted); }
.header__actions { display: flex; gap: 10px; }

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
    height: 44px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0;
    transition: all 0.15s ease;
    white-space: nowrap;
    background: transparent;
    border: none;
}
.btn--primary {
    color: #0a0814;
    background: url('../images/ui/buttons/primary-button-center-default@2x.713c89eca26daf53.png') repeat-x center / 15px 100%;
    text-shadow: 0 1px 0 rgba(255,255,255,0.2);
    margin: 0 15px;
}
.btn--primary::before, .btn--primary::after {
    content: ''; position: absolute; top: 0; width: 15px; height: 100%;
    background-size: 100% 100%; background-repeat: no-repeat;
}
.btn--primary::before { left: -15px; background-image: url('../images/ui/buttons/primary-button-left-default@2x.f2d861fa1601694d.png'); }
.btn--primary::after { right: -15px; background-image: url('../images/ui/buttons/primary-button-right-default@2x.502d06e6a0697b95.png'); }
.btn--primary:hover { background-image: url('../images/ui/buttons/primary-button-center-hover@2x.89d11f4f30d65055.png'); }
.btn--primary:hover::before { background-image: url('../images/ui/buttons/primary-button-left-hover@2x.84a5358bd4244fa9.png'); }
.btn--primary:hover::after { background-image: url('../images/ui/buttons/primary-button-right-hover@2x.a6eb95e364b98404.png'); }

.btn--outline {
    color: var(--text-white);
    background: url('../images/ui/buttons/secondary-button-center-default@2x.c14a7dd75d3a6794.png') repeat-x center / 15px 100%;
    border: none; margin: 0 15px;
}
.btn--outline::before, .btn--outline::after {
    content: ''; position: absolute; top: 0; width: 15px; height: 100%;
    background-size: 100% 100%; background-repeat: no-repeat;
}
.btn--outline::before { left: -15px; background-image: url('../images/ui/buttons/secondary-button-left-default@2x.a031927d4c9d26bf.png'); }
.btn--outline::after { right: -15px; background-image: url('../images/ui/buttons/secondary-button-right-default@2x.5908ef8ccf67b3d7.png'); }
.btn--outline:hover { background-image: url('../images/ui/buttons/secondary-button-center-hover@2x.800aaa5db4473dc6.png'); }
.btn--outline:hover::before { background-image: url('../images/ui/buttons/secondary-button-left-hover@2x.f42dd5e7c37f4dcb.png'); }
.btn--outline:hover::after { background-image: url('../images/ui/buttons/secondary-button-right-hover@2x.bb9fc3932480897c.png'); }

.btn--cta {
    color: #0a0814;
    padding: 0 35px; height: 52px;
    font-size: 14px; font-weight: 800;
    background: url('../images/ui/buttons/primary-button-center-default@2x.713c89eca26daf53.png') repeat-x center / 15px 100%;
    text-shadow: 0 1px 0 rgba(255,255,255,0.2);
    margin: 0 15px;
}
.btn--cta::before, .btn--cta::after {
    content: ''; position: absolute; top: 0; width: 15px; height: 100%;
    background-size: 100% 100%; background-repeat: no-repeat;
}
.btn--cta::before { left: -15px; background-image: url('../images/ui/buttons/primary-button-left-default@2x.f2d861fa1601694d.png'); }
.btn--cta::after { right: -15px; background-image: url('../images/ui/buttons/primary-button-right-default@2x.502d06e6a0697b95.png'); }
.btn--cta:hover { background-image: url('../images/ui/buttons/primary-button-center-hover@2x.89d11f4f30d65055.png'); }
.btn--cta:hover::before { background-image: url('../images/ui/buttons/primary-button-left-hover@2x.84a5358bd4244fa9.png'); }
.btn--cta:hover::after { background-image: url('../images/ui/buttons/primary-button-right-hover@2x.a6eb95e364b98404.png'); }

.btn--sm {
    padding: 0 20px; height: 36px; font-size: 11px;
    color: var(--text-white);
    background: url('../images/ui/buttons/tertiary-button-center-default@2x.8c8c870a6363e2d8.png') repeat-x center / 15px 100%;
    margin: 0 12px;
}
.btn--sm::before, .btn--sm::after {
    content: ''; position: absolute; top: 0; width: 12px; height: 100%;
    background-size: 100% 100%; background-repeat: no-repeat;
}
.btn--sm::before { left: -12px; background-image: url('../images/ui/buttons/tertiary-button-left-default@2x.462740332c0b415f.png'); }
.btn--sm::after { right: -12px; background-image: url('../images/ui/buttons/tertiary-button-right-default@2x.7d4c931b70ce3730.png'); }
.btn--sm:hover { background-image: url('../images/ui/buttons/tertiary-button-center-hover@2x.4db936ac440c0912.png'); }
.btn--sm:hover::before { background-image: url('../images/ui/buttons/tertiary-button-left-hover@2x.bc34bf5d7c4bb238.png'); }
.btn--sm:hover::after { background-image: url('../images/ui/buttons/tertiary-button-right-hover@2x.9e7404b2da969d64.png'); }

.btn--link { color: var(--text-gray); padding: 8px 0; font-weight: 500; height: auto; }
.btn--lang, .btn--chat { padding: 0 24px; height: 44px; font-size: 13px; }
.btn--lang {
    color: var(--text-white);
    background: url('../images/ui/buttons/secondary-button-center-default@2x.c14a7dd75d3a6794.png') repeat-x center / 15px 100%;
    margin: 0 15px;
}
.btn--lang::before, .btn--lang::after {
    content: ''; position: absolute; top: 0; width: 15px; height: 100%;
    background-size: 100% 100%; background-repeat: no-repeat;
}
.btn--lang::before { left: -15px; background-image: url('../images/ui/buttons/secondary-button-left-default@2x.a031927d4c9d26bf.png'); }
.btn--lang::after { right: -15px; background-image: url('../images/ui/buttons/secondary-button-right-default@2x.5908ef8ccf67b3d7.png'); }
.btn--chat {
    color: #0a0814; font-weight: 800;
    background: url('../images/ui/buttons/primary-button-center-default@2x.713c89eca26daf53.png') repeat-x center / 15px 100%;
    margin: 0 15px;
}
.btn--chat::before, .btn--chat::after {
    content: ''; position: absolute; top: 0; width: 15px; height: 100%;
    background-size: 100% 100%; background-repeat: no-repeat;
}
.btn--chat::before { left: -15px; background-image: url('../images/ui/buttons/primary-button-left-default@2x.f2d861fa1601694d.png'); }
.btn--chat::after { right: -15px; background-image: url('../images/ui/buttons/primary-button-right-default@2x.502d06e6a0697b95.png'); }

/* ========================================
   LAYOUT
   ======================================== */
.layout { display: flex; padding-top: var(--header-h); min-height: 100vh; }

/* ========================================
   SIDEBAR - FIXED overflow issue
   ======================================== */
.sidebar {
    width: var(--sidebar-w);
    background: var(--bg-sidebar);
    position: fixed;
    top: var(--header-h); left: 0; bottom: 0;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid var(--border-purple);
    z-index: 100;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--purple-mid); border-radius: 4px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: var(--purple-light); }

/* Spin Rally Banner */
.spin-rally-banner {
    position: relative;
    padding: 12px;
    background: #1a1a2e;
    border-radius: 10px;
    margin-bottom: 8px;
    border: 1px solid #2a2a45;
    flex-shrink: 0;
}
.spin-rally-banner__close {
    position: absolute; top: 8px; right: 8px;
    background: transparent; border: none;
    color: #6b6b8a; font-size: 16px; cursor: pointer; padding: 0; line-height: 1;
}
.spin-rally-banner__header {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 8px; padding-right: 20px;
}
.spin-rally-banner__flag { font-size: 24px; line-height: 1; flex-shrink: 0; }
.spin-rally-banner__text { display: flex; flex-direction: column; min-width: 0; }
.spin-rally-banner__title {
    font-size: 12px; font-weight: 700; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.spin-rally-banner__subtitle { font-size: 11px; color: #8b8ba7; }
.spin-rally-banner__footer { display: flex; align-items: center; gap: 10px; }
.spin-rally-banner__time { font-size: 13px; font-weight: 700; color: #00d4aa; flex-shrink: 0; }

/* FIX: Sidebar button constrained within sidebar width */
.spin-rally-banner__btn {
    flex: 1;
    padding: 8px 10px;
    background: linear-gradient(180deg, #00e5bb 0%, #00a88a 100%);
    border: none;
    border-radius: 6px;
    color: #0a0814;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Promo Buttons - Fixed overflow */
.sidebar__promo {
    display: flex; gap: 6px;
    margin-bottom: 12px; flex-shrink: 0;
}
.promo-btn {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: flex-end;
    padding: 10px 4px 8px;
    border-radius: 10px;
    text-align: center;
    min-height: 90px;
    position: relative;
    overflow: hidden;
    border: none; cursor: pointer;
    min-width: 0;
}
.promo-btn--crab { background: linear-gradient(180deg, #7c3aed 0%, #5b21b6 100%); }
.promo-btn--wheel { background: linear-gradient(180deg, #9333ea 0%, #6b21a8 100%); }
.promo-btn img { width: 50px; height: 50px; object-fit: contain; margin-bottom: 6px; }
.promo-btn span {
    font-size: 9px; font-weight: 800; line-height: 1.2;
    color: white; text-transform: uppercase;
    overflow: hidden; text-overflow: ellipsis;
}

/* Sidebar Navigation */
.sidebar__nav { display: flex; flex-direction: column; gap: 2px; }
.nav-link {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 11px; font-weight: 700;
    color: var(--text-gray);
    transition: all 0.15s ease;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.nav-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-link:hover { background: rgba(255,255,255,0.05); color: var(--text-white); }
.nav-link--active { background: rgba(124, 58, 237, 0.15); color: var(--text-white); }
.nav-link--support { line-height: 1.3; }
.sidebar__divider { height: 1px; background: var(--border-purple); margin: 12px 0; }
.sidebar__bottom { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border-purple); }

/* Language Selector - Fixed within sidebar */
.lang-select {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; padding: 10px 4px;
    flex-wrap: wrap;
}
.lang-select__link {
    display: block; width: 24px; height: 18px;
    border-radius: 3px; overflow: hidden;
    transition: all 0.2s ease;
    opacity: 0.6; border: 2px solid transparent;
    flex-shrink: 0;
}
.lang-select__link:hover { opacity: 1; transform: scale(1.1); }
.lang-select__link--active { opacity: 1; border-color: var(--green-main); box-shadow: 0 0 8px var(--green-glow); }
.lang-select__link img { width: 100%; height: 100%; object-fit: cover; }

/* Aliases for different naming conventions across sites */
.lang-selector { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 4px; flex-wrap: wrap; }
.lang-selector__link { display: block; width: 24px; height: 18px; border-radius: 3px; overflow: hidden; transition: all 0.2s ease; opacity: 0.6; border: 2px solid transparent; flex-shrink: 0; }
.lang-selector__link:hover { opacity: 1; transform: scale(1.1); }
.lang-selector__link--active { opacity: 1; border-color: var(--green-main); box-shadow: 0 0 8px var(--green-glow); }
.lang-selector__link img, .lang-selector__flag { width: 100%; height: 100%; object-fit: cover; }
.lang-switcher { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 4px; flex-wrap: wrap; }
.lang-switcher__link { display: block; width: 24px; height: 18px; border-radius: 3px; overflow: hidden; transition: all 0.2s ease; opacity: 0.6; border: 2px solid transparent; flex-shrink: 0; }
.lang-switcher__link:hover { opacity: 1; transform: scale(1.1); }
.lang-switcher__link--active { opacity: 1; border-color: var(--green-main); box-shadow: 0 0 8px var(--green-glow); }
.lang-switcher__link img, .lang-switcher__flag { width: 100%; height: 100%; object-fit: cover; }

/* ========================================
   MAIN CONTENT
   ======================================== */
.main { flex: 1; margin-left: var(--sidebar-w); padding: 16px 20px; }

/* ========================================
   CATEGORY BAR
   ======================================== */
.category-bar {
    display: flex; gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto; padding-bottom: 4px;
}
.cat-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 16px;
    background: transparent;
    border: 2px solid var(--border-purple);
    border-radius: 20px;
    color: var(--text-white);
    font-size: 11px; font-weight: 800;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.cat-btn:hover { border-color: var(--purple-mid); background: rgba(91, 75, 158, 0.15); }
.cat-btn--gold .cat-icon { color: #ffd700; }
.cat-btn--green .cat-icon { color: #00d4aa; }
.cat-btn--orange .cat-icon { color: #ff9500; }
.cat-btn--purple .cat-icon { color: #d946ef; }
.cat-btn--cyan .cat-icon { color: #00d4ff; }
.cat-btn--red .cat-icon { color: #ff4444; }
.cat-btn--pink .cat-icon { color: #ff69b4; }
.cat-btn--blue .cat-icon { color: #4a9eff; }
.cat-icon { font-size: 14px; }

/* ========================================
   HERO BANNER
   ======================================== */
.hero {
    position: relative; margin-bottom: 28px;
    border-radius: 16px; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    border: 3px solid rgba(100, 150, 255, 0.5);
    border-radius: 16px; pointer-events: none; z-index: 3;
    box-shadow: inset 0 0 30px rgba(100, 150, 255, 0.2);
}
.hero__link { position: absolute; inset: 0; z-index: 4; }
.hero__content {
    position: absolute; left: 40px; top: 50%;
    transform: translateY(-50%); z-index: 2; max-width: 400px;
}
.hero__badge {
    display: inline-block; padding: 6px 16px;
    background: linear-gradient(90deg, var(--pink), var(--purple-mid));
    border-radius: 20px; font-size: 11px; font-weight: 700; margin-bottom: 16px;
}
.hero__title {
    display: block; font-size: 32px; font-weight: 800; line-height: 1.15; margin-bottom: 24px;
    background: linear-gradient(180deg, #fff 20%, #c4b5fd 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero__visual { width: 100%; }
.hero__visual img { width: 100%; height: auto; display: block; }
.hero__frame { display: none; }

/* ========================================
   SECTIONS
   ======================================== */
.section { margin-bottom: 32px; }
.section__head {
    display: flex; align-items: center;
    justify-content: space-between; margin-bottom: 16px;
}
.section__head h2, .section__head .section__title { font-size: 18px; font-weight: 800; display: block; }
.section__more {
    font-size: 13px; color: var(--green-main);
    display: flex; align-items: center; gap: 4px; transition: color 0.2s;
}
.section__more:hover { color: var(--green-dark); }
.section__more span { font-size: 16px; }
.section__sub { font-size: 13px; color: var(--text-gray); margin-top: -8px; margin-bottom: 16px; }
.text-green { color: var(--green-main); font-weight: 700; }
.text-gold { color: var(--gold); }
.section__nav { display: flex; align-items: center; gap: 8px; }
.nav-arrow {
    width: 26px; height: 26px; border-radius: 50%;
    background: transparent; border: 2px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.5);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; transition: all 0.2s ease;
}
.nav-arrow:hover { border-color: var(--green-main); color: var(--green-main); }

/* ========================================
   GRIDS
   ======================================== */
.grid { display: grid; gap: 12px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
.grid--7 { grid-template-columns: repeat(7, 1fr); }
.grid--8 { grid-template-columns: repeat(8, 1fr); }

/* ========================================
   GAME CARDS
   ======================================== */
.card {
    position: relative; border-radius: 12px; overflow: hidden;
    background: var(--bg-card); aspect-ratio: 2/3;
    cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card::after {
    content: ''; position: absolute; inset: 0;
    border: 2px solid var(--border-purple); border-radius: 12px;
    pointer-events: none; transition: border-color 0.2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(124, 58, 237, 0.25); }
.card:hover::after { border-color: var(--purple-mid); }
.card > img { width: 100%; height: 100%; object-fit: cover; }
.card--wide { aspect-ratio: 16/10; }

/* Top 5 */
.section--top5 { margin-bottom: 60px; }
.top5-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 35px; padding-bottom: 50px; }
.top5-card { position: relative; }
.top5-card__inner {
    position: relative; width: 100%; aspect-ratio: 0.67;
    border-radius: 10px; overflow: hidden; background: var(--bg-card);
}
.top5-card__inner::before {
    content: ''; position: absolute; inset: -6px;
    background: url('../images/ui/basic-frame.d66e07fe4448c6cb.png') center / 100% 100% no-repeat;
    pointer-events: none; z-index: 10;
}
.top5-card:hover .top5-card__inner::before { background-image: url('../images/ui/hover-frame.352da8d0240afea8.png'); }
.top5-card__inner img { width: 100%; height: 100%; object-fit: cover; }
.top5-card__badge {
    position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    padding: 4px 12px;
    background: linear-gradient(180deg, #00d4aa 0%, #00a88a 100%);
    border-radius: 4px; font-size: 10px; font-weight: 700;
    color: #0a0814; z-index: 10; text-transform: uppercase; white-space: nowrap;
}
.top5-card__rank {
    position: absolute; bottom: -22px; left: 8px;
    font-size: 95px; font-weight: 900;
    font-family: 'Arial Black', Impact, sans-serif;
    line-height: 0.75; z-index: 20; color: #3d4560;
}

/* Casino Live / Sport / Badges */
.card--live { aspect-ratio: 0.52; }
.card--sport {
    aspect-ratio: 0.85;
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
    display: flex; flex-direction: column;
    align-items: center; justify-content: flex-end;
    padding: 0 10px 20px;
}
.card--sport::before {
    content: ''; position: absolute; inset: -4px;
    background: url('../images/ui/basic-frame.d66e07fe4448c6cb.png') center / 100% 100% no-repeat;
    pointer-events: none; z-index: 5;
}
.card--sport::after { display: none; }
.card--sport img {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -55%);
    width: 85%; height: auto; max-height: 70%; object-fit: contain;
}
.card__sport-label {
    position: relative; padding: 8px 14px;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
    border-radius: 6px; font-size: 10px; font-weight: 700;
    white-space: nowrap; z-index: 10; text-transform: uppercase; text-align: center;
}
.card__badge {
    position: absolute; top: 10px; left: 10px;
    padding: 5px 10px; font-size: 9px; font-weight: 700;
    border-radius: 4px; z-index: 15; text-transform: uppercase;
}
.card__badge--new { background: linear-gradient(135deg, var(--green-main) 0%, var(--green-dark) 100%); color: #0a0814; }
.card__badge--excl { background: linear-gradient(135deg, var(--pink) 0%, var(--purple-mid) 100%); color: #fff; }
.card__jackpot {
    position: absolute; bottom: 10px; left: 10px; right: 10px;
    padding: 8px 12px; background: rgba(0,0,0,0.75); backdrop-filter: blur(6px);
    border-radius: 6px; font-size: 12px; font-weight: 700; text-align: center; color: var(--gold);
}
.card__live {
    position: absolute; bottom: 10px; left: 10px; right: 10px;
    padding: 8px 12px;
    background: linear-gradient(90deg, var(--green-main), var(--green-dark));
    border-radius: 6px; font-size: 11px; font-weight: 700; text-align: center; color: #0a0814;
}

/* ========================================
   RALLY CARDS
   ======================================== */
.rally-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rally {
    display: flex; background: var(--bg-card); border-radius: 12px;
    overflow: hidden; border: 2px solid var(--border-purple);
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.rally:hover { border-color: var(--purple-mid); transform: translateY(-4px); }
.rally__img { position: relative; width: 100px; flex-shrink: 0; }
.rally__img img { width: 100%; height: 100%; object-fit: cover; }
.rally__premium {
    position: absolute; top: 8px; left: 8px;
    padding: 4px 8px; background: var(--purple-mid);
    border-radius: 4px; font-size: 9px; font-weight: 700; color: #fff;
}
.rally__body { flex: 1; padding: 12px; display: flex; flex-direction: column; min-width: 0; }
.rally__body h4 { font-size: 13px; font-weight: 700; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rally__info { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: 11px; margin-bottom: auto; }
.rally__info dt { color: var(--text-gray); }
.rally__info dd { color: var(--text-white); font-weight: 600; text-align: right; }
.rally .btn--sm { margin-top: 12px; width: 100%; }

/* ========================================
   PROMO BANNERS
   ======================================== */
.promo {
    position: relative; margin: 32px 0;
    border-radius: 16px; overflow: hidden;
}
.promo::before {
    content: ''; position: absolute; inset: 0;
    border: 3px solid rgba(100, 150, 255, 0.5);
    border-radius: 16px; pointer-events: none; z-index: 3;
    box-shadow: inset 0 0 30px rgba(100, 150, 255, 0.2);
}
.promo__link { position: absolute; inset: 0; z-index: 4; }
.promo__content {
    position: absolute; left: 40px; top: 50%;
    transform: translateY(-50%); z-index: 2; max-width: 400px;
}
.promo__content h2, .promo__content .promo__title {
    font-size: 24px; font-weight: 800; line-height: 1.25; margin-bottom: 16px; display: block;
}
.promo__bg { width: 100%; height: auto; display: block; }

/* ========================================
   BOTTOM / FOOTER
   ======================================== */
.bottom-actions { display: flex; justify-content: center; gap: 16px; margin: 32px 0; }
.footer {
    background: #161432;
    border-radius: 20px 20px 0 0;
    padding: 40px 24px 24px; margin-top: 40px;
}
.footer__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 24px; margin-bottom: 32px; }
.footer__col h4 { font-size: 12px; font-weight: 700; margin-bottom: 12px; color: var(--text-white); }
.footer__col ul { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.footer__col li a { font-size: 12px; color: var(--text-gray); transition: color 0.2s; }
.footer__col li a:hover { color: var(--green-main); }
.footer__pay {
    display: flex; align-items: center; justify-content: center; gap: 20px;
    padding: 24px 0;
    border-top: 1px solid var(--border-purple); border-bottom: 1px solid var(--border-purple);
}
.pay-icon { padding: 8px 16px; background: rgba(255,255,255,0.1); border-radius: 6px; font-size: 12px; font-weight: 700; color: var(--text-gray); }
.footer__more-link { color: var(--green-main); font-size: 12px; }
.footer__age { display: flex; justify-content: center; padding: 24px 0; }
.footer__age span {
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px;
    border: 2px solid #dc2626; border-radius: 50%;
    font-size: 16px; font-weight: 700; color: #dc2626;
}
.footer__disc { text-align: center; font-size: 11px; color: var(--text-muted); line-height: 1.7; }

/* ========================================
   SEO CONTENT
   ======================================== */
.seo-content {
    background: var(--bg-card); border-radius: 16px;
    padding: 32px; margin-bottom: 24px; line-height: 1.8;
}
.seo-content h1 { font-size: 28px; font-weight: 800; margin-bottom: 24px; color: var(--text-white); }
.seo-content h2 { font-size: 24px; font-weight: 800; margin-bottom: 24px; color: var(--text-white); }
.seo-content h3 { font-size: 20px; font-weight: 700; margin: 32px 0 16px; color: var(--green-main); }
.seo-content h4 { font-size: 16px; font-weight: 700; margin: 24px 0 12px; color: var(--purple-light); }
.seo-content p { margin-bottom: 16px; color: var(--text-gray); font-weight: 500; }
.seo-content ul, .seo-content ol { margin: 16px 0; padding-left: 24px; color: var(--text-gray); }
.seo-content ul { list-style: disc; }
.seo-content ol { list-style: decimal; }
.seo-content li { margin-bottom: 8px; font-weight: 500; }
.seo-content strong { color: var(--text-white); font-weight: 700; }
.seo-content a { color: var(--green-main); text-decoration: underline; transition: color 0.2s; }
.seo-content a:hover { color: var(--green-dark); }
.seo-table {
    width: 100%; border-collapse: collapse; margin: 20px 0;
    background: var(--bg-sidebar); border-radius: 12px; overflow: hidden;
}
.seo-table th, .seo-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border-purple); }
.seo-table th { background: var(--purple-dark); font-weight: 700; color: var(--text-white); font-size: 14px; }
.seo-table td { color: var(--text-gray); font-weight: 500; }
.seo-table tr:last-child td { border-bottom: none; }
.seo-table tr:hover td { background: rgba(93, 75, 158, 0.1); }
.seo-content .list-pros li::marker { content: "✅ "; }
.seo-content .list-cons li::marker { content: "⚠️ "; }
.testimonials { display: grid; gap: 16px; margin: 24px 0; }
.testimonials blockquote { background: var(--bg-sidebar); border-left: 4px solid var(--green-main); padding: 20px 24px; border-radius: 0 12px 12px 0; }
.testimonials blockquote p { font-style: italic; margin-bottom: 12px; color: var(--text-white); }
.testimonials cite { display: block; font-size: 14px; font-weight: 700; color: var(--gold); }
.faq { margin: 24px 0; }
.faq details { background: var(--bg-sidebar); border-radius: 12px; margin-bottom: 8px; overflow: hidden; }
.faq summary {
    padding: 18px 24px; cursor: pointer; font-weight: 700;
    color: var(--text-white); display: flex; align-items: center;
    justify-content: space-between; transition: background 0.2s;
}
.faq summary:hover { background: var(--purple-dark); }
.faq summary::marker { display: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--green-main); font-weight: 700; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 24px 18px; margin: 0; }
.disclaimer {
    background: rgba(255, 107, 53, 0.1); border: 1px solid var(--orange);
    border-radius: 12px; padding: 20px 24px; margin-top: 32px;
}
.disclaimer p { margin: 0; color: var(--orange); font-size: 12px; line-height: 1.6; }
.info-box { background: var(--bg-sidebar); border-left: 4px solid var(--green-main); border-radius: 0 12px 12px 0; padding: 20px 24px; margin: 24px 0; }
.info-box p { margin: 0; color: var(--text-white); }

/* ========================================
   MOBILE MENU BURGER
   ======================================== */
.menu-burger {
    display: none; flex-direction: column;
    justify-content: center; align-items: center;
    width: 2.75rem; height: 2.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: none; border-radius: 0.5rem;
    cursor: pointer; padding: 0.5rem;
    z-index: 1001; flex-shrink: 0;
}
.menu-burger__line {
    display: block; width: 1.25rem; height: 0.125rem;
    background: #fff; border-radius: 0.125rem; transition: all 0.3s ease;
}
.menu-burger__line:nth-child(1) { margin-bottom: 0.3rem; }
.menu-burger__line:nth-child(3) { margin-top: 0.3rem; }
.menu-burger.active .menu-burger__line:nth-child(1) { transform: rotate(45deg) translate(0.3rem, 0.3rem); }
.menu-burger.active .menu-burger__line:nth-child(2) { opacity: 0; }
.menu-burger.active .menu-burger__line:nth-child(3) { transform: rotate(-45deg) translate(0.3rem, -0.3rem); }
.mobile-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8); z-index: 99;
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-overlay.active { opacity: 1; visibility: visible; }

/* Mobile nav hidden by default */
.sidebar__nav--mobile, .sidebar__divider--mobile { display: none; }

/* ========================================
   RESPONSIVE - TABLET (max 992px)
   ======================================== */
@media screen and (max-width: 992px) {
    .menu-burger { display: flex !important; }
    .mobile-overlay { display: block !important; }
    .sidebar {
        position: fixed !important; top: 3.5rem !important; left: 0 !important; bottom: 0 !important;
        width: 220px !important; transform: translateX(-100%) !important;
        transition: transform 0.3s ease !important; z-index: 100 !important;
    }
    .sidebar.active { transform: translateX(0) !important; }
    .main { margin-left: 0 !important; padding: 1rem !important; width: 100% !important; }
    .grid--8 { grid-template-columns: repeat(4, 1fr) !important; }
    .grid--7 { grid-template-columns: repeat(4, 1fr) !important; }
    .grid--5 { grid-template-columns: repeat(3, 1fr) !important; }
    .top5-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 1rem !important; }
    .rally-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .footer__grid { grid-template-columns: repeat(3, 1fr) !important; }
}

/* ========================================
   RESPONSIVE - MOBILE (max 768px)
   Touch targets ≥ 44px, min font 12px
   ======================================== */
@media screen and (max-width: 768px) {
    /* === RESET — scoped, not nuclear === */
    html, body { overflow-x: hidden !important; width: 100% !important; }
    img, video, iframe, table { max-width: 100% !important; }
    img { height: auto !important; display: block !important; }
    .hero__visual img, .promo__bg { width: 100% !important; height: auto !important; }
    .rally__img img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
    .promo-btn img { width: 44px !important; height: 44px !important; object-fit: contain !important; }

    /* === SAFE AREA for iOS notch/gesture bar === */
    body { padding-bottom: env(safe-area-inset-bottom, 0) !important; }

    /* === HEADER — 56px height, 44px touch targets, frosted glass === */
    .header {
        height: 3.5rem !important; padding: 0 0.75rem !important; gap: 0.5rem !important;
        display: flex !important; align-items: center !important;
        justify-content: space-between !important; flex-wrap: nowrap !important;
        backdrop-filter: blur(12px) saturate(1.2) !important;
        -webkit-backdrop-filter: blur(12px) saturate(1.2) !important;
        background: rgba(26, 22, 64, 0.85) !important;
    }
    .menu-burger {
        display: flex !important; order: 1 !important; flex-shrink: 0 !important;
        width: 2.75rem !important; height: 2.75rem !important;
        min-width: 44px !important; min-height: 44px !important;
    }
    .header__logo {
        order: 2 !important; flex: 1 !important;
        display: flex !important; justify-content: center !important; align-items: center !important;
    }
    .header__logo img { height: 1.75rem !important; width: auto !important; max-width: 6rem !important; }
    .header__search { display: none !important; }
    .header > .header__login-link { display: none !important; }
    .header__actions {
        order: 3 !important; display: flex !important; gap: 0.5rem !important;
        margin-left: 0 !important; flex-shrink: 0 !important;
    }
    .header__actions .header__login-link {
        display: flex !important; align-items: center !important; justify-content: center !important;
        padding: 0.5rem 0.75rem !important;
        font-size: 0.75rem !important; font-weight: 700 !important;
        text-transform: uppercase !important; border-radius: 0.5rem !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: none !important; color: #fff !important; white-space: nowrap !important;
        min-height: 2.5rem !important;
    }
    .header__actions .header__login-link:last-child {
        background: linear-gradient(180deg, #00e5bb 0%, #00a88a 100%) !important;
        color: #0a0814 !important;
    }

    /* === LAYOUT === */
    .layout {
        flex-direction: column !important;
        width: 100% !important; max-width: 100% !important; overflow-x: hidden !important;
    }

    /* === SIDEBAR — wider, better touch targets === */
    .sidebar {
        position: fixed !important; top: 3.5rem !important; left: 0 !important; bottom: 0 !important;
        width: 80% !important; max-width: 300px !important;
        transform: translateX(-100%) !important; transition: transform 0.3s ease !important;
        z-index: 100 !important; overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 1rem 0.75rem !important;
    }
    .sidebar.active { transform: translateX(0) !important; }
    .mobile-overlay { display: block !important; }
    .nav-link {
        min-height: 2.75rem !important;
        padding: 0.625rem 0.75rem !important;
        font-size: 0.8125rem !important;
    }

    /* === MOBILE NAV (Login/Bonus) === */
    .sidebar__nav--mobile, .sidebar__divider--mobile { display: flex !important; }
    .sidebar__nav--mobile {
        flex-direction: column !important; gap: 0.375rem !important;
        background: rgba(0, 212, 170, 0.08) !important;
        border-radius: 0.75rem !important; padding: 0.625rem !important; margin-bottom: 0.75rem !important;
    }
    .sidebar__nav--mobile .nav-link {
        background: rgba(0, 212, 170, 0.15) !important;
        border-radius: 0.5rem !important; color: #00d4aa !important;
        font-weight: 700 !important; min-height: 2.75rem !important;
    }

    /* === MAIN CONTENT === */
    .main {
        margin-left: 0 !important; padding: 0.875rem !important;
        width: 100% !important; max-width: 100% !important; overflow-x: hidden !important;
    }

    /* === HERO BANNER — gradient overlay for readability === */
    .hero { border-radius: 0.75rem !important; margin-bottom: 1.25rem !important; min-height: 140px !important; }
    .hero__visual::after {
        content: '' !important; position: absolute !important;
        inset: 0 !important;
        background: linear-gradient(90deg, rgba(10,8,20,0.75) 0%, rgba(10,8,20,0.3) 50%, transparent 100%) !important;
        z-index: 1 !important; pointer-events: none !important;
    }
    .hero__visual { position: relative !important; }
    .hero__content { left: 1rem !important; max-width: 65% !important; z-index: 2 !important; }
    .hero__badge {
        padding: 0.375rem 0.75rem !important; font-size: 0.6875rem !important;
        margin-bottom: 0.625rem !important; display: inline-block !important;
    }
    .hero__title { font-size: 1.25rem !important; margin-bottom: 0.875rem !important; line-height: 1.2 !important; }
    .hero::before { border-width: 2px !important; border-radius: 0.75rem !important; }

    /* === CTA BUTTONS — min 44px height === */
    .btn--cta {
        height: 2.75rem !important; padding: 0 1.25rem !important;
        font-size: 0.75rem !important; margin: 0 0.625rem !important;
        min-height: 44px !important;
    }
    .btn--cta::before, .btn--cta::after { width: 0.625rem !important; }
    .btn--cta::before { left: -0.625rem !important; }
    .btn--cta::after { right: -0.625rem !important; }

    /* === CATEGORY BAR — scroll snap, readable === */
    .category-bar {
        gap: 0.5rem !important; margin-bottom: 1.25rem !important;
        overflow-x: auto !important; -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important; flex-wrap: nowrap !important;
        scroll-snap-type: x mandatory !important;
        padding: 0.25rem 0 0.5rem !important;
    }
    .category-bar::-webkit-scrollbar { display: none !important; }
    .cat-btn {
        padding: 0.5rem 0.875rem !important; font-size: 0.75rem !important;
        border-radius: 1.25rem !important; flex-shrink: 0 !important;
        scroll-snap-align: start !important;
        min-height: 2.25rem !important;
    }

    /* === SECTIONS === */
    .section { margin-bottom: 1.5rem !important; }
    .section__head { margin-bottom: 0.75rem !important; flex-wrap: wrap !important; gap: 0.5rem !important; }
    .section__head h2, .section__head .section__title { font-size: 1.0625rem !important; font-weight: 800 !important; }
    .section__more { font-size: 0.8125rem !important; }
    .section__sub { font-size: 0.8125rem !important; }
    .section__nav { display: flex !important; gap: 0.375rem !important; }
    .nav-arrow { width: 2rem !important; height: 2rem !important; font-size: 0.875rem !important; min-width: 32px !important; }

    /* === GRIDS — 3 columns on wider mobile, 2 on small === */
    .grid { gap: 0.5rem !important; width: 100% !important; }
    .grid--8, .grid--7 { grid-template-columns: repeat(3, 1fr) !important; gap: 0.5rem !important; }
    .grid--5, .grid--4 { grid-template-columns: repeat(2, 1fr) !important; gap: 0.5rem !important; }
    .grid--3 { grid-template-columns: repeat(2, 1fr) !important; gap: 0.5rem !important; }

    /* === CARDS === */
    .card { border-radius: 0.625rem !important; }
    .card::after { border-radius: 0.625rem !important; border-width: 1px !important; }
    .card:hover { transform: none !important; box-shadow: none !important; }
    .card--wide { aspect-ratio: 16/9 !important; }
    .card--live { aspect-ratio: 2/3 !important; }
    .card--sport { aspect-ratio: 1/1 !important; }
    .card--sport img { width: 65% !important; transform: translate(-50%, -55%) !important; }
    .card__sport-label { font-size: 0.6875rem !important; padding: 0.375rem 0.625rem !important; }
    .card__badge { top: 0.375rem !important; left: 0.375rem !important; padding: 0.25rem 0.5rem !important; font-size: 0.5625rem !important; }
    .card__jackpot {
        bottom: 0.375rem !important; left: 0.375rem !important; right: 0.375rem !important;
        padding: 0.375rem 0.5rem !important; font-size: 0.6875rem !important;
    }

    /* === TOP 5 === */
    .section--top5 { margin-bottom: 1.5rem !important; }
    .top5-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 0.625rem !important; padding-bottom: 0 !important; }
    .top5-card__inner { border-radius: 0.625rem !important; }
    .top5-card__inner::before { display: none !important; }
    .top5-card__rank { display: none !important; }
    .top5-card__badge { padding: 0.25rem 0.5rem !important; font-size: 0.5625rem !important; }

    /* === RALLY — better touch, readable text === */
    .rally-grid { grid-template-columns: 1fr !important; gap: 0.75rem !important; }
    .rally { border-radius: 0.625rem !important; }
    .rally__img { width: 5.5rem !important; }
    .rally__body { padding: 0.75rem !important; }
    .rally__body h4 { font-size: 0.875rem !important; margin-bottom: 0.5rem !important; }
    .rally__info { font-size: 0.75rem !important; gap: 0.25rem 0.5rem !important; }
    .rally .btn--sm {
        margin-top: 0.625rem !important; height: 2.25rem !important;
        font-size: 0.6875rem !important; padding: 0 0.75rem !important;
        min-height: 36px !important;
    }
    .rally .btn--sm::before, .rally .btn--sm::after { width: 0.5rem !important; }
    .rally .btn--sm::before { left: -0.5rem !important; }
    .rally .btn--sm::after { right: -0.5rem !important; }

    /* === PROMO BANNERS === */
    .promo { border-radius: 0.75rem !important; margin: 1.25rem 0 !important; }
    .promo__content { left: 1rem !important; max-width: 65% !important; }
    .promo__content h2, .promo__content .promo__title { font-size: 1rem !important; margin-bottom: 0.5rem !important; line-height: 1.25 !important; }
    .promo::before { border-width: 2px !important; border-radius: 0.75rem !important; }

    /* === ALL BUTTONS — min 44px touch target === */
    .btn { height: 2.75rem !important; padding: 0 1.125rem !important; font-size: 0.75rem !important; min-height: 44px !important; }
    .btn--primary, .btn--outline { margin: 0 0.625rem !important; }
    .btn--primary::before, .btn--primary::after, .btn--outline::before, .btn--outline::after { width: 0.625rem !important; }
    .btn--primary::before, .btn--outline::before { left: -0.625rem !important; }
    .btn--primary::after, .btn--outline::after { right: -0.625rem !important; }
    .btn--sm { height: 2.25rem !important; padding: 0 0.875rem !important; font-size: 0.6875rem !important; min-height: 36px !important; }

    /* === BOTTOM ACTIONS === */
    .bottom-actions {
        flex-direction: column !important; gap: 0.75rem !important;
        align-items: center !important; margin: 1.5rem 0 !important;
        padding-bottom: env(safe-area-inset-bottom, 0) !important;
    }
    .bottom-actions .btn { width: 100% !important; max-width: 18rem !important; }

    /* === FOOTER — readable text, touch-friendly links === */
    .footer {
        border-radius: 1.25rem 1.25rem 0 0 !important;
        padding: 1.75rem 1rem 1.25rem !important; margin-top: 2rem !important;
        padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0)) !important;
    }
    .footer__grid { grid-template-columns: repeat(2, 1fr) !important; gap: 1.25rem !important; margin-bottom: 1.5rem !important; }
    .footer__col h4 { font-size: 0.8125rem !important; margin-bottom: 0.75rem !important; }
    .footer__col ul { gap: 0.5rem !important; }
    .footer__col li a {
        font-size: 0.75rem !important;
        padding: 0.25rem 0 !important;
        display: inline-block !important;
        min-height: 1.75rem !important;
        line-height: 1.75rem !important;
    }
    .footer__pay { gap: 0.625rem !important; padding: 1.25rem 0 !important; flex-wrap: wrap !important; }
    .pay-icon { padding: 0.5rem 0.75rem !important; font-size: 0.75rem !important; }
    .footer__age { padding: 1.25rem 0 !important; }
    .footer__age span { width: 2.75rem !important; height: 2.75rem !important; font-size: 0.875rem !important; }
    .footer__disc { font-size: 0.6875rem !important; line-height: 1.6 !important; }

    /* === SEO CONTENT — min 12px (0.75rem) text === */
    .seo-content { padding: 1.25rem !important; border-radius: 0.75rem !important; margin-bottom: 1.25rem !important; }
    .seo-content h1 { font-size: 1.375rem !important; margin-bottom: 1rem !important; }
    .seo-content h2 { font-size: 1.125rem !important; margin-bottom: 1rem !important; }
    .seo-content h3 { font-size: 1rem !important; margin: 1.5rem 0 0.75rem !important; }
    .seo-content h4 { font-size: 0.9375rem !important; }
    .seo-content p { font-size: 0.8125rem !important; line-height: 1.65 !important; margin-bottom: 0.875rem !important; }
    .seo-content ul, .seo-content ol { padding-left: 1.25rem !important; margin: 0.75rem 0 !important; }
    .seo-content li { font-size: 0.8125rem !important; margin-bottom: 0.5rem !important; }
    .seo-table { font-size: 0.75rem !important; display: block !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; }
    .seo-table th, .seo-table td { padding: 0.625rem 0.75rem !important; }
    .faq details { border-radius: 0.625rem !important; margin-bottom: 0.5rem !important; }
    .faq summary { padding: 0.875rem 1rem !important; font-size: 0.8125rem !important; min-height: 2.75rem !important; }
    .faq details p { padding: 0 1rem 1rem !important; font-size: 0.8125rem !important; line-height: 1.6 !important; }
    .testimonials blockquote { padding: 1rem 1.125rem !important; }
    .testimonials blockquote p { font-size: 0.8125rem !important; }
    .testimonials cite { font-size: 0.8125rem !important; }
    .disclaimer { padding: 1rem 1.125rem !important; }
    .disclaimer p { font-size: 0.75rem !important; line-height: 1.5 !important; }

    /* === Disable hover effects on touch === */
    .rally:hover { transform: none !important; }
}

/* ========================================
   RESPONSIVE - SMALL MOBILE (max 480px)
   ======================================== */
@media screen and (max-width: 480px) {
    .header { height: 3.25rem !important; padding: 0 0.5rem !important; }
    .header__logo img { height: 1.5rem !important; max-width: 5.5rem !important; }
    .header__actions .header__login-link { padding: 0.4rem 0.5rem !important; font-size: 0.6875rem !important; min-height: 2.25rem !important; }
    .menu-burger { width: 2.5rem !important; height: 2.5rem !important; min-width: 40px !important; min-height: 40px !important; }
    .sidebar { top: 3.25rem !important; }
    .main { padding: 0.625rem !important; }
    .hero { border-radius: 0.625rem !important; margin-bottom: 1rem !important; }
    .hero__content { left: 0.75rem !important; max-width: 70% !important; }
    .hero__badge { font-size: 0.625rem !important; }
    .hero__title { font-size: 1.0625rem !important; margin-bottom: 0.625rem !important; }
    .btn--cta { height: 2.5rem !important; font-size: 0.6875rem !important; min-height: 40px !important; }
    .cat-btn { padding: 0.4375rem 0.75rem !important; font-size: 0.6875rem !important; }
    .section__head h2, .section__head .section__title { font-size: 1rem !important; }
    .section__more { font-size: 0.75rem !important; }
    /* Switch to 2 columns on small phones */
    .grid--8, .grid--7 { grid-template-columns: repeat(2, 1fr) !important; }
    .grid, .grid--8, .grid--7, .grid--5, .grid--4, .grid--3, .top5-grid { gap: 0.375rem !important; }
    .rally__img { width: 5rem !important; }
    .rally__body h4 { font-size: 0.8125rem !important; }
    .rally__info { font-size: 0.6875rem !important; }
    .seo-content h1 { font-size: 1.1875rem !important; }
    .seo-content h2 { font-size: 1.0625rem !important; }
    .seo-content p, .seo-content li { font-size: 0.75rem !important; }
    .faq summary { font-size: 0.75rem !important; }
    .faq details p { font-size: 0.75rem !important; }
    .footer__col h4 { font-size: 0.75rem !important; }
    .footer__col li a { font-size: 0.6875rem !important; }
    .footer__disc { font-size: 0.625rem !important; }
}

/* ========================================
   RESPONSIVE - EXTRA SMALL (max 360px)
   ======================================== */
@media screen and (max-width: 360px) {
    .header { height: 3rem !important; padding: 0 0.375rem !important; gap: 0.25rem !important; }
    .header__logo img { height: 1.375rem !important; }
    .header__actions .header__login-link { font-size: 0.625rem !important; padding: 0.3rem 0.4rem !important; min-height: 2rem !important; }
    .sidebar { top: 3rem !important; }
    .main { padding: 0.5rem !important; }
    .hero__title { font-size: 0.9375rem !important; }
    .btn--cta { height: 2.375rem !important; font-size: 0.625rem !important; min-height: 38px !important; }
    .section__head h2, .section__head .section__title { font-size: 0.9375rem !important; }
}
