/* ===================================
   PROFILE SPA - App Shell
   Mobile-first, bottom tab bar + desktop sidebar
   =================================== */

/* --- Hide theme header/footer/adminbar when SPA is active --- */
body:has(.abs-app-shell) #main-header,
body:has(.abs-app-shell) .et-l--header,
body:has(.abs-app-shell) #top-header,
body:has(.abs-app-shell) #main-footer,
body:has(.abs-app-shell) .et-l--footer,
body:has(.abs-app-shell) #footer-bottom,
body:has(.abs-app-shell) .et_pb_menu,
body:has(.abs-app-shell) .et-l--body .et_pb_section:not(:has(.abs-app-shell)),
body:has(.abs-app-shell) #wpadminbar {
  display: none !important;
}

body:has(.abs-app-shell) {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* --- Force Divi wrappers to be full-width & no spacing --- */
body:has(.abs-app-shell) #page-container,
body:has(.abs-app-shell) #et-main-area,
body:has(.abs-app-shell) .et_builder_inner_content,
body:has(.abs-app-shell) .et_pb_section,
body:has(.abs-app-shell) .et_pb_row,
body:has(.abs-app-shell) .et_pb_column,
body:has(.abs-app-shell) .et_pb_module,
body:has(.abs-app-shell) .et_pb_text_inner,
body:has(.abs-app-shell) .entry-content,
body:has(.abs-app-shell) .et-l--body {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

body:has(.abs-app-shell) #page-container {
  padding-top: 0 !important;
  margin-top: 0 !important;
  overflow-x: hidden;
  overflow-y: visible !important;
}

/* Ensure sticky header works — no overflow:hidden on ancestors */
body:has(.abs-app-shell) #et-main-area,
body:has(.abs-app-shell) .et_builder_inner_content,
body:has(.abs-app-shell) .et_pb_section,
body:has(.abs-app-shell) .et_pb_row,
body:has(.abs-app-shell) .et_pb_column,
body:has(.abs-app-shell) .et_pb_module,
body:has(.abs-app-shell) .entry-content {
  overflow: visible !important;
}

/* --- Reset & Shell --- */
.abs-app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  min-height: 100vh;
  background: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

.abs-app-shell *, .abs-app-shell *::before, .abs-app-shell *::after {
  box-sizing: border-box;
}

/* --- Header --- */
.abs-app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  min-height: 56px;
}

.abs-app-logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.abs-app-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}

.abs-app-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.abs-app-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.abs-app-header-actions a {
  font-size: 0.85rem;
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.abs-app-header-actions a:hover {
  color: #ef4444;
}

.abs-header-portal-link.abs-header-portal-link {
  background: #6366f1;
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.abs-header-portal-link.abs-header-portal-link:hover {
  background: #4f46e5;
  color: #fff;
}

/* --- Main content area --- */
.abs-app-body {
  display: flex;
  flex: 1;
  min-height: 0;
}

.abs-app-content {
  flex: 1;
  padding: 16px;
  padding-bottom: 80px; /* space for tabbar on mobile */
  width: 100%;
  animation: absViewFadeIn 0.18s ease-out;
}

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

/* --- Sidebar (desktop only) --- */
.abs-app-sidebar {
  display: none;
}

@media (min-width: 768px) {
  .abs-app-sidebar {
    display: flex;
    flex-direction: column;
    width: 220px;
    min-width: 220px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    padding: 20px 12px;
    gap: 4px;
    position: sticky;
    top: 56px;
    height: calc(100dvh - 56px);
    height: calc(100vh - 56px);
    overflow-y: auto;
  }

  .abs-app-content {
    padding-bottom: 24px;
    max-width: 780px;
    margin: 0 auto;
  }
}

.abs-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.abs-sidebar-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.7;
}

.abs-sidebar-link:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.abs-sidebar-link.is-active {
  background: #eef2ff;
  color: #4f46e5;
  border-color: #c7d2fe;
  font-weight: 600;
}

.abs-sidebar-link.is-active svg {
  opacity: 1;
  color: #4f46e5;
}

.abs-sidebar-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 12px 4px;
}

.abs-sidebar-cta {
  margin-top: auto;
  padding-top: 12px;
}

.abs-sidebar-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: filter 0.15s;
}

.abs-sidebar-cta a:hover {
  filter: brightness(1.08);
}

/* --- Bottom Tab Bar (mobile) --- */
.abs-app-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
  padding: 4px 0;
  padding-bottom: max(4px, env(safe-area-inset-bottom));
}

@media (min-width: 768px) {
  .abs-app-tabbar {
    display: none;
  }
}

.abs-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 0;
  min-width: 64px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 500;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.abs-tab svg {
  width: 22px;
  height: 22px;
  transition: transform 0.15s;
}

.abs-tab.is-active {
  color: #4f46e5;
}

