:root {
    --bg-dark: #0D0D0D;
    --bg-surface: #1A1A1A;
    --bg-surface-light: #242424;
    --neon-green: #00FF66;
    --neon-green-glow: rgba(0, 255, 102, 0.3);
    --neon-purple: #9000FF;
    --neon-blue: #00E5FF;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --glass-bg: rgba(26, 26, 26, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-surface-light);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-green);
}

/* Utilities */
.hidden {
    display: none !important;
}

.visible {
    animation: fadeIn 0.4s ease-in-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: var(--bg-surface);
    height: 100vh;
    position: sticky;
    top: 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--glass-border);
    padding: 24px 0;
    z-index: 50;
}

.logo {
    padding: 0 24px 32px;
}

.logo h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
}

.logo span {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green-glow);
}

.side-menu {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0 12px;
}

.side-menu h3 {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin: 24px 12px 12px;
}

.side-menu ul, .sidebar-bottom ul {
    list-style: none;
}

.side-menu li {
    margin-bottom: 4px;
}

.side-menu li a, .sidebar-bottom li a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.side-menu li a .icon, .sidebar-bottom li a .icon {
    margin-right: 12px;
    font-size: 18px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.side-menu li.active a, .side-menu li a:hover, .sidebar-bottom li a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.side-menu li.active a {
    background: linear-gradient(90deg, rgba(0, 255, 102, 0.1) 0%, transparent 100%);
    border-left: 3px solid var(--neon-green);
}

.side-menu li.active a .icon, .side-menu li a:hover .icon, .sidebar-bottom li a:hover .icon {
    filter: grayscale(0%);
    opacity: 1;
}

.sidebar-bottom {
    padding: 16px 12px 0;
    border-top: 1px solid var(--glass-border);
}

/* Main Content */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Include Topbar Logo Logic for No-sidebar layouts */
.topbar-brand {
    display: none;
}
.app-container.no-sidebar .topbar-brand {
    display: flex;
    align-items: center;
}
.app-container.no-sidebar .topbar-brand h2 {
    font-size: 20px;
    font-weight: 800;
}
.app-container.no-sidebar .topbar-brand span {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green-glow);
}
.app-container.no-sidebar .search-container {
    margin-left: 20px;
}

/* Topbar */
.topbar {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 40;
}

.topbar-left {
    display: flex;
    align-items: center;
}

.search-container {
    display: flex;
    align-items: center;
    background-color: var(--bg-surface);
    border-radius: 20px;
    padding: 8px 16px;
    width: 300px;
    border: 1px solid var(--glass-border);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-container:focus-within {
    border-color: var(--neon-purple);
    box-shadow: 0 0 10px rgba(144, 0, 255, 0.2);
}

.search-container input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    margin-left: 10px;
    width: 100%;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.wallet-balance {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-surface-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
}

.crypto-icon {
    color: #F7931A; 
}

.auth-buttons {
    display: flex;
    gap: 12px;
}

.auth-buttons button {
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-login {
    background: transparent;
    color: var(--text-primary);
}

.btn-login:hover {
    color: var(--neon-green);
}

.btn-signup {
    background: var(--neon-green);
    color: #000;
    box-shadow: 0 0 15px var(--neon-green-glow);
}

.btn-signup:hover {
    background: #00cc52;
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.6);
}

.scrollable-content {
    flex-grow: 1;
    padding: 32px;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column; /* For flexibility */
    min-width: 0;
}

.filter-header-container {
    margin-bottom: 24px;
}

.filter-header-container h2 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
}

/* Hero Section */
.hero-section {
    border-radius: 20px;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    padding: 40px;
    overflow: hidden;
    margin-bottom: 48px;
    border: 1px solid var(--glass-border);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(13,13,13,0.95) 0%, rgba(13,13,13,0.6) 50%, rgba(13,13,13,0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 255, 102, 0.15);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-content h1 span {
    color: var(--neon-green);
    text-shadow: 0 0 20px var(--neon-green-glow);
}

.hero-content p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.5;
}

