* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100vw;
  min-height: 100%;
  overflow-x: hidden;
  background: #0b0b0d;
  color: #f2efe9;
  font-family: -apple-system, "SF Pro Display", Inter, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(600px 380px at 15% 0%, #2a1f0a 0%, transparent 65%),
    radial-gradient(500px 400px at 95% 95%, #141a2a 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  margin: 0;
  padding: 12px 14px 20px;
}

@media (min-width: 501px) {
  .app-shell {
    max-width: 480px;
    margin: 0 auto;
  }
}

.shop-header {
  background: #141417;
  border: 1px solid #26262b;
  border-radius: 18px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, #d4a017, #8a6509);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 20px;
  color: #0b0b0d;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.brand-info {
  flex: 1;
  min-width: 0;
}

.brand-info h1 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tagline {
  color: #a9a49a;
  font-size: 12px;
  margin-top: 1px;
}

.open-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #0f2a18;
  color: #4ade80;
  border: 1px solid #1f5a33;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.open-pill.closed {
  background: #2a1215;
  color: #f87171;
  border-color: #5a1f24;
}

.open-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.shop-details {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #232329;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.detail-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #8c877e;
  font-weight: 700;
}

.detail-val {
  font-size: 12px;
  color: #dcd7ce;
  font-weight: 500;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  color: #f0c14b;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

/* Step Navigation */
.step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  background: #141417;
  border: 1px solid #26262b;
  border-radius: 14px;
  padding: 8px 12px;
}

.back-btn {
  background: #1f1f25;
  color: #f2efe9;
  border: 1px solid #303038;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.step-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #7c7870;
  font-weight: 600;
}

.sdot.active {
  color: #f0c14b;
  font-weight: 800;
}

.section-head {
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: 18px;
  font-weight: 800;
}

.section-head p {
  font-size: 12px;
  color: #a9a49a;
  margin-top: 1px;
}

/* Barber Cards */
.barbers-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.barber-card {
  background: #141417;
  border: 1px solid #26262b;
  border-radius: 16px;
  padding: 12px 13px;
  position: relative;
  overflow: hidden;
}

.barber-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--c, #d4a017);
}

.b-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 5px;
}

.b-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c, #d4a017);
  color: #0b0b0d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

.b-info {
  flex: 1;
  min-width: 0;
}

