/* ==========================================================================
   Miss Benin — Social Casino | Retro Style (#13)
   Fonts: Press Start 2P / VT323
   Palette: #f4e4ba, #e8a87c, #2d1b00, #5c3d1e, #c25b28
   ========================================================================== */

/* 1. CSS Variables (:root) */
:root {
    /* Colors — Mystic Jade & Gold */
    --primary: #b8860b;
    --primary-dark: #9a7209;
    --secondary: #d4a843;
    --accent: #e8dcc8;

    /* Backgrounds */
    --bg-dark: #0d1a14;
    --bg-darker: #060f0a;
    --bg-card: #142922;
    --bg-card-hover: #1c362d;

    /* Text */
    --text-primary: #e8dcc8;
    --text-secondary: #d4a843;
    --text-muted: #7a9b8a;

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

    /* Unique Effects */
    --glow-primary: 0 0 15px rgba(184, 134, 11, 0.3);
    --glow-accent: 0 0 20px rgba(212, 168, 67, 0.2);
    --border-shimmer: linear-gradient(135deg, var(--primary), var(--secondary), var(--primary));

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

    /* Fonts */
    --font-body: 'VT323', monospace;
    --font-heading: 'Press Start 2P', cursive;
}

/* 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: 20px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

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

a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

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

/* 3. Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--accent);
    line-height: 1.4;
    margin-bottom: var(--space-md);
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1rem; }
h3 { font-size: 0.85rem; }

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

/* 4. Container */
.m-container {
    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: linear-gradient(180deg, var(--bg-darker) 0%, rgba(6,15,10,0.97) 100%);
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 2px 20px rgba(184, 134, 11, 0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    backdrop-filter: blur(8px);
}

.m-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: var(--space-lg);
}

.m-header__logo {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--accent);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    white-space: nowrap;
    text-shadow: 2px 2px 0 var(--primary), 0 0 10px rgba(184, 134, 11, 0.3);
    position: relative;
}

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

.m-header__nav {
    display: flex;
    gap: var(--space-lg);
    margin-left: auto;
}

.m-header__link {
    font-family: var(--font-heading);
    font-size: 0.55rem;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    padding: var(--space-sm) 0;
    position: relative;
    transition: color 0.2s ease;
}

.m-header__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.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__account {
    font-family: var(--font-heading);
    font-size: 0.55rem;
    color: var(--accent);
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--accent);
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.m-header__account:hover,
.m-header__account.is-active {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(184, 134, 11, 0.3);
}

.m-header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.m-header__burger span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--accent);
    transition: all 0.3s ease;
}

/* 6. Mobile Menu */
.m-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1500;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
}

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

.m-mobile-menu__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
}

.m-mobile-menu__content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: linear-gradient(180deg, var(--bg-darker) 0%, rgba(13,26,20,0.98) 100%);
    border-left: 3px solid var(--primary);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: -10px 0 40px rgba(0,0,0,0.5);
}

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

.m-mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 2px solid var(--bg-card);
}

.m-mobile-menu__logo {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    color: var(--accent);
    text-shadow: 2px 2px 0 var(--primary);
}

.m-mobile-menu__close {
    font-size: 28px;
    color: var(--accent);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.m-mobile-menu__nav {
    display: flex;
    flex-direction: column;
    padding: var(--space-lg);
}

.m-mobile-menu__link {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    color: var(--text-primary);
    text-decoration: none;
    padding: var(--space-md) 0;
    text-transform: uppercase;
    border-bottom: 1px solid var(--bg-card);
    transition: color 0.2s ease;
}

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

/* 7. Buttons */
.m-btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.6rem;
    text-transform: uppercase;
    padding: var(--space-md) var(--space-xl);
    border: 3px solid transparent;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.m-btn--primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--accent);
    border-color: var(--accent);
    position: relative;
    overflow: hidden;
}

.m-btn--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.m-btn--primary:hover::before {
    left: 100%;
}

.m-btn--primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 0 var(--accent), 0 6px 20px rgba(184, 134, 11, 0.3);
}

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

.m-btn--secondary:hover {
    background: var(--secondary);
    color: var(--bg-dark);
}

