/* ===================================
   GALAXY SPIN - MAIN STYLESHEET
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Roboto:wght@300;400;500;700&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-primary: #0B0E1B;
    --bg-secondary: #111526;
    --bg-sidebar: #0D1120;
    --bg-card: #161B2E;
    --bg-card-hover: #1E2540;
    --accent-yellow: #E9E228;
    --accent-yellow-dark: #c9c215;
    --accent-blue: #16A7E0;
    --accent-purple: #9C27B0;
    --accent-green: #00C853;
    --accent-orange: #FF6D00;
    --text-primary: #FFFFFF;
    --text-secondary: #8A93B2;
    --text-muted: #5A637A;
    --border-color: #1E2540;
    --neon-glow-yellow: 0 0 10px rgba(233, 226, 40, 0.5), 0 0 20px rgba(233, 226, 40, 0.3);
    --neon-glow-blue: 0 0 10px rgba(22, 167, 224, 0.5), 0 0 20px rgba(22, 167, 224, 0.3);
    --neon-glow-purple: 0 0 10px rgba(156, 39, 176, 0.5), 0 0 20px rgba(156, 39, 176, 0.3);
    --sidebar-width: 230px;
    --sidebar-collapsed-width: 64px;
    --header-height: 60px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

button {
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    border: none;
    outline: none;
}

input,
select {
    font-family: 'Montserrat', sans-serif;
    outline: none;
}

/* ===================================
   SCROLLBAR
   =================================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ===================================
   LAYOUT
   =================================== */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ===================================
   SIDEBAR
   =================================== */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    overflow: hidden;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 12px;
    border-bottom: 1px solid var(--border-color);
    min-height: var(--header-height);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-logo .logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-yellow), #d4cc00);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--neon-glow-yellow);
    font-size: 18px;
    font-weight: 900;
    color: #000;
}

.sidebar-logo .logo-text {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--accent-yellow);
    text-shadow: var(--neon-glow-yellow);
    transition: var(--transition);
    opacity: 1;
}

.sidebar.collapsed .logo-text {
    opacity: 0;
    width: 0;
}

.sidebar-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sidebar-toggle:hover {
    background: var(--accent-yellow);
    color: #000;
    border-color: var(--accent-yellow);
    box-shadow: var(--neon-glow-yellow);
    transform: scale(1.1);
}

.sidebar.collapsed .sidebar-toggle {
    transform: rotate(180deg);
}

.sidebar-nav {
    flex: 1;
    padding: 10px 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-section-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 12px 16px 6px;
    white-space: nowrap;
    transition: var(--transition);
}

.sidebar.collapsed .sidebar-section-label {
    opacity: 0;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    border-left: 3px solid transparent;
    white-space: nowrap;
    position: relative;
}

.sidebar-nav-item:hover,
.sidebar-nav-item.active {
    color: var(--accent-yellow);
    background: rgba(233, 226, 40, 0.05);
    border-left-color: var(--accent-yellow);
}

.sidebar-nav-item .nav-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.sidebar-nav-item .nav-label {
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    opacity: 1;
}

.sidebar.collapsed .nav-label {
    opacity: 0;
    width: 0;
}

.sidebar-nav-item .nav-badge {
    margin-left: auto;
    background: var(--accent-yellow);
    color: #000;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    transition: var(--transition);
}

.sidebar.collapsed .nav-badge {
    opacity: 0;
}

.sidebar-nav-item .nav-arrow {
    margin-left: auto;
    font-size: 10px;
    transition: var(--transition);
}

.sidebar.collapsed .nav-arrow {
    opacity: 0;
}

.sidebar-nav-item.has-dropdown.open .nav-arrow {
    transform: rotate(90deg);
}

