/* ==========================================================================
   1. CSS Variables (:root)
   ========================================================================== */
:root {
    /* Colors - Gamification palette */
    --primary: #6c5ce7;
    --primary-dark: #5a4bd1;
    --primary-light: #a29bfe;
    --secondary: #ffd93d;
    --secondary-dark: #f0c800;
    --accent: #ff6b6b;
    --accent-dark: #ee5a5a;

    /* Backgrounds */
    --bg-dark: #1a1333;
    --bg-darker: #120e24;
    --bg-card: #241c42;
    --bg-card-hover: #2e2455;
    --bg-input: #1e1638;

    /* Text */
    --text-primary: #f0ecff;
    --text-secondary: #c4b8e8;
    --text-muted: #8a7cb0;

    /* 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 - Gamification style */
    --font-body: 'Quicksand', sans-serif;
    --font-heading: 'Fredoka', sans-serif;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(108, 92, 231, 0.15);
    --shadow-md: 0 4px 16px rgba(108, 92, 231, 0.2);
    --shadow-lg: 0 8px 32px rgba(108, 92, 231, 0.25);
    --shadow-glow: 0 0 20px rgba(108, 92, 231, 0.4);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

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

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

body {
    font-family: var(--font-body);
    font-weight: 500;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
    color: var(--secondary);
}

ul, ol {
    list-style-position: inside;
}

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

h1 { font-size: 2.5rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

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

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

/* ==========================================================================
   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, 14, 36, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(108, 92, 231, 0.2);
    z-index: 1000;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--secondary);
    text-decoration: none;
    letter-spacing: -0.5px;
    text-shadow: 0 0 20px rgba(255, 217, 61, 0.3);
    transition: color var(--transition-fast);
}

.logo:hover {
    color: #ffe680;
}

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

.m-header__link {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: var(--space-sm) 0;
    position: relative;
    transition: color var(--transition-fast);
}

.m-header__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
    transition: width var(--transition-normal);
}

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

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

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

/* Burger */
.m-header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 0;
}

.m-header__burger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

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

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

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

/* ==========================================================================
   6. Mobile Menu
   ========================================================================== */
.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;
    overflow-y: auto;
}

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

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

.m-header__mobile-link {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.m-header__mobile-link:hover,
.m-header__mobile-link.is-active {
    color: var(--secondary);
    background: var(--bg-card);
}

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

.m-btn--primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

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

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

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

.m-btn--lg {
    font-size: 1.1rem;
    padding: 14px 36px;
    border-radius: var(--radius-lg);
}

.m-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;
    padding: var(--space-3xl) 0;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    overflow: hidden;
}

.m-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -25%;
    width: 150%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(108, 92, 231, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

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

.m-hero__title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--secondary) 0%, #ffe680 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.m-hero__subtitle {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: var(--space-lg);
}

.m-hero__text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

.m-hero__left {
    flex: 1;
}

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

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

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

/* ==========================================================================
   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;
}

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

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

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

.m-section__provider-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-light);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    text-align: center;
}

/* ==========================================================================
   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-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    border: 1px solid rgba(108, 92, 231, 0.15);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.m-benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.m-benefit-card:hover {
    transform: translateY(-4px);
    border-color: rgba(108, 92, 231, 0.3);
    box-shadow: var(--shadow-md);
}

.m-benefit-card:hover::before {
    opacity: 1;
}

.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.15rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

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

/* ==========================================================================
   12. Featured Providers
   ========================================================================== */
/* (Included in section/provider styles above) */

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

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

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

/* ==========================================================================
   14. Game Tile / Game Card
   ========================================================================== */
.m-game-tile {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 1px solid rgba(108, 92, 231, 0.1);
}

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

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

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

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

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

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

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

.m-game-tile__play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-glow);
    z-index: 2;
}

.m-game-tile:hover .m-game-tile__play-btn {
    transform: translate(-50%, -50%) scale(1);
}

/* Game Card (featured / review) */
.m-game-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 1px solid rgba(108, 92, 231, 0.1);
}

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

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

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

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

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

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

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

.m-game-card--small {
    border-radius: var(--radius-sm);
}

.m-game-card--small .m-game-card__info {
    padding: var(--space-xs) var(--space-sm);
}

.m-game-card--small .m-game-card__title {
    font-size: 0.78rem;
}

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

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

.m-game-tile--locked:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(108, 92, 231, 0.1);
}

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

.m-game-tile__lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 19, 51, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

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

.m-game-tile__lock-text {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--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.4rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid rgba(108, 92, 231, 0.2);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.m-provider-section__title::before {
    content: '🎮';
    font-size: 1.2rem;
}

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

.m-filter-btn {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 20px;
    border-radius: 50px;
    border: 2px solid rgba(108, 92, 231, 0.3);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.m-filter-btn.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.4);
}

/* ==========================================================================
   18. Unlock Banner
   ========================================================================== */
.m-unlock-banner {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(108, 92, 231, 0.15) 100%);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-xl);
}

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

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

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

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

.m-faq__item {
    border: 1px solid rgba(108, 92, 231, 0.15);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    overflow: hidden;
    background: var(--bg-card);
    transition: border-color var(--transition-normal);
}

.m-faq__item:hover {
    border-color: rgba(108, 92, 231, 0.3);
}

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

.m-faq__icon {
    font-size: 1.4rem;
    color: var(--primary-light);
    flex-shrink: 0;
    transition: transform var(--transition-normal);
}

