/* Checkout v5 — light trust palette, aligned with landing pages */

/* Checkout-only scroll perf: single document scroll (no nested scrollport on .co-page) */
html:has(.co-page),
body:has(.co-page) {
  overflow-x: hidden;
  scroll-behavior: auto;
}

/* ===== Design system (.co-*) ===== */
.co-page {
  --co-primary: #006a62;
  --co-primary-deep: #004e48;
  --co-accent: #14b8a6;
  --co-bg: #f7faf9;
  --co-bg-grad: linear-gradient(180deg, #ecfdf5 0%, #f7faf9 60%);
  --co-surface: #ffffff;
  --co-line: rgba(0, 106, 98, 0.10);
  --co-text: #0a1f1d;
  --co-text-soft: #4b5a58;
  --co-shadow-lg: 0 20px 60px -12px rgba(0, 106, 98, 0.18),
                  0 8px 24px -8px rgba(0, 0, 0, 0.06);
  --co-radius: 1.25rem;
  --co-radius-lg: 1.75rem;

  position: relative;
  min-height: 100vh;
  padding: 6.5rem 1.25rem 8rem;
  background: var(--co-bg-grad);
  color: var(--co-text);
}

.co-page .co-glow {
  animation: none;
  filter: blur(80px);
}

@media (min-width: 768px) {
  .co-page {
    padding: 7rem 2rem 9rem;
  }
}

.co-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.co-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
}

.co-glow--1 {
  width: 32rem;
  height: 32rem;
  background: rgba(20, 184, 166, 0.35);
  top: -8rem;
  right: -8rem;
  animation: coFloat 12s ease-in-out infinite;
}

.co-glow--2 {
  width: 24rem;
  height: 24rem;
  background: rgba(0, 106, 98, 0.30);
  bottom: -6rem;
  left: -6rem;
  animation: coFloat 14s ease-in-out infinite reverse;
}

@keyframes coFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(24px, -32px); }
}

.co-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 106, 98, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 106, 98, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.co-header {
  position: relative;
  z-index: 1;
  max-width: 72rem;
  margin: 0 auto 2rem;
  text-align: center;
}

@media (min-width: 1024px) {
  .co-header {
    text-align: right;
    margin-bottom: 2.5rem;
  }
}

.co-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(0, 106, 98, 0.08);
  color: var(--co-primary);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.co-pulse {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: coPulse 2s infinite;
}

@keyframes coPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.co-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  color: var(--co-text);
}

.co-title-accent {
  color: var(--co-primary);
}

.co-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--co-text-soft);
  margin: 0;
  max-width: 36rem;
}

@media (min-width: 1024px) {
  .co-sub { margin-inline-start: 0; }
}

.co-layout {
  position: relative;
  z-index: 1;
  max-width: 72rem;
  margin-inline: auto;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 1024px) {
  .co-layout {
    grid-template-columns: minmax(0, 1fr) 22rem;
    gap: 2rem;
  }
}

.co-main,
.co-summary-rail {
  background: var(--co-surface);
  border: 1px solid var(--co-line);
  border-radius: var(--co-radius-lg);
  box-shadow: var(--co-shadow-lg);
  padding: clamp(1.25rem, 2vw, 2rem);
}

@media (min-width: 1024px) {
  .co-summary-rail {
    position: sticky;
    top: 6rem;
    align-self: start;
  }
}

.co-summary-rail-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--co-text);
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--co-line);
}

.co-rail-items {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.co-rail-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.co-rail-item-title {
  flex: 1;
  font-weight: 600;
  color: var(--co-text);
}

.co-rail-item-price {
  font-weight: 700;
  color: var(--co-primary);
  white-space: nowrap;
}

.co-rail-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-top: 2px solid var(--co-line);
  margin-bottom: 1.25rem;
}

.co-rail-total-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--co-text-soft);
}

.co-rail-total-amount {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: var(--co-primary);
}

.co-trust-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.co-trust-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--co-text-soft);
  padding: 0.5rem 0.75rem;
  background: rgba(0, 106, 98, 0.05);
  border-radius: 0.75rem;
}

.co-trust-pill svg {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  color: var(--co-primary);
}

.co-rail-support {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--co-line);
  font-size: 0.8rem;
  color: var(--co-text-soft);
  line-height: 1.6;
}

.co-rail-support a {
  color: var(--co-primary);
  font-weight: 600;
  text-decoration: none;
}

.co-rail-support a:hover {
  text-decoration: underline;
}

.co-rail-empty {
  font-size: 0.875rem;
  color: var(--co-text-soft);
  text-align: center;
  padding: 1rem 0;
}

