/* ═══════════════════════════════════════════
   TIDYLOCAL – Main Stylesheet
   Brand: Teal #1a9fc0 · Navy #0d2f45 · Green #4caf7d · Gold #f5c842
═══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:       #1a9fc0;
  --teal-dark:  #147a96;
  --teal-light: #e8f7fb;
  --navy:       #0d2f45;
  --green:      #4caf7d;
  --green-dark: #3a9268;
  --gold:       #f5c842;
  --red:        #e05252;
  --text:       #1a2332;
  --text-sub:   #64748b;
  --border:     #e2e8f0;
  --bg:         #f7fafc;
  --white:      #ffffff;
  --card-shadow: 0 2px 12px rgba(0,0,0,.08);
  --radius:     14px;
  --radius-sm:  8px;
  --font:       'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
}

html, body {
  height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── Screen system ─────────────────────────── */
.screen {
  display: none !important;
  flex-direction: column;
  width: 100%;
  height: 100dvh;
  max-width: 430px;
  margin: 0 auto;
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.screen.active { display: flex !important; }

/* ── Scrollable body ───────────────────────── */
.screen-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 96px;
  -webkit-overflow-scrolling: touch;
}
.screen-body.center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

/* ═══════════════════════════════════════════
   LANDING
═══════════════════════════════════════════ */
#screen-landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--navy) 0%, #1a5f7a 55%, var(--teal) 100%);
  min-height: 100dvh;
  padding: 24px 20px;
}
.landing-bg {
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.landing-card {
  position: relative;
  width: 100%;
  max-width: 390px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-pin { flex-shrink: 0; filter: drop-shadow(0 4px 12px rgba(0,0,0,.3)); }
.brand-name {
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 1px;
}
.brand-tagline {
  font-size: 12px;
  color: rgba(255,255,255,.7);
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.landing-hero { text-align: center; }
.hero-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,.85);
  font-weight: 600;
  line-height: 1.6;
}
.login-section { display: flex; flex-direction: column; gap: 14px; }
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--white);
  color: var(--text);
  border: none;
  border-radius: 50px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  width: 100%;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  transition: transform .15s, box-shadow .15s;
}
.btn-google:active { transform: scale(.98); }
.divider {
  display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.5); font-size: 13px;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.2); }
.role-buttons { display: flex; gap: 10px; }
.btn-role {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 12px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all .15s;
}
.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,.5);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.8); }
.legal-note { font-size: 11px; color: rgba(255,255,255,.45); text-align: center; }
.legal-note a { color: rgba(255,255,255,.7); }

/* ═══════════════════════════════════════════
   APP HEADER
═══════════════════════════════════════════ */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  min-height: 56px;
}
.header-brand { display: flex; align-items: center; gap: 8px; }
.header-logo-text {
  background: var(--teal);
  color: white;
  font-weight: 900;
  font-size: 13px;
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.header-title { font-size: 17px; font-weight: 800; color: var(--navy); }
.btn-back {
  background: none; border: none; font-size: 22px; cursor: pointer;
  color: var(--teal); padding: 4px 8px; line-height: 1;
}
.btn-header-action {
  background: none; border: none; font-size: 18px; cursor: pointer;
  color: var(--text-sub); padding: 4px 8px;
}
.btn-icon-header { background: none; border: none; cursor: pointer; }
.avatar-small {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--teal); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
}

/* ═══════════════════════════════════════════
   BOTTOM NAV
═══════════════════════════════════════════ */
.bottom-nav {
  display: flex;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  flex-shrink: 0;
}
.nav-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 6px 4px;
  background: none; border: none; cursor: pointer;
  color: var(--text-sub); font-family: var(--font); transition: color .15s;
}
.nav-item.active { color: var(--teal); }
.nav-icon { font-size: 22px; line-height: 1; }
.nav-label { font-size: 10px; font-weight: 700; }

/* ═══════════════════════════════════════════
   BOOKING WIZARD
═══════════════════════════════════════════ */
.booking-progress {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.progress-step {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--border); color: var(--text-sub);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; flex-shrink: 0;
  transition: all .3s;
}
.progress-step.active { background: var(--teal); color: white; }
.progress-step.done { background: var(--green); color: white; }
.progress-line { flex: 1; height: 2px; background: var(--border); margin: 0 4px; }

