:root {
  --ivory: #f3eee6;
  --paper: #faf7f2;
  --ink: #1a1714;
  --muted: #8a8176;
  --line: #e4dccf;
  --gold: #8f7044;
  --gold-bright: #e7d3b0;
  --gold-soft: #efe6d6;
  --sage: #2f6a4f;
  --clay: #9a4e3c;
  --sans: "Vazirmatn", sans-serif;
  --serif: "Amiri", "Vazirmatn", serif;
  color: var(--ink);
  background: var(--gold-soft);
  font-family: var(--sans);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--gold-soft); color: var(--ink); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; }
#stage { height: 100dvh; display: flex; align-items: center; justify-content: center; }
.slogan {
  display: none;
  position: absolute;
  inset-inline-start: 2.5rem;
  max-width: 16rem;
  margin: 0;
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1.15;
}
.phone {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--ivory);
}
.notch { display: none; }
.shell { position: relative; display: flex; min-height: 0; flex: 1; flex-direction: column; }
.bar { position: relative; z-index: 2; flex: none; padding: 1.15rem 1.25rem 0.9rem; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--ivory) 88%, white); }
.titles { min-width: 0; flex: 1; }
.word { margin: 0; font-family: var(--serif); font-size: 1.875rem; line-height: 1; font-weight: 400; }
.logo { display: grid; width: 2.75rem; height: 2.75rem; flex: none; place-items: center; overflow: hidden; border-radius: 1rem; background: var(--ink); box-shadow: 0 10px 24px -16px rgb(26 23 20 / 0.8); }
.logo svg { width: 100%; height: 100%; }
.filters, .pair, .field, .pill-row { min-width: 0; }
.filters, .pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
input, textarea, select { min-width: 0; max-width: 100%; }
input[type="date"], input[type="time"] { display: block; width: 100%; min-width: 0; }
.donut {
  display: grid;
  width: 11.5rem;
  height: 11.5rem;
  margin: 1rem auto 0;
  place-items: center;
  border-radius: 999px;
  animation: spin-in .7s ease;
}
.donut > div {
  display: grid;
  width: 6.7rem;
  height: 6.7rem;
  place-items: center;
  align-content: center;
  border-radius: 999px;
  background: var(--paper);
  text-align: center;
}
.swatch { display: inline-block; width: 0.5rem; height: 0.5rem; margin-inline-end: 0.35rem; border-radius: 999px; }
.day-chart { display: flex; gap: 0.45rem; height: 11rem; margin-top: 1rem; overflow-x: auto; align-items: flex-end; }
.day-col { display: flex; width: 1.7rem; flex: none; height: 100%; flex-direction: column; align-items: center; justify-content: flex-end; gap: 0.35rem; }
.day-bars { display: flex; width: 100%; flex: 1; align-items: flex-end; justify-content: center; gap: 0.15rem; }
.day-bars span { width: 0.45rem; border-radius: 0.4rem 0.4rem 0.15rem 0.15rem; transform-origin: bottom; animation: grow .55s ease both; }
.day-bars .in { background: var(--sage); }
.day-bars .out { background: var(--clay); }
.day-col small { color: var(--muted); font-size: 0.65rem; }
.sheet-card, .notice .card { transition: transform .32s cubic-bezier(.22, .8, .24, 1); }
.sheet { animation: veil .28s ease; }
.sheet-card { animation: drawer .46s cubic-bezier(.22, .8, .24, 1); box-shadow: 0 -24px 60px -28px rgb(26 23 20 / 0.45); }
.page { animation: rise .42s ease; }
.hero, .card, .row, .panel { animation: rise .5s ease both; }
.dock button, .primary, .plus, .chip, .chip-soft { transition: transform .18s ease, background .18s ease, color .18s ease; }
.dock button:active, .primary:active, .plus:active { transform: scale(0.96); }
.handle { width: 3rem; height: 0.35rem; cursor: grab; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes drawer { from { transform: translateY(104%); } to { transform: translateY(0); } }
@keyframes veil { from { background: transparent; } to { background: rgb(26 23 20 / 40%); } }
@keyframes grow { from { transform: scaleY(0.2); } to { transform: scaleY(1); } }
@keyframes spin-in { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
jdp-container {
  background: #faf7f2 !important;
  border-radius: 1.4rem !important;
  font-family: Vazirmatn, sans-serif;
  box-shadow: 0 24px 50px -28px rgb(26 23 20 / 0.55) !important;
  color: #1a1714;
}
jdp-container .jdp-day.selected,
jdp-container .jdp-day-name.selected {
  background: #1a1714 !important;
  color: #f3eee6 !important;
  border-radius: 999px;
}
jdp-container .jdp-day.today { border-color: #8f7044 !important; }
jdp-container .jdp-day-name { background: #efe6d6; color: #8f7044; border-radius: 0; }
jdp-container .jdp-btn-close,
jdp-container .jdp-btn-empty,
jdp-container .jdp-btn-today {
  background: #1a1714;
  border-radius: 999px;
}
jdp-container .jdp-days {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  width: 100% !important;
  min-height: 15rem;
}
jdp-container .jdp-day,
jdp-container .jdp-day-name {
  width: auto !important;
  height: 2.15rem !important;
  line-height: 2.15rem !important;
  margin: 0 !important;
  opacity: 1;
}
jdp-container .jdp-day.not-in-month { opacity: 0.35 !important; }
.live-clock { margin-bottom: 0.8rem; }
.clock-digits {
  display: flex;
  direction: ltr;
  align-items: baseline;
  gap: 0.15rem;
  margin: 0.15rem 0 0;
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: 0.04em;
}
.clock-digits b { font-weight: 400; }
.clock-digits small {
  margin-inline-start: 0.35rem;
  color: var(--gold-bright);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}
jdp-container select,
jdp-container input {
  height: auto;
  max-width: none;
  background: transparent;
  border: 0;
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.eyebrow { margin: 0; color: var(--gold); font-size: 0.72rem; letter-spacing: 0.18em; }
.dock button svg { width: 1.25rem; height: 1.25rem; }
.crumb { display: flex; align-items: center; gap: 0.15rem; margin: 0 0 0.25rem; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 0.75rem; }
.crumb svg { width: 1rem; height: 1rem; }
.screen-name { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.75rem; }
.plus {
  margin-inline-start: auto;
  display: grid;
  width: 3rem;
  height: 3rem;
  flex: none;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ivory);
}
.plus svg { width: 1.25rem; height: 1.25rem; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 1rem; }
.chip, .chip-soft {
  display: flex;
  height: 2.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0 0.75rem;
  font-size: 0.75rem;
}
.chip { border: 1px solid var(--line); background: var(--paper); }
.chip-soft { border: 0; background: var(--gold-soft); }
.chip span, .chip-soft span { color: var(--muted); }
.page { min-height: 0; flex: 1; overflow: auto; padding: 1.25rem 1.25rem 7rem; }
.page.plain { padding: 2rem 1.5rem 2rem; }
.dock {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 95%, transparent);
  padding: 0.35rem 0.25rem calc(0.45rem + env(safe-area-inset-bottom));
  backdrop-filter: blur(12px);
}
.dock button {
  display: flex;
  min-height: 3.5rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.25;
}
.dock button svg { width: 1.25rem; height: 1.25rem; }
.dock button.on { color: var(--ink); }
.dock i { width: 1rem; height: 2px; border-radius: 999px; background: transparent; }
.dock button.on i { background: var(--gold); }
.hero {
  border-radius: 1.6rem;
  background: var(--ink);
  color: var(--ivory);
  padding: 1.6rem 1.4rem 1.3rem;
  box-shadow: 0 18px 40px -26px rgb(26 23 20 / 0.5);
}
.hero-top, .split { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.unit {
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgb(231 211 176 / 40%);
  background: transparent;
  color: var(--gold-bright);
  padding: 0 0.75rem;
  font-size: 0.75rem;
}
.balance { margin: 0.4rem 0 0; font-family: var(--serif); font-size: 2.4rem; line-height: 1; font-weight: 400; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.6rem; border-top: 1px solid rgb(243 238 230 / 15%); padding-top: 1rem; }
.kicker { margin: 0 0 0.7rem; color: var(--muted); font-size: 0.75rem; }
.link { border: 0; background: transparent; color: var(--gold); font-size: 0.75rem; }
.rail { display: flex; margin-inline: -1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.slide {
  width: 100%;
  flex: none;
  scroll-snap-align: start;
  border-block: 1px solid var(--line);
  background: var(--paper);
  padding: 1.25rem;
}
.slide.add {
  display: flex;
  min-height: 11rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-style: dashed;
}
.dots { display: flex; justify-content: center; gap: 0.35rem; margin-top: 0.75rem; }
.dots button { height: 0.4rem; width: 0.4rem; border: 0; border-radius: 999px; background: var(--line); padding: 0; }
.dots button.on { width: 1.25rem; background: var(--gold); }
.panel { overflow: hidden; border: 1px solid var(--line); border-radius: 1.5rem; background: var(--paper); }
.line { padding: 0.8rem 1rem; }
.line + .line { border-top: 1px solid var(--line); }
.card, .row {
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--paper);
}
.card { padding: 1rem 1rem 1.1rem; }
.prose b { display: block; font-size: 1rem; line-height: 1.6; }
.prose p, .prose li { margin: 0.55rem 0 0; color: var(--ink); font-size: 0.92rem; line-height: 1.9; }
.prose ul { margin: 0.35rem 0 0; padding: 0 1.15rem 0 0; }
.trust { display: flex; justify-content: center; margin: 1.4rem 0 0.4rem; }
a[href^="https://trustseal.enamad.ir"] { display: inline-block; line-height: 0; }
a[href^="https://trustseal.enamad.ir"] img { height: 5.4rem; width: auto; }
body > a[href^="https://trustseal.enamad.ir"] {
  position: fixed;
  z-index: 40;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
}
.row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  text-align: start;
}
.stack { display: grid; gap: 0.55rem; }
.muted, .sub, .meta { color: var(--muted); font-size: 0.75rem; }
.sage, .in { color: var(--sage); }
.clay, .out { color: var(--clay); }
.field { display: block; margin-top: 0.9rem; }
.field span, .label { display: block; margin-bottom: 0.45rem; color: var(--muted); font-size: 0.75rem; }
.money-hint { margin: 0.45rem 0 0; color: var(--gold); font-size: 0.85rem; }
input, textarea {
  width: 100%;
  height: 3rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--ivory);
  padding: 0 0.9rem;
  outline: none;
}
textarea { height: auto; min-height: 6.5rem; padding: 0.75rem 0.9rem; resize: vertical; }
input:focus, textarea:focus { border-color: var(--gold); }
.primary, .line-btn, .soft {
  width: 100%;
  height: 3rem;
  margin-top: 0.85rem;
  border-radius: 999px;
}
.primary { border: 0; background: var(--ink); color: var(--ivory); }
.primary:disabled { opacity: 0.65; }
.line-btn { border: 1px solid var(--line); background: var(--paper); }
.soft { border: 0; background: var(--gold-soft); }
.seg { display: flex; gap: 0.25rem; margin-top: 0.75rem; border-radius: 999px; background: var(--gold-soft); padding: 0.25rem; }
.seg button { height: 2.5rem; flex: 1; border: 0; border-radius: 999px; background: transparent; color: var(--muted); }
.seg button.on { background: var(--paper); color: var(--ink); }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.picker, #included { display: flex; gap: 0.45rem; overflow-x: auto; padding-bottom: 0.2rem; }
.pick, .check {
  height: 2.75rem;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ivory);
  padding: 0 0.9rem;
}
.pick.on, .check.on { border-color: var(--ink); background: var(--ink); color: var(--ivory); }
.sheet {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  background: rgb(26 23 20 / 40%);
}
.sheet-card {
  width: 100%;
  max-height: 100%;
  overflow: auto;
  border-radius: 1.6rem 1.6rem 0 0;
  background: var(--paper);
  padding: 0.75rem 1.25rem 2rem;
}
.handle { width: 2.5rem; height: 0.25rem; margin: 0 auto 0.8rem; border-radius: 999px; background: var(--line); }
.sheet-card h2 { margin: 0; font-family: var(--serif); font-size: 1.7rem; font-weight: 400; }
.notice {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  background: rgb(26 23 20 / 45%);
  padding: 1rem 1rem 6rem;
}
.notice .card h2 { margin: 0.35rem 0 0; font-family: var(--serif); font-size: 1.8rem; font-weight: 400; line-height: 1.25; }
.page-title { margin: 0.2rem 0 1rem; font-family: var(--serif); font-size: 2.6rem; font-weight: 400; line-height: 1; }
.auth-title { margin: 2rem 0 0; font-family: var(--serif); font-size: 3rem; line-height: 1; font-weight: 400; }
.soft-sage { border-radius: 1.5rem; background: #e5efe9; color: var(--sage); padding: 1rem; }
.soft-clay { border-radius: 1.5rem; background: #f6ebe7; color: var(--clay); padding: 1rem; }
.codes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; direction: ltr; }
.codes input { height: 3.5rem; text-align: center; font-family: var(--serif); font-size: 1.5rem; }
.pill-row, .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.ink-pill, .ghost-pill, .clay-pill, .sage-pill { height: 2.75rem; border-radius: 999px; font-size: 0.875rem; }
.ink-pill { border: 0; background: var(--ink); color: var(--ivory); }
.ghost-pill { border: 1px solid var(--line); background: transparent; }
.clay-pill { border: 0; background: var(--clay); color: var(--ivory); }
.sage-pill { border: 0; background: var(--sage); color: var(--ivory); }
.wrap { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.dot { width: 0.75rem; height: 0.75rem; border-radius: 999px; border: 1px solid var(--gold); }
.dot.on { background: var(--sage); border-color: var(--sage); }
.back { border: 0; background: transparent; color: var(--muted); }
.gold-link, .ghost, .danger { border: 0; background: transparent; }
.gold-link, .ghost { color: var(--gold); }
.danger { color: var(--clay); }
.mark {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--paper);
  font-family: var(--serif);
  font-size: 1.3rem;
}
.meter { height: 0.4rem; overflow: hidden; border-radius: 999px; background: var(--gold-soft); }
.meter span { display: block; height: 100%; background: var(--gold); }
.stats { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
.stat { border-radius: 1.2rem; background: var(--gold-soft); padding: 0.8rem; }
#toast {
  position: fixed;
  top: 1rem;
  left: 50%;
  width: min(22rem, calc(100vw - 1.5rem));
  transform: translateX(-50%) translateY(-0.6rem);
  border-radius: 1rem;
  background: var(--ink);
  color: var(--ivory);
  padding: 0.75rem 1rem;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  line-height: 1.7;
  z-index: 80;
}
#toast.show { opacity: 1; transform: translateX(-50%); }

@media (min-width: 768px) {
  .slogan, .notch { display: none; }
  #stage { align-items: stretch; }
  .phone {
    width: min(30rem, 100%);
    height: 100dvh;
    margin-inline: auto;
    border: 0;
    border-radius: 0;
    box-shadow: 0 0 0 1px rgb(26 23 20 / 0.06), 0 24px 48px -28px rgb(26 23 20 / 0.28);
  }
  .shell { padding-top: 0; }
}
