/* ===================================
   ROLLING REPAIRS — Portal & Admin CSS
   =================================== */

/* ── Screens ───────────────────────────────────── */
.portal-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: var(--nav-height);
}

/* ═══════════════════════════════════════════════════
   CLAIM INVITE BANNER
   ═══════════════════════════════════════════════════ */

.claim-banner {
  width: 100%;
  max-width: 460px;
  margin: 28px auto 0;
  background: #fff;
  border: 1.5px solid #bfdbfe;
  border-radius: 18px;
  padding: 20px 22px 18px;
  text-align: center;
}

.claim-banner-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 6px;
}

.claim-banner-service {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1c1c1e;
  margin: 0 0 10px;
}

.claim-banner-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 12px;
}

.claim-detail-item {
  background: #f1f5f9;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}

.claim-banner-cta {
  font-size: 13px;
  color: #6e6e73;
  margin: 0;
  line-height: 1.5;
}

/* ── Auth Card ─────────────────────────────────── */
.auth-card {
  background: var(--white);
  border: 1.5px solid var(--mid-gray);
  border-radius: 24px;
  padding: 48px 44px;
  width: 100%;
  max-width: 460px;
  margin: 48px auto;
  text-align: center;
}

.auth-logo {
  width: 80px;
  height: auto;
  margin: 0 auto 20px;
}

.auth-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: 8px;
}

.auth-sub {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 28px;
}

.auth-tabs {
  display: flex;
  background: var(--light-gray);
  border-radius: 980px;
  padding: 4px;
  margin-bottom: 28px;
}

.auth-tab {
  flex: 1;
  padding: 8px;
  border: none;
  background: transparent;
  border-radius: 980px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  cursor: pointer;
  transition: all var(--transition);
}

.auth-tab.active {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.auth-form {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 0;
}

.auth-error {
  font-size: 13px;
  color: #e03131;
  margin-bottom: 12px;
  min-height: 18px;
}

.terms-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  cursor: pointer;
}

.terms-check-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--blue);
  cursor: pointer;
  border-radius: 4px;
}

.terms-check-label span {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.5;
}

.terms-check-label a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}

.terms-check-label a:hover {
  text-decoration: underline;
}

.forgot-wrap {
  margin-top: 12px;
  text-align: center;
  animation: fadeSlideIn 0.3s ease;
}

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

.forgot-btn {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--blue);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.forgot-btn:hover {
  background: rgba(0, 113, 227, 0.08);
}

.forgot-btn:active {
  opacity: 0.6;
}

/* ── Your Next Job ──────────────────────────────── */
.next-job-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  background: var(--black);
  color: var(--white);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 28px;
}

.next-job-empty {
  background: var(--light-gray);
  color: var(--gray);
}

.next-job-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 8px;
}

.next-job-service {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.next-job-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 4px;
}

.next-job-right {
  text-align: right;
  flex-shrink: 0;
}

.next-job-when {
  display: inline-block;
  background: var(--blue);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.next-job-date {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}

.next-job-time {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}

@media (max-width: 600px) {
  .next-job-card { flex-direction: column; gap: 16px; padding: 22px 20px; }
  .next-job-right { text-align: left; }
}

/* ── Calendar ────────────────────────────────────── */
.cal-wrap {
  background: var(--white);
  border-radius: 16px;
  border: 1.5px solid var(--mid-gray);
  padding: 24px;
  margin-bottom: 32px;
}

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

.cal-month-label {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
}

.cal-nav-btn {
  background: var(--light-gray);
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  font-size: 20px;
  cursor: pointer;
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.cal-nav-btn:hover { background: var(--mid-gray); }

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

.cal-dow {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray);
  text-align: center;
  padding: 6px 0;
  letter-spacing: 0.05em;
}

.cal-cell {
  border-radius: 10px;
  padding: 8px 6px 6px;
  min-height: 64px;
  cursor: pointer;
  transition: background 0.12s;
  position: relative;
}
.cal-cell:hover { background: var(--light-gray); }
.cal-cell.cal-empty { cursor: default; }
.cal-cell.cal-empty:hover { background: none; }

.cal-today .cal-day-num {
  background: var(--blue);
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-selected { background: #eff6ff !important; outline: 2px solid var(--blue); }

.cal-day-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
}

.cal-pending-alert {
  background: #fef3c7;
  color: #b45309;
  border-radius: 50%;
}

.cal-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 2px;
}

.cal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.dot-pending    { background: #f59e0b; }
.dot-booked     { background: #3b82f6; }
.dot-confirmed  { background: #10b981; }
.dot-en-route   { background: #8b5cf6; }
.dot-in-progress { background: #0071e3; }
.dot-complete   { background: #9ca3af; }
.dot-blocked    { background: #f87171; }

.cal-more {
  font-size: 9px;
  color: var(--gray);
  font-weight: 600;
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--light-gray);
  font-size: 12px;
  color: var(--gray);
  align-items: center;
}

.cal-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}

.cal-day-header {
  margin-bottom: 16px;
}

.cal-day-header h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
}

/* ── Delete Button ─────────────────────────────── */
.delete-btn {
  background: transparent;
  border-color: #fca5a5;
  color: #dc2626;
  margin-left: auto;
}

.delete-btn:hover {
  background: #fff5f5;
  border-color: #dc2626;
  color: #dc2626;
}



.dash-body {
  padding-top: 56px;
  padding-bottom: 80px;
  width: 100%;
}

/* ── Dashboard Top Bar ─────────────────────────── */
.dash-topbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 48px;
  gap: 14px;
  text-align: center;
}

.btn-book-repair {
  font-size: 13px;
  padding: 8px 20px;
  border-radius: 20px;
}

.dash-greeting {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.dash-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--black);
  margin: 0;
}

@media (max-width: 600px) {
  .dash-topbar { margin-bottom: 32px; }
  .btn-book-repair { width: auto; }
  .dash-title { font-size: 26px; }
}

.dash-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--gray);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  border: 1.5px dashed var(--mid-gray);
  border-radius: var(--radius);
}

/* ── Appointment Cards ─────────────────────────── */
.appt-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border: 1.5px solid var(--mid-gray);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 12px;
  transition: box-shadow var(--transition);
}