.m-btn--text {
    background: none;
    border: none;
    color: var(--secondary);
    padding: var(--space-sm);
    font-family: var(--font-body);
    font-size: 18px;
}

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

.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 {
    padding: var(--space-3xl) 0;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 60%, rgba(20,41,34,0.3) 100%);
    border-bottom: 3px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.m-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(184, 134, 11, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(212, 168, 67, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(184, 134, 11, 0.05) 0%, transparent 50%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(232,220,200,0.02) 2px,
            rgba(232,220,200,0.02) 4px
        );
    pointer-events: none;
}

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

.m-hero__title {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: var(--space-md);
    text-shadow: 3px 3px 0 var(--primary), 6px 6px 0 rgba(0,0,0,0.3);
    animation: retro-flicker 3s infinite;
}

@keyframes retro-flicker {
    0%, 100% { opacity: 1; text-shadow: 3px 3px 0 var(--primary), 6px 6px 0 rgba(0,0,0,0.3); }
    92% { opacity: 1; }
    93% { opacity: 0.8; text-shadow: 3px 3px 8px var(--primary), 6px 6px 0 rgba(0,0,0,0.3); }
    94% { opacity: 1; }
    96% { opacity: 0.9; text-shadow: 3px 3px 4px var(--primary), 6px 6px 0 rgba(0,0,0,0.3); }
    97% { opacity: 1; }
}

@keyframes float-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(184, 134, 11, 0.15); }
    50% { box-shadow: 0 0 20px rgba(184, 134, 11, 0.35); }
}

@keyframes subtle-drift {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-4px); }
}

@keyframes border-pulse {
    0%, 100% { border-color: var(--secondary); }
    50% { border-color: var(--primary); }
}

@keyframes shimmer-text {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.m-hero__subtitle {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--secondary);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent), var(--secondary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer-text 4s linear infinite;
}

.m-hero__text {
    font-size: 22px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

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

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

.m-hero__left {
    text-align: left;
}

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

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

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

.m-hero__title--404 {
    font-size: 4rem;
    text-shadow: 4px 4px 0 var(--primary), 8px 8px 0 rgba(0,0,0,0.3);
}

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

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

.m-section__title {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: var(--space-md);
    color: var(--accent);
    text-shadow: 2px 2px 0 var(--primary);
    position: relative;
    display: inline-block;
    width: 100%;
}

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

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

.m-section__text {
    text-align: center;
    color: var(--text-muted);
}

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

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

.m-section--reviews-list {
    margin-top: var(--space-2xl);
    padding-top: var(--space-2xl);
    border-top: 3px dashed var(--bg-card);
}

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

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

.m-benefit-card {
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(20,41,34,0.8) 100%);
    border: 2px solid var(--secondary);
    padding: var(--space-xl);
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.m-benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(184, 134, 11, 0.05), transparent);
    transition: left 0.6s ease;
}

.m-benefit-card:hover::before {
    left: 100%;
}

.m-benefit-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(184, 134, 11, 0.2);
}

.m-benefit-card__icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: var(--space-md);
    animation: subtle-drift 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 8px rgba(184, 134, 11, 0.3));
}

.m-benefit-card__title {
    font-size: 0.65rem;
    margin-bottom: var(--space-sm);
}

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

/* 12. Featured Providers */
.m-featured__provider-title {
    font-size: 0.7rem;
    color: var(--secondary);
    margin-bottom: var(--space-md);
    text-align: center;
    text-transform: uppercase;
}

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

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

/* 14. Game Tile (used by games.js) */
.m-game-tile {
    position: relative;
    background: var(--bg-card);
    border: 2px solid var(--secondary);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.m-game-tile:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(184, 134, 11, 0.25), 0 0 0 1px rgba(184, 134, 11, 0.1);
}

.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 0.3s ease;
}

.m-game-tile:hover .m-game-tile__image img {
    transform: scale(1.08);
    filter: brightness(1.1) saturate(1.1);
}

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

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

.m-game-tile__provider {
    font-size: 16px;
    color: var(--text-muted);
}

