/**
 * SiteValor - Tёмный минимал стилистика
 * CSS Variables, Reset, Layout Components
 */

/* ==========================================
   CSS VARIABLES (Тёмный минимал палитра)
   ========================================== */
:root {
    /* Colors - Dark Minimal Theme */
    --color-bg: #121212;
    --color-bg-surface: #1a1a1a;
    --color-bg-darker: #0a0a0a;
    --color-border: #333;
    --color-border-thin: #2a2a2a;
    --color-text-primary: #ffffff;
    --color-text-secondary: #b3b3b3;
    --color-text-muted: #666666;
    --color-accent: #bb86fc;
    --color-accent-hover: #a370fc;
    --color-accent-light: rgba(187, 134, 252, 0.1);
    
    /* Background Aliases */
    --bg-primary: var(--color-bg);
    --bg-surface: var(--color-bg-surface);
    --bg-darker: var(--color-bg-darker);
    --border-color: var(--color-border);
    --border-thin: var(--color-border-thin);
    --text-primary: var(--color-text-primary);
    --text-secondary: var(--color-text-secondary);
    --text-muted: var(--color-text-muted);
    --accent: var(--color-accent);
    --accent-hover: var(--color-accent-hover);
    
    /* Typography - Onest/Geist Mono */
    --font-primary: 'Onest', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Geist Mono', 'Monaco', 'Menlo', monospace;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-xxl: 3rem;
    
    /* Borders & Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    
    /* Layout */
    --header-height: 70px;
    --container-width: 1200px;
    --container-narrow: 800px;
    
    /* Z-index */
    --z-header: 1000;
    --z-mobile-menu: 1100;
    --z-modal: 2000;
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    line-height: 1.6;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-normal);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-semibold);
    line-height: 1.3;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

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

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

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

strong {
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
}

ul, ol {
    margin-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

li {
    margin-bottom: var(--space-xs);
    color: var(--text-secondary);
}

/* ==========================================
   LAYOUT CONTAINERS
   ========================================== */
.m-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.m-container--narrow {
    max-width: var(--container-narrow);
}

.m-main {
    min-height: calc(100vh - var(--header-height));
    padding-top: var(--header-height);
}

/* ==========================================
   BUTTONS (Тёмный минимал стиль)
   ========================================== */
.m-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-primary);
    font-weight: var(--font-weight-medium);
    font-size: 0.875rem;
    text-decoration: none;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    color: var(--text-primary);
    min-height: 44px;
}

.m-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

.m-btn--primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-primary);
}

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

.m-btn--secondary {
    background: var(--bg-surface);
    border-color: var(--border-color);
}

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

/* ==========================================
   HEADER
   ========================================== */
.m-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border-thin);
    z-index: var(--z-header);
    backdrop-filter: blur(10px);
}

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

.m-header__logo {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -0.02em;
}

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

.m-header__link {
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    padding: var(--space-xs) 0;
    border-bottom: 2px solid transparent;
}

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

.m-header__link.is-active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

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

.m-header__account-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: var(--space-sm) var(--space-md);
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

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

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

.m-header__burger span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

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

/* ==========================================
   MOBILE MENU
   ========================================== */
.m-mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-darker);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: var(--z-mobile-menu);
    display: none;
}

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

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

.m-mobile-menu__link {
    padding: var(--space-md);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    border-bottom: 1px solid var(--border-thin);
}

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

.m-mobile-menu__divider {
    height: 1px;
    background: var(--border-thin);
    margin: var(--space-md) 0;
}

.m-mobile-menu__account {
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
}

/* ==========================================
   HERO SECTIONS
   ========================================== */
.m-hero {
    padding: var(--space-xxl) 0;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-surface) 100%);
    border-bottom: 1px solid var(--border-thin);
}

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

.m-hero--404 {
    text-align: center;
    padding: 4rem 0;
}

.m-hero__container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
    text-align: center;
}

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

.m-hero__title {
    font-size: 3rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    font-family: var(--font-mono);
}

.m-hero__title--404 {
    font-size: 6rem;
    color: var(--accent);
}

