/* ============================================
   1. CSS Variables (:root)
   ============================================ */
:root {
    /* Colors - Infographic Style */
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --primary-light: #6b83f2;
    --secondary: #f72585;
    --secondary-dark: #d91e73;
    --accent: #4cc9f0;
    --accent-dark: #3ab5d9;

    /* Backgrounds - Light Infographic */
    --bg-light: #ffffff;
    --bg-off: #f0f1f6;
    --bg-card: #ffffff;
    --bg-section: #f7f8fc;
    --bg-dark: #1b1f3b;
    --bg-darker: #14172e;

    /* Text */
    --text-primary: #1b1f3b;
    --text-secondary: #4a4e6a;
    --text-muted: #8b8fa8;
    --text-on-dark: #ffffff;
    --text-on-primary: #ffffff;

    /* 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 - Barlow + Noto Sans (Infographic style) */
    --font-body: 'Noto Sans', sans-serif;
    --font-heading: 'Barlow', sans-serif;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(27, 31, 59, 0.06);
    --shadow-md: 0 4px 16px rgba(27, 31, 59, 0.1);
    --shadow-lg: 0 8px 32px rgba(27, 31, 59, 0.12);
    --shadow-card: 0 2px 12px rgba(67, 97, 238, 0.08);

    /* Transitions */
    --transition: 0.3s 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-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul, ol {
    padding-left: var(--space-lg);
}

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

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

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

strong {
    font-weight: 600;
    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: var(--bg-light);
    border-bottom: 2px solid var(--bg-off);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.m-header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: color var(--transition);
}

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

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

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

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

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

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

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

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

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

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

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

/* ============================================
   6. Mobile Menu
   ============================================ */
.m-mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-light);
    z-index: 999;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
}

.m-mobile-menu.is-active {
    transform: translateX(0);
}

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

.m-mobile-menu__link {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--bg-off);
    transition: color var(--transition);
}

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

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

.m-btn--primary {
    background: var(--primary);
    color: var(--text-on-primary);
    border-color: var(--primary);
}

.m-btn--primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--text-on-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.35);
}

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

.m-btn--secondary:hover {
    background: var(--primary);
    color: var(--text-on-primary);
    transform: translateY(-1px);
}

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

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

/* ============================================
   8. Main Content
   ============================================ */
.m-main {
    flex: 1;
    margin-top: var(--header-height);
}

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

.m-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.m-hero__inner {
    position: relative;
    z-index: 1;
}

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

.m-hero__title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-on-dark);
    margin-bottom: var(--space-md);
    letter-spacing: -1px;
}

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

.m-hero__subtitle {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-md);
}

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

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

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

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

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

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

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

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

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

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

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

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

.m-section__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    margin: var(--space-sm) auto 0;
}

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

.m-section__provider-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: var(--space-xl) 0 var(--space-md);
    padding-left: var(--space-md);
    border-left: 4px solid var(--primary);
}

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

.m-page-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    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-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--bg-off);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.m-benefit-card__icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(67,97,238,0.1), rgba(247,37,133,0.1));
    margin-left: auto;
    margin-right: auto;
}

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

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

/* ============================================
   12. Featured Providers
   ============================================ */
/* Used with .m-section__provider-title 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-lg) 0;
}

/* ============================================
   14. Game Tile (for games.js rendering)
   ============================================ */
.m-game-tile {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--bg-off);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

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

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

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

.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);
    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 .m-game-tile__image {
    filter: blur(4px) grayscale(50%);
    opacity: 0.6;
}

.m-game-tile--locked:hover {
    transform: none;
    box-shadow: var(--shadow-card);
}

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

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

.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(--text-on-dark);
    text-align: center;
    padding: 0 var(--space-sm);
}

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

.m-provider-section__title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    padding-left: var(--space-md);
    border-left: 4px solid var(--secondary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

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

/* ============================================
   17. Filter
   ============================================ */
.m-filter {
    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.9rem;
    font-weight: 600;
    padding: 8px 20px;
    border: 2px solid var(--bg-off);
    border-radius: 30px;
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}

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

.m-filter__btn.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-on-primary);
}

/* ============================================
   18. Unlock Banner
   ============================================ */
.m-unlock-banner {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.08), rgba(247, 37, 133, 0.08));
    border: 2px solid rgba(67, 97, 238, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.m-unlock-banner.is-hidden {
    display: none;
}

.m-unlock-banner__content {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

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

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

.m-faq__item {
    background: var(--bg-card);
    border: 1px solid var(--bg-off);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.m-faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    background: none;
    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);
    gap: var(--space-md);
}

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

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

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

.m-faq__answer p {
    padding: 0 var(--space-lg) var(--space-lg);
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

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

.m-faq__item.is-active .m-faq__answer {
    max-height: 500px;
}

/* ============================================
   20. Disclaimer
   ============================================ */
.m-disclaimer {
    background: var(--bg-section);
    border-left: 4px solid var(--secondary);
    border-radius: var(--radius-sm);
    padding: var(--space-lg);
}

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

/* ============================================
   21. Footer
   ============================================ */
.m-footer {
    background: var(--bg-dark);
    padding: var(--space-3xl) 0 var(--space-xl);
    color: rgba(255, 255, 255, 0.7);
}

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

.m-footer .logo,
.m-footer__logo {
    color: var(--text-on-dark);
    font-size: 1.4rem;
    margin-bottom: var(--space-md);
    display: inline-block;
}

.m-footer__description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.m-footer__title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-on-dark);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.m-footer__link {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color var(--transition);
}

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

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

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

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

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

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

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

.m-footer__bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--space-xs);
}