.abs-tab.is-active svg {
  transform: scale(1.1);
}

.abs-tab:active svg {
  transform: scale(0.92);
}

/* --- Toast / Message --- */
.abs-app-toast {
  position: fixed;
  top: 68px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  max-width: 400px;
  width: calc(100% - 32px);
  pointer-events: none;
}

.abs-toast-item {
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  margin-bottom: 8px;
  pointer-events: auto;
  animation: absToastIn 0.25s ease-out;
}

.abs-toast-item.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.abs-toast-item.error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.abs-toast-item.info    { background: #eef2ff; color: #3730a3; border: 1px solid #c7d2fe; }

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

/* --- Skeleton Loaders --- */
.abs-skeleton { display: flex; flex-direction: column; gap: 12px; padding: 8px 0; }
.abs-skeleton-line {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: absShimmer 1.5s infinite ease-in-out;
}
.abs-skeleton-line.short { width: 60%; }
.abs-skeleton-line.medium { width: 80%; }
.abs-skeleton-block {
  height: 120px;
  border-radius: 12px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: absShimmer 1.5s infinite ease-in-out;
}

@keyframes absShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- Dashboard View --- */
.abs-dash-welcome {
  margin-bottom: 20px;
}

.abs-dash-welcome h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px 0;
}

.abs-dash-welcome p {
  color: #64748b;
  margin: 0;
  font-size: 0.95rem;
}

/* Next booking ticket */
.abs-dash-ticket {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  margin-bottom: 20px;
}

.abs-dash-ticket-accent {
  height: 4px;
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.abs-dash-ticket-body {
  padding: 16px;
}

.abs-dash-ticket-service {
  font-weight: 700;
  font-size: 1.1rem;
  color: #0f172a;
  margin: 0 0 12px 0;
}

.abs-dash-ticket-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.abs-dash-ticket-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.abs-dash-ticket-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  font-weight: 600;
}

.abs-dash-ticket-value {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.95rem;
}

.abs-dash-ticket-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

/* No booking CTA */
.abs-dash-empty {
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  padding: 32px 20px;
  text-align: center;
  margin-bottom: 20px;
}

.abs-dash-empty-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  color: #94a3b8;
}

.abs-dash-empty h3 {
  margin: 0 0 6px 0;
  font-size: 1.1rem;
  color: #334155;
}

.abs-dash-empty p {
  margin: 0 0 16px 0;
  color: #64748b;
  font-size: 0.9rem;
}

/* Stats row */
.abs-dash-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.abs-dash-stat {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
}

.abs-dash-stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: #4f46e5;
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.abs-dash-stat-label {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
}

/* Quick action cards */
.abs-dash-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.abs-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  color: #334155;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.abs-action-card svg {
  width: 24px;
  height: 24px;
  color: #6366f1;
}

.abs-action-card:hover {
  border-color: #c7d2fe;
  background: #f8faff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99,102,241,0.08);
}

/* --- Shared Buttons --- */
.abs-app-shell .abs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}

