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

    /* Backgrounds */
    --bg-dark: #1a1040;
    --bg-darker: #120b30;
    --bg-card: #241860;
    --bg-card-hover: #2d1f75;
    --bg-surface: #1e1350;

    /* Text */
    --text-primary: #f0e6ff;
    --text-secondary: #c4b5e0;
    --text-muted: #8a7cb0;
    --text-on-primary: #ffffff;
    --text-on-secondary: #1a1040;

    /* 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: 24px;
    --radius-full: 50px;

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

    /* Fonts - Gamification: Fredoka + Quicksand */
    --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 20px rgba(108, 92, 231, 0.25);
    --shadow-lg: 0 8px 40px rgba(108, 92, 231, 0.35);
    --shadow-glow: 0 0 20px rgba(108, 92, 231, 0.4);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s 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-weight: 500;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

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

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

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

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.2;
    color: var(--text-primary);
}

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

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, 11, 48, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 2px solid rgba(108, 92, 231, 0.3);
}

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

.m-header__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: all var(--transition-fast);
}

.m-header__logo:hover {
    color: var(--secondary);
    text-shadow: 0 0 30px rgba(255, 217, 61, 0.5);
}

.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:hover::after,
.m-header__link.is-active::after {
    width: 100%;
}

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

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

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

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

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

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

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

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

    .m-header__burger {
        display: flex;
    }
}

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

.m-header__mobile-link {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(108, 92, 231, 0.15);
    transition: color var(--transition-fast);
}

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

.m-header__mobile-nav .m-button {
    margin-top: var(--space-md);
    text-align: center;
}

/* ============================================
   7. Buttons
   ============================================ */
.m-button {
    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: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

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

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

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

.m-button--secondary:hover {
    background: rgba(108, 92, 231, 0.15);
    color: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-2px);
}

/* ============================================
   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;
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 50%, var(--bg-surface) 100%);
    overflow: hidden;
    text-align: center;
}

.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: 1;
    max-width: 700px;
    margin: 0 auto;
}

.m-hero__title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: var(--space-md);
    text-shadow: 0 0 40px rgba(255, 217, 61, 0.25);
    line-height: 1.1;
}

.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.05rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.m-hero__cta {
    font-size: 1.1rem;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--text-on-secondary);
    box-shadow: 0 4px 25px rgba(255, 217, 61, 0.4);
}

.m-hero__cta:hover {
    color: var(--text-on-secondary);
    box-shadow: 0 6px 35px rgba(255, 217, 61, 0.55);
    transform: translateY(-3px);
}

/* Hero Small (Games page) */
.m-hero--small {
    padding: var(--space-2xl) 0;
    text-align: left;
}

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

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

.m-hero__left {
    flex: 1;
}

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

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

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

.m-hero__title--404 {
    font-size: 8rem;
    color: var(--primary);
    text-shadow: 0 0 60px rgba(108, 92, 231, 0.5);
    line-height: 1;
    margin-bottom: var(--space-md);
}

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

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

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

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

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

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

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

.m-section--games {
    padding-top: 0;
}

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

.m-section--reviews-list {
    padding-top: var(--space-3xl);
}

.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 {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: var(--space-2xl);
}

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

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

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

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

.m-benefit-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    border: 2px solid rgba(108, 92, 231, 0.2);
    transition: all var(--transition-normal);
}

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

.m-benefit-card__icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    display: inline-block;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.m-benefit-card__title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--secondary);
}

.m-benefit-card__text {
    font-size: 0.9rem;
    color: var(--text-muted);
    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
   ============================================ */
.m-featured__provider-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: var(--space-md);
    margin-top: var(--space-xl);
    text-align: center;
}

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

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

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

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

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

/* ============================================
   14. Game Tile (rendered by JS on games page)
   ============================================ */
.m-game-tile {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    border: 2px solid rgba(108, 92, 231, 0.2);
    cursor: pointer;
    transition: all var(--transition-normal);
}

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

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

/* ============================================
   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 .m-game-tile__image img {
    transform: none;
    filter: blur(4px) grayscale(50%);
}

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

.m-game-tile__lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(18, 11, 48, 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.8rem;
    font-weight: 600;
    color: var(--secondary);
    text-align: center;
}

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

.m-provider-section__title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid rgba(108, 92, 231, 0.2);
}

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

.m-filter__btn {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 22px;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 2px solid rgba(108, 92, 231, 0.25);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.m-filter__btn:hover {
    border-color: var(--primary);
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.m-filter__btn--active,
.m-filter__btn.m-filter__btn--active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--text-on-primary);
    border-color: var(--primary);
    box-shadow: 0 2px 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), var(--bg-card-hover));
    border: 2px solid var(--secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-xl);
    box-shadow: 0 0 30px rgba(255, 217, 61, 0.15);
}

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

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

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

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

/* ============================================
   19. FAQ
   ============================================ */
.m-faq-list {
    max-width: 800px;
    margin: var(--space-xl) auto 0;
}

.m-faq-item {
    margin-bottom: var(--space-sm);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    border: 2px solid rgba(108, 92, 231, 0.15);
    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);
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    transition: color var(--transition-fast);
}

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

.m-faq-item__icon {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-light);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
    margin-left: var(--space-md);
}

.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-normal), padding var(--transition-normal);
}

.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 {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

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

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

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

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

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

.m-footer__content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    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: var(--secondary);
}

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

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

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

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

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

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

.m-footer__bottom {
    border-top: 1px solid rgba(108, 92, 231, 0.15);
    padding-top: var(--space-lg);
    text-align: center;
}

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

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

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