.m-hero__subtitle {
    font-size: 1.25rem;
    color: var(--accent);
    margin-bottom: var(--space-lg);
    font-weight: var(--font-weight-medium);
}

.m-hero__text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    line-height: 1.7;
}

.m-hero__cta {
    font-size: 1rem;
    padding: var(--space-md) var(--space-xl);
}

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

/* ==========================================
   SECTIONS
   ========================================== */
.m-section {
    padding: var(--space-xxl) 0;
}

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

.m-section--benefits {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-thin);
    border-bottom: 1px solid var(--border-thin);
}

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

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

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

.m-section--unlock {
    background: linear-gradient(90deg, var(--accent-light), transparent);
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--border-thin);
    border-bottom: 1px solid var(--border-thin);
}

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

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

.m-section__title {
    font-size: 2.25rem;
    font-weight: var(--font-weight-bold);
    text-align: center;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

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

.m-section__divider {
    height: 1px;
    background: var(--border-thin);
    margin: var(--space-xxl) 0;
}

/* ==========================================
   PAGE TITLES
   ========================================== */
.m-page-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

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

/* ==========================================
   GRIDS
   ========================================== */
.m-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.m-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-lg);
}

.m-games-grid--featured {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xxl);
}

.m-games-grid--review {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}

.m-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.m-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-lg);
}

/* ==========================================
   CARDS (Темный минимал с тонкими линиями)
   ========================================== */
.m-benefit-card {
    background: var(--bg-darker);
    border: 1px solid var(--border-thin);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.m-benefit-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

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

.m-benefit-card__title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

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

/* Game Cards */
.m-game-card {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-thin);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.m-game-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.m-game-card--featured {
    background: var(--bg-darker);
}

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

.m-game-card__image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.m-game-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

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

.m-game-card__title {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    display: block;
    margin-bottom: var(--space-xs);
}

.m-game-card__provider {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Article Cards */
.m-article-card {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-thin);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.m-article-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

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

.m-article-card__category {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
    display: block;
}

.m-article-card__title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.m-article-card__excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Review Cards */
.m-review-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-thin);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.m-review-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.m-review-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
}

.m-review-card__title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.m-review-card__rating {
    text-align: right;
}

