/* ========================================
   1. CSS Variables (:root)
   ======================================== */
:root {
    /* Colors — Spider-themed palette */
    --primary: #e23636;
    --primary-dark: #b91c1c;
    --secondary: #1a3a8a;
    --accent: #f5f5f5;

    /* Backgrounds */
    --bg-dark: #0b1026;
    --bg-darker: #060914;
    --bg-card: #111938;
    --bg-card-hover: #162046;

    /* Text */
    --text-primary: #f0f0f0;
    --text-secondary: #b0b8d0;
    --text-muted: #6b7394;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;

    /* Header */
    --header-height: 70px;

    /* Fonts */
    --font-heading: 'Bangers', cursive;
    --font-body: 'Nunito', sans-serif;

    /* Shadows */
    --shadow-card: 0 4px 20px rgba(226, 54, 54, 0.08);
    --shadow-glow: 0 0 20px rgba(226, 54, 54, 0.25);
}

/* ========================================
   2. Reset & Base
   ======================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
}

input, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ========================================
   3. Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    letter-spacing: 1px;
    color: var(--text-primary);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* ========================================
   4. Container
   ======================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.m-container--narrow {
    max-width: 800px;
}

/* ========================================
   5. Header
   ======================================== */
.m-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(6, 9, 20, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--primary);
    z-index: 1000;
}

.m-header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(226, 54, 54, 0.4);
    transition: text-shadow 0.3s ease;
}

.logo:hover {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(226, 54, 54, 0.6);
}

.m-header__nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.m-header__link {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: var(--space-sm) 0;
    position: relative;
    transition: color 0.3s ease;
}

.m-header__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.m-header__link:hover,
.m-header__link.is-active {
    color: var(--primary);
}

.m-header__link:hover::after,
.m-header__link.is-active::after {
    width: 100%;
}

.m-header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* ========================================
   6. Mobile Menu
   ======================================== */
.m-header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.m-header__burger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.m-header__burger.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.m-header__burger.is-active span:nth-child(2) {
    opacity: 0;
}

.m-header__burger.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.m-header__mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-darker);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 999;
    overflow-y: auto;
}

.m-header__mobile-menu.is-open {
    transform: translateX(0);
}

.m-header__mobile-nav {
    display: flex;
    flex-direction: column;
    padding: var(--space-xl);
}

.m-header__mobile-link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-secondary);
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(226, 54, 54, 0.15);
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.m-header__mobile-link:hover,
.m-header__mobile-link.is-active {
    color: var(--primary);
}

/* ========================================
   7. Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn--primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(226, 54, 54, 0.3);
}

.btn--primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    box-shadow: 0 6px 25px rgba(226, 54, 54, 0.45);
    transform: translateY(-2px);
}

.btn--secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn--secondary:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn--account {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
    font-size: 0.9rem;
    padding: 8px 20px;
    text-decoration: none;
}

.btn--account:hover {
    background: #1e44a0;
    border-color: #1e44a0;
    color: #fff;
    transform: translateY(-1px);
}

.btn--hero {
    font-size: 1.2rem;
    padding: 16px 40px;
}

.btn--full {
    width: 100%;
}

/* ========================================
   8. Main Content
   ======================================== */
.m-main {
    padding-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

/* ========================================
   9. Hero Section
   ======================================== */
.m-hero {
    position: relative;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--secondary) 50%, var(--primary-dark) 100%);
    overflow: hidden;
    padding: var(--space-3xl) 0;
    text-align: center;
}

.m-hero__container {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg);
}

.m-hero__web-pattern {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.08;
    background-image:
        radial-gradient(circle at 20% 30%, transparent 60%, rgba(226,54,54,0.3) 61%, transparent 62%),
        radial-gradient(circle at 80% 70%, transparent 60%, rgba(226,54,54,0.3) 61%, transparent 62%),
        radial-gradient(circle at 50% 50%, transparent 40%, rgba(226,54,54,0.2) 41%, transparent 42%),
        linear-gradient(0deg, rgba(226,54,54,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(226,54,54,0.1) 1px, transparent 1px),
        linear-gradient(45deg, rgba(226,54,54,0.05) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(226,54,54,0.05) 1px, transparent 1px);
    background-size: 300px 300px, 300px 300px, 400px 400px, 50px 50px, 50px 50px, 30px 30px, 30px 30px;
    pointer-events: none;
}

.m-hero__title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: #fff;
    text-shadow: 2px 2px 0 var(--primary-dark), 0 0 30px rgba(226, 54, 54, 0.5);
    margin-bottom: var(--space-sm);
    letter-spacing: 3px;
}

