/* Shumly – light modern theme */

* { box-sizing: border-box; }
:root {
  --bg: #f8f9fb;
  --bg-card: #ffffff;
  --bg-input: #f1f3f5;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --accent: #10b981;
  --accent-hover: #059669;
  --accent-light: rgba(16, 185, 129, 0.1);
  --border: #e2e5ea;
  --border-focus: var(--accent);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
  --radius: 14px;
  --radius-sm: 8px;
  --danger: #ef4444;
  --danger-light: rgba(239,68,68,0.08);
}
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 56rem; margin: 0 auto; padding: 0 1.5rem; }

/* ---- Header ---- */
header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.75rem 2rem;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
header .inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3.25rem;
}
header .logo {
  margin-right: auto;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
}
header .logo img {
  height: 180px;
  width: auto;
  vertical-align: middle;
  margin: -65px 0;
}
header .btn-ghost {
  padding: 0.45rem 0.9rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
header .btn-ghost:hover {
  background: var(--bg);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}
header .btn-primary-nav {
  padding: 0.45rem 1rem;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-weight: 600;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}
header .btn-primary-nav:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 2px 8px rgba(16,185,129,0.3);
}

/* ---- Dropdown (Login / Signup) ---- */
header .dropdown {
  position: relative;
  display: inline-block;
}
header .dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  box-shadow: var(--shadow-lg);
}
header .dropdown.open .dropdown-panel { display: block; }
header .dropdown-choice {
  display: block;
  width: 100%;
  padding: 0.8rem 1rem;
  margin-bottom: 0.5rem;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
header .dropdown-choice:last-child { margin-bottom: 0; }
header .dropdown-choice:hover {
  background: var(--accent-light);
  border-color: var(--accent);
}
header .dropdown-choice small {
  display: block;
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ---- Hero (index.html) ---- */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem 4rem;
  background: linear-gradient(160deg, #f0fdf4 0%, #f8f9fb 40%, #eff6ff 100%);
}
.hero-logo {
  width: clamp(300px, 45vw, 540px);
  height: auto;
  margin-bottom: -2rem;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  line-height: 1.15;
  color: var(--text);
}
.hero .tagline {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 38rem;
  margin: 0 auto 2rem;
  line-height: 1.6;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.btn-primary-hero {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2.25rem;
  font-size: 1.125rem;
  font-weight: 600;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}
.btn-primary-hero:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.35);
}
.hero .btn-chatgpt {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.25rem;
  font-size: 1.125rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(16,185,129,0.3);
}
.hero .btn-chatgpt:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16,185,129,0.35);
}
.hero .hero-note {
  font-size: 0.875rem;
  font-weight: 500;
  color: #15803d;
  margin: 0 auto;
  max-width: 28rem;
}

/* ---- Homepage sections ---- */
.section {
  max-width: 64rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 2.5rem;
  color: var(--text);
}

/* How It Works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-number {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.step-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--text);
}
.step-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Use Cases */
.use-cases {
  background: #f8fafb;
  max-width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.use-cases h2 { max-width: 64rem; margin-left: auto; margin-right: auto; margin-bottom: 2.5rem; }
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
}
.case-card {
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.case-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}
.case-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.case-types {
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 1rem;
}
.case-card p:last-child {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.benefit-card {
  text-align: center;
  padding: 1.5rem 1rem;
}
.benefit-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.benefit-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.benefit-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* CTA Banner */
.cta-banner {
  text-align: center;
  background: linear-gradient(160deg, #f0fdf4 0%, #eff6ff 100%);
  max-width: 100%;
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--border);
}
.cta-banner h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.cta-banner p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
}
.cta-banner .btn-primary-hero {
  font-size: 1.125rem;
}

/* ---- Auth pages (centered card) ---- */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.auth-page main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.auth-card {
  width: 100%;
  max-width: 24rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}
.auth-card h1 { font-size: 1.5rem; margin: 0 0 1.5rem; font-weight: 700; }

