/* ============================================
   SeaSnaps - Cosmic Guardian Social Casino
   Stylistic: #5 Космический страж
   Fonts: Space Grotesk / Inter
   ============================================ */

/* 1. CSS Variables (:root) */
:root {
    /* Colors - Cosmic Guardian Palette */
    --primary: #00e676;
    --primary-dark: #00c853;
    --primary-glow: rgba(0, 230, 118, 0.3);
    --secondary: #69f0ae;
    --accent: #b9f6ca;
    
    /* Backgrounds */
    --bg-dark: #0a1628;
    --bg-darker: #060f1d;
    --bg-card: #0f2035;
    --bg-card-hover: #142a42;
    --bg-section: #0c1a2e;
    
    /* Text */
    --text-primary: #e8f5e9;
    --text-secondary: #a5d6a7;
    --text-muted: #66bb6a;
    --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 */
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 230, 118, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 230, 118, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 230, 118, 0.16);
    --shadow-glow: 0 0 20px rgba(0, 230, 118, 0.2);
}

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

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

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

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

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

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

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: var(--font-body);
    border: none;
    background: none;
}

input, textarea, select {
    font-family: var(--font-body);
    font-size: 16px;
}

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

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

@media (max-width: 768px) {
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

/* 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;
    height: var(--header-height);
    background: rgba(10, 22, 40, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 230, 118, 0.1);
    z-index: 1000;
    transition: background var(--transition-normal);
}

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

.m-header__logo {
    font-family: var(--font-heading);
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    text-shadow: 0 0 20px rgba(0, 230, 118, 0.4);
    transition: text-shadow var(--transition-normal);
}

.m-header__logo:hover {
    color: var(--primary);
    text-shadow: 0 0 30px rgba(0, 230, 118, 0.6);
}

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

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

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

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

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

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

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

.m-header__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

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

@media (max-width: 992px) {
    .m-header__nav {
        display: none;
    }
    
    .m-header__burger {
        display: flex;
    }
    
    .m-header__actions .m-btn {
        display: none;
    }
}

/* 6. Mobile Menu */
.m-mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 15, 29, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    overflow-y: auto;
}

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

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

.m-mobile-menu__link {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(0, 230, 118, 0.08);
    transition: color var(--transition-fast);
}

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

.m-mobile-menu__btn {
    margin-top: var(--space-lg);
    width: 100%;
}

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

.m-btn--primary {
    background: var(--primary);
    color: var(--bg-darker);
    box-shadow: 0 0 16px rgba(0, 230, 118, 0.25);
}

.m-btn--primary:hover {
    background: var(--primary-dark);
    color: var(--bg-darker);
    box-shadow: 0 0 24px rgba(0, 230, 118, 0.4);
    transform: translateY(-1px);
}

.m-btn--secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid rgba(0, 230, 118, 0.3);
}

.m-btn--secondary:hover {
    background: rgba(0, 230, 118, 0.08);
    border-color: var(--primary);
    color: var(--primary);
}

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

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

/* 9. Hero Section */
.m-hero {
    position: relative;
    padding: var(--space-3xl) 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(0, 230, 118, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(0, 200, 83, 0.06) 0%, transparent 50%),
                var(--bg-darker);
    overflow: hidden;
    text-align: center;
}

.m-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300e676' fill-opacity='0.03'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.m-hero__content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.m-hero__title {
    font-family: var(--font-heading);
    font-size: 3.25rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: var(--space-md);
    letter-spacing: -1px;
    text-shadow: 0 0 40px rgba(0, 230, 118, 0.15);
}

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

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

.m-hero__cta {
    font-size: 1.0625rem;
    padding: 16px 40px;
    letter-spacing: 1px;
}

/* Hero Small */
.m-hero--small {
    padding: var(--space-2xl) 0;
    text-align: left;
}

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

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

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

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

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

.m-hero__title--404 {
    font-size: 8rem;
    color: var(--primary);
    text-shadow: 0 0 60px rgba(0, 230, 118, 0.3);
    line-height: 1;
    margin-bottom: var(--space-md);
}

@media (max-width: 768px) {
    .m-hero {
        padding: var(--space-2xl) 0;
    }
    
    .m-hero__title {
        font-size: 2.25rem;
    }
    
    .m-hero__subtitle {
        font-size: 1.125rem;
    }
    
    .m-hero__inner {
        flex-direction: column;
        text-align: center;
    }
    
    .m-hero--small {
        text-align: center;
    }
    
    .m-hero__title--404 {
        font-size: 5rem;
    }
}

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

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

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

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

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

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

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

.m-section--games {
    padding-top: var(--space-lg);
}

.m-section--unlock {
    padding: 0;
}

.m-section__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
    text-align: center;
    margin-bottom: var(--space-md);
}

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

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

.m-section__divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 230, 118, 0.2), transparent);
    margin: var(--space-3xl) 0 var(--space-2xl);
}

.m-page-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: var(--space-md);
    text-align: center;
}

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

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

.m-benefit-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 230, 118, 0.08);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-normal);
}

