/* ============================================================================
   Axura Shop — design system
   Palette: sky blue × silver × black · iOS-inspired premium surfaces
   Fonts: Inter (latin) → Hind Siliguri (bengali) via unicode-range fallback
   ========================================================================== */

@import url("../fonts/fonts.css");

:root {
  /* surfaces */
  --bg:            #04070C;
  --bg-2:          #070B12;
  --bg-3:          #0B111A;
  --surface:       rgba(255, 255, 255, .045);
  --surface-2:     rgba(255, 255, 255, .075);
  --surface-3:     rgba(255, 255, 255, .11);
  --border:        rgba(255, 255, 255, .085);
  --border-2:      rgba(255, 255, 255, .16);
  --border-sky:    rgba(56, 189, 248, .34);

  /* sky */
  --sky-100: #E0F2FE;
  --sky-200: #BAE6FD;
  --sky-300: #7DD3FC;
  --sky-400: #38BDF8;
  --sky-500: #0EA5E9;
  --sky-600: #0284C7;
  --sky-700: #0369A1;

  /* silver */
  --sil-50:  #FAFCFE;
  --sil-100: #EEF3F7;
  --sil-200: #D5DEE7;
  --sil-300: #B3C0CD;
  --sil-400: #8593A2;
  --sil-500: #63707E;
  --sil-600: #4A5560;

  /* semantic */
  --text:    #E9F0F7;
  --text-2:  #A3B1C0;
  --text-3:  #6C7A89;
  --ok:      #34D399;
  --warn:    #FBBF24;
  --bad:     #FB7185;
  --info:    #38BDF8;

  /* gradients */
  --grad-sky:   linear-gradient(135deg, #7DD3FC 0%, #38BDF8 42%, #0284C7 100%);
  --grad-sky-s: linear-gradient(135deg, #BAE6FD 0%, #38BDF8 100%);
  --grad-metal: linear-gradient(135deg, #FAFCFE 0%, #D5DEE7 38%, #8593A2 72%, #EEF3F7 100%);
  --grad-sheen: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,0) 62%);
  --grad-dark:  linear-gradient(180deg, #0B111A 0%, #04070C 100%);

  /* shadows */
  --sh-1: 0 1px 2px rgba(0,0,0,.5);
  --sh-2: 0 10px 26px -12px rgba(0,0,0,.7);
  --sh-3: 0 28px 64px -24px rgba(0,0,0,.8);
  --sh-glow: 0 12px 44px -14px rgba(56,189,248,.5);
  --sh-inset: inset 0 1px 0 rgba(255,255,255,.07);

  /* radii */
  --r-xs: 8px; --r-sm: 11px; --r-md: 15px; --r-lg: 20px; --r-xl: 28px; --r-full: 999px;

  /* spacing */
  --pad: 18px;
  --maxw: 1180px;

  /* motion */
  --ease: cubic-bezier(.22,.68,.32,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --nav-h: 64px;
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* NOTE: no global `scroll-behavior: smooth` — while a smooth scroll animates,
   the click target keeps moving and clicks can land on the wrong element
   (real risk on "অর্ডার কনফার্ম" / delete buttons). Opt in per-use instead. */
body {
  margin: 0;
  font-family: 'Inter', 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-feature-settings: "cv11", "ss01";
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }

/* Icon baseline: every inline SVG is stroke-based and inherits currentColor.
   `<use>` pulls the symbol into a shadow tree where fill/stroke inherit from
   the <use> element — so setting them here covers the whole sprite. */
svg {
  width: 1.15em; height: 1.15em;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex: 0 0 auto;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.28; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--sky-400); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(56,189,248,.3); color: #fff; }

/* scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.11); border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(56,189,248,.4); background-clip: content-box; }

/* ------------------------------------------------------------ background */
.bg-orbs { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bg-orbs::before, .bg-orbs::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
}
.bg-orbs::before { width: 620px; height: 620px; top: -220px; left: -160px; background: radial-gradient(circle, rgba(14,165,233,.5), transparent 68%); }
.bg-orbs::after  { width: 560px; height: 560px; bottom: -240px; right: -180px; background: radial-gradient(circle, rgba(125,211,252,.28), transparent 68%); }
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
}

/* ---------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.wrap-narrow { max-width: 620px; }
.page { padding: 22px 0 110px; }
.page-head { margin: 10px 0 22px; }
.page-head h1 { font-size: clamp(24px, 4.2vw, 34px); }
.page-head p { color: var(--text-2); font-size: 14.5px; margin-top: 6px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--sky-300);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--grad-sky); border-radius: 2px; }
.section { margin-top: 44px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.section-title h2 { font-size: 19px; }
.section-title .link { font-size: 13px; color: var(--sky-300); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.section-title .link:hover { color: var(--sky-200); }

/* ------------------------------------------------------------------ card */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.022));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2), var(--sh-inset);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  overflow: hidden;
}
.card-pad { padding: var(--pad); }
.card-hover { transition: transform .38s var(--ease-out), border-color .3s var(--ease), box-shadow .38s var(--ease-out); }
.card-hover:hover {
  transform: translateY(-4px);
  border-color: var(--border-sky);
  box-shadow: var(--sh-3), 0 0 0 1px rgba(56,189,248,.12), var(--sh-glow);
}
.card-sheen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--grad-sheen); opacity: .55;
}
.glass { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 650; letter-spacing: -.01em;
  border: 1px solid transparent; position: relative; overflow: hidden;
  transition: transform .18s var(--ease), filter .2s var(--ease), box-shadow .25s var(--ease), border-color .2s;
  white-space: nowrap; user-select: none;
}
.btn:active { transform: scale(.975); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn svg { width: 17px; height: 17px; flex: 0 0 auto; }

.btn-primary {
  background: var(--grad-sky); color: #04222F; font-weight: 750;
  box-shadow: 0 10px 26px -12px rgba(56,189,248,.65), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 14px 34px -12px rgba(56,189,248,.8), inset 0 1px 0 rgba(255,255,255,.45); }

.btn-silver {
  background: var(--grad-metal); color: #0B1016; font-weight: 700;
  box-shadow: 0 8px 22px -12px rgba(213,222,231,.55), inset 0 1px 0 rgba(255,255,255,.7);
}
.btn-silver:hover { filter: brightness(1.05); }

.btn-glass { background: var(--surface-2); border-color: var(--border-2); color: var(--text); }
.btn-glass:hover { background: var(--surface-3); border-color: var(--border-sky); }

.btn-ghost { color: var(--text-2); padding: 9px 12px; }
.btn-ghost:hover { color: var(--text); background: var(--surface); }

.btn-danger { background: rgba(251,113,133,.14); border-color: rgba(251,113,133,.35); color: #FDA4AF; }
.btn-danger:hover { background: rgba(251,113,133,.22); }

.btn-ok { background: rgba(52,211,153,.14); border-color: rgba(52,211,153,.35); color: #6EE7B7; }
.btn-ok:hover { background: rgba(52,211,153,.22); }

.btn-lg { padding: 14px 24px; font-size: 15px; border-radius: var(--r-md); }
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: var(--r-xs); }
.btn-sm svg { width: 14px; height: 14px; }
.btn-block { width: 100%; }
.btn-icon { padding: 9px; border-radius: var(--r-sm); }
.btn-icon svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- inputs */
.field { margin-bottom: 15px; }
.field > label, .label {
  display: block; font-size: 12.5px; font-weight: 650; color: var(--text-2);
  margin-bottom: 7px; letter-spacing: .01em;
}
.label .req { color: var(--sky-400); margin-left: 3px; }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text); font-size: 14.5px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  outline: none;
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--sky-500);
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 3px rgba(56,189,248,.16);
}
.textarea { min-height: 104px; resize: vertical; line-height: 1.6; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A3B1C0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px;
}
.select option { background: #0B111A; color: var(--text); }
.input-err { border-color: rgba(251,113,133,.6) !important; box-shadow: 0 0 0 3px rgba(251,113,133,.12) !important; }
.hint { font-size: 12px; color: var(--text-3); margin-top: 6px; }
/* Error text is absolutely positioned OUT of the document flow.
   If it sat inline, showing/hiding it would resize the form and shift elements
   between the user's mousedown and mouseup — the click would land on the wrong
   element (e.g. the terms checkbox would silently not tick). */
.field { position: relative; margin-bottom: 30px; }
.err-text {
  position: absolute; left: 0; right: 0; top: 100%; margin-top: 3px;
  font-size: 12.5px; line-height: 1.35; color: var(--bad);
  opacity: 0; transition: opacity .18s var(--ease); pointer-events: none;
}
.err-text.show { opacity: 1; }
.input-group { position: relative; }
.input-group .addon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); display: flex; pointer-events: none;
}
.input-group .addon svg { width: 17px; height: 17px; }
.input-group .input { padding-left: 40px; }
.input-group .suffix {
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  font-size: 13px; color: var(--text-3); font-weight: 600; pointer-events: none;
}

