/* ==========================================================================
   CommuG — Ривьера Style
   Social Casino | BEM Architecture with m- prefix
   Fonts: Josefin Sans (headings) + Mulish (body)
   Palette: Sea gradient #0077b6→#00b4d8, sand #ffd166
   ========================================================================== */

/* 1. CSS Variables (:root)
   ========================================================================== */
:root {
    /* Colors — Ривьера palette */
    --primary: #0077b6;
    --primary-dark: #005f8a;
    --primary-light: #00b4d8;
    --secondary: #ffd166;
    --accent: #ef476f;

    /* Backgrounds — coastal blues */
    --bg-dark: #023e58;
    --bg-darker: #012a3d;
    --bg-card: #034b6a;
    --bg-card-hover: #045d82;
    --bg-light: #f0f7fa;
    --bg-hero: linear-gradient(135deg, #023e58 0%, #0077b6 50%, #00b4d8 100%);

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #b8d8e8;
    --text-muted: #7fb3cc;
    --text-dark: #023e58;
    --text-dark-secondary: #456a7a;

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

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

    /* Fonts — Ривьера style */
    --font-body: 'Mulish', sans-serif;
    --font-heading: 'Josefin Sans', sans-serif;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(2, 62, 88, 0.15);
    --shadow-md: 0 4px 16px rgba(2, 62, 88, 0.2);
    --shadow-lg: 0 8px 32px rgba(2, 62, 88, 0.25);
    --shadow-glow: 0 0 20px rgba(0, 180, 216, 0.3);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s 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);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
    list-style: none;
}

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

input {
    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;
    letter-spacing: -0.01em;
}

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(2, 62, 88, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 180, 216, 0.15);
    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-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    background: linear-gradient(135deg, #ffffff 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity var(--transition-fast);
}

.logo:hover {
    opacity: 0.85;
}

.logo--footer {
    font-size: 1.5rem;
}

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

.m-header__link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    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(--secondary);
    border-radius: 1px;
    transition: width var(--transition-base);
}

.m-header__link:hover,
.m-header__link.is-active {
    color: var(--text-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;
    cursor: pointer;
}

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

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

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

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

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

    .m-header__burger {
        display: flex;
    }
}

/* 6. Mobile Menu
   ========================================================================== */
.m-header__mobile {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 62, 88, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    overflow-y: auto;
}

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

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

.m-header__mobile-link {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(0, 180, 216, 0.1);
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.m-header__mobile-link:hover,
.m-header__mobile-link.is-active {
    color: var(--secondary);
    padding-left: var(--space-md);
}

/* 7. Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--text-primary);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.35);
}

.btn--primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.4);
    transform: translateY(-2px);
}

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

.btn--secondary:hover {
    background: var(--secondary);
    color: var(--bg-darker);
    transform: translateY(-2px);
}

.btn--lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn--sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.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;
    background: var(--bg-hero);
    padding: var(--space-3xl) 0;
    overflow: hidden;
}

.m-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(0, 180, 216, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 209, 102, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

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

.m-hero__content {
    max-width: 700px;
    position: relative;
    z-index: 3;
}

.m-hero__title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.m-hero__subtitle {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--secondary);
    margin-bottom: var(--space-md);
}

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

.m-hero__visual {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    pointer-events: none;
    z-index: 0;
}

.m-hero__wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--bg-dark);
    clip-path: ellipse(55% 100% at 50% 100%);
    z-index: 0;
    pointer-events: none;
}

.m-hero__actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    flex-wrap: wrap;
}

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

.m-hero--small .m-hero__content {
    max-width: 100%;
}

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

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

.m-hero__title--404 {
    font-size: 8rem;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) {
    .m-hero {
        padding: var(--space-2xl) 0;
    }

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

    .m-hero__subtitle {
        font-size: 1.2rem;
    }

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

    .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__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--space-md);
}

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

.m-section__note {
    text-align: center;
    color: var(--text-muted);
    padding: var(--space-2xl);
}

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

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

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

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

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

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

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

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

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

.benefit-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    border: 1px solid rgba(0, 180, 216, 0.1);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(0, 180, 216, 0.3);
}

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

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

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

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

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

/* 12. Featured Providers
   ========================================================================== */
.featured-provider {
    margin-bottom: var(--space-2xl);
}

.featured-provider__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: var(--space-lg);
    text-align: center;
}

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

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

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

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