.appt-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
}

.appt-service {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.appt-meta {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.5;
}

.appt-notes {
  font-size: 13px;
  color: var(--gray);
  font-style: italic;
  background: var(--light-gray);
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 4px;
  display: inline-block;
}

.stat-num {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--black);
  line-height: 1;
}

.stat-lbl {
  font-size: 11px;
  font-weight: 500;
  color: var(--gray);
  letter-spacing: 0.02em;
}

/* ── Status Badges ─────────────────────────────── */
.status-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.status-booked      { background: #e8f0fe; color: #1a73e8; }
.status-confirmed   { background: #e6f4ea; color: #1e8e3e; }
.status-en-route    { background: #fef7e0; color: #b45309; }
.status-in-progress { background: #fce8e6; color: #d93025; }
.status-complete    { background: #e6f4ea; color: #1e8e3e; }

/* ── Live Tracker ──────────────────────────────── */
.tracker-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 40px;
  margin-bottom: 48px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.tracker-service {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  color: var(--black);
}

.tracker-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.tracker-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.step-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--light-gray);
  border: 2px solid var(--mid-gray);
  transition: all 0.4s ease;
}

.tracker-step.done .step-dot {
  background: #22a861;
  border-color: #22a861;
}

.tracker-step.active .step-dot {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0,113,227,0.15);
  transform: scale(1.2);
}

.step-label {
  font-size: 11px;
  color: var(--mid-gray);
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tracker-step.done .step-label {
  color: #22a861;
}

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

.tracker-line {
  flex: 1;
  height: 2px;
  background: var(--mid-gray);
  margin-bottom: 18px;
  transition: background 0.4s ease;
}

.tracker-line.done {
  background: #22a861;
}

.tracker-note {
  font-size: 14px;
  color: var(--gray);
  text-align: center;
  padding-top: 4px;
}

/* ── Admin ─────────────────────────────────────── */
.admin-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-light);
  padding: 5px 14px;
  border-radius: 980px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Admin Header ──────────────────────────────── */
.dash-header {
  background: var(--white);
  border-bottom: 1px solid var(--mid-gray);
  padding: 40px 0 32px;
}

.dash-header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.dash-welcome {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 6px;
}

.dash-name {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--black);
  line-height: 1;
}

.admin-stats {
  display: flex;
  gap: 12px;
  align-items: center;
}

.stat-pill {
  background: var(--light-gray);
  color: var(--black);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 80px;
  text-align: center;
  line-height: 1.3;
}

/* ── Tab Bar ───────────────────────────────────── */
.admin-filters {
  background: var(--white);
  border-bottom: 1px solid var(--mid-gray);
  padding: 0;
  position: sticky;
  top: var(--nav-height);
  z-index: 100;
}

.admin-tab-row {
  display: flex;
  gap: 0;
  border-bottom: none;
}

.admin-tab-btn {
  padding: 16px 28px;
  border-radius: 0;
  border: none;
  border-bottom: 2.5px solid transparent;
  background: transparent;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: -1px;
}

.admin-tab-btn.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
  background: transparent;
  box-shadow: none;
}

.admin-tab-btn:hover:not(.active) {
  color: var(--black);
  background: var(--light-gray);
}