.m-footer__address {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
}

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

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

.m-modal__content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    max-width: 440px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.m-modal__content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.m-modal__content p {
    margin-bottom: var(--space-xl);
}

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

.m-modal__close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    transition: color var(--transition);
    z-index: 1;
}

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

/* Game Modal */
.m-modal--game .m-modal__content--game {
    max-width: 960px;
    padding: 0;
    overflow: hidden;
}

.m-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-off);
    border-bottom: 1px solid var(--bg-off);
}

.m-modal__header h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--text-primary);
}

.m-modal__header .m-modal__close {
    position: static;
    font-size: 1.5rem;
}

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

.m-modal__body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

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

/* Bonus Modal */
.m-modal__content--bonus {
    text-align: center;
}

.m-daily-bonus {
    padding: var(--space-lg) 0;
}

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

.m-daily-bonus h2 {
    font-family: var(--font-heading);
    color: var(--primary);
}

.m-daily-bonus__streak {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   23. Cookie Consent
   ============================================ */
.m-cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    padding: var(--space-lg);
    z-index: 1500;
    transform: translateY(100%);
    transition: transform var(--transition);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

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

.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__content p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    flex: 1;
}

/* ============================================
   24. Auth Forms
   ============================================ */
.m-auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: var(--space-xl);
    border-bottom: 2px solid var(--bg-off);
}

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

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

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

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

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

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

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

.m-auth-form__group input {
    padding: 12px var(--space-md);
    border: 2px solid var(--bg-off);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-light);
    transition: border-color var(--transition);
    outline: none;
}

.m-auth-form__group input:focus {
    border-color: var(--primary);
}

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

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

/* ============================================
   26. Profile
   ============================================ */
.m-account-profile {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--bg-off);
}

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

.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.5rem;
    font-weight: 700;
    color: var(--text-on-dark);
    flex-shrink: 0;
}

.m-account-profile__info h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

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

.m-account-profile__xp {
    margin-bottom: var(--space-xl);
}

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

/* ============================================
   27. XP Progress
   ============================================ */
.m-progress-bar {
    width: 100%;
    height: 12px;
    background: var(--bg-off);
    border-radius: 6px;
    overflow: hidden;
}

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

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

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

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

.m-account-stats__label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

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

.m-breadcrumb__link:hover {
    text-decoration: underline;
}

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

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

.m-content-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--bg-off);
    margin-bottom: var(--space-xl);
}

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

.m-content-card h2 {
    font-size: 1.35rem;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--bg-off);
    color: var(--text-primary);
}

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

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

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

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

.m-content-card__intro {
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.8;
    font-weight: 400;
    padding-bottom: var(--space-lg);
    border-bottom: 2px solid var(--bg-off);
    margin-bottom: var(--space-xl);
}

.m-content-card__cta {
    text-align: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--bg-off);
    margin-top: var(--space-xl);
}

.m-content-card--why {
    background: linear-gradient(135deg, rgba(67,97,238,0.04), rgba(247,37,133,0.04));
    border-color: rgba(67,97,238,0.15);
}

/* Benefits List (Account page) */
.m-benefits-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.m-benefits-list__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.m-benefits-list__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.m-benefits-list__item strong {
    display: block;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

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

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

.m-info-card {
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border: 2px solid;
}

.m-info-card h3 {
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: var(--space-sm);
}

.m-info-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.m-info-card--green {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.m-info-card--blue {
    border-color: var(--primary);
    background: rgba(67, 97, 238, 0.05);
}

.m-info-card--purple {
    border-color: #7209b7;
    background: rgba(114, 9, 183, 0.05);
}

.m-info-card--orange {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

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

.m-review-hero__tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: var(--space-sm);
}

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

.m-review-stats__item {
    text-align: center;
    padding: var(--space-lg);
    background: var(--bg-section);
    border-radius: var(--radius-md);
    border: 1px solid var(--bg-off);
}

.m-review-stats__value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

.m-review-stats__label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   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-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--bg-off);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

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

.m-article-card__category {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    background: rgba(67, 97, 238, 0.1);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: var(--space-sm);
}

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

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

.m-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);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--bg-off);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}

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

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

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

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

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

.m-review-card__stat {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-section);
    padding: 4px 12px;
    border-radius: 20px;
}

/* Game Card (home featured + reviews) */
.m-game-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--bg-off);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Tablet */
@media (max-width: 992px) {
    h1 { font-size: 2rem; }
    .m-hero__title { font-size: 2.5rem; }
    .m-hero__title--404 { font-size: 6rem; }

    .m-header__nav {
        display: none;
    }

    .m-header__burger {
        display: flex;
    }

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

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

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

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

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

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

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

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

/* Mobile */
@media (max-width: 768px) {
    .m-hero {
        padding: var(--space-2xl) 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    .m-account-profile {
        padding: var(--space-lg);
    }

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

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

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

    .m-modal__actions {
        flex-direction: column;
    }

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

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

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

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

    .m-hero__text {
        font-size: 0.95rem;
    }

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

    .m-review-stats {
        grid-template-columns: 1fr 1fr;
    }
}
.article-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}
