* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #050508;
    --glass: rgba(255,255,255,0.05);
    --glass-strong: rgba(255,255,255,0.08);
    --border: rgba(255,255,255,0.08);
    --highlight: rgba(255,255,255,0.12);
    --accent: #8b7cf7;
    --accent-light: #b4a8ff;
    --accent-glow: rgba(139,124,247,0.6);
    --gold: #ffd700;
    --stars: #ffb347;
    --ton: #0098ea;
    --success: #34d399;
    --danger: #f87171;
    --text: #ffffff;
    --dim: rgba(255,255,255,0.45);
    --radius: 20px;
    /* New Year colors */
    --ny-red: #e74c3c;
    --ny-green: #27ae60;
    --ny-gold: #f1c40f;
    --ny-snow: rgba(255,255,255,0.9);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    padding-bottom: 90px;
    position: relative;
    width: 100%;
    max-width: 100vw;
}

/* ===== SNOWFLAKES ===== */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -20px;
    color: var(--ny-snow);
    font-size: 1em;
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
    animation: snowfall linear infinite;
    opacity: 0.8;
}

.snowflake:nth-child(1) { left: 5%; animation-duration: 10s; animation-delay: 0s; font-size: 0.8em; }
.snowflake:nth-child(2) { left: 15%; animation-duration: 12s; animation-delay: 1s; font-size: 1.2em; }
.snowflake:nth-child(3) { left: 25%; animation-duration: 8s; animation-delay: 2s; font-size: 0.6em; }
.snowflake:nth-child(4) { left: 35%; animation-duration: 14s; animation-delay: 0.5s; font-size: 1em; }
.snowflake:nth-child(5) { left: 45%; animation-duration: 9s; animation-delay: 3s; font-size: 0.9em; }
.snowflake:nth-child(6) { left: 55%; animation-duration: 11s; animation-delay: 1.5s; font-size: 1.1em; }
.snowflake:nth-child(7) { left: 65%; animation-duration: 13s; animation-delay: 2.5s; font-size: 0.7em; }
.snowflake:nth-child(8) { left: 75%; animation-duration: 10s; animation-delay: 4s; font-size: 1.3em; }
.snowflake:nth-child(9) { left: 85%; animation-duration: 15s; animation-delay: 0s; font-size: 0.8em; }
.snowflake:nth-child(10) { left: 95%; animation-duration: 7s; animation-delay: 2s; font-size: 1em; }

@keyframes snowfall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0.3;
    }
}

/* ===== LOGO ===== */
.logo-wrap {
    position: relative;
    text-align: center;
    padding: 24px 0 20px;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 80px;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
    filter: blur(25px);
    opacity: 0.5;
    animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.15); }
}

.logo-text {
    position: relative;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(180deg, #e8d5ff 0%, #b8a0d0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    position: relative;
}

.header-top .snow-toggle {
    position: absolute;
    right: 0;
}

.snow-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.snow-toggle.off {
    opacity: 0.4;
}

.snow-toggle:active {
    transform: scale(0.95);
}

/* ===== NAV - New Dark Style ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 0 env(safe-area-inset-bottom, 0px);
    z-index: 100;
    background: linear-gradient(180deg, rgba(15,23,42,0.98) 0%, rgba(10,15,30,1) 100%);
    border-top: 1px solid rgba(59,130,246,0.2);
}

/* Fix for keyboard pushing content */
@supports (bottom: env(keyboard-inset-height)) {
    .bottom-nav {
        padding-bottom: env(keyboard-inset-height, 0px);
    }
}

.nav-inner {
    display: flex;
    background: transparent;
    padding: 8px 4px 10px;
    width: 100%;
    justify-content: space-around;
}

.nav-btn {
    background: transparent;
    border: none;
    color: rgba(148,163,184,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s;
    padding: 6px 12px;
    border-radius: 8px;
    flex: 1;
    min-width: 0;
}

.nav-btn .nav-icon {
    font-size: 22px;
    filter: grayscale(0.5);
    transition: all 0.2s;
}

.nav-btn .nav-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-btn.active {
    color: #fbbf24;
}

.nav-btn.active .nav-icon {
    filter: grayscale(0) drop-shadow(0 0 8px rgba(251,191,36,0.5));
}

.nav-btn.active .nav-label {
    font-weight: 700;
}

.nav-btn:active {
    transform: scale(0.95);
}

.nav-btn.admin-btn {
    color: rgba(251,191,36,0.6);
}

.nav-btn.admin-btn.active {
    color: #fbbf24;
    box-shadow: 0 4px 16px rgba(255,215,0,0.3);
}

.nav-btn:active { transform: scale(0.92); }
.nav-icon { font-size: 18px; }
.nav-label { font-size: 9px; font-weight: 600; white-space: nowrap; }

/* ===== PAGES ===== */
.page { display: none; padding: 0 12px 12px; animation: fadeIn 0.3s; }
.page.active { display: block; }

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

/* ===== BALANCE BAR ===== */
.balance-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.balance-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(30,30,40,0.8);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 16px;
    border-radius: 16px;
}

.balance-icon { font-size: 16px; }

.balance-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.balance-value { 
    font-size: 16px; 
    font-weight: 700;
    line-height: 1.2;
}

.balance-label {
    font-size: 9px;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ton-logo {
    width: 16px;
    height: 16px;
}

/* Shop Button in Balance Bar */
.balance-shop-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    background: linear-gradient(135deg, rgba(139,124,247,0.25), rgba(139,124,247,0.1));
    border: 1px solid rgba(139,124,247,0.3);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.balance-shop-btn:active {
    transform: scale(0.95);
    background: linear-gradient(135deg, rgba(139,124,247,0.4), rgba(139,124,247,0.2));
}

.balance-shop-btn .shop-icon {
    font-size: 18px;
    line-height: 1;
}

/* ===== SHOP MODAL ===== */
.shop-modal {
    max-width: 360px;
    padding: 24px 20px;
}

.shop-header {
    text-align: center;
    margin-bottom: 20px;
}

.shop-icon-big {
    font-size: 48px;
    margin-bottom: 8px;
}

.shop-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.shop-header p {
    font-size: 13px;
    color: var(--dim);
}

.shop-rate {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: rgba(52,211,153,0.1);
    border: 1px solid rgba(52,211,153,0.3);
    border-radius: 12px;
    padding: 10px 16px;
    margin-bottom: 20px;
}

.rate-label {
    font-size: 13px;
    color: var(--dim);
}

.rate-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--success);
}

.shop-input-section {
    margin-bottom: 16px;
}

.shop-input-section label {
    display: block;
    font-size: 13px;
    color: var(--dim);
    margin-bottom: 8px;
}

.shop-input-wrap {
    position: relative;
}

.shop-input-wrap input {
    width: 100%;
    padding: 16px 50px 16px 16px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.shop-input-wrap input:focus {
    outline: none;
    border-color: var(--accent);
}

.shop-input-suffix {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}

.shop-min-hint {
    font-size: 11px;
    color: var(--dim);
    text-align: center;
    margin-top: 6px;
}

.shop-presets {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.shop-preset {
    flex: 1;
    padding: 10px 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.shop-preset:active {
    background: rgba(139,124,247,0.2);
    border-color: var(--accent);
}

.shop-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,179,71,0.1);
    border: 1px solid rgba(255,179,71,0.3);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 16px;
}

.total-label {
    font-size: 14px;
    color: var(--dim);
}

.total-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--stars);
}

.shop-pay-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.shop-notice {
    display: flex;
    gap: 10px;
    background: rgba(139,124,247,0.1);
    border: 1px solid rgba(139,124,247,0.2);
    border-radius: 12px;
    padding: 12px;
    margin-top: 16px;
}

.shop-notice .notice-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.shop-notice p {
    font-size: 12px;
    color: var(--dim);
    line-height: 1.4;
}

.shop-notice a {
    color: var(--accent);
    text-decoration: underline;
}

/* ===== DAILY CASE ===== */
.daily-case-section {
    margin-top: 20px;
    padding: 0 16px;
}

.daily-case-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,183,77,0.08));
    border: 1px solid rgba(255,215,0,0.3);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.daily-case-card:active {
    transform: scale(0.98);
}

.daily-case-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.daily-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.15) 0%, transparent 50%);
    animation: dailyGlow 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes dailyGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.daily-icon {
    width: 60px;
    height: 60px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 12px rgba(255,215,0,0.4));
    animation: dailyBounce 2s ease-in-out infinite;
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.daily-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes dailyBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.daily-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.daily-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 2px;
}

.daily-desc {
    font-size: 12px;
    color: var(--dim);
}

.daily-right {
    text-align: right;
    position: relative;
    z-index: 1;
}

.daily-reward {
    font-size: 14px;
    font-weight: 700;
    color: #ffb347;
    margin-bottom: 8px;
}

.daily-btn {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    border: none;
    color: #000;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(255,215,0,0.3);
    transition: all 0.2s;
}

