/* ===== Modern / Professional polish layer ===== */

:root {
    --bg-primary: #080808;
    --bg-secondary: #0f0f10;
    --bg-elevated: #141416;
    --bg-card: #18181b;
    --bg-card-hover: #1f1f23;
    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-sidebar: rgba(255, 255, 255, 0.06);
    --purple: #9333ea;
    --purple-hover: #a855f7;
    --purple-glow: rgba(147, 51, 234, 0.35);
    --accent-lime: #b7ff00;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

::selection {
    background: rgba(147, 51, 234, 0.35);
    color: #fff;
}

body {
    background: var(--bg-primary);
    letter-spacing: -0.01em;
}

.app-content {
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(147, 51, 234, 0.08), transparent 55%),
        var(--bg-primary);
}

/* — Top bar — */
.topbar {
    background: rgba(8, 8, 8, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 28px 0 24px;
}

.logo-text {
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.logo-dot {
    color: var(--purple-hover);
}

.btn-login {
    font-weight: 600;
    padding: 9px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.03);
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

button.btn-login,
button.btn-register {
    font-family: inherit;
    cursor: pointer;
}

.btn-login:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.btn-register {
    font-weight: 700;
    padding: 10px 24px;
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 50%, #6d28d9 100%);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-register:hover {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 50%, #7c3aed 100%);
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.45);
    transform: translateY(-1px);
}

.user-greeting {
    font-weight: 600;
    color: var(--text-secondary);
}

/* — Sidebar — */
.sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-sidebar);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.02);
}

.sidebar-header {
    border-bottom: 1px solid var(--border-subtle);
}

.sidebar-toggle:hover,
.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

.sidebar-promo {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.sidebar-promo:hover {
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.2);
}

.navigation-group__label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.navigation-link {
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    gap: 10px;
}

.navigation-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

.navigation-link.active {
    background: rgba(163, 38, 255, 0.08);
    color: #fff;
}

/* — Main content scroll area is full width; content width lives in .page-content-inner — */

/* — Hero — */
.hero-banner--image {
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-subtle);
}

.hero-full-image {
    border-radius: var(--radius-lg);
}

/* — Section headers — */
.list-section__title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.big-win-card__thumb {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.big-win-card:hover .big-win-card__thumb {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.big-win-card__amount {
    color: var(--accent-lime);
}

.btn-view-all {
    font-weight: 700;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.03);
    transition: all var(--transition);
}

.btn-view-all:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.btn-nav {
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.03);
    transition: all var(--transition);
}

.btn-nav:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.lists-container {
    gap: 40px;
}

.list-section__header {
    margin-bottom: 16px;
}

/* — Game tiles — */
.game-tile__cover {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), border-color var(--transition);
}

.game-tile--original .game-tile__cover {
    border-color: rgba(163, 38, 255, 0.22);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.game-tile:hover .game-tile__cover {
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 255, 255, 0.1);
}

.game-tile--original:hover .game-tile__cover {
    border-color: rgba(163, 38, 255, 0.45);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.game-tile__play-icon {
    backdrop-filter: blur(4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.game-tile__provider {
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

/* — Live bets — */
.live-bets {
    margin-top: 44px;
    padding-top: 8px;
    border-top: 1px solid var(--border-subtle);
}

.live-bets__tab {
    font-weight: 700;
    border-radius: var(--radius-sm);
}

.live-bets__tab.active {
    background: var(--bg-card);
    box-shadow: inset 0 0 0 1px var(--border-subtle);
}

.live-bets__row {
    background: var(--bg-card);
    border: 1px solid transparent;
    transition: background var(--transition), border-color var(--transition);
}

.live-bets__row:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-subtle);
}

.live-bets__val--win {
    color: var(--accent-lime);
}

/* — Games library — */
.games-library__header h1 {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.games-library__sub {
    font-size: 15px;
    line-height: 1.6;
}

.provider-tab {
    font-weight: 700;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

.provider-tab:hover {
    border-color: rgba(147, 51, 234, 0.35);
    background: var(--bg-card-hover);
}

.provider-tab.active {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(124, 58, 237, 0.12));
    border-color: rgba(147, 51, 234, 0.5);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.2);
}

.provider-tab__count {
    font-weight: 800;
    background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
    .games-library__title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(128px, 148px));
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }
}

/* — Races — */
.race-hero {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.podium-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

.lb-row {
    background: var(--bg-card);
    border: 1px solid transparent;
}

.lb-row:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-subtle);
}

/* — Auth — */
.auth-page {
    background:
        radial-gradient(ellipse 70% 45% at 50% 0%, rgba(147, 51, 234, 0.06), transparent 60%),
        var(--bg-primary);
}

.auth-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
}

.auth-card h1 {
    font-weight: 900;
    letter-spacing: -0.02em;
}

.auth-form input {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: rgba(0, 0, 0, 0.25);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.auth-form input:focus {
    border-color: rgba(147, 51, 234, 0.5);
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.15);
    outline: none;
}

/* — Footer — */
.site-footer {
    margin-top: 56px;
    padding-top: 40px;
}

.site-footer__crypto-pill {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: border-color var(--transition), background var(--transition);
}

.site-footer__crypto-pill:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.1);
}

.site-footer__social-link {
    border: 1px solid rgba(147, 51, 234, 0.22);
    background: rgba(147, 51, 234, 0.06);
}

.site-footer__social-link:hover {
    border-color: rgba(147, 51, 234, 0.4);
    box-shadow: 0 0 16px rgba(147, 51, 234, 0.2);
}

/* — Chat FAB — */
.chat-fab {
    background: linear-gradient(135deg, #9333ea, #7c3aed);
    box-shadow: 0 8px 28px rgba(124, 58, 237, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.chat-fab:hover {
    box-shadow: 0 12px 36px rgba(124, 58, 237, 0.55);
}

/* — Game play (full bleed) — */
.main-content.game-play-page {
    max-width: none;
    padding: 0 !important;
    margin: 0;
    overflow: hidden;
}

/* — Game play (full bleed) end — */

@media (max-width: 900px) {
    .topbar {
        padding: 0 16px;
    }
}
