/* ============================================
   1. CSS Variables (:root)
   ============================================ */
:root {
    /* Colors — Яркий и динамичный: оранж + фиолет */
    --primary: #ff6b00;
    --primary-dark: #e05e00;
    --primary-light: #ff8a33;
    --secondary: #7c3aed;
    --secondary-dark: #6d28d9;
    --secondary-light: #8b5cf6;
    --accent: #fbbf24;

    /* Backgrounds */
    --bg-dark: #1a1025;
    --bg-darker: #120b1c;
    --bg-card: #241735;
    --bg-card-hover: #2e1f42;
    --bg-input: #1e1330;

    /* Text */
    --text-primary: #f5f0ff;
    --text-secondary: #c4b5d8;
    --text-muted: #8b7aa0;

    /* Status */
    --success: #22c55e;
    --warning: #fbbf24;
    --danger: #ef4444;

    /* 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;
    --radius-xl: 20px;

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

    /* Fonts — Outfit + Rubik */
    --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);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* ============================================
   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-dark);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

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

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

table {
    border-collapse: collapse;
    width: 100%;
}

/* ============================================
   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: 1.875rem; margin-bottom: var(--space-md); }
h3 { font-size: 1.375rem; margin-bottom: var(--space-sm); }
h4 { font-size: 1.125rem; margin-bottom: var(--space-sm); }

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

strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ============================================
   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, 28, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
    z-index: 1000;
    transition: background var(--transition-base);
}

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

.m-header__logo {
    font-family: var(--font-heading);
    font-size: 1.625rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    transition: color var(--transition-fast);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.m-header__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.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: var(--space-xs) 0;
    transition: color var(--transition-fast);
}

.m-header__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 1px;
    transition: width var(--transition-base);
}

.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);
}

.m-header__account-btn {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    border: none;
}

.m-header__account-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow-primary);
}

.m-header__mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    gap: 5px;
    padding: 0;
}

.m-header__mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: all var(--transition-base);
}

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

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

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

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

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

    .m-header__mobile-toggle {
        display: flex;
    }
}

/* ============================================
   6. Mobile Menu
   ============================================ */
.m-mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 11, 28, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all var(--transition-base);
}

.m-mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.m-mobile-menu__content {
    display: flex;
    flex-direction: column;
    padding: var(--space-2xl) var(--space-lg);
    gap: var(--space-sm);
}

.m-mobile-menu__link {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(124, 58, 237, 0.15);
    transition: color var(--transition-fast);
}

.m-mobile-menu__link:hover {
    color: var(--primary);
}

.m-mobile-menu__account-btn {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    margin-top: var(--space-lg);
    text-align: center;
    border: none;
}

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

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

.m-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-primary);
}

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

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

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

.m-btn--sm {
    font-size: 0.8125rem;
    padding: 8px 18px;
}

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

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

.m-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -25%;
    width: 150%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(255, 107, 0, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 60%, rgba(124, 58, 237, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.m-hero__content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.m-hero__title {
    font-family: var(--font-heading);
    font-size: 3.25rem;
    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;
    line-height: 1.1;
}

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

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

.m-hero__cta {
    font-size: 1.0625rem;
    padding: 16px 40px;
    letter-spacing: 0.5px;
}

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

.m-hero--small .m-hero__title {
    font-size: 2.25rem;
    background: none;
    -webkit-text-fill-color: var(--text-primary);
    color: var(--text-primary);
}

.m-hero__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    position: relative;
    z-index: 1;
}

.m-hero__left {
    flex: 1;
}

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

.m-hero--404 {
    padding: var(--space-3xl) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.m-hero__container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.m-hero__title--404 {
    font-size: 8rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-md);
}

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

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

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

    .m-hero__right {
        justify-content: center;
    }

    .m-hero--small {
        text-align: center;
    }
}

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

.m-section--page-top {
    padding-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;
    background: var(--bg-darker);
}

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

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

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

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

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

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

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

.m-benefit-card {
    background: var(--bg-card);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-base);
}

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

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

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

.m-benefit-card__text {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

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

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

/* ============================================
   12. Featured Providers / Featured Grid
   ============================================ */
.m-featured__provider-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary-light);
    text-align: center;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.m-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

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

