@font-face{font-family:Lalezar;src:url(fonts/lalezar.woff2) format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:Vazirmatn;src:url(fonts/vazirmatn-arabic.woff2) format('woff2');font-weight:100 900;font-display:swap;unicode-range:U+0600-06FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE80-FEFC}
@font-face{font-family:Vazirmatn;src:url(fonts/vazirmatn-latin.woff2) format('woff2');font-weight:100 900;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root {
  --teal: #0F9D8A; --teal-d: #0b7a6b; --teal-l: #e3f6f2; --orange: #FF8A3D; --orange-l: #fff0e5;
  --bg: #F3F8F7; --card: #fff; --ink: #17332f; --mute: #6b807c; --line: #e3edea;
  --ok: #16a34a; --ok-l: #e4f7ea; --warn: #b45309; --warn-l: #fff4d6; --bad: #dc2626; --bad-l: #fde8e8; --info: #1d4ed8; --info-l: #e3edff;
  --shadow: 0 1px 2px rgba(23, 51, 47, .06), 0 6px 18px rgba(23, 51, 47, .06); --r: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: Vazirmatn, Tahoma, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.7; }
button, input, select, textarea { font-family: inherit; }
.print-only { display: none; }
.boot { text-align: center; margin-top: 30vh; color: var(--teal); font-weight: 700; }
.hide { display: none !important; }
.mute { color: var(--mute); font-size: 13px; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 8px; }

/* ---------- shell */
.side { position: fixed; top: 0; bottom: 0; right: 0; width: 248px; background: #fff; border-left: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 14px; z-index: 6; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.brand .logo { width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(135deg, var(--teal), #35c4ae); display: grid; place-items: center; font-size: 22px; box-shadow: 0 6px 14px rgba(15, 157, 138, .35); }
.brand b { display: block; font-size: 17px; line-height: 1.2; }
.brand small { color: var(--mute); font-size: 12px; }
.nav { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.nav button { display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 11px 12px; border-radius: 12px; cursor: pointer; font-size: 15px; color: var(--ink); text-align: right; }
.nav button .ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--bg); font-size: 16px; }
.nav button:hover { background: var(--bg); }
.nav button.on { background: var(--teal-l); color: var(--teal-d); font-weight: 700; }
.nav button.on .ic { background: #fff; }
.nav .cnt { margin-right: auto; background: var(--orange); color: #fff; border-radius: 99px; min-width: 22px; padding: 0 7px; font-size: 12px; text-align: center; line-height: 22px; font-weight: 700; }
.side .foot { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--line); }
.main { margin-right: 248px; padding: 26px 32px 80px; max-width: 1180px; }
.bar { display: none; }
.bottom { display: none; }

.head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.head h1 { margin: 0; font-size: 24px; }
.head p { margin: 2px 0 0; color: var(--mute); font-size: 13.5px; }

/* ---------- pieces */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); }
.card + .card, .stack > * + * { margin-top: 12px; }
.card.click { cursor: pointer; transition: transform .12s, box-shadow .12s, border-color .12s; }
.card.click:hover { transform: translateY(-2px); border-color: var(--teal); }
.card.warn { background: var(--warn-l); border-color: #f3dca0; }
.card.info { background: var(--info-l); border-color: #c8d9ff; }
.card.ok { background: var(--ok-l); border-color: #bfe8cb; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.grid.s { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.grid > .card + .card { margin-top: 0; }
.stat { display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; }
.stat .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--teal-l); }
.stat .n { font-size: 28px; font-weight: 700; line-height: 1.1; margin-top: 6px; }
.stat .l { color: var(--mute); font-size: 13.5px; }
.stat.o .ic { background: var(--orange-l); } .stat.b .ic { background: var(--info-l); } .stat.g .ic { background: var(--ok-l); } .stat.w .ic { background: var(--warn-l); }
.avatar { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: var(--teal-l); flex: none; }
.avatar.a1 { background: var(--orange-l); } .avatar.a2 { background: var(--info-l); } .avatar.a3 { background: var(--ok-l); }
.avatar.big { width: 72px; height: 72px; font-size: 40px; border-radius: 22px; }
h2.sec { font-size: 17px; margin: 28px 0 12px; display: flex; align-items: center; gap: 8px; }
h2.sec:first-child { margin-top: 0; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; background: var(--bg); color: var(--mute); white-space: nowrap; }
.badge.ok { background: var(--ok-l); color: var(--ok); } .badge.warn { background: var(--warn-l); color: var(--warn); }
.badge.bad { background: var(--bad-l); color: var(--bad); } .badge.info { background: var(--info-l); color: var(--info); } .badge.teal { background: var(--teal-l); color: var(--teal-d); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 16px; cursor: pointer; font-size: 14px; color: var(--ink); }
.chip.on { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 700; }
.day { min-width: 74px; text-align: center; padding: 8px 6px; border-radius: 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; line-height: 1.3; }
.day small { display: block; color: var(--mute); font-size: 11.5px; } .day b { font-size: 15px; }
.day.on { background: var(--teal); border-color: var(--teal); color: #fff; } .day.on small { color: #d8f5f0; }
.strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; }
.empty { text-align: center; padding: 40px 16px; color: var(--mute); }
.empty .em { font-size: 52px; line-height: 1.2; }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-top: 6px; }
.time { font-size: 20px; font-weight: 700; color: var(--teal-d); min-width: 64px; text-align: center; background: var(--teal-l); border-radius: 12px; padding: 6px 4px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 4px 12px; font-size: 14px; } .kv span:nth-child(odd) { color: var(--mute); }
.line-item { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); } .line-item:last-child { border-bottom: 0; }
.big { font-size: 20px; font-weight: 700; }
.timeline > * { position: relative; padding-right: 18px; border-right: 3px solid var(--teal-l); margin-right: 6px; } .timeline > * + * { margin-top: 10px; }