.daily-btn:active {
    transform: scale(0.95);
}

.daily-btn:disabled {
    background: var(--glass);
    color: var(--dim);
    box-shadow: none;
    cursor: not-allowed;
}

.daily-timer {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    z-index: 10;
}

.daily-timer span {
    font-size: 24px;
    font-weight: 800;
    color: #ffd700;
    font-family: monospace;
}

/* Daily Result Overlay */
.daily-result-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

.daily-result-content {
    text-align: center;
    position: relative;
    padding: 40px;
}

.daily-result-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,215,0,0.4) 0%, transparent 70%);
    filter: blur(30px);
    animation: dailyResultGlow 2s ease-in-out infinite;
}

@keyframes dailyResultGlow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

.daily-result-icon {
    font-size: 80px;
    position: relative;
    z-index: 1;
    animation: dailyResultPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 8px 24px rgba(255,215,0,0.5));
}

@keyframes dailyResultPop {
    0% { transform: scale(0) rotate(-20deg); opacity: 0; }
    60% { transform: scale(1.2) rotate(10deg); }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

.daily-result-content h2 {
    font-size: 24px;
    font-weight: 800;
    color: #ffd700;
    margin: 16px 0 8px;
    position: relative;
    z-index: 1;
}

.daily-result-reward {
    font-size: 36px;
    font-weight: 800;
    color: #ffb347;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    animation: rewardPulse 1s ease-in-out infinite;
}

@keyframes rewardPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.daily-result-btn {
    position: relative;
    z-index: 1;
    min-width: 150px;
}

/* ===== SECTION HEADER ===== */
.cases-section {
    margin-top: 24px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--dim);
}

/* ===== CASES ===== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.case-card {
    position: relative;
    background: linear-gradient(160deg, var(--glass-strong), var(--glass));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 12px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    overflow: hidden;
}

.case-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    pointer-events: none;
}

.case-card:active { transform: scale(0.96); }

.case-card.legendary {
    border-color: rgba(255,215,0,0.25);
    background: linear-gradient(160deg, rgba(255,215,0,0.1), rgba(255,215,0,0.02));
}

.case-card.epic {
    border-color: rgba(155,89,182,0.25);
    background: linear-gradient(160deg, rgba(155,89,182,0.1), rgba(155,89,182,0.02));
}

.case-card.rare {
    border-color: rgba(52,152,219,0.25);
    background: linear-gradient(160deg, rgba(52,152,219,0.1), rgba(52,152,219,0.02));
}

.case-image {
    font-size: 56px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
}

.case-image img { 
    width: 100%; 
    height: 100%; 
    max-width: 80px;
    max-height: 80px;
    object-fit: contain; /* Changed from cover to contain to prevent cropping */
    border-radius: 16px;
}

.case-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.case-price {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 11px;
    color: var(--dim);
    position: relative;
    z-index: 1;
}

.case-price span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.case-price .ton-logo {
    width: 12px;
    height: 12px;
    opacity: 0.7;
}

/* ===== TASKS PAGE ===== */
.tasks-header {
    position: relative;
    text-align: center;
    padding: 20px 12px 16px;
    margin: 0 -12px 16px;
    overflow: hidden;
}

.tasks-header-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(139,124,247,0.15) 0%, transparent 100%);
}

.tasks-icon {
    font-size: 40px;
    margin-bottom: 12px;
    position: relative;
    filter: drop-shadow(0 4px 20px var(--accent-glow));
}

.tasks-header h1 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 6px;
    position: relative;
}

.tasks-header p {
    font-size: 13px;
    color: var(--dim);
    position: relative;
}

.tasks-container { display: flex; flex-direction: column; gap: 10px; }

.task-card {
    background: linear-gradient(135deg, var(--glass-strong), var(--glass));
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.2s;
}

.task-card:active { transform: scale(0.98); }

.task-icon {
    width: 48px;
    height: 48px;
    background: var(--glass);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.task-info { flex: 1; min-width: 0; }
.task-title { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.task-description { font-size: 12px; color: var(--dim); }

.task-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.task-reward {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 15px;
}

.task-reward.stars { color: var(--stars); }

.task-btn {
    background: linear-gradient(135deg, var(--accent), rgba(139,124,247,0.7));
    border: none;
    color: white;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.task-btn:active { transform: scale(0.94); }
.task-btn.completed { 
    background: linear-gradient(135deg, var(--success), rgba(52,211,153,0.7)); 
    box-shadow: 0 4px 12px rgba(52,211,153,0.3);
}

/* ===== PROFILE PAGE ===== */
.profile-hero {
    position: relative;
    text-align: center;
    padding: 30px 20px 24px;
    margin: -16px -16px 20px;
    overflow: hidden;
}

.profile-hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(139,124,247,0.25) 0%, transparent 60%),
        linear-gradient(180deg, rgba(139,124,247,0.1) 0%, transparent 100%);
}

.profile-avatar-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
}

.profile-avatar-glow {
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(15px);
    animation: avatarGlow 3s ease-in-out infinite;
}

@keyframes avatarGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.profile-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 700;
    color: white;
    border: 3px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.profile-level {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(255,215,0,0.3);
}

.profile-name {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
    position: relative;
}

.profile-id {
    font-size: 12px;
    color: var(--dim);
    position: relative;
}

/* Stats Row */
.profile-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 20px;
    margin-bottom: 20px;
}

.profile-stat { text-align: center; }
.profile-stat-value { font-size: 22px; font-weight: 800; color: var(--accent); }
.profile-stat-label { font-size: 11px; color: var(--dim); margin-top: 2px; }
.profile-stat-divider { width: 1px; height: 36px; background: var(--border); }

/* Section Header */
.section-header-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-header-mini span {
    font-size: 14px;
    font-weight: 600;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-link {
    font-size: 12px;
    color: var(--accent);
    text-decoration: none;
}

.deposit-nft-btn {
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(139,124,247,0.2), rgba(139,124,247,0.1));
    border: 1px solid rgba(139,124,247,0.3);
    border-radius: 20px;
    color: var(--accent-light);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.deposit-nft-btn:active {
    transform: scale(0.95);
}

.profile-section { margin-bottom: 24px; }

/* Deposit NFT Modal */
.deposit-nft-content {
    text-align: center;
    padding: 10px 0;
}

.deposit-icon {
    font-size: 60px;
    margin-bottom: 16px;
}

.deposit-nft-content h2 {
    font-size: 22px;
    margin-bottom: 8px;
}

.deposit-desc {
    font-size: 14px;
    color: var(--dim);
    margin-bottom: 24px;
    line-height: 1.5;
}

.deposit-steps {
    text-align: left;
    margin-bottom: 24px;
}

.deposit-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--glass);
    border-radius: 12px;
    margin-bottom: 8px;
}

.step-num {
    width: 28px;
    height: 28px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.step-text {
    font-size: 13px;
    line-height: 1.4;
}

.deposit-code-section {
    background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(255,215,0,0.02));
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
}

.deposit-code-label {
    font-size: 12px;
    color: var(--dim);
    margin-bottom: 8px;
}

.deposit-code {
    font-size: 28px;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 2px;
    font-family: monospace;
}

.deposit-code-hint {
    font-size: 11px;
    color: var(--dim);
    margin-top: 8px;
}

/* Balance Row */
.balance-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.balance-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 10px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.balance-mini.stars { border-color: rgba(255,179,71,0.2); background: rgba(255,179,71,0.08); }
.balance-mini.ton { border-color: rgba(0,152,234,0.2); background: rgba(0,152,234,0.08); }

/* Balance Row 2 columns */
.balance-row {
    grid-template-columns: 1fr 1fr;
}

.bm-icon { font-size: 18px; }
.bm-icon-img { width: 18px; height: 18px; }
.bm-value { font-size: 16px; font-weight: 700; }

/* Wallet Connect Button */
.wallet-connect-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(139,124,247,0.12), rgba(139,124,247,0.04));
    border: 1px solid rgba(139,124,247,0.25);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.wallet-connect-btn:active { transform: scale(0.98); }

.wallet-connect-btn.connected {
    background: linear-gradient(135deg, rgba(52,211,153,0.12), rgba(52,211,153,0.04));
    border-color: rgba(52,211,153,0.25);
}

.wcb-icon.connected {
    background: linear-gradient(135deg, var(--success), rgba(52,211,153,0.7));
}

