/* ============================================================
   Fade & Blade Barber Co. — booking demo
   Dark charcoal + amber/gold + cream. Oswald display / Inter Tight body.
   Sharp corners, gold hairlines, barber-pole motif, snappy kinetic motion.
   ============================================================ */

:root {
  --ink:        #16130f;   /* page base */
  --panel:      #1f1a14;   /* widget / cards */
  --panel-2:    #262019;   /* raised card */
  --panel-3:    #2e271e;   /* hover / selected wash */
  --line:       rgba(224,167,59,.16);   /* gold hairline */
  --line-soft:  rgba(243,237,225,.09);  /* neutral hairline */

  --gold:       #E0A73B;
  --gold-2:     #c98f2a;
  --gold-deep:  #a9741d;
  --cream:      #f3ede1;
  --cream-mut:  #c7bba6;   /* muted body copy — 4.5:1+ on dark */
  --cream-dim:  #8f8570;   /* labels / meta */

  --ok:         #6fbf7a;
  --danger:     #f0705f;

  --ink-on-gold: #1a1409;

  --r:   4px;              /* sharp corners */
  --r-sm: 3px;
  --r-lg: 6px;

  --shadow: 0 20px 44px -22px rgba(0,0,0,.85), 0 4px 14px -8px rgba(0,0,0,.6);
  --shadow-sel: 0 0 0 1px var(--gold), 0 10px 26px -14px rgba(224,167,59,.5);

  --e-out: cubic-bezier(.2,.75,.3,1);
  --t: 170ms var(--e-out);

  --maxw: 660px;
}

* { box-sizing: border-box; }

/* [hidden] must win over display rules set on .btn / .powered / etc. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(224,167,59,.10), transparent 60%),
    radial-gradient(90% 60% at 100% 0%, rgba(201,143,42,.06), transparent 55%),
    var(--ink);
  color: var(--cream);
  font-family: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  min-height: 100vh;
}

/* faint diagonal barber-pole texture in the far background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .04;
  background-image: repeating-linear-gradient(45deg, var(--gold) 0 2px, transparent 2px 22px);
}

img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px clamp(14px, 4vw, 30px);
  background: rgba(14,12,9,.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--cream);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--gold);
  background: linear-gradient(160deg, rgba(224,167,59,.16), rgba(224,167,59,.04));
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.brand-sub {
  font-size: 10px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
  font-weight: 600;
}

.topbar-right { display: flex; align-items: center; gap: 14px; }

/* rotating barber pole */
.pole {
  width: 12px;
  height: 34px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0e0c09;
  position: relative;
  flex: none;
}
.pole-inner {
  position: absolute;
  inset: -50% -20%;
  background: repeating-linear-gradient(
    115deg,
    var(--gold) 0 5px,
    #1a1611 5px 10px,
    var(--cream) 10px 15px,
    #1a1611 15px 20px
  );
  animation: poleSpin 1.6s linear infinite;
}
@keyframes poleSpin { to { transform: translateY(-20px); } }

.phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--cream);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: .01em;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(224,167,59,.05);
  transition: border-color var(--t), background var(--t), transform 120ms var(--e-out);
}
.phone svg { width: 15px; height: 15px; color: var(--gold); }
.phone:hover { border-color: rgba(224,167,59,.5); background: rgba(224,167,59,.1); }
.phone:active { transform: translateY(1px); }

.powered {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.powered b { color: var(--gold); font-weight: 700; }

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 40px) clamp(14px, 4vw, 22px) 40px;
}

/* ============================================================
   HERO STRIP
   ============================================================ */
.hero { text-align: center; margin-bottom: clamp(20px, 3.5vw, 30px); }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  font-size: 11.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.he-line { width: 26px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.hero-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
  font-size: clamp(38px, 9vw, 62px);
  line-height: .95;
  margin: 0 0 12px;
  color: var(--cream);
}
.hero-sub {
  margin: 0 auto 18px;
  max-width: 44ch;
  color: var(--cream-mut);
  font-size: 15.5px;
}
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(38,32,25,.7);
  color: var(--cream);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .01em;
}
.chip svg { width: 14px; height: 14px; color: var(--gold); flex: none; }

/* ============================================================
   WIDGET SHELL
   ============================================================ */