.btn-hero-play {
    background: var(--neon-green);
    color: #000;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px var(--neon-green-glow);
}

.btn-hero-play:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 255, 102, 0.6);
}

.w-100 {
    width: 100%;
}

/* Sections */
section:not(.hero-section):not(.page-section) {
    margin-bottom: 48px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.view-all {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.view-all:hover {
    color: var(--neon-green);
}

/* Image Card Styles */
.card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(13,13,13,0.95) 0%, rgba(13,13,13,0.5) 50%, rgba(13,13,13,0.1) 100%);
    z-index: 0;
    transition: all 0.3s ease;
}

/* Featured Games */
.featured-horizontal-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 16px;
    scroll-snap-type: x mandatory;
}

.featured-card {
    min-width: 280px;
    height: 320px;
    background-color: var(--bg-surface);
    background-size: cover;
    background-position: center;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.featured-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(0, 255, 102, 0.4);
    box-shadow: 0 10px 30px rgba(0, 255, 102, 0.15);
}

.featured-card:hover .card-overlay {
    background: linear-gradient(to top, rgba(13,13,13,0.95) 0%, rgba(0,255,102,0.1) 100%);
}

.card-header {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    margin-bottom: 30px;
    z-index: 1;
}

.game-tag {
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
}

.card-info {
    z-index: 1;
}

.game-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #ccc;
    margin-bottom: 8px;
}

.game-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.btn-play {
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.featured-card:hover .btn-play {
    background: var(--neon-green);
    color: #000;
    border-color: var(--neon-green);
    box-shadow: 0 0 15px var(--neon-green-glow);
}

/* Categories Row */
.categories-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.category-pill {
    background-color: var(--bg-surface);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.category-pill:hover, .category-pill.active {
    background: rgba(144, 0, 255, 0.1);
    border-color: var(--neon-purple);
    box-shadow: 0 0 10px rgba(144, 0, 255, 0.2);
    color: #fff;
}

.cat-icon {
    font-size: 18px;
}

/* Game Grid */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.game-card {
    height: 250px;
    background-color: var(--bg-surface);
    background-size: cover;
    background-position: center;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-blue);
    box-shadow: 0 10px 20px rgba(0, 229, 255, 0.2);
}

.game-card:hover .card-overlay {
    background: linear-gradient(to top, rgba(13,13,13,0.95) 0%, rgba(0,229,255,0.1) 100%);
}

.game-card-details {
    z-index: 1;
    width: 100%;
}

.game-cat {
    display: block;
    font-size: 11px;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.game-card h4 {
    font-size: 16px;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rating {
    font-size: 13px;
    color: #ddd;
}

.btn-sm-play {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-card:hover .btn-sm-play {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

/* Live Casino section */
.live-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.live-card {
    height: 300px;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.live-card:hover {
    transform: translateY(-5px);
    border-color: #FF0055;
    box-shadow: 0 10px 20px rgba(255, 0, 85, 0.2);
}

.live-card:hover .card-overlay {
    background: linear-gradient(to top, rgba(13,13,13,0.95) 0%, rgba(255,0,85,0.1) 100%);
}

.live-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 0, 85, 0.2);
    backdrop-filter: blur(4px);
    color: #FF0055;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 0, 85, 0.4);
    z-index: 1;
}

.live-card-info {
    width: 100%;
    z-index: 1;
    margin-top: auto; 
}

.live-card h4 {
    font-size: 18px;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.live-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.live-meta span {
    font-size: 13px;
    color: #ddd;
}

.btn-join {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    border: 1px solid #FF0055;
    color: #FF0055;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.live-card:hover .btn-join {
    background: #FF0055;
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.5);
}

/* Promotions */
.promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.promo-card {
    background: linear-gradient(45deg, rgba(144, 0, 255, 0.2), var(--bg-surface));
    border: 1px solid rgba(144, 0, 255, 0.3);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.promo-card.alt {
    background: linear-gradient(45deg, rgba(0, 255, 102, 0.2), var(--bg-surface));
    border-color: rgba(0, 255, 102, 0.3);
}

.promo-card::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 200px; height: 200px;
    background: rgba(144, 0, 255, 0.4);
    filter: blur(80px);
    border-radius: 50%;
}

.promo-card.alt::before {
    background: rgba(0, 255, 102, 0.3);
}

.promo-content {
    position: relative;
    z-index: 1;
}

.promo-content h3 {
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: 700;
}

.promo-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 15px;
}

.btn-claim {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-claim:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255,255,255,0.1);
}

/* ===== FUTURISTIC MODAL SYSTEM ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 5000;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow: hidden;          /* stop the backdrop itself from scrolling */
}
.modal.active { display: flex; }

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- Modal Card ---- */
.modal-content {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: #0C0C18;
    border: 1px solid rgba(168,85,247,0.3);
    border-radius: 20px;
    overflow: hidden;
    animation: modalSlideIn 0.32s cubic-bezier(0.16,1,0.3,1) forwards;
    box-shadow: 0 32px 80px rgba(0,0,0,0.8), 0 0 0 1px rgba(168,85,247,0.08), 0 0 50px rgba(168,85,247,0.06);
}

/* Top glow line */
.modal-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #7c3aed 30%, #00E5FF 50%, #a855f7 70%, transparent 100%);
    z-index: 5;
}

