/* =============================================
   SALON BOOKING SaaS — COMPONENTS.CSS
   Buttons, Cards, Forms, Modals, Nav, Badges
   ============================================= */

/* ── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition-fast);
}
.btn:hover::after { background: rgba(255,255,255,0.06); }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(193, 98, 45, 0.45);
  transform: translateY(-1px);
  color: white;
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}
.btn-secondary:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}
.btn-ghost:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-default);
}

.btn-danger {
  background: rgba(248, 113, 113, 0.15);
  color: var(--color-danger);
  border: 1px solid rgba(248, 113, 113, 0.25);
}
.btn-danger:hover {
  background: rgba(248, 113, 113, 0.25);
  border-color: var(--color-danger);
}

.btn-success {
  background: rgba(52, 211, 153, 0.15);
  color: var(--color-accent);
  border: 1px solid rgba(52, 211, 153, 0.25);
}
.btn-success:hover {
  background: rgba(52, 211, 153, 0.25);
  border-color: var(--color-accent);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-icon {
  padding: 8px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.btn-icon.btn-sm {
  width: 30px;
  height: 30px;
  padding: 5px;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Cards ──────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  transition: all var(--transition-base);
}

.card-hover:hover {
  border-color: var(--border-default);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-5);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Gradient stat cards (Purple theme) */
