@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #07070c;
    --bg-card: rgba(16, 16, 26, 0.72);
    --bg-card-hover: rgba(24, 24, 38, 0.88);
    
    --neon-pink: #ff2a74;
    --neon-pink-glow: rgba(255, 42, 116, 0.35);
    
    --neon-cyan: #00f0ff;
    --neon-cyan-glow: rgba(0, 240, 255, 0.35);
    
    --neon-green: #00ff87;
    --neon-green-glow: rgba(0, 255, 135, 0.35);
    
    --gold: #ffd700;
    --gold-glow: rgba(255, 215, 0, 0.35);
    
    --neon-purple: #7b2ff7;
    --neon-purple-glow: rgba(123, 47, 247, 0.35);
    
    --text-primary: #ffffff;
    --text-secondary: #8a8aa3;
    --border-color: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.06);
    
    --shadow-neon: 0 0 20px var(--neon-pink-glow);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: #020204;
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123, 47, 247, 0.05) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 42, 116, 0.04) 0%, transparent 70%);
    bottom: -200px;
    right: -200px;
    pointer-events: none;
    z-index: 0;
}

/* Simulated Desktop Device Shell */
.app-container {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-width: 480px;
    background: radial-gradient(circle at 10% 20%, rgba(255, 42, 116, 0.04) 0%, transparent 45%),
                radial-gradient(circle at 90% 80%, rgba(0, 240, 255, 0.04) 0%, transparent 45%),
                var(--bg-dark);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.95);
    z-index: 1;
}

@media (min-width: 481px) {
    .app-container {
        height: 100vh;
        height: 100dvh;
        max-height: none;
        margin: 0 auto;
        border-top: none;
        border-bottom: none;
        border-left: 1px solid rgba(255, 255, 255, 0.04);
        border-right: 1px solid rgba(255, 255, 255, 0.04);
        border-radius: 0;
    }
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}

/* Glassmorphism Class */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Header styling */
.app-header {
    height: 72px;
    padding: 10px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    border-bottom: 1px solid var(--border-color);
    background: rgba(7, 7, 12, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar-wrapper {
    position: relative;
    padding: 2px;
    border-radius: 50%;
    background: conic-gradient(var(--neon-pink) var(--vip-progress, 0%), rgba(255, 255, 255, 0.06) var(--vip-progress, 0%) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.avatar-wrapper:hover {
    transform: rotate(15deg) scale(1.05);
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--bg-dark);
    object-fit: cover;
}

.vip-badge {
    position: absolute;
    bottom: -3px;
    right: -3px;
    background: linear-gradient(135deg, var(--gold), #ffb300);
    color: #000;
    font-size: 7.5px;
    font-weight: 900;
    padding: 1.5px 4.5px;
    border-radius: 10px;
    border: 1px solid #000;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.username {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.2px;
}

.vip-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-card {
    display: flex;
    align-items: center;
    background: rgba(0, 255, 135, 0.05);
    border: 1px solid rgba(0, 255, 135, 0.15);
    padding: 5px 6px 5px 12px;
    border-radius: 24px;
    gap: 4px;
    box-shadow: inset 0 0 10px rgba(0, 255, 135, 0.03);
    transition: all 0.3s ease;
}

.balance-card:hover {
    background: rgba(0, 255, 135, 0.08);
    border-color: rgba(0, 255, 135, 0.25);
    box-shadow: 0 0 12px rgba(0, 255, 135, 0.1);
}

.balance-card span {
    font-size: 13px;
    font-weight: 800;
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green-glow);
}

/* Fast deposit plus button in header */
.header-deposit-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--neon-green);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #000;
    box-shadow: 0 0 8px var(--neon-green-glow);
    transition: all 0.25s ease;
    margin-left: 6px;
}

.header-deposit-btn:hover {
    transform: scale(1.18) rotate(90deg);
    box-shadow: 0 0 12px var(--neon-green);
    background: #ffffff;
}

.header-deposit-btn svg {
    width: 10px;
    height: 10px;
    stroke: currentColor;
    stroke-width: 3.5;
}

/* Main Content Area */
.app-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    padding-bottom: 90px; /* space for bottom navigation */
}

/* Navigation footer */
.app-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--border-color);
    background: rgba(7, 7, 12, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    gap: 4px;
    font-size: 10.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-item svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: stroke 0.3s ease, transform 0.3s ease;
}

.nav-item:hover {
    color: var(--text-primary);
}

.nav-item:hover svg {
    transform: translateY(-2px);
}