/* 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__lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13,26,20,0.88);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    backdrop-filter: blur(2px);
}

.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.45rem;
    color: var(--accent);
    text-align: center;
    padding: 0 var(--space-sm);
}

/* Game Cards (for home featured & reviews) */
.m-game-card {
    position: relative;
    background: var(--bg-card);
    border: 2px solid var(--secondary);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.m-game-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(184, 134, 11, 0.2);
}

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

.m-game-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.m-game-card__title {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.45rem;
    color: var(--accent);
    padding: var(--space-sm) var(--space-md);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-game-card--small .m-game-card__image {
    aspect-ratio: 16/10;
}

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

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

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

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

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

.m-provider-section__title {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--secondary);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 3px solid var(--primary);
    text-transform: uppercase;
    position: relative;
}

.m-provider-section__title::before {
    content: '▎';
    color: var(--primary);
    margin-right: var(--space-sm);
    font-size: 1rem;
}

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

.m-filter-btn {
    font-family: var(--font-heading);
    font-size: 0.5rem;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 2px solid var(--bg-card);
    padding: var(--space-sm) var(--space-md);
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

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

.m-filter-btn.is-active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 2px 10px rgba(184, 134, 11, 0.3);
}

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

/* 18. Unlock Banner */
.m-unlock-banner {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(20,41,34,0.8) 100%);
    border: 3px solid var(--primary);
    padding: var(--space-lg) var(--space-xl);
    box-shadow: 0 4px 20px rgba(184, 134, 11, 0.15);
}

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

.m-unlock-banner__text {
    flex: 1;
    font-size: 18px;
    color: var(--text-primary);
}

.m-unlock-banner__text strong {
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 0.55rem;
}

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

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

.m-faq-item {
    border: 2px solid var(--bg-card);
    margin-bottom: var(--space-sm);
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(6,15,10,0.7) 100%);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.m-faq-item__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: none;
    border: none;
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 0.55rem;
    cursor: pointer;
    text-align: left;
    gap: var(--space-md);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.m-faq-item__question:hover {
    padding-left: calc(var(--space-lg) + 4px);
}

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

.m-faq-item__icon {
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
    font-family: var(--font-body);
}

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

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

.m-faq-item.is-open {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.15);
}

.m-faq-item__answer p {
    color: var(--text-muted);
    font-size: 18px;
}

/* 20. Disclaimer */
.m-disclaimer {
    background: linear-gradient(135deg, var(--bg-darker) 0%, rgba(20,41,34,0.5) 100%);
    border: 2px dashed var(--text-muted);
    padding: var(--space-lg);
    text-align: center;
    position: relative;
}

.m-disclaimer p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 0;
}

.m-disclaimer a {
    color: var(--secondary);
}

/* 21. Footer */
.m-footer {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 30%);
    border-top: 3px solid var(--primary);
    padding: var(--space-2xl) 0 var(--space-lg);
    margin-top: var(--space-2xl);
    position: relative;
}

.m-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
}

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

.m-footer__logo {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--accent);
    text-decoration: none;
    text-shadow: 2px 2px 0 var(--primary), 0 0 12px rgba(184, 134, 11, 0.2);
    display: inline-block;
    margin-bottom: var(--space-md);
    letter-spacing: 2px;
}

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

.m-footer__description {
    color: var(--text-muted);
    font-size: 18px;
}

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

.m-footer__nav-section h3 {
    font-family: var(--font-heading);
    font-size: 0.55rem;
    color: var(--accent);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
}

.m-footer__nav-section a {
    display: block;
    color: var(--text-muted);
    font-size: 18px;
    padding: var(--space-xs) 0;
    transition: color 0.2s ease;
}

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

.m-footer__compliance {
    padding: var(--space-xl) 0;
    border-top: 1px solid rgba(184, 134, 11, 0.2);
    border-bottom: 1px solid rgba(184, 134, 11, 0.2);
    margin-bottom: var(--space-lg);
}

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