/* Pay mode select page */
.co-pay-page {
  position: relative;
  min-height: 100vh;
  padding: 6.5rem 1.25rem 4rem;
  background: var(--co-bg-grad, linear-gradient(180deg, #ecfdf5 0%, #f7faf9 60%));
  overflow-x: hidden;
}

.co-pay-page .co-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.co-pay-inner {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  margin-inline: auto;
}

.co-pay-card {
  background: #fff;
  border: 1px solid rgba(0, 106, 98, 0.10);
  border-radius: 1.75rem;
  box-shadow: 0 20px 60px -12px rgba(0, 106, 98, 0.18);
  padding: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  text-align: center;
}

.co-pay-card:hover {
  border-color: rgba(0, 106, 98, 0.35);
  box-shadow: 0 12px 32px -8px rgba(0, 106, 98, 0.2);
  transform: translateY(-2px);
}

.co-pay-card--selected {
  border-color: var(--co-primary, #006a62) !important;
  background: linear-gradient(135deg, #ecfdf5, #f0faf9) !important;
  box-shadow: 0 0 0 3px rgba(0, 106, 98, 0.18) !important;
  transform: translateY(-2px);
}

.co-pay-card--selected .co-pay-check {
  display: flex !important;
}

.co-pay-check {
  display: none;
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--co-primary, #006a62);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  align-items: center;
  justify-content: center;
}

.co-reveal {
  animation: checkoutFadeIn 0.4s ease both;
}

/* Complete page inside site layout */
.co-complete-wrap {
  position: relative;
  min-height: 60vh;
  padding: 6.5rem 1.25rem 4rem;
  background: linear-gradient(180deg, #ecfdf5 0%, #f7faf9 60%);
}

.co-complete-wrap .co-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.co-complete-inner {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  margin-inline: auto;
}

/* ===== Checkout v4 — spacious, mobile-first, RTL-friendly ===== */

.checkout-wrap {
  width: 100%;
  max-width: 100%;
  padding-bottom: 0;
}

/* Progress bar */
.checkout-progress {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  margin-bottom: 1.75rem;
  padding: 0;
}

.checkout-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  min-width: 0;
}

.checkout-progress-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px;
  inset-inline-start: 50%;
  width: 100%;
  height: 3px;
  background: #e5e7eb;
  z-index: 0;
  border-radius: 2px;
}

.checkout-progress-step.done:not(:last-child)::after {
  background: linear-gradient(90deg, var(--co-primary, #006a62), var(--co-accent, #14b8a6));
}

.checkout-progress-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #888;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.checkout-progress-step.active .checkout-progress-dot,
.checkout-progress-step.done .checkout-progress-dot {
  background: linear-gradient(135deg, var(--co-primary, #006a62), var(--co-primary-deep, #004e48));
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 106, 98, 0.3);
}

.checkout-progress-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #888;
  margin-top: 6px;
  text-align: center;
  line-height: 1.35;
  max-width: 5.5rem;
}

@media (min-width: 480px) {
  .checkout-progress-label {
    font-size: 0.75rem;
    max-width: none;
    white-space: nowrap;
  }
}

.checkout-progress-step.active .checkout-progress-label {
  color: var(--co-primary, #006a62);
  font-weight: 700;
}

.checkout-progress-step.done .checkout-progress-label {
  color: var(--co-primary, #006a62);
}

/* Step panels */
.checkout-panel {
  display: none;
  width: 100%;
  animation: checkoutFadeIn 0.25s ease;
}

.checkout-panel.active {
  display: block;
}

@keyframes checkoutFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.checkout-step-title {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
  color: var(--co-text, #0a1f1d);
  margin: 0 0 0.35rem;
}

.checkout-step-desc {
  font-size: 0.875rem;
  color: #666;
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

/* Region cards */
.region-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-bottom: 1.25rem;
}

@media (max-width: 480px) {
  .region-cards {
    grid-template-columns: 1fr;
  }
}

.region-card {
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.1rem 1rem;
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.region-card:hover {
  border-color: #006a62;
  box-shadow: 0 4px 12px rgba(0, 106, 98, 0.08);
}

.region-card.active {
  border-color: #006a62;
  background: #f0faf9;
  box-shadow: 0 4px 16px rgba(0, 106, 98, 0.12);
}

.region-card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.region-card-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1a1a1a;
  margin-bottom: 0.35rem;
}

.region-card-desc {
  font-size: 0.75rem;
  color: #666;
  line-height: 1.5;
}

.currency-picker {
  background: #f8faf9;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.currency-picker label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 0.5rem;
}

.currency-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  cursor: pointer;
}

/* Cart items */
.cart-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 1.25rem;
}

.cart-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #f8faf9;
  border: 1px solid #e8eeed;
  border-radius: 12px;
}

.cart-item-body {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.cart-item-price {
  font-weight: 800;
  font-size: 0.95rem;
  color: #006a62;
  white-space: nowrap;
}

.cart-item-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: #fff;
  border-radius: 8px;
  color: #c0392b;
  cursor: pointer;
  flex-shrink: 0;
  border: 1px solid #f0d0cc;
  transition: background 0.15s;
}

.cart-item-remove:hover {
  background: #fef2f2;
}

/* Summary box */
.checkout-summary {
  background: linear-gradient(135deg, #f0faf9 0%, #fff 100%);
  border: 1px solid #cce8e4;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

.checkout-summary-label {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 4px;
}

.checkout-summary-amount {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--co-primary, #006a62);
  letter-spacing: -0.02em;
}

/* Payment methods */
.pay-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 1rem;
}

.pay-method-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  text-align: right;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
  font-family: inherit;
  position: relative;
}

.pay-method-card:hover {
  border-color: var(--co-primary, #006a62);
  background: #fafffe;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px rgba(0, 106, 98, 0.25);
}

.pay-method-card.selected {
  border-color: var(--co-primary, #006a62);
  background: linear-gradient(135deg, #ecfdf5, #f0faf9);
  box-shadow: 0 0 0 3px rgba(0, 106, 98, 0.18);
}

.pay-method-card--recommended {
  border-color: rgba(0, 106, 98, 0.25);
}

.pay-method-ribbon {
  position: absolute;
  top: -1px;
  left: 12px;
  padding: 0.2rem 0.65rem;
  background: linear-gradient(135deg, var(--co-primary, #006a62), var(--co-accent, #14b8a6));
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: 0 0 8px 8px;
  letter-spacing: 0.02em;
}

.pay-method-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--co-primary, #006a62);
}

.pay-method-icon svg {
  width: 22px;
  height: 22px;
}

.pay-method-icon.zarinpal { background: #e8f8ec; color: #059669; }
.pay-method-icon.zibal { background: #e8eaf6; color: #4338ca; }
.pay-method-icon.card { background: #e3f2fd; color: #0284c7; }
.pay-method-icon.paypal { background: #e3e8f5; color: #1e40af; }

.pay-method-info {
  flex: 1;
}

.pay-method-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1a1a1a;
}

.pay-method-hint {
  font-size: 0.75rem;
  color: #666;
  margin-top: 2px;
}

/* Proof panels */
.proof-box {
  display: none;
  margin-top: 1rem;
  padding: 1.25rem;
  background: #f8faf9;
  border: 1px solid #e8eeed;
  border-radius: 14px;
}

.proof-box.open {
  display: block;
}

.proof-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  counter-reset: proof;
}

.proof-steps li {
  counter-increment: proof;
  position: relative;
  padding-right: 2rem;
  margin-bottom: 0.65rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #444;
}

.proof-steps li::before {
  content: counter(proof);
  position: absolute;
  right: 0;
  top: 0;
  width: 22px;
  height: 22px;
  background: #006a62;
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-number {
  direction: ltr;
  text-align: center;
  font-family: ui-monospace, monospace;
  font-size: 1.1rem;
  letter-spacing: 2px;
  padding: 12px;
  background: #fff;
  border-radius: 10px;
  border: 1px dashed #006a62;
  margin: 8px 0;
}

.proof-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  margin: 8px 0;
  box-sizing: border-box;
  font-size: 0.95rem;
  font-family: inherit;
}

.proof-input:focus {
  outline: none;
  border-color: #006a62;
  box-shadow: 0 0 0 3px rgba(0, 106, 98, 0.12);
}

.btn-copy {
  font-size: 0.85rem;
  padding: 8px 14px;
  border: 1px solid #006a62;
  background: #fff;
  color: #006a62;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
}

.btn-copy:hover {
  background: #f0faf9;
}

.paypal-note-en {
  direction: ltr;
  text-align: left;
  font-size: 0.8rem;
  color: #555;
  margin: 8px 0 12px;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eee;
}

/* Actions — primary + back always stacked */
.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 0.5rem;
}

.checkout-btn {
  width: 100%;
  min-height: 48px;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s, transform 0.1s;
}

.checkout-btn:active {
  transform: scale(0.98);
}

.checkout-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.checkout-btn-primary {
  background: linear-gradient(135deg, var(--co-primary, #006a62), var(--co-primary-deep, #004e48));
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(0, 106, 98, 0.45);
}

.checkout-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--co-primary-deep, #004e48), #003d38);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -8px rgba(0, 106, 98, 0.5);
}

.checkout-btn-secondary {
  background: #fff;
  color: #555;
  border: 2px solid #e0e0e0;
}

.checkout-btn-secondary:hover:not(:disabled) {
  border-color: #006a62;
  color: #006a62;
  background: #fafffe;
}

.checkout-btn-link {
  background: transparent;
  color: #006a62;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  min-height: 40px;
}

.checkout-msg {
  min-height: 1.2em;
  font-size: 0.9rem;
  color: #666;
  margin: 12px 0 0;
  text-align: center;
}

.checkout-msg.error {
  color: #991b1b;
  background: #fef2f2;
  padding: 10px 14px;
  border-radius: 10px;
}

.checkout-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #666;
}

.checkout-empty a {
  color: #006a62;
  font-weight: 600;
  text-decoration: none;
}

.checkout-trust {
  font-size: 0.78rem;
  color: #888;
  text-align: center;
  margin-top: 1rem;
  line-height: 1.6;
}

.checkout-trust a {
  color: var(--co-primary, #006a62);
}

.checkout-trust-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0 0 1.25rem;
}

.checkout-trust-inline .co-trust-pill {
  font-size: 0.75rem;
  padding: 0.4rem 0.65rem;
}

#wallet-use-wrap {
  background: rgba(0, 106, 98, 0.04);
  border: 1px solid var(--co-line, rgba(0, 106, 98, 0.10));
  border-radius: var(--co-radius, 1.25rem);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.payment-section.hidden,
.hidden {
  display: none !important;
}

/* Sticky footer on mobile */
@media (max-width: 1023px) {
  .checkout-wrap {
    padding-bottom: 5rem;
  }

  .checkout-sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #e8eeed;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  }

  .checkout-sticky-footer .checkout-summary {
    margin-bottom: 10px;
    padding: 0.65rem 1rem;
  }

  .checkout-sticky-footer .checkout-summary-amount {
    font-size: 1.15rem;
  }

  .checkout-sticky-footer .checkout-actions {
    flex-direction: row-reverse;
    gap: 8px;
  }

  .checkout-sticky-footer .checkout-btn {
    min-height: 44px;
    font-size: 0.95rem;
  }

  .checkout-sticky-footer .checkout-btn-primary {
    flex: 2;
  }

  .checkout-sticky-footer .checkout-btn-secondary {
    flex: 1;
  }

  /* Hide duplicate actions inside panel when sticky is visible */
  .checkout-panel.active .checkout-actions-inline {
    display: none;
  }
}

@media (min-width: 1024px) {
  .checkout-sticky-footer {
    display: none;
  }
}

/* Legacy class names — old HTML + new CSS still renders correctly */
.checkout-steps {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 1.75rem;
}

.checkout-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  min-width: 0;
}

.checkout-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  inset-inline-start: 50%;
  width: 100%;
  height: 2px;
  background: #e5e7eb;
  z-index: 0;
}

.region-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-bottom: 1.25rem;
}

.region-btn {
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.1rem 1rem;
  background: #fff;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
}

.region-btn.active {
  border-color: #006a62;
  background: #f0faf9;
}

/* Inline success state */
.checkout-success {
  text-align: center;
  padding: 0.5rem 0 1rem;
}

.checkout-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.checkout-success-icon-pending {
  background: #fef3c7;
  color: #d97706;
}

.checkout-success-icon-paid {
  background: #d1fae5;
  color: #059669;
}

.checkout-success-icon-failed {
  background: #fee2e2;
  color: #dc2626;
}

.checkout-success-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 0.5rem;
}

.checkout-success-desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.65;
  margin: 0 0 1rem;
  max-width: 28rem;
  margin-inline: auto;
}

.checkout-success-order {
  font-size: 0.85rem;
  color: #888;
  margin: 0 0 1rem;
  font-weight: 600;
}

.checkout-success-items {
  background: #f8faf9;
  border: 1px solid #e8eeed;
  border-radius: 14px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  text-align: right;
}

.checkout-success-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eef2f1;
}

.checkout-success-item:last-child {
  border-bottom: none;
}

.checkout-success-item-title {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1;
}

.checkout-success-item-price {
  font-weight: 800;
  font-size: 0.9rem;
  color: #006a62;
  white-space: nowrap;
}

.checkout-success-total {
  font-size: 1rem;
  margin: 0 0 1.25rem;
  color: #444;
}

.checkout-success-test-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1rem;
}

.checkout-success-start {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.checkout-success-actions {
  margin-top: 0.5rem;
}

.checkout-progress-complete .checkout-progress-step .checkout-progress-dot {
  background: #006a62;
  color: #fff;
}

.checkout-progress-complete .checkout-progress-step .checkout-progress-label {
  color: #006a62;
}

.checkout-progress-complete .checkout-progress-step:not(:last-child)::after {
  background: #006a62;
}

/* Loading state on buttons */
.checkout-btn.is-loading,
.pay-method-card.is-loading {
  opacity: 0.75;
  cursor: wait;
  pointer-events: none;
}

.pay-method-card:disabled {
  opacity: 0.75;
  cursor: wait;
}

.region-cards.is-busy {
  opacity: 0.65;
  pointer-events: none;
}

/* ===================================================================== */
/* Booking V3 — premium Pay Mode + shared therapist badge components      */
/* ===================================================================== */

.co-pay-page--v3 .co-pay-inner { max-width: 56rem; }

.co-step-rail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  color: var(--co-text-soft, #4b5a58);
  font-size: 0.8rem;
  font-weight: 600;
}
.co-step-rail-dot {
  width: 0.5rem; height: 0.5rem; border-radius: 999px;
  background: rgba(0,106,98,0.18);
}
.co-step-rail-dot.is-active { background: var(--co-primary, #006a62); }
.co-step-rail-sep {
  width: 1.5rem; height: 2px; border-radius: 999px;
  background: rgba(0,106,98,0.12);
}

.co-pay-grid--v3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .co-pay-grid--v3 { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}

.co-pay-card--v3 {
  position: relative;
  text-align: right;
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: 1.5rem;
}
.co-pay-card--v3 .co-pay-card-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.co-pay-card--v3 .co-pay-card-flag {
  font-size: 2rem;
  line-height: 1;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,106,98,0.06);
  border-radius: 0.85rem;
}
.co-pay-card--v3 .co-pay-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--co-primary, #006a62);
  margin: 0;
}
.co-pay-card--v3 .co-pay-card-sub {
  font-size: 0.8rem;
  color: var(--co-text-soft, #4b5a58);
  margin: 0.15rem 0 0;
}
.co-pay-card--v3 .co-pay-card-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--co-text, #0a1f1d);
}
.co-pay-card--v3 .co-pay-card-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.co-pay-card--v3 .co-pay-card-features svg {
  width: 1rem; height: 1rem; flex-shrink: 0;
  color: var(--co-primary, #006a62);
}
.co-pay-card--v3 .co-pay-card-price {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(0,106,98,0.18);
}
.co-pay-card--v3 .co-pay-card-price-label {
  font-size: 0.75rem;
  color: var(--co-text-soft, #4b5a58);
  font-weight: 600;
}
.co-pay-card--v3 .co-pay-card-price-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--co-primary, #006a62);
}
.co-pay-card--v3 .co-pay-card-price-suffix {
  font-size: 0.7rem;
  color: var(--co-text-soft, #4b5a58);
  font-weight: 600;
  margin-inline-start: 0.2rem;
}

.co-pay-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: 0.85rem;
  font-size: 0.82rem;
  color: var(--co-text, #0a1f1d);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.co-pay-notice svg {
  width: 1.1rem; height: 1.1rem; flex-shrink: 0;
  color: var(--co-primary, #006a62);
  margin-top: 0.15rem;
}

.co-pay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.co-trust-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  padding: 1.25rem;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--co-line, rgba(0,106,98,0.10));
  border-radius: 1.25rem;
  backdrop-filter: blur(12px);
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .co-trust-strip { grid-template-columns: repeat(3, 1fr); }
}
.co-trust-strip-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--co-text, #0a1f1d);
  font-weight: 600;
}
.co-trust-strip-item svg {
  width: 1.15rem; height: 1.15rem; flex-shrink: 0;
  color: var(--co-primary, #006a62);
}

/* Therapist badge (shared partial) */
.ht-therapist-card {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, rgba(20,184,166,0.08), rgba(0,106,98,0.06));
  border: 1px solid rgba(0,106,98,0.16);
  border-radius: 1.25rem;
}
.ht-therapist-avatar {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #006a62, #14b8a6);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 10px -4px rgba(0,106,98,0.45);
  box-shadow: 0 6px 16px -4px rgba(0,106,98,0.4);
}
.ht-therapist-meta { flex: 1; min-width: 0; }
.ht-therapist-name { margin: 0; font-weight: 800; color: #0a1f1d; font-size: 0.95rem; }
.ht-therapist-title { margin: 0.1rem 0 0; font-size: 0.78rem; color: #4b5a58; }
.ht-therapist-trust { margin: 0.35rem 0 0; font-size: 0.78rem; color: #006a62; font-weight: 600; }
.ht-therapist-more {
  border: 1px solid rgba(0,106,98,0.25);
  background: #fff;
  color: #006a62;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.ht-therapist-more:hover { background: #ecfdf5; border-color: rgba(0,106,98,0.5); }

.ht-therapist-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(0,106,98,0.06);
  border: 1px solid rgba(0,106,98,0.14);
  color: #0a1f1d;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.ht-therapist-pill:hover { background: rgba(0,106,98,0.12); }
.ht-therapist-pill-dot {
  width: 0.5rem; height: 0.5rem; border-radius: 999px;
  background: #14b8a6;
  box-shadow: 0 0 0 4px rgba(20,184,166,0.2);
  animation: htPulse 1.6s ease-in-out infinite;
}
.ht-therapist-pill-arrow { font-weight: 800; color: #006a62; }
@keyframes htPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

.ht-therapist-modal[hidden] { display: none; }
.ht-therapist-modal {
  position: fixed; inset: 0;
  z-index: 80;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
}
@media (min-width: 640px) {
  .ht-therapist-modal { align-items: center; padding: 1.5rem; }
}
.ht-therapist-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 31, 29, 0.55);
  backdrop-filter: blur(4px);
  animation: htFadeIn 0.18s ease both;
}
.ht-therapist-modal-card {
  position: relative;
  width: 100%;
  max-width: 32rem;
  background: #fff;
  border-radius: 1.5rem 1.5rem 0 0;
  padding: 1.5rem 1.5rem 1.75rem;
  box-shadow: 0 -20px 40px -10px rgba(0,0,0,0.25);
  animation: htSlideUp 0.22s ease both;
}
@media (min-width: 640px) {
  .ht-therapist-modal-card { border-radius: 1.5rem; animation: htFadeIn 0.18s ease both; }
}
.ht-therapist-modal-close {
  position: absolute;
  top: 0.85rem; left: 0.85rem;
  background: #f3f4f6;
  border: none;
  width: 2rem; height: 2rem;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #0a1f1d;
}
.ht-therapist-modal-close:hover { background: #e5e7eb; }
.ht-therapist-modal-header {
  display: flex; align-items: center; gap: 0.85rem;
  margin-bottom: 1rem;
}
.ht-therapist-modal-avatar {
  width: 3.25rem; height: 3.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #006a62, #14b8a6);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  overflow: hidden;
  flex-shrink: 0;
}
.ht-therapist-avatar-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ht-therapist-modal-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0a1f1d;
}
.ht-therapist-modal-header p {
  margin: 0.1rem 0 0;
  font-size: 0.8rem;
  color: #4b5a58;
}
.ht-therapist-modal-lead {
  font-size: 0.92rem;
  line-height: 1.75;
  color: #0a1f1d;
  margin: 0 0 0.85rem;
}
.ht-therapist-modal-points {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.ht-therapist-modal-points li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.86rem;
  line-height: 1.7;
  color: #0a1f1d;
}
.ht-therapist-modal-icon {
  width: 1.65rem; height: 1.65rem;
  border-radius: 50%;
  background: rgba(0,106,98,0.08);
  color: #006a62;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ht-therapist-modal-actions {
  display: flex; gap: 0.6rem;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed rgba(0,106,98,0.18);
  padding-top: 0.95rem;
}
.ht-therapist-modal-link {
  color: #006a62; font-weight: 700; font-size: 0.85rem; text-decoration: none;
}
.ht-therapist-modal-link:hover { text-decoration: underline; }
.ht-therapist-modal-cta {
  background: var(--co-primary, #006a62);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
}
.ht-therapist-modal-cta:hover { background: var(--co-primary-deep, #004e48); }

@keyframes htFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes htSlideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ===================================================================== */
/* Booking V3 — Select page (service cards + package promo)               */
/* ===================================================================== */

.ht-book-page {
  position: relative;
  padding: 7rem 1.25rem 6rem;
  background: linear-gradient(180deg, #ecfdf5 0%, #f7faf9 60%);
  min-height: 100vh;
}
@media (min-width: 768px) {
  .ht-book-page { padding: 8rem 2rem 7rem; }
}

.ht-book-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.ht-book-bg::before, .ht-book-bg::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.5;
}
.ht-book-bg::before {
  width: 28rem; height: 28rem; background: rgba(20,184,166,0.30);
  top: -8rem; right: -6rem;
}
.ht-book-bg::after {
  width: 22rem; height: 22rem; background: rgba(0,106,98,0.25);
  bottom: -6rem; left: -6rem;
}

.ht-book-inner {
  position: relative; z-index: 1;
  max-width: 64rem;
  margin: 0 auto;
}

.ht-book-back {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: #006a62; font-weight: 600; font-size: 0.85rem;
  text-decoration: none; margin-bottom: 1rem;
}
.ht-book-back:hover { text-decoration: underline; }

.ht-book-header { text-align: center; margin-bottom: 2rem; }
.ht-book-header h1 {
  font-size: 2rem; font-weight: 800; margin: 0.65rem 0 0.5rem;
  letter-spacing: -0.02em; color: #0a1f1d;
}
@media (min-width: 768px) {
  .ht-book-header h1 { font-size: 2.5rem; }
}
.ht-book-header p { color: #4b5a58; font-size: 1rem; margin: 0; }

.ht-book-services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .ht-book-services { grid-template-columns: 1fr 1fr; }
}

.ht-book-service-card {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0,106,98,0.10);
  border-radius: 1.5rem;
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 16px 40px -16px rgba(0,106,98,0.18);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.ht-book-service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0,106,98,0.3);
  box-shadow: 0 22px 50px -16px rgba(0,106,98,0.28);
}
.ht-book-service-icon {
  width: 3rem; height: 3rem;
  border-radius: 0.85rem;
  background: rgba(0,106,98,0.08);
  color: #006a62;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.ht-book-service-name {
  font-size: 1.35rem; font-weight: 800;
  color: #006a62;
  margin: 0 0 0.5rem;
}
.ht-book-service-desc {
  font-size: 0.88rem; line-height: 1.85;
  color: #4b5a58;
  margin: 0 0 1.25rem;
  flex: 1;
}
.ht-book-service-meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.ht-book-service-pill {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: #f3f7f6; color: #006a62;
  font-size: 0.78rem; font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}
.ht-book-service-price {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 1rem;
  border-top: 1px dashed rgba(0,106,98,0.18);
  flex-wrap: wrap; gap: 0.4rem;
}
.ht-book-service-price-label { font-size: 0.78rem; color: #4b5a58; font-weight: 600; }
.ht-book-service-price-value { font-size: 1.05rem; font-weight: 800; color: #006a62; }
.ht-book-service-price-suffix { font-size: 0.72rem; color: #4b5a58; font-weight: 600; margin-inline-start: 0.2rem; }
.ht-book-service-price-total {
  display: block;
  font-size: 0.78rem; color: #5b6b67; margin-top: 0.25rem;
}
.ht-book-service-price-total strong { color: #00524c; }
.ht-book-service-save {
  display: inline-block;
  background: rgba(20,184,166,0.12);
  color: #047857;
  font-size: 0.72rem; font-weight: 700;
  padding: 0.2rem 0.55rem; border-radius: 999px;
  margin-top: 0.35rem;
}

/* Dynamic-tier picker */
.ht-book-tier-row {
  margin-top: 1rem;
  padding: 0.85rem;
  background: linear-gradient(180deg, rgba(245,250,249,0.85) 0%, rgba(236,253,245,0.55) 100%);
  border: 1px dashed rgba(20,184,166,0.35);
  border-radius: 0.85rem;
}
.ht-book-tier-label {
  display: block;
  font-size: 0.78rem; font-weight: 700; color: #00524c;
  margin-bottom: 0.55rem;
}
.ht-book-tier-chips {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.ht-book-tier-chip {
  position: relative;
  appearance: none;
  background: #fff;
  border: 1px solid rgba(0,106,98,0.25);
  color: #00524c;
  font-weight: 700;
  border-radius: 0.85rem;
  padding: 0.45rem 0.75rem;
  display: inline-flex; flex-direction: column; align-items: center;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
  line-height: 1.1;
}
.ht-book-tier-chip:hover {
  background: rgba(20,184,166,0.08);
  border-color: #14b8a6;
}
.ht-book-tier-chip.is-active {
  background: linear-gradient(135deg, #006a62 0%, #14b8a6 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px -4px rgba(0,106,98,0.5);
}
.ht-book-tier-chip-num { font-size: 1rem; }
.ht-book-tier-chip-label { font-size: 0.65rem; opacity: 0.85; margin-top: 0.1rem; }
.ht-book-tier-chip-badge {
  position: absolute;
  top: -0.5rem; inset-inline-start: -0.5rem;
  background: #ea580c; color: #fff;
  font-size: 0.6rem; font-weight: 800;
  padding: 0.1rem 0.4rem; border-radius: 999px;
  box-shadow: 0 2px 6px -2px rgba(234,88,12,0.5);
}

.ht-book-service-cta-form { margin: 0; padding: 0; }
.ht-book-service-cta-form button {
  appearance: none; border: none; cursor: pointer; width: 100%;
  font: inherit;
}
.ht-book-service-cta--package {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  box-shadow: 0 8px 20px -6px rgba(234,88,12,0.45);
}

.ht-book-service-scarcity {
  position: absolute;
  top: 1rem; left: 1rem;
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: rgba(20,184,166,0.12);
  color: #006a62;
  font-size: 0.7rem; font-weight: 700;
  padding: 0.3rem 0.6rem; border-radius: 999px;
}
.ht-book-service-scarcity-dot {
  width: 0.45rem; height: 0.45rem; border-radius: 999px;
  background: #14b8a6; box-shadow: 0 0 0 4px rgba(20,184,166,0.2);
  animation: htPulse 1.6s ease-in-out infinite;
}
.ht-book-service-scarcity--low {
  background: rgba(234, 88, 12, 0.10);
  color: #c2410c;
}
.ht-book-service-scarcity--low .ht-book-service-scarcity-dot {
  background: #ea580c; box-shadow: 0 0 0 4px rgba(234,88,12,0.18);
}

.ht-book-service-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  margin-top: 1.25rem;
  background: linear-gradient(135deg, #006a62, #14b8a6);
  color: #fff;
  font-weight: 700;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  font-size: 0.92rem;
  box-shadow: 0 8px 20px -6px rgba(0,106,98,0.4);
}

/* Package promo block */
.ht-book-packages {
  position: relative;
  background: linear-gradient(135deg, #064e3b 0%, #006a62 60%, #14b8a6 100%);
  color: #fff;
  border-radius: 1.75rem;
  padding: 1.75rem;
  margin-bottom: 2rem;
  overflow: hidden;
}
.ht-book-packages::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.2), transparent 50%);
  pointer-events: none;
}
.ht-book-packages-header {
  position: relative;
  display: flex; align-items: center; gap: 0.65rem;
  margin-bottom: 0.5rem;
}
.ht-book-packages-header svg { width: 1.25rem; height: 1.25rem; }
.ht-book-packages-title {
  font-size: 1.15rem; font-weight: 800; margin: 0;
}
.ht-book-packages-sub {
  position: relative;
  font-size: 0.85rem; opacity: 0.9; margin: 0 0 1.25rem;
}
.ht-book-packages-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 768px) {
  .ht-book-packages-grid { grid-template-columns: repeat(3, 1fr); }
}
.ht-book-package-card {
  position: relative;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 1.15rem;
  padding: 1.15rem;
  color: #fff;
  text-decoration: none;
  transition: background 0.18s, transform 0.18s;
  display: flex; flex-direction: column; gap: 0.65rem;
}
.ht-book-package-card:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}
.ht-book-package-tag {
  position: absolute;
  top: 0.6rem; left: 0.6rem;
  background: rgba(255,255,255,0.95);
  color: #064e3b;
  font-size: 0.65rem; font-weight: 800;
  padding: 0.2rem 0.5rem; border-radius: 999px;
}
.ht-book-package-name { font-size: 1rem; font-weight: 800; margin: 0; }
.ht-book-package-meta { font-size: 0.78rem; opacity: 0.85; margin: 0; }
.ht-book-package-price {
  display: flex; align-items: baseline; gap: 0.4rem;
  padding-top: 0.6rem;
  border-top: 1px dashed rgba(255,255,255,0.25);
}
.ht-book-package-price-value { font-size: 1rem; font-weight: 800; }
.ht-book-package-price-suffix { font-size: 0.7rem; opacity: 0.85; }
.ht-book-package-cta {
  margin-top: auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem;
  background: #fff; color: #006a62;
  font-weight: 700; font-size: 0.85rem;
  padding: 0.55rem 0.85rem; border-radius: 999px;
}

/* loading spinner overlay for service cards */
.ht-book-service-card .book-service-card-spinner { display: none; }
.ht-book-service-card.is-loading { opacity: 0.7; pointer-events: none; transform: none; }
.ht-book-service-card.is-loading .book-service-card-spinner {
  display: inline-block;
  position: absolute; inset: 0; margin: auto;
  width: 2.5rem; height: 2.5rem;
  border: 3px solid rgba(0,106,98,0.25);
  border-top-color: #006a62;
  border-radius: 50%;
  animation: htSpin 0.7s linear infinite;
}
@keyframes htSpin { to { transform: rotate(360deg); } }



/* =============================================================== */
/* Package detail page (V3)                                         */
/* =============================================================== */
.ht-package-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(245,250,249,0.96) 100%);
  border: 1px solid rgba(0,106,98,0.18);
  border-radius: 1.5rem;
  padding: 2rem 1.75rem;
  box-shadow: 0 18px 50px -28px rgba(0,90,82,0.35);
  display: flex; flex-direction: column; gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}
.ht-package-stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem;
  background: rgba(0,106,98,0.05);
  border-radius: 1rem;
  padding: 1rem 0.5rem;
}
.ht-package-stat {
  text-align: center;
  display: flex; flex-direction: column; gap: 0.25rem;
  border-inline-end: 1px solid rgba(0,106,98,0.12);
  padding: 0.25rem 0.5rem;
}
.ht-package-stat:last-child { border-inline-end: none; }
.ht-package-stat-value { font-size: 1.75rem; font-weight: 900; color: #006a62; line-height: 1; }
.ht-package-stat-label { font-size: 0.78rem; color: #4a5d5a; }
.ht-package-price-block {
  text-align: center;
  padding: 1.25rem 1rem;
  background: linear-gradient(180deg, rgba(0,106,98,0.06) 0%, rgba(0,106,98,0.02) 100%);
  border-radius: 1rem;
  border: 1px dashed rgba(0,106,98,0.25);
}
.ht-package-price-label { font-size: 0.85rem; color: #4a5d5a; margin: 0 0 0.5rem; }
.ht-package-price-amount { font-size: 2.25rem; font-weight: 900; color: #00524c; line-height: 1.1; margin: 0; }
.ht-package-price-per { font-size: 0.9rem; color: #4a5d5a; margin: 0.5rem 0 0; }
.ht-package-price-saved {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem; font-weight: 700; color: #006a62;
  background: #e8f5f3; padding: 0.35rem 0.85rem; border-radius: 999px;
}
.ht-package-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.ht-package-points li {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.92rem; color: #34433f; line-height: 1.6;
}
.ht-package-points li svg { color: #006a62; flex-shrink: 0; margin-top: 0.2rem; }
.ht-package-form { text-align: center; margin-top: 0.5rem; }
.ht-package-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #006a62 0%, #008479 100%);
  color: #fff; font-weight: 800; font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 14px 28px -14px rgba(0,106,98,0.55);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.ht-package-cta:hover { transform: translateY(-1px); box-shadow: 0 18px 32px -14px rgba(0,106,98,0.65); }
.ht-package-form-note { font-size: 0.8rem; color: #5b6b67; margin: 0.75rem 0 0; }

/* =============================================================== */
/* My-panel: package credits                                        */
/* =============================================================== */
.mypanel-credits {
  display: flex; flex-direction: column; gap: 0.85rem;
  margin: 0 0 1.5rem;
}
.mypanel-credit-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  background: linear-gradient(135deg, #f5fbfa 0%, #ecf6f4 100%);
  border: 1px solid rgba(0,106,98,0.18);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
}
.mypanel-credit-info { display: flex; flex-direction: column; gap: 0.3rem; }
.mypanel-credit-name { font-weight: 800; color: #00524c; font-size: 0.95rem; }
.mypanel-credit-meta { font-size: 0.82rem; color: #4a5d5a; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.mypanel-credit-meta span { display: inline-flex; align-items: center; gap: 0.25rem; }
.mypanel-credit-progress {
  position: relative; height: 6px; border-radius: 999px;
  background: rgba(0,106,98,0.12); overflow: hidden; margin-top: 0.4rem;
}
.mypanel-credit-progress-fill {
  position: absolute; inset: 0; right: 0;
  background: linear-gradient(135deg, #006a62 0%, #008479 100%);
  border-radius: 999px;
  transition: width 0.4s ease;
}
.mypanel-credit-actions { display: flex; flex-direction: column; align-items: stretch; gap: 0.4rem; min-width: 9rem; }
.mypanel-credit-cta {
  text-align: center;
  background: #006a62; color: #fff;
  padding: 0.55rem 0.85rem;
  border-radius: 999px; font-weight: 700; font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.15s ease;
}
.mypanel-credit-cta:hover { background: #00524c; }
.mypanel-credit-remaining { font-weight: 900; font-size: 1.05rem; color: #00524c; text-align: center; }
.mypanel-credit-empty {
  background: rgba(0,106,98,0.04);
  border: 1px dashed rgba(0,106,98,0.25);
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #4a5d5a;
  margin: 0 0 1.25rem;
}
.mypanel-credit-empty a { color: #006a62; font-weight: 700; text-decoration: underline; }

@media (max-width: 520px) {
  .mypanel-credit-card { grid-template-columns: 1fr; }
  .mypanel-credit-actions { flex-direction: row; min-width: 0; }
  .mypanel-credit-actions > * { flex: 1; }
  .ht-package-stat-row { grid-template-columns: repeat(3, 1fr); }
  .ht-package-stat-value { font-size: 1.35rem; }
}

/* =============================================================== */
/* V3 — Month calendar (schedule page)                              */
/* =============================================================== */
.ht-cal-page { padding-bottom: 10rem; }
.ht-cal-page .ht-book-inner { max-width: 60rem; }
.ht-cal-error {
  background: #fef2f2; color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 1rem;
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  margin: 0 0 1rem;
  text-align: center;
}

.ht-cal-toolbar {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,106,98,0.16);
  border-radius: 1.25rem;
  padding: 0.6rem 0.85rem;
  margin: 0 0 0.85rem;
  backdrop-filter: blur(8px);
}
.ht-cal-toolbar-group { display: inline-flex; gap: 0.35rem; align-items: center; }
.ht-cal-tz-group { gap: 0.5rem; flex-wrap: nowrap; }
.ht-cal-tz-label { font-size: 0.78rem; color: #4a5d5a; font-weight: 600; }
.ht-cal-tz-group select {
  padding: 0.45rem 0.7rem; font-size: 0.8rem;
  border-radius: 999px; border: 1px solid rgba(0,106,98,0.25);
  background: #fff; min-width: 12rem;
}
.ht-cal-pill {
  border: 1px solid rgba(0,106,98,0.2);
  background: #fff; color: #34433f;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.85rem; font-weight: 700;
  cursor: pointer; transition: all 0.15s ease;
}
.ht-cal-pill:hover:not(:disabled) {
  border-color: #006a62; color: #006a62;
}
.ht-cal-pill.is-active {
  background: linear-gradient(135deg, #006a62 0%, #008479 100%);
  color: #fff; border-color: transparent;
  box-shadow: 0 6px 14px -8px rgba(0,106,98,0.55);
}
.ht-cal-pill:disabled { opacity: 0.55; cursor: not-allowed; }

.ht-cal-banner {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.78rem; color: #006a62; font-weight: 700;
  background: rgba(0,106,98,0.07);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin: 0 0 1rem;
}

.ht-cal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
@media (max-width: 800px) {
  .ht-cal-grid { grid-template-columns: 1fr; }
}

.ht-cal-month, .ht-cal-slots {
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(0,106,98,0.14);
  border-radius: 1.25rem;
  padding: 1.1rem;
  box-shadow: 0 18px 50px -32px rgba(0,90,82,0.35);
}

.ht-cal-month-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.6rem; margin-bottom: 0.85rem;
}
.ht-cal-month-title {
  font-size: 1rem; font-weight: 800; color: #00524c;
  text-align: center; flex: 1;
}
.ht-cal-arrow {
  width: 2rem; height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(0,106,98,0.2);
  background: #fff; color: #006a62;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.15s ease;
}
.ht-cal-arrow:hover { background: rgba(0,106,98,0.08); }
.ht-cal-arrow:disabled { opacity: 0.4; cursor: wait; }

.ht-cal-month-dows {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem; margin-bottom: 0.25rem;
}
.ht-cal-month-dows span {
  font-size: 0.7rem; color: #6b7a76;
  text-align: center; padding: 0.35rem 0;
  font-weight: 700;
}

.ht-cal-month-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  min-height: 17rem;
  position: relative;
}
.ht-cal-month-loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: #5b6b67;
}
.ht-cal-day {
  appearance: none; border: 1px solid transparent;
  background: rgba(0,106,98,0.04);
  color: #2c3936;
  border-radius: 0.65rem;
  padding: 0.5rem 0;
  font-size: 0.92rem; font-weight: 600;
  cursor: pointer;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.2rem;
  position: relative;
  transition: all 0.12s ease;
  min-height: 2.6rem;
}
.ht-cal-day:hover:not(:disabled) {
  border-color: #006a62; background: rgba(0,106,98,0.1);
}
.ht-cal-day:disabled, .ht-cal-day.is-past, .ht-cal-day.is-closed, .ht-cal-day.is-other {
  cursor: not-allowed; color: #b7c0bd;
  background: rgba(0,0,0,0.02);
}
.ht-cal-day.is-today { box-shadow: 0 0 0 2px rgba(0,106,98,0.18) inset; }
.ht-cal-day.is-selected {
  background: linear-gradient(135deg, #006a62 0%, #008479 100%);
  color: #fff; border-color: transparent;
  box-shadow: 0 8px 18px -10px rgba(0,106,98,0.55);
}
.ht-cal-day.is-selected .ht-cal-day-dot { background: #fff; }
.ht-cal-day-num { line-height: 1; }
.ht-cal-day-dot {
  width: 5px; height: 5px; border-radius: 999px;
  background: transparent;
}
.ht-cal-day.is-open .ht-cal-day-dot { background: #19a896; }
.ht-cal-day.is-limited .ht-cal-day-dot { background: #f59e0b; }
.ht-cal-day.is-full .ht-cal-day-dot { background: #d9534f; }
.ht-cal-day.is-emergency {
  border-color: rgba(234,88,12,0.55);
  background: linear-gradient(180deg, rgba(254,243,224,0.85) 0%, rgba(254,235,210,0.7) 100%);
}
.ht-cal-day.is-emergency.is-selected {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  border-color: transparent;
  color: #fff;
}
.ht-cal-day-emergency {
  position: absolute; top: 4px; inset-inline-start: 6px;
  font-size: 0.7rem; line-height: 1;
  color: #ea580c;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.05));
}
.ht-cal-day { position: relative; }
.ht-cal-day.is-selected .ht-cal-day-emergency { color: #fff7ed; }

.ht-cal-legend {
  display: flex; flex-wrap: wrap; gap: 0.85rem;
  font-size: 0.72rem; color: #5b6b67;
  margin-top: 0.85rem; justify-content: center;
}
.ht-cal-legend .dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 999px; margin-inline-end: 0.25rem; vertical-align: middle;
}
.ht-cal-legend .dot-open { background: #19a896; }
.ht-cal-legend .dot-limited { background: #f59e0b; }
.ht-cal-legend .dot-full { background: #d9534f; }
.ht-cal-legend .dot-emergency { background: #ea580c; }

.ht-cal-emergency-note {
  display: flex; align-items: center; gap: 0.5rem;
  margin-top: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.65rem;
  background: linear-gradient(90deg, rgba(254,243,224,0.95), rgba(255,247,237,0.85));
  border: 1px solid rgba(234,88,12,0.3);
  color: #9a3412;
  font-size: 0.8rem;
}
.ht-cal-emergency-note-icon {
  font-size: 1rem; color: #ea580c; line-height: 1;
}
.ht-cal-slot.is-emergency {
  border-color: rgba(234,88,12,0.45);
  background: linear-gradient(180deg, rgba(254,243,224,0.65) 0%, #fff 100%);
}
.ht-cal-slot.is-emergency.is-selected {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  border-color: transparent;
  color: #fff;
}
.ht-cal-slot-row {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
}
.ht-cal-slot-time { line-height: 1; }
.ht-cal-slot-surcharge {
  font-size: 0.65rem; font-weight: 800;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  background: rgba(234,88,12,0.15);
  color: #c2410c;
  letter-spacing: 0;
}
.ht-cal-slot.is-emergency.is-selected .ht-cal-slot-surcharge {
  background: rgba(255,255,255,0.25); color: #fff;
}

.ht-cal-slots-header { margin-bottom: 0.85rem; }
.ht-cal-slots-header h2 { font-size: 1rem; font-weight: 800; color: #00524c; margin: 0; }
.ht-cal-slots-sub { font-size: 0.8rem; color: #5b6b67; margin: 0.25rem 0 0; }
.ht-cal-slots-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.5rem;
  min-height: 4rem;
}
.ht-cal-slot {
  appearance: none;
  border: 1px solid rgba(0,106,98,0.25);
  background: #fff;
  color: #00524c;
  border-radius: 0.75rem;
  padding: 0.65rem 0.5rem;
  font-size: 0.88rem; font-weight: 700;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
  transition: all 0.12s ease;
}
.ht-cal-slot:hover {
  background: rgba(0,106,98,0.08); border-color: #006a62;
}
.ht-cal-slot.is-selected {
  background: linear-gradient(135deg, #006a62 0%, #008479 100%);
  color: #fff; border-color: transparent;
  box-shadow: 0 8px 18px -10px rgba(0,106,98,0.55);
}
.ht-cal-slot-tz {
  font-size: 0.7rem; font-weight: 500; opacity: 0.75;
}
.ht-cal-slots-empty {
  font-size: 0.85rem; color: #6b7a76; text-align: center;
  padding: 1rem 0;
}

.ht-cal-sticky {
  position: fixed; bottom: 0; inset-inline: 0;
  background: rgba(255,255,255,0.97);
  border-top: 1px solid rgba(0,106,98,0.15);
  box-shadow: 0 -10px 40px -10px rgba(0,90,82,0.18);
  z-index: 50;
  padding: 0.85rem 1rem;
  backdrop-filter: blur(8px);
  animation: htCalStickyIn 0.25s ease;
}
@keyframes htCalStickyIn {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.ht-cal-sticky-inner {
  max-width: 60rem; margin: 0 auto;
  display: flex; gap: 0.85rem; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
}
.ht-cal-sticky-summary { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.ht-cal-sticky-when { font-weight: 800; color: #00524c; font-size: 0.95rem; }
.ht-cal-sticky-meta { font-size: 0.78rem; color: #5b6b67; }
.ht-cal-confirm {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px; border: none;
  background: linear-gradient(135deg, #006a62 0%, #008479 100%);
  color: #fff; font-weight: 800; font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 12px 24px -12px rgba(0,106,98,0.55);
  transition: all 0.15s ease;
}
.ht-cal-confirm:hover:not(:disabled) { transform: translateY(-1px); }
.ht-cal-confirm:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.ht-cal-sticky-error {
  margin-top: 0.5rem; text-align: center;
  font-size: 0.82rem; color: #b91c1c;
}

@media (max-width: 520px) {
  .ht-cal-tz-group { width: 100%; }
  .ht-cal-tz-group select { flex: 1; min-width: 0; }
  .ht-cal-sticky-inner { gap: 0.5rem; }
  .ht-cal-confirm { width: 100%; justify-content: center; }
}

/* =============================================================== */
/* V3 — Review page                                                 */
/* =============================================================== */
.ht-review-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(245,250,249,0.96) 100%);
  border: 1px solid rgba(0,106,98,0.18);
  border-radius: 1.25rem;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 18px 50px -28px rgba(0,90,82,0.35);
  margin: 0 0 1.25rem;
}
.ht-review-countdown {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem;
  background: rgba(0,106,98,0.07);
  color: #006a62;
  border: 1px dashed rgba(0,106,98,0.3);
  border-radius: 0.85rem;
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.ht-review-countdown svg { color: #006a62; flex-shrink: 0; }
.ht-review-countdown-time {
  font-size: 1.05rem; font-weight: 900;
  margin-inline-start: auto;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}
.ht-review-countdown.is-warning {
  background: #fffbeb; border-color: #f59e0b; color: #92400e;
}
.ht-review-countdown.is-warning svg { color: #b45309; }
.ht-review-countdown.is-expired {
  background: #fef2f2; border-color: #fecaca; color: #b91c1c;
}
.ht-review-list {
  list-style: none; padding: 0; margin: 0 0 1rem;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.ht-review-list li {
  display: flex; justify-content: space-between; gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.6rem;
  background: rgba(0,0,0,0.025);
  font-size: 0.92rem;
}
.ht-review-list li span { color: #5b6b67; }
.ht-review-list li strong { color: #00524c; font-weight: 700; }
.ht-review-amounts {
  border-top: 1px dashed rgba(0,106,98,0.25);
  padding-top: 0.75rem;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.ht-review-row { display: flex; justify-content: space-between; align-items: baseline; padding: 0.15rem 0; }
.ht-review-row span { color: #5b6b67; font-size: 0.88rem; }
.ht-review-row strong { color: #34433f; font-weight: 700; }
.ht-review-row--emergency strong { color: #b45309; }
.ht-review-row--total { padding-top: 0.5rem; border-top: 1px solid rgba(0,106,98,0.15); margin-top: 0.25rem; }
.ht-review-row--total span { color: #00524c; font-weight: 800; font-size: 0.95rem; }
.ht-review-row--total strong { color: #00524c; font-weight: 900; font-size: 1.15rem; }

.ht-review-policies {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,106,98,0.16);
  border-radius: 1.25rem;
  padding: 1.1rem 1.25rem;
  margin: 0 0 1.25rem;
}
.ht-review-policies-title { font-weight: 800; color: #00524c; margin: 0; }
.ht-review-policies-sub { font-size: 0.85rem; color: #5b6b67; margin: 0.25rem 0 0.85rem; }
.ht-review-policies-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.ht-review-policies-list details {
  background: rgba(0,106,98,0.04);
  border: 1px solid rgba(0,106,98,0.12);
  border-radius: 0.75rem;
  padding: 0.6rem 0.85rem;
}
.ht-review-policies-list details[open] { background: rgba(0,106,98,0.07); }
.ht-review-policies-list summary {
  cursor: pointer; list-style: none;
  display: flex; flex-direction: column; gap: 0.2rem;
}
.ht-review-policies-list summary strong { color: #00524c; font-weight: 800; font-size: 0.92rem; }
.ht-review-policy-sum { font-size: 0.82rem; color: #5b6b67; }
.ht-review-policy-body {
  margin-top: 0.5rem; padding-top: 0.5rem;
  border-top: 1px dashed rgba(0,106,98,0.2);
  font-size: 0.88rem; color: #34433f; line-height: 1.7;
}
.ht-review-policy-body ul { padding-inline-start: 1.25rem; }

.ht-review-accept {
  display: flex; align-items: flex-start; gap: 0.6rem;
  padding: 0.85rem 1rem;
  background: rgba(0,106,98,0.06);
  border: 1.5px solid rgba(0,106,98,0.25);
  border-radius: 0.85rem;
  font-size: 0.9rem;
  color: #34433f;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ht-review-accept:has(input:checked) {
  background: rgba(0,106,98,0.12);
  border-color: #006a62;
}
.ht-review-accept input[type="checkbox"] {
  flex-shrink: 0; width: 1.15rem; height: 1.15rem;
  margin-top: 0.15rem; accent-color: #006a62;
  cursor: pointer;
}
.ht-review-accept a { color: #006a62; font-weight: 700; }

/* =============================================================== */
/* V3 — Success page                                                */
/* =============================================================== */
.ht-success-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 4.5rem; height: 4.5rem;
  border-radius: 999px;
  background: rgba(0,106,98,0.1);
  color: #006a62;
  animation: htSuccessPop 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes htSuccessPop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.ht-success-actions {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(0,106,98,0.2);
}
.ht-success-cta {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(0,106,98,0.25);
  background: #fff; color: #006a62;
  font-size: 0.85rem; font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}
.ht-success-cta:hover { background: rgba(0,106,98,0.08); border-color: #006a62; }
.ht-success-cta--primary {
  background: linear-gradient(135deg, #006a62 0%, #008479 100%);
  color: #fff; border-color: transparent;
  box-shadow: 0 8px 16px -10px rgba(0,106,98,0.55);
}
.ht-success-cta--primary:hover { transform: translateY(-1px); }
.ht-success-next {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,106,98,0.14);
  border-radius: 1.25rem;
  padding: 1.1rem 1.25rem;
  margin: 1.25rem 0;
}

/* =================================================================
   Auth forms (login / forgot-password / reset-password)
   Re-uses the co-page + ht-book-inner shell from booking/checkout so
   the login experience matches the rest of the app exactly.
   ================================================================= */

.co-auth-inner {
  max-width: 32rem;
}

.co-auth-trust {
  margin-top: 1.25rem;
  justify-content: center;
}

.co-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.co-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.co-form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0a1f1d;
}

.co-form-field input[type="email"],
.co-form-field input[type="tel"],
.co-form-field input[type="text"],
.co-form-field input[type="password"],
.co-form-field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(0, 106, 98, 0.18);
  background: #fff;
  color: #0a1f1d;
  font-size: 0.95rem;
  font-family: inherit;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.co-form-field input::placeholder {
  color: #97a8a4;
}

.co-form-field input:focus,
.co-form-field select:focus {
  outline: none;
  border-color: #006a62;
  box-shadow: 0 0 0 4px rgba(0, 106, 98, 0.12);
}

.co-form-field input[aria-invalid="true"] {
  border-color: #b91c1c;
  box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.12);
}

.co-form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='%23006a62' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  padding-left: 2.25rem;
}

.co-pw-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}

.co-pw-wrap input {
  padding-left: 4.25rem;
}

.co-pw-toggle {
  position: absolute;
  inset-inline-start: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.35rem 0.7rem;
  border: 0;
  background: rgba(0, 106, 98, 0.08);
  color: #006a62;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.co-pw-toggle:hover {
  background: rgba(0, 106, 98, 0.16);
}

.co-form-link {
  display: inline-flex;
  align-self: flex-end;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #006a62;
  text-decoration: none;
  transition: color 0.15s ease;
}

.co-form-link:hover {
  color: #004e48;
  text-decoration: underline;
}

.co-form-foot {
  margin: 0;
  font-size: 0.85rem;
  color: #4b5a58;
  text-align: center;
}

.co-form-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 0.85rem;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.co-form-msg {
  margin: 0.25rem 0 0;
  min-height: 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  color: #4b5a58;
}

.co-form-msg.is-success {
  color: #047857;
}

.co-form-msg.is-error {
  color: #991b1b;
}

.co-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.05s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  box-sizing: border-box;
}

.co-btn:disabled,
.co-btn.is-loading {
  opacity: 0.65;
  cursor: not-allowed;
}

.co-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.co-btn--block {
  width: 100%;
}

.co-btn--primary {
  background: linear-gradient(135deg, #006a62 0%, #008479 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px -14px rgba(0, 106, 98, 0.65);
}

.co-btn--primary:hover:not(:disabled) {
  box-shadow: 0 14px 30px -14px rgba(0, 106, 98, 0.75);
  transform: translateY(-1px);
}

.co-btn--google {
  background: #fff;
  color: #1f1f1f;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.co-btn--google:hover:not(:disabled) {
  background: #f8f9fa;
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.18);
}

.co-btn--google svg {
  flex-shrink: 0;
}

.co-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.1rem 0;
  color: #6b7d7a;
  font-size: 0.8rem;
  font-weight: 600;
}

.co-divider::before,
.co-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0, 106, 98, 0.14);
}

.co-divider > span {
  flex-shrink: 0;
}

/* Accessibility: respect user motion preferences. */
@media (prefers-reduced-motion: reduce) {
  .co-pulse,
  .co-glow--1,
  .co-glow--2 {
    animation: none !important;
  }
  .co-btn,
  .co-btn--primary,
  .co-btn--google,
  .co-form-field input,
  .co-form-field select,
  .co-pw-toggle {
    transition: none !important;
  }
}

/* -----------------------------------------------------------------
   Tabs + OTP input + ghost button (for login form's OTP / Email tabs)
   ----------------------------------------------------------------- */

.co-tabs {
  display: flex;
  gap: 0.4rem;
  padding: 0.3rem;
  background: rgba(0, 106, 98, 0.06);
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.co-tab {
  flex: 1;
  padding: 0.65rem 1rem;
  border: 0;
  background: transparent;
  color: #4b5a58;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.co-tab:hover {
  color: #006a62;
}

.co-tab.is-active {
  background: #fff;
  color: #006a62;
  box-shadow: 0 2px 6px -2px rgba(0, 106, 98, 0.25);
}

.co-tab:focus-visible {
  outline: 2px solid #006a62;
  outline-offset: 2px;
}

.co-tab-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.co-tab-panel[hidden] {
  display: none;
}

.co-otp-input {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(0, 106, 98, 0.18);
  background: #fff;
  text-align: center;
  letter-spacing: 0.4em;
  font-size: 1.35rem;
  font-weight: 800;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.co-otp-input:focus {
  outline: none;
  border-color: #006a62;
  box-shadow: 0 0 0 4px rgba(0, 106, 98, 0.12);
}

.co-otp-input::placeholder {
  color: #c2cfcc;
  letter-spacing: 0.4em;
}

.co-btn--ghost {
  background: transparent;
  color: #006a62;
  border-color: rgba(0, 106, 98, 0.25);
  font-weight: 700;
}

.co-btn--ghost:hover:not(:disabled) {
  background: rgba(0, 106, 98, 0.06);
  border-color: #006a62;
}

@media (prefers-reduced-motion: reduce) {
  .co-tab,
  .co-otp-input {
    transition: none !important;
  }
}

.co-form-hint {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.5;
  color: #4b5a58;
}

.co-form-hint.is-info {
  color: #006a62;
}

.co-form-hint.is-warn {
  color: #b25f00;
}

.co-form-msg a {
  color: #006a62;
  text-decoration: underline;
  font-weight: 700;
  margin-inline-start: 0.25rem;
}

.co-form-msg a:hover {
  color: #004e48;
}
