/* ==========================================================================
   1. CSS Variables (:root)
   ========================================================================== */
:root {
    /* Colors - Яркий и динамичный: Насыщенный оранж + фиолет */
    --primary: #ff6b00;
    --primary-dark: #e05e00;
    --primary-light: #ff8c33;
    --secondary: #7c3aed;
    --secondary-dark: #6425d0;
    --secondary-light: #9b6cf0;
    --accent: #ffc107;

    /* Backgrounds */
    --bg-dark: #1a1029;
    --bg-darker: #120b1e;
    --bg-card: #251740;
    --bg-card-hover: #2f1f52;
    --bg-input: #1e1335;

    /* Text */
    --text-primary: #f5f0ff;
    --text-secondary: #c4b5db;
    --text-muted: #8b7aa8;

    /* 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-body: 'Rubik', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow-primary: 0 0 20px rgba(255, 107, 0, 0.3);
    --shadow-glow-secondary: 0 0 20px rgba(124, 58, 237, 0.3);
}

/* ==========================================================================
   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);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-darker);
    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-light);
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: none;
    outline: none;
    background: none;
}

button {
    cursor: pointer;
}

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

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

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

/* ==========================================================================
   4. Container
   ========================================================================== */
.m-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(18, 11, 30, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
    z-index: 1000;
}

.m-header__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.85;
}

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

.m-header__link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    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: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.m-header__link:hover,
.m-header__link.is-active {
    color: var(--text-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;
    padding: 0;
    z-index: 1010;
}

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

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

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

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

.m-header__mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-darker);
    z-index: 999;
    padding: var(--space-xl);
    overflow-y: auto;
}

.m-header__mobile-menu.is-open {
    display: block;
}

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

.m-header__mobile-link {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(124, 58, 237, 0.15);
    transition: color 0.3s ease;
}

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

@media (max-width: 992px) {
    .m-header__nav {
        display: none;
    }

    .m-header__actions .btn {
        display: none;
    }

    .m-header__burger {
        display: flex;
    }
}

/* ==========================================================================
   7. Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    line-height: 1.4;
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.35);
}

.btn--primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.5);
    transform: translateY(-2px);
}

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

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

.btn--large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn--small {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.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(150deg, var(--bg-darker) 0%, var(--bg-dark) 40%, rgba(124, 58, 237, 0.15) 100%);
    padding: var(--space-3xl) 0;
    text-align: center;
    overflow: hidden;
}

.m-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.m-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

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

.m-hero__container--row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: var(--space-xl);
}

.m-hero__title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.m-hero__title--404 {
    font-size: 8rem;
    line-height: 1;
}

.m-hero__subtitle {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.m-hero__text {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto var(--space-xl);
    line-height: 1.7;
}

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

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

.m-hero--404 {
    padding: 120px 0;
}

@media (max-width: 768px) {
    .m-hero__title {
        font-size: 2.2rem;
    }

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

    .m-hero__subtitle {
        font-size: 1.1rem;
    }

    .m-hero__container--row {
        flex-direction: column;
        text-align: center;
    }

    .m-hero__auth-buttons {
        flex-direction: column;
        width: 100%;
    }

    .m-hero__auth-buttons .btn {
        width: 100%;
    }
}

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

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

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

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

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

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

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

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

.m-section--games {
    padding: var(--space-xl) 0 var(--space-3xl);
    background: var(--bg-darker);
}

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

.m-section__subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.m-section__divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.3), transparent);
    margin: var(--space-3xl) 0;
}

.m-page-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.m-page-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: var(--space-2xl);
}

/* ==========================================================================
   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(124, 58, 237, 0.15);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

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

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

.benefit-card__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.benefit-card__text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

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

@media (max-width: 480px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

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

.featured-provider__title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary-light);
    margin-bottom: var(--space-md);
    text-align: center;
}

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

@media (max-width: 768px) {
    .games-grid--featured {
        max-width: 100%;
        gap: 12px;
    }
}

.game-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(124, 58, 237, 0.15);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

.game-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 107, 0, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-card__play {
    opacity: 1;
}

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

/* ==========================================================================
   13. Games Grid
   ========================================================================== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

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

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

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

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

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

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

.game-tile__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 107, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-tile:hover .game-tile__play {
    opacity: 1;
}

.game-tile__info {
    padding: var(--space-sm) var(--space-md) var(--space-md);
}

.game-tile__title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.game-tile__provider {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================================================
   15. Game Tile Locked
   ========================================================================== */
