* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; font-family: 'Inter', sans-serif; background: #0f172a; color: #f8fafc; overflow-x: hidden; padding-bottom: 90px; }
.header { position: sticky; top: 0; z-index: 50; padding: 15px; background: rgba(15,23,42,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid #334155; display: flex; flex-direction: column; gap: 12px; }
.header-top { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.user-greeting { font-weight: 700; font-size: 15px; color: #f8fafc; display: flex; align-items: center; gap: 5px; }
.stars { font-size: 16px; font-weight: bold; color: #f59e0b; display: flex; align-items: center; gap: 6px; background: rgba(245, 158, 11, 0.1); padding: 5px 10px; border-radius: 20px; border: 1px solid rgba(245, 158, 11, 0.2); }
.lang-box { display: flex; gap: 6px; justify-content: flex-start; overflow-x: auto; padding-bottom: 2px; }
.lang-btn { background: none; border: 1px solid #334155; color: #94a3b8; padding: 6px 12px; border-radius: 8px; font-size: 10px; font-weight: bold; cursor: pointer; }
.lang-btn.active { border-color: #38bdf8; color: #38bdf8; background: rgba(56, 189, 248, 0.1); }
.content { padding: 16px; min-height: 100vh; }
.page { display: none; animation: fadeIn 0.3s ease-out; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.card { background: #1e293b; border: 1px solid #334155; border-radius: 20px; padding: 20px; margin-bottom: 20px; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; border-bottom: 1px solid #334155; padding-bottom: 10px; }
.card h3 { margin: 0; color: #e2e8f0; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }

.btn { width: 100%; border: none; padding: 16px; border-radius: 14px; margin-top: 12px; font-weight: 700; color: white; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.2s; }
.btn:active { transform: scale(0.97); }
.green { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.red { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
.gold { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); color: white; text-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.blue { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.purple { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); }
.gray { background: #475569; }
.share-btn { background: #8b5cf6; margin-top: 10px; font-size: 12px; padding: 10px; }

input { width: 100%; padding: 14px; margin-top: 10px; background: #0f172a; border: 1px solid #334155; border-radius: 12px; color: white; font-size: 14px; outline: none; }
input:focus { border-color: #38bdf8; }

.fomo-pool { font-size: 22px; font-weight: 900; color: #fcd34d; text-shadow: 0 0 10px rgba(245, 158, 11, 0.5); }
.fomo-timer.urgent { color: #ef4444; font-weight: bold; animation: pulse 1s infinite; font-family: monospace; font-size: 14px; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }

.template-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 5px; margin-top: 10px; }
.chip { background: #334155; color: #cbd5e1; font-size: 11px; padding: 6px 12px; border-radius: 15px; white-space: nowrap; cursor: pointer; }
.chip:active { background: #38bdf8; color: white; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; }
.stat-box { background: rgba(56, 189, 248, 0.1); border: 1px solid rgba(56, 189, 248, 0.3); padding: 15px; border-radius: 12px; text-align: center; }
.stat-val { font-size: 20px; font-weight: bold; color: #38bdf8; }
.stat-label { font-size: 11px; color: #94a3b8; text-transform: uppercase; margin-top: 5px; }

/* Custom Bet Modal & Viral Overlay */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15,23,42,0.98); z-index: 1000; justify-content: center; align-items: flex-end; }
.modal-content { background: #1e293b; width: 100%; border-radius: 20px 20px 0 0; padding: 25px; border-top: 1px solid #334155; animation: slideUp 0.3s ease-out; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.bet-chips { display: flex; gap: 10px; margin-top: 15px; }
.b-chip { flex: 1; background: #334155; text-align: center; padding: 10px; border-radius: 10px; font-weight: bold; cursor: pointer; border: 1px solid #475569; }
.b-chip:active { background: #38bdf8; color: white; }
.est-win { text-align: center; margin-top: 15px; font-size: 13px; color: #94a3b8; }
.est-win span { color: #10b981; font-weight: bold; font-size: 16px; }

.viral-title { font-size: 32px; font-weight: 900; color: #10b981; margin-bottom: 10px; text-transform: uppercase; text-align:center; }
.viral-text { font-size: 16px; color: #e2e8f0; margin-bottom: 30px; line-height: 1.5; text-align:center; padding: 20px; }

.shop-item { display: flex; justify-content: space-between; align-items: center; background: #0f172a; border: 1px solid #334155; padding: 15px; border-radius: 12px; margin-bottom: 10px; }
.shop-item.highlight { border-color: #38bdf8; box-shadow: 0 0 15px rgba(56, 189, 248, 0.2); transform: scale(1.02); }
.shop-amount { font-size: 18px; font-weight: bold; color: #f59e0b; display: flex; align-items: center; gap: 5px; }
.shop-price { background: #2563eb; color: white; padding: 8px 15px; border-radius: 8px; font-size: 13px; font-weight: bold; cursor: pointer; border:none;}

.nav{ position:fixed; bottom:0; width:100%; height:75px; background:#0f172a; border-top:1px solid #334155; display:flex; justify-content:space-around; align-items:center; padding-bottom:10px; z-index:100; }
.nav-item{ display:flex; flex-direction:column; align-items:center; font-size:9px; color:#64748b; cursor:pointer; transition:0.3s; opacity: 0.7; }
.nav-item.active{ color:#38bdf8; opacity: 1; transform:translateY(-3px); }
.nav-icon { font-size:22px; margin-bottom:4px; }
.badge { background:#334155; padding:2px 8px; border-radius:10px; font-size:10px; font-weight:bold; margin-right: 10px;}
.my-bet-item { background: rgba(56, 189, 248, 0.05); border: 1px solid #334155; border-radius:10px; padding:15px; margin-bottom:10px; }
.profile-info { display: flex; align-items: center; gap: 15px; padding: 10px 0; border-bottom: 1px solid #334155; margin-bottom: 15px; }
.profile-avatar { width: 50px; height: 50px; background: #3b82f6; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: bold; color: white; }
.list-row { display:flex; justify-content:space-between; padding:12px 0; border-bottom:1px solid #1e293b; font-size:13px; align-items:center; }
.help-link { font-size:11px; color:#38bdf8; text-decoration:none; display:inline-block; margin-top:6px; margin-bottom:10px; padding-left:5px; }
