/* ==========================================================================
   PinoWorld Casino — "Spider" Style
   Fonts: Bangers (headings), Nunito (body)
   Palette: Red #e23636, Blue #1565c0, Dark #1a1a2e, Web accents
   ========================================================================== */

/* 1. CSS Variables (:root) */
:root {
    /* Colors */
    --primary: #e23636;
    --primary-dark: #b71c1c;
    --secondary: #1565c0;
    --secondary-dark: #0d47a1;
    --accent: #ff5252;

    /* Backgrounds */
    --bg-dark: #1a1a2e;
    --bg-darker: #12122a;
    --bg-card: #222244;
    --bg-card-hover: #2a2a55;
    --bg-hero: linear-gradient(135deg, #1a1a2e 0%, #0d1b3e 50%, #1a1a2e 100%);

    /* Text */
    --text-primary: #f0f0f5;
    --text-secondary: #b8b8d0;
    --text-muted: #7878a0;

    /* 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: 'Nunito', sans-serif;
    --font-heading: 'Bangers', cursive;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-glow-red: 0 0 20px rgba(226,54,54,0.3);
    --shadow-glow-blue: 0 0 20px rgba(21,101,192,0.3);
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

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

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

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

ul, ol {
    padding-left: var(--space-lg);
}

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

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

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

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

/* 5. Header */
.m-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--primary);
    z-index: 1000;
    transition: background 0.3s ease;
}

.m-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(226, 54, 54, 0.5);
    transition: text-shadow 0.3s ease;
}

.logo:hover {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(226, 54, 54, 0.8);
}

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

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

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

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

/* 6. Mobile Menu */
.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: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

.m-mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
}

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

.m-mobile-menu__inner {
    padding: var(--space-2xl) var(--space-lg);
}

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

.m-mobile-menu__link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    letter-spacing: 1px;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

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

/* 7. Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 1.5px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn--primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(226, 54, 54, 0.4);
}

.btn--primary:hover {
    background: var(--primary-dark);
    color: #fff;
    box-shadow: 0 6px 25px rgba(226, 54, 54, 0.6);
    transform: translateY(-2px);
}

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

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

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

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

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

.m-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(226,54,54,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(21,101,192,0.08) 0%, transparent 50%);
    pointer-events: none;
}

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

.m-hero__title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--primary);
    text-shadow: 0 0 30px rgba(226, 54, 54, 0.4), 2px 2px 0 var(--secondary);
    margin-bottom: var(--space-md);
    letter-spacing: 3px;
}

.m-hero__title--404 {
    font-size: 8rem;
    color: var(--primary);
    text-shadow: 0 0 50px rgba(226, 54, 54, 0.5), 4px 4px 0 var(--secondary);
}

.m-hero__subtitle {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--secondary);
    margin-bottom: var(--space-md);
    letter-spacing: 2px;
}

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

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

.m-hero--small .m-hero__title {
    font-size: 2.5rem;
    text-shadow: 0 0 20px rgba(226, 54, 54, 0.3);
}

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

.m-hero__container {
    text-align: center;
    position: relative;
    z-index: 2;
}

.m-hero__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    position: relative;
    z-index: 2;
}

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

/* Web decoration */
.m-hero__web-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.web-strand {
    position: absolute;
    background: rgba(226, 54, 54, 0.06);
}

.web-strand--1 {
    width: 2px;
    height: 200%;
    top: -50%;
    left: 10%;
    transform: rotate(30deg);
}

.web-strand--2 {
    width: 2px;
    height: 200%;
    top: -50%;
    right: 15%;
    transform: rotate(-25deg);
}

.web-strand--3 {
    width: 200%;
    height: 2px;
    top: 40%;
    left: -50%;
    transform: rotate(10deg);
}

/* 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: 2.2rem;
    text-align: center;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    letter-spacing: 2px;
}

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

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

.m-section__provider-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--secondary);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    text-align: center;
    letter-spacing: 1px;
}

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

/* 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-md);
    padding: var(--space-xl);
    text-align: center;
    border: 1px solid rgba(226, 54, 54, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow-red);
}

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

.benefit-card__title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
    letter-spacing: 1px;
}

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

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

.game-card--featured {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(226, 54, 54, 0.15);
    position: relative;
}

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

.game-card__image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

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

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

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

.game-card__title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

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

/* 14. Game Tile */
.game-tile {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(226, 54, 54, 0.1);
    position: relative;
}