.widget {
  position: relative;
  background: linear-gradient(180deg, var(--panel), #1b160f);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3.4vw, 26px);
  padding-left: clamp(20px, 3.4vw, 28px);
  overflow: hidden;
}
/* barber-pole stripe on the widget's left edge */
.widget-stripe {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 5px;
  background: repeating-linear-gradient(
    -45deg,
    var(--gold) 0 6px,
    var(--gold-deep) 6px 12px
  );
  background-size: 100% 200%;
  animation: stripe 2.4s linear infinite;
  opacity: .9;
}
@keyframes stripe { to { background-position: 0 -34px; } }

.widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.wh-title { display: flex; flex-direction: column; gap: 3px; }
.wh-kicker {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 17px;
  color: var(--cream);
}
.wh-sub { font-size: 12px; color: var(--cream-dim); letter-spacing: .02em; }

.restart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--cream-mut);
  background: transparent;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  cursor: pointer;
  transition: color var(--t), border-color var(--t);
}
.restart svg { width: 14px; height: 14px; }
.restart:hover { color: var(--gold); border-color: rgba(224,167,59,.4); }

/* ---------- stepper ---------- */
.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}
.st { display: flex; align-items: center; gap: 8px; min-width: 0; }
.st-dot {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-soft);
  background: var(--panel-2);
  color: var(--cream-dim);
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 13px;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
}
.st-lb {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--cream-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--t);
}
.st.is-current .st-dot {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink-on-gold);
  transform: scale(1.06);
}
.st.is-current .st-lb { color: var(--cream); }
.st.is-done .st-dot {
  background: rgba(224,167,59,.16);
  border-color: rgba(224,167,59,.5);
  color: var(--gold);
}
.st.is-done .st-lb { color: var(--cream-mut); }

/* ---------- progress (barber-pole fill) ---------- */
.progress {
  height: 6px;
  border-radius: 999px;
  background: #120f0b;
  border: 1px solid var(--line-soft);
  overflow: hidden;
  margin-bottom: 18px;
}
.progress-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: repeating-linear-gradient(
    -45deg,
    var(--gold) 0 7px,
    var(--gold-2) 7px 14px
  );
  background-size: 200% 100%;
  animation: poleSlide 1.1s linear infinite;
  transition: width 340ms var(--e-out);
}
@keyframes poleSlide { to { background-position: -28px 0; } }

/* ============================================================
   PANELS + horizontal slide
   ============================================================ */
.panels { position: relative; }
.panel:focus { outline: none; }
.panel.is-active { animation: slideIn 190ms var(--e-out) both; }
.panel.is-active.is-back { animation: slideBack 190ms var(--e-out) both; }
@keyframes slideIn  { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes slideBack{ from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }

.panel-h {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: clamp(21px, 5vw, 26px);
  margin: 0 0 5px;
  color: var(--cream);
}
.panel-p { margin: 0 0 16px; color: var(--cream-mut); font-size: 14px; }

/* ============================================================
   STEP 1 — SERVICE CARDS
   ============================================================ */
.svcs { display: grid; gap: 9px; }
.svc {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr auto 22px;
  align-items: center;
  gap: 13px;
  width: 100%;
  text-align: left;
  padding: 13px 15px;
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  color: var(--cream);
  cursor: pointer;
  transition: border-color var(--t), background var(--t), transform 120ms var(--e-out);
}
.svc:hover { border-color: rgba(224,167,59,.45); background: var(--panel-3); transform: translateY(-1px); }
.svc:active { transform: translateY(0) scale(.995); }
.svc-ic {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  color: var(--gold);
  background: rgba(224,167,59,.08);
  border: 1px solid var(--line);
}
.svc-ic svg { width: 23px; height: 23px; }
.svc-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.svc-name {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: 16px;
}
.svc-meta { font-size: 12.5px; color: var(--cream-dim); }
.svc-price {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--gold);
  white-space: nowrap;
}
.svc-check {
  display: grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  color: transparent;
  transition: all var(--t);
}
.svc-check svg { width: 13px; height: 13px; }