/* ── Filter Pills ──────────────────────────────── */
.admin-filters.filter-bar {
  padding: 14px 0;
  background: #f9f9fb;
  border-bottom: 1px solid var(--mid-gray);
  position: sticky;
  top: calc(var(--nav-height) + 49px);
}

.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-btn {
  padding: 7px 18px;
  border-radius: 980px;
  border: 1.5px solid var(--mid-gray);
  background: var(--white);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.filter-btn.active {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
  font-weight: 600;
}

.filter-btn:hover:not(.active) {
  border-color: #aaa;
  color: var(--black);
}

/* ── Job Cards ─────────────────────────────────── */
.admin-job-card {
  background: var(--white);
  border: 1px solid #e8e8ed;
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 16px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-job-card:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  border-color: #d0d0d8;
}

.admin-job-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 16px;
}

.admin-job-details {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-job-actions {
  border-top: 1px solid #f0f0f5;
  padding-top: 20px;
}

.status-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.status-btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.status-btn {
  padding: 8px 16px;
  border-radius: 980px;
  border: 1.5px solid #e0e0e8;
  background: var(--white);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  transition: all 0.15s ease;
}

.status-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}

.status-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

/* ── Group Titles ──────────────────────────────── */
.appt-group-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--mid-gray);
}

.appt-group-title:first-child { margin-top: 8px; }

.admin-group-title { color: var(--gray); }

/* ── Pending Card ──────────────────────────────── */
.pending-card {
  border-color: #f59e0b;
  border-width: 1.5px;
  background: #fffdf5;
}

/* ── Approve / Deny Buttons ────────────────────── */
.approve-btn {
  background: #22a861;
  border-color: #22a861;
  color: var(--white);
}
.approve-btn:hover {
  background: #1a8f52;
  border-color: #1a8f52;
  color: var(--white);
}

.deny-btn {
  background: #e03131;
  border-color: #e03131;
  color: var(--white);
}
.deny-btn:hover {
  background: #c92a2a;
  border-color: #c92a2a;
  color: var(--white);
}

/* ── Customer Status Notes ─────────────────────── */
.appt-pending-note {
  font-size: 12px;
  color: #b45309;
  background: #fef3c7;
  border-radius: 8px;
  padding: 6px 10px;
  margin-top: 8px;
  display: inline-block;
}

.appt-denied-note {
  font-size: 12px;
  color: #c92a2a;
  background: #fff0f0;
  border-radius: 8px;
  padding: 6px 10px;
  margin-top: 8px;
  display: inline-block;
}