.m-hero__subtitle {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: var(--space-md);
}

.m-hero__text {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    max-width: 560px;
    margin: 0 auto var(--space-xl);
    line-height: 1.7;
}

.m-hero--small {
    padding: var(--space-2xl) 0 var(--space-xl);
}

.m-hero--small .m-hero__title {
    font-size: 2.5rem;
}

.m-hero__container--row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    max-width: 100%;
}

.m-hero__auth-buttons {
    display: flex;
    gap: var(--space-md);
}

.m-hero--404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.m-hero__title--404 {
    font-size: 8rem;
    color: var(--primary);
    text-shadow: 0 0 40px rgba(226, 54, 54, 0.5);
}

/* ========================================
   10. Sections
   ======================================== */
.m-section {
    padding: var(--space-3xl) 0;
}

.m-section--page-top {
    padding-top: var(--space-2xl);
}

.m-section__title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    letter-spacing: 2px;
}

.m-section__subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: var(--space-2xl);
    font-size: 1.05rem;
}

.m-section__cta {
    text-align: center;
    margin-top: var(--space-2xl);
}

.m-section--benefits {
    background: var(--bg-darker);
}

.m-section--featured {
    background: var(--bg-dark);
}

.m-section--faq {
    background: var(--bg-darker);
}

.m-section--disclaimer {
    padding: var(--space-xl) 0;
}

.m-section--filter {
    padding: var(--space-lg) 0 0;
}

.m-section--games {
    padding-top: var(--space-lg);
}

.m-section--unlock {
    padding: var(--space-lg) 0 0;
}

/* ========================================
   11. Benefits
   ======================================== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.benefit-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
    border: 1px solid rgba(226, 54, 54, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.benefit-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.benefit-card__icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: var(--space-md);
}

.benefit-card__title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
    letter-spacing: 1px;
}

.benefit-card__text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ========================================
   12. Featured Providers
   ======================================== */
.featured-provider {
    margin-bottom: var(--space-2xl);
}

.featured-provider__title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: var(--space-lg);
    letter-spacing: 2px;
}

/* ========================================
   13. Games Grid
   ======================================== */
.games-grid--featured {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.games-grid--main {
    /* Container for JS-rendered games */
}

.m-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.games-grid--review {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}

/* ========================================
   14. Game Tile / Game Card
   ======================================== */
.game-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(226, 54, 54, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary);
}

.game-card__image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.game-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.game-card:hover .game-card__image img {
    transform: scale(1.05);
}

.game-card__play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(226, 54, 54, 0.0);
    font-size: 2.5rem;
    color: #fff;
    opacity: 0;
    transition: all 0.3s ease;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.game-card:hover .game-card__play-btn {
    opacity: 1;
    background: rgba(226, 54, 54, 0.25);
}

.game-card__title {
    display: block;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card--small {
    cursor: default;
}

.game-card--small:hover {
    transform: none;
    box-shadow: none;
}

.game-card--small img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

/* ========================================
   15. Game Tile (JS-rendered) & Locked
   ======================================== */
.m-game-tile {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(226, 54, 54, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.m-game-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary);
}

.m-game-tile__image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.m-game-tile__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.m-game-tile:hover .m-game-tile__image img {
    transform: scale(1.05);
}

.m-game-tile__play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(226, 54, 54, 0.0);
    font-size: 2.5rem;
    color: #fff;
    opacity: 0;
    transition: all 0.3s ease;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.m-game-tile:hover .m-game-tile__play-btn {
    opacity: 1;
    background: rgba(226, 54, 54, 0.25);
}

.m-game-tile__title {
    display: block;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Locked state */
.m-game-tile--locked {
    cursor: pointer;
}

.m-game-tile--locked .m-game-tile__image img {
    filter: blur(4px) grayscale(50%);
    opacity: 0.6;
}

.m-game-tile--locked:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(226, 54, 54, 0.08);
}

.m-game-tile__lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 16, 38, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.m-game-tile__lock-icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.m-game-tile__lock-text {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--primary);
    letter-spacing: 1px;
}