.m-benefit-card:hover {
    border-color: rgba(0, 230, 118, 0.2);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.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.125rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: var(--space-sm);
}

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

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

@media (max-width: 480px) {
    .m-benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* 12. Featured Providers */
.m-featured__provider-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary);
    text-align: center;
    margin-bottom: var(--space-lg);
    margin-top: var(--space-xl);
}

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

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

/* 14. Game Tile / Game Card */
.m-game-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(0, 230, 118, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.m-game-card:hover {
    border-color: rgba(0, 230, 118, 0.25);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

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

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

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

.m-game-card__info {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

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

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

/* Small Game Card (for reviews) */
.m-game-card--small {
    cursor: default;
}

.m-game-card--small:hover {
    transform: none;
}

.m-game-card--small .m-game-card__image {
    aspect-ratio: 4/3;
}

.m-game-card--small .m-game-card__title {
    font-size: 0.75rem;
    padding: var(--space-sm);
    text-align: center;
}

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

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

/* Game Tile (games.js rendered) */
.m-game-tile {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(0, 230, 118, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.m-game-tile:hover {
    border-color: rgba(0, 230, 118, 0.25);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

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

.m-game-tile__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition-slow);
}

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

.m-game-tile__info {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

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

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

/* 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(6, 15, 29, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    z-index: 2;
}

.m-game-tile__lock-icon {
    font-size: 2rem;
}

.m-game-tile__lock-text {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    padding: 0 var(--space-sm);
}

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

.m-provider-section__title {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(0, 230, 118, 0.15);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

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

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

.m-filter-btn {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid rgba(0, 230, 118, 0.1);
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.m-filter-btn:hover {
    border-color: rgba(0, 230, 118, 0.3);
    color: var(--primary);
}

.m-filter-btn.is-active {
    background: var(--primary);
    color: var(--bg-darker);
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.25);
}

@media (max-width: 768px) {
    .m-filter-bar {
        gap: var(--space-xs);
    }
    
    .m-filter-btn {
        font-size: 0.8125rem;
        padding: 8px 14px;
    }
}

/* 18. Unlock Banner */
.m-unlock-banner {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.08) 0%, rgba(0, 200, 83, 0.04) 100%);
    border: 1px solid rgba(0, 230, 118, 0.15);
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-xl);
    margin-bottom: var(--space-xl);
}

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

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

.m-unlock-banner__text strong {
    color: var(--primary);
}

@media (max-width: 768px) {
    .m-unlock-banner {
        flex-direction: column;
        text-align: center;
        padding: var(--space-lg);
    }
}

/* 19. FAQ */
.m-faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.m-faq-item {
    background: var(--bg-card);
    border: 1px solid rgba(0, 230, 118, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-normal);
}

.m-faq-item.is-open {
    border-color: rgba(0, 230, 118, 0.2);
}

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

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

.m-faq-item__icon {
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
    transition: transform var(--transition-normal);
    font-weight: 300;
}

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

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

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

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

/* 20. Disclaimer */
.m-disclaimer {
    background: var(--bg-card);
    border: 1px solid rgba(0, 230, 118, 0.08);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.m-disclaimer p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.m-disclaimer strong {
    color: var(--primary);
}

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

/* 21. Footer */
.m-footer {
    background: var(--bg-darker);
    border-top: 1px solid rgba(0, 230, 118, 0.08);
    padding-top: var(--space-3xl);
}

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

.m-footer__logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: inline-block;
    margin-bottom: var(--space-md);
    text-shadow: 0 0 20px rgba(0, 230, 118, 0.3);
}

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

.m-footer__desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

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

.m-footer__section h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: var(--space-md);
}

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

.m-footer__section li a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

.m-footer__bottom {
    border-top: 1px solid rgba(0, 230, 118, 0.08);
    padding: var(--space-xl) 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

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

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

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

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

.m-footer__age {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
}

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

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

@media (max-width: 768px) {
    .m-footer__content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .m-footer__links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 22. Modals */
.m-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    z-index: 2000;
    transition: all var(--transition-normal);
    padding: var(--space-lg);
}

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

.m-modal__content {
    background: var(--bg-card);
    border: 1px solid rgba(0, 230, 118, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    max-width: 480px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.m-modal__content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    color: var(--text-white);
}

.m-modal__content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

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

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

.m-modal__close:hover {
    color: var(--primary);
    background: rgba(0, 230, 118, 0.1);
}

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

.m-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-darker);
    border-bottom: 1px solid rgba(0, 230, 118, 0.1);
}

.m-modal__title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-white);
}

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

.m-modal__iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.m-modal__header .m-modal__close {
    position: static;
    flex-shrink: 0;
}

/* Bonus Modal */
.m-modal--bonus .m-modal__content--bonus {
    max-width: 400px;
}

.m-bonus-content {
    text-align: center;
}

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

.m-bonus-content__xp {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: var(--space-lg) 0;
    text-shadow: 0 0 20px rgba(0, 230, 118, 0.4);
}

/* Auth Modal */
.m-modal--auth .m-modal__content--auth {
    max-width: 420px;
    text-align: left;
    padding: var(--space-2xl);
}

