/* GamesKilo.com Core Stylesheet - Dark Gaming Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;700;800;900&display=swap');

:root {
    --bg-main: #050610;
    --bg-surface: #0a0b22;
    --bg-surface-high: #141738;
    --bg-surface-lowest: #020308;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(255, 255, 255, 0.16);
    
    --primary: #6366f1; /* refined indigo */
    --primary-hover: #818cf8;
    --primary-glow: transparent;
    --primary-bg: rgba(99, 102, 241, 0.08);
    
    --secondary: #4f46e5;
    --accent-cyan: #38bdf8; /* sky blue */
    --accent-cyan-glow: transparent;
    --accent-green: #10b981;
    --accent-yellow: #f59e0b;
    
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #4f5e75;
    
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --sidebar-width: 240px;
    --sidebar-collapsed-width: 72px;
    --header-height: 60px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    
    --border-radius-lg: 14px;
    --border-radius-md: 10px;
    --border-radius-sm: 6px;
    
    --box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Reset and Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
}

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

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
    transition: var(--transition);
}

input, textarea, select {
    font-family: inherit;
    outline: none;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color-hover);
    border-radius: var(--border-radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Utilities */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius-md);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
}

.btn--primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn--primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.btn--secondary {
    background: var(--bg-surface-high);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

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

.btn--accent {
    background: var(--primary);
    border: 1px solid var(--primary-hover);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn--accent:hover {
    transform: scale(1.02);
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
}

.header__left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.burger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    padding: 6px;
    border-radius: var(--border-radius-sm);
}

.burger-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

/* Custom SVG / Styled Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -0.5px;
    user-select: none;
}

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

.logo__games {
    color: #fff;
}

.logo__icon {
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: white;
}

.header__center {
    flex: 1;
    max-width: 480px;
    margin: 0 20px;
    position: relative;
}

.search-bar {
    width: 100%;
    position: relative;
}

.search-input {
    width: 100%;
    background-color: var(--bg-surface-lowest);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 10px 16px 10px 42px;
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    background: var(--bg-surface-high);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    width: 18px;
    height: 18px;
}

/* Search Dropdown Results */
.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow);
    max-height: 320px;
    overflow-y: auto;
    z-index: 120;
    display: none;
}

.search-results.active {
    display: block;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover {
    background: var(--bg-surface-high);
}

.search-item__thumb {
    width: 48px;
    height: 36px;
    border-radius: var(--border-radius-sm);
    background-size: cover;
    background-position: center;
}

.search-item__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.search-item__cat {
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: auto;
}

.header__right {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Navigation Layout */
.layout {
    display: flex;
    flex: 1;
    padding-top: var(--header-height);
}

/* Sidebar styling matching CrazyGames */
.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-collapsed-width);
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 90;
    transition: var(--transition);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar:hover, .sidebar--open {
    width: var(--sidebar-width);
}

.sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 8px;
}

.sidebar__link {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 14px;
    border-radius: var(--border-radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    transition: var(--transition);
}

.sidebar__link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.sidebar__link--active {
    background-color: var(--primary-bg);
    color: var(--text-primary);
    border-left: 3px solid var(--primary);
    padding-left: 11px;
}

.sidebar__icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.sidebar__text {
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
}

.sidebar:hover .sidebar__text, .sidebar--open .sidebar__text {
    opacity: 1;
}

.sidebar__separator {
    height: 1px;
    background: var(--border-color);
    margin: 8px 16px;
    opacity: 0.5;
}

.sidebar__header {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    padding: 8px 16px;
    letter-spacing: 1px;
    white-space: nowrap;
    display: none;
}

.sidebar:hover .sidebar__header, .sidebar--open .sidebar__header {
    display: block;
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-collapsed-width);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    transition: var(--transition);
    max-width: 100%;
}

@media (min-width: 1024px) {
    .sidebar:hover ~ .main-content {
        margin-left: var(--sidebar-width);
    }
}

/* Hero Section */
.hero-slider {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(10, 11, 25, 0.9) 100%), url('../img/img_02_enhanced.webp') no-repeat center center;
    background-size: cover;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    min-height: 280px;
    position: relative;
    overflow: hidden;
}

.hero-slider::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.hero-slider__title {
    font-size: 32px;
    font-weight: 900;
    line-height: 1.2;
    max-width: 600px;
    color: #ffffff;
}

