/* Skynor Salon — customer app. Builds on base.css tokens (auto dark mode). */

/* ---------- frame: one app column, centered on wide screens ---------- */
.capp { min-height: 100vh; }
.capp .ctop { padding-left: max(16px, calc(50% - 264px)); padding-right: max(16px, calc(50% - 264px)); }
.capp main.cmain { max-width: 560px; width: 100%; margin: 0 auto; padding: 16px 16px calc(var(--nav-h) + 96px + env(safe-area-inset-bottom)); }
.capp.is-flow main.cmain { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.ctabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; max-width: 560px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface); border-top: 1px solid var(--line);
}
@media (min-width: 600px) { .ctabs { border: 1px solid var(--line); border-bottom: 0; border-radius: 18px 18px 0 0; box-shadow: var(--shadow); } }
.ctab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.ctab.active { color: var(--ink); }
.ctab.active svg { color: var(--gold); }
@media (min-width: 900px) { #toast { bottom: calc(var(--nav-h) + 24px); } }

.d-block { display: block; }
.plain-link { display: block; color: inherit; }
.ok-text { color: var(--ok) !important; }
.row.static { cursor: default; }
.row.static:hover { background: transparent; }
.icon-btn.plain.back-round { flex: none; width: 40px; padding: 0; border-radius: 50%; }
.icon-btn.plain.sm-round { min-width: 34px; height: 34px; padding: 0; border-radius: 50%; color: var(--muted); }
.icon-btn.plain.sm-round svg { width: 16px; height: 16px; }
.btn.disabled, .btn[disabled] { opacity: .5; pointer-events: none; }
.avatar.big { width: 58px; height: 58px; font-size: 20px; }
.center-actions { justify-content: center; }
a.search { color: var(--muted); }

/* ---------- home ---------- */
.hero-greet { margin: 2px 0 12px; }
.hero-greet h1 { font-size: 26px; margin: 0; }
.h-scroll { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; }
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll > * { scroll-snap-align: start; flex: none; }

.offer-card {
  width: 216px; text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 14px;
  border-radius: 16px; border: 1px dashed var(--gold); background: var(--gold-soft); color: var(--ink); cursor: pointer;
}
.offer-card b { font-size: 17px; }
.offer-card .small { color: var(--muted); }
.offer-icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--plum-dark); color: #E5C07B; }
.offer-icon svg { width: 16px; height: 16px; }
.offer-code { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--gold); }
:root:not([data-theme="dark"]) .offer-code { color: #8A6A16; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .offer-code { color: var(--gold); } }

.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12px; line-height: 1.25; color: var(--ink); }
.cat-tile span {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--gold);
}
.cat-tile span svg { width: 26px; height: 26px; }
.cat-tile b { font-weight: 600; }