.svc.is-sel {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(224,167,59,.12), var(--panel-3));
  box-shadow: var(--shadow-sel);
  animation: snap 200ms var(--e-out);
}
.svc.is-sel .svc-check { background: var(--gold); border-color: var(--gold); color: var(--ink-on-gold); }
@keyframes snap { 0% { transform: scale(.975); } 55% { transform: scale(1.012); } 100% { transform: scale(1); } }

/* "most booked" flag */
.svc-hot { grid-template-columns: 44px 1fr auto 22px; }
.svc-flag {
  position: absolute;
  top: -8px; left: 58px;
  font-family: 'Oswald', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 3px 8px;
  color: var(--ink-on-gold);
  background: var(--gold);
  border-radius: 999px;
}

/* ============================================================
   STEP 2 — BARBERS
   ============================================================ */
.barbers { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.barber {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: left;
  padding: 12px 13px;
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  color: var(--cream);
  cursor: pointer;
  transition: border-color var(--t), background var(--t), transform 120ms var(--e-out);
}
.barber:hover { border-color: rgba(224,167,59,.45); background: var(--panel-3); transform: translateY(-1px); }
.barber:active { transform: translateY(0) scale(.995); }
.barber-av {
  width: 46px; height: 46px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--panel-3);
  border: 1px solid var(--line);
  flex: none;
  position: relative;
}
.barber-av img { width: 100%; height: 100%; object-fit: cover; }
.barber-av.fallback {
  display: grid; place-items: center;
  color: var(--gold);
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .04em;
}
.barber-av.any { display: grid; place-items: center; color: var(--gold); background: rgba(224,167,59,.08); }
.barber-av.any svg { width: 24px; height: 24px; }
.barber-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.barber-name {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: 14.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.barber-spec { font-size: 11.5px; color: var(--cream-dim); line-height: 1.35; }
.barber-rate {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold);
  align-self: flex-end;
  padding-bottom: 1px;
}
.barber-rate svg { width: 12px; height: 12px; }
.barber-check {
  position: absolute;
  top: 8px; right: 8px;
  display: grid; place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--ink-on-gold);
  opacity: 0;
  transform: scale(.6);
  transition: opacity var(--t), transform var(--t);
}
.barber-check svg { width: 12px; height: 12px; }
.barber.is-sel {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(224,167,59,.12), var(--panel-3));
  box-shadow: var(--shadow-sel);
  animation: snap 200ms var(--e-out);
}
.barber.is-sel .barber-check { opacity: 1; transform: scale(1); }

.barber-any {
  grid-template-columns: 46px 1fr auto;
  margin-top: 9px;
}
.barber-any .barber-check { position: static; }

/* ============================================================
   STEP 3 — CALENDAR
   ============================================================ */