/* ── Status Badge — Pending / Denied ──────────── */
.status-pending-approval { background: #fef3c7; color: #b45309; }
.status-denied            { background: #fff0f0; color: #c92a2a; }

/* ── Responsive ────────────────────────────────── */
@media (max-width: 768px) {
  /* Admin header */
  .dash-header {
    padding: 24px 0 20px;
  }

  .dash-name {
    font-size: 28px;
  }

  .dash-header-inner {
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-start;
  }

  /* Stats pills — scrollable row */
  .admin-stats {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    gap: 8px;
    scrollbar-width: none;
  }

  .admin-stats::-webkit-scrollbar { display: none; }

  .stat-pill {
    flex-shrink: 0;
  }

  /* Tab bar — scrollable */
  .admin-tab-row {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .admin-tab-row::-webkit-scrollbar { display: none; }

  .admin-tab-btn {
    flex-shrink: 0;
    padding: 14px 22px;
  }

  /* Day nav */
  .day-nav-label {
    font-size: 13px;
  }

  .day-nav-block-btn {
    padding: 7px 12px;
    font-size: 12px;
  }

  /* Filter row scrolls horizontally */
  .filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .filter-row::-webkit-scrollbar { display: none; }

  .filter-btn {
    flex-shrink: 0;
  }

  .appt-card {
    flex-direction: column;
    padding: 20px;
    gap: 12px;
  }

  .admin-job-card {
    padding: 20px;
  }

  .admin-job-top {
    flex-direction: column;
    gap: 10px;
  }

  /* Schedule cards on mobile */
  .schedule-job-card {
    padding: 18px 18px;
  }

  .sched-card-actions {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  /* Admin header */
  .dash-header {
    padding: 18px 0 16px;
  }

  .dash-name {
    font-size: 24px;
  }

  .dash-welcome {
    font-size: 11px;
    margin-bottom: 4px;
  }

  /* Auth card */
  .auth-card {
    padding: 32px 20px;
    margin: 24px auto;
    border: none;
    border-radius: 20px;
    width: calc(100% - 32px);
    box-shadow: none;
  }

  .auth-title {
    font-size: 24px;
  }

  /* Signup form — stack name fields */
  .auth-card .form-row {
    grid-template-columns: 1fr;
  }

  .stat-pill {
    font-size: 12px;
    padding: 6px 14px;
    min-width: 64px;
  }

  .dash-body {
    padding-top: 24px;
    padding-bottom: 60px;
  }

  /* Day nav */
  .day-nav-label {
    font-size: 12px;
  }

  .day-nav-btn {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  /* Tracker */
  .tracker-card {
    padding: 24px 16px;
    border-radius: 16px;
  }

  .tracker-service {
    font-size: 17px;
    margin-bottom: 24px;
  }

  .step-dot {
    width: 16px;
    height: 16px;
  }

  .step-label {
    font-size: 9px;
    letter-spacing: 0;
  }

  .tracker-note {
    font-size: 13px;
  }

  /* Appointment cards */
  .appt-card {
    padding: 16px;
    border-radius: 14px;
  }

  .appt-service {
    font-size: 15px;
  }

  /* Admin job cards */
  .admin-job-card {
    padding: 16px;
    border-radius: 14px;
  }

  /* Schedule job cards */
  .schedule-job-card {
    padding: 16px;
    border-radius: 14px;
  }

  .schedule-job-service {
    font-size: 15px;
  }

  .sched-card-actions {
    margin-top: 14px;
    padding-top: 14px;
  }

  .status-btn-group {
    gap: 6px;
    flex-wrap: wrap;
  }

  .status-btn {
    padding: 7px 12px;
    font-size: 11px;
  }

  .approve-btn,
  .deny-btn {
    flex: 1;
    text-align: center;
    justify-content: center;
  }

  /* Booking modal — centered on mobile */
  .modal-overlay {
    padding: 16px;
    align-items: center;
  }

  .modal-overlay .modal {
    border-radius: 20px;
    max-height: 88vh;
    padding: 28px 20px 32px;
    width: 100%;
    max-width: 100%;
    overflow-y: auto;
  }

  /* Booking form — stack date & time */
  #bookingForm .form-row {
    grid-template-columns: 1fr;
  }

  .appt-group-title {
    font-size: 11px;
    margin: 24px 0 10px;
  }

  .filter-btn {
    padding: 7px 14px;
    font-size: 12px;
  }

  /* Next job card — already has a 600px breakpoint,
     tighten further at 480 */
  .next-job-service { font-size: 19px; }
  .next-job-time    { font-size: 19px; }
}

/* ── Account Modal ──────────────────────────────── */
.account-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: var(--font);
}

.account-meta {
  font-size: 13px;
  color: var(--gray);
  text-align: center;
  margin-bottom: 16px;
}

.account-divider {
  height: 1px;
  background: var(--mid-gray);
  margin: 24px 0;
}

.account-pw-note {
  font-size: 13px;
  color: var(--gray);
  text-align: center;
  margin-top: 10px;
}

.account-msg-success {
  color: #22a861;
  font-size: 14px;
  text-align: center;
  margin-bottom: 12px;
}

/* ── Booking Modal Wide ─────────────────────────── */
.modal-wide {
  max-width: 520px;
}

/* ── Step Indicator ──────────────────────────────── */
.bsn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 28px;
}
.bsn-step {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
  padding: 4px 10px;
  border-radius: 980px;
  transition: all 0.2s;
}
.bsn-step.active {
  background: var(--blue);
  color: white;
  font-weight: 600;
}
.bsn-step.done {
  color: var(--blue);
}
.bsn-div {
  color: var(--mid-gray);
  font-size: 13px;
}

/* ── Book Pages ──────────────────────────────────── */
.book-page { animation: fadeSlideIn 0.2s ease; }
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.book-date-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  text-align: center;
  margin-bottom: 20px;
}

/* ── Calendar ─────────────────────────────────────── */
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cal-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
}
.cal-arrow {
  background: none;
  border: 1.5px solid var(--mid-gray);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  font-size: 18px;
  cursor: pointer;
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}
.cal-arrow:hover { border-color: var(--blue); color: var(--blue); }

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}
.cal-weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 0;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: default;
}
.cal-empty { background: none; }
.cal-disabled {
  color: var(--mid-gray);
  background: none;
}
.cal-available {
  background: rgba(0,113,227,0.08);
  color: var(--blue);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.cal-available:hover { background: rgba(0,113,227,0.18); }
.cal-selected {
  background: var(--blue) !important;
  color: white !important;
}

/* ── Time Slots ──────────────────────────────────── */
.ts-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 0;
  color: var(--gray);
  font-size: 14px;
}
.ts-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--mid-gray);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.ts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}
.ts-slot {
  padding: 12px 8px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
}
.ts-avail {
  background: rgba(0,113,227,0.08);
  color: var(--blue);
  border-color: rgba(0,113,227,0.2);
}
.ts-avail:hover { background: rgba(0,113,227,0.16); }
.ts-selected {
  background: var(--blue) !important;
  color: white !important;
  border-color: var(--blue) !important;
}
.ts-taken {
  background: var(--light-gray);
  color: var(--mid-gray);
  cursor: not-allowed;
}
.ts-empty {
  text-align: center;
  color: var(--gray);
  font-size: 14px;
  padding: 24px 0;
  grid-column: 1 / -1;
}

