:root {
    --bg-main: #002b2b;
    --bg-darker: #001a1a;
    --bg-card: #003a3a;
    --accent-gold: #d4af37;
    --accent-gold-dark: #b8860b;
    --text-white: #ffffff;
    --text-muted: #8cabab;
    --sidebar-width: 240px;
    --border-radius: 24px;
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Jost', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-main);
    color: var(--text-white);
    overflow-x: hidden;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Mobile nav hidden on desktop */
.mobile-nav {
    display: none;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    width: var(--sidebar-width);
    background-color: var(--bg-darker);
    padding: 2rem 1.5rem;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0.5rem 0.9rem;
    color: var(--text-primary);
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    letter-spacing: 0.03em;
}

.lang-switch:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent);
}

.lang-flag {
    font-size: 1.1rem;
}

.lang-label {
    color: var(--accent);
}

.lang-divider {
    color: rgba(255, 255, 255, 0.25);
    margin: 0 0.1rem;
}

.lang-other {
    color: var(--text-muted);
}


.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
    font-family: 'Jost', sans-serif;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.2rem;
}

.logo-brand {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5rem;
    color: var(--text-muted);
    margin-top: -0.5rem;
    margin-left: 0.5rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex-grow: 1;
    overflow-y: hidden;
}

.sidebar-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.7rem 0.8rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-item i {
    font-style: normal;
    font-size: 1.1rem;
}

.nav-item:hover,
.nav-item.active {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.05);
}

.nav-item.active {
    background-color: var(--bg-card);
    box-shadow: inset 0 0 10px rgba(212, 175, 55, 0.1);
}

.nav-item.special {
    background: linear-gradient(90deg, #004d4d 0%, #002b2b 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
}

.sidebar-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 700;
}

.lang-switch {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    flex-grow: 1;
    padding: 2rem;
    position: relative;
    overflow-x: hidden;
}

/* Header */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.search-bar input {
    background-color: var(--bg-darker);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    width: 300px;
    outline: none;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-login {
    background-color: transparent;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-login:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-register,
.btn-primary {
    background: var(--gradient-gold);
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-register:hover,
.btn-primary:hover {
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.5);
    transform: translateY(-3px);
}

/* Hero Section */
.hero-section {
    margin-bottom: 3rem;
}

.banners-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
}

.hero-banner {
    width: 100%;
    height: 380px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.secondary-banner {
    height: 380px;
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 43, 43, 0.95) 0%, rgba(0, 43, 43, 0.2) 100%);
    display: flex;
    align-items: center;
    padding: 3rem;
}

.hero-content {
    max-width: fit-content;
    display: flex;
    flex-direction: column;
}

.hero-content .badge {
    margin-bottom: 0.8rem;
    width: fit-content;
}

.hero-actions {
    margin-top: 1.2rem;
}

.hero-content h1 {
    font-family: 'Jost', sans-serif;
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.2rem;
    color: var(--text-white);
    white-space: nowrap;
}

.hero-content h2 {
    font-family: 'Jost', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    white-space: nowrap;
}

.hero-content p {
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
    opacity: 0.95;
    letter-spacing: 0.05rem;
    font-weight: 600;
}

.accent-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-sm {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

/* Categories Section */
.categories-section {
    margin-bottom: 2rem;
}

.categories-tabs {
    display: flex;
    gap: 1rem;
    background-color: var(--bg-darker);
    padding: 0.5rem;
    border-radius: 40px;
    width: fit-content;
}

.tab-item {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.8rem 2rem;
    border-radius: 35px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-item.active {
    background-color: var(--bg-card);
    color: var(--text-white);
}

/* Section Common */
.section-container {
    margin-bottom: 3.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title-left {
    font-size: 1.6rem;
    font-weight: 800;
    font-family: 'Jost', sans-serif;
}

.view-all {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s;
}

.view-all:hover {
    color: var(--accent-gold);
}

/* Games Grid — horizontal scroll row */
.games-grid {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    padding-bottom: 0.5rem;
    /* room for shadow */
}

/* On narrow viewports we switch to a fixed grid so cards remain a good size
   and show two rows of three games (no horizontal scroll). */
@media (max-width: 768px) {
    .games-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        overflow-x: visible;
    }
}

.games-grid::-webkit-scrollbar {
    display: none;
}

/* Chrome/Safari */


.game-card {
    position: relative;
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    aspect-ratio: 4 / 3;
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--accent-gold);
}

.game-img {
    width: 100%;
    height: 100%;
}

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

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.game-card-footer {
    display: none;
}

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

.play-btn {
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.8rem;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
    transform: scale(0.6);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.game-card:hover .play-btn {
    transform: scale(1);
}



/* Live Wins Ticker */
.wins-ticker-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    margin-top: 1.2rem;
}

.wins-ticker-wrapper::before,
.wins-ticker-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.wins-ticker-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-main), transparent);
}

