/* ==============================================
   WalkWithWorld Casino — Styles
   Stylistic: #7 Лучник (Archer)
   Fonts: Bitter (headings) + Karla (body)
   Palette: Greens, blacks, arrow motifs, precision
   ============================================== */

/* 1. CSS Variables (:root) */
:root {
    /* Colors — Archer palette */
    --primary: #2e7d32;
    --primary-dark: #1b5e20;
    --primary-light: #4caf50;
    --secondary: #1a1a1a;
    --accent: #a5d6a7;
    --accent-bright: #66bb6a;

    /* Backgrounds */
    --bg-dark: #0d1a0f;
    --bg-darker: #071209;
    --bg-card: #142117;
    --bg-card-hover: #1c2e20;
    --bg-section-alt: #0f1e12;
    --bg-hero: linear-gradient(160deg, #071209 0%, #142117 40%, #0d1a0f 100%);

    /* Text */
    --text-primary: #e8f5e9;
    --text-secondary: #a5d6a7;
    --text-muted: #6b8f6e;
    --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;

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

    /* Fonts */
    --font-body: 'Karla', sans-serif;
    --font-heading: 'Bitter', serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 20px rgba(46,125,50,0.3);
}

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

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

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

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

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

ul, ol {
    list-style: none;
}

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

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

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

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

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

strong {
    font-weight: 700;
}

/* 4. Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.m-container--narrow {
    max-width: 800px;
}

/* 5. Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(7, 18, 9, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(46,125,50,0.2);
    z-index: 1000;
    transition: background var(--transition-base);
}

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

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

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

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

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

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link.is-active {
    color: var(--text-primary);
}

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

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

.btn-account {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(46,125,50,0.15);
    border: 1px solid rgba(46,125,50,0.3);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn-account:hover {
    background: rgba(46,125,50,0.25);
    color: var(--text-primary);
    border-color: var(--primary);
}

/* 6. Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    padding: 4px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

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

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

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

.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(7, 18, 9, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(46,125,50,0.2);
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.mobile-menu.is-open {
    max-height: 400px;
}

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

.mobile-menu__link {
    padding: var(--space-md) 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(46,125,50,0.1);
    transition: color var(--transition-fast);
}

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

.mobile-menu__link:last-child {
    border-bottom: none;
}

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

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

.btn--primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: var(--shadow-glow);
}

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

.btn--secondary:hover {
    background: rgba(46,125,50,0.15);
    color: var(--text-primary);
}

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

.btn--large {
    padding: 16px 36px;
    font-size: 1.0625rem;
}

.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 {
    background: var(--bg-hero);
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.m-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(46,125,50,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.m-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(46,125,50,0.3), transparent);
}

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

.m-hero__content--row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    max-width: 100%;
}

.m-hero__title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.m-hero__title--404 {
    font-size: 8rem;
    line-height: 1;
    -webkit-text-fill-color: var(--primary);
    background: none;
}

.m-hero__subtitle {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    font-weight: 400;
}

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

.m-hero__arrow-decoration {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(46,125,50,0.12);
    pointer-events: none;
}

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

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

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

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

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

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

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

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

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

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

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

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

.m-section__subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: var(--space-2xl);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.m-section__note {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

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

/* Page titles */
.m-page-title {
    font-size: 2.25rem;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

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

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

.benefit-card {
    background: var(--bg-card);
    border: 1px solid rgba(46,125,50,0.15);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
}

.benefit-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(46,125,50,0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

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

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

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

/* 12. Featured Providers */
.featured-provider {
    margin-bottom: var(--space-2xl);
}

.featured-provider__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    text-align: center;
    position: relative;
}

.featured-provider__title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--primary);
    margin: var(--space-sm) auto 0;
}

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

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

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

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

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

.provider-section__title {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid rgba(46,125,50,0.2);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.provider-section__title::before {
    content: '→';
    color: var(--primary);
    font-size: 1.125rem;
}

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

.game-card:hover,
.m-game-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(46,125,50,0.35);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.game-card__image,
.m-game-tile__image-wrap {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-darker);
}

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

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

.game-card__play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13,26,15,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.game-card:hover .game-card__play-overlay,
.m-game-tile:hover .game-card__play-overlay {
    opacity: 1;
}

.game-card__play-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    box-shadow: var(--shadow-glow);
}

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

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

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

/* Game card featured variant */
.game-card--featured {
    border-color: rgba(46,125,50,0.2);
}

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

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

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

.m-game-tile__lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7,18,9,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-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    padding: 0 var(--space-sm);
}

/* 16. Provider Section — see above in #13 area */

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