/* ── Booking Summary ──────────────────────────────── */
.book-summary {
  background: var(--light-gray);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}
.book-sum-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 14px;
  gap: 16px;
}
.book-sum-row:last-child { border-bottom: none; }
.book-sum-row span { color: var(--gray); flex-shrink: 0; }
.book-sum-row strong { color: var(--black); text-align: right; }

.form-hint {
  font-size: 12px;
  color: var(--gray);
  margin-top: 6px;
  line-height: 1.5;
}

/* ── Block Time Button & Card ───────────────────── */
.filter-btn-block {
  background: #fff7ed;
  color: #c2410c;
  border: 1.5px solid #fed7aa;
  margin-left: auto;
}
.filter-btn-block:hover {
  background: #ffedd5;
  border-color: #fb923c;
}

.block-card {
  border-left: 4px solid #fb923c;
  background: #fff7ed;
}

.status-block {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

/* ── TOTP / 2FA ─────────────────────────────────── */
.totp-input {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 10px;
  text-align: center;
  padding: 14px 20px;
  border-radius: 14px;
  font-variant-numeric: tabular-nums;
}

.totp-back-btn {
  display: block;
  margin: 14px auto 0;
  background: none;
  border: none;
  color: var(--blue);
  font-size: 14px;
  cursor: pointer;
  padding: 6px;
}
.totp-back-btn:hover { text-decoration: underline; }

.totp-qr-wrap {
  display: flex;
  justify-content: center;
  margin: 4px 0 16px;
}
.totp-qr-img {
  width: 220px;
  height: 220px;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 8px;
  background: #fff;
}

.totp-secret-label {
  font-size: 13px;
  color: var(--gray);
  text-align: center;
  margin-bottom: 6px;
}
.totp-secret-box {
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  letter-spacing: 2px;
  text-align: center;
  word-break: break-all;
  color: var(--dark);
  user-select: all;
}

.btn-2fa-setup {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  align-items: center;
  gap: 6px;
}
.btn-2fa-setup:hover {
  background: var(--light-gray);
  border-color: #ccc;
}

/* ── Day Navigator Bar ───────────────────────────── */
.admin-day-nav-bar {
  background: var(--white);
  border-bottom: 1px solid var(--mid-gray);
  padding: 10px 0;
  position: sticky;
  top: calc(var(--nav-height) + 49px);
  z-index: 99;
}

.day-nav-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.day-nav-btn {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--mid-gray);
  border-radius: 10px;
  background: var(--white);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  flex-shrink: 0;
  transition: border-color .15s, color .15s, background .15s;
  padding: 0;
  font-family: var(--font);
}

.day-nav-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}

.day-nav-btn:active {
  opacity: .7;
}

.day-nav-label {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.day-nav-block-btn {
  flex-shrink: 0;
  margin-left: 0;
}

/* ── Schedule card actions (status buttons inside day view) ── */
.sched-card-actions {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f5;
  flex-wrap: wrap;
}

/* ── Drive Schedule Tab ──────────────────────────── */

.schedule-date-header {
  font-size: 17px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.schedule-timeline {
  display: flex;
  flex-direction: column;
}

.schedule-job-card {
  background: var(--white);
  border: 1.5px solid #e8e8ed;
  border-radius: 18px;
  padding: 22px 24px;
  position: relative;
  transition: box-shadow 0.2s ease;
}

.schedule-job-card:hover {
  box-shadow: 0 6px 32px rgba(0,0,0,0.07);
}

.schedule-job-time {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.schedule-duration {
  font-weight: 400;
  color: var(--gray);
  text-transform: none;
  letter-spacing: 0;
}

.schedule-job-service {
  font-size: 17px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 7px;
  letter-spacing: -0.01em;
}

.schedule-job-meta {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 3px;
  line-height: 1.4;
}

.schedule-no-addr {
  color: #b45309;
}

/* Connector line between jobs */
.schedule-connector {
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 0 0 0 28px;
  position: relative;
  min-height: 64px;
}

.schedule-connector::before {
  content: '';
  position: absolute;
  left: 36px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--mid-gray) 0px,
    var(--mid-gray) 6px,
    transparent 6px,
    transparent 12px
  );
}

.schedule-connector-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 0 14px 36px;
  justify-content: center;
}