/* ============================================
   22. Modals
   ============================================ */
.m-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: all var(--transition-normal);
    padding: var(--space-lg);
}

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

.m-modal__content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    max-width: 480px;
    width: 100%;
    position: relative;
    border: 2px solid rgba(108, 92, 231, 0.3);
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
}

.m-modal__content--game {
    max-width: 90vw;
    width: 900px;
    padding: 0;
    overflow: hidden;
    background: #000;
}

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

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

.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: all var(--transition-fast);
    z-index: 10;
}

.m-modal__close:hover {
    background: var(--accent);
    color: white;
}

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

.m-modal__text {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

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

.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: 2px solid var(--primary);
    z-index: 1500;
    padding: var(--space-lg);
    transform: translateY(100%);
    transition: transform var(--transition-normal);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.4);
}

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

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

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

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

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

/* ============================================
   24. Auth Forms
   ============================================ */
.m-auth__tabs {
    display: flex;
    gap: 0;
    margin-bottom: var(--space-xl);
    border-radius: var(--radius-full);
    overflow: hidden;
    background: var(--bg-surface);
}

.m-auth__tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.m-auth__tab--active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--text-on-primary);
}

.m-auth__form--hidden {
    display: none;
}

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

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

.m-auth__input {
    width: 100%;
    padding: 12px var(--space-md);
    background: var(--bg-surface);
    border: 2px solid rgba(108, 92, 231, 0.25);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    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(108, 92, 231, 0.15);
}

.m-auth__submit {
    width: 100%;
    margin-top: var(--space-md);
}

.m-auth__message {
    text-align: center;
    font-size: 0.85rem;
    margin-top: var(--space-md);
    min-height: 1.2em;
    margin-bottom: 0;
}

.m-auth__message.is-error {
    color: var(--accent);
}

.m-auth__message.is-success {
    color: #00b894;
}

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

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

.m-account-form-card__title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: var(--space-lg);
    text-align: center;
}

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

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

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

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

.m-account-profile__badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(108, 92, 231, 0.4);
    flex-shrink: 0;
}

.m-account-profile__level {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.m-account-profile__info {
    text-align: left;
}

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

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

/* ============================================
   27. XP Progress
   ============================================ */
.m-account-profile__xp {
    margin-bottom: var(--space-xl);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    border: 2px solid rgba(108, 92, 231, 0.2);
}

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

.m-progress-bar {
    width: 100%;
    height: 16px;
    background: var(--bg-surface);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.m-progress-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
    transition: width 0.8s ease;
    position: relative;
    min-width: 0;
}

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

@keyframes progressShimmer {
    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 {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    border: 2px solid rgba(108, 92, 231, 0.15);
}

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

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

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

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

/* ============================================
   29. Content Pages
   ============================================ */
.m-content-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    border: 2px solid rgba(108, 92, 231, 0.15);
    margin-bottom: var(--space-xl);
}

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

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

.m-content-card h3 {
    font-size: 1.2rem;
    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;
}

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

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

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

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

.m-content-card__cta {
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 2px solid rgba(108, 92, 231, 0.15);
    text-align: center;
}

.m-content-card__cta p {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

/* Breadcrumb */
.m-breadcrumb {
    margin-bottom: var(--space-xl);
    font-size: 0.85rem;
}

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

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

.m-breadcrumb__sep {
    color: var(--text-muted);
    margin: 0 var(--space-sm);
}

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

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

.m-info-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    border: 1px solid rgba(108, 92, 231, 0.15);
}

.m-info-card__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.m-info-card__content h3 {
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

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

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

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

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

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

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

/* Review Games within articles */
.m-review-games {
    margin: var(--space-xl) 0;
    padding: var(--space-lg);
    background: var(--bg-surface);
    border-radius: var(--radius-md);
}

.m-review-games h3 {
    margin-top: 0;
    margin-bottom: var(--space-md);
}

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

.m-article-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid rgba(108, 92, 231, 0.2);
    transition: all var(--transition-normal);
}

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

.m-article-card__content {
    padding: var(--space-xl);
    position: relative;
    z-index: 0;
}

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

.m-article-card__category {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-on-secondary);
    background: var(--secondary);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

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

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

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

.m-article-card__rating {
    margin-top: var(--space-sm);
}

@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-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid rgba(108, 92, 231, 0.2);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

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

.m-review-card__header {
    padding: var(--space-xl) var(--space-xl) 0;
}

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

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

.m-review-card__content {
    padding: var(--space-md) var(--space-xl);
    flex: 1;
}

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

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

.m-review-card__stat {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-surface);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.m-review-card__cta {
    margin: var(--space-md) var(--space-xl) var(--space-xl);
    text-align: center;
}

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

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

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

.is-hidden {
    display: none !important;
}

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

/* Game Card (used in featured & review sections from PHP) */
.m-game-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    border: 2px solid rgba(108, 92, 231, 0.2);
    cursor: pointer;
    transition: all var(--transition-normal);
}

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

.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 .m-game-card__info {
    padding: var(--space-xs) var(--space-sm);
}

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

/* Daily Bonus */
.m-daily-bonus__icon {
    font-size: 4rem;
    margin-bottom: var(--space-md);
    animation: iconBounce 1.5s ease-in-out infinite;
}

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

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

.m-daily-bonus__amount {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: var(--space-xl);
    text-shadow: 0 0 30px rgba(255, 217, 61, 0.4);
}

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

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

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

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

/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-darker);
}
.article-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}
