/* ==========================================================================
   CreaBadge — Social Casino
   Stylistic: #8 Женщина-воин (Woman Warrior)
   Palette: Red, Gold, Blue | Fonts: Cormorant Garamond / Lato
   Architecture: BEM with m- prefix
   ========================================================================== */

/* 1. CSS Variables (:root)
   ========================================================================== */
:root {
    /* Colors — Woman Warrior palette */
    --primary: #b8192a;
    --primary-dark: #8e1220;
    --primary-light: #d4374a;
    --secondary: #1e3a6d;
    --secondary-dark: #142952;
    --accent: #d4a843;
    --accent-dark: #b8912e;

    /* Backgrounds */
    --bg-dark: #0d1526;
    --bg-darker: #080e1a;
    --bg-card: #13203a;
    --bg-card-hover: #192848;
    --bg-hero: linear-gradient(135deg, #0d1526 0%, #1e3a6d 50%, #0d1526 100%);

    /* Text */
    --text-primary: #f0e6d3;
    --text-secondary: #b8a88a;
    --text-muted: #7a6e5e;
    --text-white: #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 — Cormorant Garamond (heading) + Lato (body) */
    --font-body: 'Lato', sans-serif;
    --font-heading: 'Cormorant Garamond', serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s 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(184, 25, 42, 0.3);
    --shadow-gold: 0 0 20px rgba(212, 168, 67, 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-weight: 400;
    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;
}

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

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

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

ul, ol {
    list-style-position: inside;
}

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

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

p {
    margin-bottom: 1em;
}

p:last-child {
    margin-bottom: 0;
}

strong {
    font-weight: 700;
}

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

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

/* 5. Header
   ========================================================================== */
.m-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 21, 38, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 168, 67, 0.15);
    height: var(--header-height);
}

.m-header__container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: 100%;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color var(--transition-fast);
}

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

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

.m-header__link {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: var(--space-sm) 0;
    position: relative;
    transition: color var(--transition-fast);
}

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

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

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

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

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

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

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

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

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

/* 6. Mobile Menu
   ========================================================================== */
.m-mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 14, 26, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 999;
    overflow-y: auto;
}

.m-mobile-menu.is-open {
    display: block;
}

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

.m-mobile-menu__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    width: 100%;
}

.m-mobile-menu__link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: var(--space-sm) var(--space-md);
    transition: color var(--transition-fast);
}

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

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

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

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

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

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

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

.btn--sm {
    padding: 8px 20px;
    font-size: 0.8rem;
}

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

.btn--account {
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(212, 168, 67, 0.4);
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn--account:hover {
    border-color: var(--accent);
    background: rgba(212, 168, 67, 0.1);
}

.btn--mobile {
    width: 100%;
    max-width: 280px;
}

.btn__icon {
    font-size: 1.1em;
}

.btn__text {
    font-size: inherit;
}

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

/* 9. Hero Section
   ========================================================================== */
.m-hero {
    position: relative;
    background: var(--bg-hero);
    padding: var(--space-3xl) 0;
    text-align: center;
    overflow: hidden;
}

.m-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(184, 25, 42, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 168, 67, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

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

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

.m-hero__content {
    max-width: 700px;
    margin: 0 auto;
}

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

.m-hero__title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 2px 20px rgba(212, 168, 67, 0.3);
}

.m-hero__title--404 {
    font-size: 8rem;
    color: var(--primary);
    text-shadow: 0 0 40px rgba(184, 25, 42, 0.4);
}

.m-hero__subtitle {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-light);
    margin-bottom: var(--space-lg);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.m-hero__text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
}

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

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

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

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

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

.m-section--benefits {
    background: var(--bg-darker);
    border-top: 1px solid rgba(212, 168, 67, 0.08);
    border-bottom: 1px solid rgba(212, 168, 67, 0.08);
}

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

.m-section--faq {
    background: var(--bg-darker);
    border-top: 1px solid rgba(212, 168, 67, 0.08);
}

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

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

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

.m-section--games {
    padding-top: 0;
    background: var(--bg-dark);
}

.m-section__title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 600;
    text-align: center;
    color: var(--accent);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

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

.m-section__divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: var(--space-3xl) 0;
}

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

.m-benefit-card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 168, 67, 0.12);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.m-benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.m-benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(212, 168, 67, 0.25);
}

.m-benefit-card:hover::before {
    opacity: 1;
}

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

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

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

/* 12. Featured Providers
   ========================================================================== */