.wcb-status {
    width: 28px;
    height: 28px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

/* Top Up Buttons */
.topup-row {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.topup-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.topup-btn:active {
    transform: scale(0.96);
}

.topup-btn.stars {
    border-color: rgba(255,179,71,0.3);
    background: rgba(255,179,71,0.1);
}

.topup-btn.ton {
    border-color: rgba(0,152,234,0.3);
    background: rgba(0,152,234,0.1);
}

.topup-btn img {
    width: 18px;
    height: 18px;
}

.wcb-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wcb-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.wcb-icon img { width: 20px; height: 20px; }

.wcb-info { text-align: left; }
.wcb-title { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.wcb-desc { display: block; font-size: 11px; color: var(--dim); margin-top: 2px; }

.wcb-arrow { color: var(--dim); }

/* History Container */
.history-container {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

/* Empty State */
.history-empty-state {
    padding: 32px 20px;
    text-align: center;
}

.hes-icon-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
}

.hes-glow {
    position: absolute;
    inset: -8px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(12px);
    opacity: 0.4;
    animation: hesGlow 3s ease-in-out infinite;
}

@keyframes hesGlow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

.hes-icon {
    position: relative;
    width: 64px;
    height: 64px;
    background: var(--glass-strong);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.hes-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.hes-desc {
    font-size: 12px;
    color: var(--dim);
}

/* History Items */
.history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.history-item:last-child { border-bottom: none; }
.history-item:active { background: var(--glass); }

.hi-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.hi-icon.common { background: rgba(150,150,150,0.15); }
.hi-icon.rare { background: rgba(52,152,219,0.15); }
.hi-icon.epic { background: rgba(155,89,182,0.15); }
.hi-icon.legendary { background: rgba(255,215,0,0.15); }

.hi-info { flex: 1; min-width: 0; }
.hi-name { font-size: 14px; font-weight: 600; }
.hi-case { font-size: 11px; color: var(--dim); margin-top: 2px; }

.hi-right { text-align: right; }
.hi-value { font-size: 14px; font-weight: 700; color: var(--success); }
.hi-time { font-size: 10px; color: var(--dim); margin-top: 2px; }

/* ===== BUTTONS ===== */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.btn:active { transform: scale(0.96); }
.btn:disabled { opacity: 0.5; }

.btn-primary {
    background: linear-gradient(135deg, var(--accent), rgba(139,124,247,0.7));
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-stars {
    background: linear-gradient(135deg, #ff9500, #ffb84d);
    color: white;
    box-shadow: 0 4px 16px rgba(255,149,0,0.3);
}

.btn-ton {
    background: linear-gradient(135deg, #0098ea, #00b8ff);
    color: white;
    box-shadow: 0 4px 16px rgba(0,152,234,0.3);
}

.btn-ton-logo { width: 18px; height: 18px; }
.btn-icon { font-size: 18px; }
.btn-price { font-size: 16px; font-weight: 700; }


/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal.active { display: flex; }

.modal-content {
    background: linear-gradient(160deg, rgba(20,20,30,0.98), rgba(12,12,18,0.99));
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 24px 20px;
    width: 100%;
    max-width: 360px;
    position: relative;
    box-shadow: 0 24px 80px rgba(0,0,0,0.7), inset 0 1px 0 var(--highlight);
    animation: modalIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--dim);
    font-size: 20px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* ===== CASE MODAL - FULLSCREEN ===== */
#case-modal {
    background: linear-gradient(180deg, #2a1a1a 0%, #1a0a0a 50%, #0a0505 100%);
}

#case-modal .modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
    max-width: 100%;
    width: 100%;
    height: 100%;
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.case-modal {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.case-modal-header {
    text-align: center;
    padding-top: 10px;
    margin-bottom: 10px;
}

.case-modal-icon {
    font-size: 80px;
    margin-bottom: 12px;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    animation: caseFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.5));
}

@keyframes caseFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.case-modal-icon img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    border-radius: 20px;
    border: 2px solid rgba(255,200,100,0.5);
    box-shadow: 0 0 30px rgba(255,150,50,0.25);
}

#case-modal-title {
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

/* ===== ROULETTE - HORIZONTAL CAROUSEL ===== */
.roulette-wrap {
    position: relative;
    margin: 0 -20px;
    display: flex;
    align-items: center;
}

.roulette-container {
    position: relative;
    overflow: hidden;
    background: transparent;
    padding: 20px 0;
    width: 100%;
}

.roulette-fade-left,
.roulette-fade-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 5;
    pointer-events: none;
}

.roulette-fade-left {
    left: 0;
    background: linear-gradient(90deg, #1a0a0a 0%, transparent 100%);
}

.roulette-fade-right {
    right: 0;
    background: linear-gradient(-90deg, #1a0a0a 0%, transparent 100%);
}

.roulette-pointer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent), var(--accent-light));
    z-index: 10;
    box-shadow: 0 0 20px var(--accent-glow), 0 0 40px var(--accent-glow);
}

.roulette-pointer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid var(--accent);
    filter: drop-shadow(0 0 6px var(--accent-glow));
}

.roulette-pointer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 10px solid var(--accent);
    filter: drop-shadow(0 0 6px var(--accent-glow));
}

.roulette-track {
    display: flex;
    gap: 12px;
    padding: 0 20px;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.roulette-item {
    min-width: 100px;
    height: 130px;
    background: linear-gradient(145deg, rgba(40,60,50,0.9), rgba(30,50,40,0.95));
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(180,150,80,0.4);
    flex-shrink: 0;
    padding: 10px;
}

.roulette-item.common { 
    border-color: rgba(150,150,150,0.4); 
    background: linear-gradient(145deg, rgba(50,50,50,0.9), rgba(40,40,40,0.95));
}
.roulette-item.rare { 
    border-color: rgba(80,160,220,0.6); 
    background: linear-gradient(145deg, rgba(40,50,60,0.95), rgba(30,40,55,0.98)); 
}
.roulette-item.epic { 
    border-color: rgba(180,100,220,0.6); 
    background: linear-gradient(145deg, rgba(50,40,60,0.95), rgba(40,30,50,0.98)); 
}
.roulette-item.legendary { 
    border-color: rgba(255,200,50,0.7); 
    background: linear-gradient(145deg, rgba(50,70,40,0.95), rgba(35,55,35,0.98));
    box-shadow: 0 0 25px rgba(255,200,50,0.2);
}

.roulette-item-icon { 
    font-size: 40px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(150,140,120,0.2);
    border-radius: 12px;
    margin-bottom: 8px;
}

.roulette-item-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.roulette-item-name { 
    font-size: 10px; 
    color: var(--text);
    font-weight: 600;
    text-align: center; 
    padding: 0 4px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== RESULT ===== */
.case-result {
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

.result-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    width: 150px;
    height: 150px;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
    filter: blur(30px);
    opacity: 0.6;
    animation: resultGlow 2s ease-in-out infinite;
}

@keyframes resultGlow {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -60%) scale(1); }
    50% { opacity: 0.7; transform: translate(-50%, -60%) scale(1.2); }
}

.result-item {
    font-size: 72px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    animation: resultPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes resultPop {
    0% { transform: scale(0) rotate(-10deg); opacity: 0; }
    60% { transform: scale(1.2) rotate(5deg); }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

#result-name { 
    font-size: 18px; 
    font-weight: 700;
    margin-bottom: 6px; 
    position: relative;
    z-index: 1;
}

#result-description { 
    font-size: 13px; 
    color: var(--dim); 
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.btn-claim {
    max-width: 200px;
    margin: 0 auto;
}

.case-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.case-actions .btn {
    flex: 1;
}

/* ===== PRIZES PREVIEW ===== */
.case-prizes-preview {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.prizes-label {
    font-size: 11px;
    color: var(--dim);
    text-align: center;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prizes-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.prize-mini {
    width: 44px;
    height: 44px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.prize-mini.legendary { border-color: rgba(255,215,0,0.4); }
.prize-mini.epic { border-color: rgba(155,89,182,0.4); }
.prize-mini.rare { border-color: rgba(52,152,219,0.4); }

/* ===== BANNED ===== */
.banned-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, #0a0a0f 0%, #12121a 100%);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.banned-content { 
    text-align: center; 
    max-width: 380px;
    position: relative;
    padding: 20px;
}

.banned-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(248,113,113,0.3) 0%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

.banned-icon-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(248,113,113,0.2), rgba(248,113,113,0.05));
    border: 2px solid rgba(248,113,113,0.3);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bannedPulse 2s ease-in-out infinite;
}

@keyframes bannedPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(248,113,113,0.4); }
    50% { transform: scale(1.02); box-shadow: 0 0 30px 10px rgba(248,113,113,0.1); }
}

.banned-icon { 
    font-size: 48px;
    filter: drop-shadow(0 4px 12px rgba(248,113,113,0.4));
}

.banned-title { 
    color: var(--danger); 
    font-size: 24px; 
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
}

.ban-reason { 
    color: var(--text); 
    font-size: 15px; 
    margin-bottom: 6px;
    font-weight: 500;
}

.ban-date { 
    color: var(--dim); 
    font-size: 13px; 
    margin-bottom: 20px;
}

.banned-info-card {
    background: rgba(248,113,113,0.1);
    border: 1px solid rgba(248,113,113,0.2);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    gap: 12px;
    text-align: left;
    margin-bottom: 24px;
}

.banned-info-card .info-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.banned-info-card p {
    font-size: 13px;
    color: var(--dim);
    line-height: 1.5;
}

