/* ============================================
   1. CSS Variables (:root)
   ============================================ */
:root {
    /* Colors - Soft UI Palette */
    --primary: #6c63ff;
    --primary-dark: #5a52d5;
    --primary-light: #8b85ff;
    --secondary: #e86c8d;
    --accent: #43b89c;

    /* Backgrounds - Soft UI */
    --bg-dark: #e0e5ec;
    --bg-darker: #d1d9e6;
    --bg-card: #e0e5ec;
    --bg-input: #e0e5ec;
    --bg-hero: #dce2e9;

    /* Soft UI Shadows */
    --shadow-light: -6px -6px 14px rgba(255, 255, 255, 0.7);
    --shadow-dark: 6px 6px 14px rgba(163, 177, 198, 0.6);
    --shadow-light-sm: -3px -3px 7px rgba(255, 255, 255, 0.7);
    --shadow-dark-sm: 3px 3px 7px rgba(163, 177, 198, 0.6);
    --shadow-inset-light: inset -3px -3px 7px rgba(255, 255, 255, 0.7);
    --shadow-inset-dark: inset 3px 3px 7px rgba(163, 177, 198, 0.6);

    /* Text */
    --text-primary: #2d3436;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-light: #a0aec0;

    /* 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;
    --radius-xl: 24px;
    --radius-full: 50px;

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

    /* Fonts - Soft UI: Lexend + Red Hat Display */
    --font-body: 'Lexend', sans-serif;
    --font-heading: 'Red Hat Display', sans-serif;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* ============================================
   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);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

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

ul, ol {
    list-style: none;
}

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

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

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

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

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

strong {
    font-weight: 600;
}

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

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

/* ============================================
   5. Header
   ============================================ */
.m-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-dark);
    box-shadow: var(--shadow-light), var(--shadow-dark);
    z-index: 1000;
    transition: background var(--transition-base);
}

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

.m-header__brand {
    flex-shrink: 0;
}

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

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

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

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

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

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

.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__menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    gap: 5px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    box-shadow: var(--shadow-light-sm), var(--shadow-dark-sm);
    transition: box-shadow var(--transition-fast);
}

.m-header__menu-toggle:active {
    box-shadow: var(--shadow-inset-light), var(--shadow-inset-dark);
}

.m-header__menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-base);
}

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

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

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

/* ============================================
   6. Mobile Menu
   ============================================ */
.m-header__mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-dark);
    z-index: 999;
    padding: var(--space-2xl) var(--space-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

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

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

.m-header__mobile-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    box-shadow: var(--shadow-light-sm), var(--shadow-dark-sm);
    transition: all var(--transition-fast);
}

.m-header__mobile-link:hover,
.m-header__mobile-link.is-active {
    color: var(--primary);
    box-shadow: var(--shadow-inset-light), var(--shadow-inset-dark);
}

/* ============================================
   7. Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn--primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 4px 4px 10px rgba(108, 99, 255, 0.3), -2px -2px 6px rgba(255, 255, 255, 0.5);
}

.btn--primary:hover {
    background: var(--primary-dark);
    color: #fff;
    box-shadow: 6px 6px 14px rgba(108, 99, 255, 0.4), -3px -3px 8px rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.btn--primary:active {
    transform: translateY(0);
    box-shadow: inset 2px 2px 5px rgba(90, 82, 213, 0.3), inset -2px -2px 5px rgba(139, 133, 255, 0.2);
}

.btn--secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: var(--shadow-light-sm), var(--shadow-dark-sm);
}

.btn--secondary:hover {
    color: var(--primary);
    box-shadow: var(--shadow-light), var(--shadow-dark);
    transform: translateY(-1px);
}

.btn--secondary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-inset-light), var(--shadow-inset-dark);
}

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

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

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

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

.m-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(108, 99, 255, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

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

.m-hero__container--row {
    max-width: 1200px;
    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-weight: 900;
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    letter-spacing: -1px;
}

.m-hero__title--404 {
    font-size: 8rem;
    color: var(--primary);
    line-height: 1;
    text-shadow: 4px 4px 0 var(--bg-darker);
}

.m-hero__subtitle {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.375rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

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

.m-hero__container--row .m-hero__text {
    margin-left: 0;
    margin-right: 0;
}

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

.m-hero--404 {
    padding: var(--space-3xl) var(--space-lg);
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: 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--alt {
    background: var(--bg-darker);
}

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

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

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

.m-section__title--spaced {
    margin-top: var(--space-3xl);
}

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

.m-section__provider-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

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

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

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

.benefit-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow-light), var(--shadow-dark);
    transition: all var(--transition-base);
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: -8px -8px 18px rgba(255, 255, 255, 0.8), 8px 8px 18px rgba(163, 177, 198, 0.7);
}

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

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

.benefit-card--small .benefit-card__icon {
    font-size: 2rem;
}

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

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

/* ============================================
   12. Featured Providers
   ============================================ */
