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

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

:root {
  --purple: #8b5cf6;
  --purple2: #a78bfa;
  --cyan: #06b6d4;
  --gold: #f59e0b;
  --gold2: #fde68a;
  --green: #10b981;
  --red: #f87171;
  --bg: #07070f;
  --bg2: #0d0d1c;
  --card: rgba(255,255,255,0.04);
  --card2: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.13);
  --text: #f0eeff;
  --text2: #b8b5d4;
  --muted: #6b6a8a;
  --nav-h: 58px;
  --bot-h: 70px;
}

html, body {
  height: 100%;
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

/* ─── BACKGROUND ORBS ─── */
.bg-orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}
.orb-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #7c3aed, transparent 70%);
  top: -100px; left: -100px;
  animation: orbFloat1 18s ease-in-out infinite alternate;
}
.orb-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #06b6d4, transparent 70%);
  bottom: -80px; right: -80px;
  animation: orbFloat2 22s ease-in-out infinite alternate;
}
.orb-3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, #f59e0b, transparent 70%);
  top: 40%; left: 30%;
  opacity: 0.08;
  animation: orbFloat3 26s ease-in-out infinite alternate;
}

@keyframes orbFloat1 { from { transform: translate(0,0) scale(1); } to { transform: translate(6%,10%) scale(1.15); } }
@keyframes orbFloat2 { from { transform: translate(0,0); } to { transform: translate(-6%,-10%) scale(1.1); } }
@keyframes orbFloat3 { from { transform: translate(0,0); } to { transform: translate(4%,-6%) scale(1.2); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes floatUp { 0% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 0; transform: translateY(-70px) scale(0.6); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes winPop { 0% { transform: scale(0.3); opacity: 0; } 60% { transform: scale(1.07); } 100% { transform: scale(1); opacity: 1; } }
@keyframes loadBar { 0% { width: 0%; } 100% { width: 100%; } }
@keyframes bounceDot { 0%,80%,100% { transform: scale(0); } 40% { transform: scale(1); } }
@keyframes coinGlow { 0%,100% { box-shadow: 0 0 30px rgba(245,158,11,0.3); } 50% { box-shadow: 0 0 60px rgba(245,158,11,0.7); } }
@keyframes ripple { 0% { transform: scale(0.8); opacity: 0.6; } 100% { transform: scale(2.5); opacity: 0; } }
@keyframes sheetUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ─── VIEWS ─── */
.view { display: none; position: relative; z-index: 10; min-height: 100vh; flex-direction: column; }
.view.active { display: flex; }

/* ─── LOADING ─── */
#loading-view { align-items: center; justify-content: center; }
.loading-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.loading-coin {
  width: 80px; height: 80px;
  animation: coinGlow 2s ease-in-out infinite;
  border-radius: 50%;
}
.loading-coin svg { width: 80px; height: 80px; }
.loading-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem; font-weight: 800;
  background: linear-gradient(135deg, #fff 30%, var(--purple2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.loading-bar {
  width: 140px; height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 99px; overflow: hidden;
}
.loading-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  border-radius: 99px;
  animation: loadBar 2s ease-in-out infinite;
}
.loading-sub { font-size: 0.75rem; color: var(--muted); }

/* ─── ERROR ─── */
#error-view { align-items: center; justify-content: center; padding: 24px; }
.center-wrap { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 320px; gap: 12px; }
.error-icon { font-size: 52px; }
.error-title { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 800; }
.error-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.6; }

/* ─── TOPBAR ─── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; height: var(--nav-h);
  background: rgba(7,7,15,0.88);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.topbar-admin { background: rgba(10,8,20,0.95); border-bottom-color: rgba(139,92,246,0.2); }
.topbar-brand {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 800;
  background: linear-gradient(135deg, #fff 30%, var(--purple2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.brand-coin { width: 28px; height: 28px; flex-shrink: 0; }
.brand-coin svg { width: 28px; height: 28px; }
.back-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text);
  transition: background .18s;
}
.back-btn:hover { background: rgba(255,255,255,0.12); }

.topbar-balances { display: flex; gap: 6px; }
.bal-chip {
  display: flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  border-radius: 50px; padding: 5px 10px;
  font-size: 0.74rem; font-weight: 700;
}

/* ─── PAGE SCROLL ─── */
.page-scroll {
  flex: 1;
  padding: 14px 14px calc(var(--bot-h) + 12px);
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 12px;
}

/* ─── BOTTOM NAV ─── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  height: var(--bot-h);
  background: rgba(7,7,15,0.97);
  backdrop-filter: blur(28px);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-around;
  padding: 0 8px 8px;
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  border: none; background: transparent; color: var(--muted);
  font-family: 'DM Sans', sans-serif; font-size: 0.6rem; font-weight: 500;
  cursor: pointer; padding: 6px 10px; border-radius: 12px;
  transition: all .2s; min-width: 56px;
}
.nav-icon-wrap {
  width: 36px; height: 36px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.nav-item.active { color: var(--text); }
.nav-item.active .nav-icon-wrap {
  background: linear-gradient(135deg, rgba(139,92,246,0.25), rgba(6,182,212,0.15));
  border: 1px solid rgba(139,92,246,0.3);
}
.nav-item.active svg { stroke: var(--purple2); }

/* ─── SECTIONS ─── */
.sec { display: none; flex-direction: column; gap: 12px; animation: fadeUp .28s ease both; }
.sec.active { display: flex; }

/* ─── CARDS ─── */
.card-glass {
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(12px);
}

/* ─── BUTTONS ─── */
.btn-primary {
  width: 100%; padding: 13px 16px;
  border: none; border-radius: 14px;
  font-family: 'Syne', sans-serif; font-size: 0.88rem; font-weight: 700;
  cursor: pointer; transition: all .2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0);
  transition: background .2s;
}
.btn-primary:hover::after { background: rgba(255,255,255,0.08); }
.btn-primary:active { transform: scale(0.97); }

