/* ==========================================================================
   Mawid (موعد) - Component Stylesheet
   Cards, Badges, Modals, Booking Sheet, Calendar, Ticket Pass
   ========================================================================== */

/* Hero / Next Appointment Alert Card */
.hero-card {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-900));
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 18px 20px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(13, 148, 136, 0.4);
}

.hero-card::after {
  content: '';
  position: absolute;
  top: -40px;
  left: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 70%);
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 6px;
}

.hero-subtitle {
  font-size: 0.82rem;
  opacity: 0.9;
  line-height: 1.4;
  margin-bottom: 14px;
}

.hero-details-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 14px;
  border-radius: var(--radius-lg);
  font-size: 0.78rem;
  font-weight: 600;
}

.hero-detail-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-detail-item svg {
  width: 15px;
  height: 15px;
  color: var(--accent-gold);
}

/* Categories Carousel */
.categories-wrapper {
  margin: 0 -18px 24px;
  padding: 4px 18px;
  overflow-x: auto;
  display: flex;
  gap: 10px;
  scrollbar-width: none;
}

.categories-wrapper::-webkit-scrollbar {
  display: none;
}

.category-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.category-chip svg {
  width: 16px;
  height: 16px;
}

.category-chip:hover {
  border-color: var(--primary);
  color: var(--text-primary);
}

.category-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
}

/* Service Card */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-300);
}

.service-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.provider-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-muted);
}

.service-card-info {
  flex: 1;
}

.service-badge {
  display: inline-block;
  background: var(--accent-gold-light);
  color: #b45309;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 4px;
}

[data-theme="dark"] .service-badge {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.service-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 4px;
}

.provider-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.provider-role {
  color: var(--text-tertiary);
}

.service-rating-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-muted);
  padding: 3px 8px;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  flex-shrink: 0;
}

.service-rating-badge svg {
  width: 13px;
  height: 13px;
  color: var(--accent-gold);
}

.service-description {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-meta-tags {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.meta-tag {
  display: flex;
  align-items: center;
  gap: 5px;
}

.meta-tag svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed var(--border-subtle);
  padding-top: 12px;
  margin-top: 4px;
}

.service-price-block {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.68rem;
  color: var(--text-tertiary);
}

.price-amount {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

.price-currency {
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 2px;
}

/* Primary Button */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-700));
  color: #ffffff;
  border: none;
  border-radius: var(--radius-lg);
  padding: 9px 18px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.35);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: scale(0.96);
}

.btn-primary svg {
  width: 16px;
  height: 16px;
}

.btn-secondary {
  background: var(--bg-muted);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 9px 16px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--text-tertiary);
}

.btn-secondary:active {
  transform: scale(0.96);
}

/* Segmented Control / Tabs */
.segmented-control {
  display: flex;
  background: var(--bg-muted);
  padding: 4px;
  border-radius: var(--radius-lg);
  margin-bottom: 18px;
  gap: 4px;
}

.segmented-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.segmented-btn.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* Appointment Card (for My Appointments tab) */
.appointment-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 16px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all 0.2s ease;
}

.appointment-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.booking-code {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-tertiary);
  font-family: monospace;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
}

.status-badge.confirmed {
  background: #dcfce7;
  color: #15803d;
}

.status-badge.pending {
  background: #fef9c3;
  color: #a16207;
}

.status-badge.completed {
  background: var(--bg-muted);
  color: var(--text-secondary);
}

.status-badge.cancelled {
  background: #fee2e2;
  color: #b91c1c;
}

