/* ================================================================
   هامون استایل — رابط تاریک و ساده
   رنگ‌ها همه در همین بلوک تعریف شده‌اند.
   ================================================================ */

:root{
  --bg:         #0E1012;
  --surface:    #16191D;
  --surface-2:  #1D2126;
  --surface-3:  #262B31;

  --text:       #E9ECEF;
  --muted:      #98A0A8;
  --faint:      #6E7780;

  --border:     #272C32;
  --border-2:   #343A42;

  --accent:     #D9A441;
  --accent-lit: #ECBB63;
  --accent-bg:  rgba(217,164,65,.12);

  --danger:     #E5707C;
  --ok:         #48A88C;

  --r-s: 8px;
  --r-m: 12px;
  --r-l: 16px;

  --w: 1060px;

  color-scheme: dark;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation: none !important; transition: none !important; }
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Vazirmatn, Tahoma, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3{ font-weight: 700; line-height: 1.4; margin: 0; }

a{ color: inherit; }

.wrap{ max-width: var(--w); margin-inline: auto; padding-inline: 20px; }
.wrap.narrow{ max-width: 640px; }

.skip{ position: absolute; inset-inline-start: -9999px; top: 0; background: var(--accent); color: #1A1305; padding: 10px 16px; z-index: 60; }
.skip:focus{ inset-inline-start: 12px; top: 12px; }

:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ================= نوار بالا ================= */
.bar{
  position: sticky; top: 0; z-index: 40;
  background: rgba(14,16,18,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.bar-in{ display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 64px; }

.mark{ display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark-logo{ height: 38px; width: 38px; object-fit: cover; border-radius: 50%; flex: none; }
.mark-t{ display: flex; flex-direction: column; line-height: 1.25; }
.mark-t b{ font-size: 1.1rem; font-weight: 700; }
.mark-t i{ font-style: normal; font-size: .74rem; color: var(--faint); }

.nav{ display: flex; align-items: center; gap: 4px; font-size: .92rem; }
.nav a{
  text-decoration: none; color: var(--muted);
  padding: 7px 12px; border-radius: var(--r-s);
  transition: color .15s ease, background .15s ease;
}
.nav a:hover{ color: var(--text); background: var(--surface-2); }

.nav a.tg{
  color: var(--accent); border: 1px solid var(--border-2);
  margin-inline-start: 6px;
}
.nav a.tg:hover{ background: var(--accent-bg); color: var(--accent-lit); }

@media (max-width: 680px){
  .bar-in{ height: 58px; gap: 8px; }
  .nav{ font-size: .84rem; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar{ display: none; }
  .nav a{ padding: 6px 9px; white-space: nowrap; }
  .nav a.tg{ order: -1; margin-inline-start: 0; }
  .mark{ flex: none; }
  .mark-t b{ font-size: 1rem; white-space: nowrap; }
  .mark-t i{ display: none; }
}

/* ================= بالای صفحه: ساعت‌های خالی ================= */
.board{
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding-block: clamp(40px, 6vw, 68px);
}
.board-in{
  display: grid; gap: clamp(28px, 5vw, 48px);
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
}
.board-text{ display: grid; gap: 20px; }

.board-media{
  border-radius: var(--r-l);
  overflow: hidden;
  border: 1px solid var(--border-2);
  aspect-ratio: 4 / 5;
}
.board-media img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

@media (max-width: 780px){
  .board-in{ grid-template-columns: 1fr; }
  .board-media{ order: -1; aspect-ratio: 3 / 4; max-height: 480px; }
}

.board-state{
  margin: 0; font-size: .86rem; color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
}
.board-state::before{
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}

.board-title{
  margin: 4px 0 0;
  font-size: clamp(1.8rem, 4.6vw, 2.9rem);
  max-width: 20ch; text-wrap: balance;
}
.board-date{ margin: 0; color: var(--muted); font-size: .95rem; }
.board-foot{ margin: 0; color: var(--faint); font-size: .88rem; }

/* ================= چیپ ساعت ================= */
.chips{ display: flex; flex-wrap: wrap; gap: 9px; }

.chip{
  font: inherit; font-size: .98rem; cursor: pointer;
  font-variant-numeric: tabular-nums;
  color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-s);
  padding: 9px 18px;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.chip:hover{ background: var(--surface-3); border-color: var(--accent); }
.chip[aria-pressed="true"]{ background: var(--accent); border-color: var(--accent); color: #1A1305; font-weight: 600; }

.chips-light .chip{ background: var(--bg); }
.chips-light .chip:hover{ background: var(--surface-2); }

/* ================= بخش‌ها ================= */
.sec{ padding-block: clamp(44px, 6vw, 72px); }
.sec-alt{ background: var(--surface); border-block: 1px solid var(--border); }

.sec-h{ font-size: clamp(1.3rem, 3vw, 1.7rem); margin-bottom: 6px; }
.lead{ margin: 0 0 20px; color: var(--muted); max-width: 60ch; }
.hint{ font-size: .85rem; color: var(--faint); margin: 4px 0 14px; }
.opt{ color: var(--faint); font-size: .82rem; }

/* ================= فهرست خدمات ================= */
.menu{ list-style: none; margin: 20px 0 0; padding: 0; max-width: 620px; }
.menu li{
  display: flex; align-items: baseline; gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}
.menu li:first-child{ border-top: 1px solid var(--border); }
.svc-name{ font-size: 1.04rem; font-weight: 600; }
.svc-dur{ font-size: .82rem; color: var(--faint); }
.menu .fill{ flex: 1; }
.price{ font-size: 1rem; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ================= مراحل ================= */
.steps{
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px;
  margin: 22px 0 18px; padding: 0; font-size: .88rem; color: var(--faint);
}
.steps li{ display: flex; align-items: center; gap: 8px; }
.steps li span{
  width: 26px; height: 26px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%; font-size: .8rem;
  background: var(--surface-2); color: var(--faint);
  border: 1px solid var(--border-2);
}
.steps li.past span{ background: var(--surface-3); color: var(--accent); border-color: var(--border-2); }
.steps li.on{ color: var(--text); }
.steps li.on span{ background: var(--accent); color: #1A1305; border-color: var(--accent); font-weight: 600; }

/* ================= کارت رزرو ================= */
.panel{
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: clamp(20px, 3.4vw, 34px);
}
.sec:not(.sec-alt) .panel{ background: var(--surface); }

/* ================= انتخاب‌ها ================= */
.grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.grid.days{ grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }

.pick{
  font: inherit; text-align: start; cursor: pointer; color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-m);
  padding: 14px 16px;
  display: grid; gap: 3px;
  transition: background .15s ease, border-color .15s ease;
}
.pick:hover{ background: var(--surface-3); border-color: var(--accent); }
.pick[aria-pressed="true"]{ background: var(--accent); color: #1A1305; border-color: var(--accent); }
.pick b{ font-weight: 600; font-size: 1rem; }
.pick small{ font-size: .82rem; color: var(--muted); }
.pick[aria-pressed="true"] small{ color: #5B4310; }
.pick.empty{ opacity: .4; cursor: not-allowed; }
.pick.empty:hover{ background: var(--surface-2); border-color: var(--border-2); }

/* ================= فرم ================= */
.fields{ display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px){ .fields{ grid-template-columns: 1fr; } }

label{ display: grid; gap: 6px; font-size: .88rem; color: var(--muted); }
label.full{ margin-top: 14px; }

input, select, textarea{
  font: inherit; color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-s);
  padding: 11px 13px;
  width: 100%;
  transition: border-color .15s ease;
}
input:focus, select:focus, textarea:focus{ border-color: var(--accent); }
select option{ background: var(--surface); color: var(--text); }
textarea{ resize: vertical; line-height: 1.75; }
input::placeholder, textarea::placeholder{ color: var(--faint); }

.bday{
  border: 1px solid var(--border);
  border-radius: var(--r-m);
  padding: 6px 16px 16px;
  margin: 18px 0 0;
}
.bday legend{ font-size: .9rem; color: var(--muted); padding-inline: 8px; }
.bday-row{ display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

.review{
  margin-top: 20px; padding: 16px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-m);
  font-size: .95rem;
}
.review span{ display: block; }

.actions{ display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; align-items: center; }
.inline{ display: flex; gap: 10px; flex-wrap: wrap; }
.inline input{ flex: 1 1 220px; }

.cta{
  font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer;
  background: var(--accent); color: #1A1305;
  border: 1px solid var(--accent); border-radius: var(--r-s);
  padding: 11px 26px;
  transition: background .15s ease;
}
.cta:hover{ background: var(--accent-lit); border-color: var(--accent-lit); }
.cta[disabled]{ opacity: .5; cursor: wait; }

.ghost{
  font: inherit; cursor: pointer; color: var(--muted);
  background: none; border: 1px solid var(--border-2);
  border-radius: var(--r-s); padding: 10px 18px;
  transition: color .15s ease, border-color .15s ease;
}
.ghost:hover{ color: var(--text); border-color: var(--border-2); background: var(--surface-2); }
.step > .ghost{ margin-top: 18px; }

.err{ color: var(--danger); font-size: .9rem; margin: 14px 0 0; }
.ok{ color: var(--ok); font-size: .9rem; margin: 14px 0 0; }

/* ================= تأیید ================= */
.done{ text-align: center; padding-block: 12px; }
.done h3{ font-size: 1.35rem; margin: 14px 0 6px; }
.tick{
  width: 56px; height: 56px; margin-inline: auto;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-bg);
  border: 1px solid var(--accent);
}
.tick svg{ width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }

/* ================= نوبت‌های من ================= */
.look-out{ margin-top: 20px; display: grid; gap: 10px; }
.appt{
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-m);
  padding: 14px 18px;
}
.appt b{ font-weight: 600; }
.appt .fill{ flex: 1; }
.appt small{ color: var(--muted); font-variant-numeric: tabular-nums; }
.appt button{
  font: inherit; font-size: .86rem; cursor: pointer;
  color: var(--danger); background: none;
  border: 1px solid var(--border-2); border-radius: var(--r-s);
  padding: 6px 14px;
  transition: border-color .15s ease, background .15s ease;
}
.appt button:hover{ border-color: var(--danger); background: rgba(229,112,124,.1); }

/* ================= پاورقی ================= */
.foot{
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding-block: 38px;
  font-size: .92rem;
}
.foot-in{ display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
.foot b{ color: var(--text); font-size: 1.06rem; display: block; margin-bottom: 8px; }
.foot p{ margin: 4px 0; }
.foot a{ color: var(--accent); text-underline-offset: 4px; }

/* ================= اعلان ================= */
.toast{
  position: fixed; inset-block-end: 20px; inset-inline-start: 20px;
  background: var(--surface-3); color: var(--text);
  border: 1px solid var(--border-2);
  padding: 12px 18px; border-radius: var(--r-m);
  box-shadow: 0 16px 36px -18px #000;
  z-index: 70; max-width: 340px;
}