.hero-slider__subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 500px;
}

.hero-slider__actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

/* Category Chips / Vibes */
.vibes-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vibes-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

.vibe-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition);
}

.vibe-chip:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.vibe-chip--active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Grid Sections */
.section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section__title {
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section__link {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-hover);
}

.section__link:hover {
    text-decoration: underline;
    color: #fff;
}

/* Bento Grid */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
}

@media (min-width: 640px) {
    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (min-width: 1024px) {
    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    }
}

/* Game Card */
.game-card {
    position: relative;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: var(--transition);
}

.game-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--primary-hover);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.game-card__img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.game-card:hover .game-card__img {
    transform: scale(1.08);
}

.game-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--secondary);
    color: white;
    padding: 3px 8px;
    border-radius: var(--border-radius-sm);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.game-card__badge--hot {
    background: #ef4444;
}

.game-card__badge--new {
    background: var(--accent-green);
}

.game-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0.85;
    transition: var(--transition);
    z-index: 1;
}

.game-card:hover .game-card__overlay {
    opacity: 0.95;
    background: rgba(0, 0, 0, 0.9);
}

.game-card__title {
    position: absolute;
    bottom: 8px;
    left: 12px;
    right: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    z-index: 2;
}

.game-card:hover .game-card__title {
    font-size: 13px;
}

.game-card__play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
    z-index: 3;
}

.game-card:hover .game-card__play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.game-card__play-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    margin-left: 2px;
}

/* Bento grid sizing styles */
.game-grid--bento {
    grid-template-rows: repeat(2, minmax(130px, auto));
}

.game-card--bento-2x2 {
    grid-column: span 2;
    grid-row: span 2;
}

.game-card--bento-2x1 {
    grid-column: span 2;
}

/* Category Grid list at bottom */
.cat-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.cat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: var(--border-radius-md);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.cat-card:hover {
    background: var(--bg-surface-high);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cat-card__emoji {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
    transition: var(--transition);
}

.cat-card:hover .cat-card__emoji {
    transform: scale(1.15) rotate(5deg);
}

.cat-card__name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Split Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 1024px) {
    .split-layout {
        grid-template-columns: 3fr 1fr;
    }
}

.split-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.split-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Mini games sidebar list */
.mini-games-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mini-game-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    transition: var(--transition);
}

.mini-game-item:hover {
    background: var(--bg-surface-high);
    border-color: var(--primary);
    transform: translateX(3px);
}

.mini-game-item__thumb {
    width: 64px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.mini-game-item__info {
    flex: 1;
    min-width: 0;
}

.mini-game-item__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.mini-game-item__meta {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.mini-game-item__rating {
    color: var(--accent-yellow);
    font-weight: 700;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-badge {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.tag-badge:hover {
    border-color: var(--primary);
    color: var(--text-primary);
    background: var(--primary-bg);
}

/* SEO Description Block */
.seo-description {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    margin-top: 16px;
}

.seo-description h2 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.seo-description h3 {
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--primary-hover);
}

.seo-description p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 14px;
}

.seo-description p:last-child {
    margin-bottom: 0;
}

/* Game Detail Page Layout */
.game-play-area {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.game-frame-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    max-height: 640px;
    background-color: #000;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
}

.game-frame-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Control Bar under Game */
.game-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 12px 20px;
    gap: 16px;
    flex-wrap: wrap;
}

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

.game-controls__title {
    font-size: 18px;
    font-weight: 800;
}

.game-controls__rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    font-weight: 700;
}

.game-controls__star {
    color: var(--accent-yellow);
}

.game-controls__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--bg-surface-high);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    font-weight: 700;
    transition: var(--transition);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: var(--border-color-hover);
}

.control-btn--active {
    color: var(--primary-hover);
    border-color: var(--primary);
    background: var(--primary-bg);
}

.control-btn svg {
    width: 16px;
    height: 16px;
}

/* Category header banner */
.cat-banner {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(10, 11, 25, 0.95) 100%), var(--bg-img) no-repeat center center;
    background-size: cover;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cat-banner__title {
    font-size: 28px;
    font-weight: 900;
    color: white;
}

.cat-banner__desc {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 600px;
}

/* Static legal text containers */
.content-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
}

.content-card h1 {
    font-size: 32px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.content-card h2 {
    font-size: 20px;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--primary-hover);
}

