/* ==========================================================================
   MicroBooking Cloud — High-End Luxury Dark Bento UI
   Engineered by MicroStudio.id
   ========================================================================== */

:root {
  --bg-deep: #090D0E;
  --bg-surface: #11171A;
  --bg-elevated: #162024;
  --bg-card: rgba(22, 32, 36, 0.75);
  
  --emerald-primary: #10B981;
  --emerald-hover: #059669;
  --emerald-glow: rgba(16, 185, 129, 0.2);
  --emerald-subtle: rgba(16, 185, 129, 0.1);
  
  --amber: #F59E0B;
  --rose: #F43F5E;
  --blue: #3B82F6;
  
  --text-main: #FFFFFF;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(16, 185, 129, 0.4);
  --border-active: #10B981;
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

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

body.booking-app-body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(ellipse at 50% 0%, rgba(16, 185, 129, 0.08) 0%, transparent 60%),
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 36px 36px, 36px 36px;
}

.mono-amount {
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.text-emerald { color: var(--emerald-primary); }
.text-amber { color: var(--amber); }
.text-rose { color: var(--rose); }
.hidden { display: none !important; }

/* TOP APP BAR */
.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(9, 13, 14, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand-pill {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--emerald-primary), var(--emerald-hover));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #062316;
  box-shadow: 0 0 16px var(--emerald-glow);
}

.brand-logo-icon svg {
  width: 20px;
  height: 20px;
}

.brand-title {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.brand-title .highlight {
  color: var(--emerald-primary);
}

.brand-tag {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
}

/* NICHE SEGMENTED CONTROL */
.niche-segmented-control {
  display: flex;
  background: var(--bg-surface);
  padding: 3px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  gap: 4px;
}

.niche-btn {
  padding: 6px 11px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.niche-btn:hover {
  color: #FFFFFF;
}

.niche-btn.active {
  background: rgba(16, 185, 129, 0.16);
  color: var(--emerald-primary);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

/* VIEW SEGMENTED CONTROL */
.view-segmented-control {
  display: flex;
  background: var(--bg-elevated);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  gap: 4px;
}

.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.04);
}

.view-btn.active {
  background: var(--emerald-primary);
  color: #062316;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.view-btn .icon-svg {
  width: 15px;
  height: 15px;
}

.admin-badge-count {
  background: rgba(6, 35, 22, 0.25);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  margin-left: 2px;
}

.view-btn:not(.active) .admin-badge-count {
  background: var(--emerald-primary);
  color: #062316;
}

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

.cloud-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--emerald-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald-primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ==================== 1. CLIENT WIZARD CONTAINER ==================== */
.wizard-container {
  max-width: 1100px;
  margin: 24px auto 60px;
  padding: 0 20px;
}

/* STEPPER PROGRESS BAR */
.stepper-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 12px 24px;
  margin-bottom: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.step-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.step-nav-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.step-num-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-dim);
  transition: all 0.2s ease;
}

.step-nav-item.active .step-num-circle {
  background: var(--emerald-primary);
  border-color: var(--emerald-primary);
  color: #062316;
  box-shadow: 0 0 12px var(--emerald-glow);
}

.step-nav-item.completed .step-num-circle {
  background: var(--emerald-subtle);
  border-color: var(--emerald-primary);
  color: var(--emerald-primary);
}

.step-nav-text {
  display: flex;
  flex-direction: column;
}

.step-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.step-nav-item.active .step-label {
  color: var(--emerald-primary);
}

.step-name {
  font-size: 13px;
  color: var(--text-muted);
}

.step-nav-item.active .step-name {
  color: #FFFFFF;
}

.step-divider {
  flex: 1;
  height: 2px;
  background: var(--border-subtle);
  margin: 0 16px;
  max-width: 80px;
}

.step-divider.active {
  background: var(--emerald-primary);
}

/* WIZARD PANES */
.wizard-panes {
  position: relative;
}

.wizard-pane {
  display: none;
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.wizard-pane.active {
  display: block;
}

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

.pane-header {
  margin-bottom: 24px;
}

.pane-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.pane-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

/* CATEGORY PILLS BAR */
.category-pills-bar {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.category-pills-bar::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  padding: 8px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-pill:hover {
  background: var(--bg-elevated);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
}

.cat-pill.active {
  background: var(--emerald-primary);
  border-color: var(--emerald-primary);
  color: #062316;
  font-weight: 700;
}

/* SERVICES GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.service-bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.service-bento-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.service-bento-card.selected {
  border-color: var(--emerald-primary);
  background: rgba(16, 185, 129, 0.05);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.service-bento-card.selected::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--emerald-primary);
}

.svc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.svc-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.svc-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--emerald-subtle);
  color: var(--emerald-primary);
  border: 1px solid rgba(16, 185, 129, 0.3);
  white-space: nowrap;
}

.svc-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.svc-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.svc-duration {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
}

.svc-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--emerald-primary);
}

/* THERAPIST / DOCTOR SECTION */
.therapist-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 28px;
}

.section-subheading {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #FFFFFF;
}

.therapist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.therapist-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.therapist-card:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
}