.m-featured__provider-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: var(--space-md);
    margin-top: var(--space-xl);
    letter-spacing: 1px;
}

.m-featured__provider-title:first-of-type {
    margin-top: 0;
}

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

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

/* 14. Game Tile (games.js rendering)
   ========================================================================== */
.m-game-tile {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(212, 168, 67, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-base);
}

.m-game-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(212, 168, 67, 0.3);
}

.m-game-tile__image {
    position: relative;
    width: 100%;
    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-base);
}

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

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

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

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

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

.m-game-tile--locked: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(8, 14, 26, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

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

.m-game-tile__lock-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    padding: 0 var(--space-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.m-provider-section__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid rgba(184, 25, 42, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Provider Cards (reviews page) */
.m-provider-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.m-provider-card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 168, 67, 0.12);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    position: relative;
    transition: all var(--transition-base);
}

.m-provider-card:hover {
    border-color: rgba(212, 168, 67, 0.3);
    box-shadow: var(--shadow-md);
}

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

.m-provider-card__name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: var(--space-xs);
}

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

.m-provider-card__score {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

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

.m-provider-card__stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: var(--bg-darker);
    border-radius: var(--radius-sm);
}

.m-provider-card__stat {
    text-align: center;
}

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

.m-provider-card__stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

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

.m-filter__btn {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 20px;
    border: 1px solid rgba(212, 168, 67, 0.2);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

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

/* 18. Unlock Banner
   ========================================================================== */
.m-unlock-banner {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    background: linear-gradient(135deg, rgba(184, 25, 42, 0.15), rgba(212, 168, 67, 0.1));
    border: 1px solid rgba(184, 25, 42, 0.3);
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-xl);
}

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

.m-unlock-banner__text {
    flex: 1;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
}

/* 19. FAQ
   ========================================================================== */
.m-faq {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.m-faq__item {
    background: var(--bg-card);
    border: 1px solid rgba(212, 168, 67, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-base);
}

.m-faq__item.is-open {
    border-color: rgba(184, 25, 42, 0.4);
}

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

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

.m-faq__icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--accent);
    transition: transform var(--transition-base);
    flex-shrink: 0;
    margin-left: var(--space-md);
}

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

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

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

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

/* 20. Disclaimer
   ========================================================================== */
.m-disclaimer {
    background: rgba(184, 25, 42, 0.08);
    border: 1px solid rgba(184, 25, 42, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

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

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

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

/* 21. Footer
   ========================================================================== */
.m-footer {
    background: var(--bg-darker);
    border-top: 1px solid rgba(212, 168, 67, 0.1);
    padding: var(--space-3xl) 0 var(--space-xl);
}

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

.m-footer__content {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3xl);
    margin-bottom: var(--space-2xl);
}

.m-footer__brand {
    max-width: 360px;
}

.m-footer__logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: var(--space-md);
}

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

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

.m-footer__links {
    display: flex;
    gap: var(--space-3xl);
}

.m-footer__group {
    min-width: 140px;
}

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

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

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

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

/* Compliance */
.m-footer__compliance {
    padding: var(--space-xl) 0;
    border-top: 1px solid rgba(212, 168, 67, 0.08);
    border-bottom: 1px solid rgba(212, 168, 67, 0.08);
    margin-bottom: var(--space-xl);
}

.m-footer__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 var(--transition-fast);
    filter: grayscale(20%);
}

.m-footer__compliance-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

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

.m-footer__age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--primary);
}

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

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

/* 22. Modals
   ========================================================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.modal__content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(212, 168, 67, 0.2);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    box-shadow: var(--shadow-lg);
}

.modal__content--game {
    max-width: 900px;
}

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

.modal__content--bonus {
    max-width: 400px;
}

.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: rgba(184, 25, 42, 0.2);
    border: 1px solid rgba(184, 25, 42, 0.3);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 2;
    line-height: 1;
}

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

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

.modal__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
}

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

.modal__body p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.modal__body--game {
    padding: 0;
}

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

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

.modal__iframe {
    width: 100%;
    height: 70vh;
    border: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    background: #000;
}

/* 23. Cookie Consent
   ========================================================================== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1500;
    background: var(--bg-card);
    border-top: 1px solid rgba(212, 168, 67, 0.2);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

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

.cookie-consent__text {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

/* 24. Auth Forms
   ========================================================================== */
.m-auth-tabs {
    display: flex;
    border-bottom: 1px solid rgba(212, 168, 67, 0.15);
}