/* 14. Game Tile (for games.js rendered tiles)
   ========================================================================== */
.m-game-tile {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(0, 180, 216, 0.1);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    cursor: pointer;
}

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

.m-game-tile__image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.m-game-tile__image img {
    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__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 62, 88, 0.5);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.m-game-tile:hover .m-game-tile__play {
    opacity: 1;
}

.m-game-tile__play-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.2rem;
    box-shadow: 0 4px 16px rgba(0, 119, 182, 0.5);
}

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

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

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

/* Game Card (for home.php featured games) */
.game-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(0, 180, 216, 0.1);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(0, 180, 216, 0.3);
}

.game-card__image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.game-card__image img {
    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__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 62, 88, 0.5);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.game-card:hover .game-card__play {
    opacity: 1;
}

.game-card__play-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 119, 182, 0.5);
}

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

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

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

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

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

.m-game-tile--locked:hover {
    transform: none;
    box-shadow: none;
}

.m-game-tile__lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 42, 61, 0.85);
    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-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.m-provider-section__title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid rgba(255, 209, 102, 0.2);
}

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

.filter-btn {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid rgba(0, 180, 216, 0.15);
    cursor: pointer;
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--primary-light);
    background: var(--bg-card-hover);
}

.filter-btn--active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--text-primary);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.35);
}

/* 18. Unlock Banner
   ========================================================================== */
.unlock-banner {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 119, 182, 0.2) 100%);
    border: 1px solid rgba(255, 209, 102, 0.25);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-xl);
}

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

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

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

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 180, 216, 0.1);
    overflow: hidden;
    transition: border-color var(--transition-base);
}

.faq-item:hover {
    border-color: rgba(0, 180, 216, 0.25);
}

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

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

.faq-item__icon {
    font-size: 1.5rem;
    color: var(--primary-light);
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

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

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

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

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

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

.disclaimer__text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: center;
}

.disclaimer__text strong {
    color: var(--accent);
}

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

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

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(0, 180, 216, 0.1);
}

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

.footer__title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.footer__link {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer__link:hover {
    color: var(--text-primary);
    padding-left: var(--space-sm);
}

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

.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);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 4px 8px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
}

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

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

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

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

/* 22. Modals
   ========================================================================== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(1, 42, 61, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: var(--space-lg);
}

.modal__content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    max-width: 480px;
    width: 100%;
    position: relative;
    border: 1px solid rgba(0, 180, 216, 0.2);
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
}

.modal__content--game {
    max-width: 900px;
    padding: 0;
    overflow: hidden;
}

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

.modal__content--bonus {
    max-width: 420px;
    text-align: center;
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid rgba(0, 180, 216, 0.1);
}

.modal__content--bonus .modal__header,
.modal__content:not(.modal__content--game) .modal__header {
    padding: 0;
    border-bottom: none;
    margin-bottom: var(--space-lg);
}

.modal__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal__close {
    font-size: 1.75rem;
    color: var(--text-muted);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    line-height: 1;
}

.modal__close:hover {
    color: var(--text-primary);
    background: rgba(0, 180, 216, 0.1);
}

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

.modal__body p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.modal__body--game {
    padding: 0;
    aspect-ratio: 16 / 9;
}

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

.game-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

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

.cookie-consent__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-xl);
    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);
    line-height: 1.5;
}

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

/* 24. Auth Forms
   ========================================================================== */
.auth-tabs {
    display: flex;
    border-bottom: 2px solid rgba(0, 180, 216, 0.1);
    margin-bottom: var(--space-xl);
}

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

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

.auth-tab--active {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
}