/* ---------- controls */
.btn { border: 0; background: var(--teal); color: #fff; padding: 10px 20px; border-radius: 12px; cursor: pointer; font-size: 14.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; transition: filter .12s; }
.btn:hover { filter: brightness(1.07); } .btn:disabled { opacity: .5; cursor: default; }
.btn.alt { background: var(--teal-l); color: var(--teal-d); } .btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.bad { background: var(--bad-l); color: var(--bad); } .btn.ok { background: var(--ok); } .btn.org { background: var(--orange); }
.btn.sm { padding: 6px 14px; font-size: 13px; border-radius: 10px; } .btn.lg { padding: 13px 26px; font-size: 16px; }
input, select, textarea { width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-size: 15px; color: var(--ink); outline: none; transition: border-color .12s, box-shadow .12s; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15, 157, 138, .12); }
textarea { min-height: 90px; resize: vertical; } input[dir=ltr] { text-align: left; }
label { display: block; margin: 12px 0 5px; font-size: 13px; color: var(--mute); font-weight: 700; }
.search { position: relative; margin-bottom: 14px; } .search input { padding-right: 44px; } .search .ic { position: absolute; right: 14px; top: 11px; font-size: 18px; }
.err { color: var(--bad); margin: 8px 0; min-height: 1.2em; font-size: 14px; } .ok-t { color: var(--ok); }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.price { font-size: 18px; font-weight: 700; color: var(--teal-d); } .price s { color: var(--mute); font-size: 13px; font-weight: 400; margin-right: 6px; }