.m-auth-tabs__btn {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

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

.m-auth-tabs__btn.is-active {
    color: var(--accent);
}

.m-auth-tabs__btn.is-active::after {
    opacity: 1;
}

.m-auth-form {
    padding: var(--space-xl);
}

.m-auth-form__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: var(--space-xs);
}

.m-auth-form__subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--space-xl);
}

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

.m-auth-form__label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.m-auth-form__input {
    width: 100%;
    padding: 12px var(--space-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-darker);
    border: 1px solid rgba(212, 168, 67, 0.15);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    outline: none;
}

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

.m-auth-form__input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.1);
}

.m-auth-form__error {
    background: rgba(184, 25, 42, 0.1);
    border: 1px solid rgba(184, 25, 42, 0.3);
    color: var(--primary-light);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: var(--space-md);
}

.m-auth-form__terms {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: var(--space-md);
}

.m-auth-form__terms a {
    color: var(--accent);
}

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

.m-account-card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 168, 67, 0.12);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
}

.m-account-card__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}

.m-account-card__text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--space-lg);
}

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

/* 26. Profile
   ========================================================================== */
.m-profile {
    max-width: 700px;
    margin: 0 auto;
}

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

.m-profile__badge {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: 3px solid var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: var(--shadow-gold);
}

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

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

/* 27. XP Progress
   ========================================================================== */
.m-profile__xp {
    background: var(--bg-card);
    border: 1px solid rgba(212, 168, 67, 0.12);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.m-profile__xp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

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

.m-progress-bar__fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

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

.m-stat-card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 168, 67, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
}

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

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

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

/* Daily Bonus */
.m-daily-bonus {
    padding: var(--space-lg);
}

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

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

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

.m-daily-bonus__amount {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-xl);
    text-shadow: 0 0 20px rgba(184, 25, 42, 0.4);
}

/* 29. Content Pages
   ========================================================================== */
.m-page-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: var(--space-xl);
    text-align: center;
    line-height: 1.3;
}

.m-page-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: calc(-1 * var(--space-md));
    margin-bottom: var(--space-2xl);
}

.m-content-card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 168, 67, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-2xl);
}

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

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

.m-content-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-white);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.m-content-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.m-content-card ul,
.m-content-card ol {
    color: var(--text-secondary);
    margin-bottom: 1em;
    padding-left: var(--space-lg);
    list-style-position: outside;
}

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

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

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

.m-content-card__intro {
    font-size: 1.1rem;
    color: var(--text-primary) !important;
    font-style: italic;
    border-left: 3px solid var(--accent);
    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 rgba(212, 168, 67, 0.1);
}

/* Breadcrumb */
.m-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    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(--accent);
}

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

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

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

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

.m-review-hero__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

/* Review Games */
.m-review-games {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(212, 168, 67, 0.1);
}

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

.m-info-card {
    background: var(--bg-darker);
    border: 1px solid rgba(212, 168, 67, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
}

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

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

.m-info-card__text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.article-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(212, 168, 67, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

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

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

.article-card__category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-light);
    background: rgba(184, 25, 42, 0.15);
    border: 1px solid rgba(184, 25, 42, 0.3);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
}

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

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

.article-card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.article-card__link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

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

.card {
    position: relative;
}

.offer-card {
    position: relative;
}

/* Game card (featured games on home page) */
.game-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(212, 168, 67, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-base);
}

.game-card:hover {
    border-color: rgba(212, 168, 67, 0.3);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.game-card__image {
    position: relative;
    width: 100%;
    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-base);
}

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

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

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

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

.game-card--small {
    border-radius: var(--radius-sm);
}

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

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

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

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

::-webkit-scrollbar-thumb {
    background: rgba(212, 168, 67, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 168, 67, 0.5);
}

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

/* Max 992px */
@media (max-width: 992px) {
    .m-header__nav {
        display: none;
    }

    .m-header__burger {
        display: flex;
    }

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

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

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

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

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

    .m-footer__content {
        flex-direction: column;
        gap: var(--space-xl);
    }

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

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

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

/* Max 768px */
@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.5rem; }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    .m-review-hero__meta span:nth-child(even) {
        display: none;
    }

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

    .m-filter__btn {
        padding: 8px 14px;
        font-size: 0.75rem;
    }

    .modal__content--game {
        max-width: 100%;
    }

    .modal__iframe {
        height: 50vh;
    }
}

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

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

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

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

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

    .modal__actions {
        flex-direction: column;
    }

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