/* ---- Forms ---- */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"] {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input[type="date"] {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
input[type="date"]::-webkit-calendar-picker-indicator {
  display: none;
  -webkit-appearance: none;
}
input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
}
input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-light);
}
select.input-select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
  appearance: auto;
  transition: border-color 0.2s, box-shadow 0.2s;
}
select.input-select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.btn:hover { background: var(--accent-hover); box-shadow: 0 2px 8px rgba(16,185,129,0.25); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary {
  background: var(--bg-input);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { background: var(--bg); border-color: #cbd5e1; }
.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover { background: #dc2626; }
.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  width: auto;
}
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1.5rem; }
.text-center { text-align: center; }
.auth-card a { color: var(--accent); text-decoration: none; font-weight: 500; }
.auth-card a:hover { text-decoration: underline; }

/* ---- Multi-step signup ---- */
.steps {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s, box-shadow 0.2s;
}
.step-dot.done { background: var(--accent); }
.step-dot.current { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-light); }
.add-service-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 0.6rem;
  align-items: end;
  margin-bottom: 0.6rem;
}
.add-service-row input { margin: 0; }
.btn-add-service {
  padding: 0.7rem 1rem;
  background: transparent;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.btn-add-service:hover { border-color: var(--accent); color: var(--accent); }
.service-block {
  margin-bottom: 0.75rem;
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* ---- Service mode cards (signup) ---- */
.service-mode-cards {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin: 1.5rem 0 1.25rem;
}
.mode-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  min-width: 130px;
  text-align: center;
}
.mode-card:hover { border-color: var(--accent); background: rgba(76,201,162,0.04); }
.mode-card.selected {
  border-color: var(--accent);
  background: rgba(76,201,162,0.08);
  box-shadow: 0 0 0 3px rgba(76,201,162,0.18);
}
.mode-card svg { color: var(--accent); }
.mode-card span { font-size: 0.875rem; font-weight: 600; color: var(--text); }

/* ---- Available days grid (home services) ---- */
.avail-days-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.avail-day-check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.avail-day-check:last-child { border-bottom: none; }
.avail-day-check:hover { background: rgba(76,201,162,0.04); }
.avail-day-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.avail-day-check span { font-size: 0.875rem; font-weight: 500; }

/* ---- Suburb autocomplete & tags ---- */
.suburb-autocomplete-wrap { position: relative; }
.suburb-autocomplete-wrap input { width: 100%; }
.suburb-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  max-height: 200px;
  overflow-y: auto;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.suburb-suggestion {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background 0.1s;
}
.suburb-suggestion:hover { background: rgba(76,201,162,0.1); }
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(76,201,162,0.12);
  color: var(--text);
  border: 1px solid rgba(76,201,162,0.3);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.8125rem;
  font-weight: 500;
}
.tag button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-muted);
  padding: 0;
  line-height: 1;
}
.tag button:hover { color: var(--error); }

/* ---- Hours grid (signup + edit) ---- */
.hours-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.hours-row {
  display: grid;
  grid-template-columns: 7.5rem 3rem 1fr;
  align-items: center;
  padding: 0.6rem 0.75rem;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.hours-row:last-child { border-bottom: none; }
.hours-row.closed { background: var(--bg); }
.hours-row .day-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
.hours-row.closed .day-name { color: var(--text-muted); }
.hours-toggle {
  position: relative;
  width: 36px;
  height: 20px;
  appearance: none;
  -webkit-appearance: none;
  background: #d1d5db;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  outline: none;
  flex-shrink: 0;
}
.hours-toggle:checked { background: var(--accent); }
.hours-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.hours-toggle:checked::after { transform: translateX(16px); }
.hours-times {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
}
.hours-times select {
  padding: 0.35rem 0.4rem;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.hours-times select:focus {
  outline: none;
  border-color: var(--accent);
}
.hours-times .sep {
  color: var(--text-muted);
  font-weight: 500;
}
.hours-closed-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---- Dashboard ---- */
.dashboard-page { min-height: 100vh; }
.dashboard-page header {
  position: sticky;
  padding: 0.75rem 2rem;
  border-bottom: 1px solid var(--border);
}
.dashboard-page header .inner { max-width: 72rem; }
.dashboard-page main { padding: 2rem 1.5rem; }
.dashboard-page h1 { font-size: 1.5rem; margin: 0 0 1.5rem; font-weight: 700; }
.dashboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.dashboard-card h2 { font-size: 1.1rem; margin: 0 0 1rem; font-weight: 600; }

/* ---- Dashboard icon tiles ---- */
.dash-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  min-width: 110px;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
  border: 1px solid transparent;
}
.dash-tile:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.dash-tile span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #15803d;
  text-align: center;
  line-height: 1.3;
}