.game-tile--locked {
    cursor: default;
}

.game-tile--locked:hover {
    transform: none;
    border-color: rgba(124, 58, 237, 0.12);
    box-shadow: none;
}

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

.game-tile--locked:hover .game-tile__image img {
    transform: none;
}

.game-tile__lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(18, 11, 30, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    z-index: 2;
}

.game-tile__lock-icon {
    font-size: 2rem;
}

.game-tile__lock-text {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    padding: 0 var(--space-sm);
}

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

.provider-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid rgba(124, 58, 237, 0.2);
}

.provider-section__title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-light);
}

.provider-section__count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.provider-filter__btn {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid rgba(124, 58, 237, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.provider-filter__btn.is-active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(255, 107, 0, 0.3);
}

@media (max-width: 480px) {
    .provider-filter__btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   18. Unlock Banner
   ========================================================================== */
.unlock-banner {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1), rgba(124, 58, 237, 0.1));
    border: 1px solid rgba(255, 107, 0, 0.25);
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-xl);
}

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

.unlock-banner__text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    flex: 1;
}

.unlock-banner__text strong {
    color: var(--primary);
}

@media (max-width: 768px) {
    .unlock-banner {
        flex-direction: column;
        text-align: center;
        padding: var(--space-lg);
    }
}

/* ==========================================================================
   19. FAQ
   ========================================================================== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid rgba(124, 58, 237, 0.12);
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item.is-active {
    border-color: var(--primary);
}

.faq-item__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-lg);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    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.4rem;
    font-weight: 300;
    color: var(--primary);
    flex-shrink: 0;
    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;
}

.faq-item.is-active .faq-item__answer {
    max-height: 300px;
}

.faq-item__answer p {
    padding: 0 var(--space-lg) var(--space-lg);
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

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

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

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

/* ==========================================================================
   21. Footer
   ========================================================================== */
.m-footer {
    background: var(--bg-dark);
    border-top: 1px solid rgba(124, 58, 237, 0.15);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.m-footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

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

.m-footer__section h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.m-footer__section h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.m-footer__logo p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

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

.m-footer__nav a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.m-footer__compliance-logo {
    height: 36px;
    width: auto;
    opacity: 0.7;
    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);
    border-radius: var(--radius-sm);
    padding: 4px 8px;
}

.age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.85rem;
    border-radius: 50%;
}

.m-footer__bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(124, 58, 237, 0.1);
    text-align: center;
}

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

.m-footer__address {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.7;
}

@media (max-width: 992px) {
    .m-footer__content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .m-footer__content {
        grid-template-columns: 1fr;
    }
}

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

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

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

.modal__content {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    max-width: 450px;
    width: 100%;
    z-index: 1;
    border: 1px solid rgba(124, 58, 237, 0.2);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.modal__content h2 {
    margin-bottom: var(--space-md);
}

.modal__content p {
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
    font-size: 0.95rem;
}

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

.modal__content--game {
    max-width: 90vw;
    width: 900px;
    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(124, 58, 237, 0.15);
}

.modal__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

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

.modal__body {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

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

.modal__content--auth {
    max-width: 420px;
    text-align: left;
}

.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-card);
    border-top: 1px solid rgba(124, 58, 237, 0.2);
    padding: var(--space-lg);
    z-index: 1500;
    display: none;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
}

.cookie-consent.is-visible {
    display: block;
}

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

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

@media (max-width: 768px) {
    .cookie-consent__content {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   24. Auth Forms
   ========================================================================== */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: var(--space-xl);
    border-bottom: 2px solid rgba(124, 58, 237, 0.15);
}

.auth-tabs__btn {
    flex: 1;
    padding: var(--space-md) 0;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.auth-tabs__btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: transparent;
    transition: background 0.3s ease;
}

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

.auth-tabs__btn.is-active::after {
    background: var(--primary);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.auth-form--hidden {
    display: none;
}

.auth-form__group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.auth-form__group label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.auth-form__group input {
    padding: 12px var(--space-md);
    background: var(--bg-input);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

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

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

.auth-form__disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: var(--space-md);
    line-height: 1.5;
}

.auth-form__disclaimer a {
    color: var(--secondary-light);
}

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

.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid rgba(124, 58, 237, 0.15);
}

.auth-card__title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--space-xl);
    color: var(--text-primary);
}