.btn-purple {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  box-shadow: 0 6px 24px rgba(124,58,237,0.4);
}
.btn-cyan {
  background: linear-gradient(135deg, #0891b2, #06b6d4);
  color: #fff;
  box-shadow: 0 6px 24px rgba(6,182,212,0.35);
}
.btn-gold {
  background: linear-gradient(135deg, #d97706, #f59e0b, #fde68a);
  color: #1a0a00;
  box-shadow: 0 6px 24px rgba(245,158,11,0.4);
  font-weight: 800;
}
.btn-green {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  box-shadow: 0 6px 24px rgba(16,185,129,0.35);
}
.btn-ghost {
  width: 100%; padding: 12px;
  border: 1px solid var(--border2);
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  color: var(--text2);
  font-family: 'DM Sans', sans-serif; font-size: 0.84rem;
  cursor: pointer; transition: all .18s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.09); }

.btn-tg-big {
  width: 100%; padding: 13px;
  border: none; border-radius: 14px;
  background: linear-gradient(135deg, #0088cc, #00aaff);
  color: #fff;
  font-family: 'Syne', sans-serif; font-size: 0.88rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 24px rgba(0,136,204,0.4);
  transition: all .2s;
}
.btn-tg-big:hover { opacity: .9; }

.btn-icon-gold {
  padding: 0 16px; height: 46px;
  border: none; border-radius: 13px;
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(245,158,11,0.35);
  transition: all .18s; flex-shrink: 0;
}
.btn-icon-gold:hover { opacity: .9; }

/* ─── INPUTS ─── */
.inp-group { display: flex; flex-direction: column; gap: 5px; }
.inp-label { font-size: 0.67rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.inp-field {
  width: 100%; padding: 11px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 0.88rem;
  outline: none; transition: all .18s;
}
.inp-field::placeholder { color: rgba(255,255,255,0.18); }
.inp-field:focus { border-color: var(--purple); background: rgba(139,92,246,0.07); box-shadow: 0 0 0 3px rgba(139,92,246,0.12); }
.inp-select {
  width: 100%; padding: 11px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 12px; color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 0.88rem;
  outline: none; -webkit-appearance: none; appearance: none;
  cursor: pointer;
}
.inp-select:focus { border-color: var(--purple); }
.two-col { display: flex; gap: 10px; }
.two-col .inp-group { flex: 1; }

/* ─── SECTIONS LABELS ─── */
.section-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem; font-weight: 700;
  color: var(--text2);
  text-transform: uppercase; letter-spacing: .5px;
}
.section-label-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 2px;
}

/* ─── HINT CARD ─── */
.hint-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 11px 14px;
  font-size: 0.72rem; color: var(--muted); line-height: 1.6;
}
.hint-card b { color: var(--text2); }