/* provider section styles handled in games grid */

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

/* games.php uses these classes */
.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

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

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

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

/* ============================================
   14. Game Tile / Card
   ============================================ */
.game-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-light), var(--shadow-dark);
    cursor: pointer;
    transition: all var(--transition-base);
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: -8px -8px 18px rgba(255, 255, 255, 0.8), 8px 8px 18px rgba(163, 177, 198, 0.7);
}

.game-card__image {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
}

.game-card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

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

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

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

.game-card--small {
    cursor: default;
}

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

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

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

/* ============================================
   15. Game Tile Locked
   ============================================ */
.m-game-tile {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-light), var(--shadow-dark);
    cursor: pointer;
    transition: all var(--transition-base);
}

.m-game-tile:hover {
    transform: translateY(-4px);
    box-shadow: -8px -8px 18px rgba(255, 255, 255, 0.8), 8px 8px 18px rgba(163, 177, 198, 0.7);
}

.m-game-tile__image {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
}

.m-game-tile__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.m-game-tile:hover .m-game-tile__image img {
    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-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

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

.m-game-tile--locked:hover {
    transform: none;
    cursor: default;
}

.m-game-tile__lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(45, 52, 54, 0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border-radius: var(--radius-md);
}

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

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

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

.provider-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--bg-darker);
}

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

.provider-section__count {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-darker);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-inset-light), var(--shadow-inset-dark);
}

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

.provider-filter__btn {
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: var(--shadow-light-sm), var(--shadow-dark-sm);
    transition: all var(--transition-base);
}

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

.provider-filter__btn.is-active {
    color: #fff;
    background: var(--primary);
    box-shadow: 3px 3px 8px rgba(108, 99, 255, 0.3), -2px -2px 5px rgba(255, 255, 255, 0.4);
}

.provider-filter__btn:active {
    box-shadow: var(--shadow-inset-light), var(--shadow-inset-dark);
}

/* ============================================
   18. Unlock Banner
   ============================================ */
.unlock-banner {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-xl);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-light), var(--shadow-dark);
    border-left: 4px solid var(--primary);
}

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

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

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

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

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

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-light), var(--shadow-dark);
    overflow: hidden;
    transition: box-shadow var(--transition-base);
}

.faq-item:hover {
    box-shadow: -8px -8px 18px rgba(255, 255, 255, 0.8), 8px 8px 18px rgba(163, 177, 198, 0.7);
}

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

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

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

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

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

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

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

/* ============================================
   20. Disclaimer
   ============================================ */
.disclaimer-box {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-xl);
    box-shadow: var(--shadow-inset-light), var(--shadow-inset-dark);
    border-left: 4px solid var(--secondary);
}

.disclaimer-box p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0;
}

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

/* ============================================
   21. Footer
   ============================================ */
.m-footer {
    background: var(--bg-darker);
    padding: var(--space-3xl) 0 var(--space-xl);
    box-shadow: inset 0 4px 10px rgba(163, 177, 198, 0.3);
}

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

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

.m-footer__brand .logo {
    font-size: 1.3rem;
    display: inline-block;
    margin-bottom: var(--space-md);
}

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

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

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

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

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

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

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

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

.m-footer__compliance-logo--light-bg {
    background: #fff;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--secondary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
}

.m-footer__bottom {
    border-top: 1px solid rgba(163, 177, 198, 0.3);
    padding-top: var(--space-xl);
    text-align: center;
}

.m-footer__bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

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

/* ============================================
   22. Modals
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(45, 52, 54, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    z-index: 2000;
    transition: opacity var(--transition-base), visibility var(--transition-base);
    padding: var(--space-lg);
}

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

.modal__content {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-light), var(--shadow-dark), 0 20px 60px rgba(0, 0, 0, 0.15);
    transform: scale(0.95) translateY(20px);
    transition: transform var(--transition-base);
}

.modal.is-open .modal__content {
    transform: scale(1) translateY(0);
}

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

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--bg-darker);
}

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

.modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
    color: var(--text-muted);
    background: var(--bg-card);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-light-sm), var(--shadow-dark-sm);
    transition: all var(--transition-fast);
}

.modal__close:hover {
    color: var(--secondary);
    box-shadow: var(--shadow-inset-light), var(--shadow-inset-dark);
}

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

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

.modal__body--game {
    padding: 0;
    position: relative;
    padding-top: 56.25%;
}

.modal__body--game iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

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

.modal__actions .btn {
    flex: 1;
}

.modal--game .modal__header {
    background: var(--bg-darker);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* ============================================
   23. Cookie Consent
   ============================================ */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    box-shadow: 0 -4px 20px rgba(163, 177, 198, 0.4);
    padding: var(--space-lg) var(--space-xl);
    z-index: 1500;
    transform: translateY(100%);
    transition: transform var(--transition-slow);
}

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

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

.cookie-consent__content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.5;
}