.why-register {
    margin-top: var(--space-2xl);
}

.why-register__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-xl);
    color: var(--text-primary);
}

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

.why-register__item {
    text-align: center;
    padding: var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid rgba(124, 58, 237, 0.1);
}

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

.why-register__item h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.why-register__item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

@media (max-width: 992px) {
    .account-auth-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .why-register__grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   26. Profile
   ========================================================================== */
.account-profile {
    max-width: 600px;
    margin: 0 auto;
}

.account-profile__header {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.account-profile__badge {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.account-profile__name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.account-profile__email {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   27. XP Progress
   ========================================================================== */
.account-profile__xp {
    margin-bottom: var(--space-xl);
}

.xp-bar {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    border: 1px solid rgba(124, 58, 237, 0.15);
}

.xp-bar__label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

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

/* ==========================================================================
   28. Stats
   ========================================================================== */
.account-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.account-stats__item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.account-stats__value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

.account-stats__label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.account-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

/* Daily Bonus */
.daily-bonus {
    padding: var(--space-xl);
    text-align: center;
}

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

.daily-bonus__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--primary);
}

.daily-bonus__text {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.daily-bonus__amount {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: var(--space-xl);
}

/* ==========================================================================
   29. Content Pages
   ========================================================================== */
.m-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.m-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.m-content-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.m-content-section {
    margin-bottom: var(--space-xl);
}

.m-content-section:last-child {
    margin-bottom: 0;
}

.m-content-section h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--primary);
}

.m-content-section h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    margin-top: var(--space-lg);
    color: var(--text-primary);
}

.m-content-section p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.m-content-section p:last-child {
    margin-bottom: 0;
}

.m-content-list {
    padding-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.m-content-list li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-sm);
    position: relative;
    list-style: disc;
}

.m-content-list li a {
    color: var(--secondary-light);
}

.m-content-list li a:hover {
    color: var(--primary);
}

.m-content-cta {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(124, 58, 237, 0.1);
}

.contact-info {
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: var(--space-lg);
    margin-top: var(--space-md);
}

.contact-info p {
    font-size: 0.9rem;
    margin-bottom: var(--space-xs);
}

@media (max-width: 768px) {
    .m-content-card {
        padding: var(--space-lg);
    }

    .m-content-cta {
        flex-direction: column;
    }
}

/* Review Info Box */
.review-info-box {
    background: var(--bg-input);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.review-info-box__item {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.review-info-box__item strong {
    color: var(--text-primary);
}

.review-hero {
    margin-bottom: var(--space-xl);
}

.review-hero__rating {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

.review-hero__score {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Review Games Grid */
.review-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.review-game-tile {
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    overflow: hidden;
    text-align: center;
}

.review-game-tile img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.review-game-tile span {
    display: block;
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

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

/* Fact Cards */
.fact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.fact-card {
    background: var(--bg-input);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
}

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

.fact-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.fact-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 480px) {
    .fact-cards {
        grid-template-columns: 1fr;
    }
}

/* Help Resources */
.help-resources {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.help-resource {
    background: var(--bg-input);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.help-resource h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.help-resource p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

@media (max-width: 480px) {
    .help-resources {
        grid-template-columns: 1fr;
    }
}

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

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

.article-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow-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;
    font-weight: 600;
    color: var(--secondary-light);
    background: rgba(124, 58, 237, 0.15);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-card__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.article-card__excerpt {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

@media (max-width: 480px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

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

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

.review-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    border: 1px solid rgba(124, 58, 237, 0.12);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

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

.review-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.review-card__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.review-card__text {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

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

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

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

@media (max-width: 480px) {
    .reviews-grid,
    .reviews-grid--detailed {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   32. Utility Classes
   ========================================================================== */
.stars {
    color: #ffc107;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

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

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

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

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

/* ==========================================================================
   Selection
   ========================================================================== */
::selection {
    background: rgba(255, 107, 0, 0.3);
    color: var(--text-primary);
}