.appeal-section {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: var(--radius);
    text-align: left;
}

.appeal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.appeal-icon {
    font-size: 20px;
}

.appeal-section h3 { 
    font-size: 16px;
    font-weight: 600;
}

.appeal-section textarea {
    width: 100%;
    min-height: 100px;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    color: var(--text);
    font-size: 14px;
    resize: none;
    margin-bottom: 14px;
    transition: border-color 0.2s;
}

.appeal-section textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.appeal-section textarea:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.appeal-section .btn {
    width: 100%;
}

.appeal-section .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.appeal-status { 
    margin-top: 14px; 
    font-size: 13px; 
    color: var(--success);
    padding: 12px;
    background: rgba(52,211,153,0.1);
    border-radius: 10px;
    display: none;
}

.appeal-status:not(:empty) {
    display: block;
}

.banned-hint {
    margin-top: 20px;
    font-size: 12px;
    color: var(--dim);
    opacity: 0.7;
}

/* ===== WINS ===== */
.wins-list {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 6px;
}

.win-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; }
.win-icon { font-size: 24px; }
.win-info { flex: 1; }
.win-name { font-weight: 600; font-size: 13px; }
.win-date { font-size: 10px; color: var(--dim); }

.empty-text { color: var(--dim); text-align: center; padding: 20px; font-size: 13px; }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.empty-desc {
    font-size: 13px;
    color: var(--dim);
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20,20,30,0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    padding: 12px 20px;
    border-radius: 12px;
    z-index: 300;
    animation: toastIn 0.3s;
    font-size: 14px;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(12px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}


/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s, visibility 0.4s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
}

.preloader-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(20px);
    animation: preloaderGlow 2s ease-in-out infinite;
}

@keyframes preloaderGlow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

.preloader-icon {
    position: relative;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    box-shadow: 0 12px 40px var(--accent-glow);
    animation: preloaderBounce 1.5s ease-in-out infinite;
}

@keyframes preloaderBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.preloader-text {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.preloader-subtitle {
    font-size: 14px;
    color: var(--ny-snow);
    margin-bottom: 16px;
    animation: subtitlePulse 2s ease-in-out infinite;
}

@keyframes subtitlePulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.preloader-bar {
    width: 160px;
    height: 4px;
    background: var(--glass);
    border-radius: 4px;
    margin: 0 auto;
    overflow: hidden;
}

.preloader-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 4px;
    animation: preloaderProgress 1.5s ease-out forwards;
}

@keyframes preloaderProgress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* ===== RESULT BUTTONS ===== */
.result-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    max-width: 280px;
    margin: 0 auto;
}

.result-buttons .btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
}

.btn-sell {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #000;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(255,215,0,0.3);
}

.btn-withdraw {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(231,76,60,0.3);
}

.btn-claim {
    max-width: none;
}


/* ===== STARS SHOP MODAL ===== */
.stars-shop-modal {
    max-width: 380px;
    width: 90%;
    padding: 20px 16px;
    max-height: 85vh;
    overflow-y: auto;
}

.stars-shop-header {
    text-align: center;
    margin-bottom: 24px;
}

.stars-shop-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #ffd700, #ffb347);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 16px;
    box-shadow: 0 8px 32px rgba(255,215,0,0.3);
    animation: starShopPulse 2s ease-in-out infinite;
}

@keyframes starShopPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 32px rgba(255,215,0,0.3); }
    50% { transform: scale(1.05); box-shadow: 0 12px 40px rgba(255,215,0,0.5); }
}

.stars-shop-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.stars-shop-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.stars-packages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.star-package {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.star-package:hover {
    border-color: var(--accent);
    background: rgba(138,99,255,0.08);
}

.star-package.popular {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(138,99,255,0.12), rgba(138,99,255,0.05));
}

.star-package.best {
    border-color: #ffd700;
    background: linear-gradient(135deg, rgba(255,215,0,0.12), rgba(255,215,0,0.05));
}

.package-badge {
    position: absolute;
    top: -8px;
    left: 12px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.package-badge.best {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #000;
}

.package-info {
    flex: 1;
}

.package-get {
    font-size: 15px;
    color: #fff;
}

.package-get strong {
    color: #ffd700;
}

.package-bonus {
    font-size: 12px;
    color: #4ade80;
    font-weight: 600;
    margin-top: 2px;
}

.package-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.package-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.package-btn:active {
    transform: scale(0.98);
}

.star-package.best .package-btn {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #000;
}

.stars-shop-footer {
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.stars-shop-footer p {
    color: var(--text-secondary);
    font-size: 13px;
}

/* Topup buttons */
.topup-row {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.topup-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--glass);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.topup-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.topup-btn.stars {
    background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,215,0,0.05));
    border-color: rgba(255,215,0,0.3);
}

.topup-btn.stars:hover {
    border-color: #ffd700;
    box-shadow: 0 4px 16px rgba(255,215,0,0.2);
}

.topup-btn.ton {
    background: linear-gradient(135deg, rgba(0,152,255,0.15), rgba(0,152,255,0.05));
    border-color: rgba(0,152,255,0.3);
}

.topup-btn.ton:hover {
    border-color: #0098ff;
    box-shadow: 0 4px 16px rgba(0,152,255,0.2);
}

.topup-btn img {
    width: 18px;
    height: 18px;
}


/* ===== CUSTOM AMOUNT INPUT ===== */
.custom-amount-section {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
}

.custom-amount-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 600;
}

.custom-amount-row {
    display: flex;
    gap: 10px;
}

.custom-input-wrap {
    flex: 1;
    position: relative;
}

.custom-input-wrap input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 40px 12px 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

.custom-input-wrap input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.custom-input-wrap input::placeholder {
    color: rgba(255,255,255,0.3);
}

.custom-input-suffix {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}

.custom-buy-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
    white-space: nowrap;
}

.custom-buy-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px var(--accent-glow);
}



.packages-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.packages-divider::before,
.packages-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.packages-divider span {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== TON TOPUP MODAL ===== */
.ton-topup-modal {
    max-width: 380px;
    padding: 24px 20px;
}

.ton-topup-header {
    text-align: center;
    margin-bottom: 24px;
}

.ton-topup-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #0098ff, #00d4ff);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 8px 32px rgba(0,152,255,0.3);
}

.ton-topup-icon img {
    width: 40px;
    height: 40px;
}

.ton-topup-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.ton-topup-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.ton-amount-section {
    margin-bottom: 16px;
}

.ton-amount-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 600;
}

.ton-amount-row {
    display: flex;
    gap: 10px;
}

.ton-input-wrap {
    flex: 1;
    position: relative;
}

.ton-input-wrap input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 70px 16px 16px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    outline: none;
    transition: all 0.2s;
}

.ton-input-wrap input:focus {
    border-color: #0098ff;
    box-shadow: 0 0 0 3px rgba(0,152,255,0.2);
}

.ton-input-wrap input::placeholder {
    color: rgba(255,255,255,0.3);
}

.ton-input-suffix {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 600;
}

.ton-quick-amounts {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.ton-quick-btn {
    flex: 1;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ton-quick-btn:hover {
    border-color: #0098ff;
    background: rgba(0,152,255,0.1);
}

.ton-quick-btn.active {
    border-color: #0098ff;
    background: rgba(0,152,255,0.2);
    color: #0098ff;
}

.ton-send-btn {
    width: 100%;
    background: linear-gradient(135deg, #0098ff, #00d4ff);
    border: none;
    border-radius: 14px;
    padding: 16px 24px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(0,152,255,0.3);
}

.ton-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,152,255,0.4);
}

.ton-send-btn:active {
    transform: translateY(0);
}

.ton-send-btn img {
    width: 22px;
    height: 22px;
}

.ton-topup-note {
    margin-top: 16px;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    text-align: center;
}

.ton-topup-note p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}


/* ===== NEW YEAR GARLAND ===== */
.garland {
    position: relative;
    display: flex;
    justify-content: space-around;
    padding: 12px 0 0;
    margin-bottom: -5px;
}

.garland-wire {
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    height: 2px;
    background: #333;
    z-index: 0;
}

.garland-light {
    width: 14px;
    height: 20px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: garlandGlow 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
    position: relative;
    z-index: 1;
    margin-top: 4px;
}

.garland-light.red {
    background: #e74c3c;
    color: #e74c3c;
    animation-delay: 0s;
}

.garland-light.gold {
    background: #f1c40f;
    color: #f1c40f;
    animation-delay: 0.2s;
}

.garland-light.green {
    background: #27ae60;
    color: #27ae60;
    animation-delay: 0.4s;
}

.garland-light.blue {
    background: #3498db;
    color: #3498db;
    animation-delay: 0.6s;
}

