@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --emerald: #0E7A52;
  --emerald-deep: #0A4D34;
  --emerald-bright: #16C784;
  --gold: #C9A24B;
  --gold-soft: #EBDCB2;
  --c-food-1: #0E9F6E;   --c-food-2: #34D399;
  --c-move-1: #2563EB;   --c-move-2: #38BDF8;
  --c-gift-1: #DB2777;   --c-gift-2: #F97BB4;
  --c-trip-1: #0891B2;   --c-trip-2: #22D3EE;
  --c-learn-1: #7C3AED;  --c-learn-2: #A78BFA;
  --c-health-1: #EA580C; --c-health-2: #FB923C;
  --base: #F2F6F4;
  --ink: #10241C;
  --muted: #4E6157;
  --danger: #C0392B;
  --glass: rgba(255,255,255,.55);
  --glass-strong: rgba(255,255,255,.75);
  --glass-border: rgba(255,255,255,.8);
  --glass-shadow: 0 8px 32px rgba(16,36,28,.10);
  --r-lg: 26px; --r-md: 18px; --r-sm: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: 'Vazirmatn', system-ui, sans-serif;
  background: var(--base); color: var(--ink);
  line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--emerald-bright); color: #fff; }
.num { font-variant-numeric: tabular-nums; }

/* ── بک‌گراند ── */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); display: block; }
.aurora .b1 { width: 52vw; height: 52vw; top: -16vw; right: -10vw; background: radial-gradient(circle, #34D399, transparent 65%); opacity: .45; }
.aurora .b2 { width: 42vw; height: 42vw; top: 12vw; left: -12vw; background: radial-gradient(circle, #7DC4F7, transparent 65%); opacity: .38; }
.aurora .b3 { width: 38vw; height: 38vw; bottom: -12vw; right: 15vw; background: radial-gradient(circle, #C4B5FD, transparent 65%); opacity: .30; }

/* ── شیشه ── */
.glass {
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,.85);
}

/* ── دکمه ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  border: none; border-radius: 999px; padding: 12px 24px; min-height: 44px;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s, filter .2s, background .2s;
  white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }
.btn-primary { background: linear-gradient(120deg, #0E9F6E, #16C784 55%, #38BDF8 130%); color: #fff; box-shadow: 0 10px 26px rgba(14,159,110,.32); }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.06); }
.btn-glass { background: rgba(255,255,255,.55); color: var(--emerald-deep); border: 1px solid var(--glass-border); }
.btn-glass:hover:not(:disabled) { transform: translateY(-2px); background: rgba(255,255,255,.78); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover:not(:disabled) { color: var(--emerald); background: rgba(22,199,132,.08); }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid rgba(192,57,43,.25); }
.btn-danger:hover:not(:disabled) { background: rgba(192,57,43,.08); }
.btn-lg { padding: 15px 32px; font-size: 16px; min-height: 52px; }
.btn-sm { padding: 8px 16px; font-size: 13.5px; min-height: 38px; }
/* روی صفحه‌های لمسی، هیچ هدفی زیر ۴۴ پیکسل نباشد */
@media (pointer: coarse) { .btn-sm { min-height: 44px; } }
.btn-block { width: 100%; }

/* ── فرم ── */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
input[type=text], input[type=tel], input[type=number], select, textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  background: rgba(255,255,255,.7); border: 1px solid rgba(16,36,28,.12);
  border-radius: var(--r-sm); padding: 12px 14px; min-height: 46px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--emerald-bright); background: #fff;
  box-shadow: 0 0 0 4px rgba(22,199,132,.14);
}
input.err { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(192,57,43,.12); }
input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 7px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(22,199,132,.45), rgba(56,189,248,.45));
  outline: none; cursor: pointer; direction: ltr; padding: 0; min-height: 0; border: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 6px solid var(--emerald-bright);
  box-shadow: 0 3px 10px rgba(22,199,132,.4); cursor: pointer; transition: transform .15s;
}
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type=range]::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%; background: #fff;
  border: 6px solid var(--emerald-bright); box-shadow: 0 3px 10px rgba(22,199,132,.4); cursor: pointer;
}
input[type=range]:focus-visible { outline: 2px solid var(--emerald); outline-offset: 6px; }
.range-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.range-row .rv { font-weight: 800; color: var(--emerald); font-size: 15px; }
.range-row .rv small { font-weight: 500; color: var(--muted); font-size: 12px; }

/* ── هشدار و پیام ── */
.alert { border-radius: var(--r-sm); padding: 12px 16px; font-size: 14px; margin-bottom: 16px; line-height: 1.7; }
.alert-err  { background: rgba(192,57,43,.10); border: 1px solid rgba(192,57,43,.25); color: #8E2B20; }
.alert-ok   { background: rgba(22,199,132,.12); border: 1px solid rgba(22,199,132,.3); color: #0A5C3C; }
.alert-warn { background: rgba(234,88,12,.10); border: 1px solid rgba(234,88,12,.28); color: #9A3412; }
[hidden] { display: none !important; }

/* ── برند ── */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand .name { font-weight: 800; font-size: 20px; letter-spacing: -.5px; color: var(--emerald-deep); }
.brand .name b { color: var(--gold); font-weight: 800; }

/* ── چیدمان ── */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
.center-page { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; position: relative; z-index: 1; }
.card { border-radius: var(--r-lg); padding: 32px; width: 100%; }
.card-sm { max-width: 460px; }
.card-md { max-width: 620px; }

/* رنگ سبدها */
.k-khorak    { --k1: var(--c-food-1);   --k2: var(--c-food-2); }
.k-raftoamad { --k1: var(--c-move-1);   --k2: var(--c-move-2); }
.k-hediye    { --k1: var(--c-gift-1);   --k2: var(--c-gift-2); }
.k-safar     { --k1: var(--c-trip-1);   --k2: var(--c-trip-2); }
.k-amoozesh  { --k1: var(--c-learn-1);  --k2: var(--c-learn-2); }
.k-salamat   { --k1: var(--c-health-1); --k2: var(--c-health-2); }
