/* ==========================================================================
   OrOutdoor Casino — Französische Eleganz
   CSS Architecture: BEM with m- prefix
   Fonts: Libre Baskerville (heading), Raleway (body)
   Palette: Cream #fdf6ec, Bordeaux #722f37, Gold #c9a84c
   ========================================================================== */

/* 1. CSS Variables (:root)
   ========================================================================== */
:root {
    /* Colors */
    --primary: #722f37;
    --primary-dark: #5a242b;
    --primary-light: #8e3a44;
    --secondary: #c9a84c;
    --secondary-dark: #b0923e;
    --accent: #c9a84c;
    --accent-light: #d4b96a;

    /* Backgrounds */
    --bg-dark: #fdf6ec;
    --bg-darker: #f5ecdd;
    --bg-card: #ffffff;
    --bg-hero: #722f37;
    --bg-section-alt: #f9f1e3;
    --bg-overlay: rgba(114, 47, 55, 0.92);

    /* Text */
    --text-primary: #2c1810;
    --text-secondary: #5a4a3a;
    --text-muted: #8a7a6a;
    --text-light: #fdf6ec;
    --text-on-primary: #fdf6ec;

    /* Borders */
    --border-color: #e8dcc8;
    --border-light: #f0e6d4;

    /* 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: 'Raleway', sans-serif;
    --font-heading: 'Libre Baskerville', serif;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(44, 24, 16, 0.06);
    --shadow-md: 0 4px 16px rgba(44, 24, 16, 0.1);
    --shadow-lg: 0 8px 32px rgba(44, 24, 16, 0.14);
    --shadow-card: 0 2px 12px rgba(44, 24, 16, 0.08);

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

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

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

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

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.3;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; margin-top: var(--space-xl); }
h3 { font-size: 1.35rem; margin-top: var(--space-lg); }
h4 { font-size: 1.15rem; }

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

strong {
    font-weight: 600;
}

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

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

/* 5. Header
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo.logo {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.header__logo.logo:hover {
    color: var(--primary-dark);
}

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

.header__link {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: var(--space-sm) 0;
    position: relative;
    transition: color var(--transition);
}

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

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

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

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

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

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

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

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

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

/* 6. Mobile Menu
   ========================================================================== */
.header__mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-card);
    z-index: 999;
    overflow-y: auto;
}

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

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

.header__mobile-link {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-light);
    transition: color var(--transition);
}

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

/* 7. Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 12px 28px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    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);
    color: var(--text-on-primary);
}

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

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

.btn--lg {
    font-size: 1rem;
    padding: 16px 40px;
}

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

.btn--mobile {
    margin-top: var(--space-md);
}

/* 8. Main Content
   ========================================================================== */
.m-main {
    padding-top: var(--header-height);
    min-height: 100vh;
}

/* 9. Hero Section
   ========================================================================== */
.m-hero {
    background: var(--bg-hero);
    color: var(--text-light);
    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(ellipse at center, rgba(201, 168, 76, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.m-hero__container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.m-hero__container--row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

.m-hero__title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: var(--space-md);
    letter-spacing: 0.02em;
}

.m-hero__title--404 {
    font-size: 8rem;
    color: var(--secondary);
    line-height: 1;
}

.m-hero__subtitle {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(253, 246, 236, 0.85);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.m-hero__text {
    font-size: 1.05rem;
    color: rgba(253, 246, 236, 0.75);
    max-width: 640px;
    margin: 0 auto var(--space-xl);
    line-height: 1.8;
}

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

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

.m-hero__text-block {
    flex: 1;
}

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

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

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

.m-hero__actions .btn--secondary {
    color: var(--text-light);
    border-color: rgba(253, 246, 236, 0.5);
}

.m-hero__actions .btn--secondary:hover {
    background: rgba(253, 246, 236, 0.1);
    border-color: var(--text-light);
    color: var(--text-light);
}

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

.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--page-top {
    padding-top: var(--space-2xl);
}

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

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

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

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

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

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

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

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

/* 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 var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
    transition: box-shadow var(--transition), transform var(--transition);
}

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

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

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

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

/* 12. Featured Providers
   ========================================================================== */
.featured-provider__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    text-align: center;
    color: var(--primary);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* 15. Game Tile — m-game-tile (JS rendered)
   ========================================================================== */
.m-game-tile {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow var(--transition), transform var(--transition);
}

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

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

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

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

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

/* 16. 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(44, 24, 16, 0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-align: center;
    padding: var(--space-md);
    z-index: 2;
}

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

.m-game-tile__lock-text {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

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

.m-provider-section__title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.m-provider-section__title::before {
    content: '◆';
    font-size: 0.7rem;
    color: var(--secondary);
}

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

.filter-btn {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}

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

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

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

/* 19. Unlock Banner
   ========================================================================== */
.unlock-banner {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-md);
}

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

.unlock-banner__text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.6;
}

.unlock-banner .btn--primary {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--text-primary);
    flex-shrink: 0;
}