.booking-content { flex: 1; overflow-y: auto; padding: 20px 16px 120px; }
.booking-step { display: none; }
.booking-step.active { display: block; }

.step-title { font-size: 22px; font-weight: 900; color: var(--navy); margin-bottom: 4px; }
.step-subtitle { color: var(--text-sub); font-size: 14px; margin-bottom: 24px; }

.form-group { margin-bottom: 22px; }
.form-label { display: block; font-size: 13px; font-weight: 800; color: var(--navy); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .5px; }
.form-input {
  width: 100%; padding: 13px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 15px; color: var(--text);
  background: var(--white); transition: border-color .2s;
  outline: none;
}
.form-input:focus { border-color: var(--teal); }
.form-textarea {
  width: 100%; padding: 13px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 15px; color: var(--text);
  resize: vertical; min-height: 80px; outline: none;
}
.form-textarea:focus { border-color: var(--teal); }
.mt-8 { margin-top: 8px; }

/* Dirtiness slider */
.slider-container { padding: 4px 0; }
.tidy-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 3px;
  background: linear-gradient(to right, var(--teal) 0%, var(--teal) 30%, var(--border) 30%);
  outline: none; cursor: pointer; margin-bottom: 8px;
}
.tidy-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--teal); border: 3px solid white;
  box-shadow: 0 2px 8px rgba(26,159,192,.4); cursor: pointer;
}
.slider-labels {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--text-sub); font-weight: 600;
  text-transform: uppercase; letter-spacing: .3px;
}
.slider-value-display {
  text-align: center; margin-top: 8px;
  font-size: 16px; font-weight: 800; color: var(--teal);
  background: var(--teal-light); padding: 8px 16px; border-radius: 50px;
  display: inline-block;
}

/* Room counter */
.room-counter {
  display: flex; align-items: center; gap: 0;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  width: fit-content; overflow: hidden;
}
.counter-btn {
  width: 48px; height: 48px; font-size: 22px; font-weight: 700;
  background: var(--bg); border: none; cursor: pointer; color: var(--teal);
  font-family: var(--font); transition: background .15s;
}
.counter-btn:active { background: var(--teal-light); }
.counter-val { width: 60px; text-align: center; font-size: 22px; font-weight: 900; color: var(--navy); }

/* Size pills */
.size-pills, .time-options { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  flex: 1; min-width: 80px; padding: 10px 12px;
  border: 2px solid var(--border); border-radius: 50px;
  background: var(--white); color: var(--text-sub);
  font-family: var(--font); font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all .15s; white-space: nowrap;
  text-align: center;
}
.pill.active { border-color: var(--teal); background: var(--teal-light); color: var(--teal); }

/* Time pills */
.time-pill {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 12px 8px; border: 2px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); cursor: pointer; transition: all .15s; gap: 2px;
  font-family: var(--font);
}
.time-pill.active { border-color: var(--teal); background: var(--teal-light); }
.time-icon { font-size: 22px; }
.time-label { font-size: 13px; font-weight: 800; color: var(--navy); }
.time-sub { font-size: 11px; font-weight: 600; color: var(--text-sub); }
.time-pill.active .time-label { color: var(--teal); }

.schedule-picker {
  width: 100%; margin-top: 10px; padding: 12px 14px;
  border: 1.5px solid var(--teal); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 15px;
}
.hidden { display: none !important; }

/* Room checklist */
.room-checklist { display: flex; flex-direction: column; gap: 14px; }
.room-section {
  border: 1.5px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.room-section-header {
  background: var(--bg); padding: 12px 14px;
  font-weight: 800; font-size: 14px; color: var(--navy);
  display: flex; align-items: center; gap: 8px;
}
.room-section-body { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.check-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text); cursor: pointer; padding: 4px 0;
  border-radius: var(--radius-sm);
}
.check-item input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--teal); cursor: pointer; flex-shrink: 0;
}
.task-cost { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--teal); }

/* Price breakdown */
.price-breakdown {
  background: var(--bg); border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
  border: 1.5px solid var(--border); margin-bottom: 16px;
}
.price-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.price-row .label { color: var(--text-sub); }
.price-row .amount { font-weight: 700; color: var(--text); }
.price-divider { height: 1px; background: var(--border); }
.price-total { font-size: 16px; font-weight: 900; }
.price-total .label { color: var(--navy); }
.price-total .amount { color: var(--teal); font-size: 20px; }