/* ════════════ ALMASHISH ════════════ */
.swap-card { padding: 20px 16px; display: flex; flex-direction: column; gap: 16px; }
.swap-rate { display: flex; justify-content: center; }
.rate-pill {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border2);
  border-radius: 50px; padding: 5px 14px;
  font-size: 0.71rem; color: var(--text2); font-weight: 500;
}
.swap-boxes { display: flex; align-items: center; gap: 10px; }
.swap-box {
  flex: 1; background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 14px 12px; text-align: center;
}
.swap-box-val { font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 800; margin: 6px 0 3px; }
.swap-box-lbl { font-size: 0.66rem; color: var(--muted); }
.swap-arrow-wrap { flex-shrink: 0; }
.swap-arrow-circle {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(139,92,246,0.4);
}
.swap-preview-pill {
  margin-top: 6px; padding: 8px 12px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.22);
  border-radius: 10px; font-size: 0.76rem;
  color: var(--green); text-align: center;
}

/* ════════════ VAZIFA ════════════ */
.task-card { padding: 20px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.task-icon-wrap {
  width: 56px; height: 56px; border-radius: 16px;
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.2);
  display: flex; align-items: center; justify-content: center;
}
.task-title { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; }
.task-desc { font-size: 0.76rem; color: var(--muted); }
.reward-pills { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.reward-pill {
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.22);
  border-radius: 50px; padding: 4px 12px;
  font-size: 0.7rem; color: var(--gold); font-weight: 600;
}
.cooldown-wrap {
  display: none; align-items: center; gap: 6px;
  font-size: 0.73rem; color: var(--muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 50px; padding: 5px 14px;
}
.cooldown-wrap.show { display: flex; }

.ref-card { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ref-header { display: flex; align-items: center; gap: 12px; }
.ref-icon-wrap {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.22);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ref-title { font-family: 'Syne', sans-serif; font-size: 0.9rem; font-weight: 700; }
.ref-sub { font-size: 0.72rem; color: var(--muted); margin-top: 3px; }
.ref-stats-row { display: flex; gap: 10px; }
.ref-stats-row > div {
  flex: 1; background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 10px; text-align: center;
}
.ref-link-box {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border); border-radius: 11px;
  padding: 10px 13px; font-size: 0.7rem; color: var(--muted);
  word-break: break-all; font-family: monospace;
}

/* ════════════ PROMO ════════════ */
.promo-card { padding: 24px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.promo-emoji { font-size: 44px; }
.promo-title { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 800; }
.promo-desc { font-size: 0.74rem; color: var(--muted); line-height: 1.6; }
.promo-input-row { display: flex; gap: 8px; width: 100%; }
.promo-inp { flex: 1; text-transform: uppercase; letter-spacing: 1px; }
.promo-inp::placeholder { text-transform: none; letter-spacing: normal; }
.promo-inp:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,158,11,0.12); }