.wins-ticker-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-main), transparent);
}

.wins-ticker-track {
    display: flex;
    gap: 0.8rem;
    width: max-content;
    animation: tickerScroll 45s linear infinite;
}

.wins-ticker-wrapper:hover .wins-ticker-track {
    animation-play-state: paused;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


.win-item {
    background: #111e1e;
    padding: 0.5rem 0.6rem;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
    text-align: left;
    min-width: 0;
}

.win-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.2);
}

.win-game-small {
    width: 80px;
    height: 54px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.win-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
    justify-content: center;
    gap: 0;
}

.win-title {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    margin-bottom: 2px !important;
    letter-spacing: normal;
    text-transform: none;
    line-height: 1.2;
}

.win-user {
    font-size: 11px !important;
    color: #8fa0a0;
    margin-bottom: 6px !important;
    line-height: 1.2;
}

.win-amount {
    background: #00bdaa;
    color: white;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 3px 0 !important;
    border-radius: 8px !important;
    text-align: center;
    width: 100% !important;
    white-space: nowrap;
    line-height: 1.2;
}

/* Hot Games Section */
.hot-games-section {
    margin-top: 3.5rem;
}

.hot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.hot-nav {
    display: flex;
    gap: 15px;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    font-weight: 900;
    transition: color 0.3s ease;
}

.nav-btn:hover {
    color: var(--text-white);
}

.hot-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

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

@media (max-width: 768px) {
    .hot-games-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .hot-card {
        padding: 8px;
        gap: 8px;
    }

    .hot-card-img {
        width: 72px;
        height: 50px;
    }
}

.hot-card {
    background: #111e1e;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hot-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 175, 55, 0.2);
    transform: translateY(-3px);
}

.hot-card-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hot-card-img {
    width: 110px;
    height: 75px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.hot-card-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    justify-content: center;
}

.hot-card-title {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.hot-card-provider {
    color: #8fa0a0;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hot-card-rtp {
    background: #1a2f2f;
    color: #ffaa00;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    padding: 6px 0;
    border-radius: 6px;
    width: 100%;
}

/* Benefits Section (EVA казино преимущества) */
.features-section {
    margin: 5rem 0;
}

.section-title {
    font-family: 'Jost', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 800;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

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

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

.feature-card {
    background: var(--gradient-glass);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3));
    flex-shrink: 0;
    font-weight: 800;
}

.feature-info h3 {
    font-size: 1.35rem;
    margin-bottom: 0.6rem;
    color: var(--text-white);
    font-weight: 700;
}

.feature-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* SEO Section Updates */
.seo-section {
    margin-top: 6rem;
    padding: 4rem;
    background-color: #001f1f;
    border-radius: var(--border-radius);
    line-height: 1.8;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.seo-section h2 {
    font-family: 'Jost', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--accent-gold);
}

.seo-section p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.seo-section strong {
    color: var(--accent-gold);
}

/* Fortune Wheel Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    background-color: #0d1e1e;
    margin: 5% auto;
    width: 500px;
    border-radius: 28px;
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.1);
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 32px;
    font-weight: 300;
    color: #fff;
    cursor: pointer;
    z-index: 10;
}

#wheelContainer {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wheel-main-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 35px;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.wheel-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    border: 12px solid #1a2f2f;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

#wheelCanvas {
    width: 100%;
    height: 100%;
}

#spinBtn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: #fff;
    border: 6px solid #d4af37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    color: #002b2b;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.wheel-pointer {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 40px solid #d4af37;
    z-index: 5;
}

#winContent {
    padding: 2.5rem 2rem 2rem;
    align-items: center;
    justify-content: center;
}

.win-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.win-bonus-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.win-result {
    font-size: 5.5rem;
    font-weight: 900;
    color: #d4af37;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
    margin: 15px 0 10px 0;
}

.win-desc {
    font-size: 0.95rem;
    color: var(--text-white);
    line-height: 1.5;
    margin-bottom: 25px;
    text-align: center;
    max-width: 90%;
}

.btn-win-activate {
    padding: 1.1rem 2rem;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 40px;
    width: 80%;
    max-width: 300px;
    text-align: center;
    justify-content: center;
}

/* Floating Spinner */
.floating-wheel-btn {
    position: fixed;
    right: 40px;
    bottom: 40px;
    z-index: 999;
    cursor: pointer;
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
}

.spin-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--gradient-gold);
    border-radius: 50%;
    padding: 4px;
    animation: bounceSpin 2.5s infinite ease-in-out;
}

.spin-icon-inner {
    width: 100%;
    height: 100%;
    background: #002b2b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
}