.nav-item.active {
    color: var(--neon-pink);
    text-shadow: 0 0 8px var(--neon-pink-glow);
}

.nav-item.active svg {
    stroke: var(--neon-pink);
    filter: drop-shadow(0 0 6px var(--neon-pink-glow));
    transform: translateY(-2px) scale(1.05);
}

/* Home Page Specifics */
/* Banners */
/* Banners */
.banner-carousel {
    width: 100%;
    height: 146px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.banner-slide {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #10061e, #290835);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 16px 20px;
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.02);
}

.banner-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1.001);
}

.banner-carousel:hover .banner-slide.active {
    transform: scale(1.03);
}

.banner-glow {
    position: absolute;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, var(--neon-pink-glow) 0%, transparent 70%);
    top: -60px;
    right: -60px;
    pointer-events: none;
}

.banner-text {
    background: rgba(10, 10, 18, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 14px 18px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    max-width: 85%;
    z-index: 3;
    animation: slideInLeft 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.15) forwards;
}

@keyframes slideInLeft {
    from { transform: translateX(-15px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.banner-text h2 {
    font-size: 17px;
    font-weight: 850;
    background: linear-gradient(90deg, #ff2a74, #00f0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.banner-text p {
    font-size: 11px;
    color: var(--text-secondary);
    max-width: 90%;
    line-height: 1.4;
}

.banner-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.banner-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot.active {
    width: 14px;
    border-radius: 3px;
    background: var(--neon-pink);
    box-shadow: 0 0 6px var(--neon-pink-glow);
}

/* Categories */
.categories-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 15px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.categories-bar::-webkit-scrollbar {
    height: 0px;
}

.category-tab {
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.category-tab svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    stroke-width: 2.2;
    fill: none;
    transition: transform 0.2s;
}

.category-tab:hover {
    color: #ffffff;
    border-color: rgba(255, 42, 116, 0.35);
    background: rgba(255, 42, 116, 0.04);
    transform: translateY(-1px);
}

.category-tab:hover svg {
    transform: scale(1.15);
}

.category-tab.active {
    background: linear-gradient(90deg, var(--neon-pink), #e01b5c);
    border-color: var(--neon-pink);
    color: #ffffff;
    box-shadow: 0 0 12px var(--neon-pink-glow);
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.game-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 154px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.25), border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Reflective Shine sweep overlay */
.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transform: skewX(-25deg);
    transition: none;
    z-index: 4;
    pointer-events: none;
}

.game-card:hover::before {
    left: 150%;
    transition: left 0.9s ease-in-out;
}

.game-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.15);
}

.game-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.game-card:hover .game-card-bg {
    transform: scale(1.06);
}

.game-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 7, 12, 0.96) 0%, rgba(7, 7, 12, 0.4) 60%, rgba(7, 7, 12, 0.1) 100%);
    z-index: 2;
}

.game-card-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
}

.game-title {
    font-size: 13.5px;
    font-weight: 800;
    margin-bottom: 2px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 4px;
}

.game-category {
    font-size: 8.5px;
    text-transform: uppercase;
    color: var(--neon-cyan);
    font-weight: 800;
    letter-spacing: 0.8px;
}

/* Permanent professional micro-badge inside game cards */
.game-stats-badge {
    font-size: 8px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5px 4.5px;
    border-radius: 4px;
    margin-top: 4px;
    display: inline-block;
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.game-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--neon-pink);
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    padding: 2.5px 6.5px;
    border-radius: 8px;
    z-index: 3;
    box-shadow: 0 0 8px var(--neon-pink-glow);
    letter-spacing: 0.5px;
}

/* Live Winners */
.live-winners {
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 20px;
}

.winners-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.winners-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--neon-cyan);
}

.winners-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
    animation: pulse 1.5s infinite;
}

.winners-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 180px;
    overflow-y: hidden;
}

.winner-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 12px;
    animation: slideInUp 0.3s ease;
}

.winner-user {
    font-weight: 600;
    color: var(--text-primary);
}

.winner-game {
    color: var(--text-secondary);
    font-size: 11px;
}

.winner-multiplier {
    color: var(--gold);
    font-weight: 700;
    background: rgba(255, 215, 0, 0.1);
    padding: 2px 6px;
    border-radius: 8px;
}

.winner-payout {
    color: var(--neon-green);
    font-weight: 700;
    text-shadow: 0 0 5px var(--neon-green-glow);
}

/* Auth Screens */
.auth-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 30px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 400px) {
    .auth-container {
        padding: 16px;
    }

    .auth-card {
        padding: 16px;
        margin: auto 0;
    }

    .form-input[name*="country_code"] {
        width: 105px !important;
        padding-left: 8px !important;
        padding-right: 4px !important;
        font-size: 13px !important;
    }
}

.auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.auth-logo-text {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px var(--neon-pink-glow));
}

.auth-logo-sub {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 5px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.auth-card {
    border-radius: 24px;
    padding: 25px;
    margin: auto 0;
}

.auth-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.form-input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.auth-btn {
    background: linear-gradient(90deg, var(--neon-pink), #e01b5c);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 5px 15px rgba(255, 42, 116, 0.3);
    transition: all 0.3s ease;
}

.auth-btn:hover {
    box-shadow: 0 5px 20px rgba(255, 42, 116, 0.5);
    transform: translateY(-2px);
}

.auth-switch {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 15px;
}

.auth-switch span {
    color: var(--neon-cyan);
    cursor: pointer;
    font-weight: 600;
}

/* Game Play Screen */
.game-play-container {
    position: absolute;
    inset: 0;
    z-index: 20;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
}

.game-play-header {
    height: 55px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 15px;
    justify-content: space-between;
}

.back-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
}

.game-play-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.iframe-wrapper {
    flex: 1;
    position: relative;
    background: #000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.game-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

@media (max-width: 480px), (max-height: 720px) {
    .game-iframe {
        min-height: 700px;
    }
}

/* Profile / Dashboard View */
.profile-card {
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--neon-pink);
    box-shadow: 0 0 15px var(--neon-pink-glow);
    margin-bottom: 12px;
}

.profile-vip-progress {
    width: 100%;
    margin-top: 15px;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan));
    border-radius: 10px;
    width: 30%; /* VIP 1 to VIP 2 progress example */
}

/* History Tabs */
.history-section {
    flex: 1;
}

.history-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.history-tab {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.2s ease;
}

.history-tab.active {
    color: var(--neon-pink);
    border-bottom: 2px solid var(--neon-pink);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.03);
    font-size: 12px;
}

.history-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.history-title {
    font-weight: 600;
}

.history-date {
    font-size: 10px;
    color: var(--text-secondary);
}

.history-amt {
    font-weight: 700;
}

.history-amt.win {
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green-glow);
}

.history-amt.loss {
    color: var(--neon-pink);
}

.history-amt.deposit {
    color: var(--neon-cyan);
}