.filter-btn {
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid rgba(46,125,50,0.15);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    color: var(--text-secondary);
    border-color: rgba(46,125,50,0.3);
    background: var(--bg-card-hover);
}

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

/* 18. Unlock Banner */
.unlock-banner {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg) var(--space-xl);
    background: linear-gradient(135deg, rgba(46,125,50,0.1), rgba(46,125,50,0.05));
    border: 1px solid rgba(46,125,50,0.25);
    border-radius: var(--radius-md);
}

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

.unlock-banner__text {
    flex: 1;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

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

.faq-item {
    border-bottom: 1px solid rgba(46,125,50,0.12);
}

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

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

.faq-item__arrow {
    flex-shrink: 0;
    transition: transform var(--transition-base);
    color: var(--text-muted);
}

.faq-item.is-open .faq-item__arrow {
    transform: rotate(180deg);
    color: var(--primary-light);
}

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

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

.faq-item__answer p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* 20. Disclaimer */
.disclaimer {
    padding: var(--space-lg);
    background: rgba(46,125,50,0.05);
    border: 1px solid rgba(46,125,50,0.12);
    border-radius: var(--radius-md);
}

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

/* 21. Footer */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid rgba(46,125,50,0.15);
    padding: var(--space-3xl) 0 var(--space-xl);
}

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

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

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

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

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

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

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

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

.footer__compliance-logo {
    height: 32px;
    width: auto;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
    filter: grayscale(20%);
}

.footer__compliance-logo:hover {
    opacity: 1;
    filter: none;
}

.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: 36px;
    height: 36px;
    background: var(--primary-dark);
    color: var(--text-on-primary);
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.age-badge--large {
    width: 56px;
    height: 56px;
    font-size: 1.125rem;
}

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

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

/* 22. Modals */
.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-base);
    padding: var(--space-lg);
}

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

.modal__content {
    background: var(--bg-card);
    border: 1px solid rgba(46,125,50,0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    max-width: 480px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal__text {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
    font-size: 0.9375rem;
}

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

/* Age Modal specific */
.age-modal .modal__content {
    text-align: center;
}

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

.game-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid rgba(46,125,50,0.15);
}

.game-modal__title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 0;
}

.game-modal__close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-muted);
    background: rgba(46,125,50,0.1);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.game-modal__close:hover {
    background: rgba(46,125,50,0.2);
    color: var(--text-primary);
}

.game-modal__body {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: var(--bg-darker);
}

.game-modal__iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 23. Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid rgba(46,125,50,0.2);
    padding: var(--space-lg);
    z-index: 1500;
    transform: translateY(100%);
    transition: transform var(--transition-base);
}

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

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

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

/* 24. Auth Forms */
.auth-modal__content {
    max-width: 420px;
    padding: var(--space-2xl);
}

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

.auth-modal__close:hover {
    background: rgba(46,125,50,0.2);
    color: var(--text-primary);
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: var(--space-xl);
    border-bottom: 2px solid rgba(46,125,50,0.15);
}

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

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

.auth-tab.is-active {
    color: var(--primary-light);
}

.auth-tab.is-active::after {
    background: var(--primary);
}

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

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

.auth-form__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.auth-form__input {
    padding: 12px var(--space-md);
    background: var(--bg-darker);
    border: 1px solid rgba(46,125,50,0.2);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: border-color var(--transition-fast);
    outline: none;
}

.auth-form__input::placeholder {
    color: var(--text-muted);
}

.auth-form__input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46,125,50,0.15);
}

.auth-form__error {
    font-size: 0.8125rem;
    color: #ef5350;
    min-height: 0;
    transition: all var(--transition-fast);
}

.auth-form__error:not(:empty) {
    min-height: 20px;
}

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

.account-card {
    background: var(--bg-card);
    border: 1px solid rgba(46,125,50,0.15);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
}

.account-card__title {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
    text-align: center;
}

/* Why register */
.why-register {
    margin-top: var(--space-2xl);
}

.why-register__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: var(--space-xl);
    color: var(--text-primary);
}

.why-register__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.why-register__item {
    text-align: center;
    padding: var(--space-lg);
}

.why-register__icon {
    font-size: 2rem;
    display: block;
    margin-bottom: var(--space-sm);
}

.why-register__item h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

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

/* 26. Profile */
.profile-header {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid rgba(46,125,50,0.15);
    border-radius: var(--radius-md);
}

.level-badge {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-on-primary);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    border: 3px solid var(--primary-light);
    box-shadow: var(--shadow-glow);
}

.profile-header__name {
    font-size: 1.75rem;
    margin-bottom: var(--space-xs);
}