/* password strength */
.pw-meter { display: flex; gap: 4px; margin-top: 8px; }
.pw-meter i { flex: 1; height: 3px; border-radius: 3px; background: var(--surface-3); transition: background .3s; }
.pw-meter[data-score="1"] i:nth-child(1) { background: #FB7185; }
.pw-meter[data-score="2"] i:nth-child(-n+2) { background: #FBBF24; }
.pw-meter[data-score="3"] i:nth-child(-n+3) { background: #7DD3FC; }
.pw-meter[data-score="4"] i:nth-child(-n+4) { background: #38BDF8; }
.pw-meter[data-score="5"] i { background: #34D399; }

/* ---------------------------------------------------------------- badges */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  border: 1px solid transparent; white-space: nowrap;
}
.badge svg { width: 12px; height: 12px; }
.badge-on    { background: rgba(52,211,153,.13); color: #6EE7B7; border-color: rgba(52,211,153,.28); }
.badge-off   { background: rgba(251,113,133,.13); color: #FDA4AF; border-color: rgba(251,113,133,.28); }
.badge-warn  { background: rgba(251,191,36,.13); color: #FCD34D; border-color: rgba(251,191,36,.28); }
.badge-info  { background: rgba(56,189,248,.13); color: #7DD3FC; border-color: rgba(56,189,248,.28); }
.badge-muted { background: var(--surface-2); color: var(--text-3); border-color: var(--border); }
.badge-silver{ background: rgba(213,222,231,.12); color: var(--sil-200); border-color: rgba(213,222,231,.26); }
.badge-grad  { background: var(--grad-sky); color: #04222F; font-weight: 750; }

/* iOS segmented control */
.segmented {
  display: inline-flex; padding: 3px; gap: 3px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); position: relative;
}
.segmented button {
  padding: 8px 16px; border-radius: 9px; font-size: 13.5px; font-weight: 600;
  color: var(--text-2); transition: color .2s, background .25s var(--ease);
  display: inline-flex; align-items: center; gap: 7px;
}
.segmented button svg { width: 15px; height: 15px; }
.segmented button[aria-selected="true"] { background: var(--surface-3); color: var(--text); box-shadow: var(--sh-1); }

/* iOS switch */
.switch { position: relative; display: inline-block; width: 48px; height: 29px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute; inset: 0; cursor: pointer; border-radius: 99px;
  background: rgba(255,255,255,.14); transition: background .3s var(--ease);
  border: 1px solid var(--border);
}
.switch .track::before {
  content: ""; position: absolute; height: 23px; width: 23px; left: 2px; bottom: 2px;
  background: #fff; border-radius: 50%; transition: transform .3s var(--ease);
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.switch input:checked + .track { background: var(--sky-500); border-color: transparent; }
.switch input:checked + .track::before { transform: translateX(19px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3px rgba(56,189,248,.35); }

/* radio card (service options) */
.opt {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 15px; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; transition: all .22s var(--ease);
}
.opt:hover { border-color: var(--border-2); background: var(--surface-2); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .radio {
  width: 19px; height: 19px; border-radius: 50%; flex: 0 0 auto;
  border: 1.6px solid var(--text-3); display: grid; place-items: center;
  transition: all .2s var(--ease);
}
.opt .radio::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #04222F; transform: scale(0); transition: transform .2s var(--ease-out); }
.opt:has(input:checked) { border-color: var(--sky-500); background: rgba(56,189,248,.08); box-shadow: 0 0 0 1px rgba(56,189,248,.25); }
.opt:has(input:checked) .radio { border-color: var(--sky-400); background: var(--sky-400); }
.opt:has(input:checked) .radio::after { transform: scale(1); }
.opt .opt-label { flex: 1; font-size: 14px; font-weight: 600; }
.opt .opt-price { font-size: 14px; font-weight: 750; color: var(--sky-300); }

/* ------------------------------------------------------------------ nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(4,7,12,.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; flex: 0 0 auto;
  background: var(--grad-sky); display: grid; place-items: center;
  box-shadow: 0 8px 20px -8px rgba(56,189,248,.7), inset 0 1px 0 rgba(255,255,255,.5);
}
.brand-mark svg { width: 21px; height: 21px; color: #04222F; }
.brand-text { min-width: 0; }
.brand-name { font-size: 15.5px; font-weight: 750; letter-spacing: -.02em; line-height: 1.2; }
.brand-sub {
  font-size: 10.5px; color: var(--text-3); letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px;
}
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-link {
  padding: 8px 13px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600;
  color: var(--text-2); transition: all .2s var(--ease); display: inline-flex; align-items: center; gap: 7px;
}
.nav-link svg { width: 16px; height: 16px; }
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link.active { color: var(--sky-300); background: rgba(56,189,248,.1); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 9px; }

.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13.5px; font-weight: 750; color: #04222F;
  background: var(--grad-metal); flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.3);
}
.avatar-lg { width: 62px; height: 62px; font-size: 22px; }

/* balance chip */
.balance-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: var(--r-full);
  background: linear-gradient(135deg, rgba(56,189,248,.16), rgba(2,132,199,.08));
  border: 1px solid var(--border-sky);
  font-size: 13px; font-weight: 700;
}
.balance-chip svg { width: 15px; height: 15px; color: var(--sky-300); }
.balance-chip .amt { color: var(--sky-200); font-variant-numeric: tabular-nums; }

/* bottom tab bar (mobile) */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: none;
  background: rgba(6,10,16,.86);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid var(--border);
  padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
}
.tabbar-inner { display: grid; grid-template-columns: repeat(5, 1fr); max-width: 520px; margin: 0 auto; }
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 7px 2px; border-radius: var(--r-sm); font-size: 10px; font-weight: 650;
  color: var(--text-3); transition: color .2s;
}
.tab svg { width: 21px; height: 21px; }
.tab.active { color: var(--sky-400); }
.tab.active svg { filter: drop-shadow(0 0 8px rgba(56,189,248,.5)); }

/* ---------------------------------------------------------------- modal */
.modal-back {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(2,4,8,.72); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 18px; overflow-y: auto;
}
.modal-back.open { display: flex; align-items: center; justify-content: center; animation: fade .25s var(--ease); }
.modal {
  width: 100%; max-width: 560px;
  background: linear-gradient(180deg, #101822, #070B12);
  border: 1px solid var(--border-2); border-radius: var(--r-xl);
  box-shadow: var(--sh-3);
  animation: pop .32s var(--ease-out);
  max-height: 88dvh; display: flex; flex-direction: column; overflow: hidden;
}
.modal-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; gap: 12px; }
.modal-head h3 { font-size: 17px; }
.modal-head p { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-foot { padding: 14px 20px 18px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.97) } to { opacity: 1; transform: none } }
@keyframes slideUp { from { transform: translateY(24px); opacity: 0 } to { transform: none; opacity: 1 } }

/* ---------------------------------------------------------------- toast */
.toasts { position: fixed; top: calc(var(--nav-h) + 12px); right: 16px; z-index: 300; display: grid; gap: 9px; max-width: 340px; }
.toast {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 12px 14px; border-radius: var(--r-md);
  background: rgba(16,24,34,.94); border: 1px solid var(--border-2);
  box-shadow: var(--sh-3); backdrop-filter: blur(16px);
  animation: slideUp .3s var(--ease-out); font-size: 13.5px;
}
.toast svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; }
.toast.ok  { border-color: rgba(52,211,153,.4); }  .toast.ok svg  { color: var(--ok); }
.toast.err { border-color: rgba(251,113,133,.4); } .toast.err svg { color: var(--bad); }
.toast.info{ border-color: rgba(56,189,248,.4); }  .toast.info svg{ color: var(--sky-400); }
.toast.warn{ border-color: rgba(251,191,36,.4); }  .toast.warn svg{ color: var(--warn); }
.toast.hide { animation: fadeOut .25s var(--ease) forwards; }
@keyframes fadeOut { to { opacity: 0; transform: translateX(20px) } }

/* ---------------------------------------------------------------- table */
.tbl { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); }
.tbl table { min-width: 620px; }
.tbl th {
  text-align: left; padding: 11px 14px; font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-3);
  background: rgba(255,255,255,.03); border-bottom: 1px solid var(--border); white-space: nowrap;
}
.tbl td { padding: 11px 14px; font-size: 13.5px; border-bottom: 1px solid rgba(255,255,255,.045); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .18s; }
.tbl tbody tr:hover { background: rgba(255,255,255,.03); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; }
.t-right { text-align: right; }
.t-center { text-align: center; }

/* --------------------------------------------------------------- states */
.empty { text-align: center; padding: 46px 20px; color: var(--text-3); }
.empty .ico {
  width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border);
  display: grid; place-items: center;
}
.empty .ico svg { width: 26px; height: 26px; color: var(--text-3); }
.empty h4 { font-size: 15px; color: var(--text-2); margin-bottom: 5px; }
.empty p { font-size: 13px; }

.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.09) 37%, rgba(255,255,255,.04) 63%);
  background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r-sm);
}
@keyframes shimmer { 0% { background-position: 100% 50% } 100% { background-position: 0 50% } }

.spinner {
  width: 17px; height: 17px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.22); border-top-color: var(--sky-300);
  animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg) } }

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* --------------------------------------------------------------- utility */
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.col { display: flex; flex-direction: column; gap: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.muted { color: var(--text-3); }
.dim { color: var(--text-2); }
.small { font-size: 12.5px; }
.strong { font-weight: 700; }
.center { text-align: center; }
.right { text-align: right; }
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:34px}
.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}
.hidden { display: none !important; }
.price { font-weight: 800; color: var(--sky-300); font-variant-numeric: tabular-nums; }
.price-lg { font-size: 26px; }

.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 13.5px; }
.kv:last-child { border-bottom: 0; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; font-weight: 650; text-align: right; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .brand-sub { display: none; }
  .brand-name { font-size: 14.5px; }
  .nav-right .btn { padding: 7px 11px; font-size: 12.5px; }
  .nav-right .btn svg { display: none; }
  .nav-right { gap: 6px; }
  .balance-chip { padding: 6px 10px; font-size: 12px; }
  .tabbar { display: block; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .page { padding-bottom: 96px; }
  .toasts { left: 12px; right: 12px; max-width: none; }
}