/* Reset Balance Button */
.reset-balance-card {
    padding: 15px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.reset-balance-btn {
    background: rgba(0, 255, 135, 0.1);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reset-balance-btn:hover {
    background: var(--neon-green);
    color: #000;
    box-shadow: 0 0 10px var(--neon-green-glow);
}

/* Toast Message */
.toast-msg {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.toast-msg.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-msg.success {
    background: rgba(0, 255, 135, 0.9);
    color: #000;
    box-shadow: 0 5px 15px var(--neon-green-glow);
}

.toast-msg.error {
    background: rgba(255, 42, 116, 0.9);
    color: #fff;
    box-shadow: 0 5px 15px var(--neon-pink-glow);
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(1); opacity: 0.5; }
}

@keyframes slideInUp {
    from { transform: translateY(15px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.db-status-banner {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: var(--gold);
    padding: 6px 12px;
    font-size: 11px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 15px;
    font-weight: 500;
}

/* Notifications Drawer & Elements styling */
.notifications-drawer {
    display: none;
    position: absolute;
    top: 75px;
    right: 15px;
    width: calc(100% - 30px);
    max-width: 320px;
    max-height: 380px;
    border-radius: 20px;
    z-index: 100;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    animation: slideInDown 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideInDown {
    from { transform: translateY(-15px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.game-card.maintenance-mode {
    filter: grayscale(0.95) opacity(0.6);
    cursor: not-allowed !important;
    border-color: rgba(255, 42, 116, 0.4) !important;
    box-shadow: none !important;
}

.game-card.maintenance-mode:hover {
    transform: none !important;
}

.game-card.maintenance-mode .game-card-bg {
    transform: none !important;
}

.notification-item {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 11px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: background 0.2s ease;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.notification-item.info { border-left: 3px solid var(--neon-cyan); }
.notification-item.warning { border-left: 3px solid var(--gold); }
.notification-item.success { border-left: 3px solid var(--neon-green); }
.notification-item.danger { border-left: 3px solid var(--neon-pink); }

.notification-item-title {
    font-weight: 700;
    font-size: 12px;
    color: #fff;
}

.notification-item-msg {
    color: var(--text-secondary);
    line-height: 1.3;
}

.notification-item-date {
    font-size: 9px;
    color: var(--text-secondary);
    opacity: 0.6;
    text-align: right;
}

.admin-dashboard-link:hover {
    transform: scale(1.1);
}

.notif-delete-btn:hover {
    color: var(--neon-pink) !important;
    filter: drop-shadow(0 0 3px var(--neon-pink-glow));
}

/* Locked Overlay style for disabled games */
.locked-overlay {
    position: absolute;
    inset: 0;
    background: rgba(16, 6, 30, 0.82);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
    transition: all 0.3s ease;
}

.lock-icon {
    width: 30px;
    height: 30px;
    color: var(--neon-pink);
    filter: drop-shadow(0 0 8px var(--neon-pink));
    margin-bottom: 8px;
    animation: lockPulse 2.5s infinite ease-in-out;
}

.locked-text {
    font-size: 11px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 2px;
    text-shadow: 0 0 6px var(--neon-pink-glow);
}

@keyframes lockPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px var(--neon-pink)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 14px var(--neon-pink)); }
}

/* Deposit / Payment Methods */
.payment-method-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-method-item:hover, .payment-method-item:active {
    background: rgba(0, 240, 255, 0.06);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan-glow);
}

.account-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.account-detail-row:last-child {
    border-bottom: none;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--neon-cyan);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.copy-btn:hover {
    background: rgba(0, 240, 255, 0.12);
}

/* Deposit confirmation pulse */
@keyframes depositPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.35); }
    50% { transform: scale(1.06); box-shadow: 0 0 0 12px rgba(0, 230, 118, 0); }
}

/* Balance added celebration */
@keyframes balanceAddedPop {
    0% { transform: scale(0) rotate(-20deg); opacity: 0; }
    60% { transform: scale(1.15) rotate(8deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.confetti-piece {
    position: absolute;
    top: -10px;
    width: 8px;
    height: 14px;
    opacity: 0.9;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(420px) rotate(540deg); opacity: 0; }
}

/* Deposit status badges (wallet history) */
.deposit-status-badge {
    font-size: 9px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    display: inline-block;
    letter-spacing: 0.5px;
}

.deposit-status-badge.pending {
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--gold);
}

.deposit-status-badge.rejected {
    background: rgba(255, 42, 116, 0.1);
    border: 1px solid rgba(255, 42, 116, 0.25);
    color: var(--neon-pink);
}

@media (max-width: 380px) {
    .app-header {
        padding: 10px 10px !important;
    }
    .user-profile {
        gap: 6px !important;
    }
    .user-avatar {
        width: 32px !important;
        height: 32px !important;
    }
    .vip-badge {
        font-size: 7px !important;
        padding: 0.5px 2px !important;
        bottom: -2px !important;
        right: -2px !important;
    }
    .user-info {
        max-width: 80px;
        overflow: hidden;
    }
    .username {
        font-size: 11px !important;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }
    .vip-label {
        font-size: 8px !important;
    }
    .balance-card {
        padding: 4px 8px !important;
        gap: 3px !important;
    }
    .balance-card span {
        font-size: 11px !important;
    }
    .notification-bell-container {
        width: 28px !important;
        height: 28px !important;
    }
    .notification-bell-container svg {
        width: 14px !important;
        height: 14px !important;
    }
}

/* Custom Added Styles for Lobby & Profiles */
.lobby-stats-bar {
    grid-template-columns: repeat(4, 1fr);
    margin: 15px 0 !important;
}

@keyframes pulse {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

.favorite-star-btn:hover {
    transform: scale(1.25);
}

.game-card.fav-starred {
    border-color: var(--gold) !important;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.15) !important;
}

/* User Card View & Ticker styles */
.winner-row {
    transition: all 0.3s ease;
}

/* Profile VIP progression styles */
.profile-vip-progress {
    width: 100%;
    margin-top: 15px;
    background: rgba(0,0,0,0.15);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.02);
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan));
    border-radius: 3px;
    box-shadow: 0 0 8px var(--neon-pink-glow);
    transition: width 0.8s ease-in-out;
}

/* ===== Lobby Chat Slide-out Panel ===== */
.lobby-chat-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 86%;
    max-width: 340px;
    z-index: 150;
    border-radius: 0;
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
    animation: slideInRight 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ===== Platform Leaderboards ===== */
.leaderboard-tab.active {
    background: var(--neon-cyan) !important;
    color: #04040a !important;
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 8px var(--neon-cyan-glow);
}

/* ===== Lucky Wheel Promo hover ===== */
.lucky-wheel-promo:hover {
    box-shadow: 0 0 22px rgba(255, 215, 0, 0.18);
    transform: translateY(-1px);
}

/* ===== Premium Lucky Spin Wheel Animations & States ===== */
@keyframes needle-wiggle {
    0% { transform: translateX(-50%) rotate(0deg); }
    15% { transform: translateX(-50%) rotate(-14deg); }
    35% { transform: translateX(-50%) rotate(12deg); }
    55% { transform: translateX(-50%) rotate(-10deg); }
    70% { transform: translateX(-50%) rotate(8deg); }
    85% { transform: translateX(-50%) rotate(-4deg); }
    100% { transform: translateX(-50%) rotate(0deg); }
}

.needle-wiggle-active {
    animation: needle-wiggle 0.14s ease-in-out infinite;
    transform-origin: top center;
}

.btn-locked {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--text-secondary) !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    position: relative;
    overflow: hidden;
}