.m-review-card__text {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.m-review-card__stats {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.stars {
    color: #ffc107;
    font-size: 0.875rem;
    margin-bottom: var(--space-xs);
}

/* ==========================================
   GAME TILES (for /games page)
   ========================================== */
.m-provider-section {
    margin-bottom: var(--space-xxl);
}

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

.m-provider-section__title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.m-provider-section__count {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.m-game-tile {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-thin);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.m-game-tile:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.m-game-tile--locked {
    opacity: 0.7;
}

.m-game-tile--locked:hover {
    border-color: var(--text-muted);
}

.m-game-tile__image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.m-game-tile__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.m-game-tile__lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 18, 18, 0.9);
    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.875rem;
    color: var(--text-secondary);
    text-align: center;
}

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

.m-game-tile__title {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    display: block;
    margin-bottom: var(--space-xs);
    font-size: 0.9375rem;
}

.m-game-tile__provider {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

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

.m-filter__btn {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: var(--space-sm) var(--space-md);
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

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

/* ==========================================
   UNLOCK BANNER
   ========================================== */
.m-unlock-banner {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-thin);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

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

.m-unlock-banner__text {
    flex: 1;
    color: var(--text-secondary);
}

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

.m-faq__item {
    border: 1px solid var(--border-thin);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    overflow: hidden;
    background: var(--bg-surface);
}

.m-faq__question {
    width: 100%;
    background: transparent;
    border: none;
    padding: var(--space-lg);
    text-align: left;
    font-size: 1.125rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.m-faq__icon {
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

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

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

.m-faq__item.is-open .m-faq__answer {
    max-height: 200px;
}

.m-faq__answer p {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================
   DISCLAIMER
   ========================================== */
.m-disclaimer {
    background: var(--bg-surface);
    border: 1px solid var(--border-thin);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    border-left: 4px solid var(--accent);
}

.m-disclaimer p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================
   MODALS
   ========================================== */
.m-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.m-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
}

.m-modal__content {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.m-modal__content--game {
    max-width: 90vw;
    max-height: 90vh;
    padding: 0;
    background: var(--bg-darker);
}

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

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

.m-modal__game-wrapper {
    width: 100%;
    height: 70vh;
    min-height: 500px;
}

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

/* ==========================================
   AUTH FORMS
   ========================================== */
.m-auth-tabs {
    display: flex;
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-thin);
}

.m-auth-tabs__btn {
    flex: 1;
    background: none;
    border: none;
    padding: var(--space-md) 0;
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

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

.m-auth-form__title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

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

.m-auth-form__group label {
    display: block;
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.m-auth-form__group input {
    width: 100%;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: var(--space-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

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

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

.m-auth-form__hint a {
    color: var(--accent);
    text-decoration: none;
}

.m-auth-form__hint a:hover {
    text-decoration: underline;
}

/* ==========================================
   ACCOUNT PAGE
   ========================================== */
.m-account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xxl);
}

.m-account-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-thin);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
}

.m-account-card__title {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

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

.m-why-register {
    text-align: center;
    margin-top: var(--space-xxl);
}

.m-profile {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-thin);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

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

.m-profile__badge {
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    font-family: var(--font-mono);
}

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

.m-profile__email {
    color: var(--text-muted);
    margin: 0;
}

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

.m-profile__xp-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.m-progress {
    height: 8px;
    background: var(--bg-darker);
    border-radius: 4px;
    overflow: hidden;
}

.m-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    transition: width 0.3s ease;
}

.m-profile__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.m-stat-card {
    text-align: center;
    padding: var(--space-md);
    background: var(--bg-darker);
    border-radius: var(--radius-sm);
}

.m-stat-card__value {
    display: block;
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--accent);
    font-family: var(--font-mono);
}

.m-stat-card__label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

/* ==========================================
   DAILY BONUS MODAL
   ========================================== */
.m-modal__content--bonus {
    text-align: center;
    max-width: 400px;
}

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

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

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

.m-daily-bonus__reward {
    margin-bottom: var(--space-lg);
}

.m-daily-bonus__xp {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--accent);
    font-family: var(--font-mono);
}

/* ==========================================
   CONTENT CARDS (for articles/reviews)
   ========================================== */
.m-content-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-thin);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    line-height: 1.7;
}

.m-content-card h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-thin);
    padding-bottom: var(--space-sm);
}

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

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

.m-content-card ul,
.m-content-card ol {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

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

/* ==========================================
   BREADCRUMBS
   ========================================== */
.m-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.m-breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

.m-breadcrumb a:hover {
    text-decoration: underline;
}

/* ==========================================
   REVIEW HERO
   ========================================== */
.m-review-hero {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding: var(--space-xl);
    background: var(--bg-surface);
    border: 1px solid var(--border-thin);
    border-radius: var(--radius-md);
}

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

.m-review-hero__score {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-left: var(--space-sm);
}

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

/* ==========================================
   CTA BLOCK
   ========================================== */
.m-cta-block {
    text-align: center;
    margin-top: var(--space-xl);
    padding: var(--space-xl);
    background: var(--bg-darker);
    border-radius: var(--radius-md);
}

/* ==========================================
   INFO GRID
   ========================================== */
.m-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.m-info-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-thin);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
}

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

.m-info-card h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

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

/* ==========================================
   TABLES
   ========================================== */
.m-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-lg) 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-thin);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.m-table thead {
    background: var(--bg-darker);
}

.m-table th,
.m-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--border-thin);
}

.m-table th {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.m-table td {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.m-table tr:last-child td {
    border-bottom: none;
}

.m-table td strong {
    color: var(--text-primary);
}

/* ==========================================
   FOOTER
   ========================================== */
.m-footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-thin);
    padding: var(--space-xxl) 0 var(--space-lg);
    margin-top: var(--space-xxl);
}

.m-footer__container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.m-footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

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

.m-footer__logo {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--accent);
    margin-bottom: var(--space-md);
}