.game-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-blue);
}

.game-tile__image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
}

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

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

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

.game-tile__title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

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

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

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

.game-tile--locked:hover .game-tile__image img {
    transform: none;
}

.game-tile__lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    z-index: 2;
}

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

.game-tile__lock-text {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--primary);
    letter-spacing: 1px;
    text-align: center;
    padding: 0 var(--space-sm);
}

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

.provider-section__title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--secondary);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid rgba(21, 101, 192, 0.3);
    letter-spacing: 1.5px;
}

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

.provider-filter__btn {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    padding: 10px 20px;
    border: 2px solid rgba(226, 54, 54, 0.3);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

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

.provider-filter__btn--active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 15px rgba(226, 54, 54, 0.3);
}

/* 18. Unlock Banner */
.unlock-banner {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(226, 54, 54, 0.1) 100%);
    border: 1px solid rgba(226, 54, 54, 0.3);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.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;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

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

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

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid rgba(226, 54, 54, 0.1);
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item--open {
    border-color: var(--primary);
}

.faq-item__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-align: left;
    transition: color 0.3s ease;
}

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

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

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

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

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

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

/* 20. Disclaimer */
.disclaimer-box {
    background: rgba(226, 54, 54, 0.05);
    border: 1px solid rgba(226, 54, 54, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-top: var(--space-2xl);
}

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

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

/* 21. Footer */
.m-footer {
    background: var(--bg-darker);
    border-top: 3px solid var(--primary);
    padding: var(--space-3xl) 0 var(--space-xl);
    position: relative;
}

.m-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
}

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

.m-footer__logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(226, 54, 54, 0.3);
}

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

.m-footer__section h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    letter-spacing: 1px;
}

.m-footer__links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.m-footer__links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.m-footer__links a:hover {
    color: var(--primary);
    padding-left: var(--space-sm);
}

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

.m-footer__compliance-logo {
    height: 35px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

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

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

.age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 0;
}

.m-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: var(--space-lg);
    text-align: center;
}

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

.m-footer__address {
    margin-top: var(--space-xs);
    font-size: 0.8rem !important;
    color: var(--text-muted);
}

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

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

.modal__content {
    position: relative;
    z-index: 2;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    max-width: 480px;
    width: 100%;
    text-align: center;
    border: 1px solid rgba(226, 54, 54, 0.2);
    box-shadow: var(--shadow-lg);
}

.modal__content h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
    letter-spacing: 1px;
}

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

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

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

.modal__close:hover {
    color: var(--primary);
    background: rgba(226, 54, 54, 0.1);
}

/* Game Modal */
.modal--game {
    padding: var(--space-md);
}

.modal__content--game {
    max-width: 960px;
    padding: var(--space-lg);
}

.modal__game-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
    letter-spacing: 1px;
    padding-right: 40px;
    text-align: left;
}

.modal__game-frame {
    position: relative;
    width: 100%;
    padding-top: 62.5%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #000;
}

.modal__game-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

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

/* Bonus Modal */
.modal__content--bonus {
    max-width: 400px;
    text-align: center;
}

.daily-bonus {
    padding: var(--space-md) 0;
}

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

.daily-bonus__title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
    letter-spacing: 1px;
}

.daily-bonus__text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
}

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

/* 23. Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 2px solid var(--primary);
    padding: var(--space-lg);
    z-index: 1500;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    display: none;
}

.cookie-consent.is-visible {
    display: block;
}

.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 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* 24. Auth Forms */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: var(--space-xl);
    border-bottom: 2px solid rgba(226, 54, 54, 0.15);
}

.auth-tabs__btn {
    flex: 1;
    padding: var(--space-md);
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-muted);
    cursor: pointer;
    letter-spacing: 1px;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.auth-tabs__btn:hover {
    color: var(--text-primary);
}

.auth-tabs__btn--active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

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

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

.auth-form__group label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.auth-form__group input {
    padding: 12px 16px;
    border: 2px solid rgba(226, 54, 54, 0.15);
    border-radius: var(--radius-sm);
    background: var(--bg-darker);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

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

.auth-form__group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(226, 54, 54, 0.2);
}

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

.auth-form__note a {
    color: var(--primary);
    font-weight: 700;
}

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