/* ════════════ PROFIL ════════════ */
.profile-card { padding: 22px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.profile-av {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 800;
  box-shadow: 0 8px 28px rgba(139,92,246,0.4);
}
.profile-name { font-family: 'Syne', sans-serif; font-size: 1.05rem; font-weight: 800; }
.profile-date { font-size: 0.7rem; color: var(--muted); }
.profile-bals { display: flex; gap: 8px; width: 100%; }
.pbal-item {
  flex: 1; background: rgba(0,0,0,0.28);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 12px 8px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.pbal-val { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; }
.pbal-lbl { font-size: 0.62rem; color: var(--muted); }

/* ─── TX LIST ─── */
.tx-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.tx-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border); border-radius: 12px;
}
.tx-ico { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.tx-ico.in  { background: rgba(16,185,129,0.12); }
.tx-ico.out { background: rgba(248,113,113,0.12); }
.tx-body { flex: 1; min-width: 0; }
.tx-lbl { font-size: 0.76rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-dt  { font-size: 0.62rem; color: var(--muted); margin-top: 1px; }
.tx-amt { font-family: 'Syne', sans-serif; font-size: 0.78rem; font-weight: 700; flex-shrink: 0; }
.tx-amt.plus  { color: var(--green); }
.tx-amt.minus { color: var(--red); }

/* ════════════ AUKSION ════════════ */
.empty-state { color: var(--muted); font-size: 0.76rem; text-align: center; padding: 28px 16px; }
.auction-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--border); border-radius: 20px;
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
  animation: fadeUp .3s ease both;
}
.auc-img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 14px; }
.auc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.auc-title-row { display: flex; align-items: center; gap: 8px; flex: 1; flex-wrap: wrap; }
.auc-title { font-family: 'Syne', sans-serif; font-size: 0.95rem; font-weight: 700; }
.auc-timer {
  font-family: 'Syne', sans-serif; font-size: 0.8rem; font-weight: 700;
  color: var(--cyan); white-space: nowrap;
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.2);
  border-radius: 8px; padding: 4px 9px;
}
.auc-desc { font-size: 0.73rem; color: var(--muted); line-height: 1.5; }
.auc-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.auc-tag {
  font-size: 0.69rem; color: var(--muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 7px; padding: 3px 9px;
}
.status-live {
  font-size: 0.62rem; font-weight: 700;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.28);
  color: var(--green); border-radius: 50px;
  padding: 3px 9px; animation: pulse 2s infinite;
}
.status-ended {
  font-size: 0.62rem; font-weight: 700;
  background: rgba(107,106,138,0.12);
  border: 1px solid rgba(107,106,138,0.2);
  color: var(--muted); border-radius: 50px; padding: 3px 9px;
}
.winner-banner {
  display: flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(139,92,246,0.08));
  border: 1px solid rgba(245,158,11,0.24);
  border-radius: 12px; padding: 10px 13px; font-size: 0.76rem;
}
.winner-banner strong { color: var(--gold); }
.my-win-box {
  text-align: center; font-family: 'Syne', sans-serif;
  font-size: 0.9rem; font-weight: 800; color: var(--gold);
  background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(16,185,129,0.08));
  border: 2px solid rgba(245,158,11,0.35);
  border-radius: 14px; padding: 12px;
}
.bid-row { display: flex; gap: 7px; }
.bid-inp {
  flex: 1; padding: 11px 13px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem; outline: none; transition: all .18s;
}
.bid-inp:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,158,11,0.12); }
.btn-bid {
  padding: 11px 18px; border: none; border-radius: 12px;
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #1a0a00; font-family: 'Syne', sans-serif;
  font-size: 0.82rem; font-weight: 800; cursor: pointer;
  box-shadow: 0 4px 14px rgba(245,158,11,0.35);
  transition: all .18s; white-space: nowrap;
}
.btn-bid:hover { opacity: .9; }
.my-bid-note { font-size: 0.7rem; color: var(--muted); text-align: center; }
.my-bid-note strong { color: var(--gold); }
.leaderboard { background: rgba(0,0,0,0.22); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.lb-head { display: flex; align-items: center; gap: 6px; padding: 9px 13px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.03); font-family: 'Syne', sans-serif; font-size: 0.74rem; font-weight: 700; }
.lb-row { display: flex; align-items: center; gap: 8px; padding: 8px 13px; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 0.74rem; }
.lb-row:last-child { border-bottom: none; }
.lb-row.me { background: rgba(139,92,246,0.1); }
.lb-rank { width: 24px; flex-shrink: 0; }
.lb-user { flex: 1; }
.lb-amt { font-family: 'Syne', sans-serif; font-weight: 700; color: var(--gold); }

