@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800;900&display=swap');

:root {
    --bg-color: #0b0e14;
    --card-bg: #151922;
    --border-color: rgba(255, 255, 255, 0.1);
    --accent-purple: #6c5ce7;
    --gold: #F3C641;
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    user-select: none; -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%; height: 100dvh; overflow: hidden;
    background-color: var(--bg-color); color: #ffffff;
    background-image: radial-gradient(circle at 50% 0%, #1c2333 0%, #0b0e14 70%);
}

body {
    display: flex; flex-direction: column;
    max-width: 480px; margin: 0 auto; position: relative;
}

/* --- Анимированный фон --- */
.bg-particles { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: hidden; }
.particle { position: absolute; width: 4px; height: 4px; background: rgba(255, 255, 255, 0.15); border-radius: 50%; box-shadow: 0 0 10px rgba(255, 255, 255, 0.3); animation: floatParticle 15s infinite linear; }
.particle:nth-child(1) { left: 10%; top: 80%; animation-duration: 12s; }
.particle:nth-child(2) { left: 30%; top: 90%; animation-duration: 18s; animation-delay: 2s; }
.particle:nth-child(3) { left: 50%; top: 75%; animation-duration: 15s; animation-delay: 4s; }
.particle:nth-child(4) { left: 70%; top: 85%; animation-duration: 20s; animation-delay: 1s; }
.particle:nth-child(5) { left: 90%; top: 95%; animation-duration: 14s; animation-delay: 3s; }
@keyframes floatParticle { 0% { transform: translateY(0) scale(1); opacity: 0; } 10% { opacity: 0.5; } 90% { opacity: 0.5; } 100% { transform: translateY(-800px) scale(1.5); opacity: 0; } }

/* --- ШАПКА --- */
.top-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; z-index: 10; flex-shrink: 0; gap: 8px; }
.logo-container { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.logo-text { font-size: 16px; font-weight: 900; letter-spacing: 0.5px; white-space: nowrap; }
.battle-red { color: #ff5e5e; }
.logo-icon { width: 18px; height: 18px; object-fit: contain; }
.header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 1; overflow: hidden; }
.balance-pill { display: flex; align-items: center; gap: 4px; background: rgba(255, 255, 255, 0.08); padding: 5px 10px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.15); font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.star-icon { width: 14px; height: 14px; flex-shrink: 0; }
.arrow-down { font-size: 8px; color: #8b9eb0; margin-left: 2px; }
.deposit-btn { background: linear-gradient(135deg, #7b6bf6, #6c5ce7); color: white; border: none; padding: 6px 12px; border-radius: 16px; font-size: 12px; font-weight: 800; cursor: pointer; transition: 0.2s; box-shadow: 0 4px 10px rgba(108, 92, 231, 0.3); flex-shrink: 0; }
.deposit-btn:active { transform: scale(0.95); }
.user-avatar-small { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #7b6bf6, #6c5ce7); display: flex; justify-content: center; align-items: center; font-size: 12px; font-weight: 900; border: 2px solid rgba(255,255,255,0.2); flex-shrink: 0; }

/* --- Экраны --- */
.screen { display: none; flex-direction: column; padding: 10px 15px 100px 15px; flex: 1; overflow-y: auto; overflow-x: hidden; position: relative; z-index: 1; }
.screen.active { display: flex; animation: fadeIn 0.4s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- LIVE БЛОК --- */
.live-section { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; margin-top: 5px; }
.live-badge { display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.05); padding: 6px 10px; border-radius: 12px; font-size: 9px; font-weight: 900; letter-spacing: 1px; color: #fff; border: 1px solid rgba(255,255,255,0.1); line-height: 1; }
.live-dot { width: 6px; height: 6px; background: #38ef7d; border-radius: 50%; margin-top: 4px; box-shadow: 0 0 8px #38ef7d; animation: pulseDot 1.5s infinite; }
@keyframes pulseDot { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }
.live-track-container { flex: 1; overflow: hidden; position: relative; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.live-track { display: flex; gap: 10px; animation: scrollLive 20s linear infinite; width: max-content; }
@keyframes scrollLive { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.live-card { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.05); padding: 6px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.08); }
.live-card img { width: 24px; height: 24px; object-fit: contain; }
.live-info { display: flex; flex-direction: column; }
.live-name { font-size: 9px; color: #8b9eb0; font-weight: 700; }
.live-price { font-size: 11px; color: #fff; font-weight: 800; display: flex; align-items: center; gap: 2px; }
.live-price img { width: 10px; height: 10px; }

/* --- СЕТКА КЕЙСОВ (ИСПРАВЛЕНА) --- */
.cases-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 12px; /* Уменьшили gap, чтобы карточкам было просторнее */
}

.case-card { 
    background: linear-gradient(160deg, #1d2331 0%, #0f131a 100%); 
    border-radius: 24px; 
    padding: 12px; /* Уменьшили внутренний отступ */
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    border: 1px solid rgba(255, 255, 255, 0.12); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.05); 
    cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    position: relative; 
    overflow: hidden; 
    min-width: 0; /* Важно, чтобы карточка не распирала сетку */
    box-sizing: border-box;
}

.case-card::before { 
    content: ''; position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%); 
    width: 150px; height: 150px; background: radial-gradient(circle, rgba(108, 92, 231, 0.15) 0%, transparent 70%); 
    border-radius: 50%; z-index: 0; pointer-events: none; transition: all 0.4s ease; 
}
.case-card:nth-child(2)::before { background: radial-gradient(circle, rgba(255, 117, 140, 0.15) 0%, transparent 70%); }
.case-card:nth-child(3)::before { background: radial-gradient(circle, rgba(255, 50, 50, 0.15) 0%, transparent 70%); }

.collage-container { 
    width: 100%; 
    height: 140px; /* Уменьшили высоту, чтобы всё влезало */
    position: relative; 
    margin-bottom: 8px; 
    z-index: 1; 
}
.collage-item { position: absolute; object-fit: contain; filter: drop-shadow(0 8px 15px rgba(0,0,0,0.6)); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }

.main-gift { width: 75px; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 5; }
.c1 { width: 35px; top: 5%; left: 0%; transform: rotate(-15deg); z-index: 4; }
.c2 { width: 40px; bottom: 5%; left: 5%; transform: rotate(10deg); z-index: 3; }
.c3 { width: 45px; bottom: 5%; right: 5%; transform: rotate(25deg); z-index: 3; }
.c4 { width: 35px; top: 5%; right: 0%; transform: rotate(-10deg); z-index: 4; }

@media (hover: hover) {
    .case-card:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 15px 30px rgba(0,0,0,0.6); border-color: rgba(255,255,255,0.25); }
    .case-card:hover::before { transform: translate(-50%, -50%) scale(1.3); background: radial-gradient(circle, rgba(108, 92, 231, 0.3) 0%, transparent 70%); }
    .case-card:nth-child(2):hover::before { background: radial-gradient(circle, rgba(255, 117, 140, 0.3) 0%, transparent 70%); }
    .case-card:nth-child(3):hover::before { background: radial-gradient(circle, rgba(255, 50, 50, 0.3) 0%, transparent 70%); }
    .case-card:hover .c1 { transform: translate(-10px, -10px) rotate(-30deg) scale(1.15); }
    .case-card:hover .c2 { transform: translate(-10px, 10px) rotate(25deg) scale(1.15); }
    .case-card:hover .c3 { transform: translate(10px, 10px) rotate(40deg) scale(1.15); }
    .case-card:hover .c4 { transform: translate(10px, -10px) rotate(-25deg) scale(1.15); }
    .case-card:hover .main-gift { transform: translate(-50%, -55%) scale(1.15); }
}

.case-card:active { transform: scale(0.96); box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.case-card:active::before { transform: translate(-50%, -50%) scale(1.2); background: radial-gradient(circle, rgba(108, 92, 231, 0.4) 0%, transparent 70%); }
.case-card:nth-child(2):active::before { background: radial-gradient(circle, rgba(255, 117, 140, 0.4) 0%, transparent 70%); }
.case-card:nth-child(3):active::before { background: radial-gradient(circle, rgba(255, 50, 50, 0.4) 0%, transparent 70%); }
.case-card:active .c1 { transform: translate(-8px, -8px) rotate(-30deg) scale(1.1); }
.case-card:active .c2 { transform: translate(-8px, 8px) rotate(25deg) scale(1.1); }
.case-card:active .c3 { transform: translate(8px, 8px) rotate(40deg) scale(1.1); }
.case-card:active .c4 { transform: translate(8px, -8px) rotate(-25deg) scale(1.1); }
.case-card:active .main-gift { transform: translate(-50%, -55%) scale(1.1); }

.case-title { 
    font-size: 13px; /* Уменьшили шрифт для узких экранов */
    font-weight: 800; 
    color: #fff; 
    margin-bottom: 10px; 
    z-index: 1; 
    text-shadow: 0 2px 5px rgba(0,0,0,0.5); 
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.case-btn { 
    background: linear-gradient(135deg, #7b6bf6, #6c5ce7); 
    color: white; 
    border: none; 
    padding: 10px 8px; /* Уменьшили боковые отступы */
    border-radius: 14px; 
    font-size: 12px; 
    font-weight: 800; 
    width: 100%; 
    cursor: pointer; 
    z-index: 1; 
    transition: all 0.3s; 
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 5px; 
    box-sizing: border-box; /* Защита от вылезания */
    white-space: nowrap;
}
.case-btn:active { transform: scale(0.95); }
.red-btn { background: linear-gradient(135deg, #ff4b2b, #ff416c); box-shadow: 0 4px 15px rgba(255, 75, 43, 0.4); }

/* --- НИЖНЯЯ НАВИГАЦИЯ --- */
.bottom-nav { position: fixed; bottom: 15px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 400px; height: 60px; background: rgba(25, 30, 40, 0.6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 30px; display: flex; justify-content: space-around; align-items: center; z-index: 100; box-shadow: 0 10px 30px rgba(0,0,0,0.6); }
.nav-item { font-size: 12px; font-weight: 700; color: #8b9eb0; cursor: pointer; position: relative; padding: 8px 12px; transition: 0.3s; border-radius: 16px; }
.nav-item.active { color: #fff; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 10px rgba(255,255,255,0.05); }
.free-badge { position: absolute; top: -5px; right: -10px; background: var(--gold); color: #000; font-size: 8px; padding: 2px 5px; border-radius: 6px; font-weight: 900; box-shadow: 0 2px 5px rgba(243, 198, 65, 0.5); }

/* --- ЭКРАНЫ КЕЙСОВ ВНУТРИ --- */
.back-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #8b9eb0; font-size: 14px; margin-bottom: 20px; cursor: pointer; align-self: flex-start; font-weight: 700; padding: 8px 12px; border-radius: 10px; }
.case-container { background: linear-gradient(145deg, #1d2331, #0f131a); border-radius: 24px; padding: 30px 20px; text-align: center; border: 1px solid var(--border-color); margin-bottom: 25px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.case-icon { font-size: 80px; margin-bottom: 15px; animation: float 3s ease-in-out infinite; display: flex; justify-content: center; }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-10px); } }
.case-container h2 { font-size: 24px; margin-bottom: 5px; font-weight: 800; }
.case-container p { color: #8b9eb0; font-size: 13px; margin-bottom: 25px; font-weight: 500; }
.primary-btn { background: linear-gradient(135deg, #7b6bf6, #6c5ce7); color: white; border: none; padding: 16px 20px; border-radius: 16px; font-size: 16px; font-weight: 800; width: 100%; cursor: pointer; box-shadow: 0 8px 20px rgba(108, 92, 231, 0.4); transition: transform 0.1s; display: flex; justify-content: center; align-items: center; gap: 5px; }
.primary-btn:active { transform: scale(0.95); }
.timer { font-size: 15px; color: #ff4b2b; font-weight: 800; background: rgba(255, 75, 43, 0.1); padding: 16px; border-radius: 14px; border: 1px solid rgba(255, 75, 43, 0.2); }
.section-title { font-size: 16px; color: #8b9eb0; margin-bottom: 15px; font-weight: 700; }

.prizes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.prize-card { background: #1d2331; border-radius: 16px; padding: 15px 5px; display: flex; flex-direction: column; align-items: center; border: 1px solid var(--border-color); transition: transform 0.2s; }
.prize-card:active { transform: scale(0.95); }
.p-icon { height: 40px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.p-price { background: #0b0e14; padding: 4px 10px; border-radius: 10px; font-size: 12px; font-weight: 800; color: var(--gold); }

/* --- ИНВЕНТАРЬ --- */
.inventory-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; margin-top: 10px; }
.inv-title { font-size: 28px; font-weight: 800; color: #fff; }
.inv-count { font-size: 14px; color: #8b9eb0; font-weight: 600; }
.inv-controls { display: flex; justify-content: flex-end; margin-bottom: 20px; }
.sort-btn { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.15); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.sort-btn span { font-size: 10px; color: #8b9eb0; }

.inventory-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding-bottom: 20px; }

.inv-card { background: linear-gradient(180deg, rgba(45, 55, 75, 0.6) 0%, rgba(20, 25, 35, 0.9) 100%); border-radius: 16px; padding: 15px; display: flex; flex-direction: column; justify-content: space-between; height: 220px; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.03); position: relative; cursor: pointer; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s, border-color 0.3s; }
.inv-card.is-nft { background: linear-gradient(180deg, rgba(45, 55, 110, 0.8) 0%, rgba(20, 25, 50, 0.9) 100%); border: 1px solid rgba(100, 150, 255, 0.5); box-shadow: 0 0 15px rgba(100, 150, 255, 0.2), inset 0 0 20px rgba(100, 150, 255, 0.1); }
.inv-image { flex: 1; display: flex; justify-content: center; align-items: center; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.inv-image img { width: 80%; height: 80%; object-fit: contain; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5)); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }

@media (hover: hover) {
    .inv-card:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 10px 25px rgba(0,0,0,0.5), inset 0 0 20px rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.3); }
    .inv-card.is-nft:hover { box-shadow: 0 10px 25px rgba(100, 150, 255, 0.3), inset 0 0 20px rgba(100, 150, 255, 0.2); border-color: rgba(100, 150, 255, 0.9); }
    .inv-card:hover .inv-image { transform: translateY(-10px) scale(1.15) rotate(3deg); }
}
.inv-card:active { transform: scale(0.95); box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.inv-card:active .inv-image { transform: translateY(-8px) scale(1.1) rotate(-3deg); }

.inv-info { display: flex; flex-direction: column; align-items: flex-start; text-align: left; z-index: 2; }
.inv-name { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }
.inv-status { font-size: 11px; color: #8b9eb0; margin-bottom: 8px; }
.inv-price { font-size: 18px; font-weight: 900; color: #fff; display: flex; align-items: center; gap: 5px; }
.inv-price img { width: 16px; height: 16px; }

.empty-inv { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; margin-top: 50px; color: #8b9eb0; }
.empty-icon { font-size: 60px; margin-bottom: 15px; opacity: 0.5; }

/* --- ОБЩИЕ ОВЕРЛЕИ --- */
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100dvh; background: rgba(11, 14, 20, 0.85); backdrop-filter: blur(5px); z-index: 1000; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.hidden { display: none !important; }

/* --- ПРОКРУТКА КЕЙСА (РУЛЕТКА) --- */
.opening-title { font-size: 28px; margin-bottom: 40px; color: #cbd5e1; font-weight: 900; letter-spacing: 1px; text-shadow: 0 0 20px rgba(203, 213, 225, 0.3); }
.roulette-wrapper { width: 100%; position: relative; display: flex; justify-content: center; }
.roulette-container { width: 100%; height: 160px; background: #0f172a; border-top: 3px solid var(--border-color); border-bottom: 3px solid var(--border-color); position: relative; overflow: hidden; display: flex; align-items: center; }
.roulette-pointer { position: absolute; left: 50%; top: 0; height: 100%; transform: translateX(-50%); z-index: 10; display: flex; flex-direction: column; align-items: center; }
.pointer-line { width: 3px; height: 100%; background: var(--accent-purple); position: absolute; top: 0; box-shadow: 0 0 15px var(--accent-purple); }
.pointer-arrow { color: var(--accent-purple); font-size: 26px; position: absolute; top: -8px; text-shadow: 0 0 15px var(--accent-purple); }
.roulette-strip { display: flex; gap: 12px; will-change: transform; }
.roulette-item { flex: 0 0 110px; width: 110px; height: 110px; background: #1e293b; border-radius: 20px; display: flex; justify-content: center; align-items: center; border: 2px solid #334155; }
.fade-left, .fade-right { position: absolute; top: 0; width: 60px; height: 100%; z-index: 5; pointer-events: none; }
.fade-left { left: 0; background: linear-gradient(to right, #0b0e14, transparent); }
.fade-right { right: 0; background: linear-gradient(to left, #0b0e14, transparent); }

/* --- МОДАЛКА РЕЗУЛЬТАТА --- */
.modal-content { background: #1d2331; padding: 35px 25px; border-radius: 24px; text-align: center; width: 85%; max-width: 320px; border: 1px solid var(--border-color); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8); animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes popIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.won-item { height: 100px; display: flex; justify-content: center; align-items: center; margin: 20px 0; }
.won-value { font-size: 28px; font-weight: 900; color: var(--gold); margin-bottom: 30px; text-shadow: 0 0 15px rgba(243, 198, 65, 0.3); }

/* --- МОДАЛКА ПОПОЛНЕНИЯ --- */
.topup-content { background: #131b2c; border: 1px solid #2d3b5a; border-radius: 24px; width: 90%; max-width: 400px; padding: 25px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7); animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); transition: all 0.4s ease; }
.topup-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.topup-header h2 { font-size: 20px; font-weight: 800; color: #fff; }
.close-topup { background: rgba(255, 255, 255, 0.05); border: none; color: #fff; width: 32px; height: 32px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 16px; cursor: pointer; transition: 0.2s; }
.close-topup:active { transform: scale(0.9); }
.topup-options { display: flex; flex-direction: column; gap: 15px; }
.topup-dark { background: #18233e; border: 1px solid #3b82f6; border-radius: 20px; padding: 15px; display: flex; align-items: center; gap: 15px; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.topup-dark:active { transform: scale(0.98); }
.topup-square { width: 60px; height: 60px; background: #1e2a4a; border-radius: 16px; display: flex; justify-content: center; align-items: center; border: 1px solid rgba(255,255,255,0.1); flex-shrink: 0; }
.topup-star-small { width: 40px; height: 40px; object-fit: contain; animation: floatSmall 3s ease-in-out infinite; }
@keyframes floatSmall { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.topup-title { flex: 1; font-size: 16px; font-weight: 800; color: #fff; }
.topup-btn-price { background: rgba(255, 255, 255, 0.05); padding: 8px 12px; border-radius: 12px; font-size: 14px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 5px; transition: all 0.3s; }
.topup-btn-price span { font-size: 18px; font-weight: 400; transition: transform 0.3s; }
.topup-expanded { max-height: 0; opacity: 0; overflow: hidden; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; gap: 12px; }
.topup-content.expanded .topup-expanded { max-height: 250px; opacity: 1; margin-top: 10px; }
.topup-content.expanded .topup-btn-price span { transform: rotate(90deg); }
.input-group { background: #0d1421; border: 1px solid #2d3b5a; border-radius: 14px; padding: 10px 15px; display: flex; flex-direction: column; }
.input-group label { font-size: 11px; color: #8b9eb0; margin-bottom: 5px; font-weight: 600; }
.input-group input { background: transparent; border: none; color: #fff; font-size: 24px; font-weight: 800; outline: none; width: 100%; font-family: 'Montserrat', sans-serif; }
.price-row { display: flex; justify-content: space-between; align-items: center; padding: 0 5px; font-size: 14px; font-weight: 600; color: #8b9eb0; }
.gold-text { color: var(--gold); font-size: 20px; font-weight: 900; display: flex; align-items: center; gap: 4px; }
.pay-btn { background: linear-gradient(90deg, #38ef7d, #11998e); color: white; border: none; padding: 16px; border-radius: 16px; font-size: 16px; font-weight: 900; width: 100%; cursor: pointer; transition: all 0.2s; box-shadow: 0 5px 15px rgba(56, 239, 125, 0.3); text-transform: uppercase; letter-spacing: 1px; }
.pay-btn:active { transform: scale(0.95); box-shadow: 0 2px 5px rgba(56, 239, 125, 0.2); }

/* --- СТИЛИ КАРТИНОК --- */
.p-icon img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)); }
.roulette-item img { width: 85px; height: 85px; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(0,0,0,0.4)); }
.won-item img { width: 120px; height: 120px; object-fit: contain; filter: drop-shadow(0 0 20px rgba(255,255,255,0.2)); animation: floatWin 3s ease-in-out infinite; }
@keyframes floatWin { 0%, 100% { transform: translateY(0px) scale(1); } 50% { transform: translateY(-10px) scale(1.05); } }
.inline-star { width: 26px; height: 26px; vertical-align: -4px; object-fit: contain; margin-left: 5px; filter: drop-shadow(0 2px 5px rgba(243, 198, 65, 0.5)); }

/* --- ТОСТ --- */
.toast { position: fixed; bottom: 95px; left: 50%; transform: translateX(-50%); background: rgba(21, 25, 34, 0.95); backdrop-filter: blur(10px); padding: 14px 28px; border-radius: 30px; font-size: 14px; font-weight: 700; color: #fff; border: 1px solid var(--border-color); z-index: 2000; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); animation: fadeInOut 3s forwards; text-align: center; width: max-content; max-width: 90%; }
@keyframes fadeInOut { 0% { opacity: 0; transform: translate(-50%, 15px); } 10% { opacity: 1; transform: translate(-50%, 0); } 90% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -15px); } }

/* --- АДМИНКА --- */
.admin-panel { display: none !important; position: fixed; bottom: 90px; right: 10px; background: rgba(20, 20, 20, 0.9); border: 1px solid #ff4b2b; padding: 10px; border-radius: 8px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: white; box-shadow: 0 5px 15px rgba(0,0,0,0.5); opacity: 0.7; transition: opacity 0.3s; }
.admin-panel:hover { opacity: 1; }
.admin-header { font-weight: 900; color: #ff4b2b; text-align: center; letter-spacing: 1px; }
.admin-controls { display: flex; flex-direction: column; gap: 5px; }
.admin-panel input[type="number"] { width: 100%; padding: 4px; background: #222; border: 1px solid #555; color: white; border-radius: 4px; font-family: 'Montserrat', sans-serif; }
.admin-panel button { padding: 5px; background: #ff4b2b; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; font-family: 'Montserrat', sans-serif; }
.admin-toggle { display: flex; align-items: center; gap: 5px; cursor: pointer; color: #ccc; font-size: 10px; }