.escrow-notice {
  display: flex; align-items: flex-start; gap: 12px;
  background: #e8f5ee; border: 1.5px solid #b8e0cc;
  border-radius: var(--radius-sm); padding: 14px; margin-bottom: 16px;
}
.escrow-icon { font-size: 24px; }
.escrow-notice strong { font-size: 14px; color: #2a6b47; }
.escrow-notice p { font-size: 13px; color: #4a8a67; margin-top: 2px; }

.btn-payment {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 14px; border-radius: var(--radius-sm);
  border: 2px solid var(--teal); background: var(--teal-light);
  color: var(--teal); font-family: var(--font); font-weight: 700;
  font-size: 14px; cursor: pointer;
}

/* Price footer */
.price-footer {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--navy); color: white;
  padding: 12px 20px max(16px, env(safe-area-inset-bottom));
  display: flex; justify-content: space-between; align-items: center;
  flex-shrink: 0;
}
.price-footer-label { font-size: 13px; font-weight: 600; opacity: .8; }
.price-footer-amount { font-size: 24px; font-weight: 900; color: var(--gold); }

/* Buttons */
.btn-primary {
  background: var(--teal); color: white;
  border: none; border-radius: 50px;
  padding: 15px 28px; font-size: 15px; font-weight: 800;
  font-family: var(--font); cursor: pointer;
  transition: background .15s, transform .1s; display: inline-block;
}
.btn-primary:hover { background: var(--teal-dark); }
.btn-primary:active { transform: scale(.98); }
.btn-primary:disabled { background: #b0bec5; cursor: not-allowed; }
.btn-primary.full-width { width: 100%; text-align: center; }
.btn-primary.btn-confirm { background: var(--green); }
.btn-primary.btn-confirm:hover { background: var(--green-dark); }
.btn-primary.btn-complete { background: var(--green); margin-top: 8px; }

.btn-secondary {
  background: var(--bg); color: var(--text);
  border: 1.5px solid var(--border); border-radius: 50px;
  padding: 14px 24px; font-size: 15px; font-weight: 700;
  font-family: var(--font); cursor: pointer;
}
.btn-link {
  background: none; border: none; color: var(--teal); font-family: var(--font);
  font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: underline;
}
.btn-row {
  display: flex; gap: 10px; margin-top: 24px;
}
.btn-row .btn-secondary { flex: 0 0 auto; }
.btn-row .btn-primary { flex: 1; text-align: center; }

/* Radio group */
.radio-group { display: flex; flex-direction: column; gap: 10px; }
.radio-option {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; cursor: pointer;
}
.radio-option input { accent-color: var(--teal); width: 18px; height: 18px; }

/* ═══════════════════════════════════════════
   CLIENT HOME
═══════════════════════════════════════════ */
.greeting-section { padding: 8px 0 16px; }
.greeting-section h2 { font-size: 22px; font-weight: 900; color: var(--navy); }
.greeting-sub { font-size: 14px; color: var(--text-sub); margin-top: 2px; }

.job-status-card {
  background: var(--teal); border-radius: var(--radius);
  padding: 16px; color: white; margin-bottom: 16px;
}
.job-status-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.status-badge { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 50px; }
.status-active { background: rgba(76,175,125,.25); color: #b9f5d8; border: 1px solid rgba(76,175,125,.5); }
.job-status-time { font-size: 13px; opacity: .85; }
.job-status-cleaner { display: flex; align-items: center; gap: 10px; }
.cleaner-avatar-sm {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.2); display: flex; align-items: center;
  justify-content: center; font-size: 13px; font-weight: 800; flex-shrink: 0;
  color: white;
}
.cleaner-rating-sm { font-size: 12px; opacity: .8; margin-top: 1px; }
.btn-chat-sm {
  margin-left: auto; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.35);
  color: white; border-radius: 50px; padding: 7px 14px; font-size: 13px;
  font-weight: 700; font-family: var(--font); cursor: pointer;
}

.book-now-btn {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, var(--teal) 0%, #0e7fa3 100%);
  color: white; border: none; border-radius: var(--radius);
  padding: 18px 16px; width: 100%; text-align: left; cursor: pointer;
  font-family: var(--font); margin-bottom: 24px;
  box-shadow: 0 4px 18px rgba(26,159,192,.35); transition: transform .15s;
}
.book-now-btn:active { transform: scale(.99); }
.book-btn-icon { font-size: 28px; }
.book-btn-title { font-size: 17px; font-weight: 900; }
.book-btn-sub { font-size: 13px; opacity: .8; margin-top: 1px; }
.book-btn-arrow { font-size: 26px; margin-left: auto; opacity: .8; }

.section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.section-header h3 { font-size: 16px; font-weight: 900; color: var(--navy); }
.section-header a { font-size: 13px; color: var(--teal); font-weight: 700; text-decoration: none; }

.jobs-list { display: flex; flex-direction: column; gap: 10px; }
.job-card {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 14px;
  box-shadow: var(--card-shadow);
}
.job-card-left { display: flex; align-items: center; gap: 12px; }
.job-card-icon { font-size: 24px; }
.job-card-title { font-size: 14px; font-weight: 800; color: var(--navy); }
.job-card-meta { font-size: 12px; color: var(--text-sub); margin-top: 2px; }
.job-card-right { text-align: right; flex-shrink: 0; }
.job-card-price { font-size: 16px; font-weight: 900; color: var(--navy); }
.job-card-status { font-size: 11px; font-weight: 700; margin-top: 3px; }
.job-card-status.completed { color: var(--green); }

/* ═══════════════════════════════════════════
   CLEANER JOB BOARD
═══════════════════════════════════════════ */
.cleaner-stats-row {
  display: flex; gap: 10px; margin-bottom: 20px;
}
.stat-card {
  flex: 1; background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 14px 12px; text-align: center;
  box-shadow: var(--card-shadow);
}
.stat-val { font-size: 18px; font-weight: 900; color: var(--navy); }
.stat-lbl { font-size: 11px; color: var(--text-sub); font-weight: 600; margin-top: 2px; }

.badge-count {
  background: var(--teal); color: white;
  font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 50px;
}

.job-alert-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--card-shadow);
  transition: border-color .2s;
}
.job-alert-card:hover { border-color: var(--teal); }
.job-alert-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;
}
.job-alert-type { font-size: 13px; font-weight: 800; color: var(--text-sub); }
.job-alert-payout { font-size: 24px; font-weight: 900; color: var(--green); }
.job-alert-details { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.job-detail-row { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text); }
.tasks-list { color: var(--text-sub); }
.job-alert-actions { display: flex; gap: 10px; }
.btn-decline {
  flex: 0 0 auto; padding: 11px 20px; border-radius: 50px;
  border: 1.5px solid var(--border); background: var(--white);
  color: var(--text-sub); font-family: var(--font); font-weight: 700;
  font-size: 14px; cursor: pointer;
}
.btn-accept {
  flex: 1; padding: 11px 20px; border-radius: 50px;
  border: none; background: var(--green); color: white;
  font-family: var(--font); font-weight: 800; font-size: 14px; cursor: pointer;
  transition: background .15s;
}
.btn-accept:active { background: var(--green-dark); }