@keyframes garlandGlow {
    0%, 100% { 
        opacity: 0.4;
        transform: scale(0.9);
        box-shadow: 0 0 5px currentColor;
    }
    50% { 
        opacity: 1;
        transform: scale(1.1);
        box-shadow: 0 0 15px currentColor, 0 0 25px currentColor;
    }
}




/* ===== LEVEL SYSTEM ===== */
.level-section {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
}

.level-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.level-badge {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.level-info {
    flex: 1;
}

.level-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.level-xp {
    font-size: 13px;
    color: var(--dim);
    margin-top: 2px;
}

.level-bonus {
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.level-progress-bar {
    height: 8px;
    background: var(--glass-strong);
    border-radius: 4px;
    overflow: hidden;
}

.level-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* ===== TASK BUTTONS ===== */
.task-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.task-btn.go-btn {
    background: var(--accent);
    font-size: 12px;
    padding: 6px 12px;
}

.task-btn.check-btn {
    background: var(--success);
    font-size: 12px;
    padding: 6px 12px;
}

.task-card.completed {
    opacity: 0.6;
}

.task-card.completed .task-btn {
    background: var(--success);
    cursor: default;
}


/* ===== GO TO BOT MODAL ===== */
.goto-bot-modal {
    text-align: center;
    padding: 30px 20px;
}

.goto-bot-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.goto-bot-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.goto-bot-desc {
    color: var(--dim);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.goto-bot-gift-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 20px;
}

.goto-bot-gift-info .gift-name {
    font-weight: 600;
    font-size: 16px;
}

.goto-bot-gift-info .gift-value {
    color: var(--accent);
    font-weight: 600;
}

.btn-goto-bot {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    gap: 10px;
}

.goto-bot-hint {
    margin-top: 12px;
    font-size: 12px;
    color: var(--dim);
}

/* ===== TOP UP MODAL ===== */
.topup-modal {
    text-align: center;
    padding: 24px 16px;
}

.topup-icon {
    font-size: 56px;
    margin-bottom: 12px;
}

.topup-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.topup-desc {
    color: var(--dim);
    font-size: 13px;
    margin-bottom: 20px;
}

.topup-packages {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.topup-pack {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 10px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.topup-pack:active {
    transform: scale(0.97);
}

.topup-pack.popular {
    border-color: var(--accent);
    background: rgba(139, 124, 247, 0.1);
}

.topup-pack.selected {
    border-color: var(--success);
    background: rgba(52, 211, 153, 0.1);
}

.pack-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.pack-stars {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.pack-price {
    display: block;
    font-size: 12px;
    color: var(--dim);
}

.pack-bonus {
    display: block;
    font-size: 10px;
    color: var(--success);
    margin-top: 4px;
}

.topup-custom {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 16px;
}

.topup-custom label {
    display: block;
    font-size: 12px;
    color: var(--dim);
    margin-bottom: 8px;
}

.topup-custom-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topup-custom-row input {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    color: #fff;
    font-size: 16px;
    text-align: center;
}

.topup-custom-label {
    font-size: 20px;
}

.btn-topup {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    gap: 8px;
}

.topup-hint {
    margin-top: 10px;
    font-size: 11px;
    color: var(--dim);
}


/* ===== MAINTENANCE OVERLAY ===== */
.maintenance-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, #0a0a0f 0%, #12121a 50%, #0a0a0f 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.maintenance-content {
    text-align: center;
    max-width: 320px;
    position: relative;
}

.maintenance-logo {
    position: relative;
    margin-bottom: 24px;
}

.maintenance-mascot {
    width: 150px;
    height: 150px;
    object-fit: contain;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(139, 124, 247, 0.3));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.maintenance-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(139, 124, 247, 0.3) 0%, transparent 70%);
    filter: blur(40px);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.2); }
}

.maintenance-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.maintenance-text {
    color: var(--dim);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 30px;
}

.maintenance-animation {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.maintenance-dot {
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite;
}

.maintenance-dot:nth-child(1) { animation-delay: 0s; }
.maintenance-dot:nth-child(2) { animation-delay: 0.2s; }
.maintenance-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
    0%, 80%, 100% { 
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% { 
        transform: scale(1);
        opacity: 1;
    }
}

.maintenance-hint {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
}

/* Snowflakes on maintenance */
.maintenance-overlay .snowflake {
    color: rgba(255,255,255,0.1);
}

/* ===== DAILY CASE IN GRID ===== */
.daily-case-card-grid {
    position: relative;
    background: linear-gradient(160deg, rgba(255,215,0,0.15), rgba(255,183,77,0.08)) !important;
    border: 2px solid rgba(255,215,0,0.4) !important;
    overflow: hidden;
}

.daily-case-card-grid::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 50%);
    animation: dailyGlow 3s ease-in-out infinite;
    pointer-events: none;
}

.daily-badge {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    font-size: 8px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 5;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(231,76,60,0.4);
}

.daily-case-card-grid .case-image {
    margin-top: 10px;
}

.daily-case-card-grid .case-name {
    color: #ffd700;
    font-weight: 700;
}

.daily-price {
    justify-content: center !important;
}

.daily-price span {
    color: #ffb347 !important;
    font-weight: 600;
}

/* Cooldown overlay */
.daily-cooldown-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    z-index: 10;
}

.cooldown-timer {
    font-size: 18px;
    font-weight: 800;
    color: #ffd700;
    font-family: monospace;
    text-shadow: 0 0 10px rgba(255,215,0,0.5);
}

.daily-case-card-grid.on-cooldown {
    cursor: not-allowed;
}

.daily-case-card-grid.on-cooldown .case-image {
    opacity: 0.5;
}


/* ===== PROMOCODE INPUT ===== */
.promo-input-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.promo-input-row input {
    flex: 1;
    min-width: 0;
    padding: 12px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promo-input-row input::placeholder {
    text-transform: none;
    letter-spacing: 0;
    color: var(--dim);
    font-size: 12px;
}

.promo-input-row input:focus {
    outline: none;
    border-color: var(--accent);
}

.promo-activate-btn {
    padding: 12px 14px;
    background: linear-gradient(135deg, var(--accent), rgba(139,124,247,0.7));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 12px var(--accent-glow);
    transition: all 0.2s;
    flex-shrink: 0;
}

.promo-activate-btn:active {
    transform: scale(0.95);
}

.promo-activate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== CRASH GAME - NEW DESIGN (Purple Theme) ===== */
#page-crash {
    padding: 0 !important;
    background: linear-gradient(180deg, #1a0a2e 0%, #0d0515 100%);
    height: 100vh;
    height: 100dvh;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: 90px !important;
}

/* Top Bar */
.crash-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
}

.crash-round-info {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--dim);
    font-size: 13px;
}

.crash-balances {
    display: flex;
    gap: 12px;
}

.crash-bal-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.08);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.crash-bal-item img {
    width: 16px;
    height: 16px;
}

.crash-bal-item .ton-icon-img {
    width: 16px;
    height: 16px;
}

.crash-bal-item.ton {
    color: var(--ton);
}

.crash-bal-item.stars {
    color: var(--stars);
}

/* History Pills - inside game area */
.crash-history-pills {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    z-index: 10;
}

.crash-history-pills::-webkit-scrollbar { display: none; }

.history-pill {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.history-pill.green {
    background: rgba(139,124,247,0.25);
    color: #b4a8ff;
}

.history-pill.red {
    background: rgba(248,113,113,0.2);
    color: #f87171;
}

/* Main Game Area */
.crash-game-area {
    position: relative;
    height: 240px;
    margin: 8px 12px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(60,30,90,0.4) 0%, rgba(20,10,40,0.8) 100%);
    border: 1px solid rgba(139,124,247,0.2);
}

.crash-game-area canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Rocket Container - ONLY inside crash game area */
#page-crash .crash-rocket-container {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 15;
    pointer-events: none;
    transition: left 0.1s ease-out, bottom 0.1s ease-out;
}

#page-crash .crash-rocket {
    font-size: 28px;
    transform: rotate(0deg);
    filter: drop-shadow(0 0 12px rgba(139,124,247,0.8));
    transition: transform 0.15s ease-out;
}

#page-crash .crash-rocket.flying {
    animation: rocketGlow 0.5s ease-in-out infinite alternate;
}

@keyframes rocketGlow {
    from { filter: drop-shadow(0 0 12px rgba(139,124,247,0.8)); }
    to { filter: drop-shadow(0 0 20px rgba(180,168,255,1)); }
}

#page-crash .crash-rocket.crashed {
    filter: drop-shadow(0 0 15px rgba(255,50,50,0.9)) brightness(0.6);
    transform: rotate(90deg) !important;
}

/* Multiplier Display */
.crash-multiplier-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
}

.crash-multiplier {
    font-size: 56px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 40px rgba(255,200,100,0.5);
}

.crash-multiplier.crashed {
    color: #f87171;
    text-shadow: 0 0 40px rgba(248,113,113,0.5);
}

.crash-gift-indicator {
    margin-top: 8px;
}

.crash-gift-indicator img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

