/* ============================================
   GLOBAL CSS VARIABLES
   ============================================
   Change these to instantly restyle the entire site.
   All colors, sizes, radiuses, shadows, and fonts
   are controlled from here.
   ============================================ */
:root {
    /* ---- Background Colors ---- */
    --bg-body: #0a1929;
    --bg-header: #071521;
    --bg-footer: #071521;
    --bg-card: #0f2a3d;
    --bg-card-hover: #143750;
    --bg-banner: #0a1929;

    /* ---- Text Colors ---- */
    --text-primary: #ffffff;
    --text-secondary: #8fa8c0;
    --text-muted: #5a7a94;
    --text-dark: #0a1929;

    /* ---- Accent Colors ---- */
    --accent: #e8860c;
    --accent-hover: #d07508;
    --accent-secondary: #f5a623;
    --accent-tertiary: #ffc85c;

    /* ---- Button Primary (Sign Up / Register) ---- */
    --btn-primary-bg: linear-gradient(180deg, #f5c518 0%, #e8a007 100%);
    --btn-primary-bg-solid: #f5c518;
    --btn-primary-text: #1a1a1a;
    --btn-primary-border: #f5c518;
    --btn-primary-hover-bg: linear-gradient(180deg, #ffd74a 0%, #f5b818 100%);
    --btn-primary-hover-bg-solid: #ffd74a;
    --btn-primary-hover-border: #ffd74a;
    --btn-primary-shadow: rgba(245, 197, 24, 0.4);

    /* ---- Button Secondary (Login / Outline) ---- */
    --btn-secondary-bg: transparent;
    --btn-secondary-text: #ffffff;
    --btn-secondary-border: rgba(255, 255, 255, 0.35);
    --btn-secondary-hover-bg: rgba(255, 255, 255, 0.08);

    /* ---- Border Colors ---- */
    --border-color: #163a52;
    --border-color-light: #1d4a65;

    /* ---- Border Radius ---- */
    --radius-xs: 4px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-round: 50%;
    --radius-btn: 50px;

    /* ---- Layout ---- */
    --container-max-width: 1280px;
    --container-padding: 20px;

    /* ---- Shadows ---- */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-accent: 0 4px 20px var(--btn-primary-shadow);

    /* ---- Transition ---- */
    --transition: 0.3s ease;
    --transition-fast: 0.15s ease;

    /* ---- Typography ---- */
    --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    --font-weight-extra-bold: 800;

    /* ---- Font Sizes ---- */
    --text-xs: 0.75rem;
    --text-sm: 0.85rem;
    --text-base: 0.95rem;
    --text-md: 1rem;
    --text-lg: 1.1rem;
    --text-xl: 1.3rem;
    --text-2xl: 1.6rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;

    /* ---- Spacing ---- */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 40px;
    --space-2xl: 60px;

    /* ---- Z-Index ---- */
    --z-dropdown: 100;
    --z-sticky: 1000;
    --z-modal: 1100;

    /* ---- Hero Gradient ---- */
    --hero-gradient: linear-gradient(135deg, #0f2a3d 0%, #163a52 50%, #0f2a3d 100%);

    /* ---- Floating Bar ---- */
    --floating-bar-bg: linear-gradient(90deg, #e8860c 0%, #f5a623 100%);
    --floating-bar-text: var(--text-primary);

    /* ---- Scrollbar ---- */
    --scrollbar-width: 6px;
    --scrollbar-thumb: #1a6e5a;
    --scrollbar-thumb-hover: #22886e;
    --scrollbar-track: var(--bg-body);
}

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

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

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

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background-color: var(--bg-header);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    border-bottom: 1px solid var(--border-color);
}

.header__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Logo */
.header__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.6rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: 1px;
}

.header__logo a {
    display: flex;
}

.header__logo-part1 {
    color: var(--accent);
}

.header__logo-part2 {
    color: var(--text-primary);
}

.header__logo img {
    /* height: 45px; */
    max-width: 210px;
    min-width: 150px;
}

/* Navigation */
.header__nav {
    flex: 1;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 5px;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.nav__list > li {
    display: flex;
    align-items: center;
    margin: 0;
}

.nav__list a,
.nav__list span.submenu-toggle {
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
    font-size: var(--text-base);
    transition: color var(--transition), background var(--transition);
    padding: 10px 10px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.nav__list a:hover,
.nav__list span.submenu-toggle:hover {
    background: rgba(22, 110, 90, 0.25);
    color: var(--accent-secondary);
}

.nav__list a.active,
.nav__list span.submenu-toggle.active {
    color: var(--accent-secondary);
    background: rgba(22, 110, 90, 0.2);
}

/* Header Buttons */
.header__desktop-buttons {
    display: flex;
    gap: 12px;
}

.header__mobile-buttons {
    display: none;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    width: 100%;
}

.header__mobile-buttons .btn {
    width: 100%;
    text-align: center;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-btn);
    font-weight: var(--font-weight-bold);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
}

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

.btn--login:hover {
    background: var(--btn-secondary-hover-bg);
    border-color: rgba(255, 255, 255, 0.55);
}

.btn--register,
.btn--signup {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: 2px solid var(--btn-primary-border);
    font-weight: var(--font-weight-extra-bold);
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.btn--register:hover,
.btn--signup:hover {
    background: var(--btn-primary-hover-bg);
    border-color: var(--btn-primary-hover-border);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

/* ============================================
   HAMBURGER MENU
   ============================================ */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: calc(var(--z-sticky) + 1);
    width: 42px;
    height: 42px;
    position: relative;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: all var(--transition);
    border-radius: 2px;
}

.hamburger.active span {
    display: none;
}

.hamburger.active::before {
    content: '\2715';
    font-size: 1.4rem;
    color: var(--text-primary);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ============================================
   HERO SECTION (template_type = 'hero')
   ============================================ */
.hero {
    padding: 25px 0 0;
}

.hero__box {
    background: var(--hero-gradient);
    border-radius: var(--radius-md);
    padding: var(--space-xl) 30px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.hero__content {
    max-width: 700px;
    margin: 0 auto;
}

.hero__title {
    font-size: var(--text-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin: 0 0 25px 0;
    line-height: 1.3;
}

.hero__highlight {
    color: var(--accent);
}

.hero__cta {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn--bonus {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: 2px solid var(--btn-primary-border);
    padding: 12px 32px;
    font-size: 0.9rem;
    font-weight: var(--font-weight-extra-bold);
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.btn--bonus:hover {
    background: var(--btn-primary-hover-bg);
    border-color: var(--btn-primary-hover-border);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

.btn--register-sm {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
    padding: 10px 28px;
    font-size: 0.9rem;
}

.btn--register-sm:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   GAMES SECTION (template_type = 'hero')
   ============================================ */
.games-section {
    padding: 50px 0;
}

.games-section__title {
    text-align: center;
    font-size: var(--text-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: 35px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 18px;
}

.game-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(26, 110, 90, 0.3);
}

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

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

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

.game-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 21, 33, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

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

.game-card__play {
    width: 60px;
    height: 60px;
    background: linear-gradient(180deg, #1a6e5a 0%, #0f5040 100%);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition), background var(--transition);
    box-shadow: 0 4px 16px rgba(26, 110, 90, 0.4);
}

.game-card__play::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #ffffff;
    margin-left: 4px;
}

.game-card:hover .game-card__play {
    transform: scale(1.1);
}

.game-card__play:hover {
    background: linear-gradient(180deg, #22886e 0%, #1a6e5a 100%);
}

.game-card__title {
    padding: 12px 10px;
    text-align: center;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    background: var(--bg-card);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   BANNER SECTION (template_type = 'banner')
   ============================================ */
.banner {
    max-height: 100vh;
    overflow: hidden;
}

.banner__link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.banner__desktop {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner__mobile {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
    background: var(--bg-header);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--space-sm);
}

.breadcrumbs__item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.breadcrumbs__item:not(:last-child)::after {
    content: '\203A';
    margin-left: var(--space-sm);
    color: var(--text-muted);
    font-size: var(--text-lg);
}

.breadcrumbs__link {
    color: var(--text-secondary);
    transition: color var(--transition);
}

.breadcrumbs__link:hover {
    color: var(--accent-secondary);
}

.breadcrumbs__current {
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main {
    padding: var(--space-xl) 0;
    background: var(--bg-body);
}

.main h1 {
    font-size: var(--text-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--accent-secondary);
    margin-bottom: 20px;
}

.main h2 {
    font-size: var(--text-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin: 15px 0 15px;
}

.main h3 {
    font-size: var(--text-xl);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    margin: 25px 0 12px;
}

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

.main ul, .main ol {
    color: var(--text-secondary);
    margin: 0 0 20px 24px;
    padding-left: 18px;
}

.main li {
    margin-bottom: var(--space-sm);
}

.main img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 20px auto;
    display: block;
}

.page-button {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

/* ============================================
   404 ERROR PAGE
   ============================================ */
.error-page {
    text-align: center;
    padding: var(--space-2xl) 0;
}

.error-page__code {
    font-size: 8rem;
    font-weight: var(--font-weight-extra-bold);
    color: var(--accent-secondary);
    line-height: 1;
    margin-bottom: var(--space-md);
    opacity: 0.3;
}

.error-page__title {
    font-size: var(--text-3xl);
    color: var(--text-primary) !important;
    margin-bottom: var(--space-md);
}

.error-page__text {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-footer);
    padding: 0 0 60px;
    border-top: 1px solid var(--border-color);
}

.footer__main {
    padding: 50px 0 0;
}

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

.footer__links-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.footer__column {
    display: flex;
    flex-direction: column;
}

.footer__column-title {
    font-size: var(--text-md);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 15px;
}

.footer__logo-part1 {
    color: var(--accent);
}

.footer__logo-part2 {
    color: var(--text-primary);
}

.footer__logo-img {
    /* height: 45px; */
    width: auto;
    max-width: 210px;
}

.footer__description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer__badges {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer__badge {
    height: 45px;
    width: auto;
}

.footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__links li {
    margin-bottom: 12px;
}

.footer__links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color var(--transition);
}

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

.footer__contact-item {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer__providers-wrapper {
    border-top: 1px solid var(--border-color);
    padding: 25px 20px;
}

.footer__providers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    max-width: var(--container-max-width);
    margin: 0 auto;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.footer__providers::-webkit-scrollbar {
    height: 4px;
}

.footer__providers::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.footer__provider-logo {
    height: 26px;
    width: auto;
    opacity: 0.6;
    transition: opacity var(--transition);
    filter: grayscale(40%);
    flex-shrink: 0;
}

.footer__provider-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.footer__bottom {
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.footer__responsible {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__responsible img {
    height: 18px;
    opacity: 0.7;
}

/* ============================================
   FOOTER — COMPACT VARIANT
   ============================================ */
.footer--compact {
    padding: 30px 0 80px;
    border-top: 3px solid #1a6e5a;
}

.footer--compact .footer__top {
    display: flex;
    flex-direction: column;
}

.footer--compact .footer__info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer--compact .footer__top-row {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.footer--compact .footer__badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.footer--compact .footer__badge {
    height: 65px;
    width: auto;
}

.footer--compact .footer__text {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: var(--text-sm);
}

.footer--compact .footer__partners {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

.footer--compact .footer__partners img {
    height: 30px;
    width: auto;
    object-fit: contain;
    opacity: 0.6;
    filter: grayscale(40%);
    transition: opacity var(--transition), filter var(--transition);
}

.footer--compact .footer__partners img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.footer__divider {
    border: none;
    border-top: 1px solid #1a6e5a;
    margin: 25px auto 0;
    max-width: var(--container-max-width);
}

.footer__compact-bottom {
    max-width: var(--container-max-width);
    margin: 0 auto;
    text-align: center;
    padding: 25px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer__compact-logo {
    height: 50px;
    width: auto;
}

.footer__aware img {
    height: 20px;
    opacity: 0.7;
}

.footer__menu {
    list-style: none;
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.footer__menu li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color var(--transition), background var(--transition);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
}

.footer__menu li a:hover {
    background: linear-gradient(135deg, #1a6e5a, #22886e);
    color: #fff;
}

@media (max-width: 768px) {
    .footer--compact .footer__top-row {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        text-align: center;
    }

    .footer--compact .footer__partners {
        justify-content: center;
    }

    .footer--compact .footer__partners img {
        height: 24px;
    }

    .footer__menu {
        flex-direction: column;
        gap: 8px;
    }
}

/* ============================================
   FLOATING BAR (Marquee style)
   ============================================ */
.floating-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--floating-bar-bg);
    z-index: var(--z-sticky);
}

.floating-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 12px 20px;
}

.floating-bar__marquee {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.floating-bar__marquee-inner {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.floating-bar__text {
    color: var(--floating-bar-text);
    font-weight: var(--font-weight-bold);
    font-size: var(--text-base);
    display: inline-block;
    padding-right: 50px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.floating-bar__btn {
    background: linear-gradient(180deg, #f5c518 0%, #e8a007 100%);
    color: #1a1a1a;
    padding: 10px 25px;
    border-radius: var(--radius-btn);
    font-weight: var(--font-weight-extra-bold);
    font-size: var(--text-sm);
    text-transform: uppercase;
    white-space: nowrap;
    transition: all var(--transition);
    flex-shrink: 0;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.floating-bar__btn:hover {
    background: linear-gradient(180deg, #ffd74a 0%, #f5b818 100%);
    transform: translateY(-1px);
}

/* ============================================
   FLOATING BUTTONS (Banner style)
   ============================================ */
.floating-buttons {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-body);
    border-top: 2px solid #1a6e5a;
    padding: 15px 20px;
    z-index: var(--z-sticky);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.floating-btn {
    flex: 1;
    padding: 12px 20px;
    text-align: center;
    font-weight: var(--font-weight-bold);
    font-size: var(--text-md);
    border-radius: var(--radius-btn);
    transition: all var(--transition);
    margin: 0 5px;
}

.floating-btn--login {
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
    border: 2px solid var(--btn-secondary-border);
}

.floating-btn--login:hover {
    background: var(--btn-secondary-hover-bg);
}

.floating-btn--register {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: 2px solid var(--btn-primary-border);
    font-weight: var(--font-weight-extra-bold);
}

.floating-btn--register:hover {
    background: var(--btn-primary-hover-bg);
    transform: translateY(-1px);
    box-shadow: var(--shadow-accent);
}

/* ============================================
   TABLES
   ============================================ */
.table-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-bottom: var(--space-lg);
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-base);
}

th, td {
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    text-align: left;
    color: var(--text-primary);
}

th {
    background: linear-gradient(135deg, #0f3d2e 0%, #1a6e5a 100%);
    color: var(--text-primary);
    font-weight: var(--font-weight-bold);
}

tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

tbody tr {
    transition: background var(--transition);
}

tbody tr:hover {
    background: var(--bg-card-hover);
}

table td p {
    margin: 0;
    color: var(--text-primary);
}

/* ============================================
   CONTENT INSERT (auto-inserted image + buttons)
   ============================================ */
img.content-image {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 20px auto 0;
    max-height: 350px;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-container {
    width: 100%;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.faq-question {
    padding: 18px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    transition: background var(--transition);
}

.faq-question:hover {
    background: var(--bg-card-hover);
}

.faq-question h3 {
    color: var(--text-primary);
    font-size: var(--text-lg);
    font-weight: var(--font-weight-medium);
    margin: 0;
    flex: 1;
}

.faq-icon {
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: #1a6e5a;
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.faq-icon::before {
    width: 2px;
    height: 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-icon::after {
    width: 16px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-item.active .faq-icon::before {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.faq-item.active .faq-icon::after {
    transform: translate(-50%, -50%) rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
    background: var(--bg-card);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer [itemprop="text"] {
    padding: 15px 20px 20px;
    color: var(--text-secondary);
    margin: 0;
    border-top: 1px solid var(--border-color);
    line-height: 1.6;
}

.faq-answer [itemprop="text"] ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.faq-answer [itemprop="text"] li {
    margin-bottom: 4px;
}

/* ============================================
   PROMO BANNER (in-content block)
   ============================================ */
.promo-banner {
    background: linear-gradient(135deg, #0f3d2e 0%, #1a6e5a 50%, #0f3d2e 100%);
    border-radius: var(--radius-md);
    padding: 30px;
    margin: 20px 0;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(26, 110, 90, 0.3);
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.promo-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-weight-extra-bold);
    color: var(--text-primary);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
    position: relative;
}

.promo-subtitle {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    position: relative;
}

.promo-button {
    background: linear-gradient(180deg, #f5c518 0%, #e8a007 100%);
    color: #1a1a1a;
    padding: 15px 40px;
    border-radius: var(--radius-btn);
    font-weight: var(--font-weight-extra-bold);
    font-size: var(--text-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 16px rgba(245, 197, 24, 0.3);
    position: relative;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.promo-button:hover {
    background: linear-gradient(180deg, #ffd74a 0%, #f5b818 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 197, 24, 0.4);
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: var(--scrollbar-width);
    height: var(--scrollbar-width);
}

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

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

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

/* ============================================
   DROPDOWN MENU — Desktop
   ============================================ */
.header__nav .has-submenu {
    position: relative;
}

.header__nav .submenu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-primary);
}

.header__nav .dropdown-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--text-secondary);
    transition: transform var(--transition), border-color var(--transition);
    margin-top: 1px;
}

.header__nav .has-submenu:hover .dropdown-arrow {
    transform: rotate(180deg);
    border-top-color: var(--accent-secondary);
}

.header__nav .submenu {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    top: 100%;
    background: var(--bg-card);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm);
    z-index: var(--z-dropdown);
    padding: 0;
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    overflow: hidden;
}

.header__nav .has-submenu:hover > .submenu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.header__nav .submenu li {
    list-style: none;
    margin: 0;
}

.header__nav .submenu li a {
    padding: 11px 20px;
    display: block;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    transition: background 0.2s, color 0.2s, padding-left 0.2s;
    border-left: 3px solid transparent;
}

.header__nav .submenu li a:hover {
    background: rgba(26, 110, 90, 0.15);
    color: var(--text-primary);
    padding-left: 24px;
    border-left-color: var(--accent-secondary);
}

.header__nav .submenu li:not(:last-child) a {
    border-bottom: 1px solid var(--border-color);
}

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

/* Mobile menu (generated by JS) — hidden on desktop */
.nav__list-mobile {
    display: none;
}

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

    .header__nav,
    .header__desktop-buttons {
        display: none;
    }

    .header__nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-header);
        padding: 12px 0 16px;
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        z-index: var(--z-sticky);
        max-height: 70vh;
        overflow-y: auto;
    }

    /* Hide desktop nav list on mobile */
    .header__nav.active .nav__list {
        display: none;
    }

    /* Show mobile flat list */
    .header__nav.active .nav__list-mobile {
        display: flex;
        flex-direction: column;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .nav__list-mobile > li {
        position: relative;
    }

    .nav__list-mobile > li:not(:last-child)::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 5%;
        right: 5%;
        height: 1px;
        background: var(--border-color);
    }

    .nav__list-mobile a {
        display: block;
        padding: 14px 20px;
        font-size: var(--text-base);
        font-weight: var(--font-weight-medium);
        text-align: center;
        color: var(--text-secondary);
        transition: color 0.2s;
    }

    .nav__list-mobile a:hover {
        color: var(--text-primary);
    }

    .nav__list-mobile a.active {
        color: var(--accent-secondary);
    }

    /* ---- 2-column mode (>10 items) ---- */
    .nav__list-mobile--two-col {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }

    .nav__list-mobile--two-col > li:not(:last-child)::after {
        left: 8px;
        right: 8px;
    }

    /* Hide dividers on the last row */
    .nav__list-mobile--two-col > li:nth-last-child(1)::after,
    .nav__list-mobile--two-col > li:nth-last-child(2)::after {
        display: none;
    }

    .nav__list-mobile--two-col a {
        padding: 12px 10px;
        font-size: var(--text-sm);
    }

    .header__nav.active .header__mobile-buttons {
        display: flex;
        margin-top: 8px;
        padding: 0 20px;
    }

    .hamburger {
        display: block;
    }
}

@media (max-width: 992px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
    
    .hero__title {
        font-size: 2.2rem;
    }
    
    .footer__columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer__links-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .hero {
        padding: 15px 0 0;
    }
    
    .hero__box {
        padding: 30px 20px;
        border-radius: var(--radius-sm);
    }
    
    .hero__title {
        font-size: 1.4rem;
    }
    
    .btn--bonus,
    .btn--register-sm {
        padding: 10px 22px;
        font-size: var(--text-sm);
    }
    
    .game-card__play {
        width: 50px;
        height: 50px;
    }
    
    .game-card__play::before {
        border-width: 10px 0 10px 16px;
    }
    
    .game-card__title {
        font-size: 0.8rem;
        padding: 10px 8px;
    }
    
    .main {
        padding-bottom: 80px;
    }
    
    .footer {
        padding-bottom: 70px;
    }
    
    .footer__columns {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .footer__links-row {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    
    .footer__badges {
        justify-content: center;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer__providers-wrapper {
        padding: 20px 0;
    }
    
    .footer__providers {
        gap: 20px;
        justify-content: flex-start;
        padding: 0 15px;
    }
    
    .footer__provider-logo {
        height: 24px;
    }
    
    .games-section__title {
        font-size: var(--text-2xl);
    }
    
    .main h1 {
        font-size: var(--text-2xl);
    }
    
    .main h2 {
        font-size: var(--text-xl);
    }

    /* Banner mobile */
    .banner__desktop {
        display: none;
    }
    .banner__mobile {
        display: block;
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: top;
        background: var(--bg-banner);
    }

    /* Floating buttons visible on mobile */
    .floating-buttons {
        display: flex;
        gap: 10px;
    }

    /* 404 page */
    .error-page__code {
        font-size: 5rem;
    }

    /* FAQ mobile */
    .faq-question h3 {
        font-size: var(--text-md);
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 1.5rem;
    }
    
    .floating-bar__text {
        font-size: 0.8rem;
    }
    
    .floating-bar__btn {
        padding: 8px 18px;
        font-size: 0.8rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .games-grid {
        gap: 10px;
    }
}