/* ============================================
   24. Auth Forms
   ============================================ */
.auth-tabs {
    display: flex;
    gap: var(--space-sm);
}

.auth-tabs__btn {
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.auth-tabs__btn.is-active {
    color: #fff;
    background: var(--primary);
    box-shadow: 2px 2px 6px rgba(108, 99, 255, 0.3);
}

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

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

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

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

.auth-form__input {
    padding: 14px 18px;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-input);
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-inset-light), var(--shadow-inset-dark);
    outline: none;
    transition: box-shadow var(--transition-fast);
}

.auth-form__input:focus {
    box-shadow: var(--shadow-inset-light), var(--shadow-inset-dark), 0 0 0 2px var(--primary);
}

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

.auth-form__footer {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.auth-form__footer a {
    color: var(--primary);
    font-weight: 600;
}

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

/* ============================================
   26. Profile
   ============================================ */
.account-profile {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-light), var(--shadow-dark);
}

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

.account-profile__level-badge {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.75rem;
    box-shadow: 4px 4px 12px rgba(108, 99, 255, 0.3), -3px -3px 8px rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.account-profile__name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

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

.account-profile__actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

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

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

.xp-bar__track {
    height: 12px;
    background: var(--bg-dark);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-inset-light), var(--shadow-inset-dark);
    overflow: hidden;
}

.xp-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
    box-shadow: 0 0 8px rgba(108, 99, 255, 0.4);
}

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

.account-stats__item {
    text-align: center;
    padding: var(--space-lg);
    background: var(--bg-dark);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-inset-light), var(--shadow-inset-dark);
}

.account-stats__value {
    display: block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

.account-stats__label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   29. Content Pages
   ============================================ */
.m-page-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.25rem;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}

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

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

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

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

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

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

.m-content-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-light), var(--shadow-dark);
    margin-bottom: var(--space-xl);
}

.m-content-card--wide {
    max-width: 100%;
}

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

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

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

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

.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 {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-xl);
}

.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.8;
    margin-bottom: var(--space-sm);
}

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

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

.contact-info {
    background: var(--bg-dark);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-top: var(--space-md);
    box-shadow: var(--shadow-inset-light), var(--shadow-inset-dark);
}

.contact-info p {
    margin-bottom: var(--space-sm);
    font-size: 0.95rem;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

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

.info-card {
    background: var(--bg-dark);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow-light-sm), var(--shadow-dark-sm);
}

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

.info-card h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
    margin-top: 0;
}

.info-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Help Resources */
.help-resources {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.help-resource {
    background: var(--bg-dark);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow-light-sm), var(--shadow-dark-sm);
}

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

.help-resource p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

/* Table */
.m-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-lg) 0;
    background: var(--bg-dark);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-light-sm), var(--shadow-dark-sm);
}

.m-table th,
.m-table td {
    padding: var(--space-md) var(--space-lg);
    text-align: left;
    font-size: 0.9rem;
}

.m-table th {
    background: var(--bg-darker);
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
}

.m-table td {
    color: var(--text-secondary);
    border-top: 1px solid rgba(163, 177, 198, 0.2);
}

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

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

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

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

.review-stats__item {
    background: var(--bg-dark);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    box-shadow: var(--shadow-inset-light), var(--shadow-inset-dark);
}

.review-stats__label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

/* Review CTA */
.review-cta {
    text-align: center;
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--bg-darker);
}

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

.article-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-light), var(--shadow-dark);
    transition: all var(--transition-base);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: -8px -8px 18px rgba(255, 255, 255, 0.8), 8px 8px 18px rgba(163, 177, 198, 0.7);
}

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

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

.article-card__category {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--bg-dark);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-inset-light), var(--shadow-inset-dark);
}

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

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

.article-card__link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
}

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

.review-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-light), var(--shadow-dark);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: -8px -8px 18px rgba(255, 255, 255, 0.8), 8px 8px 18px rgba(163, 177, 198, 0.7);
}

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

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

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

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

.review-card__text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    flex: 1;
}

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

.review-card__stat {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--bg-dark);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-inset-light), var(--shadow-inset-dark);
}

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

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

.mb-0 {
    margin-bottom: 0;
}

.hidden {
    display: none !important;
}

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

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

.daily-bonus__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

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

.daily-bonus__amount {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: var(--space-xl);
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--bg-darker);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-inset-light), var(--shadow-inset-dark);
}

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

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

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

    .m-header__menu-toggle {
        display: flex;
    }

    .m-header__mobile-menu {
        display: block;
    }

    .m-header__actions .btn {
        display: none;
    }

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

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

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

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

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

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

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

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

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

    .m-hero__container--row .m-hero__text {
        margin-left: auto;
        margin-right: auto;
    }
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    .provider-filter__btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

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

    .m-hero__auth-buttons {
        flex-direction: column;
        width: 100%;
    }
}

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

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

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

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

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

    .modal__actions {
        flex-direction: column;
    }

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