.card-gradient-pink {
  background: linear-gradient(to right, #ffbf96, #fe7096);
  color: white;
  border: none;
}
.card-gradient-blue {
  background: linear-gradient(to right, #90caf9, #047edf 99%);
  color: white;
  border: none;
}
.card-gradient-green {
  background: linear-gradient(to right, #84d9d2, #07cdae);
  color: white;
  border: none;
}
.card-gradient-pink .stat-label, 
.card-gradient-blue .stat-label, 
.card-gradient-green .stat-label {
  color: rgba(255,255,255,0.9) !important;
}
.card-gradient-pink .stat-value, 
.card-gradient-blue .stat-value, 
.card-gradient-green .stat-value {
  color: white !important;
}

.card-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Form Elements ──────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.form-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  outline: none;
  appearance: none;
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.form-control::placeholder { color: var(--text-muted); }

.form-control:read-only {
  opacity: 0.6;
  cursor: default;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A0A0C0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

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

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: -var(--sp-2);
}

.form-error {
  font-size: 0.78rem;
  color: var(--color-danger);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

/* ── Checkbox & Radio ───────────────────────── */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.82rem;
  color: var(--text-secondary);
  user-select: none;
}

.checkbox-item:hover {
  border-color: var(--color-primary);
  color: var(--text-primary);
}

.checkbox-item.checked {
  background: var(--color-primary-glow);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.checkbox-item input[type="checkbox"] {
  display: none;
}

/* ── Badges / Pills ─────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
}

.badge-primary {
  background: var(--color-primary-glow);
  color: var(--color-primary);
}
.badge-success {
  background: rgba(52, 211, 153, 0.15);
  color: var(--color-accent);
}
.badge-danger {
  background: rgba(248, 113, 113, 0.15);
  color: var(--color-danger);
}
.badge-warning {
  background: rgba(251, 191, 36, 0.15);
  color: var(--color-warning);
}
.badge-muted {
  background: var(--bg-elevated);
  color: var(--text-muted);
}
.badge-info {
  background: rgba(96, 165, 250, 0.15);
  color: var(--color-info);
}

/* ── Modal ──────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(6px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  opacity: 0;
  animation: modalOverlayIn 0.2s ease-out forwards;
}

@keyframes modalOverlayIn {
  to { opacity: 1; }
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.97);
  animation: modalIn 0.25s ease-out forwards;
}

@keyframes modalIn {
  to { transform: translateY(0) scale(1); }
}

.modal-lg { max-width: 700px; }
.modal-sm { max-width: 380px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1.1rem;
  line-height: 1;
}

.modal-close:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-default);
}

.modal-body {
  padding: var(--sp-6);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--border-subtle);
}

/* ── Toast Notifications ────────────────────── */
.toast-container {
  position: fixed;
  top: var(--sp-5);
  right: var(--sp-5);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  pointer-events: all;
  min-width: 260px;
  max-width: 360px;
  animation: toastIn 0.3s ease-out forwards;
  font-size: 0.875rem;
}

.toast.removing {
  animation: toastOut 0.25s ease-in forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(20px); }
}

.toast-icon { font-size: 1.1rem; flex-shrink: 0; }
.toast-message { flex: 1; color: var(--text-primary); font-weight: 500; }

.toast-success { border-left: 3px solid var(--color-accent); }
.toast-error   { border-left: 3px solid var(--color-danger); }
.toast-warning { border-left: 3px solid var(--color-warning); }
.toast-info    { border-left: 3px solid var(--color-info); }

/* ── Sidebar Navigation ─────────────────────── */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: var(--z-sticky);
  transition: transform var(--transition-slow);
  overflow-y: auto;
}

.sidebar-logo {
  padding: var(--sp-5) var(--sp-5);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.sidebar-logo-icon {
  width: 24px;
  height: 24px;
  background: var(--color-primary, #7C6FF7);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: var(--shadow-primary);
}

.sidebar-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-logo-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
  font-family: var(--font-body);
}

.sidebar-nav {
  padding: var(--sp-4) var(--sp-3);
  flex: 1;
}

.sidebar-section-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0 var(--sp-3);
  margin: var(--sp-4) 0 var(--sp-2);
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 10px var(--sp-3);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  cursor: pointer;
  margin-bottom: 2px;
  text-decoration: none;
}

.sidebar-item:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.sidebar-item.active {
  background: var(--color-primary-glow);
  color: var(--color-primary);
  border: 1px solid var(--border-primary);
}

.sidebar-item .sidebar-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.8;
}

.sidebar-item.active .sidebar-icon { opacity: 1; }

.sidebar-footer {
  padding: var(--sp-4);
  border-top: 1px solid var(--border-subtle);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.sidebar-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-role {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ── Main Content ───────────────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 64px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-8);
  position: sticky;
  top: 0;
  z-index: 150;
}

.topbar-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.topbar-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.topbar-hamburger:hover {
  background: var(--bg-card-hover);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.page-content {
  padding: var(--sp-8);
  flex: 1;
}

/* ── Stats Cards ────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  transition: all var(--transition-base);
}

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

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.stat-icon.purple { background: var(--color-primary-glow); color: var(--color-primary); }
.stat-icon.pink   { background: rgba(224,122,95,0.15); color: var(--color-secondary); }
.stat-icon.green  { background: rgba(22,163,74,0.15);  color: var(--color-accent); }
.stat-icon.yellow { background: rgba(217,119,6,0.15);  color: var(--color-warning); }
.stat-icon.blue   { background: rgba(2,132,199,0.15);  color: var(--color-info); }

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Table ──────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: var(--bg-elevated);
}

thead th {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

tbody td {
  padding: var(--sp-3) var(--sp-4);
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }

tbody tr {
  transition: background var(--transition-fast);
}

tbody tr:hover { background: var(--bg-elevated); }

/* ── Empty State ────────────────────────────── */
.empty-state {
  text-align: center;
  padding: var(--sp-16) var(--sp-8);
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 3.5rem;
  margin-bottom: var(--sp-4);
  opacity: 0.4;
}

.empty-state-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--sp-2);
}

.empty-state-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--sp-6);
}

/* ── Avatar / Employee Icon ─────────────────── */
.avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: white;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}

.avatar-sm {
  width: 28px;
  height: 28px;
  font-size: 0.7rem;
  border-radius: var(--radius-sm);
}

.avatar-lg {
  width: 52px;
  height: 52px;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

/* ── Color Picker Dots ──────────────────────── */
.color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* ── Divider ────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: var(--sp-5) 0;
}

/* ── Loading Spinner ────────────────────────── */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-default);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Section Header ─────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-6);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Tabs ───────────────────────────────────── */
.tabs {
  display: flex;
  gap: 2px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 3px;
  border: 1px solid var(--border-subtle);
}

.tab-item {
  padding: 7px 16px;
  border-radius: calc(var(--radius-md) - 2px);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tab-item:hover { color: var(--text-primary); }

.tab-item.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* ── Search Input ───────────────────────────── */
.search-wrapper {
  position: relative;
}

.search-wrapper .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 0.9rem;
}