/* ---- Inner wrapper — the ONLY scroll container ---- */
.modal-inner {
    position: relative;
    max-height: 88vh;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(168,85,247,0.4) transparent;
}
.modal-inner::-webkit-scrollbar { width: 4px; }
.modal-inner::-webkit-scrollbar-track { background: transparent; }
.modal-inner::-webkit-scrollbar-thumb {
    background: rgba(168,85,247,0.35);
    border-radius: 4px;
}
.modal-inner::-webkit-scrollbar-thumb:hover {
    background: rgba(168,85,247,0.6);
}

/* Specific scroll area for inner modal steps */
.step-scroll-area {
    max-height: 50vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(168,85,247,0.4) transparent;
}
.step-scroll-area::-webkit-scrollbar { width: 4px; }
.step-scroll-area::-webkit-scrollbar-track { background: transparent; }
.step-scroll-area::-webkit-scrollbar-thumb {
    background: rgba(168,85,247,0.35);
    border-radius: 4px;
}
.step-scroll-area::-webkit-scrollbar-thumb:hover {
    background: rgba(168,85,247,0.6);
}

/* ---- Body padding ---- */
.modal-body {
    padding: 48px 32px 32px;
    position: relative;
    z-index: 1;
}

/* ---- Close Button ---- */
.close-modal {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #888;
    font-size: 16px;
    font-style: normal;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    line-height: 1;
    font-family: 'Inter', sans-serif;
}
.close-modal:hover {
    background: rgba(255,50,50,0.18);
    border-color: rgba(255,60,60,0.45);
    color: #FF4444;
    transform: rotate(90deg) scale(1.1);
}

/* Modal branding strip */
.modal-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
}
.modal-brand-icon {
    width: 32px; height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    box-shadow: 0 0 16px rgba(168,85,247,0.5);
    flex-shrink: 0;
}
.modal-brand-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 2px;
}
.modal-brand-name span { color: #00FF66; text-shadow: 0 0 8px rgba(0,255,102,0.5); }

/* Header */
.modal-header { margin-bottom: 24px; }
.modal-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.modal-header p {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    margin-bottom: 0;
}

/* Step progress indicator */
.modal-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 28px;
}
.modal-step {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}
.step-circle {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #444;
    flex-shrink: 0;
    transition: all 0.4s;
}
.step-label {
    font-size: 11px;
    font-weight: 600;
    color: #444;
    transition: color 0.3s;
}
.step-line {
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 0 6px;
}
.modal-step.active .step-circle {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-color: #a855f7;
    color: #fff;
    box-shadow: 0 0 12px rgba(168,85,247,0.5);
}
.modal-step.active .step-label { color: #a855f7; }
.modal-step.done .step-circle {
    background: rgba(0,255,102,0.15);
    border-color: rgba(0,255,102,0.4);
    color: #00FF66;
}
.modal-step.done .step-label { color: #00FF66; }

/* Form groups */
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 11px;
    color: #fff;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: all 0.3s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: rgba(168,85,247,0.45);
    background: rgba(168,85,247,0.06);
    box-shadow: 0 0 0 3px rgba(168,85,247,0.08);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.18); }