.m-faq__item.is-open .m-faq__icon {
    transform: rotate(45deg);
}

.m-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 var(--space-lg);
}

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

.m-faq__answer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
}

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

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

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

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

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

.m-footer__logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary);
    text-decoration: none;
    display: inline-block;
    margin-bottom: var(--space-md);
}

.m-footer__logo:hover {
    color: #ffe680;
}

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

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

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

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

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

.m-footer__bottom {
    border-top: 1px solid rgba(108, 92, 231, 0.1);
    padding: var(--space-xl) 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

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

.m-footer__compliance a {
    display: inline-flex;
    transition: opacity var(--transition-fast);
}

.m-footer__compliance a:hover {
    opacity: 0.8;
}

.m-footer__compliance-logo {
    height: 32px;
    width: auto;
}

.m-footer__compliance-logo--light-bg {
    background: #fff;
    padding: 4px 8px;
    border-radius: 4px;
}

.m-footer__age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
}

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

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

/* ==========================================================================
   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;
    padding: var(--space-lg);
}

.m-modal__backdrop {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.m-modal__content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.m-modal__content--game {
    max-width: 900px;
    padding: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

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

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

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

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

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

.m-modal__text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

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

.m-modal__game-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.m-modal__game-wrapper iframe {
    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(108, 92, 231, 0.2);
    padding: var(--space-lg);
    z-index: 1500;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

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

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

/* ==========================================================================
   24. Auth Forms
   ========================================================================== */
.m-auth__tabs {
    display: flex;
    gap: 0;
    margin-bottom: var(--space-xl);
    border-bottom: 2px solid rgba(108, 92, 231, 0.15);
}

.m-auth__tab {
    flex: 1;
    padding: var(--space-md);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

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

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

.m-form-group {
    margin-bottom: var(--space-md);
}

.m-form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.m-input {
    width: 100%;
    padding: 12px var(--space-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--bg-input);
    border: 2px solid rgba(108, 92, 231, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: border-color var(--transition-fast);
    outline: none;
}

.m-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

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

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

.m-account-profile {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    border: 1px solid rgba(108, 92, 231, 0.2);
}

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

/* ==========================================================================
   26. Profile
   ========================================================================== */
.m-account-profile__badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    box-shadow: var(--shadow-glow);
}

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

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

.m-account-profile__actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

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

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

.m-xp-bar__track {
    width: 100%;
    height: 12px;
    background: var(--bg-input);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

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

.m-xp-bar__fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: xpShimmer 2s infinite;
}

@keyframes xpShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

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

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

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

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

/* Daily Bonus */
.m-daily-bonus__amount {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--secondary), #ffe680);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: var(--space-lg) 0;
}

/* ==========================================================================
   29. Content Pages
   ========================================================================== */
.m-page-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: var(--space-xl);
    color: var(--text-primary);
}

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

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

.m-breadcrumb__link {
    font-size: 0.85rem;
    color: var(--primary-light);
    text-decoration: none;
}

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

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

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

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

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

.m-content-card__text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

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

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

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

.m-content-card li {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
    font-size: 0.95rem;
    list-style-position: outside;
}

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

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

.m-contact-info p:last-child {
    margin-bottom: 0;
}

/* CTA Box */
.m-cta-box {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.15) 0%, rgba(255, 217, 61, 0.08) 100%);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    margin-top: var(--space-2xl);
}

.m-cta-box h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    margin-top: 0;
}

.m-cta-box p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

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

.m-fact-card {
    background: var(--bg-input);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
    border: 1px solid rgba(108, 92, 231, 0.1);
}

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

.m-fact-card__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

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

/* Help resources */
.m-help-resources {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

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

.m-help-resource h4 {
    font-family: var(--font-heading);
    margin-bottom: var(--space-sm);
    color: var(--primary-light);
}

.m-help-resource p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Table */
.m-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-lg) 0;
}

.m-table th,
.m-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid rgba(108, 92, 231, 0.15);
    font-size: 0.9rem;
}

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

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

/* ==========================================================================
   30. Blog Grid
   ========================================================================== */
.m-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-lg);
    overflow: hidden;
    border: 1px solid rgba(108, 92, 231, 0.1);
    transition: all var(--transition-normal);
}

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

.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);
    background: rgba(255, 217, 61, 0.12);
    padding: 4px 12px;
    border-radius: 50px;
    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: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

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

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

/* ==========================================================================
   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-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid rgba(108, 92, 231, 0.15);
    transition: all var(--transition-normal);
}

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

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

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

.m-review-card__rating {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.stars {
    color: #ffc107;
}

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

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

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

/* 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.1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

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

/* ==========================================================================
   32. Utility Classes
   ========================================================================== */
.is-hidden {
    display: none !important;
}

.is-visible {
    display: block !important;
}

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

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

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

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

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

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

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

    .m-header__burger {
        display: flex;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    .m-account-stats {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

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

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

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

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

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

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

/* 480px */
@media (max-width: 480px) {
    .m-container {
        padding: 0 var(--space-md);
    }

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

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

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

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

    .m-modal__content {
        padding: var(--space-xl);
        margin: var(--space-md);
    }

    .m-filter-bar {
        gap: var(--space-xs);
    }

    .m-filter-btn {
        font-size: 0.8rem;
        padding: 6px 14px;
    }
}