/* Status Overlay */
.crash-status-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.crash-status-overlay span {
    font-size: 14px;
    font-weight: 600;
    color: var(--dim);
    text-transform: uppercase;
}

/* New Controls */
.crash-controls-new {
    padding: 16px;
}

.crash-add-gift-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, rgba(139,124,247,0.2), rgba(139,124,247,0.1));
    border: 2px dashed rgba(139,124,247,0.5);
    border-radius: 14px;
    color: var(--accent-light);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.crash-add-gift-btn:active {
    transform: scale(0.98);
    background: linear-gradient(135deg, rgba(139,124,247,0.3), rgba(139,124,247,0.2));
}

.crash-selected-gift {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.08);
    padding: 12px;
    border-radius: 14px;
    margin-bottom: 12px;
}

.selected-gift-img {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.selected-gift-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.selected-gift-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--ton);
}

/* Auto Controls */
.crash-auto-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.crash-auto-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--dim);
    cursor: pointer;
}

.crash-auto-toggle input {
    display: none;
}

.crash-auto-toggle.active span {
    color: var(--success);
}

.crash-auto-value {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.08);
    padding: 8px 12px;
    border-radius: 10px;
}

.crash-auto-value input {
    width: 50px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.crash-play-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #8b7cf7, #6d5dd3);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(139,124,247,0.4);
}

.crash-play-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.crash-cashout-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #34d399, #10b981);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: cashoutPulse 0.5s ease-in-out infinite;
}

@keyframes cashoutPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(52,211,153,0.4); }
    50% { box-shadow: 0 0 30px rgba(52,211,153,0.6); }
}

/* Players List - Live Feed */
.crash-players {
    padding: 8px 12px 100px;
}

.crash-players-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--dim);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.crash-players-list {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    overflow: hidden;
    max-height: 250px;
    overflow-y: auto;
}

.crash-player-row {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    animation: slideIn 0.3s ease;
}

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

.crash-player-row:last-child {
    border-bottom: none;
}

.crash-player-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #60a5fa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    margin-right: 8px;
    flex-shrink: 0;
}

.crash-player-name {
    flex: 1;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crash-player-bet {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: var(--ton);
    margin-right: 10px;
    font-weight: 600;
}

.crash-player-mult {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    min-width: 50px;
    text-align: center;
    background: rgba(255,255,255,0.05);
}

.crash-player-mult.won {
    background: rgba(52,211,153,0.2);
    color: #34d399;
}

.crash-player-mult.lost {
    background: rgba(239,68,68,0.15);
    color: #f87171;
}

/* Highlight player's own row */
.crash-player-row.player-row {
    background: rgba(139,124,247,0.15);
    border: 1px solid rgba(139,124,247,0.3);
    border-radius: 10px;
    margin: 4px 0;
}

.crash-player-row.player-row .crash-player-name {
    color: var(--accent-light);
    font-weight: 600;
}

.crash-player-win {
    font-size: 12px;
    font-weight: 700;
    color: #34d399;
    min-width: 55px;
    text-align: right;
}

.crash-player-win {
    font-size: 13px;
    font-weight: 600;
    min-width: 70px;
    text-align: right;
}

/* Gift Modal */
.crash-gift-modal {
    max-width: 400px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.crash-gift-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.gift-tab {
    flex: 1;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: var(--dim);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.gift-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.crash-gift-content {
    flex: 1;
    overflow-y: auto;
    max-height: 300px;
}

.gift-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

/* New Shop Card Design */
.shop-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.shop-card:active,
.shop-card.selected {
    border-color: #ffd700;
    transform: scale(0.98);
}

.shop-card-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    text-align: center;
    padding: 2px 0;
    z-index: 5;
    letter-spacing: 1px;
}

.shop-card-bg {
    position: relative;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.shop-card-rays {
    position: absolute;
    inset: -50%;
    background: repeating-conic-gradient(
        from 0deg,
        rgba(255,255,255,0.1) 0deg 10deg,
        transparent 10deg 20deg
    );
    animation: rotateRays 20s linear infinite;
}

@keyframes rotateRays {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.shop-card-star {
    position: relative;
    z-index: 2;
    font-size: 48px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.star-price {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    font-size: 18px;
    font-weight: 900;
    color: #78350f;
    text-shadow: none;
}

.shop-card-ton {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px;
    background: rgba(0,0,0,0.4);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.shop-card-ton img {
    width: 16px;
    height: 16px;
}

.shop-card-buy {
    padding: 8px 4px;
    background: rgba(0,0,0,0.6);
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    color: var(--dim);
    line-height: 1.3;
}

.shop-card-buy span {
    color: #fff;
    font-size: 11px;
}

/* NFT Card */
.shop-card.nft-card .shop-card-bg {
    padding: 8px;
}

.nft-bg {
    background: linear-gradient(135deg, #ec4899, #8b5cf6) !important;
}

.nft-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    position: relative;
    z-index: 2;
}

.nft-info-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 12px;
    z-index: 5;
}

.shop-card-name {
    padding: 6px 4px;
    background: rgba(0,0,0,0.6);
    text-align: center;
    font-size: 9px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Userbot NFT Card */
.shop-card.nft-userbot-card {
    background: linear-gradient(135deg, rgba(139,124,247,0.2), rgba(139,124,247,0.05));
    border: 1px solid rgba(139,124,247,0.3);
}

.shop-card.nft-userbot-card .shop-card-bg {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.shop-card.nft-userbot-card .nft-image {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 2;
}

.shop-card.nft-userbot-card .nft-rays {
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: pulse-rays 2s ease-in-out infinite;
}

@keyframes pulse-rays {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.shop-card.nft-userbot-card .shop-card-buy {
    background: linear-gradient(135deg, rgba(139,124,247,0.8), rgba(139,124,247,0.6));
    padding: 6px 4px;
}

.shop-card.nft-userbot-card .shop-card-buy span {
    font-size: 12px;
    font-weight: 700;
}

.shop-card.nft-userbot-card:active,
.shop-card.nft-userbot-card.selected {
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255,215,0,0.3);
}

/* Old gift-item styles for inventory */
.gift-item {
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    border: 2px solid transparent;
    border-radius: 14px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.gift-item:active,
.gift-item.selected {
    border-color: var(--accent);
    background: rgba(139,124,247,0.15);
}

.gift-item-img {
    width: 50px;
    height: 50px;
    margin: 0 auto 8px;
    border-radius: 10px;
    overflow: hidden;
}

.gift-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gift-item-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 12px;
    color: var(--ton);
    margin-bottom: 4px;
}

.gift-item-stars {
    font-size: 11px;
    color: var(--stars);
}

.crash-gift-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 16px;
}

.gift-footer-balance {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text);
    background: rgba(255,179,71,0.1);
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255,179,71,0.2);
}

.gift-footer-balance span:first-child {
    color: var(--dim);
}

.gift-footer-balance span:last-child {
    color: var(--stars);
    font-weight: 700;
    font-size: 16px;
}

.crash-gift-footer .btn {
    width: 100%;
}

.crash-controls input[type="number"] {
    width: 100%;
    padding: 16px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
}

.crash-controls input[type="number"]:focus {
    outline: none;
    border-color: rgba(255,100,50,0.5);
    box-shadow: 0 0 20px rgba(255,100,50,0.15);
}

.crash-auto-section {
    margin-bottom: 20px;
    position: relative;
}

.crash-auto-hint {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(30%);
    color: var(--dim);
    font-weight: 700;
    font-size: 14px;
}

.crash-btn {
    width: 100%;
    padding: 18px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.2s;
}

.crash-btn.btn-primary {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    box-shadow: 0 4px 24px rgba(255,107,53,0.4);
}

.crash-btn.btn-primary:active {
    transform: scale(0.98);
    box-shadow: 0 2px 16px rgba(255,107,53,0.3);
}

.crash-btn.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    box-shadow: 0 4px 24px rgba(52,211,153,0.4);
}

/* Bets and History with glass */
.crash-bets,
.crash-history {
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.crash-bets h3,
.crash-history h3 {
    font-size: 13px;
    margin-bottom: 12px;
    color: var(--dim);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.crash-bets-list {
    max-height: 140px;
    overflow-y: auto;
}

.crash-bet-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    margin-bottom: 8px;
    border: 1px solid transparent;
}

.crash-bet-item.won {
    background: rgba(52,211,153,0.1);
    border: 1px solid rgba(52,211,153,0.25);
}

.crash-bet-item.lost {
    background: rgba(248,113,113,0.1);
    border: 1px solid rgba(248,113,113,0.25);
}

.crash-bet-user {
    font-weight: 600;
    font-size: 13px;
}

.crash-bet-amount {
    color: var(--stars);
    font-weight: 700;
}

.crash-bet-cashout {
    color: var(--success);
    font-size: 12px;
    font-weight: 600;
}

.crash-history-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.crash-history-item {
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.crash-history-item.low {
    background: rgba(248,113,113,0.2);
    color: #f87171;
    border: 1px solid rgba(248,113,113,0.3);
}

.crash-history-item.medium {
    background: rgba(255,179,71,0.2);
    color: var(--stars);
    border: 1px solid rgba(255,179,71,0.3);
}

.crash-history-item.high {
    background: rgba(52,211,153,0.2);
    color: var(--success);
    border: 1px solid rgba(52,211,153,0.3);
}

.crash-empty {
    text-align: center;
    padding: 24px;
    color: var(--dim);
    font-size: 13px;
}

/* ===== PVP PAGE ===== */
/* ===== NEW PVP STYLES - PURPLE THEME ===== */
.pvp-header-new {
    position: relative;
    text-align: center;
    padding: 30px 16px 24px;
    margin: 0 -12px 20px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(139,124,247,0.15) 0%, transparent 100%);
}

.pvp-header-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139,124,247,0.4) 0%, transparent 70%);
    pointer-events: none;
    animation: pvpGlowPulse 3s ease-in-out infinite;
}

@keyframes pvpGlowPulse {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.8; transform: translateX(-50%) scale(1.1); }
}

