/* BarMarz — shared design system (user app + admin panel). Offline: local fonts only. */
@font-face { font-family: 'Estedad'; src: url('fonts/Estedad-Variable.woff2') format('woff2-variations'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('fonts/Vazirmatn-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('fonts/Vazirmatn-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #050708;
  --bg-2: #0a0e0d;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --glass: rgba(14, 20, 18, .62);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f3f6f4;
  --muted: #8d9a95;
  --dim: #5d6965;
  --em: #34e8a6;
  --em-2: #14b8a6;
  --em-glow: rgba(52, 232, 166, .35);
  --gold: #e3c27a;
  --gold-2: #b8893a;
  --red: #ff6b6b;
  --amber: #f5b84a;
  --blue: #5aa8ff;
  --r-xl: 26px; --r-lg: 20px; --r-md: 14px; --r-sm: 10px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: 'Estedad', 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --shell: 520px;
  --nav-h: 76px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
button, a, .tap, .plan, .copy { touch-action: manipulation; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); }
body { overflow-x: hidden; font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--em); text-decoration: none; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.dimt { color: var(--muted); font-size: .78em; font-weight: 500; }
.view svg { width: 20px; height: 20px; flex: none; }   /* default icon size; specific rules below override */
.chev svg, .list .item > svg { width: 18px; height: 18px; color: var(--dim); }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.num { font-feature-settings: "tnum"; }

/* ---------------------------------------------------------------- cinematic backdrop */
#bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.aurora { position: fixed; inset: -20vmax; z-index: 0; pointer-events: none; filter: blur(60px); opacity: .55; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: drift 26s var(--ease) infinite alternate; }
.aurora i:nth-child(1) { width: 52vmax; height: 52vmax; left: 8%; top: -6%; background: radial-gradient(circle, rgba(20, 184, 166, .32), transparent 62%); }
.aurora i:nth-child(2) { width: 46vmax; height: 46vmax; right: -4%; top: 22%; background: radial-gradient(circle, rgba(227, 194, 122, .17), transparent 60%); animation-duration: 32s; animation-delay: -8s; }
.aurora i:nth-child(3) { width: 60vmax; height: 60vmax; left: 20%; bottom: -30%; background: radial-gradient(circle, rgba(52, 232, 166, .16), transparent 60%); animation-duration: 38s; animation-delay: -14s; }
@keyframes drift { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(4vmax, -3vmax, 0) scale(1.08); } 100% { transform: translate3d(-3vmax, 4vmax, 0) scale(.96); } }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E"); }
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at 50% 0%, transparent 40%, rgba(0, 0, 0, .55) 100%); }

/* ---------------------------------------------------------------- shell */
#app { position: relative; z-index: 2; max-width: var(--shell); margin: 0 auto; min-height: 100vh; padding: 18px 16px calc(var(--nav-h) + 28px); }
.view { animation: viewIn .2s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px) scale(.985); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.stagger > * { animation: rise .24s var(--ease) both; }
.stagger > *:nth-child(1) { animation-delay: .01s; } .stagger > *:nth-child(2) { animation-delay: .025s; }
.stagger > *:nth-child(3) { animation-delay: .04s; } .stagger > *:nth-child(4) { animation-delay: .055s; }
.stagger > *:nth-child(5) { animation-delay: .07s; } .stagger > *:nth-child(6) { animation-delay: .085s; }
.stagger > *:nth-child(n+7) { animation-delay: .1s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.01em; }
.brand img { width: 38px; height: 38px; filter: drop-shadow(0 6px 18px var(--em-glow)); }
.brand small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: .14em; margin-top: -4px; }
.icon-btn { width: 42px; height: 42px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; transition: .25s var(--ease); }
.icon-btn:hover { border-color: var(--line-2); background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; }

h1 { font-size: 26px; margin: 0 0 4px; letter-spacing: -.02em; line-height: 1.3; }
h2 { font-size: 18px; margin: 26px 0 12px; display: flex; align-items: center; justify-content: space-between; }
h2 small { font-size: 12px; color: var(--muted); font-weight: 500; }
.sub { color: var(--muted); margin: 0 0 18px; font-size: 14px; }

/* ---------------------------------------------------------------- cards */
.card { position: relative; border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(20,27,24,.86), rgba(11,15,14,.82)); border: 1px solid var(--line);
  padding: 18px; backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); overflow: hidden; }
.card + .card { margin-top: 12px; }
.card.tap { cursor: pointer; transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease); }
.card.tap:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0,0,0,.35); }
.card.tap:active { transform: scale(.985); }
.card .shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.08) 48%, transparent 66%);
  transform: translateX(-120%); animation: shine 6s var(--ease) infinite; }
@keyframes shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

.hero { padding: 22px; border-radius: var(--r-xl); border: 1px solid rgba(52, 232, 166, .22);
  background: radial-gradient(120% 140% at 100% 0%, rgba(52, 232, 166, .22), transparent 55%),
              radial-gradient(90% 120% at 0% 100%, rgba(227, 194, 122, .16), transparent 55%), linear-gradient(160deg, #0f1916, #070b0a); }
.hero .label { color: var(--muted); font-size: 13px; }
.hero .amount { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 12px; }
.hero .amount span { font-size: 15px; color: var(--muted); font-weight: 500; margin-inline-start: 6px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { padding: 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); text-align: center; }
.stat b { display: block; font-size: 20px; }
.stat span { font-size: 12px; color: var(--muted); }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.quick button { border: 1px solid var(--line); background: var(--surface); border-radius: 18px; padding: 14px 4px 10px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--text); transition: .3s var(--ease); }
.quick button:hover { background: var(--surface-2); transform: translateY(-2px); }
.quick .ico { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(145deg, rgba(52,232,166,.22), rgba(20,184,166,.08)); color: var(--em); }
.quick button:nth-child(2) .ico { background: linear-gradient(145deg, rgba(227,194,122,.24), rgba(184,137,58,.08)); color: var(--gold); }
.quick button:nth-child(3) .ico { background: linear-gradient(145deg, rgba(90,168,255,.22), rgba(90,168,255,.06)); color: var(--blue); }
.quick button:nth-child(4) .ico { background: linear-gradient(145deg, rgba(255,107,107,.2), rgba(255,107,107,.05)); color: #ff9b9b; }
.quick svg { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- service card + ring */
.svc { display: flex; gap: 14px; align-items: center; }
.ring { position: relative; width: 74px; height: 74px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: rgba(255,255,255,.08); }
.ring .val { stroke: url(#ringGrad); stroke-linecap: round; transition: stroke-dashoffset 1.6s var(--ease); filter: drop-shadow(0 0 6px var(--em-glow)); }
.ring .val.warn { stroke: var(--amber); filter: none; } .ring .val.bad { stroke: var(--red); filter: none; }
.ring .c { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-weight: 800; font-size: 15px; line-height: 1.1; }
.ring .c small { display: block; font-size: 10px; color: var(--muted); font-weight: 500; }
.ring.big { width: 168px; height: 168px; margin: 6px auto 10px; }
.ring.big .c { font-size: 30px; }
.ring.big .c small { font-size: 12px; margin-top: 4px; }
.svc .meta { flex: 1; min-width: 0; }
.svc .t { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc .d { font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 3px; }
.chev { color: var(--dim); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 600; border: 1px solid transparent; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.pill.ok { color: var(--em); background: rgba(52,232,166,.1); border-color: rgba(52,232,166,.22); }
.pill.bad { color: var(--red); background: rgba(255,107,107,.1); border-color: rgba(255,107,107,.22); }
.pill.warn { color: var(--amber); background: rgba(245,184,74,.1); border-color: rgba(245,184,74,.22); }
.pill.gold { color: var(--gold); background: rgba(227,194,122,.1); border-color: rgba(227,194,122,.25); }
.pill.plain::before { display: none; }

.bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--em-2), var(--em)); box-shadow: 0 0 14px var(--em-glow); transition: width 1.4s var(--ease); }

/* ---------------------------------------------------------------- buttons & inputs */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 20px; border-radius: 16px;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font-weight: 700; cursor: pointer; transition: .3s var(--ease); width: 100%; overflow: hidden; }
.btn:hover { background: rgba(255,255,255,.09); }
.btn:active { transform: scale(.98); }
.btn.primary { border: 0; color: #03140d; background: linear-gradient(135deg, #5cf2bb, var(--em) 45%, var(--em-2)); box-shadow: 0 10px 34px -8px var(--em-glow), inset 0 1px 0 rgba(255,255,255,.45); }
.btn.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%); transform: translateX(-130%); animation: shine 3.6s var(--ease) infinite; }
.btn.gold { border: 0; color: #1c1405; background: linear-gradient(135deg, #f6dc9c, var(--gold) 50%, var(--gold-2)); box-shadow: 0 10px 30px -10px rgba(227,194,122,.5); }
.btn.danger { color: #ffb3b3; border-color: rgba(255,107,107,.3); background: rgba(255,107,107,.08); }
.btn.ghost { background: transparent; }
.btn.sm { height: 40px; border-radius: 12px; font-size: 13.5px; padding: 0 14px; width: auto; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn svg { width: 18px; height: 18px; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.stack > * + * { margin-top: 10px; }

.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.input { width: 100%; height: 52px; border-radius: 15px; border: 1px solid var(--line-2); background: rgba(0,0,0,.35); padding: 0 16px; outline: none; transition: .25s var(--ease); }
.input:focus { border-color: rgba(52,232,166,.6); box-shadow: 0 0 0 4px rgba(52,232,166,.12); }
textarea.input { height: 96px; padding: 12px 16px; resize: none; }
.seg { display: flex; padding: 4px; gap: 4px; border-radius: 16px; background: rgba(0,0,0,.35); border: 1px solid var(--line); margin-bottom: 18px; }
.seg button { flex: 1; height: 42px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; transition: .3s var(--ease); }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.seg button svg { width: 18px; height: 18px; flex: none; }
.seg button.on { background: linear-gradient(135deg, rgba(52,232,166,.22), rgba(20,184,166,.12)); color: var(--text); box-shadow: inset 0 0 0 1px rgba(52,232,166,.3); }

/* ---------------------------------------------------------------- plan picker */
.plan { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(16,22,20,.85); cursor: pointer; transition: .3s var(--ease); position: relative; }
.plan + .plan { margin-top: 10px; }
.plan:hover { border-color: var(--line-2); background: var(--surface-2); }
.plan.sel { border-color: rgba(52,232,166,.55); background: linear-gradient(135deg, rgba(52,232,166,.12), rgba(20,184,166,.04)); box-shadow: 0 0 0 4px rgba(52,232,166,.08); }
.plan .vol { width: 64px; height: 64px; border-radius: 18px; flex: none; display: grid; place-items: center; text-align: center; line-height: 1.05;
  background: linear-gradient(150deg, rgba(52,232,166,.16), rgba(20,184,166,.04)); border: 1px solid rgba(52,232,166,.2); font-weight: 800; font-size: 20px; }
.plan .vol small { display: block; font-size: 10.5px; font-weight: 600; color: var(--muted); }
.plan .vol.inf { font-size: 26px; color: var(--gold); background: linear-gradient(150deg, rgba(227,194,122,.18), rgba(184,137,58,.04)); border-color: rgba(227,194,122,.25); }
.plan .info { flex: 1; }
.plan .info b { display: block; }
.plan .info span { font-size: 12.5px; color: var(--muted); }
.plan .price { text-align: left; font-weight: 800; font-size: 17px; }
.plan .price small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.plan .badge { position: absolute; top: -9px; left: 14px; font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 99px; color: #1c1405; background: linear-gradient(135deg, #f6dc9c, var(--gold)); box-shadow: 0 6px 16px -6px rgba(227,194,122,.6); }

.cat { display: flex; gap: 14px; align-items: center; }
.cat .em { font-size: 30px; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); flex: none; }
.cat p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------- invoice, copy, qr */
.kv { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv b { text-align: left; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; font-size: 15px; }
.total b { font-size: 26px; background: linear-gradient(135deg, #7cf7c8, var(--em)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.copy { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(0,0,0,.35); border: 1px solid var(--line); cursor: pointer; transition: .25s var(--ease); }
.copy:hover { border-color: rgba(52,232,166,.4); }
.copy .v { flex: 1; min-width: 0; direction: ltr; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 13px; }
.copy .v.big { font-size: 19px; letter-spacing: .08em; }
.copy svg { width: 18px; height: 18px; color: var(--em); flex: none; }
.qr { background: #fff; border-radius: 18px; padding: 12px; width: 200px; margin: 6px auto 14px; box-shadow: 0 20px 60px -20px rgba(52,232,166,.45); }
.qr svg { display: block; width: 100%; height: auto; }
.cfg { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.cfg + .cfg { margin-top: 8px; }
.cfg .n { flex: 1; min-width: 0; direction: ltr; text-align: left; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.drop { border: 1.5px dashed var(--line-2); border-radius: 18px; padding: 18px; text-align: center; color: var(--muted); cursor: pointer; transition: .25s var(--ease); }
.drop:hover { border-color: rgba(52,232,166,.5); color: var(--text); }
.drop svg { width: 30px; height: 30px; display: block; margin: 0 auto 6px; color: var(--em); }
.drop img { max-width: 100%; max-height: 220px; border-radius: 12px; }
.status-card { display:flex;align-items:center;gap:12px;margin-top:12px;cursor:pointer;padding:15px; }
.status-card > svg { width:20px;flex:none;color:var(--dim); }
.status-card > div:nth-child(2) { flex:1;min-width:0; }
.status-card p { margin:3px 0 0;color:var(--muted);font-size:12.5px;line-height:1.7; }
.status-card .status-icon { width:42px;height:42px;border-radius:14px;display:grid;place-items:center;flex:none;font-size:21px;font-weight:900; }
.status-card.waiting { border-color:rgba(245,184,74,.35);background:linear-gradient(135deg,rgba(245,184,74,.12),rgba(16,22,20,.9)); }
.status-card.waiting .status-icon { color:var(--amber);background:rgba(245,184,74,.12); }
.status-card.rejected { border-color:rgba(255,107,107,.3);background:linear-gradient(135deg,rgba(255,107,107,.1),rgba(16,22,20,.9)); }
.status-card.rejected .status-icon { color:var(--red);background:rgba(255,107,107,.12); }
.profile-card .avatar { width:72px;height:72px;object-fit:cover;margin:0 auto 8px;border-radius:24px;border:1px solid var(--line-2);display:grid;place-items:center; }
.profile-card .avatar.fallback { font-size:30px;font-weight:800;background:linear-gradient(135deg,rgba(52,232,166,.25),rgba(227,194,122,.15)); }
.tg-profile-btn { width:min(320px,100%);margin:15px auto 0;height:46px; }
.tg-linked { width:fit-content;margin:13px auto 0;padding:7px 12px;border-radius:99px;color:var(--em);background:rgba(52,232,166,.1);border:1px solid rgba(52,232,166,.22);font-size:12px; }
.tg-connect { text-align:center;padding:4px 2px 2px; }
.tg-connect-icon { width:74px;height:74px;margin:0 auto 10px;border-radius:24px;display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,#37aee2,#168ac0);box-shadow:0 16px 38px -12px rgba(55,174,226,.65); }
.tg-connect-icon svg { width:38px;height:38px; }

/* ---------------------------------------------------------------- list / tx */
.list .item { display: flex; align-items: center; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.list .item:last-child { border-bottom: 0; }
.list .dot { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--surface-2); }
.list .dot.in { color: var(--em); background: rgba(52,232,166,.1); } .list .dot.out { color: #ff9b9b; background: rgba(255,107,107,.08); }
.list .dot svg { width: 18px; height: 18px; }
.list .mid { flex: 1; min-width: 0; } .list .mid small { display: block; color: var(--muted); font-size: 12px; }
.list .amt { font-weight: 700; direction: ltr; }
.list .amt.in { color: var(--em); } .list .amt.out { color: #ffb0b0; }

/* ---------------------------------------------------------------- bottom nav */
.nav { position: fixed; z-index: 30; bottom: 14px; left: 50%; transform: translateX(-50%); width: calc(min(var(--shell), 100vw) - 24px); height: var(--nav-h);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 0 6px; border-radius: 26px; background: rgba(10, 15, 13, .78);
  border: 1px solid var(--line-2); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); box-shadow: 0 20px 60px rgba(0,0,0,.55); }
.nav[hidden] { display: none; }
.nav button { border: 0; background: none; color: var(--dim); display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; cursor: pointer; transition: .3s var(--ease); height: 100%; }
.nav button svg { width: 22px; height: 22px; transition: .35s var(--spring); }
.nav button.on { color: var(--text); }
.nav button.on svg { color: var(--em); transform: translateY(-2px) scale(1.08); filter: drop-shadow(0 0 8px var(--em-glow)); }
.nav .fab { position: relative; top: -18px; }
.nav .fab span.o { width: 60px; height: 60px; border-radius: 22px; display: grid; place-items: center; color: #03140d;
  background: linear-gradient(135deg, #6ff5c3, var(--em) 50%, var(--em-2)); box-shadow: 0 12px 34px -6px var(--em-glow), inset 0 1px 0 rgba(255,255,255,.5); animation: pulse 3.2s ease-in-out infinite; }
.nav .fab span.o svg { color: #03140d; width: 26px; height: 26px; filter: none; transform: none; }
@keyframes pulse { 0%, 100% { box-shadow: 0 12px 34px -6px var(--em-glow), 0 0 0 0 rgba(52,232,166,.35); } 50% { box-shadow: 0 12px 34px -6px var(--em-glow), 0 0 0 10px rgba(52,232,166,0); } }

/* ---------------------------------------------------------------- sheet, toast, loader */
.sheet-bg { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); animation: fade .3s both; }
.sheet { position: fixed; z-index: 41; left: 50%; bottom: 0; transform: translateX(-50%); width: min(var(--shell), 100vw); max-height: 88vh; overflow: auto;
  padding: 10px 18px 26px; border-radius: 28px 28px 0 0; background: linear-gradient(180deg, #111816, #0a0e0d); border: 1px solid var(--line-2); border-bottom: 0;
  animation: up .5s var(--ease) both; }
.sheet .grab { width: 44px; height: 5px; border-radius: 9px; background: var(--line-2); margin: 4px auto 14px; }
@keyframes up { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.toast { position: fixed; z-index: 60; top: 18px; left: 50%; transform: translateX(-50%); padding: 12px 18px; border-radius: 16px; background: rgba(16, 24, 21, .92);
  border: 1px solid rgba(52,232,166,.35); box-shadow: 0 16px 40px rgba(0,0,0,.5); font-size: 14px; animation: toastIn .45s var(--spring) both; max-width: 92vw; }
.toast.err { border-color: rgba(255,107,107,.45); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -14px) scale(.96); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.15); border-top-color: var(--em); animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.skel { border-radius: var(--r-lg); background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04)); background-size: 200% 100%; animation: sk 1.4s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty .big { font-size: 46px; margin-bottom: 6px; }

/* ---------------------------------------------------------------- splash & auth */
.splash { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: var(--bg); transition: opacity .7s var(--ease), visibility .7s; }
.splash.out { opacity: 0; visibility: hidden; }
.splash .mark { width: 92px; height: 92px; animation: mark 1.6s var(--ease) both; filter: drop-shadow(0 18px 50px var(--em-glow)); }
.splash .word { margin-top: 18px; font-weight: 800; font-size: 22px; letter-spacing: .02em; text-align: center; animation: rise .9s .35s var(--ease) both; }
.splash .word small { display: block; font-size: 11px; letter-spacing: .5em; color: var(--muted); font-weight: 500; margin-top: 2px; }
@keyframes mark { 0% { opacity: 0; transform: scale(.6) rotate(-12deg); filter: blur(10px); } 60% { opacity: 1; transform: scale(1.06) rotate(2deg); filter: blur(0); } 100% { transform: none; } }
.auth { min-height: calc(100vh - 60px); display: flex; flex-direction: column; justify-content: center; }
.auth .logo { width: 84px; margin: 0 auto 10px; display: block; filter: drop-shadow(0 18px 46px var(--em-glow)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.auth h1 { text-align: center; font-size: 28px; }
.auth .sub { text-align: center; }
.title-glow { background: linear-gradient(120deg, #fff 20%, #9ff6d2 50%, var(--gold) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: titleShift 8s ease-in-out infinite alternate; }
@keyframes titleShift { to { background-position: 100% 0; } }
.cred { border-radius: var(--r-xl); padding: 20px; background: linear-gradient(150deg, rgba(227,194,122,.16), rgba(52,232,166,.08)); border: 1px solid rgba(227,194,122,.35); }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(245,184,74,.08); border: 1px solid rgba(245,184,74,.25); font-size: 13.5px; color: #ffd9a0; }
.note.info { background: rgba(90,168,255,.08); border-color: rgba(90,168,255,.22); color: #b9d8ff; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: none; }
.tabs button { flex: none; height: 38px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; font-weight: 600; }
.tabs button.on { color: var(--text); border-color: rgba(52,232,166,.45); background: rgba(52,232,166,.1); }
.steps { counter-reset: s; }
.steps li { list-style: none; position: relative; padding: 2px 44px 14px 0; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; right: 0; top: 0; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--em); background: rgba(52,232,166,.1); border: 1px solid rgba(52,232,166,.25); }
.steps { padding: 0; margin: 0; }
.guide-cta { margin-top:12px;height:46px; }
.guide-body,.guide-help { line-height:1.9; }
.guide-body li { unicode-bidi:plaintext;text-align:right; }
.guide-body li b,.guide-body li span,.latin { unicode-bidi:isolate;direction:ltr;display:inline-block; }
.guide-help { margin-top:12px; }
.guide-help ol { margin:10px 0 0;padding-right:22px;color:var(--muted);font-size:13px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (min-width: 900px) { #app { padding-top: 34px; } }
@media (max-width: 430px) {
  .card { padding:14px; }
  .seg { overflow-x:auto;scrollbar-width:none; }
  .seg button { min-width:max-content;padding:0 10px; }
  .kv { align-items:flex-start; }
  .kv b { max-width:60%;overflow-wrap:anywhere; }
  .copy { padding:11px; }
  .copy .v.big { font-size:16px;letter-spacing:.035em; }
  .drop { width:100%;padding:14px 10px;overflow:hidden; }
  .drop img { display:block;width:100%;height:auto;max-height:240px;object-fit:contain; }
  #pbody .stack { overflow:hidden; }
  #pbody .note { overflow-wrap:anywhere; }
  .status-card { padding:13px; }
}