.btn-locked::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.02), transparent);
    transform: translateX(-100%);
    animation: lock-shimmer 3s infinite;
}

@keyframes lock-shimmer {
    100% { transform: translateX(100%); }
}

.btn-spin-active {
    animation: spin-btn-pulse 1.8s infinite alternate ease-in-out;
}

@keyframes spin-btn-pulse {
    0% {
        box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 5px 25px rgba(255, 215, 0, 0.6), 0 0 10px rgba(255, 215, 0, 0.25);
        transform: scale(1.015);
    }
}

/* ===== Platform Leaderboards UI Upgrade ===== */
.leaderboard-rank-row {
    display: flex;
    align-self: stretch;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 11px;
    color: #fff;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, background 0.2s;
}

.leaderboard-rank-row:hover {
    transform: translateX(3px);
    background: rgba(255, 255, 255, 0.03);
}

.leaderboard-row-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), transparent);
    opacity: 0.15;
    pointer-events: none;
    transition: width 0.8s ease-in-out;
}

.rank-badge {
    font-size: 11px;
    font-weight: 900;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    border: 1px solid transparent;
}

.rank-badge-1 {
    background: rgba(255, 215, 0, 0.15);
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.rank-badge-2 {
    background: rgba(224, 224, 224, 0.15);
    border-color: #e0e0e0;
    color: #e0e0e0;
}

.rank-badge-3 {
    background: rgba(205, 127, 50, 0.15);
    border-color: #cd7f32;
    color: #cd7f32;
}

.rank-badge-other {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

/* Lobby Hero Banner */
.lobby-hero-banner {
    position: relative;
    margin-bottom: 20px;
    padding: 25px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 42, 116, 0.12), rgba(0, 240, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.hero-glow-pink {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 180px;
    height: 180px;
    background: var(--neon-pink-glow);
    filter: blur(60px);
    opacity: 0.2;
    pointer-events: none;
    border-radius: 50%;
}

.hero-glow-cyan {
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 180px;
    height: 180px;
    background: var(--neon-cyan-glow);
    filter: blur(60px);
    opacity: 0.2;
    pointer-events: none;
    border-radius: 50%;
}

.hero-content {
    flex: 1;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 42, 116, 0.15);
    border: 1px solid rgba(255, 42, 116, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
    font-size: 9px;
    font-weight: 800;
    color: var(--neon-pink);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-badge span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--neon-pink);
    box-shadow: 0 0 6px var(--neon-pink);
    display: inline-block;
}

.hero-title {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 8px 0;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, #ff2a74, #ffd700, #00f0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
    max-width: 420px;
    line-height: 1.4;
    font-family: 'Outfit', sans-serif;
}

.hero-actions {
    display: flex;
    gap: 10px;
}

.hero-logo-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.01);
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.04);
    box-shadow: inset 0 0 10px rgba(255,255,255,0.02);
}

.hero-logo-ring {
    position: absolute;
    inset: -4px;
    border: 2px dashed rgba(255, 42, 116, 0.25);
    border-radius: 28px;
    animation: spin-clockwise 25s linear infinite;
}

.hero-logo-ring-outer {
    position: absolute;
    inset: -10px;
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 34px;
    filter: drop-shadow(0 0 4px rgba(0, 240, 255, 0.2));
}

.hero-logo-img {
    height: 72px;
    width: 72px;
    object-fit: contain;
    border-radius: 14px;
    filter: drop-shadow(0 0 12px rgba(255, 42, 116, 0.4));
}

@keyframes spin-clockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .lobby-hero-banner {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        padding: 20px 16px;
        gap: 16px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-desc {
        margin: 0 auto 16px auto;
    }
}