/* Online toggle */
.header-right { display: flex; align-items: center; gap: 8px; }
.online-toggle { display: flex; align-items: center; gap: 8px; }
.toggle-label { font-size: 13px; font-weight: 700; color: var(--text-sub); }
.toggle-switch { position: relative; display: inline-block; width: 46px; height: 26px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; background: var(--border);
  border-radius: 26px; cursor: pointer; transition: .3s;
}
.toggle-slider:before {
  content: ''; position: absolute; height: 20px; width: 20px;
  left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: .3s;
}
input:checked + .toggle-slider { background: var(--green); }
input:checked + .toggle-slider:before { transform: translateX(20px); }

/* ═══════════════════════════════════════════
   ACTIVE JOB (CLEANER)
═══════════════════════════════════════════ */
.active-job-header { margin-bottom: 16px; }
.active-job-title { font-size: 22px; font-weight: 900; color: var(--navy); margin: 6px 0 4px; }
.active-job-address { font-size: 14px; color: var(--text-sub); }
.client-info-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg); border-radius: var(--radius); padding: 14px;
  margin-bottom: 20px; border: 1.5px solid var(--border);
}

.task-checklist { margin-bottom: 20px; }
.checklist-title { font-size: 16px; font-weight: 900; color: var(--navy); margin-bottom: 12px; }
.checklist-section { margin-bottom: 14px; }
.checklist-section-title {
  font-size: 13px; font-weight: 800; color: var(--text-sub);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px;
}
.check-item input[type="checkbox"]:checked + * { text-decoration: line-through; color: var(--text-sub); }