.unlock-banner .btn--primary:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
}

/* 20. FAQ
   ========================================================================== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

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

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

.faq-item__icon {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--primary);
    transition: transform var(--transition);
    flex-shrink: 0;
    font-family: var(--font-body);
}

.faq-item--open .faq-item__icon {
    transform: rotate(45deg);
}

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

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

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

/* 21. Disclaimer
   ========================================================================== */
.disclaimer {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

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

/* 22. Footer
   ========================================================================== */
.footer {
    background: var(--primary);
    color: var(--text-light);
    padding: var(--space-3xl) 0 0;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.footer__content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(253, 246, 236, 0.15);
}

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

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

.footer__description {
    font-size: 0.9rem;
    color: rgba(253, 246, 236, 0.7);
    line-height: 1.7;
    max-width: 380px;
}

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

.footer__title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer__links {
    list-style: none;
    padding: 0;
}

.footer__links li {
    margin-bottom: var(--space-sm);
}

.footer__links a {
    font-size: 0.88rem;
    color: rgba(253, 246, 236, 0.7);
    text-decoration: none;
    transition: color var(--transition);
}

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

.footer__compliance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-xl) 0;
    border-bottom: 1px solid rgba(253, 246, 236, 0.15);
}

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

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

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

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

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

.footer__bottom {
    padding: var(--space-lg) 0;
    text-align: center;
}

.footer__copyright {
    font-size: 0.82rem;
    color: rgba(253, 246, 236, 0.5);
    margin-bottom: var(--space-xs);
}

.footer__address {
    font-size: 0.78rem;
    color: rgba(253, 246, 236, 0.4);
}

/* 23. Modals
   ========================================================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(44, 24, 16, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__content {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    max-width: 460px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    z-index: 1;
}

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

.modal__content p {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.modal__content--auth {
    max-width: 420px;
}

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

.modal__close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--text-muted);
    transition: all var(--transition);
    z-index: 2;
}

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

.modal__game-content {
    position: relative;
    width: 90vw;
    height: 80vh;
    max-width: 1100px;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    z-index: 1;
}

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

.modal__game-content .modal__close {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    z-index: 10;
}

.modal__game-content .modal__close:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* 24. Cookie Consent
   ========================================================================== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(44, 24, 16, 0.1);
    z-index: 1500;
    padding: var(--space-lg);
}

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

.cookie-consent__content p {
    flex: 1;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

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

/* 25. Auth Forms
   ========================================================================== */
.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: var(--space-xl);
}

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

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

.auth-tabs__btn--active {
    color: var(--primary);
}

.auth-tabs__btn--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-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.auth-form__input {
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 12px var(--space-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-dark);
    color: var(--text-primary);
    transition: border-color var(--transition);
    outline: none;
}

.auth-form__input:focus {
    border-color: var(--primary);
}

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

.auth-form__error {
    font-size: 0.82rem;
    color: #c0392b;
    min-height: 1.2em;
}

/* 26. Account Page
   ========================================================================== */
.account-forms {
    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 var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    box-shadow: var(--shadow-card);
}

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

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

/* 27. Profile
   ========================================================================== */
.profile {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-md);
}

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

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

.profile__name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 2px;
    color: var(--text-primary);
}

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

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

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

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