.m-footer__compliance-logo {
    height: 36px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

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

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

.m-footer__age-badge {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    color: var(--accent);
    border: 3px solid var(--primary);
    padding: var(--space-xs) var(--space-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(184, 134, 11, 0.2);
    background: rgba(184, 134, 11, 0.05);
}

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

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

.m-footer__address {
    font-size: 14px;
    color: var(--text-muted);
    opacity: 0.6;
}

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

.m-modal__overlay {
    position: absolute;
    inset: 0;
}

.m-modal__content {
    position: relative;
    background: linear-gradient(160deg, var(--bg-card) 0%, var(--bg-darker) 100%);
    border: 3px solid var(--primary);
    padding: var(--space-xl);
    max-width: 500px;
    width: 90%;
    z-index: 1;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(184, 134, 11, 0.15);
}

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

.m-modal__content p {
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

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

.m-modal__close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    font-size: 28px;
    color: var(--accent);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
}

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

.m-modal__content--game {
    max-width: 900px;
    width: 95%;
    padding: var(--space-md);
}

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

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

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

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

/* 23. Cookie Consent */
.m-cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(6,15,10,0.97) 0%, var(--bg-darker) 100%);
    border-top: 3px solid var(--primary);
    padding: var(--space-lg);
    z-index: 1800;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
}

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

.m-cookie-consent__content p {
    flex: 1;
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 0;
}

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

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

.m-auth-tab {
    flex: 1;
    font-family: var(--font-heading);
    font-size: 0.5rem;
    color: var(--text-muted);
    background: none;
    border: none;
    padding: var(--space-md);
    cursor: pointer;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.m-auth-tab.is-active {
    color: var(--accent);
    border-bottom: 3px solid var(--primary);
    margin-bottom: -3px;
}

.m-auth-form__title {
    font-size: 0.75rem;
    margin-bottom: var(--space-lg);
}

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

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

.m-input {
    width: 100%;
    font-family: var(--font-body);
    font-size: 20px;
    color: var(--text-primary);
    background: var(--bg-dark);
    border: 2px solid var(--secondary);
    padding: var(--space-md);
    outline: none;
    transition: border-color 0.2s ease;
}

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

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

.m-auth-form__switch {
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
    margin-top: var(--space-md);
    margin-bottom: 0;
}

.m-auth-form__switch a {
    color: var(--primary);
}

/* 25. Account Page */
.m-page-title {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: var(--space-md);
    text-shadow: 2px 2px 0 var(--primary), 0 0 20px rgba(184, 134, 11, 0.15);
    position: relative;
}

.m-page-title::after {
    content: '◈';
    display: block;
    text-align: center;
    color: var(--primary);
    font-size: 0.6rem;
    margin-top: var(--space-sm);
    opacity: 0.6;
    letter-spacing: 8px;
}

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

.m-account-forms {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    max-width: 800px;
    margin: 0 auto var(--space-2xl);
}

.m-account-card {
    background: linear-gradient(155deg, var(--bg-card) 0%, var(--bg-darker) 100%);
    border: 2px solid var(--secondary);
    padding: var(--space-xl);
    transition: border-color 0.3s ease;
}

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

.m-account-card__title {
    font-size: 0.7rem;
    margin-bottom: var(--space-lg);
    text-align: center;
}

/* 26. Profile */
.m-account-profile {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(160deg, var(--bg-card) 0%, var(--bg-darker) 100%);
    border: 3px solid var(--primary);
    padding: var(--space-xl);
    box-shadow: 0 8px 30px rgba(184, 134, 11, 0.1);
}

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

.m-account-profile__badge {
    flex-shrink: 0;
}

.m-level-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--accent);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: 3px solid var(--accent);
    animation: float-glow 3s ease-in-out infinite;
}

.m-account-profile__name {
    font-size: 0.85rem;
    margin-bottom: var(--space-xs);
}

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

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

.m-account-xp__header {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 0.45rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.m-progress-bar {
    width: 100%;
    height: 20px;
    background: var(--bg-dark);
    border: 2px solid var(--secondary);
    overflow: hidden;
}

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

.m-progress-bar__fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 8px,
        rgba(244,228,186,0.15) 8px,
        rgba(244,228,186,0.15) 10px
    );
}

/* 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: linear-gradient(145deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    border: 2px solid var(--secondary);
    padding: var(--space-md);
    transition: border-color 0.3s ease;
}

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

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

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

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

/* Daily Bonus */
.m-daily-bonus {
    text-align: center;
}

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