[data-theme="dark"] .status-badge.confirmed {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}
[data-theme="dark"] .status-badge.pending {
  background: rgba(234, 179, 8, 0.2);
  color: #facc15;
}
[data-theme="dark"] .status-badge.cancelled {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.appointment-details {
  background: var(--bg-muted);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.appointment-time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.appointment-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.appointment-actions .btn-secondary,
.appointment-actions .btn-primary {
  flex: 1;
  justify-content: center;
  padding: 8px 12px;
  font-size: 0.8rem;
}

/* Modals & Bottom Sheets */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 120;
  display: none;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 12px) + 8px);
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.bottom-sheet {
  width: 100%;
  max-width: var(--max-app-width);
  background: var(--bg-surface);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  border: 1px solid var(--border-subtle);
  padding: 20px 20px 24px;
  max-height: calc(86vh - var(--bottom-nav-height));
  overflow-y: auto;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal-overlay.open .bottom-sheet {
  transform: translateY(0);
}

.sheet-handle {
  width: 44px;
  height: 5px;
  background: var(--border-subtle);
  border-radius: var(--radius-full);
  margin: 0 auto 16px;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.sheet-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.sheet-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-muted);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Booking Steps Indicator */
.steps-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  position: relative;
}

.steps-indicator::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 30px;
  right: 30px;
  height: 2px;
  background: var(--border-subtle);
  z-index: 1;
}

.step-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border-subtle);
  color: var(--text-tertiary);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.step-label {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  font-weight: 600;
}

.step-node.active .step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 0 4px var(--primary-light);
}

.step-node.active .step-label {
  color: var(--primary);
  font-weight: 700;
}

.step-node.completed .step-circle {
  background: #22c55e;
  border-color: #22c55e;
  color: #ffffff;
}

/* Calendar Date Picker Component */
.calendar-component {
  background: var(--bg-muted);
  border-radius: var(--radius-xl);
  padding: 14px;
  margin-bottom: 20px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.calendar-month-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.calendar-days-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.day-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--bg-surface);
  transition: all 0.2s ease;
}

.day-name {
  font-size: 0.62rem;
  color: var(--text-tertiary);
  font-weight: 600;
}

.day-number {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.day-cell:hover:not(.disabled) {
  border-color: var(--primary-400);
}

.day-cell.selected {
  background: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
}

.day-cell.selected .day-name,
.day-cell.selected .day-number {
  color: #ffffff !important;
}

.day-cell.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: transparent;
}

/* Time Slots Chips */
.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.slot-chip {
  padding: 10px 8px;
  text-align: center;
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.slot-chip:hover {
  border-color: var(--primary);
}

.slot-chip.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
}

/* Form Controls */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input, .form-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-textarea {
  resize: vertical;
  min-height: 70px;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* Ticket Pass Component */
.ticket-pass {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  margin: 16px 0;
}

.ticket-top {
  background: linear-gradient(135deg, var(--primary), var(--primary-800));
  color: #ffffff;
  padding: 20px;
  text-align: center;
}

.ticket-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.ticket-cutout-divider {
  position: relative;
  height: 20px;
  background: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
}

.ticket-cutout-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -10px;
  width: 20px;
  height: 20px;
  background: var(--bg-surface);
  border-radius: 50%;
  transform: translateY(-50%);
  border: 1px solid var(--border-subtle);
}

.ticket-cutout-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -10px;
  width: 20px;
  height: 20px;
  background: var(--bg-surface);
  border-radius: 50%;
  transform: translateY(-50%);
  border: 1px solid var(--border-subtle);
}

.ticket-dashed-line {
  width: 100%;
  border-top: 2px dashed var(--border-subtle);
  margin: 0 16px;
}

.ticket-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.ticket-row-label {
  color: var(--text-tertiary);
  font-weight: 600;
}

.ticket-row-value {
  color: var(--text-primary);
  font-weight: 700;
}

.ticket-qr-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 8px;
}

.qr-code-box {
  width: 130px;
  height: 130px;
  background: #ffffff;
  padding: 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  width: 90%;
  max-width: 440px;
}

.toast {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.18), 0 4px 10px -2px rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  animation: slideDownToast 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: auto;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
}

.toast svg,
.toast .toast-icon svg {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  flex-shrink: 0 !important;
}

.toast .toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.toast.success {
  border-right: 4.5px solid #22c55e;
}

.toast.success svg {
  color: #22c55e;
}

.toast.error {
  border-right: 4.5px solid var(--accent-rose);
}

.toast.error svg {
  color: var(--accent-rose);
}