.sidebar-dropdown {
    display: none;
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-dropdown.open {
    display: block;
}

.sidebar-dropdown .sidebar-nav-item {
    padding-left: 48px;
    font-size: 12px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

.sidebar-social {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.sidebar.collapsed .sidebar-social {
    flex-direction: column;
    align-items: center;
}

.social-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 12px;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--accent-yellow);
    color: #000;
    border-color: var(--accent-yellow);
}

/* ===================================
   MAIN CONTENT
   =================================== */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

.main-content.sidebar-collapsed {
    margin-left: var(--sidebar-collapsed-width);
}

/* ===================================
   HEADER / TOPBAR
   =================================== */
.topbar {
    height: var(--header-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 16px;
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.topbar-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-transform: uppercase;
    border: 2px solid transparent;
}

.topbar-nav-item.purple {
    border-color: #9C27B0;
    color: #CE93D8;
}

.topbar-nav-item.purple:hover {
    background: rgba(156, 39, 176, 0.15);
    box-shadow: 0 0 10px rgba(156, 39, 176, 0.3);
}

.topbar-nav-item.orange {
    border-color: #FF6D00;
    color: #FFAB40;
}

.topbar-nav-item.orange:hover {
    background: rgba(255, 109, 0, 0.15);
    box-shadow: 0 0 10px rgba(255, 109, 0, 0.3);
}

.topbar-nav-item.teal {
    border-color: #00BCD4;
    color: #80DEEA;
}

.topbar-nav-item.teal:hover {
    background: rgba(0, 188, 212, 0.15);
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.3);
}

.topbar-nav-item .item-icon {
    font-size: 14px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-heart {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(233, 30, 99, 0.15);
    border: 1px solid rgba(233, 30, 99, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F48FB1;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.topbar-heart:hover {
    background: rgba(233, 30, 99, 0.3);
    box-shadow: 0 0 10px rgba(233, 30, 99, 0.4);
}

.btn-signin {
    background: var(--accent-yellow);
    color: #000;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    padding: 8px 20px;
    border-radius: 6px;
    transition: var(--transition);
    text-transform: uppercase;
}

.btn-signin:hover {
    background: var(--accent-yellow-dark);
    box-shadow: var(--neon-glow-yellow);
    transform: translateY(-1px);
}

.btn-signup {
    background: transparent;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    padding: 7px 20px;
    border-radius: 6px;
    border: 2px solid #2A3255;
    transition: var(--transition);
    text-transform: uppercase;
}

.btn-signup:hover {
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
    box-shadow: var(--neon-glow-yellow);
    transform: translateY(-1px);
}

/* Mobile hamburger - hidden on desktop by default */
.mobile-menu-btn {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--accent-yellow);
    color: #000;
    border-color: var(--accent-yellow);
}

/* ===================================
   PAGE CONTENT
   =================================== */
.page-content {
    flex: 1;
    padding: 0;
    min-width: 0;
    max-width: 100%;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
    padding: 10px 20px;
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.hero-slider-wrapper {
    flex: 0 0 500px;
    height: 160px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.hero-section>.hero-banner {
    flex: 1;
    min-width: 0;
    min-height: 160px;
}

.hero-banner {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 16px;
    min-width: 0;
    /* Allow grid items to shrink */
}

.hero-slider-wrapper {
    width: 500px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.hero-slider {
    display: flex;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.hero-slide {
    flex: 0 0 500px;
    width: 500px;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-banner-1 {
    background: linear-gradient(135deg, #0D4F8F 0%, #1565C0 40%, #0277BD 70%, #01579B 100%);
}

.hero-banner-2 {
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 40%, #43A047 70%, #1B5E20 100%);
}

.hero-banner-3 {
    background: linear-gradient(135deg, #E65100 0%, #F57C00 40%, #FB8C00 70%, #E65100 100%);
}

.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 20px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--accent-yellow);
    width: 24px;
    border-radius: 4px;
    box-shadow: var(--neon-glow-yellow);
}

.hero-banner-middle {
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 40%, #43A047 70%, #1B5E20 100%);
    border: 1px solid rgba(67, 160, 71, 0.3);
}

.hero-banner-right {
    background: linear-gradient(135deg, #4A148C 0%, #7B1FA2 40%, #9C27B0 70%, #6A1B9A 100%);
    border: 1px solid rgba(156, 39, 176, 0.3);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    width: fit-content;
}

.hero-title {
    font-size: 22px;
    font-weight: 900;
    line-height: 1.2;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-title .highlight-yellow {
    color: var(--accent-yellow);
    text-shadow: var(--neon-glow-yellow);
}

.hero-subtitle {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    line-height: 1.4;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    width: fit-content;
}

.hero-btn-yellow {
    background: var(--accent-yellow);
    color: #000;
}

.hero-btn-yellow:hover {
    background: var(--accent-yellow-dark);
    box-shadow: var(--neon-glow-yellow);
    transform: translateY(-2px);
}

.hero-btn-white {
    background: rgba(255, 255, 255, 0.9);
    color: #4A148C;
}

.hero-btn-white:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.hero-decoration {
    position: absolute;
    right: -20px;
    top: -20px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.hero-decoration-2 {
    position: absolute;
    right: 60px;
    bottom: -40px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.hero-coins {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
    opacity: 0.3;
}

/* ===================================
   DEPOSIT FORM
   =================================== */
.deposit-section {
    padding: 0 20px 20px;
    width: 100%;
}

.deposit-form-card {
    background: linear-gradient(145deg, var(--bg-card) 0%, #111526 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    max-width: 1600px;
    margin: 0 auto;
}

.deposit-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-yellow);
    box-shadow: var(--neon-glow-yellow);
}

.deposit-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
}

.deposit-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(233, 226, 40, 0.1);
    color: var(--accent-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 1px solid rgba(233, 226, 40, 0.2);
}

.deposit-title {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.deposit-subtitle {
    font-size: 11px;
    color: var(--text-secondary);
}

.deposit-form-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    flex: 1;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 200px;
    max-width: 250px;
}

.form-group.btn-group {
    flex: 0 0 auto;
    max-width: none;
}

.form-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-select,
.form-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0 16px;
    height: 44px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A93B2' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

.form-select:hover,
.form-input:hover {
    border-color: rgba(233, 226, 40, 0.3);
}

.form-select:focus,
.form-input:focus {
    border-color: var(--accent-yellow);
    box-shadow: 0 0 0 2px rgba(233, 226, 40, 0.1);
    outline: none;
}

.form-select option {
    background: var(--bg-secondary);
    color: #fff;
}

.amount-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-sign {
    position: absolute;
    left: 16px;
    color: var(--accent-yellow);
    font-weight: 700;
    font-size: 14px;
}

.amount-wrapper .form-input {
    padding-left: 32px;
}

.btn-deposit {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, var(--accent-yellow-dark) 100%);
    color: #000;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
    padding: 0 32px;
    height: 44px;
    border-radius: 8px;
    text-transform: uppercase;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-deposit:hover {
    transform: translateY(-2px);
    box-shadow: var(--neon-glow-yellow);
}

@media (max-width: 1024px) {
    .deposit-form-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .deposit-form-grid {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .form-group.btn-group {
        flex: 1;
        margin-top: 10px;
    }

    .btn-deposit {
        width: 100%;
    }
}

/* ===================================
   SECTION HEADERS
   =================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title-icon {
    width: 4px;
    height: 20px;
    background: var(--accent-yellow);
    border-radius: 2px;
    box-shadow: var(--neon-glow-yellow);
}

.section-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-yellow);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-link:hover {
    text-shadow: var(--neon-glow-yellow);
}

/* ===================================
   LIVE GAMES SECTION
   =================================== */
.games-section {
    padding: 0 20px 24px;
}

.games-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 4px;
    width: fit-content;
}

.games-tab {
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.games-tab.active {
    background: var(--accent-yellow);
    color: #000;
    box-shadow: var(--neon-glow-yellow);
}

.games-tab:hover:not(.active) {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    height: 250px;
    display: block;
    text-decoration: none;
    color: inherit;
}

.game-card:hover {
    border-color: var(--accent-yellow);
    box-shadow: 0 8px 25px rgba(233, 226, 40, 0.15);
    transform: translateY(-3px);
}

/* .game-card-featured - Reserved for future specific styling */

.game-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.game-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    padding: 12px;
    opacity: 0;
    transition: var(--transition);
}

.game-card:hover .game-card-overlay {
    opacity: 1;
}

.play-now-btn {
    background: var(--accent-yellow);
    color: #000;
    font-weight: 700;
    font-size: 12px;
    padding: 7px 20px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    text-align: center;
    transition: var(--transition);
}

.play-now-btn:hover {
    background: var(--accent-yellow-dark);
}

.game-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.game-card-name {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.game-card-provider {
    font-size: 10px;
    color: var(--text-muted);
}

.game-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--accent-yellow);
    color: #000;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-card-badge.hot {
    background: #FF3D00;
    color: #fff;
}

.game-card-badge.new {
    background: var(--accent-green);
    color: #fff;
}

/* ===================================
   GAME CARD BACKGROUNDS
   =================================== */
.game-bg-1 {
    background: linear-gradient(135deg, #1a0533, #4a0e8f);
}

.game-bg-2 {
    background: linear-gradient(135deg, #0d2b3e, #0e5f8f);
}

.game-bg-3 {
    background: linear-gradient(135deg, #1a1a00, #4a4a00);
}

.game-bg-4 {
    background: linear-gradient(135deg, #3e0d0d, #8f1a1a);
}

.game-bg-5 {
    background: linear-gradient(135deg, #0d3e1a, #1a8f4a);
}

.game-bg-6 {
    background: linear-gradient(135deg, #0d1a3e, #1a4a8f);
}

.game-bg-7 {
    background: linear-gradient(135deg, #3e1a0d, #8f4a1a);
}

.game-bg-8 {
    background: linear-gradient(135deg, #1a0d3e, #4a1a8f);
}

/* ===================================
   PLATFORMS SECTION
   =================================== */
.platforms-section {
    padding: 0 20px 24px;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.platform-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.platform-card:hover {
    border-color: var(--accent-yellow);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(233, 226, 40, 0.1);
}

.platform-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    position: relative;
}

.platform-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.platform-card:hover .platform-name {
    color: var(--accent-yellow);
}

/* ===================================
   TOP WINNERS / LEADERBOARD
   =================================== */
.leaderboard-section {
    padding: 0 20px 24px;
}

.leaderboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.leaderboard-header {
    display: grid;
    grid-template-columns: 50px 1fr 1fr 1fr;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.2);
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 50px 1fr 1fr 1fr;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(30, 37, 64, 0.5);
    transition: var(--transition);
    align-items: center;
}

.leaderboard-row:hover {
    background: rgba(233, 226, 40, 0.03);
}

.leaderboard-rank {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-muted);
}

.leaderboard-rank.top-1 {
    color: #FFD700;
}

.leaderboard-rank.top-2 {
    color: #C0C0C0;
}

.leaderboard-rank.top-3 {
    color: #CD7F32;
}

.leaderboard-player {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.player-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.player-game {
    font-size: 11px;
    color: var(--text-muted);
}

.leaderboard-game {
    font-size: 12px;
    color: var(--text-secondary);
}

.leaderboard-amount {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-green);
}

/* ===================================
   PROMOTIONS SECTION
   =================================== */
.promotions-section {
    padding: 0 20px 24px;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.promo-card {
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.promo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.promo-bg-blue {
    background: linear-gradient(135deg, #0D47A1, #1565C0, #1976D2);
}

.promo-bg-green {
    background: linear-gradient(135deg, #1B5E20, #2E7D32, #388E3C);
}

.promo-bg-purple {
    background: linear-gradient(135deg, #4A148C, #7B1FA2, #9C27B0);
}

.promo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.6));
}

.promo-content {
    position: relative;
    z-index: 1;
}

.promo-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-yellow);
    margin-bottom: 4px;
}

.promo-title {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
}

.promo-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

.promo-deco {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

/* ===================================
   STATS BAR
   =================================== */
.stats-bar {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 30px;
    overflow-x: auto;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.stat-icon {
    font-size: 18px;
}

.stat-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-yellow);
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 24px;
    background: var(--border-color);
    flex-shrink: 0;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--bg-sidebar);
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 200px;
    background: radial-gradient(ellipse at center bottom, rgba(22, 167, 224, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.footer-top {
    padding: 40px 30px 30px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
}

/* .footer-brand - Reserved for future branding */

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-yellow), #d4cc00);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    color: #000;
    box-shadow: var(--neon-glow-yellow);
}

.footer-logo-text {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--accent-yellow);
    text-shadow: var(--neon-glow-yellow);
}

.footer-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 8px;
}

.footer-social-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 13px;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.footer-social-btn:hover {
    background: var(--accent-yellow);
    color: #000;
    border-color: var(--accent-yellow);
    box-shadow: var(--neon-glow-yellow);
}

.footer-col-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-yellow);
    border-radius: 1px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link {
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-link:hover {
    color: var(--accent-yellow);
    padding-left: 4px;
}

.footer-payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.payment-icon {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.payment-icon:hover {
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
}

.footer-contact {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.footer-contact span:last-child {
    color: var(--accent-yellow);
    font-weight: 600;
}

.footer-bottom {
    padding: 16px 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.footer-copyright {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-badges {
    display: flex;
    align-items: center;
    gap: 12px;
}

.age-badge {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-secondary);
}

.responsible-gaming {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===================================
   LIVE CHAT BUTTON
   =================================== */
.live-chat-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E91E63, #9C27B0);
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    transition: var(--transition);
    font-size: 22px;
    color: #fff;
    animation: pulse-chat 2s infinite;
}

.live-chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(233, 30, 99, 0.7);
}

@keyframes pulse-chat {
    0% {
        box-shadow: 0 4px 20px rgba(233, 30, 99, 0.5);
    }

    50% {
        box-shadow: 0 4px 30px rgba(233, 30, 99, 0.8), 0 0 0 10px rgba(233, 30, 99, 0.1);
    }

    100% {
        box-shadow: 0 4px 20px rgba(233, 30, 99, 0.5);
    }
}

/* ===================================
   WELCOME POPUP / MODAL
   =================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: var(--transition);
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: modal-in 0.4s ease;
}

@keyframes modal-in {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--accent-yellow);
    color: #000;
    border-color: var(--accent-yellow);
}

.modal-logo {
    text-align: center;
    margin-bottom: 24px;
}

.modal-logo-text {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--accent-yellow);
    text-shadow: var(--neon-glow-yellow);
}

.modal-title {
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 28px;
}

.modal-input {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 12px;
    transition: var(--transition);
}

.modal-input:focus {
    border-color: var(--accent-yellow);
    box-shadow: 0 0 0 2px rgba(233, 226, 40, 0.15);
}

.modal-input::placeholder {
    color: var(--text-muted);
}

.modal-btn-primary {
    width: 100%;
    background: var(--accent-yellow);
    color: #000;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 1px;
    padding: 13px;
    border-radius: 8px;
    text-transform: uppercase;
    transition: var(--transition);
    margin-top: 4px;
}

.modal-btn-primary:hover {
    background: var(--accent-yellow-dark);
    box-shadow: var(--neon-glow-yellow);
}

.modal-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
}

.modal-divider::before,
.modal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.modal-divider span {
    font-size: 12px;
    color: var(--text-muted);
}

.modal-link {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 14px;
}

.modal-link a {
    color: var(--accent-yellow);
    font-weight: 600;
    cursor: pointer;
}

/* ===================================
   SCROLLING TICKER
   =================================== */
.ticker-bar {
    background: rgba(233, 226, 40, 0.08);
    border-bottom: 1px solid rgba(233, 226, 40, 0.15);
    padding: 8px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    overflow: hidden;
}

.ticker-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-yellow);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.ticker-label::after {
    content: '';
    width: 1px;
    height: 16px;
    background: rgba(233, 226, 40, 0.3);
}

.ticker-content {
    display: flex;
    gap: 30px;
    animation: ticker-scroll 25s linear infinite;
    white-space: nowrap;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.ticker-item .winner {
    color: var(--text-primary);
    font-weight: 600;
}

.ticker-item .amount {
    color: var(--accent-green);
    font-weight: 700;
}

/* ===================================
   PLATFORMS & DEPOSIT SECTION
   =================================== */
.pd-section {
    padding: 0 20px 40px;
}

.pd-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.pd-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    transition: var(--transition);
}

.pd-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.pd-card.removing {
    border-color: rgba(229, 57, 53, 0.4);
}

.pd-card.removing .btn-remove {
    background: transparent;
    color: #e53935;
    border: 1px solid rgba(229, 57, 53, 0.4);
}

.pd-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.pd-platform-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pd-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pd-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.pd-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pd-badge {
    position: absolute;
    top: -10px;
    right: 15px;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    color: #fff;
    white-space: nowrap;
    z-index: 2;
}

.pd-bonus {
    background: var(--accent-blue);
    box-shadow: var(--neon-glow-blue);
}

.pd-new {
    background: #e53935;
    right: 95px;
}

.pd-badge-container {
    position: absolute;
    top: -10px;
    right: 15px;
    display: flex;
    gap: 8px;
}

.pd-badge-container .pd-badge {
    position: static;
    /* override parent absolute */
}

.pd-fav {
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.pd-fav:hover {
    color: var(--accent-yellow);
}

.pd-controls {
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    height: 40px;
    margin: 0 auto;
    width: 100%;
    max-width: 180px;
}

.pd-btn-qty {
    background: transparent;
    color: var(--text-secondary);
    width: 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.pd-btn-qty:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.pd-input-qty {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    width: 50px;
}

.pd-btn-action {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.btn-deposit {
    background: var(--bg-primary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-deposit:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: var(--text-muted);
}

.btn-remove:hover {
    background: rgba(229, 57, 53, 0.1) !important;
    border-color: #e53935 !important;
}

.pd-footer {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.pd-show-more {
    background: var(--accent-yellow);
    color: #000;
    font-weight: 800;
    font-size: 14px;
    padding: 14px 40px;
    border-radius: 6px;
    text-transform: uppercase;
    width: 100%;
    transition: var(--transition);
}

.pd-show-more:hover {
    box-shadow: var(--neon-glow-yellow);
    background: var(--accent-yellow-dark);
}

/* ===================================
   RESPONSIVE BREAKPOINTS
   =================================== */

/* --- 1200px: Large Tablet / Small Desktop --- */
@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .platforms-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero-slider-wrapper {
        flex: 0 0 380px;
        width: 380px;
    }

    .hero-slide {
        flex: 0 0 380px;
        width: 380px;
    }
}

/* --- 1024px: Tablet --- */
@media (max-width: 1024px) {

    /* Sidebar collapses to icons only */
    .sidebar {
        width: var(--sidebar-collapsed-width);
        transition: width 0.3s ease, transform 0.3s ease;
    }

    .sidebar:not(.collapsed) {
        width: var(--sidebar-width);
    }

    .sidebar .logo-text,
    .sidebar .nav-label,
    .sidebar .nav-badge,
    .sidebar .nav-arrow,
    .sidebar .sidebar-section-label,
    .sidebar-footer {
        opacity: 0;
        pointer-events: none;
        width: 0;
        overflow: hidden;
        transition: opacity 0.2s ease;
    }

    .main-content {
        margin-left: var(--sidebar-collapsed-width) !important;
    }

    /* Topbar: compress nav */
    .topbar-nav-item span:not(.item-icon) {
        display: none;
    }

    .topbar-nav-item {
        padding: 6px 10px;
    }

    /* Hero: stack slider + banners */
    .hero-section {
        flex-wrap: wrap;
    }

    .hero-slider-wrapper {
        flex: 0 0 100%;
        width: 100%;
        height: 180px;
    }

    .hero-slide {
        flex: 0 0 100%;
        width: 100%;
    }

    .hero-section>.hero-banner {
        flex: 1 1 calc(50% - 6px);
        min-width: calc(50% - 6px);
    }

    /* Stats bar: allow wrap */
    .stats-bar {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 16px;
    }

    .stat-item {
        flex: 1 1 auto;
    }

    .stat-divider {
        display: none;
    }

    /* Games: 2 cols */
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .section-title {
        font-size: 15px !important;
    }

    /* Deposit section */
    .deposit-form-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .deposit-form-grid {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }

    .form-group {
        flex: 1 1 auto;
        max-width: 100%;
    }

    .form-group.btn-group {
        max-width: 100%;
    }

    .btn-deposit {
        width: 100%;
    }

    /* Platforms */
    .platforms-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Platforms & Deposit Section */
    .pd-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Promo */
    .promo-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- 768px: Mobile --- */
@media (max-width: 768px) {

    /* Sidebar: fully hidden, slide-in on mobile */
    .sidebar {
        transform: translateX(-100%) !important;
        width: 280px !important;
        z-index: 1100;
        transition: transform 0.3s ease !important;
    }

    .sidebar.mobile-open {
        transform: translateX(0) !important;
        background: linear-gradient(180deg, #0f1423 0%, #060912 100%) !important;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5) !important;
    }

    .sidebar.mobile-open .logo-text,
    .sidebar.mobile-open .nav-label,
    .sidebar.mobile-open .nav-badge,
    .sidebar.mobile-open .nav-arrow,
    .sidebar.mobile-open .sidebar-section-label,
    .sidebar.mobile-open .sidebar-social {
        display: flex !important;
        opacity: 1 !important;
        width: auto !important;
    }

    .sidebar.mobile-open .sidebar-section-label {
        display: block !important;
        opacity: 1 !important;
    }

    .sidebar.mobile-open .sidebar-nav-item {
        padding: 14px 20px !important;
    }

    .sidebar.mobile-open .nav-label {
        font-size: 14px !important;
    }

    .sidebar.mobile-open .nav-icon {
        font-size: 18px !important;
        width: 26px !important;
        color: var(--accent-yellow) !important;
    }

    .sidebar-toggle {
        display: none !important;
    }

    .sidebar-header {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        padding: 20px 16px !important;
    }

    .sidebar.mobile-open .nav-label {
        color: var(--text-primary) !important;
        font-weight: 600 !important;
    }

    .sidebar.mobile-open .sidebar-section-label {
        color: var(--accent-yellow) !important;
        margin-top: 10px;
    }

    /* Overlay behind open sidebar */
    .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1050;
    }

    /* Main content: no left margin on mobile */
    .main-content {
        margin-left: 0 !important;
    }

    /* Topbar: show mobile menu button */
    .mobile-menu-btn {
        display: flex;
    }

    .topbar {
        padding: 0 12px;
        gap: 10px;
        justify-content: space-between;
    }

    .topbar-nav {
        display: none !important;
    }

    .topbar-nav-item {
        padding: 6px 8px;
    }

    .btn-signin,
    .btn-signup {
        padding: 5px 12px;
        font-size: 10px;
    }

    /* Hero: single column */
    .hero-section {
        padding: 8px 12px;
        gap: 8px;
    }

    .hero-section>.hero-banner {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .hero-slider-wrapper {
        height: 160px;
    }

    /* Stats bar: 2 columns wrap */
    .stats-bar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .stat-item {
        white-space: normal;
        gap: 6px;
    }

    .stat-item {
        justify-content: flex-start;
    }

    /* Sections: reduce padding */
    .games-section,
    .platforms-section,
    .promotions-section,
    .leaderboard-section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .deposit-section {
        padding: 0 12px 16px;
    }

    /* Games: 2 columns */
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Platforms: 3 columns */
    .platforms-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    /* Platforms & Deposit Section */
    .pd-grid {
        grid-template-columns: 1fr !important;
    }

    /* Promotions: single column */
    .promo-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Leaderboard: horizontal scroll */
    .leaderboard-card {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .leaderboard-header,
    .leaderboard-row {
        min-width: 520px;
    }

    .hero-title {
        font-size: 20px !important;
    }

    .hero-subtitle {
        font-size: 10px !important;
        margin-bottom: 8px !important;
    }

    .hero-badge {
        font-size: 10px !important;
        padding: 3px 10px !important;
    }

    .section-title {
        font-size: 13px !important;
    }

    .game-card-name {
        font-size: 11px !important;
    }

    .stat-value {
        font-size: 12px !important;
    }

    /* Footer: single column */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* --- 480px: Small Mobile --- */
@media (max-width: 480px) {

    /* Topbar: hide text in action buttons */
    .btn-signup {
        display: none;
    }

    .topbar-nav {
        gap: 4px;
    }

    .topbar-nav-item {
        padding: 5px 7px;
        font-size: 10px;
    }

    /* Hero */
    .hero-section {
        padding: 8px;
    }

    .hero-title {
        font-size: 16px !important;
    }

    .hero-slider-wrapper {
        height: 145px;
    }

    .hero-subtitle {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 9px !important;
        margin-bottom: 8px !important;
    }

    .hero-btn {
        padding: 5px 12px !important;
        font-size: 9px !important;
    }

    .section-title {
        font-size: 12px !important;
    }

    .game-card-name {
        font-size: 10px !important;
    }

    .stat-value {
        font-size: 11px !important;
    }

    .deposit-title {
        font-size: 14px !important;
    }

    .modal-title {
        font-size: 16px !important;
    }

    .footer-column-title {
        font-size: 10px !important;
    }

    /* Stats: 2-col */
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Games: single column */
    .games-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Platforms: 2 columns */
    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Deposit */
    .deposit-form-card {
        padding: 16px;
    }

    /* Hero banners: compact */
    .hero-banner {
        padding: 10px 12px;
        min-height: 120px;
    }

    .hero-badge {
        font-size: 9px;
        padding: 3px 8px;
        margin-bottom: 6px;
    }
}

/* ===================================
   TOAST NOTIFICATIONS
   =================================== */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    min-width: 300px;
    max-width: 400px;
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(17, 21, 38, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
    animation: toast-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
}

.toast.success::before {
    background: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
}

.toast.error::before {
    background: #ff4d4f;
    box-shadow: 0 0 10px #ff4d4f;
}

.toast.info::before {
    background: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue);
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: var(--accent-green);
}

.toast.error .toast-icon {
    color: #ff4d4f;
}

.toast.info .toast-icon {
    color: var(--accent-blue);
}

.toast-message {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
}

.toast-close {
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
    font-size: 14px;
    padding: 4px;
}

.toast-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.toast.hiding {
    animation: toast-out 0.5s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }
}