.progress-bar-container { margin-bottom: 16px; }
.progress-bar-label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.progress-bar-track { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--green); border-radius: 4px; transition: width .4s ease; }

/* ═══════════════════════════════════════════
   CHAT
═══════════════════════════════════════════ */
.chat-header-info { display: flex; align-items: center; gap: 10px; }
.chat-header-name { font-size: 16px; font-weight: 800; color: var(--navy); }
.chat-header-status { font-size: 12px; color: var(--green); font-weight: 600; }

.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--bg);
}
.chat-system-msg {
  text-align: center; font-size: 12px; color: var(--text-sub);
  background: var(--border); border-radius: 50px; padding: 6px 14px;
  font-weight: 600; align-self: center;
}
.chat-msg { display: flex; flex-direction: column; max-width: 75%; }
.chat-msg.sent { align-self: flex-end; align-items: flex-end; }
.chat-msg.received { align-self: flex-start; }
.msg-bubble {
  padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.5;
}
.chat-msg.sent .msg-bubble { background: var(--teal); color: white; border-bottom-right-radius: 4px; }
.chat-msg.received .msg-bubble { background: var(--white); color: var(--text); border-bottom-left-radius: 4px; box-shadow: var(--card-shadow); }
.msg-time { font-size: 10px; color: var(--text-sub); margin-top: 4px; padding: 0 4px; }

.chat-input-bar {
  display: flex; gap: 10px; padding: 12px 16px max(14px, env(safe-area-inset-bottom));
  background: var(--white); border-top: 1px solid var(--border); flex-shrink: 0;
}
.chat-input {
  flex: 1; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: 50px; font-family: var(--font); font-size: 14px; outline: none;
}
.chat-input:focus { border-color: var(--teal); }
.btn-send {
  width: 44px; height: 44px; border-radius: 50%; background: var(--teal);
  color: white; border: none; font-size: 18px; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}

/* ═══════════════════════════════════════════
   REVIEW
═══════════════════════════════════════════ */
.review-hero { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.review-check {
  width: 72px; height: 72px; border-radius: 50%; background: var(--green);
  color: white; font-size: 32px; display: flex; align-items: center; justify-content: center;
  font-weight: 900;
}
.review-hero h2 { font-size: 24px; font-weight: 900; color: var(--navy); }
.review-hero p { font-size: 15px; color: var(--text-sub); }

.star-rating { display: flex; gap: 8px; }
.star {
  font-size: 40px; color: var(--border); background: none; border: none;
  cursor: pointer; transition: color .15s, transform .1s; line-height: 1;
}
.star.lit { color: var(--gold); }
.star:active { transform: scale(1.2); }

.quick-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tag-btn {
  padding: 8px 16px; border-radius: 50px; border: 1.5px solid var(--border);
  background: var(--white); font-family: var(--font); font-size: 13px; font-weight: 700;
  cursor: pointer; color: var(--text-sub); transition: all .15s;
}
.tag-btn.active { border-color: var(--teal); background: var(--teal-light); color: var(--teal); }

.escrow-release-notice {
  background: #e8f5ee; border: 1.5px solid #b8e0cc; border-radius: var(--radius);
  padding: 14px 16px; font-size: 13px; color: #2a6b47; text-align: center;
  width: 100%;
}
.escrow-release-notice div { font-size: 22px; margin-bottom: 6px; }

/* ═══════════════════════════════════════════
   BOOKING CONFIRMED
═══════════════════════════════════════════ */
.confirmed-screen { padding-top: 40px; }
.confirmed-animation { display: flex; justify-content: center; margin-bottom: 8px; }
.confirmed-circle {
  width: 90px; height: 90px; border-radius: 50%; background: var(--green);
  display: flex; align-items: center; justify-content: center;
  animation: popIn .4s cubic-bezier(.34,1.56,.64,1);
}
.confirmed-check { font-size: 42px; color: white; font-weight: 900; }
@keyframes popIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.confirmed-sub { font-size: 14px; color: var(--text-sub); line-height: 1.6; }
.confirmed-details {
  width: 100%; background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px;
}
.confirmed-row { display: flex; justify-content: space-between; font-size: 14px; }
.confirmed-val { font-weight: 800; color: var(--navy); }
.status-text { color: var(--teal); }
.matching-animation { position: relative; width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; }
.pulse-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid var(--teal); opacity: .6;
  animation: pulse 1.5s ease-out infinite;
}
.pulse-pin { font-size: 32px; z-index: 1; }
@keyframes pulse {
  0% { transform: scale(.8); opacity: .8; }
  100% { transform: scale(1.6); opacity: 0; }
}
.matching-text { font-size: 14px; color: var(--text-sub); font-weight: 600; }