.schedule-travel-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.schedule-travel-icon {
  font-size: 17px;
  flex-shrink: 0;
}

.schedule-travel-text {
  font-size: 14px;
  color: var(--black);
}

.schedule-travel-unknown {
  color: var(--gray);
  font-style: italic;
}

.schedule-gap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
}

.schedule-gap-free {
  background: #d1fae5;
  color: #065f46;
}

.schedule-gap-tight {
  background: #fef3c7;
  color: #92400e;
}

.schedule-gap-conflict {
  background: #fee2e2;
  color: #991b1b;
}

.schedule-empty,
.schedule-loading {
  color: var(--gray);
  font-size: 15px;
  text-align: center;
  padding: 48px 0;
}

@keyframes schedulePulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.45; }
}

.schedule-loading {
  animation: schedulePulse 1.4s ease-in-out infinite;
}


/* ── Out-of-Service-Area Modal ────────────────────── */
#outOfAreaModal {
  z-index: 3000; /* sit above the booking modal */
}

#outOfAreaModal .modal {
  padding: 44px 40px 40px; /* extra breathing room */
}

.out-of-area-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.out-of-area-body {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 16px;
}

.out-of-area-addr {
  font-weight: 600;
  color: var(--black);
  word-break: break-word;
}

.out-of-area-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 32px 0 0;
}

.out-of-area-actions .btn {
  flex: 0 0 auto;
  min-width: 140px;
}

@media (max-width: 480px) {
  #outOfAreaModal .modal {
    padding: 36px 24px 32px;
  }
  .out-of-area-actions {
    flex-direction: column;
  }
  .out-of-area-actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* ── Service Cascade Sub-fields ──────────────────── */
.service-subfields {
  animation: subfieldsIn 0.18s ease both;
}

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

/* ── Price Estimate Card ─────────────────────────── */
.price-estimate-card {
  background: linear-gradient(135deg, #eef6ff 0%, #e4f0fb 100%);
  border: 1.5px solid #bdd9f5;
  border-radius: 16px;
  padding: 18px 20px 14px;
  margin-bottom: 20px;
  animation: subfieldsIn 0.2s ease both;
}

.price-est-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.price-est-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--blue);
}

.price-est-amount {
  font-size: 30px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.03em;
}

.price-est-sub-note {
  font-size: 12px;
  color: #2563eb;
  font-style: italic;
  margin-bottom: 8px;
  line-height: 1.4;
}

.price-est-disclaimer {
  font-size: 11.5px;
  color: var(--gray);
  line-height: 1.5;
  margin: 0;
}

/* ── Confirm step price row ──────────────────────── */
.book-sum-price-row strong.book-sum-price-amt {
  font-size: 20px;
  color: var(--blue);
  letter-spacing: -0.02em;
}

.book-sum-price-note {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.5;
  padding: 0 2px;
  margin-top: -8px;
  margin-bottom: 16px;
}

/* ────────────────────────────────────────────────────
   Apple-style Checkout (bookPage4)
   ──────────────────────────────────────────────────── */

.co-section {
  margin-bottom: 18px;
}

.co-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 7px;
  padding: 0 2px;
}

/* Shared card container */
.co-card {
  background: #f5f5f7;
  border-radius: 12px;
  overflow: hidden;
}

/* ── Booking Details rows ── */
.co-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.co-row:last-child { border-bottom: none; }
.co-row span:first-child {
  color: var(--gray);
  white-space: nowrap;
  flex-shrink: 0;
}
.co-row span:last-child {
  color: #1d1d1f;
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}

/* ── Order Summary rows ── */
.co-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  font-size: 14px;
  color: #1d1d1f;
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.co-price-row:last-of-type { border-bottom: none; }
.co-price-divider {
  height: 1px;
  background: rgba(0,0,0,.18);
  margin: 0 16px;
}
.co-price-row.co-price-total {
  font-weight: 700;
  font-size: 17px;
  padding: 14px 16px;
}
.co-price-row.co-price-total span:last-child {
  font-size: 20px;
  letter-spacing: -0.03em;
}
.co-tbd {
  color: var(--gray);
  font-style: italic;
  font-size: 13px;
}
.co-price-note {
  font-size: 11.5px;
  color: var(--gray);
  line-height: 1.55;
  padding: 2px 16px 10px;
  margin: 0;
}
.co-fee-note {
  border-top: 1px solid rgba(0,0,0,.07);
  padding-top: 10px;
  font-weight: 500;
  color: #555;
}