.pkg-card {
  width: 200px; display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 16px;
  background: linear-gradient(150deg, #4A3039, #2A1A22); color: #F5ECE6;
}
.pkg-card .small { color: #CDBBC2; }
.pkg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pkg-grid .pkg-card { width: auto; }
.pkg-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(229, 192, 123, .18); color: #E5C07B; }
.pkg-icon.big { width: 52px; height: 52px; border-radius: 16px; background: var(--gold-soft); color: var(--gold); }
.pkg-price { font-weight: 700; color: #E5C07B; font-size: 16px; }
.pkg-price s { font-weight: 500; font-size: 12px; color: #CDBBC2; margin-left: 4px; }
.pkg-price em { white-space: nowrap; display: inline-block; font-style: normal; font-size: 11px; background: #E5C07B; color: #2A1A22; border-radius: 6px; padding: 1px 6px; margin-left: 4px; }
.pkg-hero { display: flex; flex-direction: column; gap: 8px; }
.pkg-hero .pkg-price.big { color: var(--ink); font-size: 26px; }
.pkg-hero .pkg-price s { color: var(--muted); font-size: 14px; }

.refer-banner {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; color: var(--ink);
  background: var(--gold-soft); border: 1px solid var(--line);
}
.refer-icon { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--plum-dark); color: #E5C07B; }
.refer-icon.big { width: 60px; height: 60px; border-radius: 18px; margin: 0 auto; }
.refer-icon.big svg { width: 30px; height: 30px; }
.wallet-pill { display: flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; background: var(--surface); border-radius: 999px; padding: 6px 10px; flex: none; }
.wallet-pill svg { width: 16px; height: 16px; color: var(--gold); }

/* ---------- browse ---------- */
.cat-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.cat-row svg:last-child { color: var(--muted); width: 18px; height: 18px; }
.cat-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }
.cat-ic svg { width: 20px; height: 20px; }

.svc-row { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); }
.svc-row:first-child { border-top: 0; }
.svc-end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.add-btn {
  display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--gold); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 13px; cursor: pointer;
}
.add-btn svg { width: 15px; height: 15px; }
.add-btn.on { background: var(--plum-dark); border-color: var(--plum-dark); color: #E5C07B; }
:root[data-theme="dark"] .add-btn.on { background: var(--gold); border-color: var(--gold); color: #2A1A22; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .add-btn.on { background: var(--gold); border-color: var(--gold); color: #2A1A22; } }

/* Sticky bars: cart summary above the tabs, main CTA in checkout. */
.cart-bar, .cta-bar {
  position: fixed; left: 0; right: 0; z-index: 25; max-width: 560px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
}
.cart-bar {
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px); width: calc(100% - 24px);
  border-radius: 16px; background: var(--plum-dark); color: #F5ECE6; box-shadow: 0 8px 24px rgba(42, 26, 34, .35);
}
.cart-bar .small { color: #CDBBC2; }
.cta-bar { bottom: 0; padding-bottom: calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.cta-bar .btn { min-height: 52px; }

/* ---------- checkout flow ---------- */
.flow-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.flow-head.plain h1 { margin: 0; font-size: 20px; }
.stepper { display: flex; flex: 1; gap: 4px; min-width: 0; }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--muted); position: relative; min-width: 0; text-align: center; }
.step span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.step i {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 12px;
  border: 1.5px solid var(--line); background: var(--surface); z-index: 1;
}
.step i svg { width: 14px; height: 14px; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 12px; left: calc(50% + 14px); right: calc(-50% + 14px); height: 2px; background: var(--line); }
.step.done i { background: var(--gold-bright); border-color: var(--gold-bright); color: #2A1A22; }
.step.done::after { background: var(--gold-bright) !important; }
.step.on { color: var(--ink); font-weight: 600; }
.step.on i { border-color: var(--gold); color: var(--gold); }
.flow-title { font-size: 21px; margin: 4px 0 12px; }
.summary-mini { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 14px; }
.summary-mini span { color: var(--muted); }
.summary-mini b { text-align: right; }

.stylist-list { display: flex; flex-direction: column; gap: 10px; }
.stylist-card {
  display: flex; gap: 12px; align-items: center; text-align: left; padding: 14px; border-radius: 16px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
}
.stylist-card.on { border-color: var(--gold); background: var(--gold-soft); }
.stylist-card .avatar svg { color: var(--gold); }
.radio-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.stylist-card.on .radio-dot { border: 6px solid var(--gold); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.skill-tags span { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }

.date-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 8px; }
.date-strip::-webkit-scrollbar { display: none; }
.date-strip button {
  flex: none; width: 62px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 0;
  border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 11.5px; cursor: pointer;
}
.date-strip button b { font-size: 19px; color: var(--ink); }
.date-strip button.on { background: var(--plum-dark); border-color: var(--plum-dark); color: #CDBBC2; }
.date-strip button.on b { color: #E5C07B; }
:root[data-theme="dark"] .date-strip button.on { background: var(--gold); border-color: var(--gold); color: #2A1A22; }
:root[data-theme="dark"] .date-strip button.on b { color: #2A1A22; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .date-strip button.on { background: var(--gold); border-color: var(--gold); color: #2A1A22; }
  :root:not([data-theme="light"]) .date-strip button.on b { color: #2A1A22; }
}
.slot-legend { display: flex; gap: 14px; color: var(--muted); margin: 6px 0 4px; flex-wrap: wrap; }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 5px; vertical-align: -1px; border: 1px solid var(--ok); }
.lg.sel { background: var(--ok); }
.lg.full { background: var(--surface-2); border-color: var(--line); }
.slot-group { margin-top: 14px; }
.slot-title { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; }
.slot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 380px) { .slot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.slot {
  min-height: 42px; border-radius: 10px; border: 1px solid var(--ok); background: var(--surface); color: var(--ok);
  font-weight: 600; font-size: 13px; cursor: pointer; font-variant-numeric: tabular-nums;
}
.slot.on { background: var(--ok); color: #fff; }
:root[data-theme="dark"] .slot.on { color: #10251A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .slot.on { color: #10251A; } }
.slot.off { border-color: var(--line); background: var(--surface-2); color: var(--muted); text-decoration: line-through; cursor: not-allowed; opacity: .7; }

.review-card { display: flex; flex-direction: column; gap: 4px; }
.review-when { display: flex; align-items: center; gap: 8px; }
.review-when svg, .review-card .sub svg { width: 16px; height: 16px; color: var(--gold); vertical-align: -3px; }
.review-when .link { margin-left: auto; }
.card h2 svg { width: 18px; height: 18px; color: var(--gold); vertical-align: -3px; }
.coupon-row { display: flex; gap: 8px; margin-top: 10px; }
.coupon-row .input { min-height: 46px; text-transform: uppercase; }
.applied-coupon { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-size: 14px; flex-wrap: wrap; }
.applied-coupon svg { width: 16px; height: 16px; }
.applied-coupon .link { margin-left: auto; }
.field-err { color: var(--danger); font-size: 13px; margin-top: 6px; display: flex; gap: 6px; align-items: center; }
.field-err svg { width: 16px; height: 16px; flex: none; }
.toggle-row { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.toggle-row.muted { opacity: .6; }
.toggle-row b svg { width: 18px; height: 18px; color: var(--gold); vertical-align: -3px; }
.toggle-row input, .pay-opt input, .policy-box input { width: 22px; height: 22px; accent-color: var(--gold); flex: none; }
.pay-opt { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; margin-top: 10px; cursor: pointer; }
.pay-opt.on { border-color: var(--gold); background: var(--gold-soft); }
.price-line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14.5px; }
.price-line span { color: var(--muted); }
.price-line.ok b { color: var(--ok); }
.price-line.total { border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 10px; font-size: 16px; }
.price-line.total span { color: var(--ink); font-weight: 600; }
.price-line.now b { color: var(--gold); font-size: 17px; }
.policy-box { display: flex; gap: 10px; padding: 14px; border-radius: 14px; background: var(--surface-2); font-size: 14px; }
.policy-box > svg { color: var(--gold); flex: none; margin-top: 2px; }
.policy-box p { margin: 4px 0 10px; color: var(--muted); }
.policy-box .check { font-weight: 600; align-items: flex-start; }

/* payment sheet */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(20, 10, 15, .55); z-index: 60; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-width: 560px; margin: 0 auto;
  background: var(--surface); border-radius: 22px 22px 0 0; padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .25); animation: sheet-up .22s ease-out;
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-handle { width: 44px; height: 5px; border-radius: 999px; background: var(--line); margin: 0 auto 12px; }
.sheet h2 { margin: 0; }
.pay-amount { font-size: 34px; font-weight: 700; margin: 6px 0 12px; font-variant-numeric: tabular-nums; }
.upi-apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.upi-apps button {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 600;
}
.upi-apps button span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); font-weight: 800; }
.upi-apps button.on { border-color: var(--gold); background: var(--gold-soft); }

/* ---------- ticket ---------- */
.ticket { border-radius: 18px; background: linear-gradient(150deg, #4A3039, #2A1A22); color: #F5ECE6; box-shadow: var(--shadow); overflow: hidden; }
.ticket-top { display: flex; gap: 12px; padding: 16px; align-items: flex-start; }
.ticket .small { color: #CDBBC2; margin-top: 2px; }
.ticket .small b { color: #F5ECE6; }
.ticket .small svg { width: 14px; height: 14px; vertical-align: -2px; color: #E5C07B; }
.ticket-kicker { font-family: "Cormorant Garamond", serif; color: #E5C07B; letter-spacing: .08em; font-size: 15px; }
.ticket-date { font-size: 18px; font-weight: 700; margin: 2px 0 2px; }
.ticket-cut { position: relative; border-top: 2px dashed rgba(229, 192, 123, .35); margin: 0 14px; }
.ticket-cut::before, .ticket-cut::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); }
.ticket-cut::before { left: -26px; }
.ticket-cut::after { right: -26px; }
.ticket-bottom { display: flex; gap: 14px; align-items: center; padding: 16px; }
.ticket-qr { width: 104px; height: 104px; flex: none; background: #fff; border-radius: 12px; padding: 6px; }
.ticket-qr svg { width: 100%; height: 100%; display: block; }
.ticket-code { font-size: 22px; font-weight: 800; letter-spacing: .12em; color: #E5C07B; }
.ticket .badge { flex: none; }
.ticket-list { display: flex; flex-direction: column; gap: 10px; }
.ticket.compact .ticket-top { padding: 14px 16px; }

.done-hero { text-align: center; margin: 8px 0 16px; }
.done-hero h1 { margin: 10px 0 2px; }
.done-check { width: 64px; height: 64px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ok); color: #fff; animation: pop .35s ease-out; }
.done-check svg { width: 34px; height: 34px; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .done-check, .sheet { animation: none; } }

/* ---------- refer / wallet / profile ---------- */
.refer-hero { text-align: center; display: flex; flex-direction: column; gap: 6px; }
.refer-hero h2 { margin-top: 8px; }
.refer-hero .small { color: var(--muted); margin: 0; }
.ref-code {
  margin: 10px auto 4px; padding: 12px 22px; border-radius: 14px; border: 2px dashed var(--gold);
  font-size: 26px; font-weight: 800; letter-spacing: .16em; color: var(--ink); background: var(--gold-soft);
}
.steps-list { margin: 10px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.wallet-card .list .row { padding: 10px 0; }
.wallet-big { font-size: 22px; }
.profile-card { display: flex; gap: 14px; align-items: center; }

/* ---------- login ---------- */
.cust-login .login-card .sub { margin-bottom: 14px; }
.phone-input { display: flex; align-items: stretch; gap: 8px; }
.phone-input span { display: grid; place-items: center; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(229, 192, 123, .3); color: #E5C07B; font-weight: 600; }
.otp-input { text-align: center !important; font-size: 24px !important; letter-spacing: .5em; }
.login-gender .chip { background: rgba(255, 255, 255, .06); color: #F5ECE6; border-color: rgba(229, 192, 123, .3); }
.login-gender .chip.on { background: #E5C07B; color: #2A1A22; border-color: #E5C07B; }
.cust-login .link { color: #E5C07B; }
.cust-login .foot svg { width: 13px; height: 13px; vertical-align: -2px; }

.done-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.done-actions .btn { width: 100%; white-space: normal; text-align: center; }