/* ═══════════════════════════════════════════
   PROFILE
═══════════════════════════════════════════ */
.profile-header {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 24px 0 20px; text-align: center;
}
.profile-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  color: white; font-size: 26px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(26,159,192,.35);
}
.profile-header h2 { font-size: 20px; font-weight: 900; color: var(--navy); }
.profile-header p { font-size: 13px; color: var(--text-sub); }
.profile-badges { display: flex; gap: 8px; }
.badge-role {
  background: var(--teal-light); color: var(--teal);
  font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 50px;
}
.badge-verified {
  background: #e8f5ee; color: var(--green);
  font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 50px;
}
.profile-stats { display: flex; gap: 10px; margin-bottom: 24px; }

.settings-list { display: flex; flex-direction: column; gap: 12px; }
.settings-group {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.settings-item {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 16px; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .15s; border-bottom: 1px solid var(--border);
}
.settings-item:last-child { border-bottom: none; }
.settings-item:active { background: var(--bg); }
.settings-icon { font-size: 20px; }
.settings-chevron { margin-left: auto; color: var(--text-sub); font-size: 18px; }

/* ═══════════════════════════════════════════
   EARNINGS
═══════════════════════════════════════════ */
.earnings-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a5f7a 100%);
  color: white; border-radius: var(--radius); padding: 24px;
  text-align: center; margin-bottom: 16px;
}
.earnings-period { font-size: 13px; opacity: .7; font-weight: 600; margin-bottom: 4px; }
.earnings-amount { font-size: 42px; font-weight: 900; color: var(--gold); }
.earnings-jobs { font-size: 14px; opacity: .8; margin-top: 4px; }

.earnings-chart-placeholder {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 20px 16px 12px; margin-bottom: 16px;
}
.chart-bar-group { display: flex; align-items: flex-end; gap: 8px; height: 80px; }
.chart-bar {
  flex: 1; background: var(--teal-light); border-radius: 4px 4px 0 0;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 4px; font-size: 10px; font-weight: 700; color: var(--teal);
  transition: background .2s; cursor: pointer;
}
.chart-bar:hover { background: var(--teal); color: white; }

.escrow-balance-card {
  background: #e8f5ee; border: 1.5px solid #b8e0cc;
  border-radius: var(--radius); padding: 16px; margin-bottom: 20px; text-align: center;
}
.escrow-bal-label { font-size: 13px; color: #4a8a67; font-weight: 700; margin-bottom: 6px; }
.escrow-bal-amount { font-size: 32px; font-weight: 900; color: #2a6b47; }
.escrow-bal-sub { font-size: 12px; color: #4a8a67; margin-top: 4px; }

/* ═══════════════════════════════════════════
   TOAST
═══════════════════════════════════════════ */
.toast {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%);
  background: var(--navy); color: white; padding: 12px 24px; border-radius: 50px;
  font-size: 14px; font-weight: 700; z-index: 999;
  box-shadow: 0 4px 20px rgba(0,0,0,.25); white-space: nowrap;
  animation: toastIn .3s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ═══════════════════════════════════════════
   DESKTOP WRAPPER
═══════════════════════════════════════════ */
@media (min-width: 500px) {
  body {
    background: #e8edf2;
    display: flex; align-items: flex-start; justify-content: center;
    padding: 24px 0;
    min-height: 100vh;
  }
  .screen {
    border-radius: 40px;
    box-shadow: 0 24px 80px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.06);
    height: min(844px, calc(100dvh - 48px));
  }
  #screen-landing {
    border-radius: 40px;
  }
}