/* ── Payment card ── */
.co-payment-card {
  padding: 0;
}
.co-pay-row {
  display: flex;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.co-pay-row-last { border-bottom: none; }
.co-pay-field {
  flex: 1;
  padding: 11px 16px;
}
.co-pay-bordered {
  border-right: 1px solid rgba(0,0,0,.08);
}
.co-pay-row-full .co-pay-field { flex: 1; }
.co-pay-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 5px;
}
.co-input {
  border: none;
  background: transparent;
  font-size: 15px;
  font-family: inherit;
  color: #1d1d1f;
  width: 100%;
  padding: 0;
  outline: none;
  -webkit-appearance: none;
}
.co-input::placeholder { color: #c7c7cc; }
.co-card-num-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.co-card-brand {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray);
  white-space: nowrap;
  flex-shrink: 0;
}
.co-secure-note {
  font-size: 11.5px;
  color: #aaa;
  text-align: center;
  padding: 10px 16px 14px;
  margin: 0;
}

/* ── Pay button ── */
.co-pay-btn {
  display: block;
  width: 100%;
  background: #1d1d1f;
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  border: none;
  border-radius: 12px;
  padding: 16px 24px;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.15s ease;
}
.co-pay-btn:hover  { opacity: 0.85; }
.co-pay-btn:active { opacity: 0.70; }
.co-pay-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════
   BLOCK TIME CALENDAR MODAL  — Apple bottom-sheet
   ═══════════════════════════════════════════════════ */

/* Overlay */
.block-modal-overlay {
  position: fixed \!important;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9000;
  display: flex \!important;
  align-items: flex-end \!important;
  justify-content: center \!important;
  padding: 0 \!important;
}

/* Sheet */
.block-modal {
  background: #f2f2f7;
  border-radius: 20px 20px 0 0 \!important;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 0 0 max(env(safe-area-inset-bottom), 28px) \!important;
  animation: blockSlideUp 0.32s cubic-bezier(0.32, 0.72, 0, 1) \!important;
}

/* Drag handle */
.block-modal::before {
  content: '';
  display: block;
  width: 36px;
  height: 5px;
  background: rgba(60,60,67,.28);
  border-radius: 3px;
  margin: 10px auto 0;
}

/* Close button — circular, iOS style */
.block-modal > .modal-close {
  position: absolute \!important;
  top: 14px \!important;
  right: 16px \!important;
  width: 28px \!important;
  height: 28px \!important;
  background: rgba(116,116,128,.18) \!important;
  border-radius: 50% \!important;
  border: none \!important;
  font-size: 15px \!important;
  line-height: 1 \!important;
  color: #3c3c43 \!important;
  cursor: pointer;
  display: flex \!important;
  align-items: center \!important;
  justify-content: center \!important;
  padding: 0 \!important;
  font-weight: 600;
}
.block-modal > .modal-close:hover { background: rgba(116,116,128,.26) \!important; }

/* Phase wrappers get inner padding */
.block-modal > div {
  padding: 20px 20px 0;
}

@keyframes blockSlideUp {
  from { transform: translateY(100%); opacity: 0.6; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Title */
.block-modal .modal-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
  padding-right: 36px;
}

.block-modal .auth-sub {
  font-size: 13px;
  color: #6e6e73;
  margin-bottom: 0;
}

/* ── Month nav ── */
.bcal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 10px;
}

.bcal-month-label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1c1c1e;
}

/* Compact nav arrows */
.bcal-nav-btn {
  width: 30px \!important;
  height: 30px \!important;
  font-size: 20px \!important;
  background: rgba(116,116,128,.12) \!important;
  border-radius: 50% \!important;
  color: #007AFF \!important;
  border: none \!important;
  display: flex \!important;
  align-items: center \!important;
  justify-content: center \!important;
  cursor: pointer;
  transition: background .12s \!important;
}
.bcal-nav-btn:hover { background: rgba(116,116,128,.20) \!important; }

/* ── Day-of-week row ── */
.bcal-dow-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 2px;
}

.bcal-dow-row span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #6e6e73;
  text-align: center;
  padding: 4px 0 6px;
  display: block;
}

/* ── Calendar grid ── */
.bcal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 16px;
}

/* ── Cells ── */
.bcal-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 400;
  color: #1c1c1e;
  cursor: pointer;
  transition: background 0.1s, transform 0.08s;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
}

.bcal-cell:active { transform: scale(0.82); }

.bcal-empty {
  cursor: default;
  pointer-events: none;
}

.bcal-past {
  color: #c7c7cc;
  cursor: default;
  pointer-events: none;
}