.m-game-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(124, 58, 237, 0.15);
    cursor: pointer;
    transition: all var(--transition-base);
}

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

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

.m-game-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

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

.m-game-card__info {
    padding: var(--space-sm) var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.m-game-card__title {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.m-game-card--featured {
    border-color: rgba(255, 107, 0, 0.2);
}

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

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

.m-game-card--small .m-game-card__title {
    padding: var(--space-sm);
    text-align: center;
    font-size: 0.8125rem;
}

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

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

/* ============================================
   14. Game Tile
   ============================================ */
.m-game-tile {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(124, 58, 237, 0.12);
    cursor: pointer;
    transition: all var(--transition-base);
}

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

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

.m-game-tile__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition-base);
}

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

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

.m-game-tile__title {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.m-game-tile__provider {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

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

.m-game-tile--locked:hover {
    transform: none;
    box-shadow: none;
}

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

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

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

.m-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
   ============================================ */
.m-provider-section {
    margin-bottom: var(--space-2xl);
}

.m-provider-section__title {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--secondary-light);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid rgba(124, 58, 237, 0.2);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.m-provider-section__count {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-darker);
    padding: 2px 10px;
    border-radius: var(--radius-sm);
}

/* ============================================
   17. Filter
   ============================================ */
.m-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.m-filter-btn {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: var(--radius-sm);
    padding: 8px 18px;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.m-filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--secondary);
}

.m-filter-btn.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
}

/* ============================================
   18. Unlock Banner
   ============================================ */
.m-unlock-banner {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.12), rgba(124, 58, 237, 0.12));
    border-bottom: 1px solid rgba(255, 107, 0, 0.2);
    padding: var(--space-md) 0;
}

.m-unlock-banner__content {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
}

.m-unlock-banner__icon {
    font-size: 1.5rem;
}

.m-unlock-banner__text {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
}

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

/* ============================================
   19. FAQ
   ============================================ */
.m-faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

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

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

.m-faq-item__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    background: none;
    border: none;
    gap: var(--space-md);
    transition: color var(--transition-fast);
}

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

.m-faq-item__icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary);
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

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

.m-faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow), padding var(--transition-slow);
}

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

.m-faq-item__answer p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0;
}

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

.m-disclaimer__text {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.7;
    text-align: center;
    margin-bottom: 0;
}

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

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

.m-footer__logo-link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.m-footer__description {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: var(--space-md);
}

.m-footer__links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

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

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

.m-footer__link {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

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

.m-footer__compliance {
    padding: var(--space-xl) 0;
    border-top: 1px solid rgba(124, 58, 237, 0.1);
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
    margin-bottom: var(--space-xl);
}

.m-footer__compliance-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.m-footer__compliance-logo {
    height: 36px;
    width: auto;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.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;
}

.m-footer__age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--danger);
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--danger);
}

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

.m-footer__copyright {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .m-footer__content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .m-footer__links {
        grid-template-columns: 1fr 1fr;
    }

    .m-footer__compliance-badges {
        gap: var(--space-md);
    }

    .m-footer__compliance-logo {
        height: 28px;
    }
}

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

.m-modal[style*="display: flex"],
.m-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.m-modal__content {
    background: var(--bg-card);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-lg);
    max-width: 480px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.m-modal__content--game {
    max-width: 960px;
    background: #000;
    border-color: rgba(255, 107, 0, 0.3);
}

.m-modal__content--auth {
    max-width: 440px;
}

.m-modal__content--bonus {
    max-width: 400px;
}

.m-modal__close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-fast);
}

.m-modal__close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.2);
}

.m-modal__body {
    padding: var(--space-2xl);
    text-align: center;
}

.m-modal__body--bonus {
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

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

.m-modal__text {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

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

.m-modal__game-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
}

.m-modal__game-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   23. Cookie Consent
   ============================================ */
.m-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;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
}

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

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

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

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

    .m-cookie-consent__actions {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   24. Auth Forms
   ============================================ */
.m-auth {
    padding: var(--space-xl);
}

.m-auth__tabs {
    display: flex;
    gap: 0;
    margin-bottom: var(--space-xl);
    border-bottom: 2px solid rgba(124, 58, 237, 0.15);
}

.m-auth__tab {
    flex: 1;
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: var(--space-md);
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
    transition: color var(--transition-fast);
}

.m-auth__tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: background var(--transition-fast);
}