.toast.info {
  border-right: 4.5px solid var(--primary);
}

.toast.info svg {
  color: var(--primary);
}

.toast .toast-text {
  flex: 1;
  line-height: 1.4;
  font-size: 0.84rem;
}

.toast .toast-close-btn {
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 2px 4px;
  font-size: 1.1rem;
  line-height: 1;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
}

.toast .toast-close-btn:hover {
  color: var(--text-primary);
  background: var(--bg-muted);
}

@keyframes slideDownToast {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-muted);
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.empty-state-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.empty-state-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  max-width: 280px;
}

/* ==========================================================================
   Business Customizer & Dynamic Presets Styles
   ========================================================================== */

/* Top Business Identifier Bar */
.business-banner-bar {
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  gap: 8px;
}

.business-identity-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-type-badge {
  background: var(--primary);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-customize-business {
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-customize-business:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Presets Switcher Grid in Modal */
.presets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.preset-card-option {
  border: 2px solid var(--border-subtle);
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
  position: relative;
}

.preset-card-option:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.preset-card-option.active {
  border-color: var(--primary);
  background: var(--primary-light);
}

.preset-card-option .preset-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  background: var(--bg-muted);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preset-card-option.active .preset-icon {
  background: var(--primary);
  color: #ffffff;
}

.preset-card-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-primary);
}

.preset-card-desc {
  font-size: 0.7rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.preset-active-check {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

/* Staff / Specialists Horizontal Carousel */
.staff-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scrollbar-width: none;
}

.staff-carousel::-webkit-scrollbar {
  display: none;
}

.staff-mini-card {
  min-width: 130px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 12px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.staff-mini-card:hover, .staff-mini-card.active {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.staff-mini-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.staff-mini-name {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.staff-mini-role {
  font-size: 0.68rem;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

/* Dynamic Custom Fields Box */
.dynamic-fields-card {
  background: var(--bg-muted);
  border: 1px dashed var(--primary);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 16px;
}

.dynamic-fields-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
}

.dynamic-fields-header svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Custom CSS Confirmation Dialog */
.confirm-modal-overlay {
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2500;
}

.confirm-dialog-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px 20px 20px;
  width: 100%;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.22);
  transform: scale(0.94);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.confirm-modal-overlay.open .confirm-dialog-card {
  transform: scale(1);
  opacity: 1;
}

.confirm-dialog-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 12px;
}

.confirm-dialog-icon.danger {
  background: rgba(225, 29, 72, 0.12);
  color: var(--accent-rose);
}

.confirm-dialog-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.confirm-dialog-message {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 18px;
}

.confirm-dialog-actions {
  display: flex;
  gap: 10px;
}

.confirm-danger-btn {
  background: var(--accent-rose) !important;
  border-color: var(--accent-rose) !important;
}

.section-title svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--primary);
}

/* Projects Directory Carousel */
.projects-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: none;
}

.projects-carousel::-webkit-scrollbar {
  display: none;
}

.project-card {
  flex: 0 0 auto;
  width: 225px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 13px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  box-shadow: var(--shadow-sm);
}

.project-card:hover {
  transform: translateY(-2px);
}

.project-card.active {
  border-width: 2px;
  background: var(--bg-muted);
}

.project-card-all {
  width: 125px;
  justify-content: center;
  align-items: center;
}

.project-card-all.active {
  border-color: var(--primary);
  background: var(--primary-light);
}

.project-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.project-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.project-card-icon svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
}

.project-card-meta {
  min-width: 0;
  flex: 1;
}

.project-card-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.project-card-owner {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-card-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 32px;
  margin-bottom: 8px;
}

.project-card-cta {
  font-size: 0.72rem;
  font-weight: 800;
}

/* Payment Method Option Cards */
.payment-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.payment-option-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: right;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.payment-option-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.payment-option-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.payment-option-text {
  flex: 1;
  line-height: 1.35;
}