.abs-app-shell .abs-btn-primary {
  background: #4f46e5;
  color: #fff;
}
.abs-app-shell .abs-btn-primary:hover { background: #4338ca; }

.abs-app-shell .abs-btn-secondary {
  background: #f1f5f9;
  color: #334155;
  border-color: #e2e8f0;
}
.abs-app-shell .abs-btn-secondary:hover { background: #e2e8f0; }

.abs-app-shell .abs-btn-success {
  background: #22c55e;
  color: #fff;
}
.abs-app-shell .abs-btn-success:hover { background: #16a34a; }

.abs-app-shell .abs-btn-danger {
  background: #ef4444;
  color: #fff;
}
.abs-app-shell .abs-btn-danger:hover { background: #dc2626; }

.abs-app-shell .abs-btn-ghost {
  background: transparent;
  color: #64748b;
}
.abs-app-shell .abs-btn-ghost:hover { color: #1e293b; background: #f1f5f9; }

.abs-app-shell .abs-btn-sm {
  padding: 6px 10px;
  font-size: 0.8rem;
}

/* --- View placeholder (coming soon) --- */
.abs-view-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  text-align: center;
  color: #94a3b8;
}

.abs-view-placeholder svg {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.abs-view-placeholder h3 {
  margin: 0 0 6px 0;
  color: #475569;
  font-size: 1.1rem;
}

.abs-view-placeholder p {
  margin: 0;
  font-size: 0.9rem;
}

/* ===================================
   CALENDAR VIEW
   =================================== */
.abs-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.abs-cal-title {
  font-weight: 700;
  font-size: 1.15rem;
  color: #0f172a;
  text-transform: capitalize;
}

.abs-cal-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.abs-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.abs-cal-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 10px;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all 0.12s ease;
  padding: 4px;
  background-color: white;
  -webkit-tap-highlight-color: transparent;
}

.abs-cal-cell:hover { background: #f1f5f9; }

.abs-cal-empty { cursor: default; }
.abs-cal-empty:hover { background: transparent; }

.abs-cal-day-num {
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
  line-height: 1;
}

.abs-cal-today {
  background: #eef2ff;
  border-color: #c7d2fe;
}

.abs-cal-today .abs-cal-day-num {
  color: #4f46e5;
  font-weight: 700;
}

.abs-cal-selected {
  background: #4f46e5 !important;
  border-color: #4f46e5 !important;
}

.abs-cal-selected .abs-cal-day-num { color: #fff !important; }
.abs-cal-selected .abs-cal-dot { background: #fff !important; }

.abs-cal-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
  margin-top: 2px;
}

.abs-cal-has-booking .abs-cal-day-num { font-weight: 700; }

.abs-cal-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 24px;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Day detail below calendar */
.abs-cal-detail {
  margin-top: 16px;
  min-height: 40px;
}

.abs-cal-detail-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px 0;
}

.abs-cal-no-items {
  color: #94a3b8;
  font-size: 0.9rem;
  margin: 0;
}

.abs-cal-day-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.abs-cal-booking-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0;
  transition: border-color 0.15s;
  overflow: hidden;
}

.abs-cal-booking-card:hover { border-color: #c7d2fe; }

/* Top row: time + service/staff + status */
.abs-cal-booking-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 10px;
}

.abs-cal-booking-time {
  font-size: 1.05rem;
  font-weight: 700;
  color: #4f46e5;
  min-width: 50px;
  flex-shrink: 0;
}

.abs-cal-booking-info { flex: 1; min-width: 0; }
.abs-cal-booking-service { font-weight: 600; color: #1e293b; font-size: 0.9rem; }
.abs-cal-booking-staff { font-size: 0.8rem; color: #64748b; margin-top: 1px; }

.abs-cal-booking-status {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-start;
}

.abs-cal-status-confirmed { background: #ecfdf5; color: #065f46; }
.abs-cal-status-other { background: #f1f5f9; color: #475569; }

/* Bottom row: actions inside card */
.abs-cal-booking-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px 12px;
  border-top: 1px dashed #e2e8f0;
  flex-wrap: wrap;
}

.abs-cal-booking-actions .abs-add-cal {
  margin-top: 0;
}

/* ===================================
   BOOKINGS LIST VIEW
   =================================== */
.abs-bookings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.abs-bookings-header h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
}

.abs-bookings-filters {
  display: flex;
  gap: 4px;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 3px;
}

.abs-filter-btn {
  background: transparent !important;
  border: none !important;
  color: #64748b;
  font-weight: 600;
  border-radius: 6px !important;
  padding: 6px 14px !important;
  transition: all 0.12s;
}

.abs-filter-btn.is-active {
  background: #ffffff !important;
  color: #1e293b;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.abs-bookings-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.abs-booking-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  transition: all 0.12s;
}

.abs-booking-row:hover {
  border-color: #c7d2fe;
  box-shadow: 0 2px 8px rgba(99,102,241,0.06);
}

.abs-booking-row-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}

.abs-booking-row-day {
  font-weight: 700;
  font-size: 0.85rem;
  color: #1e293b;
}

.abs-booking-row-time {
  font-size: 0.8rem;
  color: #64748b;
}

.abs-booking-row-info { flex: 1; min-width: 0; }
.abs-booking-row-service { font-weight: 600; color: #1e293b; font-size: 0.9rem; }
.abs-booking-row-staff { font-size: 0.8rem; color: #64748b; }

.abs-booking-row-status {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.abs-status-confirmed { background: #ecfdf5; color: #065f46; }
.abs-status-cancelled { background: #fef2f2; color: #991b1b; }
.abs-status-completed { background: #f0fdf4; color: #166534; }
.abs-status-pending   { background: #fffbeb; color: #92400e; }

.abs-bookings-empty {
  text-align: center;
  padding: 32px 16px;
  color: #94a3b8;
}

.abs-bookings-empty-icon { margin: 0 auto 12px; width: 40px; height: 40px; opacity: 0.5; }
.abs-bookings-empty p { margin: 0; font-size: 0.9rem; }

.abs-bookings-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.abs-pager-info {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

/* ===================================
   SETTINGS VIEW
   =================================== */
.abs-settings-section {
  margin-bottom: 24px;
}

.abs-settings-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 12px 0;
}

.abs-settings-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
}

.abs-settings-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

@media (max-width: 480px) {
  .abs-settings-form-grid { grid-template-columns: 1fr; }
}

.abs-settings-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.abs-settings-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
}

.abs-settings-input {
  padding: 10px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #1e293b;
  transition: border-color 0.15s;
  background: #fff;
  width: 100%;
}

.abs-settings-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.abs-settings-input[readonly] {
  background: #f8fafc;
  color: #94a3b8;
  cursor: not-allowed;
}

.abs-settings-input-short { max-width: 100px; }

.abs-settings-note {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 4px 0 12px 0;
}

.abs-settings-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

/* Toggle switch */
.abs-settings-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px 0;
  user-select: none;
}

.abs-settings-toggle input { display: none; }

.abs-toggle-track {
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}

.abs-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform 0.2s;
}

.abs-settings-toggle input:checked + .abs-toggle-track {
  background: #4f46e5;
}

.abs-settings-toggle input:checked + .abs-toggle-track .abs-toggle-thumb {
  transform: translateX(18px);
}

.abs-toggle-label {
  font-weight: 500;
  font-size: 0.9rem;
  color: #334155;
}

/* Danger zone */
.abs-settings-danger h2 { color: #ef4444; }
.abs-settings-danger .abs-settings-card { border-color: #fecaca; }

/* ===================================
   ADD-TO-CALENDAR INLINE
   =================================== */
.abs-add-cal {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  margin-top: 8px;
}

.abs-add-cal .abs-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
}

.abs-add-cal svg { flex-shrink: 0; }

.abs-dash-ticket-addcal {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
}

/* ===================================
   SUPPORT / CONTACT VIEW
   =================================== */
.abs-support-header {
  text-align: center;
  padding: 16px 0 20px;
}

.abs-support-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.abs-support-header h2 {
  margin: 0 0 4px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
}

.abs-support-header p {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
}

.abs-support-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.abs-support-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  transition: border-color 0.15s;
}

.abs-support-card:hover { border-color: #c7d2fe; }

.abs-support-card.abs-support-closed {
  opacity: 0.65;
}

.abs-support-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.abs-support-card-phone { background: #3b82f6; }
.abs-support-card-wa { background: #25d366; }
.abs-support-card-email { background: #6366f1; }

.abs-support-card-body { flex: 1; min-width: 0; }

.abs-support-card-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1e293b;
}

.abs-support-card-value {
  font-size: 0.8rem;
  color: #64748b;
  overflow-wrap: break-word;
  white-space: nowrap;
}

.abs-support-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: 2px;
}

.abs-support-open {
  background: #ecfdf5;
  color: #065f46;
}

.abs-support-closed-badge {
  background: #fef2f2;
  color: #991b1b;
}

.abs-wa-btn {
  background: #25d366 !important;
  border-color: #25d366 !important;
  color: #fff !important;
}

.abs-wa-btn:hover {
  background: #1ebe5d !important;
}

/* Schedule */
.abs-support-schedule {
  margin-bottom: 20px;
}

.abs-support-schedule h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px;
}

.abs-support-schedule-list {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

.abs-support-schedule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  font-size: 0.9rem;
  border-bottom: 1px solid #f1f5f9;
}

.abs-support-schedule-row:last-child { border-bottom: none; }

.abs-support-today {
  background: #eef2ff;
  font-weight: 600;
}

.abs-support-schedule-day {
  color: #334155;
  font-weight: 500;
}

.abs-support-schedule-hours {
  color: #059669;
  font-weight: 600;
}

.abs-support-schedule-closed {
  color: #ef4444;
  font-weight: 500;
  font-size: 0.85rem;
}

/* Address */
.abs-support-address {
  margin-bottom: 20px;
}

.abs-support-address h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}

.abs-support-address p {
  color: #475569;
  font-size: 0.9rem;
  margin: 0 0 8px;
}

/* ---- Mobile responsive fixes for Profile SPA ---- */
@media (max-width: 480px) {
  /* Support cards: wrap to column on narrow screens */
  .abs-support-card {
    flex-wrap: wrap;
    gap: 8px;
  }
  .abs-support-card-body {
    flex: 1 1 calc(100% - 54px);
    min-width: 0;
  }
  .abs-support-card > .abs-btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
  .abs-support-card-value {
    white-space: normal;
    overflow-wrap: break-word;
  }

  /* Dashboard stats: 2 columns */
  .abs-dash-stats {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Calendar booking card top row: stack on very narrow */
  .abs-cal-booking-top {
    flex-wrap: wrap;
    gap: 8px;
  }
  .abs-cal-booking-actions {
    flex-wrap: wrap;
  }
  .abs-cal-booking-actions .abs-btn,
  .abs-cal-booking-actions .abs-add-cal .abs-btn {
    flex: 1;
    text-align: center;
    min-width: 0;
  }

  /* Booking list rows: wrap on narrow */
  .abs-booking-row {
    flex-wrap: wrap;
    gap: 6px;
  }
  .abs-booking-meta {
    width: 100%;
  }

  /* Schedule list tighter */
  .abs-support-schedule-row {
    font-size: 0.85rem;
    padding: 8px 10px;
  }
}