/* ========================================
   16. Provider Section (games page)
   ======================================== */
.provider-section {
    margin-bottom: var(--space-3xl);
}

.provider-section__title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid rgba(226, 54, 54, 0.2);
    letter-spacing: 2px;
}

/* ========================================
   17. Filter
   ======================================== */
.provider-filter {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

.provider-filter__btn {
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid rgba(226, 54, 54, 0.15);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.provider-filter__btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.provider-filter__btn.is-active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ========================================
   18. Unlock Banner
   ======================================== */
.unlock-banner {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    background: linear-gradient(135deg, var(--secondary), var(--primary-dark));
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-md);
    border: 1px solid rgba(226, 54, 54, 0.3);
}

.unlock-banner__icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.unlock-banner__text {
    flex: 1;
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
}

.unlock-banner__text strong {
    color: #fff;
}

/* ========================================
   19. FAQ
   ======================================== */
.faq-list {
    max-width: 750px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid rgba(226, 54, 54, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(226, 54, 54, 0.25);
}

.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-lg);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: color 0.3s ease;
}

.faq-item__question:hover {
    color: var(--primary);
}

.faq-item__icon {
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-left: var(--space-md);
    transition: transform 0.3s ease;
}

.faq-item.is-active .faq-item__icon {
    transform: rotate(45deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.is-active .faq-item__answer {
    max-height: 400px;
    padding: 0 var(--space-lg) var(--space-lg);
}

.faq-item__answer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========================================
   20. Disclaimer
   ======================================== */
.disclaimer-box {
    background: rgba(226, 54, 54, 0.06);
    border: 1px solid rgba(226, 54, 54, 0.15);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.disclaimer-box p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.7;
}

.disclaimer-box strong {
    color: var(--primary);
}

.disclaimer-box a {
    color: var(--primary);
    text-decoration: underline;
}

/* ========================================
   21. Footer
   ======================================== */
.m-footer {
    background: var(--bg-darker);
    border-top: 2px solid var(--primary);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.m-footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.m-footer__logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: var(--space-md);
    text-shadow: 0 0 10px rgba(226, 54, 54, 0.3);
}

.m-footer__description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.m-footer__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    letter-spacing: 1px;
}

.m-footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.m-footer__links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.m-footer__links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.m-footer__compliance {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-md);
}

.m-footer__compliance-logo {
    height: 32px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.m-footer__compliance-logo:hover {
    opacity: 1;
}

.m-footer__compliance-logo--light-bg {
    background: rgba(255,255,255,0.9);
    padding: 4px 8px;
    border-radius: 4px;
}

.age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1rem;
    border-radius: 50%;
    letter-spacing: 0;
}

.m-footer__bottom {
    border-top: 1px solid rgba(226, 54, 54, 0.1);
    padding-top: var(--space-lg);
    text-align: center;
}

.m-footer__bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ========================================
   22. Modals
   ======================================== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    z-index: 2000;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.is-active {
    opacity: 1;
    visibility: visible;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.modal__content {
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    border: 1px solid rgba(226, 54, 54, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    max-width: 480px;
    width: 90%;
    text-align: center;
}

.modal__content h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
    letter-spacing: 2px;
}

.modal__content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.modal__actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-lg);
}

/* Game Modal */
.modal__content--game {
    max-width: 900px;
    width: 95%;
    padding: 0;
    overflow: hidden;
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-darker);
    border-bottom: 1px solid rgba(226, 54, 54, 0.15);
}

.modal__title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.modal__close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal__close:hover {
    color: var(--primary);
}

.modal__body {
    position: relative;
    width: 100%;
    padding-bottom: 62.5%;
}

.modal__iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Auth Modal */
.modal__content--auth {
    max-width: 420px;
    text-align: left;
    padding: var(--space-xl);
}

/* Bonus Modal */
.modal__content--bonus {
    max-width: 400px;
    text-align: center;
}