.search-wrapper .form-control {
  padding-left: 36px;
}

/* ── Booking Step Wizard ────────────────────── */
.wizard-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: var(--sp-8);
}

.wizard-step {
  display: flex;
  align-items: center;
  flex: 1;
}

.wizard-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border-default);
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-base);
  font-family: var(--font-heading);
}

.wizard-step.active .wizard-step-dot {
  border-color: var(--color-primary);
  background: var(--color-primary-glow);
  color: var(--color-primary);
}

.wizard-step.completed .wizard-step-dot {
  border-color: var(--color-accent);
  background: rgba(52,211,153,0.15);
  color: var(--color-accent);
}

.wizard-step-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-align: center;
  font-weight: 500;
  white-space: nowrap;
}

.wizard-step.active .wizard-step-label { color: var(--color-primary); }
.wizard-step.completed .wizard-step-label { color: var(--color-accent); }

.wizard-step-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wizard-step-line {
  flex: 1;
  height: 1px;
  background: var(--border-default);
  margin: 0 var(--sp-2);
  position: relative;
  top: -8px;
}

.wizard-step.completed + .wizard-step .wizard-step-line { background: var(--color-accent); }

/* ── Time Slot Grid ─────────────────────────── */
.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: var(--sp-2);
}

.time-slot {
  padding: 10px 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-body);
}

.time-slot:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-glow);
  color: var(--color-primary);
}

.time-slot.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-glow);
  color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-glow);
}

.time-slot.unavailable {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Employee Cards ─────────────────────────── */
.employee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-4);
}

.employee-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  transition: all var(--transition-base);
  cursor: pointer;
}

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

.employee-card.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-glow);
  box-shadow: 0 0 0 1px var(--color-primary);
}

/* ── Service Cards ──────────────────────────── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-4);
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

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

.service-card.selected {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}

.service-price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-primary);
}

.service-duration {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Public Header (Salon page) ─────────────── */
.public-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--sp-4) 0;
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  backdrop-filter: blur(10px);
}

.salon-hero {
  background: linear-gradient(160deg, var(--bg-surface) 0%, var(--bg-card) 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--sp-12) 0;
  position: relative;
  overflow: hidden;
}

.salon-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Confirmation Card ──────────────────────── */
.confirmation-card {
  background: linear-gradient(135deg, rgba(52,211,153,0.08), rgba(52,211,153,0.03));
  border: 1px solid rgba(52,211,153,0.25);
  border-radius: var(--radius-xl);
  padding: var(--sp-10);
  text-align: center;
}

.confirmation-icon {
  width: 72px;
  height: 72px;
  background: rgba(52,211,153,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto var(--sp-5);
  animation: confirmPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

/* ── Info List ──────────────────────────────── */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
}

.info-item-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  flex-shrink: 0;
  min-width: 85px;
}

.info-item-value {
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
  flex: 1;
  word-break: break-word;
  line-height: 1.35;
}

/* ── Bookings Mobile Card List ──────────────── */
.bookings-desktop-table {
  display: block;
  width: 100%;
}

.bookings-mobile-cards {
  display: none;
}

.booking-mob-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

.booking-mob-card.booking-mob-pending {
  border-color: rgba(251, 191, 36, 0.5);
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.06) 0%, var(--bg-surface) 100%);
}

.booking-mob-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.booking-mob-client-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.booking-mob-client-phone {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.booking-mob-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.booking-mob-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.84rem;
}

.booking-mob-label {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.booking-mob-val {
  color: var(--text-primary);
  text-align: right;
  word-break: break-word;
}

.booking-mob-price {
  color: var(--color-primary);
  font-weight: 700;
}

.booking-mob-notes {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  border-left: 3px solid var(--color-primary);
  margin-top: 4px;
}

.booking-mob-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

/* ── In-App Notifications & Toasts ─────────── */
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.spinner-sm {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #FFF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

@media (max-width: 768px) {
  .profile-grid,
  .settings-pw-grid {
    grid-template-columns: 1fr !important;
  }
}