.therapist-card.selected {
  border-color: var(--emerald-primary);
  background: var(--emerald-subtle);
}

.therapist-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: var(--emerald-primary);
}

.therapist-card.selected .therapist-avatar {
  border-color: var(--emerald-primary);
}

.therapist-name {
  font-size: 13px;
  font-weight: 700;
}

.therapist-role {
  font-size: 11px;
  color: var(--text-dim);
}

/* PANE FOOTER NAVIGATION */
.pane-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.selected-summary-preview {
  display: flex;
  flex-direction: column;
}

.preview-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
}

.preview-val {
  font-size: 14px;
  color: var(--emerald-primary);
}

.btn-wizard-next, .btn-wizard-back {
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-wizard-next {
  background: var(--emerald-primary);
  color: #062316;
  border: none;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
}

.btn-wizard-next:hover {
  background: var(--emerald-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.btn-wizard-back {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.btn-wizard-back:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

/* ==================== PANE 2: DATES & TIME SLOTS ==================== */
.date-strip-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
}

.date-strip-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.date-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.date-strip::-webkit-scrollbar {
  height: 4px;
}

.date-strip::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.date-card {
  min-width: 100px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.date-card:hover {
  border-color: var(--border-hover);
}

.date-card.selected {
  background: var(--emerald-primary);
  border-color: var(--emerald-primary);
  color: #062316;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.d-day {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
}

.date-card.selected .d-day {
  color: rgba(6, 35, 22, 0.8);
}

.d-num {
  font-size: 20px;
  font-weight: 800;
}

.d-month {
  font-size: 11px;
  color: var(--text-muted);
}

.date-card.selected .d-month {
  color: #062316;
}

/* TIME SLOTS */
.time-slots-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.slot-group {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.slot-group-header {
  margin-bottom: 14px;
}

.slot-period-tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.time-btn {
  padding: 12px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.time-btn:hover:not(:disabled) {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
}

.time-btn.selected {
  background: var(--emerald-primary);
  border-color: var(--emerald-primary);
  color: #062316;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.time-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.02);
}

.time-status {
  font-size: 9px;
  font-family: var(--font-sans);
  color: var(--text-dim);
}

.time-btn.selected .time-status {
  color: #062316;
}

/* ==================== PANE 3: GUEST FORM & CHECKOUT ==================== */
.pane-3-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .pane-3-split {
    grid-template-columns: 1fr;
  }
}

.guest-form-card, .checkout-summary-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.card-subtitle {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-row input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s ease;
}

.form-row input:focus {
  outline: none;
  border-color: var(--emerald-primary);
  box-shadow: 0 0 0 3px var(--emerald-glow);
}

.form-hint {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 6px;
}

/* PAYMENT SELECTOR */
.pay-method-selector {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.method-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.method-card:hover {
  border-color: var(--border-hover);
}

.method-card.active {
  border-color: var(--emerald-primary);
  background: var(--emerald-subtle);
}

.method-card input[type="radio"] {
  accent-color: var(--emerald-primary);
  margin-top: 3px;
}

.method-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.badge-recommend {
  font-size: 10px;
  font-weight: 800;
  background: var(--emerald-primary);
  color: #062316;
  padding: 2px 6px;
  border-radius: 999px;
}

.method-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* SUMMARY CARD */
.summary-card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.card-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--emerald-primary);
  letter-spacing: 0.05em;
}

.summary-service-title {
  font-size: 18px;
  font-weight: 800;
  margin-top: 4px;
}

.summary-breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.s-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.s-row strong {
  color: #FFFFFF;
}

.summary-pricing-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 18px;
}

.p-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.p-row.total-highlight {
  margin-bottom: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.p-row.total-highlight strong {
  font-size: 14px;
  color: #FFFFFF;
  display: block;
}

.p-row.total-highlight small {
  font-size: 11px;
  color: var(--text-dim);
}

.charge-amount {
  font-size: 18px;
  font-weight: 800;
  color: var(--emerald-primary);
}

/* MINI QRIS BOX */
.mini-qris-box {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 18px;
  color: #090D0E;
  text-align: center;
}

.mini-qris-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #090D0E;
}

.qris-timer-text {
  color: var(--rose);
  font-family: var(--font-mono);
}

.mini-qr-code {
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

.qr-svg-mini {
  width: 100%;
  height: 100%;
}

.btn-confirm-booking {
  width: 100%;
  padding: 16px;
  background: var(--emerald-primary);
  border: none;
  border-radius: var(--radius-md);
  color: #062316;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 12px;
}

.btn-confirm-booking:hover {
  background: var(--emerald-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.45);
}

.booking-policy-guarantee {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-dim);
}

.booking-policy-guarantee svg {
  width: 14px;
  height: 14px;
  color: var(--emerald-primary);
  flex-shrink: 0;
}

/* ==================== 2. ADMIN DASHBOARD ==================== */
.admin-dashboard-container {
  max-width: 1100px;
  margin: 24px auto 60px;
  padding: 0 20px;
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.kpi-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: block;
}

.kpi-val {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.kpi-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.admin-schedule-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.schedule-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 14px;
}

.schedule-title {
  font-size: 18px;
  font-weight: 800;
}

.schedule-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.schedule-filter-actions {
  display: flex;
  gap: 8px;
}

.btn-filter-status {
  padding: 6px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-filter-status:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}

.btn-filter-status.active {
  background: var(--emerald-primary);
  border-color: var(--emerald-primary);
  color: #062316;
  font-weight: 700;
}

.schedule-table-wrap {
  overflow-x: auto;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.schedule-table th {
  padding: 12px 14px;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-subtle);
}

.schedule-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

.schedule-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.status-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.status-waiting {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-in_session {
  background: rgba(59, 130, 246, 0.15);
  color: var(--blue);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-completed {
  background: var(--emerald-subtle);
  color: var(--emerald-primary);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.action-btn-sm {
  padding: 4px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn-sm:hover {
  border-color: var(--emerald-primary);
  color: var(--emerald-primary);
}

/* ==================== VIRTUAL TICKET PASS MODAL ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
}

.pass-modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  animation: modalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.pass-modal-header {
  padding: 20px 24px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.clinic-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--emerald-primary);
  letter-spacing: 0.08em;
}

.pass-heading {
  font-size: 16px;
  font-weight: 800;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.modal-close:hover {
  color: #FFFFFF;
}

.pass-modal-body {
  padding: 24px;
}

.pass-barcode-hero {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  margin-bottom: 20px;
}

.pass-code-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
}

.pass-code-number {
  font-size: 22px;
  font-weight: 800;
  color: var(--emerald-primary);
  margin-top: 2px;
}

.pass-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.pass-cell {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.pass-cell.full {
  grid-column: 1 / -1;
}

.cell-label {
  display: block;
  font-size: 10px;
  color: var(--text-dim);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.cell-val {
  font-size: 13px;
  display: block;
}

.pass-qr-verification {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 12px;
  color: #090D0E;
}

.qr-verify-svg {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.qr-explain {
  font-size: 11px;
  line-height: 1.4;
  font-weight: 600;
  color: #1E293B;
}

.pass-modal-footer {
  padding: 18px 24px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-wa-share {
  width: 100%;
  padding: 14px;
  background: #25D366;
  border: none;
  border-radius: var(--radius-md);
  color: #062316;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-wa-share svg {
  width: 18px;
  height: 18px;
}

.btn-wa-share:hover {
  background: #20BA5A;
}

.btn-new-booking {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-new-booking:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #FFFFFF;
}

/* TOAST HUB */
.toast-hub {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast-item {
  background: rgba(17, 23, 26, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.2s ease forwards;
}

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

.toast-item.fade-out {
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.2s ease;
}

.toast-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-primary);
  box-shadow: 0 0 8px var(--emerald-primary);
}

.toast-item.warning .toast-dot {
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 768px) {
  .app-topbar {
    padding: 10px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .topbar-left {
    width: 100%;
    gap: 8px;
    justify-content: space-between;
  }
  .brand-pill {
    gap: 8px;
    min-width: 0;
  }
  .brand-tag {
    display: none;
  }
  .niche-segmented-control {
    flex-shrink: 0;
  }
  .view-segmented-control {
    width: 100%;
    overflow-x: auto;
  }
  .view-btn {
    flex: 1;
    justify-content: center;
    padding: 7px 10px;
    font-size: 12px;
    white-space: nowrap;
  }
  .topbar-right {
    display: none;
  }
  input, select, textarea,
  .form-row input {
    font-size: max(1rem, 16px) !important;
  }
  .toast-hub {
    top: 12px;
    bottom: auto;
    left: 12px;
    right: 12px;
    align-items: center;
  }
  .toast-item {
    padding: 9px 14px;
    font-size: 12px;
  }
  .stepper-nav {
    padding: 10px 14px;
  }
  .step-divider {
    display: none;
  }
  .step-name {
    display: none;
  }
  .pane-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-wizard-next, .btn-wizard-back {
    width: 100%;
    justify-content: center;
  }
}