.account-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    border: 1px solid rgba(226, 54, 54, 0.15);
}

.account-card__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: var(--space-lg);
    letter-spacing: 1px;
}

/* Why Register */
.why-register {
    text-align: center;
}

.why-register__title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
    letter-spacing: 1px;
}

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

.why-register__item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    border: 1px solid rgba(21, 101, 192, 0.15);
    transition: transform 0.3s ease;
}

.why-register__item:hover {
    transform: translateY(-4px);
}

.why-register__icon {
    font-size: 2rem;
    display: block;
    margin-bottom: var(--space-md);
}

.why-register__item h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
    letter-spacing: 0.5px;
}

.why-register__item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 26. Profile */
.profile-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    border: 1px solid rgba(226, 54, 54, 0.2);
    max-width: 600px;
    margin: 0 auto;
}

.profile-card__header {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.profile-card__level-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(226, 54, 54, 0.4);
}

.profile-card__name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 2px;
    letter-spacing: 1px;
}

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

/* 27. XP Progress */
.profile-card__xp {
    margin-bottom: var(--space-xl);
}

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

.xp-bar__track {
    height: 12px;
    background: var(--bg-darker);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

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

.xp-bar__fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

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

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

.stat-box__value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--primary);
    letter-spacing: 1px;
}

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

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

/* 29. Content Pages */
.m-page-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    letter-spacing: 2px;
}

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

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

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

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

.m-breadcrumb span {
    margin: 0 var(--space-xs);
}

.m-content-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    border: 1px solid rgba(226, 54, 54, 0.1);
    line-height: 1.8;
}

.m-content-card h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--primary);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    letter-spacing: 1px;
}

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

.m-content-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.5px;
}

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

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

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

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

.m-content-card a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(226, 54, 54, 0.3);
}

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

.m-content-card__intro {
    font-size: 1.15rem;
    color: var(--text-primary) !important;
    line-height: 1.8;
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(226, 54, 54, 0.15);
    margin-bottom: var(--space-xl) !important;
}

.m-content-card__cta {
    text-align: center;
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(226, 54, 54, 0.15);
}

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

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

.m-table th {
    font-family: var(--font-heading);
    color: var(--primary);
    letter-spacing: 0.5px;
    background: rgba(226, 54, 54, 0.05);
}

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

/* 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(21, 101, 192, 0.15);
}

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

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

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

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

.help-resource {
    background: var(--bg-darker);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    border: 1px solid rgba(226, 54, 54, 0.1);
}

.help-resource h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
    margin-top: 0;
}

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

/* Review Hero */
.review-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

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

.review-hero__score {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

/* Review Games Grid */
.review-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.review-game-tile {
    background: var(--bg-darker);
    border-radius: var(--radius-sm);
    overflow: hidden;
    text-align: center;
}

.review-game-tile img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.review-game-tile span {
    display: block;
    padding: var(--space-sm);
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Provider Cards (Reviews page) */
.provider-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.provider-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    border: 1px solid rgba(226, 54, 54, 0.15);
    transition: border-color 0.3s ease;
    position: relative;
}

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

.provider-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.provider-card__name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--primary);
    letter-spacing: 1px;
}

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

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

.provider-card__stat {
    background: var(--bg-darker);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

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

.article-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(226, 54, 54, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-red);
    border-color: var(--primary);
}

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

.article-card__category {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--secondary);
    background: rgba(21, 101, 192, 0.1);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.article-card__title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.article-card__excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    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;
}

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

/* 32. Utility Classes */
.stars {
    color: #ffc107;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

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

.hidden {
    display: none !important;
}

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

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

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

    .m-header__burger {
        display: flex;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    .why-register__grid {
        grid-template-columns: 1fr;
    }

    .profile-card__stats {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

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

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

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

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

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

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

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

    .cookie-consent__content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
}

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

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

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

    .m-hero__auth-buttons .btn {
        width: 100%;
    }

    .modal__actions {
        flex-direction: column;
    }

    .modal__actions .btn {
        width: 100%;
    }

    .profile-card__header {
        flex-direction: column;
        text-align: center;
    }

    .profile-card__actions {
        flex-direction: column;
    }

    .profile-card__actions .btn {
        width: 100%;
    }

    .profile-card__stats {
        grid-template-columns: 1fr;
    }

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

    .provider-card__stats {
        flex-direction: column;
    }
}