/* ════════════ COIN TAP ════════════ */
.tap-card {
  background: linear-gradient(160deg, rgba(15,8,35,0.98), rgba(8,5,20,0.98));
  border: 1px solid rgba(139,92,246,0.18);
  border-radius: 24px; padding: 18px 16px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  position: relative; overflow: hidden;
}
.tap-card::before {
  content: ''; position: absolute; top: -50%; left: -20%;
  width: 80%; height: 80%;
  background: radial-gradient(ellipse, rgba(139,92,246,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.tap-card::after {
  content: ''; position: absolute; bottom: -30%; right: -10%;
  width: 60%; height: 60%;
  background: radial-gradient(ellipse, rgba(245,158,11,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.tap-top { width: 100%; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.tap-bal-group { display: flex; align-items: center; gap: 10px; }
.tap-coin-mini { width: 40px; height: 40px; flex-shrink: 0; }
.tap-coin-mini svg { width: 40px; height: 40px; }
.tap-bal-num { font-family: 'Syne', sans-serif; font-size: 1.55rem; font-weight: 800; background: linear-gradient(135deg, var(--gold2), var(--gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }
.tap-bal-lbl { font-size: 0.65rem; color: var(--muted); margin-top: 2px; }
.tap-level-tag {
  display: flex; align-items: center; gap: 5px;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.24);
  border-radius: 50px; padding: 4px 11px;
  font-size: 0.66rem; font-weight: 700; color: var(--gold);
}
.tap-prog-wrap { width: 100%; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.07); overflow: hidden; position: relative; z-index: 1; }
.tap-prog-bar { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--gold), #f97316); transition: width .12s; }
.tap-prog-info { width: 100%; display: flex; justify-content: space-between; font-size: 0.66rem; color: var(--muted); position: relative; z-index: 1; }
.tap-prog-info b { color: var(--text2); }

.tap-coin-center { position: relative; display: flex; align-items: center; justify-content: center; z-index: 2; }
.tap-ripple {
  position: absolute; width: 190px; height: 190px;
  border-radius: 50%; border: 2px solid rgba(245,158,11,0.3);
  pointer-events: none; opacity: 0;
}
.tap-ripple.active { animation: ripple .6s ease-out forwards; }
.tap-btn {
  width: 180px; height: 180px; border-radius: 50%;
  border: none; background: transparent;
  cursor: pointer; padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none; transition: transform .1s;
}
.tap-btn:active { transform: scale(0.89); }
.tap-coin-svg { width: 180px; height: 180px; display: block; filter: drop-shadow(0 10px 32px rgba(245,158,11,0.55)); transition: filter .1s; }
.tap-btn:active .tap-coin-svg { filter: drop-shadow(0 3px 10px rgba(245,158,11,0.3)); }

.tap-hint { font-size: 0.68rem; color: var(--muted); position: relative; z-index: 1; }
.tap-limit-msg {
  display: flex; align-items: center; gap: 7px;
  background: rgba(248,113,113,0.09); border: 1px solid rgba(248,113,113,0.2);
  border-radius: 11px; padding: 10px 14px;
  font-size: 0.72rem; color: var(--red); width: 100%; justify-content: center;
  position: relative; z-index: 1;
}
.btn-boost-open {
  width: 100%; padding: 12px 16px;
  border: none; border-radius: 14px;
  background: linear-gradient(135deg, rgba(139,92,246,0.18), rgba(245,158,11,0.1));
  border: 1px solid rgba(139,92,246,0.28);
  color: var(--purple2);
  font-family: 'Syne', sans-serif; font-size: 0.84rem; font-weight: 700;
  cursor: pointer; transition: all .2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  position: relative; z-index: 1;
}
.btn-boost-open:hover { background: linear-gradient(135deg, rgba(139,92,246,0.26), rgba(245,158,11,0.15)); border-color: rgba(139,92,246,0.4); }
.boost-cur-badge {
  background: rgba(245,158,11,0.18); border: 1px solid rgba(245,158,11,0.3);
  border-radius: 50px; padding: 2px 9px; font-size: 0.64rem; font-weight: 700; color: var(--gold);
}

/* Float +N */
.float-plus {
  position: fixed; pointer-events: none;
  font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 800;
  z-index: 9999; animation: floatUp .7s ease-out forwards;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Stats row */
.stats-row { display: flex; gap: 8px; }
.stat-card {
  flex: 1; background: var(--card);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 12px; text-align: center;
}
.stat-val { font-family: 'Syne', sans-serif; font-size: 0.9rem; font-weight: 700; }
.stat-lbl { font-size: 0.62rem; color: var(--muted); margin-top: 3px; }

/* ════════════ BOOST MODAL ════════════ */
.boost-sheet { max-height: 85vh; overflow-y: auto; }
.boost-header { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.boost-header-icon {
  width: 42px; height: 42px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(245,158,11,0.2), rgba(139,92,246,0.15));
  border: 1px solid rgba(245,158,11,0.25);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.boost-level-card {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: 18px; padding: 15px; margin-bottom: 10px; transition: all .2s;
}
.boost-level-card.owned { border-color: rgba(16,185,129,0.35); background: rgba(16,185,129,0.04); }
.boost-level-card.current-l { border-color: rgba(245,158,11,0.4); background: rgba(245,158,11,0.06); }
.blc-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.blc-emoji-wrap {
  width: 44px; height: 44px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.blc-info { flex: 1; }
.blc-name { font-family: 'Syne', sans-serif; font-size: 0.9rem; font-weight: 700; }
.blc-desc { font-size: 0.69rem; color: var(--muted); margin-top: 2px; }
.blc-badge { font-size: 0.62rem; font-weight: 700; border-radius: 50px; padding: 2px 9px; white-space: nowrap; }
.blc-badge.owned  { background: rgba(16,185,129,0.15); color: var(--green); border: 1px solid rgba(16,185,129,0.28); }
.blc-badge.cur    { background: rgba(245,158,11,0.15); color: var(--gold); border: 1px solid rgba(245,158,11,0.28); }
.blc-badge.locked { background: rgba(255,255,255,0.06); color: var(--muted); border: 1px solid var(--border); }
.blc-stats { display: flex; gap: 7px; margin-bottom: 13px; }
.blc-stat { flex: 1; background: rgba(0,0,0,0.3); border-radius: 11px; padding: 9px; text-align: center; }
.blc-stat-val { font-family: 'Syne', sans-serif; font-size: 0.86rem; font-weight: 700; }
.blc-stat-lbl { font-size: 0.61rem; color: var(--muted); margin-top: 2px; }
.btn-boost-buy {
  width: 100%; padding: 11px; border: none; border-radius: 12px;
  font-family: 'Syne', sans-serif; font-size: 0.82rem; font-weight: 700;
  cursor: pointer; transition: all .2s;
}
.btn-boost-buy.can-buy {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #1a0a00; box-shadow: 0 4px 16px rgba(245,158,11,0.35);
}
.btn-boost-buy.disabled {
  background: rgba(255,255,255,0.07);
  color: var(--muted); cursor: not-allowed;
  border: 1px solid var(--border);
}

/* ════════════ P2P ════════════ */
.p2p-bals-row {
  display: flex; gap: 8px; padding: 12px 14px 0;
}
.p2p-bal-chip {
  flex: 1; background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px; text-align: center;
  font-family: 'Syne', sans-serif; font-size: 0.84rem; font-weight: 700;
}
.p2p-order-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 14px;
  display: flex; flex-direction: column; gap: 11px;
}
.p2p-order-head { display: flex; align-items: center; justify-content: space-between; }
.p2p-type-tag {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.76rem; font-weight: 600;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  border-radius: 8px; padding: 3px 10px;
}
.p2p-seller-name { font-size: 0.7rem; color: var(--muted); }
.p2p-exchange { display: flex; align-items: center; gap: 10px; }
.p2p-val-box {
  flex: 1; background: rgba(0,0,0,0.25); border: 1px solid var(--border);
  border-radius: 11px; padding: 10px; text-align: center;
}
.p2p-val { font-family: 'Syne', sans-serif; font-size: 0.95rem; font-weight: 700; }
.p2p-lbl { font-size: 0.62rem; color: var(--muted); margin-top: 2px; }
.p2p-arr { font-size: 1.1rem; color: var(--muted); flex-shrink: 0; }
.badge-active   { font-size: 0.63rem; font-weight: 700; color: var(--green); background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.24); border-radius: 50px; padding: 2px 9px; }
.badge-sold     { font-size: 0.63rem; font-weight: 700; color: var(--gold); background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.24); border-radius: 50px; padding: 2px 9px; }
.badge-cancelled{ font-size: 0.63rem; font-weight: 700; color: var(--muted); background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 50px; padding: 2px 9px; }
.btn-p2p-buy {
  width: 100%; padding: 11px; border: none; border-radius: 12px;
  background: linear-gradient(135deg, var(--green), #059669);
  color: #fff; font-family: 'Syne', sans-serif; font-size: 0.82rem; font-weight: 700;
  cursor: pointer; box-shadow: 0 4px 14px rgba(16,185,129,0.3); transition: all .18s;
}
.btn-p2p-cancel {
  width: 100%; padding: 11px; border: none; border-radius: 12px;
  background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.22);
  color: var(--red); font-family: 'Syne', sans-serif; font-size: 0.82rem; font-weight: 700; cursor: pointer;
}

.p2p-sec { display: none; flex-direction: column; gap: 12px; }
.p2p-sec.active { display: flex; animation: fadeUp .26s ease both; }

.tab-row { display: flex; gap: 3px; padding: 12px 14px 0; flex-wrap: wrap; }
.tab-btn {
  flex: 1; padding: 8px 6px; border: none;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: var(--muted); font-family: 'DM Sans', sans-serif; font-size: 0.74rem;
  font-weight: 500; cursor: pointer; border-radius: 10px; transition: all .2s;
  white-space: nowrap;
}
.tab-btn.active {
  background: linear-gradient(135deg, var(--purple), #a855f7);
  color: #fff; border-color: transparent;
  box-shadow: 0 4px 14px rgba(139,92,246,0.35);
}

.wallet-card { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.wallet-title { font-family: 'Syne', sans-serif; font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.wallet-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; padding: 8px 0; border-bottom: 1px solid var(--border); }
.wallet-row:last-child { border-bottom: none; }
.wallet-val { font-family: 'Syne', sans-serif; font-weight: 700; }

.img-upload-box {
  border: 2px dashed var(--border2); border-radius: 12px;
  padding: 16px; text-align: center; cursor: pointer;
  position: relative; display: flex; flex-direction: column;
  align-items: center; gap: 7px; color: var(--muted); font-size: 0.74rem;
  transition: border-color .18s;
}
.img-upload-box:hover { border-color: var(--purple); }
.img-upload-box input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }

/* ════════════ ADMIN ════════════ */
.admin-topbar-btns { display: flex; gap: 7px; }
.admin-btn-user {
  padding: 6px 12px; background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.25); border-radius: 9px;
  color: var(--purple2); font-size: 0.8rem; cursor: pointer; transition: all .18s;
}
.admin-btn-logout {
  padding: 6px 12px; background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.22); border-radius: 9px;
  color: var(--red); font-family: 'DM Sans', sans-serif; font-size: 0.74rem; cursor: pointer;
}
.admin-tabs { padding: 10px 14px 0; background: rgba(7,7,15,0.7); gap: 4px; }
.admin-tabs .tab-btn { font-size: 0.7rem; padding: 7px 8px; }
.adm-sec { display: none; flex-direction: column; gap: 12px; animation: fadeUp .26s ease both; }
.adm-sec.active { display: flex; }
.adm-auction-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 9px;
}
.adm-auc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.adm-auc-title { font-family: 'Syne', sans-serif; font-size: 0.84rem; font-weight: 700; flex: 1; }
.adm-auc-meta { display: flex; flex-wrap: wrap; gap: 5px; font-size: 0.69rem; color: var(--muted); }
.adm-auc-meta span { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; }
.adm-winner { font-size: 0.73rem; color: var(--gold); background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.18); border-radius: 9px; padding: 6px 11px; }
.adm-auc-btns { display: flex; gap: 7px; }
.btn-adm-end { flex: 1; padding: 8px; border: none; border-radius: 9px; background: rgba(6,182,212,0.1); border: 1px solid rgba(6,182,212,0.2); color: var(--cyan); font-size: 0.73rem; font-weight: 600; cursor: pointer; }
.btn-adm-del { flex: 1; padding: 8px; border: none; border-radius: 9px; background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.2); color: var(--red); font-size: 0.73rem; font-weight: 600; cursor: pointer; }
.adm-user-card { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 11px 13px; }
.adm-user-av { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--cyan)); display: flex; align-items: center; justify-content: center; font-family: 'Syne', sans-serif; font-size: 0.88rem; font-weight: 800; flex-shrink: 0; }
.adm-user-info { flex: 1; min-width: 0; }
.adm-user-name { font-family: 'Syne', sans-serif; font-size: 0.8rem; font-weight: 700; }
.adm-user-bal { font-size: 0.65rem; color: var(--muted); margin-top: 1px; }
.btn-adm-give { padding: 6px 13px; border: none; border-radius: 8px; background: linear-gradient(135deg, var(--purple), #a855f7); color: #fff; font-size: 0.72rem; font-weight: 700; cursor: pointer; }
.adm-req-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 13px; display: flex; flex-direction: column; gap: 10px; }
.adm-req-label { font-size: 0.77rem; color: var(--text); line-height: 1.5; }
.adm-req-btns { display: flex; gap: 7px; }
.btn-approve { flex: 1; padding: 9px; border: none; border-radius: 9px; background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.24); color: var(--green); font-size: 0.74rem; font-weight: 600; cursor: pointer; }
.btn-reject  { flex: 1; padding: 9px; border: none; border-radius: 9px; background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.2); color: var(--red); font-size: 0.74rem; font-weight: 600; cursor: pointer; }
.adm-promo-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 13px; display: flex; flex-direction: column; gap: 10px; }
.adm-promo-info { font-size: 0.77rem; color: var(--text); }
.adm-promo-btns { display: flex; gap: 7px; }
.btn-promo-toggle { flex: 1; padding: 8px; border: none; border-radius: 9px; font-size: 0.73rem; font-weight: 600; cursor: pointer; }
.btn-promo-del { flex: 1; padding: 8px; border: none; border-radius: 9px; background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.2); color: var(--red); font-size: 0.73rem; font-weight: 600; cursor: pointer; }