/* Today — filled system blue circle */
.bcal-today > .bcal-day-num {
  background: #007AFF;
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Selected — system blue fill */
.bcal-selected {
  background: #007AFF;
  border-radius: 50%;
}
.bcal-selected .bcal-day-num {
  color: #fff;
  font-weight: 600;
}

/* Today + selected: keep white text, no double circle */
.bcal-today.bcal-selected > .bcal-day-num {
  background: transparent;
  color: #fff;
  font-weight: 700;
}

/* Blocked — soft red tint */
.bcal-blocked {
  background: rgba(255,59,48,.10);
  color: #ff3b30;
  border-radius: 50%;
  cursor: not-allowed;
  pointer-events: none;
}

/* Hover */
.bcal-cell:not(.bcal-past):not(.bcal-blocked):not(.bcal-empty):not(.bcal-selected):hover {
  background: rgba(0,122,255,.10);
  border-radius: 50%;
}

/* ── Count label ── */
.bcal-count-label {
  font-size: 13px;
  font-weight: 500;
  color: #6e6e73;
  margin-bottom: 10px;
  display: block;
  text-align: center;
}

/* Footer continue btn wrapper */
#blockCalFooter { padding-top: 4px; }

/* ── Back button ── */
.block-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  color: #007AFF;
  cursor: pointer;
  padding: 0;
  margin-bottom: 14px;
}

/* ── Choice cards — iOS grouped list ── */
.block-choice-row {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 20px;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
}

.block-choice-btn {
  border: none;
  border-bottom: 0.5px solid rgba(60,60,67,.18);
  background: #ffffff;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.1s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.block-choice-btn:last-child { border-bottom: none; }
.block-choice-btn:hover,
.block-choice-btn:active { background: #f2f2f7; }

.block-choice-active {
  background: #f0f6ff \!important;
}
.block-choice-active::after {
  content: '✓';
  color: #007AFF;
  font-weight: 700;
  font-size: 15px;
}

.block-choice-label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #1c1c1e;
  margin-bottom: 1px;
}

.block-choice-sub {
  display: block;
  font-size: 12px;
  color: #6e6e73;
}

/* ── Multi-day list ── */
.block-multi-list {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 4px;
}

.block-multi-item {
  padding: 12px 16px;
  border-bottom: 0.5px solid rgba(60,60,67,.18);
  font-size: 15px;
  font-weight: 400;
  color: #1c1c1e;
}

.block-multi-item:last-child { border-bottom: none; }

/* ── Time picker card ── */
#blockTimePicker {
  background: #ffffff;
  border-radius: 12px;
  padding: 4px 16px 12px;
  margin-top: 12px;
  margin-bottom: 4px;
}
#blockTimePicker .form-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6e6e73;
}

/* ═══════════════════════════════════════════════════
   ADMIN CALENDAR MOBILE FIXES
   ═══════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .cal-wrap {
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 20px;
  }

  .cal-cell {
    min-height: 48px;
    padding: 6px 4px 4px;
    border-radius: 8px;
  }

  .cal-day-num {
    font-size: 12px;
    width: 22px;
    height: 22px;
  }

  .cal-today .cal-day-num {
    width: 22px;
    height: 22px;
    font-size: 12px;
  }

  .cal-dow { font-size: 10px; }
  .cal-month-label { font-size: 16px; }
  .cal-nav-btn { width: 32px; height: 32px; font-size: 18px; }
  .cal-grid { gap: 2px; }

  .block-modal { padding: 0 0 max(env(safe-area-inset-bottom), 24px) \!important; }
  .block-modal > div { padding: 16px 16px 0; }
}

@media (max-width: 480px) {
  .cal-wrap { padding: 12px; border-radius: 12px; }
  .cal-cell { min-height: 40px; padding: 4px 2px; border-radius: 7px; }
  .cal-day-num { font-size: 11px; width: 20px; height: 20px; }
  .cal-today .cal-day-num { width: 20px; height: 20px; }
  .cal-dow { font-size: 9px; letter-spacing: 0; }
  .cal-grid { gap: 2px; }
  .cal-pending-alert { width: 10px; height: 10px; font-size: 7px; }

  /* block-choice-row is already column on mobile (flex-direction:column) */
}

/* Customer date buttons remain keyboard accessible; full unavailable days are gray. */
#calGrid button.cal-day{border:0;font-family:inherit;min-height:44px;padding:0}
#calGrid button.cal-disabled{color:#66716c;background:#eef0ee;cursor:not-allowed;opacity:1}
#calGrid button.cal-blocked{color:#606b63;background:#dde3de;text-decoration:line-through}
#calGrid button.cal-available:focus-visible{outline:3px solid #ce6837;outline-offset:2px}
.cal-availability-status{font-size:13px;line-height:1.6;color:#536259;min-height:40px;margin:12px 0 4px}
.cal-retry{min-height:44px;border:0;border-radius:8px;background:#edf2ed;color:#205d49;font-family:inherit;font-size:13px;font-weight:600;padding:10px 14px;cursor:pointer}