/* ========================================
   23. Cookie Consent
   ======================================== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-darker);
    border-top: 2px solid var(--primary);
    padding: var(--space-lg);
    z-index: 1500;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-consent.is-visible {
    transform: translateY(0);
}

.cookie-consent__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: var(--space-lg);
}

.cookie-consent__content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    flex: 1;
}

/* ========================================
   24. Auth Forms
   ======================================== */
.auth-tabs {
    display: flex;
    margin-bottom: var(--space-lg);
    border-bottom: 2px solid rgba(226, 54, 54, 0.15);
}

.auth-tabs__btn {
    flex: 1;
    padding: var(--space-md);
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-tabs__btn.is-active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.auth-form__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    letter-spacing: 1px;
}

.auth-form__subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.auth-form__group {
    margin-bottom: var(--space-md);
}

.auth-form__group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-form__group input {
    width: 100%;
    padding: 12px var(--space-md);
    background: var(--bg-darker);
    border: 1px solid rgba(226, 54, 54, 0.15);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-form__group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(226, 54, 54, 0.15);
}

.auth-form__group input::placeholder {
    color: var(--text-muted);
}

.auth-form__switch {
    text-align: center;
    margin-top: var(--space-md);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-form__switch a {
    color: var(--primary);
    font-weight: 700;
}

/* ========================================
   25. Account Page
   ======================================== */
.account-forms {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.account-card {
    background: var(--bg-card);
    border: 1px solid rgba(226, 54, 54, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    position: relative;
}

.account-card__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    letter-spacing: 1px;
}

.account-card__text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-lg);
}

.account-benefits {
    padding-top: var(--space-xl);
}

.account-dashboard {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-xl);
}

/* ========================================
   26. Profile
   ======================================== */
.account-card--profile {
    text-align: center;
    padding: var(--space-2xl) var(--space-xl);
}

.account-card__level-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: var(--space-md);
    box-shadow: 0 0 20px rgba(226, 54, 54, 0.4);
}

.account-card__username {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    letter-spacing: 1px;
    margin-bottom: var(--space-xs);
}

.account-card__email {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-lg);
}

/* ========================================
   27. XP Progress
   ======================================== */
.xp-progress {
    margin-top: var(--space-lg);
}

.xp-progress__label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.xp-progress__bar {
    height: 12px;
    background: var(--bg-darker);
    border-radius: 6px;
    overflow: hidden;
}

.xp-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 6px;
    transition: width 0.6s ease;
}

/* ========================================
   28. Stats
   ======================================== */
.account-card--stats {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.account-stats__item {
    text-align: center;
}

.account-stats__value {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary);
    letter-spacing: 1px;
}

.account-stats__label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: var(--space-xs);
}

.account-card__actions {
    display: flex;
    gap: var(--space-md);
    margin-top: auto;
}

/* ========================================
   29. Content Pages
   ======================================== */
.m-content-card {
    background: var(--bg-card);
    border: 1px solid rgba(226, 54, 54, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
}

.m-content-card h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
    margin: var(--space-xl) 0 var(--space-md);
    letter-spacing: 1px;
}

.m-content-card h2:first-child {
    margin-top: 0;
}

.m-content-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin: var(--space-lg) 0 var(--space-sm);
    letter-spacing: 1px;
}

.m-content-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.m-content-card ul,
.m-content-card ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
}

.m-content-card ul {
    list-style: disc;
}

.m-content-card ol {
    list-style: decimal;
}

.m-content-card li {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

.m-content-card li strong {
    color: var(--text-primary);
}

.m-content-card a {
    color: var(--primary);
    text-decoration: underline;
}

.m-content-card__cta {
    text-align: center;
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(226, 54, 54, 0.1);
}

.m-page-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
    letter-spacing: 2px;
}

.m-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    font-size: 0.85rem;
}

.m-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.m-breadcrumb a:hover {
    color: var(--primary);
}

.m-breadcrumb__sep {
    color: var(--text-muted);
}

.m-breadcrumb span:last-child {
    color: var(--primary);
}