/* 23. Cookie Consent */
.m-cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid rgba(0, 230, 118, 0.15);
    padding: var(--space-lg);
    z-index: 1500;
    transform: translateY(100%);
    transition: transform var(--transition-normal);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
}

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

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

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

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

@media (max-width: 768px) {
    .m-cookie-consent__content {
        flex-direction: column;
        text-align: center;
    }
}

/* 24. Auth Forms */
.m-auth-tabs {
    display: flex;
    margin-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(0, 230, 118, 0.1);
}

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

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

.m-auth-tab:hover {
    color: var(--text-secondary);
}

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

.m-form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.m-form-group label {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.m-form-group input {
    padding: 12px var(--space-md);
    background: var(--bg-darker);
    border: 1px solid rgba(0, 230, 118, 0.12);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: border-color var(--transition-fast);
    outline: none;
}

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

.m-form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.1);
}

.m-auth-message {
    font-size: 0.875rem;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    display: none;
    margin-top: var(--space-sm);
}

.m-auth-message.is-error {
    display: block;
    color: #ef5350;
    background: rgba(239, 83, 80, 0.1);
    border: 1px solid rgba(239, 83, 80, 0.2);
}

.m-auth-message.is-success {
    display: block;
    color: var(--primary);
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.2);
}

/* 25. Account Page */
.m-account-forms {
    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(0, 230, 118, 0.08);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
}

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

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

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

@media (max-width: 768px) {
    .m-account-forms {
        grid-template-columns: 1fr;
    }
}

/* 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-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(0, 230, 118, 0.1);
}

.m-profile__badge {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-darker);
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 0 24px rgba(0, 230, 118, 0.3);
}

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

.m-profile__email {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

/* 27. XP Progress */
.m-profile__xp {
    background: var(--bg-card);
    border: 1px solid rgba(0, 230, 118, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
}

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

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

.m-progress-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 6px;
    transition: width 0.8s ease;
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.4);
}

/* 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(0, 230, 118, 0.08);
    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: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

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

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

@media (max-width: 480px) {
    .m-profile__stats {
        grid-template-columns: 1fr;
    }
    
    .m-profile__header {
        flex-direction: column;
        text-align: center;
    }
    
    .m-profile__actions {
        flex-direction: column;
    }
}

/* 29. Content Pages */
.m-content-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 230, 118, 0.08);
    border-radius: var(--radius-md);
    padding: var(--space-2xl);
}

.m-content-card h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-top: var(--space-2xl);
    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.25rem;
    font-weight: 600;
    color: var(--secondary);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
}

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

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

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

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

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

.m-content-card li strong {
    color: var(--text-white);
}

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

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

.m-content-card em {
    color: var(--text-muted);
}

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

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

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

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

.m-breadcrumb span:last-child {
    color: var(--text-secondary);
}

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

.m-fact-card {
    background: var(--bg-darker);
    border: 1px solid rgba(0, 230, 118, 0.08);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
}

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

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

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

.m-help-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.m-help-link {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    background: var(--bg-darker);
    border: 1px solid rgba(0, 230, 118, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-decoration: none !important;
    transition: all var(--transition-normal);
}

.m-help-link:hover {
    border-color: rgba(0, 230, 118, 0.25);
    box-shadow: var(--shadow-glow);
}

.m-help-link strong {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: var(--primary);
}

.m-help-link span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.m-help-link span:last-child {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

@media (max-width: 768px) {
    .m-facts-grid {
        grid-template-columns: 1fr;
    }
    
    .m-content-card {
        padding: var(--space-lg);
    }
}

/* 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.125rem;
    font-weight: 600;
    color: var(--text-secondary);
}

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

.m-review-games {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(0, 230, 118, 0.1);
}

.m-review-games h3 {
    margin-top: 0;
}

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

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

.m-articles-grid--reviews {
    margin-top: var(--space-xl);
}

.m-article-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(0, 230, 118, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.m-article-card:hover {
    border-color: rgba(0, 230, 118, 0.25);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

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

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

.m-article-card__category {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
    background: rgba(0, 230, 118, 0.08);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
}

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

.m-article-card__excerpt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.m-article-card__meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

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

@media (max-width: 480px) {
    .m-articles-grid {
        grid-template-columns: 1fr;
    }
}

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

.m-review-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(0, 230, 118, 0.08);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    transition: all var(--transition-normal);
}

.m-review-card:hover {
    border-color: rgba(0, 230, 118, 0.2);
    box-shadow: var(--shadow-glow);
}

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

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

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

.m-review-card__text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

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

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

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

.m-review-card__stat-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 992px) {
    .m-reviews-grid {
        grid-template-columns: 1fr;
    }
}

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

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

/* 32. Utility Classes */
.stars {
    color: #ffc107;
}

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

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

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

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

::-webkit-scrollbar-thumb {
    background: rgba(0, 230, 118, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 230, 118, 0.35);
}

/* Selection */
::selection {
    background: rgba(0, 230, 118, 0.25);
    color: var(--text-white);
}
.article-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}