.m-footer__description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.m-footer__nav h4,
.m-footer__legal h4,
.m-footer__compliance h4 {
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-md);
    font-size: 1rem;
}

.m-footer__nav a,
.m-footer__legal a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: var(--space-sm);
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.m-footer__nav a:hover,
.m-footer__legal a:hover {
    color: var(--accent);
}

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

.m-footer__badges a {
    display: block;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.m-footer__badges a:hover {
    opacity: 1;
}

.m-footer__badges img {
    height: 32px;
    width: auto;
}

.m-footer__compliance-logo--light-bg {
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
}

.m-footer__age-badge {
    background: var(--accent);
    color: var(--bg-primary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-weight: var(--font-weight-bold);
    font-size: 0.875rem;
}

.m-footer__bottom {
    border-top: 1px solid var(--border-thin);
    padding-top: var(--space-lg);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.m-footer__address {
    margin-top: var(--space-sm);
    font-size: 0.75rem;
}

/* ==========================================
   COOKIE CONSENT
   ========================================== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: var(--space-md);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: var(--z-header);
}

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

.cookie-consent__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-width);
    margin: 0 auto;
    gap: var(--space-md);
}

.cookie-consent p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
    flex: 1;
}

/* ==========================================
   FEATURED PROVIDER TITLES
   ========================================== */
.m-featured__provider-title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: var(--space-xl) 0 var(--space-lg);
    text-align: center;
    border-bottom: 1px solid var(--border-thin);
    padding-bottom: var(--space-sm);
}

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

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
    .m-games-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    
    .m-games-grid--featured {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --space-xxl: 2rem;
        --space-xl: 1.5rem;
    }
    
    .m-header__nav {
        display: none;
    }
    
    .m-header__burger {
        display: flex;
    }
    
    .m-mobile-menu {
        display: block;
    }
    
    .m-hero__container--row {
        flex-direction: column;
        text-align: center;
        gap: var(--space-lg);
    }
    
    .m-hero__title {
        font-size: 2.5rem;
    }
    
    .m-hero__title--404 {
        font-size: 4rem;
    }
    
    .m-section__title {
        font-size: 2rem;
    }
    
    .m-page-title {
        font-size: 2rem;
    }
    
    .m-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .m-games-grid--featured {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .m-benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .m-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .m-reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .m-account-grid {
        grid-template-columns: 1fr;
    }
    
    .m-filter {
        gap: var(--space-xs);
    }
    
    .m-filter__btn {
        font-size: 0.8125rem;
        padding: var(--space-xs) var(--space-sm);
    }
    
    .m-unlock-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .m-footer__content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .m-footer__badges {
        justify-content: center;
    }
    
    .cookie-consent__content {
        flex-direction: column;
        text-align: center;
    }
    
    .m-review-hero__meta {
        gap: var(--space-md);
    }
    
    .m-table {
        font-size: 0.8125rem;
    }
    
    .m-table th,
    .m-table td {
        padding: var(--space-sm);
    }
    
    .m-modal__content {
        width: 95%;
        padding: var(--space-lg);
    }
    
    .m-modal__content--game {
        width: 95vw;
        height: 95vh;
    }
    
    .m-modal__game-wrapper {
        height: 60vh;
    }
    
    .m-profile__stats {
        grid-template-columns: 1fr;
    }
    
    .m-profile__actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .m-games-grid {
        grid-template-columns: 1fr;
    }
    
    .m-games-grid--featured {
        grid-template-columns: 1fr;
    }
    
    .m-hero__title {
        font-size: 2rem;
    }
    
    .m-section__title {
        font-size: 1.75rem;
    }
    
    .m-page-title {
        font-size: 1.75rem;
    }
    
    .m-info-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.is-active {
    /* Used for navigation and filter states */
}

.is-open {
    /* Used for mobile menu and dropdowns */
}

.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    .m-header,
    .m-footer,
    .m-mobile-menu,
    .cookie-consent,
    .m-modal {
        display: none !important;
    }
    
    .m-main {
        padding-top: 0;
    }
    
    body {
        background: white;
        color: black;
    }
}
.article-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}