.spin-btn-label {
    margin-top: 10px;
    background: #d4af37;
    color: #000;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 900;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

@keyframes bounceSpin {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .wheel-wrapper {
        width: 300px;
        height: 300px;
    }

    .wheel-main-title {
        font-size: 1.8rem;
    }
}

/* Auth Modal Specifics */
#authModal {
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-modal-content {
    background: #111e1e;
    max-width: 400px;
    width: 100% !important;
    margin: 0 !important;
    padding: 2.5rem 2rem 2.5rem !important;
    /* Normal uniform padding */
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    position: relative;
    flex-shrink: 0;
    /* Prevents Firefox/Chrome from squishing the container height */
}

.auth-modal-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.auth-modal-title {
    font-family: 'Jost', sans-serif;
    font-size: 1.8rem;
    color: var(--text-white);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.auth-modal-text {
    color: #8fa0a0;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.auth-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-modal-buttons .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.close-auth-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #8fa0a0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-auth-modal:hover {
    color: var(--text-white);
}

/* Global Responsive Final Adjustments */
@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
        padding: 2rem 0.5rem;
    }

    .sidebar .logo-brand,
    .sidebar .logo-text,
    .sidebar .nav-item span,
    .sidebar .sidebar-label {
        display: none;
    }

    .main-content {
        margin-left: 80px;
        width: calc(100% - 80px);
    }
}

/* ============================
   MOBILE (≤768px)
   ============================ */
@media (max-width: 768px) {

    /* Hide sidebar entirely, show bottom nav */
    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding-bottom: 70px;
        /* space for bottom nav */
    }

    /* ---- Bottom Navigation Bar ---- */
    .mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--bg-darker);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 200;
        padding: 0.5rem 0 0.4rem;
        justify-content: space-around;
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        font-size: 0.6rem;
        color: var(--text-muted);
        text-decoration: none;
        cursor: pointer;
        background: none;
        border: none;
        padding: 0 0.5rem;
    }

    .mobile-nav-item.active {
        color: var(--accent, #00bdaa);
    }

    .mobile-nav-item .mob-icon {
        font-size: 1.3rem;
        line-height: 1;
    }

    /* ---- Top Header ---- */
    .top-header {
        flex-direction: column;
        gap: 0.6rem;
        padding: 0.8rem 1rem;
    }

    .search-bar {
        width: 100%;
    }

    .search-bar input {
        width: 100%;
    }

    .auth-buttons {
        display: flex;
        gap: 0.5rem;
        width: 100%;
    }

    .auth-buttons .btn {
        flex: 1;
        text-align: center;
        padding: 0.5rem 0.5rem;
        font-size: 0.8rem;
    }

    /* ---- Hero Banners ---- */
    .banners-container {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .hero-banner,
    .hero-banner.primary-banner,
    .hero-banner.secondary-banner {
        width: 100%;
        height: 200px;
        min-height: unset;
    }

    .hero-overlay {
        padding: 1.2rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
        white-space: normal;
    }

    .hero-content h2 {
        font-size: 1.3rem;
    }

    .hero-content p {
        font-size: 0.72rem;
    }

    .badge {
        font-size: 0.58rem;
    }

    /* ---- Category Tabs ---- */
    .categories-tabs {
        gap: 0.4rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
        padding-bottom: 0.3rem;
    }

    .categories-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-item {
        padding: 0.5rem 0.9rem;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    /* ---- Section headers ---- */
    .section-container {
        padding: 1rem;
    }

    .section-title-left {
        font-size: 1.1rem;
    }

    /* ---- Games Grid ---- */
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    /* ---- Wins Ticker ---- */
    .win-item {
        min-width: 150px;
        padding: 0.5rem 0.7rem;
        gap: 0.5rem;
    }

    .win-game-small {
        width: 48px;
        height: 48px;
    }

    .win-title {
        font-size: 0.7rem;
    }

    .win-amount {
        font-size: 0.78rem;
    }

    /* ---- Hot Games Grid – force single column, prevent overflow ---- */
    .hot-games-grid {
        grid-template-columns: 1fr !important;
        gap: 0.6rem;
    }

    .hot-card {
        overflow: hidden;
    }

    .hot-card-img {
        width: 72px;
        height: 50px;
        flex-shrink: 0;
    }

    .hot-card-provider {
        font-size: 0.65rem;
    }

    .hot-card-rtp {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }

    /* ---- Features Grid ---- */
    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.7rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .feature-icon {
        font-size: 1.4rem;
    }

    .feature-info h3 {
        font-size: 0.85rem;
    }

    .feature-info p {
        font-size: 0.72rem;
    }

    /* ---- SEO Section ---- */
    .seo-section {
        padding: 1.2rem 1rem;
        font-size: 0.85rem;
    }

    /* ---- Floating Spin Btn ---- */
    .floating-wheel-btn {
        bottom: 80px;
        /* above bottom nav */
        right: 12px;
    }

    /* ---- Modals ---- */
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1.2rem;
    }

    #wheelCanvas {
        width: 280px !important;
        height: 280px !important;
    }
}

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

    .hot-games-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .hero-content h1 {
        font-size: 1.3rem;
    }
}