.cal {
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 13px 13px 11px;
}
.cal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-month {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: 16px;
  color: var(--cream);
}
.cal-nav { display: flex; gap: 6px; }
.cal-navbtn {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-soft);
  background: var(--panel-3);
  color: var(--cream);
  cursor: pointer;
  transition: border-color var(--t), color var(--t), background var(--t), transform 120ms var(--e-out);
}
.cal-navbtn svg { width: 15px; height: 15px; }
.cal-navbtn:hover:not([disabled]) { border-color: rgba(224,167,59,.5); color: var(--gold); }
.cal-navbtn:active:not([disabled]) { transform: scale(.92); }
.cal-navbtn[disabled] { opacity: .3; cursor: not-allowed; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow {
  text-align: center;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cream-dim);
  padding-bottom: 4px;
  font-weight: 600;
}
.cal-day {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: var(--panel);
  color: var(--cream);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 130ms var(--e-out), background 130ms var(--e-out), color 130ms var(--e-out), transform 110ms var(--e-out);
}
.cal-day.pad { background: transparent; border: none; cursor: default; }
.cal-day:hover:not(.is-past):not(.is-full):not(.pad) {
  border-color: rgba(224,167,59,.55);
  background: var(--panel-3);
  transform: translateY(-1px);
}
.cal-day:active:not(.is-past):not(.is-full):not(.pad) { transform: scale(.94); }
.cal-day.is-today { border-color: var(--line); color: var(--gold); font-weight: 600; }
.cal-day.is-past { color: #574f42; cursor: not-allowed; }
.cal-day.is-full {
  color: #6a5f4c;
  cursor: not-allowed;
  background: repeating-linear-gradient(-45deg, #211b14 0 5px, #1a150f 5px 10px);
}
.cal-day .cal-tag {
  position: absolute;
  bottom: 2px;
  font-size: 7px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #8a7a5c;
  font-weight: 600;
}
.cal-day.is-sel {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink-on-gold);
  font-weight: 700;
  transform: none;
  animation: snap 200ms var(--e-out);
}
.cal-legend {
  display: flex;
  gap: 16px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 11px;
  color: var(--cream-dim);
}
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg-dot { width: 9px; height: 9px; border-radius: 2px; }
.lg-open { background: var(--gold); }
.lg-full { background: repeating-linear-gradient(-45deg, #3a3122 0 3px, #241d14 3px 6px); }

/* ---------- slots ---------- */
.slotwrap { margin-top: 14px; }
.slot-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.slot-title { font-size: 13px; color: var(--cream-mut); }
.slot-count {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 7px; }
.slot {
  padding: 11px 8px;
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  color: var(--cream);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: border-color var(--t), background var(--t), color var(--t), transform 110ms var(--e-out);
  animation: slotIn 240ms var(--e-out) both;
}
@keyframes slotIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.slot:hover:not([disabled]) { border-color: rgba(224,167,59,.55); background: var(--panel-3); transform: translateY(-1px); }
.slot:active:not([disabled]) { transform: scale(.95); }
.slot.is-sel {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink-on-gold);
  animation: snap 200ms var(--e-out);
}
.slot[disabled] {
  color: #6a5f4c;
  cursor: not-allowed;
  background: repeating-linear-gradient(-45deg, #211b14 0 5px, #1a150f 5px 10px);
}
.slot .slot-x {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8a7a5c;
  margin-top: 2px;
}

/* ============================================================
   STEP 4 — FORM
   ============================================================ */
.form { display: grid; gap: 13px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--cream-mut);
}
.field label .opt { color: var(--cream-dim); font-weight: 500; text-transform: none; letter-spacing: 0; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 13px;
  background: #14100b;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  color: var(--cream);
  font: inherit;
  font-size: 15px;
  transition: border-color var(--t), box-shadow var(--t);
}
.field textarea { resize: vertical; min-height: 58px; }
.field input::placeholder, .field textarea::placeholder { color: #6d6350; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(224,167,59,.16);
}
.err { font-size: 11.5px; color: var(--danger); min-height: 0; display: none; }
.field.has-err input, .field.has-err textarea { border-color: var(--danger); }
.field.has-err .err { display: block; animation: errIn 160ms var(--e-out); }
@keyframes errIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

/* ============================================================
   STEP 5 — CONFIRMATION
   ============================================================ */
.panel-confirm { text-align: center; }
.confirm-top { padding: 6px 0 4px; position: relative; }

.confirm-pole {
  display: block;
  width: 20px;
  height: 46px;
  margin: 0 auto 14px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0e0c09;
  position: relative;
}
.cp-inner {
  position: absolute;
  inset: -40% -30%;
  background: repeating-linear-gradient(115deg, var(--gold) 0 6px, #1a1611 6px 12px, var(--cream) 12px 18px, #1a1611 18px 24px);
  animation: poleSpin 1.3s linear infinite;
}

.check { display: inline-grid; place-items: center; margin-bottom: 12px; }
.check svg { width: 62px; height: 62px; }
.check-c {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: drawC 500ms var(--e-out) forwards;
}
.check-m {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 44;
  stroke-dashoffset: 44;
  animation: drawM 320ms var(--e-out) 360ms forwards;
}
@keyframes drawC { to { stroke-dashoffset: 0; } }
@keyframes drawM { to { stroke-dashoffset: 0; } }

.confirm-h {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
  font-size: clamp(26px, 6vw, 34px);
  line-height: 1;
  margin: 0 0 8px;
  color: var(--cream);
}
.confirm-p { margin: 0 auto 12px; max-width: 40ch; color: var(--cream-mut); font-size: 14.5px; }
.confirm-ref {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  letter-spacing: .18em;
  font-size: 13px;
  color: var(--gold);
  padding: 6px 14px;
  border: 1px dashed rgba(224,167,59,.5);
  border-radius: var(--r);
  margin-bottom: 20px;
}

.summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  overflow: hidden;
  text-align: left;
  margin-bottom: 22px;
}
.sm-cell { background: var(--panel-2); padding: 12px 14px; }
.sm-k {
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 4px;
  font-weight: 600;
}
.sm-v { font-size: 15px; font-weight: 600; color: var(--cream); }
.sm-v.gold { color: var(--gold); font-family: 'Oswald', sans-serif; letter-spacing: .02em; }

/* ---------- OWNIT loop ---------- */
.loop-head { text-align: left; margin-bottom: 12px; }
.loop-title {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 14px;
  color: var(--cream);
}
.loop-sub { display: block; font-size: 12px; color: var(--cream-dim); margin-top: 2px; }
.loop { display: grid; gap: 9px; text-align: left; margin-bottom: 22px; }
.loop-item {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 320ms var(--e-out), transform 320ms var(--e-out);
}
.loop-item.show { opacity: 1; transform: none; }
.loop-ic {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  color: var(--gold);
  background: rgba(224,167,59,.1);
  border: 1px solid var(--line);
}
.loop-ic svg { width: 18px; height: 18px; }
.loop-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.loop-tx b { font-size: 13.5px; font-weight: 600; color: var(--cream); }
.loop-tx span { font-size: 12px; color: var(--cream-mut); line-height: 1.35; }
.loop-flag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ok);
  white-space: nowrap;
}
.loop-flag .fdot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(111,191,122,.18); }

