:root {
  --bg: #000000;
  --glass-bg: rgba(25, 25, 30, 0.5);
  --glass-border: rgba(255, 255, 255, 0.15);
  --text: #ffffff;
  --text-muted: #888888;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
body { background-color: var(--bg); color: var(--text); margin: 0; padding: 20px 16px 40px 16px; min-height: 100vh; overflow-x: hidden; position: relative; }
.ambient-light { position: fixed; top: -10%; left: -10%; width: 120%; height: 120%; z-index: -1; background: radial-gradient(circle at 20% 30%, rgba(255, 42, 117, 0.15) 0%, transparent 40%), radial-gradient(circle at 80% 70%, rgba(0, 210, 255, 0.15) 0%, transparent 40%); filter: blur(60px); animation: pulseBg 10s infinite alternate ease-in-out; }
.ambient-light.secondary { background: radial-gradient(circle at 80% 20%, rgba(112, 0, 255, 0.15) 0%, transparent 40%), radial-gradient(circle at 20% 80%, rgba(0, 255, 136, 0.1) 0%, transparent 40%); animation-delay: -5s; }
@keyframes pulseBg { 0% { transform: scale(1) translate(0, 0); } 100% { transform: scale(1.1) translate(20px, -20px); } }
header { margin-bottom: 24px; }
.header-content { display: flex; align-items: center; justify-content: center; position: relative; height: 50px; }
.header-content.has-back { justify-content: flex-start; padding-left: 50px; }
.back-btn { position: absolute; left: 0; top: 5px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1); color: #fff; width: 40px; height: 40px; border-radius: 50%; display: flex; justify-content: center; align-items: center; transition: all 0.2s; z-index: 10; }
.back-btn:active { transform: scale(0.85); background: rgba(255,255,255,0.2); }
.back-btn svg { width: 20px; height: 20px; }
.back-btn.hidden { display: none !important; }
.logo-text { font-size: 32px; font-weight: 800; margin: 0; background: linear-gradient(135deg, #fff, #888); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.glass-panel { background: var(--glass-bg); backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%); border: 1px solid var(--glass-border); border-radius: 28px; box-shadow: inset 0 1px 1px rgba(255,255,255,0.1), 0 8px 32px rgba(0,0,0,0.5); padding: 16px; margin-bottom: 16px; animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.hidden { display: none !important; }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.main-btn { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); color: #fff; padding: 24px 12px; border-radius: 22px; display: flex; flex-direction: column; align-items: center; gap: 12px; transition: transform 0.15s, background 0.2s; }
.main-btn:active { transform: scale(0.92); background: rgba(255,255,255,0.08); }
.icon-wrap { width: 52px; height: 52px; border-radius: 16px; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.icon-fizy { background: linear-gradient(135deg, #ff2a75, #ff7b00); }
.icon-nft { background: linear-gradient(135deg, #7000ff, #00d2ff); }
.icon-profile { background: linear-gradient(135deg, #00ff88, #00d2ff); }
.icon-balance { background: linear-gradient(135deg, #ffcc00, #ff7b00); }
.main-btn svg { width: 28px; height: 28px; }
.main-btn span { font-size: 13px; font-weight: 700; color: #eee; }
.tabs { display: flex; padding: 6px; gap: 6px; margin-bottom: 16px; border-radius: 20px; }
.tabs button { flex: 1; padding: 14px; border: none; background: transparent; color: var(--text-muted); font-size: 12px; font-weight: 700; border-radius: 16px; transition: all 0.3s; }
.tabs button.active { background: rgba(255,255,255,0.1); color: #fff; }
.card { display: flex; flex-direction: column; gap: 16px; padding: 20px; }
.card-top { display: flex; align-items: center; gap: 14px; }
.icon-wrap.small { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,0.1); }
.icon-wrap.small svg { width: 22px; height: 22px; }
.phone { font-size: 20px; font-weight: 800; }
.card-mid { display: flex; gap: 8px; flex-wrap: wrap; }
.card-mid span { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 8px 14px; border-radius: 12px; font-size: 14px; }
.buy-btn { background: linear-gradient(135deg, #ff2a75, #7000ff); color: #fff; border: none; padding: 18px; border-radius: 18px; font-weight: 800; font-size: 15px; box-shadow: 0 8px 24px rgba(255, 42, 117, 0.4); }
.buy-btn:active { transform: scale(0.94); }
.profile-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #7000ff, #00d2ff); display: flex; justify-content: center; align-items: center; font-size: 24px; font-weight: 800; }
.user-info h3 { margin: 0 0 4px 0; font-size: 20px; }
.user-info p { margin: 0; color: var(--text-muted); font-size: 14px; }
.data-row { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 16px; }
.data-row span { color: var(--text-muted); }
.data-row b { color: #fff; }
.promo-btn { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #fff; padding: 16px; border-radius: 18px; font-weight: 700; font-size: 15px; }
.promo-btn:active { background: rgba(255,255,255,0.1); }
.balance-card { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; margin-bottom: 20px; }
.balance-card .label { color: var(--text-muted); font-size: 13px; }
.balance-card .amount { font-size: 48px; font-weight: 800; background: linear-gradient(135deg, #fff, #aaa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.balance-card .amount small { font-size: 24px; color: #888; -webkit-text-fill-color: #888; }
.topup-btn { width: 100%; background: linear-gradient(135deg, #00ff88, #00d2ff); color: #000; border: none; padding: 18px; border-radius: 18px; font-weight: 800; font-size: 15px; }
.topup-btn:active { transform: scale(0.94); }

/* МОДАЛЬНЫЕ ОКНА */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); z-index: 1000; display: flex; justify-content: center; align-items: flex-end; }
.modal-content { width: 100%; border-radius: 28px 28px 0 0; padding: 24px; animation: slideUpModal 0.3s cubic-bezier(0.16, 1, 0.3, 1); z-index: 1001; position: relative; }
.modal-title { margin: 0 0 20px 0; font-size: 18px; text-align: center; }
.topup-option { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #fff; padding: 16px; border-radius: 16px; margin-bottom: 12px; display: flex; align-items: center; gap: 12px; font-size: 15px; }
.topup-option:active { background: rgba(255,255,255,0.1); }
.close-btn { width: 100%; background: transparent; border: none; color: var(--text-muted); padding: 16px; font-size: 14px; }
@keyframes slideUpModal { from { transform: translateY(100%); } to { transform: translateY(0); } }
.empty { text-align: center; color: var(--text-muted); padding: 40px; font-size: 15px; }
.promo-input { width: 100%; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); color: #fff; padding: 16px; border-radius: 16px; font-size: 16px; text-align: center; letter-spacing: 2px; font-weight: 700; outline: none; }
.promo-input:focus { border-color: #00d2ff; }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }