/* ==========================================================
   TOKENS
   ========================================================== */
:root {
  --ink: #0B1A2B;
  --paper: #F2F6FA;
  --paper-dim: #E7EEF5;
  --wash-blue: #1454B8;
  --wash-blue-dark: #0D3A85;
  --sky: #4FB6FF;
  --clothespin: #FF7A3D;
  --suds-green: #12B886;
  --line: rgba(11, 26, 43, 0.12);
  --line-strong: rgba(11, 26, 43, 0.22);
  --white: #ffffff;

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 26px;
  --shadow-soft: 0 12px 32px rgba(11, 26, 43, 0.08);
  --shadow-pop: 0 18px 44px rgba(20, 84, 184, 0.22);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
.mono { font-family: var(--font-mono); }

:focus-visible {
  outline: 2.5px solid var(--wash-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--wash-blue);
  margin: 0 0 10px;
}

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  padding: 11px 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--wash-blue);
  color: white;
  box-shadow: var(--shadow-pop);
}
.btn-primary:hover { background: var(--wash-blue-dark); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--wash-blue); color: var(--wash-blue); }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ==========================================================
   NAV
   ========================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(242, 246, 250, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand-mark { color: var(--wash-blue); display: flex; }
.nav-links { display: flex; gap: 26px; flex: 1; }
.nav-links a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink); opacity: 0.75; }
.nav-links a:hover { opacity: 1; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ==========================================================
   LAYOUT / SECTIONS
   ========================================================== */
.section { padding: 96px 28px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-alt { background: var(--paper-dim); }
.section-lede { max-width: 560px; font-size: 17px; color: rgba(11,26,43,0.68); margin-top: 14px; }
.section h2 { font-size: clamp(28px, 4vw, 40px); max-width: 620px; }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 28px 40px;
}
.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.03;
  margin-top: 4px;
}
.hero-underline {
  background: linear-gradient(180deg, transparent 62%, rgba(79, 182, 255, 0.55) 62%);
}
.hero-sub {
  margin-top: 22px;
  max-width: 480px;
  font-size: 17px;
  color: rgba(11,26,43,0.7);
}
.hero-actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-secondary-link { font-size: 14.5px; font-weight: 600; color: var(--wash-blue); text-decoration: none; }
.hero-facts {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 13px;
  font-family: var(--font-mono);
  color: rgba(11,26,43,0.55);
}
.hero-facts li::before { content: '— '; }

.hero-visual { display: flex; justify-content: center; align-items: center; }
.drum-ring { position: relative; width: min(360px, 80vw); aspect-ratio: 1; }
.drum-svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.drum-track { fill: none; stroke: var(--line); stroke-width: 3; }
.drum-progress {
  fill: none;
  stroke: var(--wash-blue);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 942;
  stroke-dashoffset: 690;
  animation: drum-fill 6s ease-in-out infinite alternate;
}
@keyframes drum-fill {
  0% { stroke-dashoffset: 780; }
  100% { stroke-dashoffset: 300; }
}
.drum-spin {
  position: absolute; inset: 0;
  animation: spin 22s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-item {
  position: absolute;
  top: 50%; left: 50%;
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  transform: rotate(calc(var(--i) * 60deg)) translate(146px) rotate(calc(var(--i) * -60deg));
  animation: unspin 22s linear infinite;
}
@keyframes unspin { to { transform: rotate(calc(var(--i) * 60deg - 360deg)) translate(146px) rotate(calc(var(--i) * -60deg + 360deg)); } }
.drum-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.drum-center-label { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wash-blue); }
.drum-center-sub { font-family: var(--font-display); font-size: 26px; font-weight: 700; }

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 8px; }
  .drum-ring { width: min(280px, 70vw); }
}

/* ==========================================================
   PIPELINE (how it works)
   ========================================================== */
.pipeline {
  list-style: none;
  margin: 52px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  position: relative;
}
.pipeline::before {
  content: '';
  position: absolute;
  top: 13px; left: 4%; right: 4%;
  height: 2px;
  background: var(--line);
}
.pipeline-step { padding: 0 14px 0 0; position: relative; }
.pipeline-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--wash-blue);
  background: var(--paper);
  width: 26px;
  margin-bottom: 14px;
}
.pipeline-step h3 { font-size: 16px; margin-bottom: 6px; }
.pipeline-step p { font-size: 13.5px; color: rgba(11,26,43,0.62); }

@media (max-width: 880px) {
  .pipeline { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .pipeline::before { display: none; }
}

/* ==========================================================
   TIER GRID
   ========================================================== */
.tier-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.tier-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 18px;
}
.tier-card.tier-fastest { border-color: var(--clothespin); }
.tier-card.tier-value { border-color: var(--suds-green); }
.tier-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.tier-fastest .tier-badge { background: rgba(255,122,61,0.14); color: var(--clothespin); }
.tier-value .tier-badge { background: rgba(18,183,134,0.14); color: var(--suds-green); }
.tier-card h4 { font-family: var(--font-display); font-size: 17px; margin: 0 0 4px; }
.tier-duration { font-family: var(--font-mono); font-size: 13px; color: rgba(11,26,43,0.55); }

/* ==========================================================
   CLOSING CTA
   ========================================================== */
.closing { padding-bottom: 130px; }
.closing-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.closing h2 { max-width: none; }
.closing p { color: rgba(11,26,43,0.65); font-size: 16px; margin-bottom: 8px; }

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer { border-top: 1px solid var(--line); padding: 36px 28px; }
.site-footer-inner { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.brand-footer { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin: 0; }
.footer-note { font-size: 13px; color: rgba(11,26,43,0.55); margin-top: 4px; }
.footer-links { display: flex; gap: 20px; font-size: 13.5px; }
.footer-links a { text-decoration: none; opacity: 0.75; }
.footer-links a:hover { opacity: 1; }

/* ==========================================================
   SCREEN VISIBILITY
   ========================================================== */
.screen-hidden { display: none !important; }

/* ==========================================================
   MODAL (auth + track)
   ========================================================== */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(11, 26, 43, 0.5);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  width: 100%;
  max-width: 380px;
  position: relative;
  box-shadow: 0 30px 70px rgba(11,26,43,0.28);
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; font-size: 22px; line-height: 1; cursor: pointer;
  color: rgba(11,26,43,0.5);
  width: 30px; height: 30px;
}
.auth-tabs { display: flex; gap: 4px; background: var(--paper-dim); border-radius: 999px; padding: 4px; margin: 16px 0 22px; }
.auth-tab {
  flex: 1; border: none; background: none; padding: 8px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; cursor: pointer; color: rgba(11,26,43,0.55);
}
.auth-tab.active { background: var(--white); color: var(--ink); box-shadow: 0 2px 6px rgba(11,26,43,0.1); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 600; color: rgba(11,26,43,0.6); }
.field input {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  font-size: 14.5px;
  font-family: var(--font-body);
  background: var(--paper);
}
.field input:focus { border-color: var(--wash-blue); background: white; }
.field-signup-only { display: none; }
.auth-error { color: #C0392B; font-size: 13px; margin: 0; min-height: 0; }
.auth-error:empty { display: none; }

/* ==========================================================
   APP SHELL (booking + tracking)
   ========================================================== */
.app-screen { min-height: 100vh; background: var(--paper); }
.app-shell { max-width: 640px; margin: 0 auto; padding: 0 20px 60px; }
.app-header {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 0;
  position: sticky; top: 0; background: var(--paper); z-index: 10;
}
.app-back {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: white;
  font-size: 16px; cursor: pointer; flex-shrink: 0;
}
.app-close {
  background: none; border: none; font-size: 13px; font-weight: 600;
  color: rgba(11,26,43,0.55); cursor: pointer; flex-shrink: 0;
}
.app-header-title { font-family: var(--font-display); font-weight: 700; flex: 1; }
.app-steps { flex: 1; display: flex; gap: 6px; }
.app-step-dot { flex: 1; height: 4px; border-radius: 999px; background: var(--line); }
.app-step-dot.done { background: var(--wash-blue); }
.app-step-dot.current { background: var(--sky); }

.app-body { background: white; border-radius: var(--radius-lg); padding: 30px 26px; box-shadow: var(--shadow-soft); }

.step-title { font-family: var(--font-display); font-size: 24px; margin-bottom: 6px; }
.step-sub { font-size: 14.5px; color: rgba(11,26,43,0.6); margin-bottom: 26px; }

.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-row label { font-size: 12.5px; font-weight: 600; color: rgba(11,26,43,0.6); }
.form-row input, .form-row textarea {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 13px;
  font-size: 14.5px;
  font-family: var(--font-body);
  background: var(--paper);
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--wash-blue); background: white; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin-bottom: 18px; }
.locate-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--paper-dim); border: none; border-radius: 999px;
  padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--wash-blue);
  cursor: pointer; margin-bottom: 18px;
}

.tier-option {
  display: flex; align-items: center; gap: 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-md);
  padding: 14px 16px; margin-bottom: 10px; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.tier-option:hover { border-color: var(--line-strong); }
.tier-option.selected { border-color: var(--wash-blue); background: rgba(20,84,184,0.05); }
.tier-option-radio {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.tier-option.selected .tier-option-radio { border-color: var(--wash-blue); }
.tier-option.selected .tier-option-radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--wash-blue); }
.tier-option-body { flex: 1; }
.tier-option-body h4 { margin: 0 0 2px; font-size: 15px; font-family: var(--font-display); }
.tier-option-body p { font-size: 12.5px; color: rgba(11,26,43,0.55); font-family: var(--font-mono); }

.sort-option {
  border: 1.5px solid var(--line); border-radius: var(--radius-md);
  padding: 16px; margin-bottom: 12px; cursor: pointer;
}
.sort-option.selected { border-color: var(--wash-blue); background: rgba(20,84,184,0.05); }
.sort-option h4 { font-size: 15px; margin: 0 0 4px; font-family: var(--font-display); }
.sort-option p { font-size: 13px; color: rgba(11,26,43,0.6); }

.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.toggle-row:last-of-type { border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.toggle-row span { font-size: 14px; font-weight: 500; }
.switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-track { position: absolute; inset: 0; background: var(--line-strong); border-radius: 999px; transition: background 0.15s; cursor: pointer; }
.switch-track::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: white; border-radius: 50%; transition: transform 0.15s; }
.switch input:checked + .switch-track { background: var(--wash-blue); }
.switch input:checked + .switch-track::before { transform: translateX(18px); }

.summary-block { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px 18px; margin-bottom: 14px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; }
.summary-row span:first-child { color: rgba(11,26,43,0.55); }
.summary-row span:last-child { font-weight: 600; text-align: right; }
.summary-block h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(11,26,43,0.45); margin: 0 0 8px; font-family: var(--font-mono); font-weight: 500; }

.step-nav { display: flex; gap: 12px; margin-top: 28px; }
.step-nav .btn-ghost { flex: 0 0 auto; }
.step-nav .btn-primary { flex: 1; }

.field-error { color: #C0392B; font-size: 13px; margin: -8px 0 14px; }
.field-error:empty { display: none; }

/* ==========================================================
   TRACKING
   ========================================================== */
.tracking-wrap { display: flex; flex-direction: column; gap: 28px; }
.tracking-status-card { display: flex; align-items: center; gap: 18px; }
.tracking-drum-mini { width: 64px; height: 64px; flex-shrink: 0; }
.tracking-drum-mini svg { width: 100%; height: 100%; transform: rotate(-90deg); }
#tracking-ring { animation: none; transition: stroke-dashoffset 0.5s ease; }
#tracking-friendly-status { font-family: var(--font-display); font-size: 17px; color: var(--ink); margin-bottom: 4px; text-transform: none; letter-spacing: 0; }
.tracking-sub { font-size: 13px; color: rgba(11,26,43,0.55); }

.tracking-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tstep { display: flex; gap: 14px; }
.tstep-rail { display: flex; flex-direction: column; align-items: center; }
.tstep-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--line); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.tstep-dot.done { background: var(--suds-green); }
.tstep-dot.current { background: var(--wash-blue); }
.tstep-dot.done::after { content: '✓'; color: white; font-size: 11px; }
.tstep-line { width: 2px; flex: 1; background: var(--line); min-height: 22px; }
.tstep-line.done { background: var(--suds-green); }
.tstep-body { padding-bottom: 22px; padding-top: 1px; }
.tstep-body h5 { margin: 0; font-size: 14.5px; font-family: var(--font-display); color: rgba(11,26,43,0.4); }
.tstep.done .tstep-body h5, .tstep.current .tstep-body h5 { color: var(--ink); }

.tracking-meta { border-top: 1px solid var(--line); padding-top: 18px; font-size: 13px; color: rgba(11,26,43,0.55); }

@media (max-width: 560px) {
  .nav-links { display: none; }
  .section { padding: 64px 20px; }
  .app-body { padding: 24px 18px; }
}

/* ==========================================================
   ACCOUNT MENU (nav dropdown)
   ========================================================== */
.btn-icon { width:40px; height:40px; padding:0; display:flex; align-items:center; justify-content:center; border-radius:50%; background:var(--paper-dim); color:var(--ink); border:none; box-shadow:none; }
.btn-icon:hover { background: var(--line); }
.account-menu-wrap { position: relative; }
.account-dropdown { position:absolute; top:48px; right:0; background:white; border-radius:14px; box-shadow:0 18px 44px rgba(11,26,43,0.18); padding:8px; min-width:210px; z-index:70; display:flex; flex-direction:column; gap:2px; }
.account-dropdown-email { font-size:11.5px; color:rgba(11,26,43,0.5); padding:8px 10px 6px; font-family:var(--font-mono); word-break:break-all; border-bottom:1px solid var(--line); margin-bottom:4px; }
.account-dropdown-item { text-align:left; background:none; border:none; padding:10px; border-radius:8px; font-size:14px; font-weight:600; cursor:pointer; color:var(--ink); }
.account-dropdown-item:hover { background:var(--paper-dim); }
.account-dropdown-danger { color:#C0392B; }

/* ==========================================================
   GOOGLE AUTH BUTTON
   ========================================================== */
.btn-google { background:white; border:1.5px solid var(--line-strong); color:var(--ink); gap:10px; box-shadow:none; margin-top:2px; }
.btn-google:hover { background:var(--paper-dim); }
.auth-divider { display:flex; align-items:center; gap:10px; margin: 10px 0 4px; font-size:12px; color:rgba(11,26,43,0.4); }
.auth-divider::before, .auth-divider::after { content:''; flex:1; height:1px; background:var(--line); }

/* ==========================================================
   TRACK RESULTS
   ========================================================== */
.track-results { margin-top:12px; display:flex; flex-direction:column; gap:8px; max-height:240px; overflow-y:auto; }
.track-result-item { border:1px solid var(--line); border-radius:10px; padding:10px 12px; cursor:pointer; font-size:13px; line-height:1.5; }
.track-result-item:hover { border-color: var(--wash-blue); }
.track-result-item strong { font-family: var(--font-mono); font-size:12px; }

/* ==========================================================
   LOCATION MAP + PLACE SEARCH (step 1)
   ========================================================== */
.map-target-label { font-size:12.5px; font-weight:600; color:var(--wash-blue); margin-bottom:8px; }
.map-target-label strong { color: var(--ink); }
#pickup-map { width:100%; height:240px; border-radius:14px; margin-bottom:14px; overflow:hidden; background:var(--paper-dim); }
.map-loading { display:flex; align-items:center; justify-content:center; height:100%; color:rgba(11,26,43,0.4); font-size:13px; }
.map-search-wrap { position:relative; }
.place-suggestions { position:absolute; top:100%; left:0; right:0; background:white; border-radius:12px; box-shadow: var(--shadow-soft); margin-top:6px; z-index:30; max-height:220px; overflow-y:auto; border:1px solid var(--line); }
.place-suggestion-item { padding:10px 14px; font-size:13.5px; cursor:pointer; border-bottom:1px solid var(--line); }
.place-suggestion-item:last-child { border-bottom:none; }
.place-suggestion-item:hover { background:var(--paper-dim); }

/* ==========================================================
   TIER RATES (step 2)
   ========================================================== */
.tier-rates-toggle { display:inline-block; font-size:12px; font-weight:600; color:var(--wash-blue); background:none; border:none; cursor:pointer; padding:6px 0 0; }
.tier-rates-panel { margin-top:8px; border-top:1px dashed var(--line); padding-top:8px; display:flex; flex-direction:column; gap:6px; }
.tier-rate-row { display:flex; justify-content:space-between; gap:10px; font-size:12.5px; }
.tier-rate-row span:first-child { color: rgba(11,26,43,0.65); }
.tier-rate-row span:last-child { font-weight:600; color: var(--suds-green); font-family:var(--font-mono); white-space:nowrap; }
.tier-rate-loading { font-size:12.5px; color: rgba(11,26,43,0.45); margin:0; }

/* ==========================================================
   ORDER HISTORY
   ========================================================== */
.order-history-item { display:flex; justify-content:space-between; align-items:center; gap:12px; border:1px solid var(--line); border-radius:12px; padding:14px 16px; margin-bottom:10px; cursor:pointer; }
.order-history-item:hover { border-color: var(--wash-blue); }
.order-history-item h4 { margin:0 0 2px; font-family: var(--font-display); font-size:15px; }
.order-history-item p { margin:0; font-size:12.5px; color:rgba(11,26,43,0.55); }
.order-history-status { font-family:var(--font-mono); font-size:10.5px; padding:5px 10px; border-radius:999px; background:var(--paper-dim); white-space:nowrap; flex-shrink:0; }

/* ==========================================================
   FLOATING MESSAGES BUTTON
   ========================================================== */
.fab-messages {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wash-blue);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-pop);
  cursor: pointer;
  z-index: 90;
  transition: transform 0.15s ease, background 0.15s ease;
}
.fab-messages:hover { background: var(--wash-blue-dark); transform: scale(1.05); }
.fab-messages:active { transform: scale(0.95); }

/* ==========================================================
   MESSAGES INBOX
   ========================================================== */
.convo-item { display:flex; align-items:center; gap:14px; border:1px solid var(--line); border-radius:14px; padding:14px 16px; margin-bottom:10px; cursor:pointer; }
.convo-item:hover { border-color: var(--wash-blue); }
.convo-avatar { width:44px; height:44px; border-radius:50%; background:var(--paper-dim); display:flex; align-items:center; justify-content:center; font-size:20px; flex-shrink:0; }
.convo-body h4 { margin:0 0 3px; font-family: var(--font-display); font-size:15px; }
.convo-body p { margin:0; font-size:12.5px; color:rgba(11,26,43,0.55); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ==========================================================
   CHAT SCREEN
   ========================================================== */
.chat-shell { display:flex; flex-direction:column; height:100vh; max-width:640px; padding-bottom:0; }
.chat-lock-banner { background: rgba(255,122,61,0.12); color:#B45309; border-radius:10px; padding:10px 14px; font-size:12px; margin-bottom:8px; line-height:1.5; }
.chat-messages { flex:1; overflow-y:auto; display:flex; flex-direction:column; gap:8px; padding:6px 2px 16px; }
.chat-bubble { max-width:78%; padding:10px 13px; border-radius:16px; font-size:14px; line-height:1.4; }
.chat-bubble.me { align-self:flex-end; background: var(--wash-blue); color:white; border-bottom-right-radius:4px; }
.chat-bubble.them { align-self:flex-start; background: var(--paper-dim); color:var(--ink); border-bottom-left-radius:4px; }
.chat-bubble-text { white-space:pre-wrap; word-break:break-word; }
.chat-img { max-width:200px; border-radius:10px; display:block; margin-bottom:6px; }
.chat-doc-link { color:inherit; text-decoration:underline; font-size:13px; }
.chat-system-msg { align-self:center; font-size:11.5px; color:rgba(11,26,43,0.5); background:var(--paper-dim); padding:6px 12px; border-radius:999px; margin:6px 0; text-align:center; }
.chat-empty { text-align:center; color:rgba(11,26,43,0.45); font-size:13px; margin-top:40px; }

.chat-input-bar { display:flex; align-items:center; gap:8px; padding:10px 4px 22px; border-top:1px solid var(--line); background:var(--paper); }
.chat-attach-btn { width:38px; height:38px; border-radius:50%; background:var(--paper-dim); display:flex; align-items:center; justify-content:center; cursor:pointer; font-size:16px; flex-shrink:0; }
.chat-input-bar input[type="text"] { flex:1; border:1.5px solid var(--line); border-radius:999px; padding:10px 16px; font-size:14px; font-family:var(--font-body); }
.chat-send-btn { width:40px; height:40px; border-radius:50%; background:var(--wash-blue); color:white; border:none; font-size:15px; cursor:pointer; flex-shrink:0; }

@media (max-width: 560px) {
  .fab-messages { bottom: 16px; right: 16px; width: 52px; height: 52px; }
}

/* ==========================================================
   MULTI-SELECT SPEED (checkbox style, replaces single radio)
   ========================================================== */
.tier-option-check { width:20px; height:20px; border-radius:6px; border:2px solid var(--line-strong); flex-shrink:0; display:flex; align-items:center; justify-content:center; }
.tier-option.selected .tier-option-check { border-color: var(--wash-blue); background: var(--wash-blue); }
.tier-option.selected .tier-option-check::after { content:'✓'; color:white; font-size:12px; font-weight:700; line-height:1; }

/* ==========================================================
   ORDER HISTORY (list item + invoice action)
   ========================================================== */
.order-history-item { border:1px solid var(--line); border-radius:12px; padding:14px 16px; margin-bottom:10px; }
.order-history-main { display:flex; justify-content:space-between; align-items:center; gap:12px; cursor:pointer; }
.order-invoice-btn { margin-top:10px; background:none; border:1px solid var(--line-strong); border-radius:999px; padding:6px 14px; font-size:12px; font-weight:600; color:var(--wash-blue); cursor:pointer; }
.order-invoice-btn:hover { border-color: var(--wash-blue); background: var(--paper-dim); }

/* invoice modal reuses .modal / .summary-block styling; just needs more width */
#invoice-modal .modal { max-width: 420px; max-height: 86vh; overflow-y: auto; }