/* ---------- confirm actions ---------- */
.confirm-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.confirm-actions .btn { flex: 1 1 160px; justify-content: center; }

/* ============================================================
   BUTTONS + FOOTER NAV
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r);
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--t), border-color var(--t), color var(--t), transform 110ms var(--e-out), box-shadow var(--t);
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: var(--gold);
  color: var(--ink-on-gold);
  box-shadow: 0 8px 22px -12px rgba(224,167,59,.7);
}
.btn-primary:hover { background: #ecb44a; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0) scale(.985); }
.btn-primary[disabled] { background: #4a3f2a; color: #8b7d61; box-shadow: none; cursor: not-allowed; }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: rgba(224,167,59,.5); color: var(--gold); }
.btn-ghost:active { transform: scale(.985); }
.btn-back {
  background: transparent;
  color: var(--cream-mut);
  border-color: var(--line-soft);
  padding: 12px 16px;
}
.btn-back:hover { color: var(--gold); border-color: rgba(224,167,59,.4); }
.btn-back:active { transform: scale(.98); }

.widget-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.foot-spacer { flex: 1; }
.foot-hint { font-size: 12.5px; color: var(--cream-dim); }

/* ============================================================
   FOOTER LINE
   ============================================================ */
.foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 26px;
  font-size: 12px;
  color: var(--cream-dim);
  text-align: center;
}
.foot b { color: var(--gold); font-weight: 700; }
.foot-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(111,191,122,.16); flex: none; }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(16px);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 17px;
  background: #221c14;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--cream);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  z-index: 60;
  transition: opacity 200ms var(--e-out), transform 200ms var(--e-out);
}
.toast svg { width: 16px; height: 16px; color: var(--gold); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 560px) {
  .powered { display: none; }
  .st-lb { display: none; }
  .stepper { grid-template-columns: repeat(4, auto); justify-content: space-between; }
  .barbers { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 40px 1fr auto; }
  .svc-check { display: none; }
  .svc-ic { width: 40px; height: 40px; }
}
@media (max-width: 400px) {
  .phone span { display: none; }
  .phone { padding: 8px; }
  .hero-title { font-size: 40px; }
  .widget { padding: 15px; padding-left: 17px; }
  .slots { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
}

/* ============================================================
   REDUCED MOTION — calm fallback, nothing gated invisible
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .pole-inner, .cp-inner, .widget-stripe, .progress-fill { animation: none !important; }
  .panel.is-active, .panel.is-active.is-back { animation: none !important; }
  .check-c, .check-m { stroke-dashoffset: 0 !important; animation: none !important; }
  .loop-item { opacity: 1 !important; transform: none !important; transition: none !important; }
  .slot { animation: none !important; }
}