.form-group input[type="file"] {
    padding: 10px 14px;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
}
.form-group input[type="date"] { color-scheme: dark; }

/* CTA buttons */
.btn-modal-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    background-size: 200%;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.3px;
    box-shadow: 0 0 25px rgba(168,85,247,0.3);
    position: relative;
    overflow: hidden;
}
.btn-modal-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    transition: left 0.5s;
}
.btn-modal-primary:hover {
    box-shadow: 0 0 40px rgba(168,85,247,0.5);
    transform: scale(1.02);
}
.btn-modal-primary:hover::after { left: 100%; }

.btn-modal-success {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #059669, #00FF66);
    color: #000;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 25px rgba(0,255,102,0.25);
}
.btn-modal-success:hover { filter: brightness(1.08); transform: scale(1.02); box-shadow: 0 0 40px rgba(0,255,102,0.4); }

.btn-modal-ghost {
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.55);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-modal-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); color: #fff; }

/* Footer switch link */
.modal-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.25);
}
.modal-footer a {
    color: #a855f7;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}
.modal-footer a:hover { color: #c084fc; text-decoration: underline; }

/* OR divider */
.modal-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
}
.modal-divider::before, .modal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.05);
}
.modal-divider span { font-size: 11px; color: #444; letter-spacing: 1px; }

/* ===== VERIFICATION TIMER ===== */
.timer-ring-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
}
.timer-ring {
    position: relative;
    width: 130px;
    height: 130px;
    margin-bottom: 16px;
}
.timer-ring svg {
    transform: rotate(-90deg);
    width: 130px; height: 130px;
}
.timer-ring .bg-circle {
    fill: none;
    stroke: rgba(255,255,255,0.06);
    stroke-width: 6;
}
.timer-ring .progress-circle {
    fill: none;
    stroke: url(#timerGrad);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 345;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}
.timer-number {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.timer-count {
    font-family: 'Orbitron', sans-serif;
    font-size: 38px;
    font-weight: 900;
    color: #00FF66;
    text-shadow: 0 0 20px rgba(0,255,102,0.6);
    line-height: 1;
}
.timer-unit {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.25);
    text-transform: uppercase;
    margin-top: 2px;
}
.timer-status-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--neon-blue);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
    text-shadow: 0 0 12px rgba(0,229,255,0.4);
}
.timer-sub-text { font-size: 12px; color: rgba(255,255,255,0.25); }