/* Info grid (responsible gaming page) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.info-card {
    background: var(--bg-darker);
    border: 1px solid rgba(226, 54, 54, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
}

.info-card__icon {
    font-size: 2rem;
    display: block;
    margin-bottom: var(--space-sm);
}

.info-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
    letter-spacing: 1px;
}

.info-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Review hero */
.review-hero {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.review-hero__rating {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.review-hero__tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Review stats grid */
.review-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.review-stat {
    text-align: center;
    background: var(--bg-darker);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    border: 1px solid rgba(226, 54, 54, 0.1);
}

.review-stat__value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary);
    letter-spacing: 1px;
}

.review-stat__label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: var(--space-xs);
}

/* ========================================
   30. Blog Grid
   ======================================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.article-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(226, 54, 54, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary);
}

.article-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.article-card__content {
    padding: var(--space-xl);
}

.article-card__category {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(226, 54, 54, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: var(--space-md);
}

.article-card__title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    letter-spacing: 1px;
    line-height: 1.3;
}

.article-card__excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.article-card__meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========================================
   31. Reviews Grid
   ======================================== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.review-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(226, 54, 54, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary);
}

.review-card__header {
    margin-bottom: var(--space-md);
}

.review-card__name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-primary);
    letter-spacing: 1px;
    margin-bottom: var(--space-xs);
}

.review-card__rating {
    font-size: 1.1rem;
}

.review-card__description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.review-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.review-card__stat {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--bg-darker);
    padding: 4px 10px;
    border-radius: 20px;
}

/* ========================================
   32. Utility Classes
   ======================================== */
.stars {
    color: #ffc107;
}

.text-center {
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Daily Bonus */
.daily-bonus {
    padding: var(--space-lg);
}

.daily-bonus__icon {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--space-md);
}

.daily-bonus__title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
    letter-spacing: 2px;
}

.daily-bonus__text {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.daily-bonus__amount {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #ffc107;
    margin-bottom: var(--space-lg);
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(255, 193, 7, 0.4);
}

/* ========================================
   33. Scrollbar
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Tablet (992px) */
@media (max-width: 992px) {
    h1 { font-size: 2.2rem; }

    .m-header__nav {
        display: none;
    }

    .m-header__burger {
        display: flex;
    }



    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .m-footer__content {
        grid-template-columns: repeat(2, 1fr);
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .review-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .account-dashboard {
        grid-template-columns: 1fr;
    }

    .account-forms {
        grid-template-columns: 1fr;
    }

    .m-hero__container--row {
        flex-direction: column;
        text-align: center;
        gap: var(--space-lg);
    }

    .m-hero__auth-buttons {
        justify-content: center;
    }
}

/* Mobile (768px) */
@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }

    .m-hero__title {
        font-size: 2.5rem;
    }

    .m-hero--small .m-hero__title {
        font-size: 2rem;
    }

    .m-hero__title--404 {
        font-size: 5rem;
    }

    .m-games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .games-grid--review {
        grid-template-columns: repeat(2, 1fr);
    }

    .games-grid--featured {
        max-width: 100%;
        gap: 12px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .m-footer__content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .m-section {
        padding: var(--space-2xl) 0;
    }

    .m-content-card {
        padding: var(--space-lg);
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .review-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .account-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }

    .unlock-banner {
        flex-direction: column;
        text-align: center;
    }

    .cookie-consent__content {
        flex-direction: column;
        text-align: center;
    }

    .modal__content {
        width: 95%;
        padding: var(--space-lg);
    }

    .modal__content--auth {
        padding: var(--space-lg);
    }

    .m-section__title {
        font-size: 1.6rem;
    }

    .m-page-title {
        font-size: 1.7rem;
    }

    .provider-filter {
        gap: 6px;
    }

    .provider-filter__btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}

/* Small mobile (480px) */
@media (max-width: 480px) {
    .m-hero__title {
        font-size: 2rem;
    }

    .m-hero--small .m-hero__title {
        font-size: 1.6rem;
    }

    .m-hero__title--404 {
        font-size: 4rem;
    }

    .btn--hero {
        font-size: 1rem;
        padding: 14px 32px;
    }

    .account-stats {
        grid-template-columns: 1fr;
    }

    .account-card__actions {
        flex-direction: column;
    }

    .review-stats-grid {
        grid-template-columns: 1fr;
    }

    .m-content-card {
        padding: var(--space-md);
    }

    .container {
        padding: 0 var(--space-md);
    }
}