.b-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.b-name {
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.b-badge {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #1f1f25;
  color: #d7d2c8;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.b-badge.booksy {
  background: #271c36;
  color: #d8b4fe;
  border: 1px solid rgba(192, 132, 252, 0.3);
}

.b-badge.live {
  background: #2a1f0a;
  color: #f0c14b;
  border: 1px solid rgba(240, 193, 75, 0.3);
}

.b-sub {
  font-size: 12px;
  color: #a9a49a;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.b-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding: 6px 10px;
  margin-left: 5px;
  background: #1a1a1f;
  border-radius: 9px;
  font-size: 12px;
  color: #d7d2c8;
}

.b-meta span:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.b-meta .next-open {
  color: #4ade80;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.b-actions {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 8px;
  margin-top: 8px;
  padding-left: 5px;
}

.btn-gold {
  background: linear-gradient(135deg, #d4a017, #b38410);
  color: #0b0b0d;
  border: none;
  border-radius: 11px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.btn-gold:active {
  transform: scale(0.99);
}

.btn-secondary {
  background: #1f1f25;
  color: #f2efe9;
  border: 1px solid #32323c;
  border-radius: 11px;
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.btn-outline {
  background: transparent;
  color: #d7d2c8;
  border: 1px solid #32323c;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.btn-block {
  width: 100%;
}

/* Selected Barber Banner */
.selected-barber-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #141417;
  border: 1px solid #26262b;
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.selected-barber-banner .mini-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c, #d4a017);
  color: #0b0b0d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
}

.selected-barber-banner .mini-text {
  font-size: 14px;
  font-weight: 700;
}

.selected-barber-banner .mini-sub {
  font-size: 12px;
  color: #a9a49a;
}

/* Services List */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-item {
  background: #141417;
  border: 1px solid #26262b;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  color: inherit;
  width: 100%;
}

.service-item:hover,
.service-item:focus {
  border-color: #d4a017;
  background: #191815;
  outline: none;
}

.srv-name {
  font-size: 16px;
  font-weight: 700;
}

.srv-dur {
  font-size: 13px;
  color: #a9a49a;
  margin-top: 3px;
}

.srv-price {
  font-size: 16px;
  font-weight: 800;
  color: #f0c14b;
  background: #2a1f0a;
  padding: 6px 11px;
  border-radius: 10px;
  white-space: nowrap;
}

/* Date Strip & Time Slots */
.dates-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.date-chip {
  background: #141417;
  border: 1px solid #26262b;
  border-radius: 12px;
  padding: 9px 6px;
  text-align: center;
  cursor: pointer;
  color: #f2efe9;
}

.date-chip.active {
  background: #2a1f0a;
  border-color: #d4a017;
  color: #f0c14b;
}

.date-chip .dow {
  font-size: 11px;
  color: #a9a49a;
  text-transform: uppercase;
  font-weight: 700;
}

.date-chip.active .dow {
  color: #f0c14b;
}

.date-chip .dom {
  font-size: 15px;
  font-weight: 800;
  margin-top: 2px;
}

.times-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.time-slot-btn {
  background: #0f2a18;
  border: 1px solid #1f5a33;
  color: #4ade80;
  border-radius: 12px;
  padding: 12px 8px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
}

.time-slot-btn:hover,
.time-slot-btn:focus {
  border-color: #f0c14b;
  outline: none;
}

/* Summary & Form */
.summary-card {
  background: #141417;
  border: 1px solid #26262b;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.sum-row .k {
  color: #a9a49a;
}

.sum-row .v {
  font-weight: 700;
  text-align: right;
}

.form-card {
  background: #141417;
  border: 1px solid #26262b;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 700;
  color: #dcd7ce;
}

.field input,
.field select {
  background: #0e0e11;
  border: 1px solid #2e2e36;
  border-radius: 11px;
  padding: 12px 13px;
  color: #f2efe9;
  font-size: 15px;
  font-family: inherit;
}

.field input:focus,
.field select:focus {
  border-color: #d4a017;
  outline: none;
}

.field-hint {
  font-size: 11px;
  color: #8c877e;
  line-height: 1.35;
}

.error-box {
  background: #2a1215;
  border: 1px solid #5a1f24;
  color: #f87171;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

/* Success Screen */
.success-card {
  background: #141417;
  border: 1px solid #26262b;
  border-radius: 20px;
  padding: 22px 18px;
  text-align: center;
}

.check-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #0f2a18;
  border: 2px solid #4ade80;
  color: #4ade80;
  font-size: 28px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.check-circle.small {
  width: 44px;
  height: 44px;
  font-size: 22px;
}

.reminder-note {
  color: #f0c14b;
  font-size: 14px;
  font-weight: 600;
  margin: 6px 0 16px;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}

.modal-sheet {
  width: 100%;
  max-width: 450px;
  background: #16161a;
  border: 1px solid #2e2e36;
  border-radius: 22px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 19px;
  font-weight: 800;
}

.close-btn {
  background: #232329;
  color: #d7d2c8;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
}

.modal-sub {
  font-size: 13px;
  color: #a9a49a;
  margin-bottom: 10px;
}

#walkin-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.walkin-result {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 0;
}

.walkin-pos-text {
  font-size: 16px;
  font-weight: 700;
  color: #f0c14b;
}

.walkin-sms-note {
  font-size: 13px;
  color: #a9a49a;
  line-height: 1.4;
}

.client-footer {
  margin-top: 14px;
  text-align: center;
  font-size: 11px;
  color: #6f6a62;
}

.hidden {
  display: none !important;
}

html.tv body{max-width:820px;margin:0 auto;font-size:20px;padding-top:70px}
html.tv button,html.tv .btn-gold,html.tv .btn-secondary,html.tv input,html.tv select{font-size:22px;min-height:56px}
html.tv button:focus,html.tv input:focus,html.tv select:focus,html.tv [tabindex]:focus{outline:4px solid #f0c14b;outline-offset:2px}
#tv-bar{position:fixed;top:0;left:0;right:0;height:60px;display:flex;align-items:center;gap:18px;padding:0 20px;background:#0b0b0d;border-bottom:1px solid #26262b;z-index:50;color:#a9a49a}
#tv-bar button{background:#1c1c21;color:#f2efe9;border:1px solid #3a3a42;border-radius:12px;padding:8px 16px;font-weight:700}

.manage-open{margin-top:18px}
.manage-list{display:flex;flex-direction:column;gap:12px;margin:16px 0}
.appt-card{background:#141418;border:1px solid #2a2a31;border-radius:14px;padding:14px 16px}
.appt-card .appt-top{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.appt-card .appt-when{font-weight:800;color:#f0c14b;font-size:1.05em}
.appt-card .appt-who{color:#f2efe9}
.appt-card .appt-svc{color:#a9a49a;font-size:.92em;margin-top:2px}
.appt-actions{display:flex;gap:10px;margin-top:12px}
.appt-actions button{flex:1;min-height:44px;border-radius:10px;font-weight:700;border:1px solid #3a3a42;background:#1c1c21;color:#f2efe9}
.appt-actions button.danger{border-color:#7a2d2d;color:#ff9b9b}
.notice-box{background:#2a2213;border:1px solid #8a6a1a;color:#f5e2a8;border-radius:12px;padding:12px 14px;margin:10px 0;line-height:1.4}
.notice-box.locked{background:#2a1313;border-color:#8a1a1a;color:#ffb3b3}
.notice-box a{color:inherit;font-weight:800}
.ios-hint{margin-top:14px;background:#141418;border:1px dashed #3a3a42;border-radius:12px;padding:12px 14px;color:#cfcac0;font-size:.92em;line-height:1.45}
.share-ico{display:inline-block;border:1px solid #cfcac0;border-radius:4px;padding:0 5px;font-size:.9em}
.empty-note{color:#a9a49a;text-align:center;padding:10px}

.time-slot-btn{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px}
.time-slot-btn.tier-early,.time-slot-btn.tier-late{border-style:dashed;opacity:.9}
.time-slot-btn.tier-early{border-color:#c47a1a}
.time-slot-btn.tier-late{border-color:#6b4fd8}
.slot-fee{font-size:.72em;font-weight:700;color:#f5c66b;letter-spacing:.02em}
.tier-late .slot-fee{color:#b9a7ff}
.slot-legend{grid-column:1/-1;color:#a9a49a;font-size:.85em;margin-bottom:6px;line-height:1.4}
.tier-tag{font-size:.75em;font-weight:800;padding:1px 6px;border-radius:6px;border:1px dashed}
.tier-tag.early{color:#f5c66b;border-color:#c47a1a}.tier-tag.late{color:#b9a7ff;border-color:#6b4fd8}
.tier-tag.holiday{color:#111;background:#f0c14b;border-color:#f0c14b;border-style:solid}
.time-slot-btn.tier-holiday{border-color:#d4a017;background:#1f1a0d}
.tier-holiday .slot-fee{color:#f0c14b}
.notice-box.holiday-box{background:#251d0b;border:1px solid #d4a017;color:#f7e6b5}
.date-chip.holiday-chip{border-color:#d4a017}
.date-chip .hol-tag{font-size:10px;font-weight:800;color:#f0c14b;margin-top:2px;letter-spacing:.02em}
.sum-row.fee-row .v{color:#f5c66b;font-weight:800}

.subs{margin-top:28px;padding-top:22px;border-top:1px solid #23232a}
.subs-kicker{display:inline-block;font-size:.7em;letter-spacing:.22em;font-weight:800;color:#C9A77C;border:1px solid #C9A77C;border-radius:999px;padding:3px 10px}
.subs-head h3{margin:10px 0 4px;font-size:1.35em;color:#f2efe9}
.subs-head p{color:#a9a49a;margin:0 0 14px;line-height:1.45}
.subs-tiers{display:flex;flex-direction:column;gap:12px}
.sub-card{position:relative;background:#141418;border:1px solid #2a2a31;border-radius:16px;padding:16px}
.sub-card.featured{border-color:#C9A77C;box-shadow:0 0 0 1px #C9A77C33 inset}
.sub-tag{position:absolute;top:-10px;right:14px;background:#C9A77C;color:#111;font-size:.68em;font-weight:900;letter-spacing:.14em;padding:3px 9px;border-radius:999px}
.sub-name{font-weight:800;color:#f2efe9;font-size:1.05em}
.sub-price{font-size:1.9em;font-weight:900;color:#f0c14b;margin:4px 0}
.sub-price span{font-size:.45em;color:#a9a49a;font-weight:600;margin-left:2px}
.sub-blurb{color:#cfcac0;font-size:.92em;line-height:1.4;margin-bottom:12px}
.sub-join{width:100%;min-height:44px;border-radius:10px;border:1px solid #C9A77C;background:transparent;color:#C9A77C;font-weight:800}
.sub-join:disabled{opacity:.7;background:#1c1c21}

/* 10/26: 2 weeks shown by default, rest behind "More dates" */
.date-chip.hidden { display: none; }
.date-chip.more-dates { border-style: dashed; color: #C9A77C; }