/* Scanning animation bar */
.scan-bar-wrap {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
    overflow: hidden;
    margin: 12px 0;
}
.scan-bar {
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, transparent, #00E5FF, transparent);
    animation: scanAnim 1.8s ease-in-out infinite;
    border-radius: 3px;
}
@keyframes scanAnim {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

/* Success animation */
.success-checkmark {
    font-size: 64px;
    display: block;
    text-align: center;
    margin-bottom: 12px;
    animation: popIn 0.5s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes popIn {
    from { transform: scale(0.5); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* Static Pages & Components */
.inner-nav {
    margin-bottom: 20px;
}
.btn-back {
    display: inline-block;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}
.btn-back:hover {
    color: var(--neon-green);
}

.page-hero {
    border-radius: 20px;
    height: 350px;
    background: linear-gradient(45deg, rgba(144, 0, 255, 0.4), rgba(0, 255, 102, 0.2));
    position: relative;
    display: flex;
    align-items: center;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid var(--glass-border);
}
.page-hero.about-hero {
    background: linear-gradient(45deg, rgba(0, 229, 255, 0.4), rgba(144, 0, 255, 0.2));
}
.page-hero.contact-hero {
    background: linear-gradient(45deg, rgba(255, 0, 85, 0.4), rgba(144, 0, 255, 0.2));
}
.page-hero.policy-hero {
    background: linear-gradient(45deg, rgba(144, 0, 255, 0.4), rgba(0, 229, 255, 0.2));
}

.page-hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.page-hero h1 span {
    color: transparent;
    -webkit-text-stroke: 1px #fff;
}

.page-section {
    padding: 20px 0 60px 0;
    min-height: calc(100vh - 500px);
}

.page-container {
    background: var(--bg-surface);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    padding: 40px;
}

.page-container h2 {
    font-size: 32px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 16px;
}

.page-container h2 span {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green-glow);
}

.page-container p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 16px;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
}

.glow-box {
    background: rgba(255,255,255,0.03);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.glow-box:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
    transform: translateY(-5px);
}

.glow-box .f-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.glow-box h3 {
    margin-bottom: 12px;
    color: #fff;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    margin-top: 32px;
}

.policy-content h3 {
    color: #fff;
    margin: 32px 0 12px 0;
    font-size: 18px;
}

/* Advanced Mega Footer Section */
.app-footer {
    border-top: 1px solid var(--glass-border);
    width: 100%;
    clear: both;
    position: relative;
    z-index: 100;
}

.footer-container {
    background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(13,13,13,1) 100%);
    padding: 60px 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 3fr 2fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-brand .logo h2 {
    font-size: 28px;
    font-weight: 800;
}
.footer-brand .logo h2 span {
    color: var(--neon-green);
}
.footer-brand p {
    color: var(--text-secondary);
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.6;
}

.crypto-icons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.crypto-icons span {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 80px;
    justify-content: center;
}

.link-col h4 {
    font-size: 16px;
    margin-bottom: 24px;
    color: #fff;
}

.link-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 16px;
    font-size: 14px;
    transition: color 0.3s;
}

.link-col a:hover {
    color: var(--neon-green);
    transform: translateX(5px);
}

.footer-newsletter h4 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #fff;
}
.footer-newsletter p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.newsletter-box {
    display: flex;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
}
.newsletter-box input {
    background: transparent;
    border: none;
    padding: 12px 16px;
    color: #fff;
    font-size: 14px;
    outline: none;
    flex-grow: 1;
}
.btn-subscribe {
    background: var(--neon-blue);
    color: #000;
    border: none;
    padding: 0 20px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-subscribe:hover {
    background: #00b8cc;
}

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    background: #000;
    color: var(--text-secondary);
    font-size: 13px;
    border-top: 1px solid var(--glass-border);
}

/* =============================================================
   FULL RESPONSIVE SYSTEM — Mobile · Tablet · Laptop · Desktop
   ============================================================= */

/* ---- Mobile Hamburger Toggle Button ---- */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 1000;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(120,40,255,0.85);
    border: 1px solid rgba(168,85,247,0.4);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(168,85,247,0.4);
    transition: all 0.2s;
    backdrop-filter: blur(8px);
}
.mobile-menu-toggle:hover { background: rgba(168,85,247,1); }

/* ---- Sidebar Overlay (mobile backdrop) ---- */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 149;
}
.sidebar-overlay.active { display: block; }

/* ================================================================
   LAPTOP  (max-width: 1280px)
   ================================================================ */
@media (max-width: 1280px) {
    .sidebar { width: 220px; }
    .scrollable-content { padding: 24px 20px; }
    .hero-refined { padding: 36px 32px; }
    .hero-content-refined { max-width: 55%; }
    .hero-game-img { max-width: 420px; }
    .hero-refined h1 { font-size: 38px; }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
}

