/* ============================================================
   مدیریت جرثقیل — Aurora Glass Design System v2
   طراحی حرفه‌ای شیشه‌ای | RTL | Dark/Light | Telegram Mini App
   ============================================================ */

@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-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("/fonts/Vazirmatn-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("/fonts/Vazirmatn-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --acc: #ffb03a;
  --acc2: #ff8a2a;
  --teal: #2fd8c0;
  --r-xl: 30px; --r-lg: 26px; --r-md: 20px; --r-sm: 14px;
  --nav-h: 58px;
  --ease: cubic-bezier(.22,.8,.28,1);
}

/* ---------- تم تیره — Aurora Night ---------- */
body.theme-dark {
  --bg0: #070a12; --bg1: #0d1424;
  --txt: #f4f7fc; --txt2: #9aa6bd; --txt3: #5d6878;
  --card: rgba(255,255,255,.05);
  --card-solid: #141c2f;
  --brd: rgba(255,255,255,.09);
  --brd-strong: rgba(255,255,255,.17);
  --chip: rgba(255,255,255,.075);
  --shadow: 0 24px 52px -26px rgba(0,0,0,.7);
  --input: rgba(255,255,255,.055);
  --acc-txt: #1d1204;
  --ok: #3ddc84; --err: #ff6b6b; --warn: #ffc94d;
  /* شیشه نورانی */
  --glass-fill: linear-gradient(168deg, rgba(30,39,62,.66), rgba(16,22,38,.5) 58%, rgba(22,30,50,.58));
  --glass-edge: linear-gradient(155deg, rgba(255,255,255,.18), rgba(255,255,255,.05) 34%, rgba(47,216,192,.12) 74%, rgba(255,176,58,.18));
  --topbar-bg: linear-gradient(180deg, rgba(7,10,18,.88) 40%, rgba(7,10,18,.42) 78%, transparent);
  --sheet-bg: rgba(19,26,44,.94);
  --ov-bg: rgba(4,6,12,.6);
  --amber-glow: rgba(255,159,44,.16);
  --teal-glow: rgba(47,216,192,.13);
}

/* ---------- تم روشن — Porcelain ---------- */
body.theme-light {
  --bg0: #eef1f8; --bg1: #e3e8f3;
  --txt: #17202f; --txt2: #5a6478; --txt3: #8b94a8;
  --card: rgba(255,255,255,.72);
  --card-solid: #ffffff;
  --brd: rgba(23,32,58,.09);
  --brd-strong: rgba(23,32,58,.17);
  --chip: rgba(23,32,58,.055);
  --shadow: 0 18px 44px -22px rgba(28,40,80,.28);
  --input: rgba(255,255,255,.8);
  --acc-txt: #241300;
  --ok: #16a34a; --err: #dc2626; --warn: #d97706;
  --glass-fill: linear-gradient(168deg, rgba(255,255,255,.86), rgba(255,255,255,.62) 60%, rgba(255,255,255,.78));
  --glass-edge: linear-gradient(155deg, rgba(255,255,255,.95), rgba(23,32,58,.1) 40%, rgba(15,148,134,.14) 76%, rgba(255,159,44,.22));
  --topbar-bg: linear-gradient(180deg, rgba(238,241,248,.9) 40%, rgba(238,241,248,.45) 78%, transparent);
  --sheet-bg: rgba(255,255,255,.97);
  --ov-bg: rgba(23,32,58,.32);
  --amber-glow: rgba(255,159,44,.14);
  --teal-glow: rgba(15,148,134,.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { height: 100%; }
body {
  font-family: "Vazirmatn", "Tahoma", sans-serif;
  background: var(--bg0);
  color: var(--txt);
  min-height: 100vh;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  user-select: none;
  transition: background .3s ease, color .3s ease;
}
input, textarea, select, button { font-family: inherit; }
input, textarea { user-select: text; }
::selection { background: rgba(255,159,44,.3); }
::-webkit-scrollbar { width: 0; height: 0; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 8px; }

/* ---------- پس‌زمینه Aurora متحرک ---------- */
#bg-glow {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden;
  background: linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 100%);
}
#bg-glow::before, #bg-glow::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .8;
  will-change: transform;
}
#bg-glow::before {
  width: 68vmax; height: 68vmax; top: -30vmax; right: -22vmax;
  background: radial-gradient(circle at 50% 50%, rgba(255,150,40,.2), rgba(255,120,30,.06) 46%, transparent 68%);
  animation: orb1 38s ease-in-out infinite alternate;
}
#bg-glow::after {
  width: 56vmax; height: 56vmax; bottom: -26vmax; left: -20vmax;
  background: radial-gradient(circle at 50% 50%, rgba(47,216,192,.14), rgba(47,216,192,.04) 48%, transparent 70%);
  animation: orb2 46s ease-in-out infinite alternate;
}
@keyframes orb1 { from { transform: translate(0,0) scale(1); } to { transform: translate(-7vmax, 6vmax) scale(1.14); } }
@keyframes orb2 { from { transform: translate(0,0) scale(1.08); } to { transform: translate(6vmax, -5vmax) scale(.96); } }
#bg-glow .grid {
  position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 42%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 42%);
}
body.theme-light #bg-glow::before { opacity: .55; }
body.theme-light #bg-glow::after { opacity: .5; }
body.theme-light #bg-glow .grid { background-image: radial-gradient(rgba(23,32,58,.07) 1px, transparent 1.4px); opacity: .35; }