/* ════════════ MODALS ════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.82); backdrop-filter: blur(12px);
  display: none; align-items: flex-end; justify-content: center;
  padding: 0;
}
.modal-overlay.show { display: flex; }
.modal-sheet {
  width: 100%; max-width: 480px; max-height: 90vh;
  background: linear-gradient(180deg, #0f0f22 0%, #09091a 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 26px 26px 0 0;
  padding: 16px 20px 32px;
  display: flex; flex-direction: column; gap: 14px;
  animation: sheetUp .3s ease both;
  overflow-y: auto;
}
.modal-handle { width: 38px; height: 4px; background: rgba(255,255,255,0.15); border-radius: 99px; margin: 0 auto 4px; flex-shrink: 0; }
.modal-icon-big { font-size: 44px; text-align: center; }
.modal-title { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 800; text-align: center; }
.modal-desc { font-size: 0.75rem; color: var(--muted); text-align: center; }
.ad-slot-wrap { width: 100%; border-radius: 14px; overflow: hidden; }
.ad-placeholder { width: 100%; height: 150px; background: rgba(255,255,255,0.04); border: 2px dashed var(--border); border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 0.73rem; }
.ad-progress-wrap { display: flex; align-items: center; gap: 10px; }
.ad-progress-bar { flex: 1; height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; position: relative; }
.ad-progress-bar::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--purple), var(--cyan)); width: 0%; transition: width .1s linear; border-radius: 3px; }
.ad-timer { font-family: 'Syne', sans-serif; font-size: 0.8rem; font-weight: 700; color: var(--text2); flex-shrink: 0; }

/* Win modal */
.win-sheet { border: 2px solid rgba(245,158,11,0.3); }
.win-trophy { font-size: 56px; text-align: center; }
.win-title { font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--gold); text-align: center; }
.win-subtitle { font-size: 0.78rem; color: var(--muted); text-align: center; }
.win-lot-name { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; text-align: center; background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2); border-radius: 12px; padding: 10px; }
.win-stat-row { display: flex; justify-content: center; }
.win-stat { text-align: center; background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: 14px; padding: 14px 24px; }
.win-stat-val { font-family: 'Syne', sans-serif; font-size: 1.4rem; font-weight: 800; color: var(--gold); }
.win-stat-lbl { font-size: 0.7rem; color: var(--muted); margin-top: 3px; }
.win-note { font-size: 0.72rem; color: var(--muted); text-align: center; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 11px; padding: 10px; line-height: 1.6; }

/* Give modal */
.give-row { display: flex; gap: 8px; }

/* ─── TOAST ─── */
.toast {
  position: fixed; bottom: 78px; left: 50%;
  transform: translateX(-50%) translateY(14px);
  background: rgba(14,14,26,0.98); border: 1px solid var(--border);
  color: var(--text); padding: 10px 20px; border-radius: 50px;
  font-size: 0.77rem; backdrop-filter: blur(20px);
  opacity: 0; transition: opacity .26s, transform .26s;
  z-index: 9999; white-space: nowrap; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { border-color: rgba(16,185,129,0.4); color: var(--green); }
.toast.error-t { border-color: rgba(248,113,113,0.4); color: var(--red); }