/* ================================================================
   TABLET  (max-width: 1024px)
   ================================================================ */
@media (max-width: 1024px) {
    .sidebar { width: 200px; padding: 18px 0; }
    .sb-label { font-size: 12px; }
    .scrollable-content { padding: 20px 16px; }

    /* Hero: stack vertically */
    .hero-refined {
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
        padding: 36px 28px 220px;
    }
    .hero-content-refined { max-width: 100%; padding-right: 0; }
    .hero-right-visual {
        width: 60%;
        right: 0; bottom: 0;
        top: auto;
        height: 200px;
        overflow: hidden;
    }
    .hero-game-img {
        width: 100%;
        height: 200px;
        border-radius: 0 0 22px 0;
        object-position: top center;
        mask-image: linear-gradient(to top, rgba(0,0,0,0.9) 60%, rgba(0,0,0,0) 100%);
        -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.9) 60%, rgba(0,0,0,0) 100%);
    }
    .hero-refined h1 { font-size: 34px; }
    .hero-stats-row { gap: 20px; flex-wrap: wrap; }

    /* Games grid */
    #main-game-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
    .nc-game-card { height: 200px; }

    /* Promo grid */
    .promo-grid, .promos-grid { grid-template-columns: 1fr; }
    .feature-promo-grid { grid-template-columns: 1fr; gap: 12px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-stats-bar { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================
   MOBILE  (max-width: 768px)
   ================================================================ */
@media (max-width: 768px) {
    /* Show hamburger */
    .mobile-menu-toggle { display: flex; }

    /* Sidebar: slide-in drawer */
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        width: 270px;
        height: 100%;
        z-index: 150;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        padding-top: 60px;
    }
    .sidebar.open { left: 0; box-shadow: 10px 0 40px rgba(0,0,0,0.6); }

    /* Topbar */
    .topbar { padding: 0 12px 0 66px; height: 60px; }
    .search-container { width: 140px; padding: 6px 10px; }
    .topbar-network { display: none; }
    .wallet-balance { padding: 6px 10px; font-size: 12px; }

    /* Main layout */
    .main-content { width: 100%; }
    .scrollable-content { padding: 16px 12px; }

    /* Hero: full-width background image on mobile */
    .hero-refined {
        padding: 32px 20px;
        min-height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .hero-content-refined { 
        max-width: 100%; 
        position: relative;
        z-index: 2;
    }
    .hero-refined h1 { font-size: 28px; line-height: 1.2; text-shadow: 0 4px 20px rgba(0,0,0,0.9); }
    .hero-refined p  { font-size: 13px; text-shadow: 0 2px 10px rgba(0,0,0,0.9); font-weight: 500;}
    .hero-stats-row  { gap: 12px; margin-top: 24px; flex-wrap: wrap; position: relative; z-index: 3;}
    .hs-value  { font-size: 18px; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
    .hs-label  { font-size: 11px; text-shadow: 0 2px 6px rgba(0,0,0,0.8); }
    .btn-hero-main, .btn-hero-secondary {
        padding: 12px 18px;
        font-size: 13px;
        text-align: center;
        flex: 1; /* Make buttons full width/stretch */
        min-width: 140px;
        backdrop-filter: blur(4px);
    }
    .hero-cta-row { 
        flex-wrap: wrap; 
        gap: 12px; 
        width: 100%;
        display: flex;
    }

    /* Hero image: full background on mobile */
    .hero-right-visual {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
    .hero-game-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center right;
        border-radius: 22px;
        opacity: 0.25; /* lowered opacity to ensure text is visible */
        mask-image: none;
        -webkit-mask-image: none;
        animation: none; /* stop float animation in background */
        filter: saturate(1.2) contrast(1.1);
    }
    .hero-right-visual::before {
        display: none !important;
    }

    /* Feature promo cards */
    .feature-promo-grid { grid-template-columns: 1fr; }
    .fpromo-card { padding: 20px; }

    /* Games grid */
    #main-game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .nc-game-card { height: 180px; }
    .gc-title { font-size: 12px; }
    .gc-rtp { font-size: 10px; }
    .gc-play-btn { padding: 5px 10px; font-size: 11px; }

    /* Live grid */
    .live-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    .nc-live-card { height: 160px; }

    /* Promotions */
    .promos-grid { grid-template-columns: 1fr; gap: 12px; }
    .nc-promo-card { padding: 20px; }

    /* Category pills — horizontal scroll */
    .nc-filter-row { padding: 0 0 8px; overflow-x: auto; flex-wrap: nowrap; }
    .nc-pill { white-space: nowrap; padding: 7px 14px; font-size: 12px; }

    /* Payment ticker */
    .payment-ticker-bar { flex-wrap: wrap; gap: 8px; padding: 12px 16px; }
    .ticker-deposit-btn { width: 100%; text-align: center; }

    /* Profile stats */
    .profile-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .profile-content-grid { grid-template-columns: 1fr; }
    .profile-banner { flex-direction: column; text-align: center; gap: 16px; }
    .profile-balance { min-width: 100%; text-align: center; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-stats-bar { grid-template-columns: repeat(2, 1fr); }
    .footer-main { padding: 36px 20px 28px; }

    /* Modals */
    .modal-content { max-width: 96vw !important; margin: 0 8px; }
    .modal-body { padding: 40px 20px 24px !important; }

    /* Deposit modal */
    #homeDepositModal > div { padding: 28px 18px; margin: 0 8px; max-width: 96vw; }
}

/* ================================================================
   SMALL MOBILE  (max-width: 480px)
   ================================================================ */
@media (max-width: 480px) {
    .hero-refined h1 { font-size: 22px; }
    .hero-tag { font-size: 11px; padding: 4px 10px; }
    .topbar-right .wallet-balance { display: none; }
    #main-game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .nc-game-card { height: 160px; }
    .profile-stats { grid-template-columns: repeat(2, 1fr); }
    .pstat-val { font-size: 15px; }
    .footer-stats-bar { grid-template-columns: 1fr 1fr; }
    .nc-section-header h2 { font-size: 16px; }
    .nc-view-all { font-size: 12px; }
}

/* ================================================================
   BONUS TEXT FLASH ANIMATION (Hero Special Offer)
   ================================================================ */
@keyframes bonusPulse {
    0%, 100% {
        text-shadow: 0 0 10px rgba(0,255,102,0.4), 0 0 20px rgba(0,255,102,0.2);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 20px rgba(0,255,102,0.9), 0 0 40px rgba(0,255,102,0.5), 0 0 60px rgba(255,180,0,0.3);
        transform: scale(1.02);
    }
}
@keyframes bonusSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-bonus-offer {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(0,255,102,0.1), rgba(255,180,0,0.08));
    border: 1px solid rgba(0,255,102,0.4);
    border-radius: 12px;
    padding: 10px 18px;
    margin-top: 14px;
    margin-bottom: 4px;
    animation: bonusSlideIn 0.5s ease forwards, bonusPulse 2.5s ease-in-out infinite;
}
.hero-bonus-offer .bonus-icon {
    font-size: 22px;
    flex-shrink: 0;
}
.hero-bonus-offer .bonus-text {
    font-size: 15px;
    font-weight: 800;
    color: #00FF66;
    letter-spacing: 0.3px;
    line-height: 1.3;
}
.hero-bonus-offer .bonus-text strong {
    color: #FFB800;
    font-size: 17px;
}
@media (max-width: 768px) {
    .hero-bonus-offer { padding: 8px 14px; margin-top: 10px; }
    .hero-bonus-offer .bonus-text { font-size: 13px; }
    .hero-bonus-offer .bonus-text strong { font-size: 15px; }
}