.m-auth__tab.is-active {
    color: var(--primary);
}

.m-auth__tab.is-active::after {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.m-auth__panel {
    /* panel container */
}

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

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

.m-auth__label {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.m-auth__input {
    width: 100%;
    padding: 12px 16px;
    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.9375rem;
    transition: border-color var(--transition-fast);
    outline: none;
}

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

.m-auth__input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

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

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

/* ============================================
   26. Profile
   ============================================ */
.m-account-profile {
    background: var(--bg-card);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
}

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

.m-account-profile__badge {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.m-account-profile__level {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
}

.m-account-profile__name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.m-account-profile__email {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

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

.m-account-profile__xp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.m-progress-bar {
    width: 100%;
    height: 12px;
    background: var(--bg-darker);
    border-radius: 6px;
    overflow: hidden;
}

.m-progress-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 6px;
    transition: width var(--transition-slow);
    min-width: 0;
}

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

.m-account-stat {
    text-align: center;
    padding: var(--space-lg);
    background: var(--bg-darker);
    border-radius: var(--radius-md);
}

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

.m-account-stat__label {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

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

@media (max-width: 768px) {
    .m-account-stats {
        grid-template-columns: 1fr;
    }

    .m-account-actions {
        flex-direction: column;
    }

    .m-account-profile__header {
        flex-direction: column;
        text-align: center;
    }
}

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

.m-content-card__title {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}

.m-content-card__intro {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
}

.m-content-card h2 {
    font-size: 1.5rem;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.m-content-card h3 {
    font-size: 1.1875rem;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: var(--primary-light);
}

.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-xl);
}

.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.8;
    margin-bottom: var(--space-sm);
}

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

.m-content-card a:hover {
    color: var(--primary-light);
}

.m-content-card a.m-btn {
    text-decoration: none;
}

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

.m-breadcrumb__link {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

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

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

.m-breadcrumb__current {
    color: var(--text-secondary);
}

/* Table */
.m-table-wrapper {
    overflow-x: auto;
    margin-bottom: var(--space-lg);
    border-radius: var(--radius-md);
}

.m-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.m-table th,
.m-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
}

.m-table th {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-darker);
}

.m-table td {
    color: var(--text-secondary);
}

.m-table tr:hover td {
    background: rgba(124, 58, 237, 0.05);
}

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

.m-info-card {
    background: var(--bg-darker);
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
}

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

.m-info-card__title {
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.m-info-card__text {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

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

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

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

.m-article-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

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

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

.m-article-card__category {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-light);
    background: rgba(124, 58, 237, 0.15);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
}

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

.m-article-card__excerpt {
    font-size: 0.875rem;
    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;
}

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

.m-article-card__rating {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

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

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

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

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

.m-review-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

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

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

.m-review-card__title {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.m-review-card__rating {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.m-review-card__score {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

.m-review-card__text {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    flex: 1;
}

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

.m-review-card__stat {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

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

/* Review Hero */
.m-review-hero {
    margin-bottom: var(--space-xl);
}

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

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

.m-review-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    font-size: 0.875rem;
    color: var(--text-muted);
}

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

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

/* ============================================
   32. Utility Classes
   ============================================ */
.stars {
    color: #ffc107;
    font-size: 1.125rem;
    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);
    white-space: nowrap;
    border: 0;
}

/* Daily Bonus */
.m-daily-bonus__icon {
    font-size: 4rem;
}

.m-daily-bonus__reward {
    margin: var(--space-md) 0;
}

.m-daily-bonus__xp {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

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

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

/* Selection */
::selection {
    background: var(--primary);
    color: #fff;
}

/* ============================================
   Additional Responsive
   ============================================ */
@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.375rem; }

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

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

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

    .m-container {
        padding: 0 var(--space-md);
    }
}
.article-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}