.profile__xp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--accent-light));
    border-radius: 6px;
    transition: width 0.6s ease;
}

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

.profile__stat {
    text-align: center;
    padding: var(--space-md);
    background: var(--bg-section-alt);
    border-radius: var(--radius-sm);
}

.profile__stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2px;
}

.profile__stat-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

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

.profile__actions .btn {
    flex: 1;
}

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

.daily-bonus__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: var(--space-md);
}

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

.daily-bonus__amount {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: var(--space-xl);
}

/* 30. Content Pages
   ========================================================================== */
.m-content-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-card);
}

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

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

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

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

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

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

.m-content-card__updated {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: var(--space-xl);
    text-align: center;
}

.m-content-card a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(114, 47, 55, 0.3);
    text-underline-offset: 3px;
}

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

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

.contact-info p {
    margin-bottom: var(--space-xs);
}

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

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

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

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

.m-breadcrumb__current {
    color: var(--primary);
    font-weight: 500;
}

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

.article-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}

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

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

.article-card__category {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary-dark);
    background: rgba(201, 168, 76, 0.12);
    padding: 4px 10px;
    border-radius: 3px;
    margin-bottom: var(--space-md);
}

.article-card__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
    margin-top: 0;
    color: var(--text-primary);
    line-height: 1.4;
}

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

.article-card__link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

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

.blog-reviews {
    margin-top: var(--space-2xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--border-color);
}

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

.review-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--transition), transform var(--transition);
}

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

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

.review-card__title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
    margin-top: 0;
    color: var(--primary);
}

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

.stars {
    color: #ffc107;
    font-size: 1rem;
    letter-spacing: 2px;
}

.review-card__score {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

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

.review-card__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.review-card__stat {
    text-align: center;
    padding: var(--space-md);
    background: var(--bg-section-alt);
    border-radius: var(--radius-sm);
}

.review-card__stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.review-card__stat-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

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

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

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

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

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

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

.review-stat__label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.review-stat__value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.review-games {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
}

.review-games h3 {
    margin-bottom: var(--space-lg);
}

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

.fact-card {
    background: var(--bg-section-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
}

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

.fact-card__title {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: var(--space-sm);
    margin-top: 0;
    color: var(--text-primary);
}

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

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

.help-resource {
    background: var(--bg-section-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
}

.help-resource h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
    margin-top: 0;
    color: var(--primary);
}

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

.help-resource .btn {
    font-size: 0.78rem;
    padding: 8px 16px;
}

/* Bonus Table (daily-bonuses article) */
.bonus-table {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin: var(--space-xl) 0;
}

.bonus-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-section-alt);
    border-radius: var(--radius-sm);
    align-items: center;
    border: 1px solid var(--border-color);
}

.bonus-row--highlight {
    background: rgba(201, 168, 76, 0.1);
    border-color: var(--secondary);
}

.bonus-row--premium {
    background: rgba(114, 47, 55, 0.08);
    border-color: var(--primary);
}

.bonus-row__day {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.bonus-row__reward {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-dark);
    text-align: center;
}

.bonus-row__note {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: right;
}

/* 33. Utility Classes
   ========================================================================== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-0 { margin-bottom: 0; }
.mt-xl { margin-top: var(--space-xl); }

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

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

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

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

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

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

    .header__nav { display: none; }
    .header__burger { display: flex; }
    .header__actions .btn { display: none; }

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

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

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

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

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

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

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

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

@media (max-width: 768px) {
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.4rem; }
    .m-hero__title { font-size: 2rem; }
    .m-hero__title--404 { font-size: 4rem; }
    .m-hero__subtitle { font-size: 1rem; }

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

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

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

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

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

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

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

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

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

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

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

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

    .filter-bar {
        gap: 6px;
    }

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

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

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

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

    .profile__actions {
        flex-direction: column;
    }

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

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

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

    .bonus-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-xs);
    }

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

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

    .modal__game-content {
        width: 95vw;
        height: 70vh;
    }
}

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

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

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

    .review-card__stats {
        grid-template-columns: 1fr;
    }

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