.auth-form__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.form-input {
    width: 100%;
    padding: 12px var(--space-md);
    background: var(--bg-darker);
    border: 1px solid rgba(0, 180, 216, 0.15);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-error {
    background: rgba(239, 71, 111, 0.1);
    color: var(--accent);
    font-size: 0.85rem;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
    border: 1px solid rgba(239, 71, 111, 0.2);
}

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

.auth-form__note a {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Auth Page Grid (account.php) */
.auth-page-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.auth-page-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid rgba(0, 180, 216, 0.1);
}

.auth-page-card__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

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

@media (max-width: 768px) {
    .auth-page-grid {
        grid-template-columns: 1fr;
    }
}

/* 25. Account Page
   ========================================================================== */
.account-dashboard {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.account-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid rgba(0, 180, 216, 0.1);
}

.account-card--profile {
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 119, 182, 0.15) 100%);
    padding-top: var(--space-2xl);
}

.account-card__level-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--secondary) 0%, #ffaa00 100%);
    color: var(--bg-darker);
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: var(--space-md);
    box-shadow: 0 4px 16px rgba(255, 209, 102, 0.4);
}

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

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

.account-card__title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}

/* 26. Profile
   ========================================================================== */

/* 27. XP Progress
   ========================================================================== */
.xp-bar {
    width: 100%;
    height: 16px;
    background: var(--bg-darker);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: var(--space-sm);
    border: 1px solid rgba(0, 180, 216, 0.1);
}

.xp-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 50%, var(--secondary) 100%);
    border-radius: 8px;
    transition: width 0.8s ease;
    min-width: 0;
}

.xp-bar__labels {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 500;
}

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

.account-stat {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    border: 1px solid rgba(0, 180, 216, 0.1);
}

.account-stat__value {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: var(--space-xs);
}

.account-stat__label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

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

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

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

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

.daily-bonus__streak {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.daily-bonus__streak strong {
    color: var(--accent);
}

/* 29. Content Pages
   ========================================================================== */
.m-content-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    border: 1px solid rgba(0, 180, 216, 0.1);
    line-height: 1.8;
}

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

.m-content-card p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    font-size: 0.95rem;
}

.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);
    margin-bottom: var(--space-sm);
    font-size: 0.95rem;
}

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

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

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

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

.m-content-card__cta {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(0, 180, 216, 0.1);
    flex-wrap: wrap;
}

/* Content Table */
.m-content-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--space-xl);
    font-size: 0.9rem;
}

.m-content-table th {
    background: var(--bg-darker);
    color: var(--secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: var(--space-md);
    text-align: left;
    border-bottom: 2px solid rgba(255, 209, 102, 0.2);
}

.m-content-table td {
    padding: var(--space-md);
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(0, 180, 216, 0.08);
}

.m-content-table tr:hover td {
    background: rgba(0, 119, 182, 0.05);
}

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

.m-breadcrumb__link {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

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

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

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

.m-page-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
    line-height: 1.3;
}

@media (max-width: 768px) {
    .m-content-card {
        padding: var(--space-xl) var(--space-lg);
    }

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

/* 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-darker);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
    border: 1px solid rgba(0, 180, 216, 0.08);
}

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

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

.info-card__text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

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

.review-hero__meta {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: var(--space-sm);
}

.review-games-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin: var(--space-md) 0 var(--space-xl);
}

.review-game-tag {
    background: var(--bg-darker);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    border: 1px solid rgba(0, 180, 216, 0.1);
}

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

.provider-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid rgba(0, 180, 216, 0.1);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Article Card */
.article-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 180, 216, 0.1);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(0, 180, 216, 0.3);
}

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

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

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

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

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

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

/* 32. Utility Classes
   ========================================================================== */
.stars {
    color: #ffc107;
    font-size: 1rem;
}

.stars--large {
    font-size: 1.5rem;
}

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

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

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

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

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

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

/* Selection */
::selection {
    background: rgba(0, 180, 216, 0.3);
    color: var(--text-primary);
}