/* ═══════════════════════════════════════════════════════
   ArexBOT — Premium Telegram Mini App CSS
   Pixel-matched to crypto wallet reference design
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root {
  --bg:     #050505;
  --surf:   rgba(22, 22, 24, 0.65);
  --surf2:  rgba(30, 30, 32, 0.7);
  --surf3:  rgba(37, 37, 40, 0.8);
  --border: rgba(255,255,255,0.07);
  --text:   #ffffff;
  --t2:     #8e8e93;
  --t3:     #48484a;
  --blue:   #3390ec;
  --blue-glow: rgba(51,144,236,0.35);
  --green:  #34c759;
  --red:    #ff453a;
  --dock-h: 82px;
}

html,body{height:100%;background:var(--bg);color:var(--text);font-family:'Inter',-apple-system,sans-serif;-webkit-font-smoothing:antialiased;overscroll-behavior:none;overflow:hidden}

button{background:none;border:none;cursor:pointer;color:inherit;font-family:inherit;-webkit-tap-highlight-color:transparent}
input{font-family:inherit;outline:none}

/* ── Background & Noise ── */
#app::before{
  content:''; position:absolute; top:-100px;left:50%;transform:translateX(-50%); width:600px; height:500px;
  background:radial-gradient(ellipse at center, rgba(51,144,236,0.18) 0%, rgba(51,144,236,0.05) 40%, transparent 70%);
  pointer-events:none; z-index:0;
}
#app::after{
  content:''; position:absolute; inset:0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.05; pointer-events:none; z-index:0; mix-blend-mode: overlay;
}

.screen,.dock-wrap{z-index:1;position:relative}
.tap{transition:transform 0.15s cubic-bezier(0.2,0.8,0.2,1),opacity 0.15s ease}
.tap:active{transform:scale(0.94);opacity:0.7}

/* ── App Shell ─────────────────────────── */
#app{position:relative;width:100%;max-width: 600px;height:100dvh;margin:0 auto;overflow:hidden;background:var(--bg)}

/* ── Screens ───────────────────────────── */
.screen{position:absolute;inset:0;display:flex;flex-direction:column;opacity:0;pointer-events:none;transform:translateY(16px);transition:opacity .25s ease,transform .25s cubic-bezier(.2,.8,.2,1)}
.screen.active{opacity:1;pointer-events:auto;transform:translateY(0)}
.scroll{flex:1;overflow-y:auto;overflow-x:hidden;padding:0 14px calc(var(--dock-h) + 24px);-webkit-overflow-scrolling:touch}
.scroll::-webkit-scrollbar{display:none}

/* ── Glass helper & Blur classes ───────────────── */
.glass{background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.07)}
.glass, .asset-card, .promo-card, .sheet, .top-bar, .search-box, .account-pill, .icon-btn { backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }

/* ══════════════════════════════════════════
   TOP BAR
   ══════════════════════════════════════════ */
.top-bar{display:flex;align-items:center;gap:10px;padding:14px 16px 10px;flex-shrink:0;z-index:10;min-height:60px;box-sizing:border-box;}
.top-bar.flat{padding-bottom:14px}

/* Round icon buttons (settings, refresh etc) */
.icon-btn{width:38px;height:38px;border-radius:50%;background:var(--surf);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;color:var(--t2);flex-shrink:0}
.icon-btn svg{width:18px;height:18px}