.pvp-header-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    animation: pvpParticle 4s ease-in-out infinite;
}

.pvp-header-particles span:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.pvp-header-particles span:nth-child(2) { left: 85%; top: 30%; animation-delay: 0.5s; }
.pvp-header-particles span:nth-child(3) { left: 20%; top: 70%; animation-delay: 1s; }
.pvp-header-particles span:nth-child(4) { left: 75%; top: 60%; animation-delay: 1.5s; }
.pvp-header-particles span:nth-child(5) { left: 50%; top: 15%; animation-delay: 2s; }

@keyframes pvpParticle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

.pvp-swords-icon {
    position: relative;
    margin-bottom: 12px;
}

.pvp-swords-icon .sword {
    font-size: 56px;
    filter: drop-shadow(0 0 30px rgba(139,124,247,0.6));
    animation: swordFloat 3s ease-in-out infinite;
}

@keyframes swordFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
}

.pvp-title {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
    position: relative;
}

.pvp-subtitle {
    font-size: 14px;
    color: var(--dim);
    position: relative;
    margin-bottom: 16px;
}

.pvp-stats-mini {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    position: relative;
}

.pvp-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pvp-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}

.pvp-stat-label {
    font-size: 11px;
    color: var(--dim);
    text-transform: uppercase;
}

.pvp-stat-divider {
    width: 1px;
    height: 30px;
    background: var(--border);
}

/* PvP Tabs New */
.pvp-tabs-new {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: rgba(139,124,247,0.05);
    padding: 6px;
    border-radius: 16px;
    border: 1px solid rgba(139,124,247,0.1);
}

.pvp-tab-new {
    flex: 1;
    padding: 12px 8px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--dim);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.pvp-tab-new .tab-icon {
    font-size: 18px;
    transition: transform 0.3s;
}

.pvp-tab-new .tab-text {
    font-size: 11px;
}

.pvp-tab-new:hover {
    color: var(--text);
}

.pvp-tab-new.active {
    background: linear-gradient(135deg, var(--accent), #9333ea);
    color: #fff;
    box-shadow: 0 4px 20px rgba(139,124,247,0.4);
}

.pvp-tab-new.active .tab-icon {
    transform: scale(1.1);
}

.pvp-section {
    display: none;
}

.pvp-section.active {
    display: block;
    animation: fadeIn 0.3s;
}

/* PvP Empty State New */
.pvp-empty-new {
    text-align: center;
    padding: 50px 20px;
    position: relative;
}

.pvp-empty-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(139,124,247,0.2) 0%, transparent 70%);
    pointer-events: none;
}

.pvp-empty-icon-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(139,124,247,0.2), rgba(139,124,247,0.05));
    border: 1px solid rgba(139,124,247,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.pvp-empty-sword {
    font-size: 36px;
    animation: emptyIconPulse 2s ease-in-out infinite;
}

@keyframes emptyIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.pvp-empty-new h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    position: relative;
}

.pvp-empty-new p {
    font-size: 13px;
    color: var(--dim);
    margin-bottom: 20px;
    position: relative;
}

.pvp-empty-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--accent), #9333ea);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(139,124,247,0.3);
}

.pvp-empty-btn:active {
    transform: scale(0.95);
}

/* PvP Create Card New */
.pvp-create-card-new {
    background: linear-gradient(135deg, rgba(139,124,247,0.1), rgba(139,124,247,0.02));
    border: 1px solid rgba(139,124,247,0.2);
    border-radius: 24px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.pvp-create-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #9333ea, var(--accent));
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.pvp-create-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.pvp-create-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent), #9333ea);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(139,124,247,0.3);
}

.pvp-create-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 2px;
}

.pvp-create-header p {
    font-size: 13px;
    color: var(--dim);
}

/* Bet Type Buttons New */
.pvp-bet-type-new {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.bet-type-btn-new {
    flex: 1;
    padding: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--dim);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.bet-type-btn-new .bet-icon {
    font-size: 24px;
}

.bet-type-btn-new:hover {
    border-color: rgba(139,124,247,0.3);
}

.bet-type-btn-new.active {
    background: linear-gradient(135deg, rgba(139,124,247,0.2), rgba(139,124,247,0.05));
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 20px rgba(139,124,247,0.2);
}

/* Bet Section New */
.pvp-bet-section-new {
    margin-bottom: 24px;
}

.pvp-bet-section-new label {
    display: block;
    font-size: 13px;
    color: var(--dim);
    margin-bottom: 12px;
    font-weight: 500;
}

.pvp-stars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.stars-preset-new {
    padding: 14px 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stars-preset-new .preset-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.stars-preset-new .preset-icon {
    font-size: 14px;
}

.stars-preset-new:hover {
    border-color: rgba(251,191,36,0.3);
}

.stars-preset-new.active {
    background: linear-gradient(135deg, rgba(251,191,36,0.2), rgba(251,191,36,0.05));
    border-color: var(--stars);
    box-shadow: 0 0 20px rgba(251,191,36,0.2);
}

.pvp-custom-input {
    position: relative;
}

.pvp-custom-input input {
    width: 100%;
    padding: 16px;
    padding-right: 40px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.pvp-custom-input input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 20px rgba(139,124,247,0.2);
}

.pvp-custom-input .input-suffix {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}

/* Inventory Select New */
.pvp-inventory-select-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.empty-inv-new {
    grid-column: 1/-1;
    text-align: center;
    padding: 30px;
    color: var(--dim);
}

.empty-inv-new span {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
    opacity: 0.5;
}

.empty-inv-new p {
    font-size: 13px;
}

/* Create Button New */
.pvp-create-btn-new {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--accent), #9333ea);
    border: none;
    border-radius: 16px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 25px rgba(139,124,247,0.4);
}

.pvp-create-btn-new .btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: btnShine 3s infinite;
}

@keyframes btnShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.pvp-create-btn-new .btn-icon {
    font-size: 20px;
}

.pvp-create-btn-new:active {
    transform: scale(0.98);
}

/* Legacy PvP styles for compatibility */
.pvp-tabs {
    display: none;
}

.pvp-tab {
    display: none;
}

.pvp-empty {
    display: none;
}

.pvp-create-card {
    display: none;
}

.pvp-bet-type {
    display: none;
}

.bet-type-btn {
    display: none;
}

.pvp-bet-section {
    display: none;
}

.pvp-stars-input {
    display: none;
}

.stars-preset {
    flex: 1;
    padding: 12px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--stars);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.stars-preset.active,
.stars-preset:active {
    background: rgba(255,179,71,0.2);
    border-color: var(--stars);
}

.pvp-bet-section input[type="number"] {
    width: 100%;
    padding: 14px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 16px;
}

.pvp-inventory-select {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.pvp-inv-item {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.pvp-inv-item:active {
    transform: scale(0.95);
}

.pvp-inv-item.selected {
    border-color: var(--accent);
    background: rgba(139,124,247,0.15);
}

.pvp-inv-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 6px;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pvp-inv-name {
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pvp-inv-price {
    font-size: 10px;
    color: var(--stars);
    margin-top: 2px;
}

.empty-inv {
    grid-column: 1/-1;
    text-align: center;
    padding: 20px;
    color: var(--dim);
    font-size: 13px;
}

.pvp-create-btn {
    width: 100%;
    margin-top: 10px;
}

/* PvP Battle Card */
.pvp-battle-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
}

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

.pvp-battle-id {
    font-size: 11px;
    color: var(--dim);
}

.pvp-battle-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
}

.pvp-battle-status.waiting {
    background: rgba(255,179,71,0.2);
    color: var(--stars);
}

.pvp-battle-vs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.pvp-player {
    flex: 1;
    text-align: center;
}

.pvp-player-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass);
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.pvp-player-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.pvp-player-bet {
    font-size: 14px;
    font-weight: 700;
    color: var(--stars);
}