/* ---- Booking list ---- */
.booking-list { list-style: none; padding: 0; margin: 0; }
.booking-list li {
  padding: 1rem 1.125rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
  border: 1px solid var(--border);
  transition: box-shadow 0.15s;
}
.booking-list li:hover { box-shadow: var(--shadow-sm); }
.booking-list .actions { margin-top: 0.5rem; }
.booking-list button, .booking-list a {
  font-size: 0.8125rem;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  margin-right: 1rem;
}
.booking-list button:hover, .booking-list a:hover { text-decoration: underline; }
.booking-list .cancel { color: var(--danger); }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: 3rem;
}
.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 2rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.site-footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ---- Utilities ---- */
.flex { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.alert { padding: 0.875rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: 0.9rem; }
.alert-success { background: var(--accent-light); color: #047857; }
.alert-error { background: var(--danger-light); color: var(--danger); }
.alert-info { background: rgba(107,114,128,0.08); color: var(--text-muted); }

/* ---- Shop list / booking flow ---- */
.shop-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.shop-card {
  display: block;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.shop-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-list { list-style: none; padding: 0; margin: 0; }
.service-list li { margin-bottom: 0.5rem; }
.service-list button {
  width: 100%;
  padding: 1rem;
  text-align: left;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.service-list button:hover { border-color: var(--accent); background: var(--accent-light); }
.slot-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0; }
.slot-list button {
  padding: 0.5rem 0.8rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
}
.slot-list button:hover { border-color: var(--accent); }
.slot-list button.selected { background: var(--accent); color: #fff; border-color: var(--accent); }
.token-box {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.8125rem;
  padding: 0.75rem;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  word-break: break-all;
  border: 1px solid var(--border);
}

/* ---- Back link ---- */
.dashboard-page a[href*="dashboard"] {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}
.dashboard-page a[href*="dashboard"]:hover { color: var(--accent); }

/* ---- Timetable ---- */
.timetable-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.timetable-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.timetable-nav button {
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.timetable-nav button:hover { background: var(--bg); border-color: #cbd5e1; }
.timetable-nav .week-label {
  font-size: 0.9375rem;
  font-weight: 600;
  min-width: 14rem;
  text-align: center;
}
.timetable-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.timetable-grid {
  display: grid;
  grid-template-columns: 60px repeat(7, 1fr);
  min-width: 720px;
}
.timetable-corner {
  background: var(--bg-input);
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.timetable-day-header {
  padding: 0.6rem 0.25rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--bg-input);
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.timetable-day-header:last-child { border-right: none; }
.timetable-day-header .day-date {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: normal;
  text-transform: none;
}
.timetable-day-header.today { background: var(--accent-light); }
.timetable-staff-header {
  padding: 0.75rem 0.25rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-input);
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.timetable-staff-header:last-child { border-right: none; }
.staff-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.staff-avatar.unassigned { background: var(--text-muted); }
.ev-guest { font-weight: 600; margin-top: 1px; }
.ev-note-icon { display: inline-block; margin-left: 3px; opacity: 0.7; font-size: 0.6rem; vertical-align: middle; }
.add-staff-header:hover { background: var(--accent-light); }
.add-staff-header:hover .staff-avatar { border-color: #0f9e6e; }
.timetable-hour-label {
  padding: 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: right;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  height: 50px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 2px;
}
.timetable-cell {
  position: relative;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  height: 50px;
  cursor: pointer;
  transition: background 0.1s;
}
.timetable-cell:last-child { border-right: none; }
.timetable-cell:hover { background: var(--accent-light); }
.timetable-event {
  position: absolute;
  left: 2px;
  right: 2px;
  border-radius: 5px;
  padding: 3px 6px;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.35;
  overflow: hidden;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  transition: box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.timetable-event:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.timetable-event .ev-time { font-size: 0.625rem; font-weight: 600; opacity: 0.95; }
.timetable-event .ev-service { font-weight: 600; margin-top: 1px; }

/* Event popup */
.event-popup {
  position: fixed;
  z-index: 200;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.125rem;
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  max-width: 320px;
}
.event-popup h4 { margin: 0 0 0.5rem; font-size: 0.9375rem; }
.event-popup p { margin: 0.25rem 0; font-size: 0.8125rem; color: var(--text-muted); }
.event-popup .popup-actions { margin-top: 0.75rem; display: flex; gap: 0.5rem; }
.event-popup .popup-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.125rem;
  cursor: pointer;
  color: var(--text-muted);
}

/* Add booking form */
.add-booking-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 1rem;
}
.add-booking-form {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 28rem;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  font-size: 1rem;
}
.add-booking-form h3 { margin: 0 0 1.25rem; font-size: 1.125rem; font-weight: 600; }
.add-booking-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* ---- Confirmation modal ---- */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 1rem;
  animation: fadeIn 0.15s ease;
}
.confirm-modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  min-width: 280px;
  max-width: 360px;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: scaleIn 0.15s ease;
}
.confirm-modal .confirm-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.confirm-modal .confirm-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.confirm-modal .confirm-msg {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 1.25rem;
}
.confirm-modal .confirm-ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 0.6rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.confirm-modal .confirm-ok:hover {
  background: var(--accent-hover);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---- Forgot password link ---- */
.forgot-link {
  text-align: right;
  margin-top: 0.5rem;
  margin-bottom: 0;
}
.forgot-link a {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
}
.forgot-link a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ---- Staff blocks ---- */
.staff-block {
  margin-bottom: 0.75rem;
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.staff-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.6rem;
  align-items: center;
}
.staff-avail-summary {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.5;
}
.btn-avail {
  padding: 0.4rem 0.8rem;
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-avail:hover { background: var(--accent); color: #fff; }
.btn-remove {
  padding: 0.45rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid var(--danger);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-remove:hover { background: var(--danger); color: #fff; }

/* Staff availability modal */
.avail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.15s ease;
}
.avail-modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  width: 100%;
  max-width: 32rem;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: scaleIn 0.15s ease;
}
.avail-modal h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}
.avail-modal .hours-grid { margin-bottom: 1.25rem; }
.avail-modal .avail-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* ---- Confirm inline (success message) ---- */
.confirm-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-sm);
}

/* ---- Language switcher ---- */
#langSwitch {
  order: 10;
  margin-left: -1.5rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 500;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
#langSwitch:hover {
  background: var(--bg);
  border-color: #cbd5e1;
  color: var(--text);
}

/* ---- Hamburger menu ---- */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.hamburger svg {
  width: 26px;
  height: 26px;
  stroke: var(--text);
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 3.25rem;
}

/* ---- Responsive ---- */

/* Tablet */
@media (max-width: 960px) {
  header .inner { gap: 1rem; }
  .nav-links { gap: 0.75rem; }
  .hero-logo { width: clamp(260px, 45vw, 500px); }
  .timetable-nav .week-label { min-width: 10rem; font-size: 0.8125rem; }
  .add-booking-form { max-width: 90vw; padding: 1.5rem; }
  .avail-modal { max-width: 90vw; }
  .hours-row { grid-template-columns: 6rem 3rem 1fr; }
  .dash-tile { min-width: 100px; }

  /* Toast notifications – tablet */
  #toastContainer { right: 1rem; max-width: 340px; }

  /* Notification dismiss – larger touch target on tablet */
  .notif-dismiss { min-width: 40px !important; min-height: 40px !important; font-size: 1.35rem !important; }

  /* Home service timetable cards – tablet */
  .hs-card-actions .btn-sm { min-height: 40px; }
}

/* Mobile */
@media (max-width: 640px) {
  header { padding: 0.5rem 1rem; }
  header .inner { gap: 0.5rem; }
  header .logo img { height: 120px; margin: -40px 0; }

  .hamburger { display: flex; order: 11; }

  #langSwitch { order: 10; margin-left: 0; }

  .nav-links {
    order: 12;
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
    z-index: 200;
  }
  .nav-links.open { display: flex; animation: slideDown 0.2s ease; }
  @keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
  .nav-links > * {
    display: block;
    width: 100%;
    padding: 0.85rem 1.5rem;
    text-align: center;
    border: none;
    border-radius: 0;
    font-size: 0.9375rem;
    background: transparent;
  }
  .nav-links > *:hover,
  .nav-links > *:focus {
    background: var(--accent-light);
  }
  .nav-links .btn-ghost {
    border: none;
    border-radius: 0;
  }
  .nav-links .btn-primary-nav {
    background: transparent;
    color: var(--accent);
    font-weight: 600;
    border-radius: 0;
  }
  .nav-links .dropdown {
    display: block;
    width: 100%;
  }
  .nav-links .dropdown > button {
    width: 100%;
    text-align: center;
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: 0;
    font-size: 0.9375rem;
    background: transparent;
  }
  .nav-links .dropdown-panel {
    position: static;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0.25rem 1rem 0.5rem;
    min-width: 0;
    background: transparent;
  }
  .nav-links .dropdown.open .dropdown-panel { display: block; }
  .nav-links .dropdown-choice {
    border: none;
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 0.3rem 0;
    padding: 0.65rem 1rem;
    text-align: left;
    background: var(--accent-light);
  }
  .nav-links .dropdown-choice:hover {
    background: rgba(16, 185, 129, 0.15);
  }
  .nav-links .dropdown-choice small {
    color: var(--text-muted);
    font-size: 0.75rem;
  }
  #headerAuth {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  #headerAuth > * {
    display: block;
    width: 100%;
  }

  /* Hero */
  .hero { padding: 1rem 1rem 2.5rem; min-height: auto; }
  .hero-logo { width: clamp(200px, 65vw, 340px); margin-bottom: -1rem; }
  .hero h1 { font-size: 1.5rem; }
  .hero .tagline { font-size: 0.95rem; }
  .hero .hero-note { font-size: 0.8rem; max-width: 90%; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn-primary-hero { padding: 0.85rem 1.5rem; font-size: 1rem; width: 100%; max-width: 280px; justify-content: center; }
  .hero .btn-chatgpt { padding: 0.85rem 1.5rem; font-size: 1rem; width: 100%; max-width: 280px; justify-content: center; }

  /* Homepage sections */
  .section { padding: 2.5rem 1rem; }
  .section h2 { font-size: 1.5rem; margin-bottom: 1.5rem; }
  .steps-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .step-card { padding: 1.5rem 1rem; }
  .cases-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .case-card { padding: 1.5rem; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .benefit-card { padding: 1rem 0.5rem; }
  .cta-banner { padding: 2.5rem 1rem; }
  .cta-banner h2 { font-size: 1.5rem; }
  .cta-banner .btn-primary-hero { width: 100%; max-width: 280px; justify-content: center; }

  /* Auth */
  .auth-card { padding: 1.25rem; max-width: 100% !important; }

  /* Forms */
  .add-service-row { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr !important; }

  /* Dashboard */
  .dashboard-page main { padding: 1rem; }
  .dashboard-page h1 { font-size: 1.25rem; }
  .dashboard-card { padding: 1rem; }
  .container { padding: 0 1rem; }

  /* Hours grid */
  .hours-row { grid-template-columns: 5.5rem 2.5rem 1fr; padding: 0.5rem; gap: 0.35rem; }
  .hours-row .day-name { font-size: 0.75rem; }
  .hours-times select { font-size: 0.75rem; padding: 0.3rem; }

  /* Timetable */
  .timetable-toolbar { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .timetable-toolbar > div:last-child { flex-wrap: wrap; justify-content: center; gap: 0.4rem; }
  .timetable-nav { justify-content: center; flex-wrap: wrap; }
  .timetable-nav .week-label { min-width: auto; font-size: 0.8125rem; }
  .timetable-grid { min-width: 320px; }
  .timetable-hour-label { font-size: 0.6rem; padding: 0 0.25rem; position: relative; }
  .collapse-hour-btn { width: 14px !important; height: 14px !important; font-size: 0.5rem !important; }
  .timetable-wrapper { -webkit-overflow-scrolling: touch; }
  .timetable-staff-header { padding: 0.5rem 0.2rem; font-size: 0.7rem; }
  .staff-avatar { width: 30px; height: 30px; font-size: 0.75rem; }

  /* Toast notifications – mobile */
  #toastContainer { top: 0.5rem; right: 0.5rem; left: 0.5rem; align-items: stretch; }
  #toastContainer > div { max-width: 100% !important; font-size: 0.8125rem !important; padding: 0.65rem 1rem !important; }

  /* Bell badge – larger touch area on mobile */
  #bellBtn { padding: 8px !important; min-width: 40px; min-height: 40px; }
  #bellBadge { top: 0 !important; right: -2px !important; min-width: 16px !important; height: 16px !important; font-size: 0.6rem !important; }

  /* Notification rows – better touch targets */
  .notif-row { padding: 0.75rem !important; }
  .notif-dismiss { min-width: 44px !important; min-height: 44px !important; font-size: 1.4rem !important; }

  /* Modals */
  .add-booking-overlay, .confirm-overlay { padding: 0.5rem; }
  .add-booking-form { max-width: 95vw !important; max-height: 88vh !important; padding: 1.25rem; margin: 0 0.5rem; }
  .avail-modal { max-width: 95vw !important; max-height: 88vh !important; padding: 1.25rem; }
  .confirm-modal { max-width: 90vw !important; max-height: 88vh !important; min-width: auto !important; padding: 1.25rem !important; }

  /* Dashboard tiles */
  .dash-tile { min-width: 90px; padding: 0.75rem 0.75rem; }
  .dash-tile svg, .dash-tile img { width: 34px !important; height: 34px !important; }
  .dash-tile span { font-size: 0.75rem; }

  /* Modal action buttons — let them stack on narrow screens */
  .add-booking-form .btn-sm { font-size: 0.75rem; padding: 0.4rem 0.65rem; }

  /* Textarea in modals */
  .add-booking-form textarea { min-height: 60px !important; font-size: 0.8125rem !important; }

  /* Staff blocks */
  .staff-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .staff-row > div:last-child { display: flex; gap: 0.5rem; }

  /* Booking list */
  .booking-list li { padding: 0.75rem; }

  /* Service mode cards (signup) */
  .service-mode-cards { gap: 0.75rem; }
  .mode-card { padding: 1rem; min-width: 120px; }
  .mode-card svg { width: 36px; height: 36px; }

  /* Available days grid */
  .avail-days-grid label { font-size: 0.8125rem; padding: 0.35rem 0; }

  /* Suburb autocomplete */
  .suburb-autocomplete-wrap { max-width: 100%; }
  .tag-list { gap: 0.35rem; }
  .tag { font-size: 0.75rem; padding: 0.2rem 0.5rem; }

  /* Home service timetable cards */
  .hs-card { padding: 0.75rem; }
  .hs-card-header { flex-direction: column; gap: 0.25rem; }
  .hs-card-actions { flex-direction: column; }
  .hs-card-actions .btn-sm { width: 100%; text-align: center; }

  /* Upload page */
  .upload-wrap { padding: 0 0.75rem; }
  .drop-zone { padding: 1.5rem 1rem; }
  .preview-list { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 0.5rem; }

  /* Footer */
  .site-footer .inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}