/* ---------- Splash ---------- */
.splash {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--bg0), var(--bg1));
  transition: opacity .5s ease, visibility .5s;
}
.splash.done { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-inner { text-align: center; padding: 24px; animation: splashIn .7s var(--ease) both; }
@keyframes splashIn { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
.splash-logo {
  width: 96px; height: 96px; margin: 0 auto 22px; font-size: 46px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 30px; position: relative;
  background:
    linear-gradient(168deg, rgba(255,176,58,.24), rgba(255,138,42,.1)) padding-box,
    linear-gradient(155deg, rgba(255,200,110,.7), rgba(255,138,42,.16) 60%, rgba(47,216,192,.35)) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 22px 48px -14px rgba(255,138,42,.45), inset 0 1px 0 rgba(255,255,255,.3);
  animation: float 3s ease-in-out infinite;
}
.splash-logo::after {
  content: ""; position: absolute; inset: -14px; border-radius: 40px; z-index: -1;
  background: radial-gradient(circle, rgba(255,159,44,.22), transparent 70%);
  animation: halo 2.6s ease-in-out infinite;
}
@keyframes halo { 0%,100% { opacity: .5; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.splash-title {
  font-size: 27px; font-weight: 800;
  background: linear-gradient(120deg, var(--txt) 30%, var(--acc) 75%, var(--acc2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.splash-sub { color: var(--txt2); font-size: 13.5px; margin-top: 9px; }
.splash-bar { width: 200px; height: 5px; border-radius: 99px; background: var(--chip); margin: 32px auto 0; overflow: hidden; }
.splash-bar-fill { height: 100%; width: 40%; border-radius: 99px; background: linear-gradient(90deg, var(--acc), var(--acc2)); animation: slide 1.15s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(120%); } 100% { transform: translateX(-320%); } }
.splash-status { margin-top: 15px; font-size: 12.5px; color: var(--txt2); min-height: 18px; }
.splash-actions { margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 11px; animation: splashIn .5s var(--ease) both; }
.splash-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-width: 230px; padding: 14px 24px; border-radius: 16px; border: none;
  font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, opacity .15s;
}
.splash-btn.primary {
  color: var(--acc-txt);
  background: linear-gradient(135deg, #ffc45e, var(--acc) 42%, var(--acc2));
  box-shadow: 0 14px 34px -10px rgba(255,138,42,.55), inset 0 1px 0 rgba(255,255,255,.4);
}
.splash-btn.ghost { color: var(--txt); background: var(--chip); border: 1px solid var(--brd); }
.splash-btn:active { transform: scale(.96); }

/* ---------- Layout ---------- */
.hidden { display: none !important; }
.app {
  max-width: 560px; margin: 0 auto; position: relative;
  min-height: calc(var(--vh, 100vh));
  padding-bottom: calc(118px + env(safe-area-inset-bottom));
}
.view { padding: 6px 16px 0; animation: viewIn .38s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(16px) scale(.99); } to { opacity: 1; transform: none; } }

.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 8px;
  padding: calc(10px + env(safe-area-inset-top)) 14px 12px;
  max-width: 560px; margin: 0 auto;
  background: var(--topbar-bg);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
}
.topbar-title { flex: 1; text-align: center; font-size: 16.5px; font-weight: 800; letter-spacing: -.2px; }
.icon-btn {
  width: 41px; height: 41px; border-radius: 14px; border: 1px solid var(--brd);
  background: var(--card); color: var(--txt); font-size: 17px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 20px -10px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.07);
  transition: transform .15s var(--ease), background .2s;
}
.icon-btn:active { transform: scale(.88); }
.icon-btn.ghost { visibility: hidden; }

/* ---------- کارت شیشه‌ای نورانی ---------- */
.glass {
  border: 1px solid transparent;
  background: var(--glass-fill) padding-box, var(--glass-edge) border-box;
  border-radius: var(--r-lg);
  backdrop-filter: blur(24px) saturate(1.45);
  -webkit-backdrop-filter: blur(24px) saturate(1.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), var(--shadow);
}
body.theme-light .glass { box-shadow: inset 0 1px 0 rgba(255,255,255,.85), var(--shadow); }
.card { padding: 18px; }

.stagger > * { animation: cardIn .55s var(--ease) both; }
.stagger > *:nth-child(1) { animation-delay: .02s; } .stagger > *:nth-child(2) { animation-delay: .07s; }
.stagger > *:nth-child(3) { animation-delay: .12s; } .stagger > *:nth-child(4) { animation-delay: .17s; }
.stagger > *:nth-child(5) { animation-delay: .22s; } .stagger > *:nth-child(6) { animation-delay: .27s; }
.stagger > *:nth-child(7) { animation-delay: .32s; } .stagger > *:nth-child(8) { animation-delay: .37s; }
.stagger > *:nth-child(9) { animation-delay: .42s; } .stagger > *:nth-child(10) { animation-delay: .47s; }
.stagger > *:nth-child(11) { animation-delay: .52s; } .stagger > *:nth-child(12) { animation-delay: .57s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }

.section-title {
  font-size: 14px; font-weight: 700; color: var(--txt2);
  margin: 26px 4px 13px; display: flex; align-items: center; gap: 8px;
}
.section-title .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  box-shadow: 0 0 10px rgba(255,159,44,.7);
}

/* ---------- دکمه‌ها ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; padding: 15.5px 18px; border: none; border-radius: var(--r-md);
  font-size: 15.5px; font-weight: 800; cursor: pointer; color: var(--acc-txt);
  background: linear-gradient(135deg, #ffc45e, var(--acc) 45%, var(--acc2));
  background-size: 150% 150%; background-position: 0% 0%;
  box-shadow: 0 14px 34px -12px rgba(255,138,42,.6), inset 0 1px 0 rgba(255,255,255,.42);
  transition: transform .16s var(--ease), box-shadow .22s ease, filter .2s, background-position .3s;
}
.btn:active { transform: scale(.965) translateY(1px); background-position: 90% 90%; box-shadow: 0 7px 20px -9px rgba(255,138,42,.55), inset 0 1px 0 rgba(255,255,255,.3); }
.btn.ghost {
  background: var(--chip); color: var(--txt); border: 1px solid var(--brd);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.btn.ghost:active { background: var(--brd); }
.btn.danger { background: linear-gradient(135deg, #ff7b7b, #e63946); color: #fff; box-shadow: 0 14px 32px -12px rgba(230,57,70,.55), inset 0 1px 0 rgba(255,255,255,.25); }
.btn.sm { padding: 11px 14px; font-size: 13.5px; border-radius: var(--r-sm); width: auto; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.fab {
  position: fixed; z-index: 50; bottom: calc(28px + env(safe-area-inset-bottom)); left: 50%;
  transform: translateX(-50%);
  width: 64px; height: 64px; border-radius: 23px; border: 1px solid rgba(255,210,130,.5);
  color: var(--acc-txt); cursor: pointer;
  background: linear-gradient(135deg, #ffc964, var(--acc) 45%, var(--acc2));
  box-shadow: 0 20px 48px -12px rgba(255,138,42,.68), inset 0 1.5px 0 rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s var(--ease), box-shadow .25s;
}
.fab::before {
  content: ""; position: absolute; inset: -7px; border-radius: 28px; z-index: -1;
  background: radial-gradient(circle, rgba(255,159,44,.35), transparent 70%);
  animation: fabPulse 2.8s ease-in-out infinite;
}
@keyframes fabPulse { 0%,100% { opacity: .45; transform: scale(.94); } 50% { opacity: .9; transform: scale(1.07); } }
.fab:active { transform: translateX(-50%) scale(.86) rotate(90deg); }
.fab.hidden { display: none; }

/* ---------- چیپ‌ها ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  padding: 10px 17px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
  background: var(--chip); color: var(--txt2); border: 1px solid var(--brd);
  cursor: pointer; transition: all .2s var(--ease);
}
.chip:active { transform: scale(.93); }
.chip.on {
  background: linear-gradient(135deg, var(--acc), var(--acc2)); color: var(--acc-txt);
  border-color: transparent; font-weight: 800;
  box-shadow: 0 10px 24px -9px rgba(255,138,42,.6), inset 0 1px 0 rgba(255,255,255,.35);
}
.chip .x { margin-right: 7px; opacity: .7; }

/* ---------- ورودی‌ها ---------- */
.field { margin-bottom: 16px; }
.field > label { display: block; font-size: 12.5px; font-weight: 700; color: var(--txt2); margin: 0 4px 8px; }
.inp {
  width: 100%; padding: 14.5px 16px; border-radius: var(--r-sm);
  border: 1.5px solid var(--brd); background: var(--input); color: var(--txt);
  font-size: 15px; outline: none; transition: border-color .2s, box-shadow .25s, background .2s;
  -webkit-appearance: none; appearance: none;
}
.inp::placeholder { color: var(--txt3); }
.inp:focus {
  border-color: var(--acc); background: var(--input);
  box-shadow: 0 0 0 4px rgba(255,159,44,.13), 0 8px 24px -12px rgba(255,138,42,.35);
}
textarea.inp { resize: none; min-height: 96px; line-height: 1.9; }
select.inp { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2398a2b8' stroke-width='2.6' stroke-linecap='round'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: left 14px center; padding-left: 40px; }
.seg { display: flex; background: var(--chip); border: 1px solid var(--brd); border-radius: var(--r-sm); padding: 4px; gap: 4px; }
.seg > button { flex: 1; padding: 10.5px 8px; border: none; border-radius: 11px; background: transparent; color: var(--txt2); font-size: 13.5px; font-weight: 700; cursor: pointer; transition: all .22s var(--ease); }
.seg > button.on {
  background: linear-gradient(135deg, var(--acc), var(--acc2)); color: var(--acc-txt);
  box-shadow: 0 8px 20px -8px rgba(255,138,42,.55), inset 0 1px 0 rgba(255,255,255,.3);
}
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button {
  width: 47px; height: 47px; border-radius: 15px; border: 1px solid var(--brd);
  background: var(--chip); color: var(--txt); font-size: 22px; font-weight: 700;
  cursor: pointer; transition: transform .14s var(--ease), background .2s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.stepper button:active { transform: scale(.86); background: var(--brd); }
.stepper .val { flex: 1; text-align: center; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- هیرو داشبورد ---------- */
.hero { padding: 18px 4px 4px; }
.hero-row { display: flex; align-items: center; gap: 13px; }
.avatar-xl {
  width: 54px; height: 54px; border-radius: 19px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 23px; font-weight: 800; color: var(--acc-txt);
  background:
    linear-gradient(135deg, #ffc45e, var(--acc2)) padding-box,
    linear-gradient(155deg, rgba(255,225,160,.9), rgba(255,138,42,.5)) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 14px 30px -10px rgba(255,138,42,.55), inset 0 1.5px 0 rgba(255,255,255,.5);
}
.hero-txt { flex: 1; min-width: 0; }
.hello { font-size: 12.5px; color: var(--txt2); font-weight: 500; }
.hello-name {
  font-size: 20px; font-weight: 800; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero-date {
  display: flex; flex-direction: column; align-items: center; gap: 1px; flex-shrink: 0;
  padding: 9px 15px; border-radius: 16px;
  background: var(--chip); border: 1px solid var(--brd);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.hero-date b { font-size: 12.5px; color: var(--acc); font-weight: 800; }
.hero-date span { font-size: 10.5px; color: var(--txt2); font-weight: 600; }

/* ---------- آمار ---------- */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.stat-grid .wide { grid-column: 1 / -1; }
.stat { padding: 17px; position: relative; overflow: hidden; }
.stat .ic {
  width: 43px; height: 43px; border-radius: 15px; display: flex; align-items: center; justify-content: center;
  font-size: 21px; margin-bottom: 13px;
  background: linear-gradient(135deg, rgba(255,159,44,.2), rgba(255,138,42,.07));
  border: 1px solid rgba(255,159,44,.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.stat.t .ic {
  background: linear-gradient(135deg, rgba(47,216,192,.18), rgba(47,216,192,.06));
  border-color: rgba(47,216,192,.24);
}
.stat .lbl { font-size: 12px; color: var(--txt2); font-weight: 600; }
.stat .val { font-size: 24px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .val small { font-size: 12px; font-weight: 500; color: var(--txt2); margin-right: 4px; }
.stat .val.sm { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat::after {
  content: ""; position: absolute; inset: auto -34% -58% auto; width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, var(--amber-glow), transparent 68%); pointer-events: none;
}
.stat.t::after { background: radial-gradient(circle, var(--teal-glow), transparent 68%); }

/* کارت خلاصه بزرگ */
.stat.sum { padding: 19px; }
.stat .sum-top { display: flex; align-items: center; gap: 12px; }
.stat .sum-top .ic { margin-bottom: 0; }
.stat .val.big {
  font-size: 42px; letter-spacing: -1px; margin: 12px 0 10px; line-height: 1.1;
  background: linear-gradient(120deg, #ffd27a, var(--acc) 40%, var(--acc2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .val.big small {
  font-size: 15px; font-weight: 700; margin-right: 6px;
  background: none; -webkit-text-fill-color: initial;
  -webkit-background-clip: initial; background-clip: initial; color: var(--txt2);
}
.sum-chips { display: flex; gap: 7px; flex-wrap: wrap; }

/* ---------- دسترسی سریع ---------- */
.qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qa {
  display: flex; flex-direction: column; align-items: flex-start; gap: 13px;
  padding: 17px; cursor: pointer; text-align: right; position: relative; overflow: hidden;
  transition: transform .18s var(--ease);
}
.qa:active { transform: scale(.955); }
.qa .ic {
  width: 47px; height: 47px; border-radius: 16px; font-size: 23px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255,159,44,.22), rgba(255,138,42,.07));
  border: 1px solid rgba(255,159,44,.26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}
.qa.t .ic {
  background: linear-gradient(135deg, rgba(47,216,192,.2), rgba(47,216,192,.06));
  border-color: rgba(47,216,192,.26);
}
.qa b { font-size: 14.5px; font-weight: 800; }
.qa span { font-size: 11.5px; color: var(--txt2); margin-top: 3px; display: block; }
.qa .go {
  position: absolute; top: 15px; left: 14px; width: 24px; height: 24px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--txt3); background: var(--chip); border: 1px solid var(--brd);
}

/* ---------- لیست عملیات ---------- */
.recent-list { display: flex; flex-direction: column; gap: 10px; }
.op-card { padding: 15px 16px; cursor: pointer; transition: transform .18s var(--ease); }
.op-card:active { transform: scale(.97); }
.op-top { display: flex; align-items: center; gap: 11px; }
.op-badge {
  min-width: 47px; height: 47px; padding: 0 9px; border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255,159,44,.2), rgba(255,138,42,.06));
  border: 1px solid rgba(255,159,44,.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.op-badge b { font-size: 14.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.op-badge span { font-size: 9px; color: var(--txt2); }
.op-title { flex: 1; min-width: 0; }
.op-title b { display: block; font-size: 14.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-title span { font-size: 11.5px; color: var(--txt2); }
.op-amount { text-align: left; }
.op-amount b {
  font-size: 15.5px; font-weight: 800; white-space: nowrap; display: block;
  background: linear-gradient(120deg, var(--acc), var(--acc2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.op-amount span { font-size: 10.5px; color: var(--txt2); }
.op-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag {
  font-size: 10.5px; padding: 5.5px 11px; border-radius: 9px;
  background: var(--chip); color: var(--txt2); border: 1px solid var(--brd); font-weight: 600;
}
.tag.acc { color: var(--acc); border-color: rgba(255,159,44,.28); background: rgba(255,159,44,.09); }
.tag.teal { color: var(--teal); border-color: rgba(47,216,192,.28); background: rgba(47,216,192,.09); }

/* ---------- جزئیات ---------- */
.detail-hero { padding: 24px 18px 18px; text-align: center; }
.detail-hero .big { font-size: 32px; font-weight: 800; letter-spacing: -.6px; }
.detail-hero .big small { font-size: 14px; color: var(--txt2); font-weight: 500; }
.detail-hero .sub { color: var(--txt2); font-size: 13px; margin-top: 7px; }
.kv-list { display: flex; flex-direction: column; }
.kv { display: flex; align-items: flex-start; gap: 12px; padding: 13px 2px; border-bottom: 1px dashed var(--brd); }
.kv:last-child { border-bottom: none; }
.kv .k {
  width: 35px; height: 35px; border-radius: 12px;
  background: var(--chip); border: 1px solid var(--brd);
  display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0;
}
.kv .v { flex: 1; min-width: 0; }
.kv .v label { display: block; font-size: 10.5px; color: var(--txt3); font-weight: 600; }
.kv .v div { font-size: 14px; font-weight: 700; margin-top: 3px; word-break: break-word; }
.kv .v div.empty { color: var(--txt3); font-weight: 400; }
.photos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.photos-grid img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 15px;
  border: 1px solid var(--brd); cursor: pointer;
  transition: transform .2s var(--ease);
}
.photos-grid img:active { transform: scale(.94); }

/* ---------- بات‌شیت / مودال ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 100; background: var(--ov-bg);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .3s ease;
  display: flex; align-items: flex-end; justify-content: center;
}
.overlay.show { opacity: 1; }
.overlay.center { align-items: center; padding: 24px; }
.sheet {
  width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--sheet-bg);
  border: 1px solid var(--brd-strong); border-bottom: none;
  border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 10px 18px calc(24px + env(safe-area-inset-bottom));
  box-shadow: 0 -26px 70px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08);
  transform: translateY(100%); transition: transform .4s var(--ease);
  -webkit-overflow-scrolling: touch;
}
.overlay.show .sheet { transform: translateY(0); }
.overlay.center .sheet { border-radius: var(--r-xl); border-bottom: 1px solid var(--brd-strong); transform: translateY(26px) scale(.95); opacity: 0; }
.overlay.center.show .sheet { transform: none; opacity: 1; }
.grabber { width: 46px; height: 5px; border-radius: 99px; background: var(--brd-strong); margin: 6px auto 16px; }
.sheet-title { font-size: 17.5px; font-weight: 800; margin-bottom: 5px; }
.sheet-sub { font-size: 12.5px; color: var(--txt2); margin-bottom: 17px; line-height: 1.9; }

/* ---------- Toast ---------- */
.toasts { position: fixed; top: calc(14px + env(safe-area-inset-top)); left: 0; right: 0; z-index: 300; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast {
  max-width: 480px; width: fit-content; padding: 10px 18px 10px 12px; border-radius: 17px;
  background: var(--sheet-bg); border: 1px solid var(--brd-strong); color: var(--txt);
  font-size: 13.5px; font-weight: 700; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px;
  animation: toastIn .4s var(--ease);
}
.toast .t-ic {
  width: 27px; height: 27px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 13.5px;
  background: rgba(61,220,132,.15); color: var(--ok);
}
.toast.out { animation: toastOut .3s ease forwards; }
.toast.ok { border-color: rgba(61,220,132,.42); }
.toast.err { border-color: rgba(255,107,107,.42); }
.toast.err .t-ic { background: rgba(255,107,107,.15); color: var(--err); }
.toast.info .t-ic { background: rgba(122,140,255,.15); color: #7c8cff; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-18px) scale(.93); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-14px) scale(.95); } }

/* ---------- Skeleton و حالت خالی ---------- */
.skel {
  border-radius: var(--r-lg); position: relative; overflow: hidden;
  background: linear-gradient(100deg, var(--chip) 40%, var(--brd) 50%, var(--chip) 60%);
  background-size: 200% 100%; animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 42px 20px; border-style: dashed; border-width: 1.5px; }
.empty .e-ic {
  width: 74px; height: 74px; margin: 0 auto 16px; font-size: 36px;
  display: flex; align-items: center; justify-content: center; border-radius: 26px;
  background: var(--chip); border: 1px solid var(--brd);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}
.empty b { display: block; font-size: 15.5px; margin-bottom: 7px; }
.empty p { font-size: 12.5px; color: var(--txt2); line-height: 2; }

/* ---------- موفقیت ---------- */
.success-wrap { text-align: center; padding: 34px 20px 20px; }
.check-ring {
  width: 96px; height: 96px; margin: 0 auto 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(61,220,132,.1);
  border: 1.5px solid rgba(61,220,132,.45);
  box-shadow: 0 0 0 10px rgba(61,220,132,.05), 0 18px 44px -14px rgba(61,220,132,.4);
  animation: pop .55s cubic-bezier(.2,.9,.3,1.35);
}
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.check-ring svg { width: 48px; height: 48px; }
.check-ring path { stroke: var(--ok); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; fill: none; stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw .5s .28s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- تقویم ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.cal-head b { font-size: 16px; font-weight: 800; }
.cal-nav {
  width: 41px; height: 41px; border-radius: 14px; border: 1px solid var(--brd);
  background: var(--chip); color: var(--txt); font-size: 17px; cursor: pointer;
  transition: transform .15s var(--ease), background .2s;
}
.cal-nav:active { transform: scale(.86); background: var(--brd); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-dow { text-align: center; font-size: 10.5px; color: var(--txt3); padding: 8px 0 4px; font-weight: 700; }
.cal-day {
  aspect-ratio: 1; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 13.5px; font-weight: 600; cursor: pointer; border: 1.5px solid transparent; transition: all .16s var(--ease); position: relative;
  font-variant-numeric: tabular-nums;
}
.cal-day:active { transform: scale(.88); }
.cal-day.today {
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  color: var(--acc-txt); font-weight: 800; border-color: transparent;
  box-shadow: 0 8px 20px -7px rgba(255,138,42,.6), inset 0 1px 0 rgba(255,255,255,.35);
}
.cal-day.other { opacity: .28; }
.cal-day.fri { color: var(--err); }
.cal-day.today.fri { color: var(--acc-txt); }
.cal-day .dots { display: flex; gap: 2.5px; height: 5px; }
.cal-day .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 6px rgba(47,216,192,.7); }
.cal-day .dots i.max { background: #fff; }
.cal-day.today .dots i { background: var(--acc-txt); box-shadow: none; }

/* ---------- نمودارها ---------- */
.chart-card { padding: 18px 14px 12px; }
.chart-card h4 { font-size: 14px; font-weight: 800; margin: 0 4px 15px; display: flex; gap: 8px; align-items: center; }
.chart-box { position: relative; height: 210px; }
.chart-box.sm { height: 180px; }

/* ---------- متفرقه ---------- */
.list-item { display: flex; align-items: center; gap: 13px; padding: 15px 16px; cursor: pointer; transition: transform .16s var(--ease); }
.list-item:active { transform: scale(.975); }
.avatar {
  width: 47px; height: 47px; border-radius: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 21px;
  background: linear-gradient(135deg, rgba(255,159,44,.22), rgba(255,138,42,.07));
  border: 1px solid rgba(255,159,44,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.avatar.t { background: linear-gradient(135deg, rgba(47,216,192,.2), rgba(47,216,192,.06)); border-color: rgba(47,216,192,.28); }
.li-body { flex: 1; min-width: 0; }
.li-body b { display: block; font-size: 14.5px; font-weight: 800; }
.li-body span { font-size: 11.5px; color: var(--txt2); display: block; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-end { text-align: left; flex-shrink: 0; }
.li-end b {
  font-size: 14px; font-weight: 800; display: block;
  background: linear-gradient(120deg, var(--acc), var(--acc2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.li-end span { font-size: 10.5px; color: var(--txt3); }
.row-btns { display: flex; gap: 9px; margin-top: 16px; }
.mini-btn {
  width: 39px; height: 39px; border-radius: 13px; border: 1px solid var(--brd);
  background: var(--chip); color: var(--txt2); font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .16s var(--ease); flex-shrink: 0;
}
.mini-btn:active { transform: scale(.84); }
.mini-btn.del { color: var(--err); border-color: rgba(255,107,107,.3); background: rgba(255,107,107,.08); }
.mini-btn.edit { color: var(--acc); border-color: rgba(255,159,44,.3); background: rgba(255,159,44,.08); }

.search-bar { display: flex; gap: 9px; margin-bottom: 16px; }
.search-bar .inp { flex: 1; }
.filter-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; margin-bottom: 8px; scrollbar-width: none; }
.filter-chips::-webkit-scrollbar { display: none; }
.switch {
  position: relative; width: 54px; height: 32px; border-radius: 99px;
  background: var(--chip); border: 1px solid var(--brd); cursor: pointer;
  transition: background .28s var(--ease); flex-shrink: 0;
}
.switch::after {
  content: ""; position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--txt2); transition: all .28s var(--ease);
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.switch.on { background: linear-gradient(135deg, var(--acc), var(--acc2)); border-color: transparent; box-shadow: 0 6px 16px -6px rgba(255,138,42,.55); }
.switch.on::after { right: calc(100% - 27px); background: #fff; }
.divider { height: 1px; background: var(--brd); margin: 14px 0; }
.progress-thin { height: 7px; border-radius: 99px; background: var(--chip); overflow: hidden; margin-top: 10px; }
.progress-thin > div { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--acc), var(--acc2)); transition: width .3s ease; box-shadow: 0 0 10px rgba(255,159,44,.5); }
.steps { display: flex; gap: 6px; margin: 2px 4px 18px; }
.steps i { flex: 1; height: 5px; border-radius: 99px; background: var(--chip); transition: background .35s var(--ease); }
.steps i.on { background: linear-gradient(90deg, var(--acc), var(--acc2)); box-shadow: 0 0 10px rgba(255,159,44,.4); }
.sum-row { display: flex; justify-content: space-between; align-items: center; padding: 11.5px 2px; border-bottom: 1px dashed var(--brd); font-size: 13.5px; }
.sum-row:last-child { border: none; }
.sum-row .k { color: var(--txt2); display: flex; gap: 8px; align-items: center; font-weight: 500; }
.sum-row .v { font-weight: 700; max-width: 60%; text-align: left; }
.upload-box {
  border: 1.5px dashed var(--brd-strong); border-radius: var(--r-md); padding: 20px; text-align: center;
  color: var(--txt2); font-size: 13px; font-weight: 600; cursor: pointer; transition: all .22s var(--ease);
  background: var(--chip);
}
.upload-box:active { border-color: var(--acc); color: var(--acc); background: rgba(255,159,44,.06); }
.photo-prev { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.photo-prev .pp { position: relative; width: 74px; height: 74px; }
.photo-prev img { width: 100%; height: 100%; object-fit: cover; border-radius: 15px; border: 1px solid var(--brd); }
.photo-prev .rm {
  position: absolute; top: -7px; left: -7px; width: 25px; height: 25px; border-radius: 50%;
  background: var(--err); color: #fff; border: none; font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(255,107,107,.5);
}
.linklike { background: none; border: none; color: var(--acc); font-size: 13px; font-weight: 700; cursor: pointer; padding: 6px 4px; }
.mini { padding: 14px; border-radius: 19px; background: var(--chip); border: 1px solid var(--brd); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.mini .m-ic { font-size: 17px; }
.mini .m-lbl { font-size: 11px; color: var(--txt2); margin-top: 8px; font-weight: 600; }
.mini .m-val { font-size: 15px; font-weight: 800; margin-top: 3px; }

/* ---------- احترام به کاهش حرکت ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
