:root {
    --bg-dark: #05060b;
    --bg-card: #0d0f1a;
    --primary: #8b5cf6;
    --primary-light: #a78bfa;
    --secondary: #00f2ff;
    --success: #10b981;
    --danger: #ff4d4d;
    --text-main: #f8fafc;
    --text-dim: #64748b;
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(139, 92, 246, 0.15);
    --neon-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.5rem;
    gap: 10px;
    margin-bottom: 3rem;
    color: var(--primary);
}

.logo span span {
    color: var(--text-main);
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dim);
    padding: 12px 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
    font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--glass);
    color: var(--text-main);
}

.nav-menu a.active {
    border-left: 3px solid var(--primary);
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.1) 0%, transparent 100%);
}

.support-card {
    margin-top: auto;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 1.5rem;
    border-radius: 20px;
    text-align: center;
}

.support-card i {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.search-bar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 30px;
    width: 400px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-bar input {
    background: transparent;
    border: none;
    color: white;
    outline: none;
    width: 100%;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.balance-display {
    background: var(--bg-card);
    padding: 8px 15px;
    border-radius: 15px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.balance-display .label {
    font-size: 0.7rem;
    color: var(--text-dim);
    font-weight: 600;
}

.balance-display .value {
    font-weight: 800;
    color: var(--secondary);
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}

.deposit-btn {
    background: var(--success);
    border: none;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.deposit-btn:hover {
    transform: scale(1.1);
}

.user-profile img {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    border: 2px solid var(--primary);
}

/* Hero Section */
.hero {
    background: var(--bg-card);
    border-radius: 30px;
    padding: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
}

.hero-content {
    max-width: 50%;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-dim);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.hero-image img {
    width: 450px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid var(--border);
    padding: 15px 35px;
    border-radius: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    width: 100%;
    margin-top: 15px;
    cursor: pointer;
}

.btn-play {
    background: white;
    color: black;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.8rem;
    cursor: pointer;
}

/* Games Grid */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.game-card {
    background: linear-gradient(145deg, #0f1122, #080915);
    border-radius: 20px;
    padding: 15px;
    border: 1px solid var(--border);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.2);
}

.game-thumb {
    height: 150px;
    border-radius: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.crash-thumb {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.game-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.game-info span {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

/* Crash Game Styles */
.crash-content {
    max-width: 1100px;
}

.game-body-crash {
    display: flex;
    gap: 20px;
    height: 500px;
}

.crash-sidebar {
    width: 320px;
    background: var(--bg-card);
    padding: 25px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.crash-display {
    flex: 1;
    background: radial-gradient(circle at center, #111428 0%, #05060b 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8);
}

.crash-graph {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.multiplier-display {
    font-size: 7rem;
    font-weight: 900;
    color: white;
    z-index: 10;
    text-shadow: 0 0 30px var(--primary), 0 0 60px rgba(139, 92, 246, 0.3);
    font-family: 'Outfit', sans-serif;
    letter-spacing: -2px;
}

.rocket-anim {
    position: absolute;
    bottom: 20%;
    left: 10%;
    font-size: 3rem;
    color: var(--secondary);
    transition: 0.1s linear;
    z-index: 5;
}

.rocket-trail {
    position: absolute;
    top: 50%;
    right: 100%;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--secondary));
    box-shadow: 0 0 20px var(--secondary);
    transform: translateY(-50%);
}

.crash-history {
    height: 60px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
    overflow-x: auto;
    border-top: 1px solid var(--border);
}

.history-item {
    padding: 5px 15px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
}

.history-high {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.history-low {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.badge {
    background: var(--danger);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 5px;
    vertical-align: middle;
    margin-left: 10px;
}

.single-game {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
}

.featured-game {
    padding: 30px;
}

.featured-game .game-thumb {
    height: 300px;
    font-size: 8rem;
}

@keyframes rocketShake {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.rocket-container i {
    animation: rocketShake 2s ease-in-out infinite;
    color: var(--secondary);
    filter: drop-shadow(0 0 20px var(--secondary));
}

/* Modal / Game Area */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.modal-content {
    background: var(--bg-dark);
    width: 90%;
    max-width: 1000px;
    border-radius: 30px;
    border: 1px solid var(--border);
    padding: 2rem;
    position: relative;
    box-shadow: 0 0 100px rgba(99, 102, 241, 0.2);
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.game-body {
    display: flex;
    gap: 3rem;
}

.game-sidebar {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 8px;
    font-weight: 600;
}

.input-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-wrapper input,
.input-group select {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    outline: none;
    font-weight: 700;
}

.input-group select {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 12px;
    appearance: none;
}

.quick-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.quick-btns button {
    background: var(--glass);
    border: 1px solid var(--border);
    color: white;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-success {
    background: var(--success);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 15px;
    font-weight: 700;
    cursor: pointer;
}

.w-100 {
    width: 100%;
}

.hidden {
    display: none;
}

/* Extra Classes */
.max-w-sm {
    max-width: 450px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-15 {
    margin-top: 15px;
}

.mt-20 {
    margin-top: 20px;
}

.text-center {
    text-align: center;
}

.text-sm {
    font-size: 0.9rem;
}

.text-xs {
    font-size: 0.75rem;
}

.quick-amounts {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.quick-amounts button {
    flex: 1;
    background: var(--glass);
    border: 1px solid var(--border);
    color: white;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}

.qr-placeholder {
    background: white;
    width: 200px;
    height: 200px;
    margin: 20px auto;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-size: 5rem;
}

.copy-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    padding: 5px;
}

.copy-box input {
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 10px;
    flex: 1;
    font-size: 0.8rem;
    outline: none;
}

.copy-box button {
    background: var(--primary);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
}

.styled-input {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px;
    color: white;
    outline: none;
}

.btn-withdraw-header {
    background: rgba(236, 72, 153, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(236, 72, 153, 0.2);
    padding: 8px 15px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    margin-left: 15px;
}

.btn-withdraw-header:hover {
    background: rgba(236, 72, 153, 0.2);
}