.profile-header__email {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* 27. XP Progress */
.xp-section {
    margin-bottom: var(--space-2xl);
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid rgba(46,125,50,0.15);
    border-radius: var(--radius-md);
}

.xp-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.xp-section__label {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.xp-section__values {
    font-size: 0.875rem;
    color: var(--text-muted);
}

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

.xp-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 6px;
    transition: width var(--transition-slow);
    box-shadow: 0 0 10px rgba(46,125,50,0.4);
}

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

.stat-card {
    background: var(--bg-card);
    border: 1px solid rgba(46,125,50,0.15);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
}

.stat-card__value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: var(--space-xs);
}

.stat-card__label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

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

/* Daily Bonus Modal */
.daily-bonus-modal__content {
    text-align: center;
    max-width: 400px;
}

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

.daily-bonus-modal__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-bottom: var(--space-md);
}

.daily-bonus-modal__text {
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

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

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

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

.m-breadcrumb__sep {
    color: rgba(46,125,50,0.3);
}

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

.m-content-card {
    background: var(--bg-card);
    border: 1px solid rgba(46,125,50,0.12);
    border-radius: var(--radius-md);
    padding: var(--space-2xl);
    line-height: 1.8;
}

.m-content-card__intro {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
    border-left: 3px solid var(--primary);
    padding-left: var(--space-lg);
}

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

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

.m-content-card h3 {
    font-size: 1.25rem;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

.m-content-card p {
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

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

.m-content-card ul {
    list-style: none;
}

.m-content-card ul li {
    position: relative;
    padding-left: var(--space-md);
    margin-bottom: var(--space-sm);
    color: var(--text-muted);
}

.m-content-card ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 0.875rem;
}

.m-content-card ol {
    list-style: decimal;
}

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

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

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

/* Responsible gaming page */
.responsible-facts {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.responsible-fact {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(46,125,50,0.05);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
}

.responsible-fact__icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.responsible-fact strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.responsible-fact p {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.age-restriction-badge {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: rgba(46,125,50,0.08);
    border-radius: var(--radius-md);
    border: 1px solid rgba(46,125,50,0.2);
    margin: var(--space-xl) 0;
}

.age-restriction-badge p {
    margin-bottom: 0;
    color: var(--text-secondary);
}

.help-resources {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.help-resource {
    padding: var(--space-lg);
    background: rgba(46,125,50,0.05);
    border: 1px solid rgba(46,125,50,0.12);
    border-radius: var(--radius-md);
}

.help-resource strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    font-family: var(--font-heading);
}

.help-resource p {
    font-size: 0.875rem;
    margin-bottom: var(--space-md);
}

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

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

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

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

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

.review-game-item {
    text-align: center;
}

.review-game-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-xs);
    border: 1px solid rgba(46,125,50,0.12);
}

.review-game-item span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.review-cta {
    text-align: center;
    margin-top: var(--space-2xl);
}

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

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

.article-card:hover {
    transform: translateY(-4px);
    border-color: rgba(46,125,50,0.3);
    box-shadow: var(--shadow-md);
}

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

.article-card__category {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-light);
    background: rgba(46,125,50,0.12);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
}

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

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

.article-card__link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-light);
    display: inline-block;
}

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

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

.review-card {
    background: var(--bg-card);
    border: 1px solid rgba(46,125,50,0.12);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    transition: all var(--transition-base);
    position: relative;
}

.review-card:hover {
    border-color: rgba(46,125,50,0.3);
    box-shadow: var(--shadow-md);
}

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

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

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

.review-card__score {
    font-size: 0.875rem;
    color: var(--text-muted);
}

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

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

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

/* 32. Utility Classes */
.stars {
    color: #ffc107;
    letter-spacing: 2px;
}

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

.hidden {
    display: none !important;
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(46,125,50,0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(46,125,50,0.5);
}

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

@media (max-width: 992px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

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

    .m-hero__arrow-decoration {
        display: none;
    }

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

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

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

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

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

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

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

    .m-hero__content--row {
        flex-direction: column;
        text-align: center;
        gap: var(--space-lg);
    }

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

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }

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

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

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

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

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

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

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

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

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

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

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

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

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-actions {
        flex-direction: column;
    }

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

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

    .filter-btn {
        padding: 8px 14px;
        font-size: 0.8125rem;
    }

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

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

    .why-register__grid {
        grid-template-columns: 1fr;
    }

    .btn-account {
        display: none;
    }

    .game-modal__content {
        max-width: 100%;
        margin: var(--space-md);
        border-radius: var(--radius-md);
    }

    .auth-modal__content {
        margin: var(--space-md);
    }
}

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

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

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

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

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

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

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

    .review-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .modal__content {
        padding: var(--space-lg);
        margin: var(--space-sm);
    }
}