.content-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.content-card ul, .content-card ol {
    margin-left: 20px;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.content-card li {
    margin-bottom: 8px;
}

/* Auth / Dashboard panels */
.auth-container {
    max-width: 480px;
    width: 100%;
    margin: 40px auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--box-shadow);
}

.auth-container__title {
    font-size: 26px;
    margin-bottom: 24px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-surface-lowest);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    color: white;
    font-size: 14px;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--primary);
    background: var(--bg-surface-high);
}

/* Footer styling */
.footer {
    background-color: var(--bg-surface-lowest);
    border-top: 1px solid var(--border-color);
    padding: 48px 24px 24px;
    margin-top: auto;
}

.footer__container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .footer__top {
        grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr;
    }
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer__desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 380px;
}

.footer__title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-hover);
}

.footer__links-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__link {
    font-size: 13px;
    color: var(--text-secondary);
}

.footer__link:hover {
    color: #fff;
    transform: translateX(2px);
}

.footer__bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

@media (min-width: 768px) {
    .footer__bottom {
        flex-direction: row;
    }
}

.footer__copy {
    font-size: 12px;
    color: var(--text-muted);
}

.footer__disclaimer {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: var(--border-radius-md);
}

/* Mobile Sidebar Overlays */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar--open {
        transform: translateX(0);
        width: var(--sidebar-width);
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 16px;
    }
    
    .header__center {
        display: none; /* simple mobile behavior, can expand on tap */
    }
    
    .hero-slider {
        padding: 24px;
    }
    
    .hero-slider__title {
        font-size: 22px;
    }
    
    .content-card {
        padding: 24px;
    }
}

/* --- Premium Custom Customizations --- */

/* Clean Header */
.header {
    background: var(--bg-surface) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Custom Card Hover Highlight */
.game-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--bg-surface);
    transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.25s;
}
.game-card:hover {
    border-color: var(--primary-hover);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* Premium Flat Categories */
.cat-card {
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.cat-card:hover {
    border-color: var(--primary-hover);
    background: var(--bg-surface-high);
}

/* Hero and Roulette Section Grid */
.hero-roulette-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 1024px) {
    .hero-roulette-container {
        grid-template-columns: 2.2fr 1fr;
    }
}

/* Gaming Roulette Block */
.roulette-widget {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}
.roulette-widget__header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.roulette-widget__badge {
    align-self: flex-start;
    font-size: 9px;
    font-weight: 800;
    background: var(--primary-bg);
    color: var(--primary-hover);
    border: 1px solid var(--primary-hover);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.roulette-widget__title {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    margin-top: 2px;
}
.roulette-widget__subtitle {
    font-size: 12px;
    color: var(--text-secondary);
}
.roulette-widget__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    justify-content: center;
}
.roulette-display {
    min-height: 110px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.roulette-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    animation: fadeIn 0.3s ease;
}
.roulette-card__img {
    width: 80px;
    height: 60px;
    border-radius: var(--border-radius-sm);
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
}
.roulette-card__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}
.roulette-card__name {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.roulette-card__cat {
    font-size: 11px;
    color: var(--primary-hover);
    font-weight: 600;
}
.roulette-card__play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 14px !important;
    font-size: 11px !important;
}
.roulette-card--spinning {
    animation: slideDown 0.1s linear infinite;
    opacity: 0.7;
    filter: blur(0.5px);
}
.roulette-card--active {
    animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.roulette-btn {
    width: 100%;
    padding: 12px !important;
    font-size: 13px !important;
}

/* Live Activity Feed */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    transition: var(--transition);
}
.activity-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-color-hover);
}
.activity-item--new {
    animation: itemSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.activity-item__pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    margin-top: 5px;
    box-shadow: 0 0 4px var(--accent-green);
    animation: livePulse 2s infinite;
}
.activity-item__details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
    min-width: 0;
}
.activity-item__text {
    color: var(--text-secondary);
    line-height: 1.4;
}
.activity-item__text strong {
    color: #fff;
}
.activity-item__text em {
    color: var(--primary-hover);
    font-style: normal;
    font-weight: 600;
}
.activity-item__time {
    font-size: 10px;
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes popIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0.5; }
    to { transform: translateY(20px); opacity: 0.5; }
}
@keyframes itemSlideIn {
    from { transform: translateY(-15px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes livePulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}