.m-daily-bonus__title {
    font-size: 1rem;
    margin-bottom: var(--space-sm);
}

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

.m-daily-bonus__amount {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: var(--space-lg);
    text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

/* 29. Content Pages */
.m-content-card {
    background: linear-gradient(170deg, var(--bg-card) 0%, rgba(6,15,10,0.9) 100%);
    border: 2px solid var(--secondary);
    padding: var(--space-xl);
    position: relative;
}

.m-content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
}

.m-content-card h2 {
    font-size: 0.85rem;
    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 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: var(--accent);
}

.m-content-card p {
    color: var(--text-muted);
    font-size: 20px;
    line-height: 1.7;
}

.m-content-card ul,
.m-content-card ol {
    color: var(--text-muted);
    font-size: 20px;
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

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

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

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

.m-content-card__cta {
    text-align: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 2px dashed rgba(184, 134, 11, 0.3);
}

.m-breadcrumb {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

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

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

.m-breadcrumb span {
    margin: 0 var(--space-sm);
}

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

.m-fact-card {
    background: linear-gradient(150deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    border: 2px solid var(--secondary);
    padding: var(--space-lg);
    text-align: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.m-fact-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.15);
}

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

.m-fact-card h3 {
    font-size: 0.6rem;
    margin-bottom: var(--space-sm);
}

.m-fact-card p {
    margin-bottom: 0;
}

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

.m-article-card {
    position: relative;
    background: linear-gradient(160deg, var(--bg-card) 0%, var(--bg-darker) 100%);
    border: 2px solid var(--secondary);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.m-article-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(184, 134, 11, 0.2);
}

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

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

.m-article-card__category {
    font-family: var(--font-heading);
    font-size: 0.4rem;
    color: var(--primary);
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: var(--space-sm);
    border: 1px solid var(--primary);
    padding: 2px 8px;
    background: rgba(184, 134, 11, 0.08);
    letter-spacing: 1px;
}

.m-article-card__title {
    font-size: 0.6rem;
    margin-bottom: var(--space-sm);
    color: var(--accent);
}

.m-article-card__excerpt {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.m-article-card__meta {
    font-size: 14px;
    color: var(--text-muted);
    opacity: 0.6;
}

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

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

.m-review-card {
    position: relative;
    background: linear-gradient(160deg, var(--bg-card) 0%, var(--bg-darker) 100%);
    border: 2px solid var(--secondary);
    padding: var(--space-xl);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.m-review-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(184, 134, 11, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.m-review-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 12px 35px rgba(184, 134, 11, 0.2);
}

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

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

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

.m-review-card__text {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.m-review-card__stats {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    font-size: 16px;
    color: var(--text-secondary);
}

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

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

.m-review-hero__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    font-size: 18px;
    color: var(--text-muted);
}

.m-review-hero__meta {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
    font-size: 18px;
    color: var(--text-secondary);
}

/* 32. Utility Classes */
.stars {
    color: #d4a843;
    text-shadow: 0 0 6px rgba(212, 168, 67, 0.4);
}

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

/* Scanline effect for retro feel */
.m-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0,0,0,0.06) 0px,
        rgba(0,0,0,0.06) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
    z-index: 0;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    border: 2px solid var(--bg-darker);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--secondary), var(--primary));
}

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

@media (max-width: 992px) {
    .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;
    }

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

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

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

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

@media (max-width: 768px) {
    body {
        font-size: 18px;
    }

    h1 { font-size: 1rem; }
    h2 { font-size: 0.8rem; }

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

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

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

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

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

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

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

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

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

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

    .m-filter-btn {
        font-size: 0.4rem;
        padding: var(--space-xs) var(--space-sm);
    }

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

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

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

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

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

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

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

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

    .m-content-card h2 {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .m-header__logo {
        font-size: 0.6rem;
    }

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

    .m-btn {
        font-size: 0.5rem;
        padding: var(--space-sm) var(--space-md);
    }

    .m-modal__content {
        width: 95%;
        padding: var(--space-lg);
    }

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