/* Avatar button top-left */
.prof-top-btn{
  width:40px;height:40px;border-radius:50%;
  background:linear-gradient(135deg,var(--blue),#1565c0);
  display:flex;align-items:center;justify-content:center;
  font-size:16px;font-weight:800;color:#fff;
  flex-shrink:0;
  box-shadow:0 2px 12px var(--blue-glow);
}

/* Account completion pill — exact reference */
.account-pill{
  flex:1;height:50px;
  background:var(--surf);
  border:1px solid var(--border);
  border-radius:100px;
  padding:0 16px 0 10px;
  display:flex;align-items:center;gap:10px;
}
.pill-ring{position:relative;width:34px;height:34px;flex-shrink:0}
.pill-ring svg{width:100%;height:100%}
.pill-frac{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:800;color:var(--blue)}
.pill-body{flex:1}
.pill-main{font-size:13px;font-weight:700;color:var(--text);line-height:1.3}
.pill-hint{font-size:11px;color:var(--t2)}

.screen-title{font-size:22px;font-weight:800;color:var(--text);flex:1}
.screen-badge{font-size:13px;font-weight:600;color:var(--t2);background:var(--surf2);padding:4px 10px;border-radius:100px}
.top-action{display:flex;align-items:center;gap:5px;font-size:13px;font-weight:600;color:var(--blue)}

/* iOS Large Title */
.ios-large-title{font-size:32px;font-weight:700;letter-spacing:-1.2px;color:#fff;padding:4px 16px 20px;}

/* ══════════════════════════════════════════
   HOME — BALANCE HERO
   ══════════════════════════════════════════ */
.balance-hero{position:relative;text-align:center;padding:28px 0 24px;z-index:1}
.balance-aura{position:absolute;top:150px;left:50%;transform:translateX(-50%);width:160px;height:160px;background:rgba(51,144,236,0.25);filter:blur(50px);border-radius:50%;z-index:0;pointer-events:none}
.bal-row{display:flex;align-items:center;justify-content:center;gap:8px}
.bal-sym{font-size:32px;font-weight:400;color:var(--t2);line-height:1;align-self:flex-start;margin-top:12px}
.bal-num{font-size:68px;font-weight:900;color:var(--text);letter-spacing:-4px;line-height:1}
.eye-btn{color:var(--t2);padding:5px;margin-top:8px}
.eye-btn svg{width:22px;height:22px;display:block}
.bal-label{font-size:14px;color:var(--t2);margin-top:10px;font-weight:500}
.bal-accent{color:var(--blue);font-weight:600}

/* ══════════════════════════════════════════
   HOME — ACTION ROW  (Deposit / Rent / History)
   ══════════════════════════════════════════ */
.actions{display:flex;justify-content:center;gap:36px;padding:0 16px;margin-bottom:30px}
.act{display:flex;flex-direction:column;align-items:center;gap:10px}
.act-circle{
  width:64px;height:64px;border-radius:20px;
  background:linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.15);
  display:flex;align-items:center;justify-content:center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transition:transform .15s cubic-bezier(0.2,0.8,0.2,1),box-shadow .15s ease, background 0.15s ease;
}
.act-circle:active{
  transform:scale(0.92);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
  background:linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.05));
}
.act-circle svg{width:26px;height:26px;stroke:#fff;fill:none}
.act span{font-size:13px;font-weight:600;color:var(--text);opacity:0.9}

/* ══════════════════════════════════════════
   HOME — PROMO BANNER
   ══════════════════════════════════════════ */
.promo-card{
  border-radius:16px;padding:14px 16px;
  display:flex;align-items:center;justify-content:space-between;
  cursor:pointer;margin-bottom:10px;
  background:linear-gradient(135deg,rgba(52,199,89,0.08),rgba(52,199,89,0.03));
  border:1px solid rgba(52,199,89,0.18);
  border-left:3px solid var(--green);
}
.promo-left{display:flex;align-items:center;gap:14px}
.promo-icon-wrap{font-size:26px;line-height:1}
.promo-title{font-size:15px;font-weight:700;color:var(--green);margin-bottom:2px}
.promo-sub{font-size:13px;color:rgba(255,255,255,0.6)}
.promo-arr{width:14px;height:14px;color:var(--green);flex-shrink:0}

/* Carousel dots */
.dot-row{display:flex;justify-content:center;gap:5px;margin:10px 0 22px}
.dot{width:6px;height:6px;border-radius:50%;background:var(--surf3);transition:all .2s}
.dot.active{width:18px;border-radius:3px;background:var(--blue)}

/* ══════════════════════════════════════════
   HOME — SECTION HEADER
   ══════════════════════════════════════════ */
.sec-hdr{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.sec-hdr-btn{font-size:16px;font-weight:700;color:var(--blue);display:flex;align-items:center;gap:4px;cursor:pointer}
.sec-action{font-size:14px;font-weight:500;color:var(--blue)}

/* ══════════════════════════════════════════
   ASSET / SERVICE CARD (shared list rows)
   ══════════════════════════════════════════ */
.asset-card{border-radius:20px;overflow:hidden;background:linear-gradient(180deg, var(--surf), rgba(22, 22, 24, 0.4));border:1px solid rgba(255,255,255,0.08);margin-bottom:8px;box-shadow:0 8px 24px rgba(0,0,0,0.2)}

.arow{display:flex;align-items:center;padding:14px 16px;gap:14px;cursor:pointer;transition:background .15s;border-bottom:1px solid rgba(255,255,255,0.04)}
.arow:last-child{border-bottom:none}
.arow:active{background:rgba(255,255,255,0.06)}
.a-logo{
  width:46px;height:46px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;overflow:hidden;
  box-shadow:inset 0 2px 4px rgba(255,255,255,0.35), 0 4px 12px rgba(0,0,0,0.4);
}
.a-logo svg{width:26px;height:26px}
.a-info{flex:1;min-width:0}
.a-name{font-size:15px;font-weight:700;color:var(--text);margin-bottom:3px;display:flex;align-items:center;gap:7px}
.a-sub{font-size:12px;color:var(--t2);display:flex;align-items:center;gap:5px}
.up{color:var(--green)}.down{color:var(--red)}.flat{color:var(--t2)}
.a-right{text-align:right;flex-shrink:0;display:flex;flex-direction:column;align-items:flex-end;gap:3px}
.a-price{font-size:15px;font-weight:700;color:var(--text)}
.a-usd{font-size:12px;color:var(--t2)}
.a-chev{color:var(--t3);flex-shrink:0;margin-left:4px}

/* Hot badge on popular services */
.hot-badge{
  font-size:9.5px;font-weight:700;letter-spacing:.4px;
  text-transform:uppercase;
  background:linear-gradient(135deg,#ff6b35,#ff3b30);
  color:#fff;
  padding:2px 6px;border-radius:4px;
  line-height:1.4;
}

/* ══════════════════════════════════════════
   RENT SCREEN EXTRAS
   ══════════════════════════════════════════ */
.chip-row{display:flex;gap:7px;margin-bottom:12px;overflow-x:auto;padding-bottom:2px}
.chip-row::-webkit-scrollbar{display:none}
.chip{
  padding:7px 16px;
  border-radius:100px;
  font-size:13px;font-weight:600;
  background:var(--surf);border:1px solid var(--border);
  color:var(--t2);
  white-space:nowrap;
  flex-shrink:0;
  transition:all .15s;
}
.chip.active{background:rgba(51,144,236,.14);border-color:rgba(51,144,236,.35);color:var(--blue)}

.info-banner{
  display:flex;align-items:center;gap:8px;
  background:rgba(255,204,0,0.07);
  border:1px solid rgba(255,204,0,0.18);
  border-radius:12px;
  padding:10px 14px;
  font-size:12.5px;font-weight:500;
  color:rgba(255,220,80,0.9);
  margin-bottom:14px;
}

/* Numbers screen extras */
.refresh-btn{
  width:36px;height:36px;border-radius:50%;
  background:var(--surf);border:1px solid var(--border);
  display:flex;align-items:center;justify-content:center;
  color:var(--blue);
}
.live-banner{
  display:flex;align-items:center;gap:8px;
  background:rgba(52,199,89,0.08);
  border:1px solid rgba(52,199,89,0.2);
  border-radius:12px;
  padding:10px 14px;
  font-size:13px;font-weight:600;color:var(--green);
  margin-bottom:14px;
}
.search-box{display:flex;align-items:center;gap:10px;border-radius:14px;padding:0 14px;margin-bottom:14px;height:46px;background:#2c2c2e;border:none}
.s-icon{width:16px;height:16px;color:var(--t2);flex-shrink:0}
.search-box input{flex:1;background:none;border:none;font-size:15px;color:var(--text)}
.search-box input::placeholder{color:var(--t2)}

/* ══════════════════════════════════════════
   SEGMENT CONTROL (Premium iOS)
   ══════════════════════════════════════════ */
.seg-ctrl{
  display:flex;
  background:rgba(118,118,128,0.24);
  border-radius:9px;
  padding:2px;
  margin-bottom:20px;
}
.seg-btn{
  flex:1;
  padding:7px 0;
  border-radius:7px;
  font-size:13px;
  font-weight:600;
  color:var(--t2);
  transition:all .2s ease;
  background:transparent;
  border:none;
}
.seg-btn.active{
  background:rgba(255,255,255,0.12);
  color:#fff;
  box-shadow:0 3px 1px rgba(0,0,0,0.04), 0 3px 8px rgba(0,0,0,0.12);
}

/* ══════════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════════ */
.empty{
  display:flex;flex-direction:column;align-items:center;text-align:center;
  padding:40px 20px;gap:14px;
  background:#1c1c1e;
  border-radius:16px;
  margin-top:20px;
}
.empty-icon{width:72px;height:72px;border-radius:20px;background:#2c2c2e;display:flex;align-items:center;justify-content:center;margin-bottom:4px;}
.empty-icon svg{width:32px;height:32px;color:#8e8e93}
.empty-ttl{font-size:19px;font-weight:700;letter-spacing:-0.4px;color:#fff}
.empty-sub{font-size:14px;color:#8e8e93;line-height:1.4;max-width:240px}
.cta-btn{margin-top:12px;background:var(--blue);color:#fff;font-size:15px;font-weight:600;padding:12px 28px;border-radius:10px;border:none}

/* ══════════════════════════════════════════
   ORDER CARDS (iOS Solid)
   ══════════════════════════════════════════ */
.order-card{
  background:var(--surf);
  border-radius:14px;
  padding:12px;
  margin-bottom:12px;
  border:1px solid var(--border);
  box-shadow:0 2px 12px rgba(0,0,0,0.1);
}
.oc-head{display:flex;align-items:center;gap:10px;margin-bottom:10px;padding-bottom:10px;border-bottom:1px dashed var(--border)}
.oc-icon{width:36px;height:36px;border-radius:10px;background:var(--blue);display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:0 4px 10px rgba(51,144,236,0.25)}
.oc-icon svg{width:18px;height:18px;color:#fff}
.oc-svc{font-size:15px;font-weight:700;color:#fff;letter-spacing:-0.2px}
.oc-ctry{font-size:12px;color:#8e8e93;margin-top:2px;font-weight:500}
.live-badge{margin-left:auto;background:rgba(52,199,89,.15);border-radius:100px;padding:3px 8px;font-size:11px;font-weight:700;color:var(--green);display:flex;align-items:center;gap:4px;border:1px solid rgba(52,199,89,.3)}
.live-dot{width:6px;height:6px;border-radius:50%;background:var(--green);animation:pulse 1.5s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.3}}
.oc-num{background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.06);border-radius:8px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.oc-num-txt{font-family:monospace;font-size:17px;font-weight:700;color:var(--blue);letter-spacing:1px}
.copy-btn{background:rgba(51,144,236,0.1);color:var(--blue);font-size:13px;font-weight:700;padding:5px 10px;border-radius:6px;transition:background 0.2s}
.copy-btn:active{background:rgba(51,144,236,0.25)}
.oc-sms{background:rgba(52,199,89,0.05);border:1px dashed rgba(52,199,89,0.25);border-radius:8px;padding:10px 12px;font-size:14px;font-weight:500;color:#fff;line-height:1.4;min-height:40px;display:flex;align-items:center}


/* ══════════════════════════════════════════
   EARN — ULTRA PREMIUM
   ══════════════════════════════════════════ */
.earn-premium-hero {
  background: linear-gradient(145deg, #182035 0%, #0d111a 100%);
  border-radius: 24px;
  padding: 32px 20px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 0 16px 20px;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}
.eph-glow {
  position: absolute; top: -50px; left: 50%; transform: translateX(-50%);
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(51,144,236,0.3) 0%, transparent 70%);
  filter: blur(20px); pointer-events: none;
}
.eph-icon { font-size: 56px; line-height: 1; margin-bottom: 16px; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.3)); }
.eph-title { font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -0.5px; margin-bottom: 8px; }
.eph-sub { font-size: 15px; color: rgba(255,255,255,0.6); line-height: 1.5; margin-bottom: 24px; max-width: 260px; margin-inline: auto; }
.eph-link-wrap {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(0,0,0,0.4); border-radius: 14px;
  padding: 6px 6px 6px 14px; margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.05);
}
.eph-link { font-family: monospace; font-size: 13px; color: #8e8e93; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.eph-copy { border:none; background: rgba(255,255,255,0.1); color: #fff; font-weight: 700; font-size: 13px; padding: 10px 16px; border-radius: 10px; margin-left: 12px; }
.eph-share {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border:none;
  background: #fff; color: #000; font-weight: 700; font-size: 16px;
  padding: 16px; border-radius: 16px;
  box-shadow: 0 4px 14px rgba(255,255,255,0.25);
  transition: transform 0.2s;
}
.eph-share:active { transform: scale(0.97); }

.earn-stats-row { display: flex; gap: 12px; margin: 0 16px 24px; }
.es-box {
  flex: 1; background: #1c1c1e; border-radius: 16px; padding: 20px;
  border: none;
}
.es-val { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -0.5px; margin-bottom: 4px; }
.es-lbl { font-size: 13px; font-weight: 600; color: #8e8e93; }

.earn-steps { padding: 0 16px; margin: 0 16px 20px; background: #1c1c1e; border-radius: 16px; padding-top:16px; padding-bottom:16px; }
.estep { display: flex; align-items: center; gap: 16px; }
.estep-ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(51,144,236,0.1); color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.estep-ic svg { width: 22px; height: 22px; }
.estep-txt { flex: 1; }
.estep-t { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: -0.3px; margin-bottom: 2px; }
.estep-s { font-size: 13px; color: #8e8e93; line-height: 1.4; }
.estep-line { width: 2px; height: 24px; background: rgba(255,255,255,0.05); margin: 6px 0 6px 21px; }

/* ══════════════════════════════════════════
   TASKS (iOS List)
   ══════════════════════════════════════════ */
.tasks-list { display: flex; flex-direction: column; gap: 12px; }
.task-card {
  background: #1c1c1e;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.task-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center; color: #fff;
  flex-shrink: 0;
}
.task-body { flex: 1; }
.task-title { font-size: 16px; font-weight: 600; color: #fff; letter-spacing:-0.3px; margin-bottom: 3px; }
.task-desc { font-size: 13px; color: #8e8e93; line-height: 1.3; }
.task-reward {
  font-size: 14px; font-weight: 600; color: var(--green);
  background: rgba(52,199,89,0.15); padding: 6px 12px; border-radius: 100px;
}
.task-done { opacity: 0.5; pointer-events: none; }
.task-done .task-reward { color: #8e8e93; background: #2c2c2e; text-decoration: line-through; }

.ref-box{border-radius:14px;padding:14px 16px;display:flex;align-items:center;gap:10px;background:var(--surf);border:1px solid var(--border)}
.ref-link{flex:1;font-family:monospace;font-size:12px;color:var(--t2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ref-btns{display:flex;gap:6px;flex-shrink:0}
.ref-btn-copy{font-size:13px;font-weight:700;padding:8px 14px;border-radius:10px;background:rgba(51,144,236,.12);color:var(--blue)}
.ref-btn-share{font-size:13px;font-weight:700;padding:8px 14px;border-radius:10px;background:var(--blue);color:#fff}

.hiw-card{background:var(--surf);border-radius:18px;padding:20px;border:1px solid var(--border)}
.hiw-title{font-size:15px;font-weight:700;color:var(--text);margin-bottom:16px}
.hiw-step{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.hiw-step:last-child{margin-bottom:0}
.hiw-num{width:24px;height:24px;border-radius:50%;background:rgba(51,144,236,.12);color:var(--blue);font-size:12px;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.hiw-txt{font-size:13.5px;color:var(--t2);line-height:1.4}

/* ══════════════════════════════════════════
   PROFILE SHEET
   ══════════════════════════════════════════ */
.list-label{font-size:12px;font-weight:600;color:var(--t2);text-transform:uppercase;letter-spacing:.8px;margin:20px 0 8px}
.profile-row{display:flex;align-items:center;gap:16px;padding:16px 0 20px}
.prof-av{width:64px;height:64px;border-radius:50%;background:linear-gradient(135deg,var(--blue),#1565c0);display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:800;color:#fff;flex-shrink:0}
.prof-name{font-size:20px;font-weight:800;color:var(--text);margin-bottom:3px}
.prof-id{font-size:13px;color:var(--t2)}

/* Menu card (iOS-style list) */
.menu-card{border-radius:18px;overflow:hidden;background:var(--surf);border:1px solid var(--border)}
.menu-div{height:1px;background:var(--border);margin:0 16px}
.menu-row{width:100%;display:flex;align-items:center;gap:14px;padding:13px 16px;text-align:left;transition:background .12s}
.menu-row:active{background:rgba(255,255,255,0.04)}
.m-icon{width:40px;height:40px;border-radius:10px;background:linear-gradient(135deg,var(--c1),var(--c2));display:flex;align-items:center;justify-content:center;flex-shrink:0;color:#fff}
.m-body{flex:1;min-width:0}
.m-title{font-size:16px;font-weight:600;color:var(--text);margin-bottom:2px}
.m-sub{font-size:12px;color:var(--t2)}
.m-arr{width:14px;height:14px;color:var(--t2);flex-shrink:0}

/* ══════════════════════════════════════════
   DEPOSIT SHEET
   ══════════════════════════════════════════ */
.deposit-panel{border-radius:18px;padding:20px;background:var(--surf);border:1px solid var(--border)}
.dp-title{font-size:16px;font-weight:700;color:var(--text);margin-bottom:18px}
.presets{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:14px}
.preset{padding:11px;background:var(--surf2);border:1px solid var(--border);border-radius:12px;font-size:14px;font-weight:700;color:var(--t2);transition:all .15s}
.preset.active{background:rgba(51,144,236,.12);border-color:rgba(51,144,236,.4);color:var(--blue)}
.amt-wrap{position:relative;margin-bottom:16px}
.amt-pfx{position:absolute;left:16px;top:50%;transform:translateY(-50%);font-size:20px;font-weight:700;color:var(--t2);pointer-events:none}
.amt-inp{width:100%;background:var(--surf2);border:1px solid var(--border);border-radius:14px;padding:15px 16px 15px 38px;font-size:22px;font-weight:800;color:var(--text)}
.amt-inp:focus{border-color:rgba(51,144,236,.5)}

.primary-btn{width:100%;background:var(--blue);color:#fff;font-size:16px;font-weight:700;padding:16px;border-radius:14px;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 6px 24px var(--blue-glow)}

.qr-card{display:inline-block;background:#fff;padding:12px;border-radius:16px;margin-bottom:14px;box-shadow:0 4px 24px rgba(0,0,0,.5)}
.qr-img{width:160px;height:160px;display:block}
.qr-amt{font-size:26px;font-weight:900;color:var(--green);margin-bottom:6px}

.utr-card{border-radius:14px;padding:16px;text-align:left;background:var(--surf);border:1px solid var(--border)}
.utr-lbl{font-size:13px;font-weight:600;color:var(--t2);margin-bottom:10px}
.utr-row{display:flex;gap:8px;margin-bottom:8px}
.utr-inp{flex:1;background:rgba(0,0,0,.4);border:1px solid var(--border);border-radius:10px;padding:11px 14px;font-size:14px;font-family:monospace;color:var(--text)}
.utr-inp:focus{border-color:rgba(51,144,236,.5)}
.utr-btn{background:var(--green);color:#fff;font-size:14px;font-weight:700;padding:11px 18px;border-radius:10px;white-space:nowrap}

/* ══════════════════════════════════════════
   DEPOSIT SHEET EXTRAS
   ══════════════════════════════════════════ */
.sht-sub{font-size:12px;color:var(--t2);margin-top:2px}
.sht-sub strong{color:var(--blue)}

.amt-lbl{font-size:12px;font-weight:600;color:var(--t2);text-transform:uppercase;letter-spacing:.6px;margin-bottom:10px}

.qr-outer{display:flex;align-items:center;gap:16px;background:var(--surf);border:1px solid var(--border);border-radius:16px;padding:16px;margin-bottom:14px}
.qr-card{background:#fff;padding:8px;border-radius:10px;flex-shrink:0;box-shadow:0 4px 20px rgba(0,0,0,.4)}
.qr-img{width:120px;height:120px;display:block}
.qr-meta{flex:1}
.qr-amt{font-size:28px;font-weight:900;color:var(--green);line-height:1;margin-bottom:6px}
.qr-hint{font-size:12px;color:var(--t2);line-height:1.5}
.utr-card{background:var(--surf);border:1px solid var(--border);border-radius:14px;padding:16px}
.utr-hint{font-size:12px;color:var(--t2);margin-top:8px}

/* Crypto soon placeholder */
.crypto-soon{padding:24px 0;text-align:center}
.cs-icon{
  width:72px;height:72px;border-radius:22px;
  background:linear-gradient(135deg,rgba(51,144,236,.15),rgba(51,144,236,.05));
  border:1px solid rgba(51,144,236,.2);
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 16px;
  color:var(--blue);
}
.cs-title{font-size:20px;font-weight:800;color:var(--text);margin-bottom:8px}
.cs-sub{font-size:14px;color:var(--t2);line-height:1.6;max-width:260px;margin:0 auto}

/* Country sheet sort bar */
.cntry-sort-wrap{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid var(--border);gap:8px;}
.cntry-sort{display:flex;align-items:center;gap:6px;overflow-x:auto;white-space:nowrap;flex:1;scrollbar-width:none;}
.cntry-sort::-webkit-scrollbar{display:none;}
.sort-lbl{font-size:12px;color:var(--t2);flex-shrink:0;}
.sort-btn{font-size:12px;font-weight:600;padding:5px 10px;border-radius:100px;background:var(--surf);border:1px solid var(--border);color:var(--t2);transition:all .15s;}
.sort-btn.active{background:rgba(51,144,236,.12);border-color:rgba(51,144,236,.3);color:var(--blue);}

.oos-toggle{display:flex;align-items:center;gap:6px;flex-shrink:0;}
.oos-track{width:32px;height:18px;border-radius:10px;background:rgba(142,142,147,0.3);position:relative;transition:.25s ease;}
.oos-track.active{background:var(--blue);}
.oos-thumb{width:14px;height:14px;border-radius:50%;background:#fff;position:absolute;top:2px;left:2px;transition:.25s ease;box-shadow:0 2px 4px rgba(0,0,0,0.15);}
.oos-track.active .oos-thumb{transform:translateX(14px);}
.oos-lbl{font-size:11px;color:var(--t2);font-weight:700;text-transform:uppercase;letter-spacing:0.5px;}

/* Confirm sheet hero */
.cfm-hero{text-align:center;padding:20px 0 24px}
.cfm-svc-icon{
  width:64px;height:64px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 12px;
  background:var(--blue);
}
.cfm-svc-icon svg{width:30px;height:30px;color:#fff}
.cfm-hero-name{font-size:22px;font-weight:800;color:var(--text);margin-bottom:3px}
.cfm-hero-sub{font-size:13px;color:var(--t2)}
.cfm-grn{color:var(--green)!important}
.cfm-disclaimer{font-size:11px;color:var(--t3);text-align:center;margin-top:12px;line-height:1.5;padding:0 8px}
.overlay{
  position:fixed;inset:0;
  background:rgba(0,0,0,.4);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  z-index:100;opacity:0;pointer-events:none;
  transition:opacity .3s ease;
}
.overlay.show{opacity:1;pointer-events:auto}

.sheet{
  position:fixed;bottom:0;left:50%;transform:translateX(-50%) translateY(calc(100% + 60px));
  width:100%;max-width: 600px;
  background:#1c1c1e;
  border-top:0.5px solid rgba(255,255,255,0.15);
  box-shadow:0 -4px 30px rgba(0,0,0,0.8);
  border-top-left-radius:24px;border-top-right-radius:24px;
  padding:16px 16px 40px;
  z-index:101;
  opacity:0;pointer-events:none;
  transition:transform .4s cubic-bezier(0.2, 0.9, 0.2, 1), opacity .4s cubic-bezier(0.2, 0.9, 0.2, 1);
  max-height:92dvh;overflow-y:auto;
}
.sheet.show{transform:translateX(-50%) translateY(0);opacity:1;pointer-events:auto}
.sheet::-webkit-scrollbar{display:none}

.sheet-pip{width:36px;height:5px;background:#3a3a3c;border-radius:3px;margin:0 auto 20px}
.sheet-hdr{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.sht-title{font-size:18px;font-weight:700;letter-spacing:-0.4px;color:#fff}
.sht-svc-ic{width:40px;height:40px;border-radius:50%;background:var(--blue);display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0}
.sht-svc-ic svg{width:22px;height:22px;color:#fff}
.sht-svc-nm{font-size:17px;font-weight:700;letter-spacing:-0.3px;color:#fff}
.sht-svc-sub{font-size:13px;color:#8e8e93;margin-top:2px}
.sht-close{width:28px;height:28px;border-radius:50%;background:#2c2c2e;display:flex;align-items:center;justify-content:center;color:#8e8e93}

.sheet-scroll{max-height:58dvh;overflow-y:auto}
.sheet-scroll::-webkit-scrollbar{display:none}

/* Country rows */
.crow{display:flex;align-items:center;gap:12px;padding:12px 14px;background:#2c2c2e;border-radius:14px;margin-bottom:6px;cursor:pointer;transition:background .12s}
.crow:active{background:#3a3a3c}
.crow-flag{font-size:26px;flex-shrink:0;line-height:1}
.crow-name{flex:1;font-size:15px;font-weight:600;color:var(--text)}
.crow-stk{font-size:11px;color:var(--green);margin-top:2px;font-weight:500}
.crow-stk.out{color:var(--red)}
.crow-price{font-size:15px;font-weight:700;color:var(--blue);text-align:right}
.crow-usd{font-size:11px;color:var(--t2);text-align:right;margin-top:2px}

/* Confirm rows */
.cfm-rows{border-radius:12px;padding:0 16px;margin-bottom:12px;background:#2c2c2e;}
.cfm-row{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:0.5px solid #3a3a3c}
.cfm-row:last-child{border-bottom:none}
.cfm-lbl{font-size:14px;font-weight:500;color:#8e8e93}
.cfm-val{font-size:15px;font-weight:600;color:#fff}
.cfm-price{font-size:22px;font-weight:700;color:var(--blue)}
.cfm-hero { position: relative; }

/* Native Select */
.tg-select-wrap { position: relative; background: var(--surf2); border-radius: 10px; border: 1px solid var(--border); overflow: hidden; }
.tg-select { appearance: none; -webkit-appearance: none; width: 100%; padding: 12px 14px; padding-right: 36px; background: transparent; border: none; font-size: 14px; font-weight: 600; color: var(--text); outline: none; }
.tg-select-wrap .chevron { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--t2); pointer-events: none; }


/* Telegram Native List */
.tg-list { background: var(--surf); border-radius: 12px; margin-bottom: 16px; overflow: hidden; border: 1px solid var(--border); }
.tg-list-item { display: flex; align-items: center; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.04); transition: background 0.2s; }
.tg-list-item:last-child { border-bottom: none; }
.tg-list-item:active { background: var(--surf2); }
.tg-item-icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-right: 14px; color: #fff; flex-shrink: 0; }
.tg-item-icon svg { width: 18px; height: 18px; }
.tg-item-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.tg-item-title { font-size: 16px; font-weight: 500; color: var(--text); line-height: 1.2; }
.tg-item-sub { font-size: 13px; color: var(--blue); margin-top: 2px; }
.tg-item-right { display: flex; align-items: center; color: var(--t2); }
.tg-item-right svg.chevron { width: 20px; height: 20px; opacity: 0.5; }

/* Native Switch Toggle */
.tg-switch { position: relative; display: inline-block; width: 50px; height: 30px; }
.tg-switch input { opacity: 0; width: 0; height: 0; }
.tg-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--surf3); transition: .3s; border-radius: 30px; border: 2px solid transparent; }
.tg-slider:before { position: absolute; content: ""; height: 22px; width: 22px; left: 2px; bottom: 2px; background-color: white; transition: .3s; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.tg-switch input:checked + .tg-slider { background-color: var(--green); }
.tg-switch input:checked + .tg-slider:before { transform: translateX(20px); }

/* Native Segmented Control */
.tg-segmented { display: flex; background: rgba(118,118,128,0.24); border-radius: 8px; padding: 2px; }
.tg-seg-btn { flex: 1; padding: 6px 0; font-size: 13px; font-weight: 600; color: var(--text); border-radius: 6px; transition: .2s; }
.tg-seg-btn.active { background: var(--surf); box-shadow: 0 3px 8px rgba(0,0,0,0.12), 0 3px 1px rgba(0,0,0,0.04); }

/* ══════════════════════════════════════════
   FLOATING PILL DOCK  ← THE CRITICAL PIECE
   ══════════════════════════════════════════ */
.dock-wrap{
  position:fixed;
  bottom:12px;
  left:50%;
  transform:translateX(-50%);
  width:calc(100% - 28px);
  max-width:390px;
  z-index:90;
  pointer-events:none;
}

/*  The outer shape IS a full pill (very high border-radius). 
    This is the dark pill container — exact match to reference. */
.dock{
  pointer-events:auto; display:flex; align-items:center; justify-content:stretch;
  background:rgba(28,28,30,0.45);
  backdrop-filter:blur(40px) saturate(200%); -webkit-backdrop-filter:blur(40px) saturate(200%);
  border-radius:9999px; border:1px solid rgba(255,255,255,0.15); padding:5px;
  box-shadow:0 12px 40px rgba(0,0,0,0.6), inset 0 1px 1px rgba(255,255,255,0.25);
}

/*  Each tab button — also a pill shape so it nestles inside the outer pill */
.dtab{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  padding:10px 6px;
  border-radius:9999px;           /* inner pill for each tab */
  transition:background .18s ease, color .18s ease;
  color:#636366;                  /* exact iOS muted grey */
  min-width:0;
}

.dtab svg{
  width:22px;height:22px;
  display:block;flex-shrink:0;
  transition:color .18s ease;
}

.dtab span{
  font-size:10.5px;
  font-weight:600;
  letter-spacing:0.15px;
  line-height:1;
  white-space:nowrap;
  transition:color .18s ease;
}

/*  ACTIVE STATE — the entire pill button lights up  */
.dtab.active{
  background:rgba(51,144,236,0.14);
  color:#3390ec;
}
.dtab.active svg{color:#3390ec}

.dtab:active{transform:scale(0.9);opacity:0.7}

/* ══════════════════════════════════════════
   SKELETON LOADERS
   ══════════════════════════════════════════ */
.skel-row { display:flex; align-items:center; padding:14px 16px; gap:14px; border-bottom:1px solid rgba(255,255,255,0.04); pointer-events:none; }
.skel-row:last-child { border-bottom:none; }
.skel-av { width:46px; height:46px; border-radius:50%; background:var(--surf3); animation:pulse 1.5s infinite; flex-shrink:0; }
.skel-line { border-radius:6px; background:var(--surf3); animation:pulse 1.5s infinite; }
@keyframes pulse { 0%{opacity:0.6} 50%{opacity:0.2} 100%{opacity:0.6} }

/* ══════════════════════════════════════════
   DYNAMIC ISLAND TOAST
   ══════════════════════════════════════════ */
.toast{
  position:fixed;top:-80px;left:50%;transform:translateX(-50%);
  background:rgba(28,28,30,0.85);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
  color:#fff;font-size:14px;font-weight:600;padding:12px 24px;
  border-radius:100px;border:1px solid rgba(255,255,255,0.1);
  box-shadow:0 10px 30px rgba(0,0,0,0.5);
  z-index:9999;transition:top 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display:flex;align-items:center;gap:10px;white-space:nowrap;
}
.toast.show{top:20px}
.toast-icon{color:var(--green);width:18px;height:18px;}

/* Reduce padding for all bottom sheets */
.sheet { padding: 16px !important; }
.sheet-hdr { margin-bottom: 12px !important; }
.sheet-scroll { padding-bottom: 0 !important; }

/* Server Cards in Advanced Mode */
.server-card {
  padding: 12px 14px;
  background: #1e1e1e;
  border-radius: 12px;
  margin-bottom: 8px;
  border: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.server-card:hover {
  background: #252525;
}
.server-card.active {
  border-color: var(--blue);
  background: rgba(33, 150, 243, 0.1);
}
.sc-left {
  display: flex;
  flex-direction: column;
}
.sc-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.sc-stock {
  font-size: 12px;
  color: #a1a1aa;
  margin-top: 2px;
}
.sc-right {
  display: flex;
  align-items: center;
}
.sc-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
}

/* Fix for top avatar */
#topAv {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Spinner Animation */
.loader-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s ease-in-out infinite;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