/* ---------- dialog and toast */
.modal-bg { position: fixed; inset: 0; background: rgba(15, 35, 32, .5); display: flex; align-items: center; justify-content: center; padding: 16px; overflow: auto; z-index: 30; animation: fade .15s; }
.modal { background: #fff; border-radius: 20px; padding: 22px 24px; width: 100%; max-width: 480px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); animation: pop .18s; max-height: 92vh; overflow: auto; }
.modal h3 { margin: 0 0 4px; font-size: 19px; } .modal .actions { display: flex; gap: 10px; margin-top: 20px; }
.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 50; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 14px; box-shadow: var(--shadow); font-size: 14.5px; animation: pop .2s; }
.toast.bad { background: var(--bad); }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.skel { height: 90px; border-radius: var(--r); background: linear-gradient(90deg, #e9f1ef 25%, #f4f9f8 37%, #e9f1ef 63%); background-size: 400% 100%; animation: sh 1.3s infinite; margin-bottom: 12px; }
@keyframes sh { to { background-position: -400% 0; } }

/* ---------- login */
.login-wrap { position: relative; min-height: 100vh; overflow: hidden; background: #062f2a; color: #fff; }
.login-wrap .hero { position: absolute; inset: -3%; width: 106%; height: 106%; object-fit: cover; object-position: 55% center; animation: kb 22s ease-in-out infinite alternate; transform: translate(var(--dx, 0), var(--dy, 0)) scale(1.06); transition: transform .5s ease-out; }
@keyframes kb { from { scale: 1; } to { scale: 1.09; } }
.login-wrap .shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,38,34,.88) 0%, rgba(4,38,34,.5) 34%, rgba(4,38,34,0) 62%), linear-gradient(0deg, rgba(4,38,34,.92) 0%, rgba(4,38,34,0) 46%), radial-gradient(120% 90% at 70% 30%, transparent 55%, rgba(0,0,0,.45) 100%); }
.login-wrap .flare { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.13) 48%, transparent 60%); background-size: 250% 100%; animation: sweep 7s ease-in-out infinite; mix-blend-mode: screen; pointer-events: none; }
@keyframes sweep { 0% { background-position: 130% 0; } 55%, 100% { background-position: -60% 0; } }
.parts { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pt { position: absolute; bottom: -40px; font-size: 26px; opacity: 0; animation: rise 14s linear infinite; filter: drop-shadow(0 4px 8px rgba(0,0,0,.35)); }
.pt.p1 { right: 6%; animation-delay: 0s; } .pt.p2 { right: 22%; animation-delay: 3s; font-size: 20px; } .pt.p3 { right: 38%; animation-delay: 6s; } .pt.p4 { right: 55%; animation-delay: 1.5s; font-size: 18px; }
.pt.p5 { right: 70%; animation-delay: 8s; } .pt.p6 { right: 84%; animation-delay: 4.5s; font-size: 22px; } .pt.p7 { right: 47%; animation-delay: 10s; font-size: 16px; }
@keyframes rise { 0% { transform: translateY(0) rotate(-12deg); opacity: 0; } 12% { opacity: .55; } 80% { opacity: .35; } 100% { transform: translateY(-105vh) rotate(18deg); opacity: 0; } }
.login-card { position: absolute; left: 5vw; top: 50%; width: min(420px, 90vw); transform: translateY(-50%); padding: 34px 32px; border-radius: 28px; color: var(--ink); background: rgba(255,255,255,.88); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.6) inset; animation: cardIn .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(-46%) scale(.97); } }
.login-card .tag { display: inline-block; background: linear-gradient(135deg, var(--teal), #35c4ae); color: #fff; border-radius: 99px; padding: 4px 14px; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.login-card h2 { margin: 0 0 6px; font-size: 26px; }
.login-head { position: absolute; right: 5vw; bottom: 7vh; max-width: min(560px, 90vw); animation: headIn 1.1s .25s cubic-bezier(.2,.8,.2,1) both; text-shadow: 0 3px 18px rgba(0,0,0,.55); }
@keyframes headIn { from { opacity: 0; transform: translateY(26px); } }
.login-head h1 { font-size: clamp(30px, 4.2vw, 54px); line-height: 1.25; margin: 0 0 10px; font-weight: 800; }
.login-head p { font-size: 18px; margin: 0 0 18px; opacity: .95; }
.feats { display: flex; flex-wrap: wrap; gap: 8px; } .feats span { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(8px); border-radius: 99px; padding: 6px 14px; font-size: 14.5px; text-shadow: none; }
@media (prefers-reduced-motion: reduce) { .login-wrap .hero, .login-wrap .flare, .pt, .login-card, .login-head { animation: none; } .pt { display: none; } .login-card { transform: translateY(-50%); } }

/* ---------- small screens: a bottom bar instead of the side bar */
@media (max-width: 900px) {
  .side { display: none; }
  .main { margin-right: 0; padding: 16px 14px 100px; }
  .bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
  .bar b { flex: 1; font-size: 17px; }
  .bottom { display: flex; position: fixed; bottom: 0; right: 0; left: 0; background: #fff; border-top: 1px solid var(--line); z-index: 6; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottom button { flex: 1; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 0; font-size: 11.5px; color: var(--mute); padding: 4px 0; cursor: pointer; position: relative; }
  .bottom button .e { font-size: 21px; line-height: 1.3; } .bottom button.on { color: var(--teal-d); font-weight: 700; }
  .bottom .cnt { position: absolute; top: 0; right: 50%; margin-right: -22px; background: var(--orange); color: #fff; border-radius: 99px; min-width: 18px; font-size: 11px; line-height: 18px; text-align: center; }
  .head h1 { font-size: 20px; }
  .login-wrap { display: flex; flex-direction: column; min-height: 100vh; } .login-wrap .hero { height: 52vh; inset: 0 0 auto 0; width: 100%; object-position: 50% 30%; } .login-wrap .shade { background: linear-gradient(0deg, #062f2a 0%, rgba(4,38,34,.2) 50%, rgba(4,38,34,.15) 100%); } .login-head { position: relative; right: auto; bottom: auto; order: 1; margin: 34vh 22px 14px; } .login-head h1 { font-size: 28px; } .login-head p, .feats { display: none; } .login-card { position: relative; left: auto; top: auto; transform: none; order: 2; margin: 0 14px 22px; width: auto; animation: none; }
  .modal { border-radius: 20px 20px 0 0; align-self: flex-end; } .modal-bg { align-items: flex-end; padding: 0; }
  .kv { grid-template-columns: 100px 1fr; }
}
@media print {
  body > *:not(#print) { display: none !important; }
  #print { display: block !important; padding: 24px; color: #000; background: #fff; font-size: 14px; }
  #print table { width: 100%; border-collapse: collapse; } #print th, #print td { border: 1px solid #000; padding: 6px 8px; text-align: right; }
}

/* ======================================================================
   Friendly layer: warmer, rounder, livelier. Same classes, nicer look.
   ====================================================================== */
:root { --r: 22px; --shadow: 0 2px 4px rgba(23, 51, 47, .04), 0 12px 30px rgba(23, 51, 47, .08); --grad: linear-gradient(135deg, #0F9D8A 0%, #35c4ae 100%); --grad-o: linear-gradient(135deg, #FF8A3D 0%, #ffb56b 100%); }
html, body { font-size: 16px; line-height: 1.75; }
body { background: radial-gradient(900px 520px at 100% -8%, #d9f5ef 0%, transparent 62%), radial-gradient(760px 460px at 0% 100%, #ffeedd 0%, transparent 58%), #f6faf9; background-repeat: no-repeat; background-attachment: fixed; min-height: 100vh; }
html { background: #f6faf9; }
.card { border: 0; padding: 18px 20px; }
.card.click:hover { transform: translateY(-4px); box-shadow: 0 4px 8px rgba(23, 51, 47, .05), 0 18px 38px rgba(15, 157, 138, .18); }
.card.click:active { transform: scale(.985); }
.card.warn { background: linear-gradient(135deg, #fff7df, #fff1cc); } .card.info { background: linear-gradient(135deg, #eaf1ff, #e0eaff); } .card.ok { background: linear-gradient(135deg, #e9f9ee, #dcf4e5); }
.grid { gap: 16px; } .grid.s { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.stat { padding: 18px 20px; } .stat::after { content: ''; position: absolute; left: -26px; top: -26px; width: 96px; height: 96px; border-radius: 50%; background: var(--teal-l); opacity: .7; }
.stat.o::after { background: var(--orange-l); } .stat.b::after { background: var(--info-l); } .stat.g::after { background: var(--ok-l); } .stat.w::after { background: var(--warn-l); }
.stat > * { position: relative; z-index: 1; }
.stat .ic { width: 50px; height: 50px; border-radius: 18px; font-size: 25px; background: #fff; box-shadow: 0 6px 16px rgba(23, 51, 47, .1); }
.stat .n { font-size: 32px; font-weight: 700; }
.avatar { border-radius: 20px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
h2.sec { font-size: 19px; margin: 32px 0 14px; } h2.sec::before { content: ''; width: 6px; height: 22px; border-radius: 6px; background: var(--grad); }
.badge { padding: 3px 12px; font-size: 13px; }
.chip { padding: 8px 18px; font-size: 14.5px; box-shadow: 0 1px 3px rgba(23, 51, 47, .06); transition: transform .12s, box-shadow .12s; } .chip:hover { transform: translateY(-1px); }
.chip.on { background: var(--grad); border-color: transparent; box-shadow: 0 6px 16px rgba(15, 157, 138, .32); }
.day { border-radius: 18px; border: 0; box-shadow: 0 1px 3px rgba(23, 51, 47, .08); } .day.on { background: var(--grad); box-shadow: 0 8px 18px rgba(15, 157, 138, .35); }
.time { background: var(--grad); color: #fff; border-radius: 16px; padding: 8px 6px; box-shadow: 0 6px 14px rgba(15, 157, 138, .28); }
.btn { border-radius: 99px; padding: 11px 24px; font-size: 15px; background: var(--grad); box-shadow: 0 6px 16px rgba(15, 157, 138, .3); transition: transform .12s, box-shadow .12s, filter .12s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(15, 157, 138, .36); } .btn:active { transform: scale(.97); }
.btn.alt { background: var(--teal-l); color: var(--teal-d); box-shadow: none; } .btn.ghost { background: #fff; box-shadow: 0 1px 3px rgba(23, 51, 47, .1); border: 0; color: var(--ink); }
.btn.bad { background: var(--bad-l); color: var(--bad); box-shadow: none; } .btn.ok { background: linear-gradient(135deg, #16a34a, #3ccf74); box-shadow: 0 6px 16px rgba(22, 163, 74, .3); } .btn.org { background: var(--grad-o); box-shadow: 0 6px 16px rgba(255, 138, 61, .35); }
.btn.sm { padding: 7px 16px; font-size: 13.5px; }
input, select, textarea { border-radius: 16px; padding: 12px 16px; font-size: 16px; border-color: #dbe8e5; background: #fcfefd; }
.price { font-size: 20px; }
.empty { padding: 48px 16px; } .empty .em { font-size: 64px; animation: bounce 2.6s ease-in-out infinite; }
@keyframes bounce { 50% { transform: translateY(-8px); } }
.modal { border-radius: 28px; padding: 26px 28px; } .modal h3 { font-size: 21px; }
.toast { border-radius: 99px; padding: 12px 24px; }

/* side bar */
.side { background: linear-gradient(180deg, #ffffff 0%, #eefaf7 100%); border-left: 0; box-shadow: -10px 0 40px rgba(23, 51, 47, .07); width: 256px; }
.main { margin-right: 256px; }
.brand .logo { width: 46px; height: 46px; border-radius: 16px; }
.nav button { padding: 12px 14px; border-radius: 16px; font-size: 15.5px; transition: background .12s, transform .12s; } .nav button:hover { background: rgba(15, 157, 138, .09); transform: translateX(-3px); }
.nav button .ic { background: #fff; box-shadow: 0 2px 6px rgba(23, 51, 47, .08); width: 34px; height: 34px; border-radius: 12px; font-size: 18px; }
.nav button.on { background: var(--grad); color: #fff; box-shadow: 0 10px 22px rgba(15, 157, 138, .35); } .nav button.on .ic { box-shadow: none; }

/* page headers and entrance */
.head { margin-bottom: 22px; } .head h1 { font-size: 27px; font-weight: 700; } .head p { font-size: 14.5px; }
.main > * { animation: up .5s cubic-bezier(.2, .8, .2, 1) both; } .main > *:nth-child(2) { animation-delay: .05s; } .main > *:nth-child(3) { animation-delay: .1s; } .main > *:nth-child(n+4) { animation-delay: .15s; }
@keyframes up { from { opacity: 0; transform: translateY(14px); } }
.grid > * { animation: up .5s cubic-bezier(.2, .8, .2, 1) both; } .grid > *:nth-child(2) { animation-delay: .04s; } .grid > *:nth-child(3) { animation-delay: .08s; } .grid > *:nth-child(4) { animation-delay: .12s; } .grid > *:nth-child(n+5) { animation-delay: .16s; }

/* home hero */
.hero-card { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; border-radius: 30px; padding: 28px 32px; margin-bottom: 22px; color: #fff; background: linear-gradient(120deg, #0b8f7d 0%, #2fbfa8 55%, #ffa45c 120%); box-shadow: 0 22px 50px rgba(15, 157, 138, .35); }
.hero-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(420px 220px at 20% 0%, rgba(255, 255, 255, .28), transparent 70%), radial-gradient(300px 200px at 100% 100%, rgba(255, 255, 255, .18), transparent 70%); }
.hero-card > * { position: relative; }
.hc-text { flex: 1 1 320px; } .hc-text h1 { margin: 0 0 6px; font-size: 30px; line-height: 1.35; } .hc-text p { margin: 0 0 16px; font-size: 16px; opacity: .95; }
.hc-text p.hc-date { margin: 0 0 2px; font-size: 14px; opacity: .8; }
.hero-card .btn { background: #fff; color: var(--teal-d); box-shadow: 0 8px 20px rgba(0, 0, 0, .18); } .hero-card .btn.alt { background: rgba(255, 255, 255, .22); color: #fff; box-shadow: none; border: 1px solid rgba(255, 255, 255, .5); }
.hc-pets { width: 300px; max-width: 38%; height: auto; margin: -18px -8px -26px 0; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .25)); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-9px); } }

@media (prefers-reduced-motion: reduce) { .main > *, .grid > *, .empty .em, .hc-pets { animation: none; } }

/* tablet */
@media (min-width: 901px) and (max-width: 1200px) { .side { width: 218px; } .main { margin-right: 218px; padding: 22px 22px 80px; } .hc-pets { width: 220px; } }

/* phone */
@media (max-width: 900px) {
  body { background-attachment: scroll; }
  .main { margin-right: 0; padding: 16px 14px 120px; }
  .bar { background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 0; box-shadow: 0 6px 20px rgba(23, 51, 47, .08); }
  .bottom { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); border: 0; border-radius: 26px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 14px 40px rgba(23, 51, 47, .22); padding: 8px 6px; }
  .bottom button.on .e { transform: translateY(-3px) scale(1.15); transition: transform .15s; }
  .head { align-items: flex-start; } .head .grow { flex: 1 1 100%; } .head > .row { width: 100%; } .head > .row .btn { flex: 1; justify-content: center; }
  .head h1 { font-size: 23px; }
  .hero-card { flex-direction: column-reverse; align-items: stretch; text-align: center; padding: 22px 18px 20px; border-radius: 26px; gap: 4px; }
  .hc-text { flex: 0 0 auto; } .hc-pets { align-self: center; width: 210px; max-width: 70%; margin: -6px 0 0; } .hc-text h1 { font-size: 24px; } .hc-text .row { justify-content: center; }
  .grid.s { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .grid:not(.s) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 14px; } .stat .n { font-size: 26px; } .stat .l { font-size: 12.5px; }
  .toasts { bottom: 100px; }
  .modal-bg { align-items: flex-end; padding: 0; } .modal { border-radius: 28px 28px 0 0; max-width: none; animation: sheet .25s cubic-bezier(.2, .8, .2, 1); }
  @keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
}
@media (max-width: 620px) { .grid:not(.s) { grid-template-columns: 1fr; } }
@media (max-width: 380px) { .grid.s { grid-template-columns: 1fr; } .head h1 { font-size: 21px; } }

/* pictures in a pet's file */
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.thumb { width: 84px; height: 84px; object-fit: cover; border-radius: 16px; background: var(--teal-l); cursor: zoom-in; box-shadow: 0 2px 8px rgba(23, 51, 47, .15); transition: transform .12s; }
.thumb:hover { transform: scale(1.06); }
.thumb-wrap { position: relative; } .thumb-x { position: absolute; top: -6px; left: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--bad); color: #fff; cursor: pointer; font-size: 12px; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.viewer-img { display: block; width: 100%; max-height: 62vh; object-fit: contain; border-radius: 16px; background: #0b1b19; min-height: 160px; }
.viewer-bar { justify-content: space-between; margin-top: 10px; }
.modal:has(.viewer) { max-width: 760px; }

/* heavier headings and a touch more weight in the text (the font is variable) */
h1, h2, h3 { font-weight: 800; } body { font-weight: 450; } .stat .n, .big, .brand b, .price { font-weight: 800; }

/* Lalezar for the big headings (greeting, page titles, section titles); numbers and body text stay Vazirmatn */
h1, h2, h3, .brand b { font-family: Lalezar, Vazirmatn, Tahoma, sans-serif; font-weight: 400; letter-spacing: 0; }
.head h1 { font-size: 29px; } .hc-text h1 { font-size: 34px; } h2.sec { font-size: 21px; } .login-card h2 { font-size: 30px; } .modal h3 { font-size: 23px; }

/* the preview list of an Excel import */
.modal .scroll { max-height: 45vh; overflow: auto; display: grid; gap: 10px; }
/* the app icon as the logo: the picture is the whole tile */
img.logo, .brand img.logo { width: 44px; height: 44px; padding: 0; background: none; box-shadow: 0 4px 10px rgba(23, 51, 47, .18); border-radius: 12px; object-fit: cover; flex: none; } .bar img.logo { width: 34px; height: 34px; border-radius: 10px; }