.pvp-vs-icon {
    font-size: 24px;
    color: var(--danger);
}

.pvp-join-btn {
    width: 100%;
}

.pvp-cancel-btn {
    width: 100%;
}

.pvp-battle-card.own-battle {
    border-color: rgba(139,124,247,0.4);
    background: linear-gradient(135deg, rgba(139,124,247,0.1), rgba(139,124,247,0.02));
}

.pvp-battle-card.own-battle .pvp-battle-status {
    background: rgba(139,124,247,0.2);
    color: var(--accent-light);
}

/* Ensure PvP buttons work on touch */
.pvp-create-btn,
.pvp-join-btn,
.pvp-cancel-btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    cursor: pointer;
}

.pvp-create-btn:active,
.pvp-join-btn:active,
.pvp-cancel-btn:active {
    transform: scale(0.97);
    opacity: 0.9;
}


/* ===== SUPPORT BUTTON ===== */
.support-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(52,152,219,0.15), rgba(41,128,185,0.08));
    border: 1px solid rgba(52,152,219,0.25);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.support-btn:active {
    transform: scale(0.98);
}

.support-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(52,152,219,0.3);
}

.support-info {
    flex: 1;
}

.support-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.support-desc {
    display: block;
    font-size: 12px;
    color: var(--dim);
}

.support-arrow {
    font-size: 18px;
    color: var(--dim);
}

/* ===== REFERRAL ===== */
.referral-card {
    background: linear-gradient(135deg, rgba(139,124,247,0.1), rgba(139,124,247,0.02));
    border: 1px solid rgba(139,124,247,0.2);
    border-radius: 16px;
    padding: 20px;
}

.referral-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 16px;
}

.ref-stat {
    text-align: center;
}

.ref-stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-light);
}

.ref-stat-label {
    font-size: 12px;
    color: var(--dim);
}

.referral-info {
    text-align: center;
    margin-bottom: 16px;
}

.referral-info p {
    font-size: 14px;
    margin-bottom: 4px;
}

.referral-info strong {
    color: var(--stars);
}

.ref-hint {
    font-size: 12px !important;
    color: var(--dim);
}

.ref-share-btn {
    width: 100%;
}


/* ===== INVENTORY ===== */
.inventory-container {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    min-height: 120px;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.inventory-item {
    background: linear-gradient(145deg, rgba(40,60,50,0.9), rgba(30,50,40,0.95));
    border: 2px solid rgba(180,150,80,0.5);
    border-radius: 16px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.inventory-item:active {
    transform: scale(0.97);
}

.inventory-item.legendary {
    border-color: rgba(255,200,50,0.7);
    background: linear-gradient(145deg, rgba(50,70,40,0.95), rgba(35,55,35,0.98));
    box-shadow: 0 0 20px rgba(255,200,50,0.15);
}

.inventory-item.epic {
    border-color: rgba(180,100,220,0.6);
    background: linear-gradient(145deg, rgba(50,40,60,0.95), rgba(40,30,50,0.98));
}

.inventory-item.rare {
    border-color: rgba(80,160,220,0.6);
    background: linear-gradient(145deg, rgba(40,50,60,0.95), rgba(30,40,55,0.98));
}

.inv-item-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: rgba(150,140,120,0.25);
    border-radius: 14px;
    position: relative;
}

.inv-item-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.inv-item-rarity {
    font-size: 10px;
    font-weight: 700;
    color: #f0c040;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.inv-item-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.inv-item-price {
    font-size: 11px;
    color: var(--stars);
    margin-top: 6px;
    font-weight: 600;
}

.inventory-empty {
    text-align: center;
    padding: 24px 16px;
}

.inv-empty-icon {
    font-size: 40px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.inv-empty-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.inv-empty-desc {
    font-size: 12px;
    color: var(--dim);
}

/* Inventory Item Modal */
.inv-modal-content {
    text-align: center;
    padding: 24px 20px;
}

.inv-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    font-size: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inv-modal-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.inv-modal-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.inv-modal-rarity {
    font-size: 12px;
    color: var(--dim);
    margin-bottom: 20px;
}

.inv-modal-btns {
    display: flex;
    gap: 10px;
}

.inv-modal-btns .btn {
    flex: 1;
}

.inv-modal-hint {
    font-size: 11px;
    color: var(--dim);
    margin-top: 12px;
    text-align: center;
}


/* Crash inventory list */
.crash-inventory-list {
    max-height: 150px;
    overflow-y: auto;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 8px;
}

.crash-inv-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.crash-inv-item:last-child {
    margin-bottom: 0;
}

.crash-inv-item:active,
.crash-inv-item.selected {
    background: rgba(255,107,53,0.2);
    border: 1px solid rgba(255,107,53,0.4);
}

.crash-inv-icon {
    font-size: 20px;
}

.crash-inv-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
}

.crash-inv-price {
    font-size: 12px;
    color: var(--stars);
    font-weight: 600;
}

.crash-empty {
    text-align: center;
    padding: 20px;
    color: var(--dim);
    font-size: 13px;
}


/* Case modal topbar */
.case-modal-topbar {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
}

.case-close-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 16px;
    padding: 6px 12px;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.case-close-btn span {
    font-size: 14px;
}


/* Profile footer */
.profile-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 24px 0 16px;
    margin-top: 20px;
}

.dev-link {
    font-size: 12px;
    color: var(--dim);
    text-decoration: none;
    opacity: 0.6;
}

.version {
    font-size: 10px;
    color: var(--dim);
    opacity: 0.4;
}


/* Cases Disabled Styles */
.case-card.case-disabled {
    position: relative;
    pointer-events: auto;
}

.case-card.case-disabled .case-image {
    filter: blur(4px) grayscale(0.5);
    opacity: 0.5;
}

.case-card.case-disabled .case-name,
.case-card.case-disabled .case-price {
    opacity: 0.4;
}

.case-disabled-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    z-index: 10;
    border-radius: 16px;
}

.case-disabled-overlay span:first-child {
    font-size: 24px;
    animation: lockPulse 2s ease-in-out infinite;
}

.case-disabled-overlay span:last-child {
    font-size: 11px;
    font-weight: 600;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes lockPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Cases section fade out when disabled */
.cases-section-disabled {
    position: relative;
    max-height: calc(100vh - 200px);
    overflow: hidden;
}

.cases-section-disabled::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, transparent 0%, var(--bg) 80%);
    pointer-events: none;
    z-index: 20;
}

/* Disable scroll on home page when cases disabled */
#page-home.cases-page-disabled {
    overflow: hidden !important;
    max-height: 100vh;
}

#page-home.cases-page-disabled .cases-section {
    max-height: calc(100vh - 220px);
    overflow: hidden;
    position: relative;
}

#page-home.cases-page-disabled .cases-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent 0%, var(--bg) 90%);
    pointer-events: none;
    z-index: 20;
}

/* Cases Disabled Modal */
.cases-disabled-modal .modal-content {
    max-width: 340px;
}

.cases-disabled-content {
    text-align: center;
    padding: 30px 24px;
    position: relative;
    overflow: hidden;
}

.cases-disabled-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.cases-disabled-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(139,124,247,0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.2); }
}

.cases-disabled-content h2 {
    font-size: 20px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.cases-disabled-content p {
    color: var(--dim);
    font-size: 14px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.cases-disabled-animation {
    margin: 20px 0;
    position: relative;
    z-index: 1;
}

.gear-spin {
    font-size: 48px;
    display: inline-block;
    animation: gearRotate 4s linear infinite;
}

@keyframes gearRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cases-disabled-hint {
    font-size: 13px !important;
    color: var(--accent) !important;
    margin-bottom: 20px !important;
}

.cases-disabled-buttons {
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.cases-disabled-buttons .btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 13px;
}

.cases-disabled-buttons .btn-primary {
    background: linear-gradient(135deg, var(--accent), #9333ea);
}

.cases-disabled-buttons .btn-secondary {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
}


/* ===== TON SHOP CARDS NEW ===== */
.ton-shop-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--glass);
    border: 1px solid var(--border);
}

.ton-shop-card:active {
    transform: scale(0.95);
}

.ton-shop-card.selected {
    border-color: var(--accent);
    box-shadow: 0 0 25px rgba(139,124,247,0.4);
}

.ton-card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    border-radius: 6px;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    z-index: 2;
}

.ton-card-bg {
    position: relative;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ton-card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    animation: tonGlowPulse 2s ease-in-out infinite;
}

@keyframes tonGlowPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.2); }
}

.ton-card-icon {
    font-size: 36px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.ton-card-amount {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 12px;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    position: relative;
    z-index: 1;
}

.ton-card-amount img {
    width: 16px;
    height: 16px;
}

.ton-card-amount span {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.ton-card-price {
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(255,255,255,0.03);
}

.ton-card-price .price-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--stars);
}

.ton-card-price .price-icon {
    font-size: 14px;
}