.btn-primary svg,
.btn-secondary svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.qr-code-box svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Subscription Usage Widget & Reports */
.sub-widget-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.sub-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.sub-widget-eyebrow {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  display: block;
  margin-bottom: 2px;
}

.sub-widget-plan-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.sub-widget-plan-title span {
  color: var(--primary);
}

.sub-alert-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  margin-bottom: 12px;
  line-height: 1.45;
}

.sub-alert-banner p {
  margin: 3px 0 0;
  opacity: 0.9;
}

.sub-alert-banner.warning {
  background: rgba(217, 119, 6, 0.12);
  border: 1px solid rgba(217, 119, 6, 0.35);
  color: #b45309;
}

.sub-alert-banner.warning-high {
  background: rgba(234, 88, 12, 0.12);
  border: 1px solid rgba(234, 88, 12, 0.35);
  color: #c2410c;
}

.sub-alert-banner.danger {
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.35);
  color: var(--accent-rose);
}

.sub-progress-row {
  margin-bottom: 12px;
}

.sub-progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: var(--bg-muted);
  overflow: hidden;
}

.sub-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s ease;
}

.sub-widget-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--bg-muted);
  border-radius: var(--radius-md);
  padding: 10px;
  text-align: center;
}

.sub-meta-item span {
  display: block;
  font-size: 0.68rem;
  color: var(--text-tertiary);
  margin-bottom: 2px;
}

.sub-meta-item strong {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-primary);
}

.reports-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.report-kpi-box {
  background: var(--bg-muted);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  text-align: center;
}

.report-kpi-label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-tertiary);
  margin-bottom: 3px;
}

.report-kpi-val {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* Ensure inline SVG icons inside cards and badges never blow up */
.appointment-card svg,
.service-card svg,
.hero-detail-item svg,
.status-badge svg,
.source-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hero-tag svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Booking Source Badges (Manual Reception vs Online Search) */
.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.source-badge.manual {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

[data-theme="dark"] .source-badge.manual {
  background: rgba(146, 64, 14, 0.25);
  color: #fde68a;
  border-color: rgba(253, 230, 138, 0.2);
}

.source-badge.online {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-300);
}

/* ==========================================================================
   Account Types & Business Onboarding Customizer Styles
   ========================================================================== */

.role-selector-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.role-option-card {
  border: 2px solid var(--border-subtle);
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 12px 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  gap: 6px;
}

.role-option-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.role-option-card.active {
  border-color: var(--primary);
  background: rgba(13, 148, 136, 0.08);
  box-shadow: 0 0 0 1px var(--primary);
}

.role-card-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}

.role-option-card.active .role-card-badge {
  display: flex;
}

.role-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-muted);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.2s ease;
}

.role-option-card.active .role-card-icon {
  background: var(--primary);
  color: #ffffff;
}

.role-card-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-primary);
}

.role-card-desc {
  font-size: 0.68rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* Provider Activity Customization Expand Box */
.provider-customizer-expand {
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(13, 148, 136, 0.25);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  animation: fadeInDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.customizer-header-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.industry-presets-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.industry-preset-pill {
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.industry-preset-pill:hover {
  border-color: var(--primary);
}

.industry-preset-pill.active {
  border-color: var(--primary);
  background: rgba(13, 148, 136, 0.12);
  color: var(--primary);
  font-weight: 800;
}

.client-perks-box {
  background: var(--bg-muted);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  animation: fadeInDown 0.3s ease;
}

/* ==========================================================================
   Print Ticket Pass Styles
   ========================================================================== */
@media print {
  body * {
    visibility: hidden;
  }
  #ticketModal, #ticketModal * {
    visibility: visible;
  }
  #ticketModal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent !important;
  }
  #ticketModal .bottom-sheet {
    box-shadow: none !important;
    border: 1px dashed #000 !important;
    max-height: none !important;
    padding: 15px !important;
    width: 100% !important;
    max-width: 480px !important;
    margin: 0 auto;
  }
  #ticketModal .sheet-header button,
  #ticketModal button,
  #ticketModal .sheet-handle {
    display: none !important;
  }
}


