:root {
  --bg: #164a40;
  --surface: #123d35;
  --surface-raised: #1f5d50;
  --surface-soft: #e9f0e9;
  --ink: #f5f7ef;
  --ink-dark: #10211d;
  --muted: #a6b7b0;
  --muted-dark: #5f6f69;
  --line: rgba(232, 242, 234, 0.18);
  --line-strong: rgba(232, 242, 234, 0.32);
  --brand: #b9f36b;
  --brand-strong: #95d63c;
  --aqua: #59d9c2;
  --coral: #ff826f;
  --amber: #f5c969;
  --danger: #ff7c78;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 999px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
  --font-heading: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-body: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --primary: var(--brand);
  --primary-hover: var(--brand-strong);
  --accent-purple: #b8a7ff;
  --accent-cyan: var(--aqua);
  --accent-emerald: var(--aqua);
  --accent-rose: var(--coral);
  --accent-amber: var(--amber);
  --text-main: var(--ink);
  --text-muted: var(--muted);
  --border-color: var(--line);
  --glass-border: var(--line);
  --bg-dark: var(--bg);
  --bg-card: var(--surface);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only { width: 1px; height: 1px; position: absolute; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  background:
    radial-gradient(circle at 8% 4%, rgba(185, 243, 107, 0.26), transparent 29rem),
    radial-gradient(circle at 96% 18%, rgba(89, 217, 194, 0.28), transparent 34rem),
    linear-gradient(145deg, #164a40 0%, #1d5c4d 48%, #28705d 100%);
  background-attachment: fixed;
}

.site-header, .container, .footer { position: relative; z-index: 2; }

.ambient-particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.ambient-particles span {
  position: absolute;
  display: block;
  border: 1px solid rgba(207, 255, 144, 0.2);
  border-radius: 50%;
  background:
    radial-gradient(circle at 27% 22%, rgba(255,255,255,0.26) 0 3%, transparent 7%),
    radial-gradient(circle at 58% 66%, rgba(89,217,194,0.1), transparent 58%),
    rgba(185,243,107,0.025);
  box-shadow:
    inset -28px -22px 60px rgba(18,61,53,0.24),
    inset 12px 10px 34px rgba(255,255,255,0.07),
    0 0 70px rgba(89,217,194,0.08);
  backdrop-filter: blur(1px);
  opacity: 0.68;
  will-change: transform;
}
.ambient-particles span:nth-child(1) { width: 340px; height: 340px; left: -120px; top: 14vh; animation: particle-drift-a 24s ease-in-out infinite alternate; }
.ambient-particles span:nth-child(2) { width: 220px; height: 220px; right: -54px; top: 7vh; animation: particle-drift-b 19s ease-in-out infinite alternate-reverse; }
.ambient-particles span:nth-child(3) { width: 128px; height: 128px; left: 14vw; bottom: 8vh; animation: particle-drift-c 17s ease-in-out infinite alternate; }
.ambient-particles span:nth-child(4) { width: 270px; height: 270px; right: 9vw; bottom: -118px; animation: particle-drift-a 27s ease-in-out infinite alternate-reverse; }
.ambient-particles span:nth-child(5) { width: 82px; height: 82px; left: 46vw; top: 11vh; animation: particle-drift-b 14s ease-in-out infinite alternate; }
.ambient-particles span:nth-child(6) { width: 54px; height: 54px; right: 28vw; top: 56vh; animation: particle-drift-c 12s ease-in-out infinite alternate-reverse; }
.ambient-particles span:nth-child(7) { width: 160px; height: 160px; left: 33vw; top: 72vh; animation: particle-drift-b 22s ease-in-out infinite alternate; opacity: 0.38; }

button, input, select, textarea { font: inherit; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: #d4ff9c; }
img { max-width: 100%; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.55rem;
  color: var(--ink);
  font-family: var(--font-heading);
  letter-spacing: -0.035em;
  line-height: 1.12;
}
h1 { font-size: clamp(2rem, 4vw, 3.55rem); font-weight: 740; }
h2 { font-size: clamp(1.45rem, 2.4vw, 2.05rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 680; }
p { margin: 0 0 1rem; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  color: var(--ink-dark);
  background: var(--brand);
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(16, 61, 52, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.navbar {
  width: min(1480px, 100%);
  min-height: 76px;
  margin: 0 auto;
  padding: 0.8rem clamp(1rem, 3vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  background: rgba(233,240,233,0.08);
  border-radius: 13px 13px 13px 3px;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: -0.03em;
}
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: contain; transform: scale(1.2); }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: 1.1rem; letter-spacing: -0.02em; }
.brand-copy small { margin-top: 0.25rem; color: var(--muted); font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; }
.nav-panel, .nav-links, .account-menu { display: flex; align-items: center; }
.nav-panel { gap: 1.5rem; }
.nav-links { list-style: none; margin: 0; padding: 0; gap: 0.2rem; }
.nav-item a:not(.btn) {
  display: inline-flex;
  padding: 0.65rem 0.8rem;
  color: var(--muted);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 650;
}
.nav-item a:hover, .nav-item a.active { color: var(--ink); background: rgba(255,255,255,0.06); }
.account-menu { gap: 0.75rem; padding-left: 1.2rem; border-left: 1px solid var(--line); }
.user-badge { display: grid; gap: 0.1rem; font-size: 0.85rem; line-height: 1.2; }
.role-tag { color: var(--muted); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.logout-form { margin: 0; }
.nav-toggle { display: none; }

.container {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3.25rem) clamp(1rem, 3vw, 2.5rem) 4rem;
  flex: 1;
}
.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.page-header p, .page-title p { max-width: 680px; margin: 0.4rem 0 0; color: var(--muted); }
.page-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }

.card {
  padding: clamp(1.1rem, 2.3vw, 1.65rem);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 0 rgba(255,255,255,0.03);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.card:hover { border-color: rgba(185,243,107,0.22); box-shadow: 0 22px 54px rgba(0,0,0,0.16); }
.card + .card { margin-top: 1.25rem; }

.invoice-card {
  background: linear-gradient(155deg, rgba(31, 93, 80, 0.96), rgba(18, 61, 53, 0.98));
}
.invoice-total-panel { background: rgba(233, 240, 233, 0.08); }
.payment-actions { display: flex; align-items: center; justify-content: flex-end; gap: 0.75rem; flex-wrap: wrap; }
.payment-actions form { margin: 0; }
.secure-checkout-note { display: grid; gap: 0.15rem; max-width: 420px; margin-right: auto; }
.secure-checkout-note strong { color: var(--brand); }
.secure-checkout-note span { color: var(--muted); font-size: 0.88rem; }
.checkout-handoff { width: min(680px, 100%); margin: clamp(2rem, 8vh, 6rem) auto; padding: clamp(1.5rem, 5vw, 3.5rem); text-align: center; }
.checkout-handoff p { max-width: 540px; margin: 0 auto 1.5rem; color: var(--muted); }
.checkout-handoff .page-actions { justify-content: center; }
.checkout-handoff-progress { width: min(360px, 80%); height: 5px; margin: 0 auto 1.8rem; overflow: hidden; background: rgba(255,255,255,0.08); border-radius: var(--radius-full); }
.checkout-handoff-progress span { width: 42%; height: 100%; display: block; background: var(--brand); border-radius: inherit; animation: checkout-progress 1.1s ease-in-out infinite alternate; }
.grid { display: grid; gap: 1.15rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.66rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 720;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary::after, .btn-emerald::after, .btn-purple::after {
  content: "";
  position: absolute;
  inset: -60% -35%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.46) 50%, transparent 60%);
  transform: translateX(-85%);
  transition: transform 520ms ease;
}
.btn-primary:hover::after, .btn-emerald:hover::after, .btn-purple:hover::after { transform: translateX(85%); }
.btn-primary, .btn-emerald, .btn-purple { color: var(--ink-dark); background: var(--brand); }
.btn-primary:hover, .btn-emerald:hover, .btn-purple:hover { color: var(--ink-dark); background: #cbff8b; }
.btn-secondary { color: var(--ink); background: transparent; border-color: var(--line-strong); }
.btn-secondary:hover { color: var(--ink); background: rgba(255,255,255,0.07); }
.btn-danger { color: #2a0c0d; background: var(--danger); }
.btn:disabled { opacity: 0.48; cursor: not-allowed; transform: none; }
.btn-sm { min-height: 34px; padding: 0.48rem 0.72rem; font-size: 0.8rem; }
.btn-block { width: 100%; }
.btn:focus-visible, .form-control:focus-visible, .nav-toggle:focus-visible, a:focus-visible {
  outline: 3px solid rgba(185, 243, 107, 0.35);
  outline-offset: 3px;
}

.form-group { margin-bottom: 1.15rem; }
.form-label { display: block; margin-bottom: 0.42rem; color: #d6e0db; font-size: 0.84rem; font-weight: 680; }
.form-control {
  width: 100%;
  min-height: 46px;
  padding: 0.68rem 0.8rem;
  color: var(--ink);
  background: #103d34;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.form-control::placeholder { color: #71847c; }
.form-control:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(185,243,107,0.12); }
select.form-control option { color: var(--ink); background: var(--surface); }
textarea.form-control { min-height: 110px; resize: vertical; }
.field-hint { display: block; margin-top: 0.35rem; color: var(--muted); font-size: 0.78rem; }

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.28rem 0.62rem;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.02em;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-warning { color: #f3ca70; background: rgba(243,202,112,0.10); border-color: rgba(243,202,112,0.25); }
.badge-info, .badge-primary, .badge-indigo { color: #72dfcc; background: rgba(89,217,194,0.10); border-color: rgba(89,217,194,0.24); }
.badge-purple { color: #c4b6ff; background: rgba(184,167,255,0.10); border-color: rgba(184,167,255,0.25); }
.badge-success { color: var(--brand); background: rgba(185,243,107,0.09); border-color: rgba(185,243,107,0.24); }
.badge-danger { color: #ff928c; background: rgba(255,124,120,0.10); border-color: rgba(255,124,120,0.25); }
.badge-secondary { color: var(--muted); background: rgba(255,255,255,0.05); border-color: var(--line); }

.stat-card { min-height: 128px; display: flex; align-items: center; gap: 1rem; }
.stat-icon:empty { display: none; }
.stat-icon:not(:empty) { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; }
.stat-value { margin-bottom: 0.25rem; color: var(--ink); font-size: clamp(1.35rem, 2.4vw, 2rem); font-weight: 760; letter-spacing: -0.04em; }
.stat-label { color: var(--muted); font-size: 0.8rem; }

.table-responsive { width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 14px; }
.table { width: 100%; margin: 0; border-collapse: collapse; font-size: 0.86rem; }
.table th, .table td { padding: 0.85rem 0.9rem; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.table th { color: #bed0c9; background: #103d34; font-size: 0.69rem; font-weight: 760; letter-spacing: 0.07em; text-transform: uppercase; white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(255,255,255,0.025); }

.alert { margin-bottom: 1.4rem; padding: 0.85rem 1rem; display: flex; align-items: center; gap: 1rem; border: 1px solid; border-radius: var(--radius-sm); }
.alert-success { color: var(--brand); background: rgba(185,243,107,0.08); border-color: rgba(185,243,107,0.25); }
.alert-error { color: #ff9a94; background: rgba(255,124,120,0.08); border-color: rgba(255,124,120,0.25); }
.alert-info, .alert-warning { color: var(--amber); background: rgba(245,201,105,0.08); border-color: rgba(245,201,105,0.25); }
.alert-close { margin-left: auto; padding: 0.35rem; color: inherit; background: none; border: 0; cursor: pointer; font-weight: 700; }

#map, #shopMap, #customerShopMap, #adminBusinessMap, .leaflet-map-container {
  width: 100%;
  height: min(62vh, 540px);
  min-height: 390px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #dce6df;
  z-index: 1;
}
.map-pin {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--ink-dark);
  background: var(--brand);
  border: 3px solid #fff;
  border-radius: 12px 12px 12px 3px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  font-size: 0.68rem;
  font-weight: 850;
}
.map-pin.inactive { color: #fff; background: #77817c; }
.map-pin.customer { color: #fff; background: #0f5f54; border-radius: 50%; }
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--shadow); }
.map-popup { min-width: 210px; color: #13251f; font-family: var(--font-body); }
.map-popup h4 { margin: 0 0 0.35rem; color: #10211d; font-size: 1rem; }
.map-popup p { margin: 0 0 0.65rem; color: #607169; font-size: 0.8rem; }
.map-popup-meta { display: flex; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.7rem; font-size: 0.78rem; font-weight: 700; }
.map-popup a { display: block; padding: 0.55rem; text-align: center; color: #10211d; background: #b9f36b; border-radius: 8px; font-weight: 750; }

.modal-overlay { position: fixed; inset: 0; z-index: 900; padding: 1rem; display: grid; place-items: center; visibility: hidden; opacity: 0; background: rgba(9,39,33,0.8); transition: 180ms ease; }
.modal-overlay.active { visibility: visible; opacity: 1; }
.modal-content { width: min(600px, 100%); max-height: 90vh; overflow: auto; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-md); box-shadow: var(--shadow); }
.modal-header { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.modal-close { color: var(--muted); background: none; border: 0; cursor: pointer; font-weight: 700; }

.hero { padding: clamp(2.5rem, 8vw, 6.5rem) 0 clamp(2.5rem, 6vw, 5rem); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.hero-enhanced {
  min-height: min(820px, calc(100vh - 76px));
  grid-template-columns: minmax(340px, 0.78fr) minmax(520px, 1.22fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5.5rem);
}
.hero-content { position: relative; z-index: 4; animation: hero-copy-in 760ms cubic-bezier(.2,.8,.2,1) both; }
.eyebrow { display: inline-flex; margin-bottom: 1rem; color: var(--brand); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.hero h1 { max-width: 900px; font-size: clamp(3rem, 7vw, 6.4rem); letter-spacing: -0.065em; }
.hero-enhanced h1 { max-width: 760px; font-size: clamp(3.3rem, 6.7vw, 6.7rem); }
.hero h1 span { color: var(--brand); }
.hero-copy { max-width: 620px; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.hero-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-visual { min-width: 0; margin: 0; padding: 2.2rem 0 2.2rem 2rem; perspective: 1200px; animation: hero-image-in 900ms 120ms cubic-bezier(.2,.8,.2,1) both; }
.hero-visual-inner {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  min-height: clamp(510px, 62vh, 670px);
  overflow: visible;
  border-radius: 42px 42px 42px 8px;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform 220ms ease-out;
  box-shadow: 0 36px 100px rgba(0,0,0,0.42);
}
.hero-visual-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 48%, rgba(13,53,45,0.58));
  pointer-events: none;
}
.hero-visual img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 55% center; border-radius: inherit; animation: hero-image-breathe 16s ease-in-out infinite alternate; }
.hero-proof {
  position: absolute;
  left: -50px;
  bottom: 24px;
  z-index: 3;
  width: min(300px, 68%);
  padding: 1.2rem;
  background: rgba(239,244,235,0.92);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 6px;
  color: var(--ink-dark);
  box-shadow: 0 20px 50px rgba(0,0,0,0.28);
  backdrop-filter: blur(18px);
  transform: translateZ(42px);
}
.hero-proof strong { display: block; margin-bottom: 1.3rem; font-size: 1.1rem; }
.proof-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-top: 1px solid rgba(16,33,29,0.12); }
.proof-row span { color: var(--muted-dark); }
.floating-note {
  position: absolute;
  right: -24px;
  top: 34px;
  z-index: 3;
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  color: var(--ink);
  background: rgba(15,60,51,0.88);
  border: 1px solid var(--line-strong);
  border-radius: 14px 14px 14px 4px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
  backdrop-filter: blur(14px);
  transform: translateZ(34px);
  animation: floating-note 4s ease-in-out infinite;
}
.floating-note span { color: var(--brand); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.floating-note strong { font-size: 0.84rem; }
.picture-bubble {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255,255,255,0.62);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 26%, rgba(255,255,255,0.72) 0 4%, rgba(185,243,107,0.12) 7%, rgba(89,217,194,0.08) 48%, transparent 70%);
  box-shadow: inset -12px -10px 28px rgba(18,61,53,0.2), 0 10px 34px rgba(0,0,0,0.13);
  pointer-events: none;
}
.picture-bubble-one { width: 112px; height: 112px; right: 8%; top: 14%; animation: bubble-float 8s ease-in-out infinite; }
.picture-bubble-two { width: 64px; height: 64px; left: 11%; top: 18%; animation: bubble-float 6.5s 1.1s ease-in-out infinite reverse; }
.picture-bubble-three { width: 38px; height: 38px; right: 21%; bottom: 16%; animation: bubble-float 5.5s .4s ease-in-out infinite; }

.visual-story {
  margin: 0 0 clamp(4rem, 8vw, 7.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  min-height: 540px;
  overflow: hidden;
  color: var(--ink-dark);
  background: var(--surface-soft);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 36px 36px 36px 8px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.24);
}
.visual-story-image { position: relative; min-height: 500px; overflow: hidden; }
.visual-story-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 66%, rgba(233,240,233,0.7)); pointer-events: none; }
.visual-story-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.visual-story:hover .visual-story-image img { transform: scale(1.035); }
.image-stamp { position: absolute; left: 1.4rem; bottom: 1.4rem; z-index: 2; display: grid; padding: 0.9rem 1rem; color: var(--ink-dark); background: rgba(185,243,107,0.9); border-radius: 14px 14px 14px 4px; backdrop-filter: blur(12px); box-shadow: 0 14px 34px rgba(0,0,0,0.2); }
.image-stamp strong { font-size: 1.15rem; }
.image-stamp span { font-size: 0.72rem; font-weight: 650; }
.visual-story-copy { padding: clamp(2rem, 5vw, 4.5rem); display: flex; flex-direction: column; justify-content: center; }
.visual-story-copy .eyebrow { color: #4d7725; }
.visual-story-copy h2 { max-width: 620px; color: var(--ink-dark); font-size: clamp(2.1rem, 4vw, 4.3rem); }
.visual-story-copy > p { max-width: 560px; color: var(--muted-dark); font-size: 1.03rem; }
.story-points { margin-top: 1.3rem; display: grid; gap: 0.15rem; }
.story-points div { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 0.7rem; padding: 0.72rem 0; border-top: 1px solid rgba(16,33,29,0.12); }
.story-points span { width: 34px; height: 34px; display: grid; place-items: center; color: var(--ink-dark); background: rgba(89,217,194,0.28); border-radius: 50%; font-size: 0.7rem; font-weight: 800; }
.story-points strong { font-size: 0.9rem; }
.section-heading { margin: 0 0 1.25rem; display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.section-heading p { max-width: 620px; margin: 0; color: var(--muted); }
.business-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.7fr); gap: 1.2rem; align-items: stretch; }
.business-list { max-height: 540px; overflow: auto; display: grid; align-content: start; gap: 0.7rem; }
.business-list-item { padding: 1rem; background: #103d34; border: 1px solid var(--line); border-radius: 13px; transition: transform 220ms ease, border-color 220ms ease, background 220ms ease; }
.business-list-item:hover { transform: translateX(6px); border-color: rgba(185,243,107,0.42); background: #195347; }
.business-list-item strong { display: block; margin-bottom: 0.25rem; }
.business-list-item span { color: var(--muted); font-size: 0.82rem; }

.auth-shell { width: min(980px, 100%); margin: clamp(1rem, 5vw, 4rem) auto; display: grid; grid-template-columns: 0.9fr 1.1fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.auth-aside { padding: clamp(2rem, 5vw, 4rem); display: flex; flex-direction: column; justify-content: space-between; position: relative; isolation: isolate; overflow: hidden; color: var(--ink-dark); background: linear-gradient(rgba(185,243,107,0.84), rgba(185,243,107,0.92)), url('../images/fresh-delivery-v1.png') center / cover; }
.auth-aside::after { content: ""; position: absolute; width: 220px; height: 220px; right: -75px; bottom: -80px; z-index: -1; border: 1px solid rgba(255,255,255,0.5); border-radius: 50%; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.5) 0 4%, transparent 8%), rgba(255,255,255,0.1); animation: bubble-float 9s ease-in-out infinite; }
.auth-aside h1, .auth-aside h2 { color: var(--ink-dark); }
.auth-aside p { color: #39512a; }
.auth-panel { padding: clamp(1.5rem, 5vw, 3.5rem); }

.admin-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.7fr); gap: 1.2rem; align-items: start; }
.admin-sidebar { position: sticky; top: 96px; }
.admin-section { margin-top: 1.5rem; }
.inline-form { display: inline-flex; gap: 0.4rem; align-items: center; margin: 0; }
.empty-state { padding: 2.5rem 1rem; text-align: center; color: var(--muted); }

.gateway-overview {
  min-height: 250px;
  margin-bottom: 1.25rem;
  padding: clamp(1.5rem, 4vw, 3.2rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(185,243,107,0.3);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(90deg, rgba(13,52,44,0.97) 0%, rgba(13,52,44,0.82) 55%, rgba(13,52,44,0.46) 100%),
    url('../images/fresh-delivery-v1.png') center 48% / cover;
  box-shadow: var(--shadow);
}
.gateway-overview::after { content: ""; position: absolute; width: 250px; height: 250px; right: -55px; top: -80px; z-index: -1; border: 1px solid rgba(185,243,107,0.24); border-radius: 50%; animation: bubble-float 10s ease-in-out infinite; }
.gateway-overview-copy { max-width: 700px; }
.gateway-overview-copy h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
.gateway-overview-copy p { max-width: 620px; margin: 0; color: #c8d8d2; }
.gateway-status-stack { display: grid; justify-items: end; gap: 0.55rem; }
.gateway-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(290px, 0.55fr); gap: 1.25rem; align-items: start; }
.gateway-side-card { position: sticky; top: 96px; }
.gateway-side-card > p { color: var(--muted); }
.gateway-toggle { margin-bottom: 1.35rem; padding: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #103d34; border: 1px solid var(--line-strong); border-radius: 14px; cursor: pointer; }
.gateway-toggle span { display: grid; gap: 0.2rem; }
.gateway-toggle small { color: var(--muted); }
.gateway-toggle input { width: 48px; height: 26px; flex: 0 0 auto; appearance: none; position: relative; background: #65766f; border-radius: var(--radius-full); cursor: pointer; transition: background 180ms ease; }
.gateway-toggle input::after { content: ""; width: 20px; height: 20px; position: absolute; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform 180ms ease; }
.gateway-toggle input:checked { background: var(--brand); }
.gateway-toggle input:checked::after { transform: translateX(22px); background: var(--ink-dark); }
.gateway-toggle input:focus-visible { outline: 3px solid rgba(185,243,107,0.35); outline-offset: 3px; }
.gateway-endpoints { margin: 0 0 1.25rem; display: grid; gap: 0.55rem; }
.gateway-endpoints div { padding: 0.75rem 0.85rem; display: grid; grid-template-columns: 100px 1fr; gap: 0.7rem; background: rgba(233,240,233,0.05); border: 1px solid var(--line); border-radius: 10px; }
.gateway-endpoints span { color: var(--muted); font-size: 0.76rem; font-weight: 700; text-transform: uppercase; }
.gateway-endpoints code, .gateway-callback, .table code { overflow-wrap: anywhere; color: #d7f2ea; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.8rem; }
.gateway-test-result { margin-top: 1.2rem; padding-top: 1.2rem; display: grid; justify-items: start; gap: 0.55rem; border-top: 1px solid var(--line); }
.gateway-test-result p { margin: 0; color: var(--muted); font-size: 0.86rem; }
.gateway-test-result small { color: #789088; }
.cashout-gateway-overview { background: linear-gradient(90deg, rgba(13,52,44,0.98) 0%, rgba(13,52,44,0.8) 58%, rgba(13,52,44,0.4) 100%), url('../images/laundry-atelier-hero-v1.png') center 58% / cover; }
.cashout-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.55fr); gap: 1.25rem; align-items: start; }
.cashout-assurance { position: sticky; top: 96px; overflow: hidden; background: linear-gradient(155deg, rgba(31,93,80,0.98), rgba(18,61,53,0.98)); }
.cashout-assurance::after { content: ""; width: 180px; height: 180px; position: absolute; right: -70px; bottom: -80px; border: 1px solid rgba(185,243,107,0.22); border-radius: 50%; }
.cashout-assurance > p { color: var(--muted); }
.cashout-steps { display: grid; gap: 0.65rem; }
.cashout-steps span { display: flex; align-items: center; gap: 0.7rem; padding: 0.72rem; background: rgba(233,240,233,0.06); border: 1px solid var(--line); border-radius: 12px; font-size: 0.86rem; }
.cashout-steps strong { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; color: var(--ink-dark); background: var(--brand); border-radius: 50%; font-size: 0.75rem; }
.cashout-submit { transition: opacity 180ms ease, transform 180ms ease, box-shadow 220ms ease, background 180ms ease; }
.cashout-submit.cashout-ready { box-shadow: 0 0 0 4px rgba(185,243,107,0.1), 0 12px 34px rgba(185,243,107,0.18); animation: cashout-ready-pulse 1.8s ease-in-out infinite alternate; }
.cashout-form-status { min-height: 1.4rem; margin: 0.65rem 0 0; color: var(--muted); text-align: center; font-size: 0.8rem; }
.cashout-form-status.is-ready { color: var(--brand); font-weight: 680; }

.call-shell { width: min(1120px, 100%); margin: 1rem auto 3rem; }
.call-page-heading { margin-bottom: 1.2rem; display: flex; align-items: end; justify-content: space-between; gap: 1.2rem; }
.call-page-heading .eyebrow { margin-bottom: 0.45rem; }
.call-page-heading h1 { margin-bottom: 0.35rem; }
.call-page-heading p, .call-help { margin: 0; color: var(--muted); }
.call-status { min-width: 170px; padding: 0.66rem 0.9rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; color: var(--ink); background: rgba(16,61,52,0.78); border: 1px solid var(--line-strong); border-radius: var(--radius-full); font-size: 0.82rem; font-weight: 750; white-space: nowrap; }
.call-status > span { width: 9px; height: 9px; flex: 0 0 auto; background: var(--muted); border-radius: 50%; box-shadow: 0 0 0 5px rgba(166,183,176,0.1); }
.call-status-joining > span, .call-status-waiting > span, .call-status-reconnecting > span { background: var(--amber); box-shadow: 0 0 0 5px rgba(245,201,105,0.13); animation: call-status-pulse 1.15s ease-in-out infinite; }
.call-status-connected > span { background: var(--brand); box-shadow: 0 0 0 5px rgba(185,243,107,0.13); }
.call-status-error > span, .call-status-blocked > span { background: var(--danger); box-shadow: 0 0 0 5px rgba(255,124,120,0.13); }
.call-participants { margin-bottom: 1.2rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.call-person { min-width: 0; padding: 0.8rem 0.9rem; display: flex; align-items: center; gap: 0.7rem; background: rgba(18,61,53,0.72); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(14px); }
.call-person > span:last-child { min-width: 0; display: grid; }
.call-person small { color: var(--muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; }
.call-person strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.88rem; }
.call-avatar { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; color: var(--ink-dark); background: var(--brand); border-radius: 12px 12px 12px 4px; font-size: 0.78rem; font-weight: 850; }
.call-avatar-business { background: var(--aqua); }
.call-avatar-driver { background: var(--amber); }
.call-stage { padding: 0; overflow: hidden; background: #103d34; }
.call-prejoin { min-height: 530px; padding: clamp(2rem, 7vw, 5rem); position: relative; isolation: isolate; display: grid; align-content: center; justify-items: start; background: linear-gradient(90deg, rgba(12,50,42,0.99) 0%, rgba(12,50,42,0.94) 50%, rgba(12,50,42,0.38) 100%), url('../images/laundry-atelier-hero-v1.png') center 44% / cover; }
.call-prejoin::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 75% 28%, rgba(185,243,107,0.17), transparent 28rem); }
.call-prejoin-mark { width: 58px; height: 58px; margin-bottom: 1.25rem; display: grid; place-items: center; color: var(--ink-dark); background: var(--brand); border-radius: 20px 20px 20px 6px; box-shadow: 0 15px 34px rgba(185,243,107,0.2); font-size: 0.9rem; font-weight: 900; }
.call-prejoin-mark { overflow: hidden; background: rgba(233,240,233,0.08); }
.call-prejoin-mark img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.22); }
.call-prejoin h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.call-prejoin > p { max-width: 570px; color: #c4d4ce; }
.call-recipient-picker { width: min(620px, 100%); margin: 0.85rem 0 0.35rem; padding: 0; border: 0; }
.call-recipient-picker legend { margin-bottom: 0.55rem; color: #d8e6e1; font-size: 0.78rem; font-weight: 760; }
.call-recipient-options { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.call-recipient-option { min-width: min(230px, 100%); padding: 0.65rem 0.75rem; position: relative; display: flex; align-items: center; gap: 0.65rem; color: var(--ink); background: rgba(10,46,39,0.78); border: 1px solid var(--line); border-radius: 13px; cursor: pointer; transition: border-color 160ms ease, background 160ms ease, transform 160ms ease; }
.call-recipient-option:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.call-recipient-option:has(input:checked) { background: rgba(89,217,194,0.16); border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(89,217,194,0.08); }
.call-recipient-option input { position: absolute; opacity: 0; pointer-events: none; }
.call-recipient-option > span:last-child { min-width: 0; display: grid; }
.call-recipient-option strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.82rem; }
.call-recipient-option small { color: var(--muted); font-size: 0.7rem; }
.call-recipient-option .call-avatar { width: 34px; height: 34px; border-radius: 11px 11px 11px 4px; }
.call-join-actions { margin: 0.6rem 0 1.1rem; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.call-prejoin .call-privacy-note { margin: 0; color: #8fa9a0; font-size: 0.78rem; }
.call-container { min-height: 590px; position: relative; display: grid; grid-template-columns: minmax(230px, 0.62fr) minmax(0, 1.38fr); gap: 2px; overflow: hidden; background: #092b25; }
.video-wrapper { min-height: 250px; position: relative; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #16493f, #0e332c); }
.video-wrapper video { width: 100%; height: 100%; position: absolute; inset: 0; z-index: 2; object-fit: cover; background: #0d342c; }
.video-fallback { position: relative; z-index: 1; display: grid; justify-items: center; gap: 0.55rem; color: var(--muted); }
.video-fallback span { width: 86px; height: 86px; display: grid; place-items: center; color: var(--ink-dark); background: linear-gradient(145deg, var(--brand), var(--aqua)); border-radius: 30px 30px 30px 8px; box-shadow: 0 18px 45px rgba(89,217,194,0.18); font-size: 2rem; font-weight: 850; }
.video-fallback small { font-size: 0.75rem; font-weight: 700; }
.video-wrapper.camera-off video { opacity: 0; pointer-events: none; }
.video-label { max-width: calc(100% - 2rem); position: absolute; left: 1rem; bottom: 1rem; z-index: 3; overflow: hidden; padding: 0.46rem 0.7rem; color: #fff; background: rgba(5,28,24,0.74); border: 1px solid rgba(255,255,255,0.12); border-radius: 9px; backdrop-filter: blur(10px); text-overflow: ellipsis; white-space: nowrap; font-size: 0.72rem; font-weight: 700; }
.remote-video-grid { min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2px; background: #092b25; }
.remote-video-wrapper { min-width: 0; }
.remote-call-audio { width: 1px; height: 1px; position: absolute; overflow: hidden; opacity: 0; pointer-events: none; }
.call-waiting { min-height: 100%; padding: 2rem; display: grid; place-content: center; justify-items: center; text-align: center; background: radial-gradient(circle at 50% 45%, rgba(89,217,194,0.13), transparent 19rem), #123d35; }
.call-waiting-pulse { width: 84px; height: 84px; margin-bottom: 1.1rem; position: relative; display: block; border: 1px solid rgba(185,243,107,0.3); border-radius: 50%; }
.call-waiting-pulse::before, .call-waiting-pulse::after { content: ""; position: absolute; inset: 17px; border: 1px solid rgba(185,243,107,0.42); border-radius: 50%; animation: call-waiting-wave 1.8s ease-out infinite; }
.call-waiting-pulse::after { animation-delay: 0.7s; }
.call-waiting p { max-width: 360px; margin: 0.35rem 0 0; color: var(--muted); font-size: 0.84rem; }
.call-controls { position: absolute; left: 50%; bottom: 1rem; z-index: 6; display: flex; gap: 0.55rem; padding: 0.55rem; transform: translateX(-50%); background: rgba(6,31,26,0.88); border: 1px solid var(--line-strong); border-radius: var(--radius-full); box-shadow: 0 14px 38px rgba(0,0,0,0.24); backdrop-filter: blur(15px); }
.call-btn { min-width: 68px; min-height: 52px; padding: 0.45rem 0.8rem; display: grid; place-items: center; gap: 0.05rem; color: #fff; background: var(--surface-raised); border: 1px solid transparent; border-radius: var(--radius-full); cursor: pointer; font-size: 0.72rem; font-weight: 780; transition: transform 160ms ease, background 160ms ease, opacity 160ms ease; }
.call-btn:hover:not(:disabled) { transform: translateY(-2px); background: #287261; }
.call-btn span { font-size: 0.68rem; font-weight: 850; text-transform: uppercase; letter-spacing: 0.05em; }
.call-btn small { font-size: 0.68rem; }
.call-btn.is-off { color: var(--ink-dark); background: var(--amber); }
.call-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.call-btn-end { color: #270b0b; background: var(--danger); }
.call-btn-end:hover:not(:disabled) { background: #ff9894; }
.call-message { margin: 0; padding: 0.9rem 1rem; color: #ffd0cd; background: rgba(115,23,23,0.5); border-top: 1px solid rgba(255,124,120,0.28); font-size: 0.85rem; }
.call-message-notice { color: #fff1c7; background: rgba(91,64,12,0.5); border-top-color: rgba(245,201,105,0.28); }
.call-help { padding: 0.9rem 0.25rem 0; text-align: center; font-size: 0.78rem; }
.incoming-call-banner { width: min(520px, calc(100vw - 2rem)); position: fixed; right: 1rem; top: 90px; z-index: 100; padding: 0.85rem; display: grid; grid-template-columns: auto minmax(0,1fr) auto auto auto; align-items: center; gap: 0.65rem; color: var(--ink); background: rgba(12,50,42,0.97); border: 1px solid rgba(185,243,107,0.38); border-radius: 16px; box-shadow: 0 22px 65px rgba(0,0,0,0.36); backdrop-filter: blur(18px); animation: incoming-call-in 380ms cubic-bezier(.2,.8,.2,1); }
.incoming-call-banner > div { min-width: 0; display: grid; }
.incoming-call-banner small { color: var(--brand); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.incoming-call-banner strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.86rem; }
.incoming-call-pulse { width: 14px; height: 14px; background: var(--brand); border-radius: 50%; box-shadow: 0 0 0 0 rgba(185,243,107,0.45); animation: incoming-call-ring 1.2s ease-out infinite; }
.incoming-call-sound, .incoming-call-dismiss { padding: 0.35rem; color: var(--muted); background: transparent; border: 0; cursor: pointer; font-size: 0.73rem; }
.incoming-call-sound:hover, .incoming-call-dismiss:hover { color: var(--ink); }

.chat-shell { width: min(1240px, 100%); margin: 1rem auto 3rem; }
.chat-page-heading { margin-bottom: 1.2rem; }
.chat-layout { min-height: min(720px, calc(100vh - 210px)); padding: 0; display: grid; grid-template-columns: minmax(260px, 330px) minmax(0, 1fr); overflow: hidden; background: rgba(13,52,44,0.94); }
.chat-sidebar { min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: rgba(9,43,37,0.52); }
.chat-sidebar-heading { padding: 1rem 1.1rem; display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; border-bottom: 1px solid var(--line); }
.chat-sidebar-heading small { color: var(--muted); font-size: 0.7rem; }
.chat-contact-list { padding: 0.55rem; display: grid; align-content: start; gap: 0.35rem; overflow-y: auto; }
.chat-contact { min-width: 0; padding: 0.72rem; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 0.65rem; color: var(--ink); border: 1px solid transparent; border-radius: 12px; transition: background 160ms ease, border-color 160ms ease, transform 160ms ease; }
.chat-contact:hover { color: var(--ink); background: rgba(233,240,233,0.06); transform: translateX(2px); }
.chat-contact.active { background: rgba(89,217,194,0.12); border-color: rgba(89,217,194,0.3); }
.chat-contact.support { background-image: linear-gradient(90deg, rgba(185,243,107,0.055), transparent); }
.chat-contact > span:nth-child(2) { min-width: 0; display: grid; }
.chat-contact strong, .chat-contact small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-contact strong { font-size: 0.84rem; }
.chat-contact small { color: var(--muted); font-size: 0.68rem; }
.chat-contact-avatar { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; color: var(--ink-dark); background: linear-gradient(145deg, var(--brand), var(--aqua)); border-radius: 13px 13px 13px 4px; font-size: 0.78rem; font-weight: 850; }
.chat-support-dot { padding: 0.22rem 0.4rem; color: var(--ink-dark); background: var(--brand); border-radius: var(--radius-full); font-size: 0.55rem; font-weight: 850; text-transform: uppercase; }
.chat-panel { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(300px,1fr) auto auto; }
.chat-panel-heading { padding: 0.85rem 1rem; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 0.7rem; background: rgba(18,61,53,0.92); border-bottom: 1px solid var(--line); }
.chat-panel-heading > div:nth-child(2) { min-width: 0; display: grid; }
.chat-panel-heading strong, .chat-panel-heading small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-panel-heading small { color: var(--muted); font-size: 0.72rem; }
.chat-messages { min-height: 350px; padding: 1.25rem; display: flex; flex-direction: column; gap: 0.8rem; overflow-y: auto; overscroll-behavior: contain; background: radial-gradient(circle at 85% 12%, rgba(89,217,194,0.08), transparent 24rem), rgba(9,43,37,0.36); }
.chat-empty { min-height: 100%; margin: auto; display: grid; place-items: center; align-content: center; text-align: center; color: var(--muted); }
.chat-empty > span { width: 62px; height: 62px; margin-bottom: 0.8rem; display: grid; place-items: center; color: var(--ink-dark); background: var(--brand); border-radius: 21px 21px 21px 6px; font-weight: 900; }
.chat-empty strong { color: var(--ink); }
.chat-empty p { margin: 0.2rem 0 0; font-size: 0.8rem; }
.chat-message { max-width: min(76%, 620px); align-self: flex-start; display: grid; justify-items: start; gap: 0.25rem; }
.chat-message.mine { align-self: flex-end; justify-items: end; }
.chat-bubble { max-width: 100%; padding: 0.72rem 0.85rem; overflow: hidden; color: var(--ink); background: var(--surface-raised); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; box-shadow: 0 9px 28px rgba(0,0,0,0.1); }
.chat-message.mine .chat-bubble { color: var(--ink-dark); background: var(--brand); border-color: transparent; border-radius: 16px 16px 4px 16px; }
.chat-bubble > p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.9rem; }
.chat-message > small { padding: 0 0.25rem; color: var(--muted); font-size: 0.63rem; }
.chat-image-attachment { max-width: 380px; margin-top: 0.4rem; display: grid; gap: 0.35rem; color: inherit; }
.chat-image-attachment:first-child { margin-top: 0; }
.chat-image-attachment img { width: 100%; max-height: 360px; display: block; object-fit: cover; background: #0b312a; border-radius: 11px; }
.chat-image-attachment span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.68rem; }
.chat-file-attachment { min-width: min(280px, 100%); margin-top: 0.4rem; padding: 0.65rem; display: flex; align-items: center; gap: 0.65rem; color: inherit; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); border-radius: 10px; }
.chat-file-attachment:first-child { margin-top: 0; }
.chat-file-attachment strong { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: #d85a55; border-radius: 9px; font-size: 0.65rem; }
.chat-file-attachment span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.75rem; }
.chat-composer { padding: 0.8rem; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: end; gap: 0.65rem; background: rgba(18,61,53,0.96); border-top: 1px solid var(--line); }
.chat-attachment-button { width: 44px; height: 44px; display: grid; place-items: center; color: var(--brand); background: rgba(233,240,233,0.06); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: 1.4rem; font-weight: 400; }
.chat-attachment-button:hover { background: rgba(233,240,233,0.1); }
.chat-compose-field { min-width: 0; padding: 0.52rem 0.7rem 0.38rem; display: grid; background: rgba(6,31,26,0.56); border: 1px solid var(--line); border-radius: 13px; }
.chat-compose-field textarea { width: 100%; min-height: 26px; max-height: 140px; padding: 0; resize: none; color: var(--ink); background: transparent; border: 0; outline: 0; line-height: 1.35; }
.chat-compose-field textarea::placeholder { color: #789087; }
.chat-compose-field small { overflow: hidden; color: #789087; text-overflow: ellipsis; white-space: nowrap; font-size: 0.62rem; }
.chat-compose-field small.has-file { color: var(--brand); }
.chat-composer .btn { min-height: 44px; }
.chat-form-status { min-height: 0; padding: 0 1rem; color: var(--muted); background: rgba(18,61,53,0.96); font-size: 0.72rem; }
.chat-form-status:not(:empty) { padding-bottom: 0.55rem; }
.chat-form-status.is-error { color: #ffc5c2; }

/* Fabric intelligence and business material pricing */
.booking-shell, .fabric-pricing-page { width: min(1120px, 100%); margin: 1rem auto 3rem; }
.booking-form { display: grid; gap: 1rem; }
.booking-form .card, .fabric-pricing-page .card { margin: 0; }
.local-ai-badge { padding: .38rem .62rem; color: var(--ink-dark); background: linear-gradient(120deg, var(--brand), var(--aqua)); border-radius: var(--radius-full); font-size: .67rem; font-weight: 850; letter-spacing: .03em; white-space: nowrap; }
.fabric-scanner-lead, .fabric-selection-card > p { max-width: 760px; color: var(--muted); }
.fabric-scanner-workspace { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(220px,.55fr); gap: 1rem; }
.fabric-camera-stage { min-height: 440px; position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, rgba(89,217,194,.14), transparent 19rem), #0a352d; border: 1px solid var(--line); border-radius: 22px 22px 22px 7px; }
.fabric-camera-stage video, .fabric-camera-stage > img { width: 100%; height: 100%; min-height: 440px; position: absolute; inset: 0; object-fit: cover; }
.fabric-camera-stage::after { content: ""; position: absolute; inset: 18px; z-index: 3; pointer-events: none; border: 1px solid rgba(185,243,107,.42); border-radius: 16px 16px 16px 5px; box-shadow: inset 0 0 46px rgba(0,0,0,.12); }
.fabric-camera-placeholder { display: grid; justify-items: center; gap: .4rem; color: var(--muted); text-align: center; }
.fabric-camera-placeholder > span { width: 74px; height: 74px; display: grid; place-items: center; color: var(--ink-dark); background: linear-gradient(140deg, var(--brand), var(--aqua)); border-radius: 25px 25px 25px 7px; box-shadow: 0 16px 40px rgba(89,217,194,.18); font-weight: 900; }
.fabric-camera-placeholder strong { color: var(--ink); }
.fabric-camera-placeholder small { font-size: .75rem; }
.fabric-scan-line { height: 2px; position: absolute; left: 8%; right: 8%; top: 20%; z-index: 5; opacity: 0; pointer-events: none; background: linear-gradient(90deg, transparent, var(--brand), #fff, var(--brand), transparent); box-shadow: 0 0 18px rgba(185,243,107,.85); }
.fabric-camera-stage.is-scanning .fabric-scan-line { opacity: 1; animation: fabric-scan-sweep 1.7s ease-in-out infinite; }
.fabric-camera-stage.is-scanning::before { content: "Analyzing locally"; position: absolute; left: 50%; top: 1.9rem; z-index: 6; padding: .35rem .65rem; transform: translateX(-50%); color: var(--ink-dark); background: var(--brand); border-radius: var(--radius-full); font-size: .66rem; font-weight: 850; }
.fabric-scanner-actions { display: flex; align-content: start; flex-direction: column; gap: .65rem; }
.fabric-scanner-actions .btn { justify-content: center; }
.fabric-upload-button { cursor: pointer; }
.fabric-upload-button:has(+ input:disabled) { opacity: .55; pointer-events: none; }
.text-button, .text-danger-button { padding: .35rem 0; color: var(--aqua); background: transparent; border: 0; cursor: pointer; font: inherit; font-size: .74rem; font-weight: 750; text-align: left; }
.text-danger-button { color: #ffc0bd; }
.fabric-scan-status { min-height: 42px; margin-top: .85rem; padding: .7rem .8rem; color: var(--muted); background: rgba(6,31,26,.35); border-left: 3px solid var(--line-strong); border-radius: 6px 11px 11px 6px; font-size: .8rem; }
.fabric-scan-status.is-success { color: #e5ffc4; border-left-color: var(--brand); }
.fabric-scan-status.is-warning, .fabric-scan-status.is-working { color: #fff0bf; border-left-color: var(--amber); }
.fabric-scan-status.is-error { color: #ffd0cd; border-left-color: var(--danger); }
.fabric-scan-status.is-working { animation: fabric-status-breathe 1.2s ease-in-out infinite alternate; }
.fabric-ai-results { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.fabric-ai-results-heading { margin-bottom: .75rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.fabric-ai-results-heading small { color: var(--muted); font-size: .68rem; }
.fabric-detection-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; }
.fabric-detection-card { padding: .8rem; display: grid; gap: .38rem; background: rgba(233,240,233,.055); border: 1px solid var(--line); border-top: 3px solid var(--aqua); border-radius: 13px; }
.fabric-detection-card.risk-high, .fabric-detection-card.risk-specialist { border-top-color: var(--coral); }
.fabric-detection-card > div { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.fabric-detection-card > div span { color: var(--brand); font-size: .65rem; font-weight: 800; }
.fabric-detection-card b { color: var(--aqua); font-size: .76rem; }
.fabric-detection-card p { margin: 0; color: var(--muted); font-size: .75rem; }
.fabric-detection-card > small { color: #cbd9d4; font-size: .68rem; }
.fabric-ai-summary { margin: .8rem 0 0; color: var(--muted); font-size: .78rem; }
.fabric-ai-disclaimer { margin: .8rem 0 0; color: #91a89f; font-size: .7rem; }
.fabric-selection-list { display: grid; gap: .55rem; }
.fabric-selection-empty { padding: 1.5rem; color: var(--muted); background: rgba(6,31,26,.3); border: 1px dashed var(--line-strong); border-radius: 14px; text-align: center; }
.fabric-selection-row { min-width: 0; padding: .78rem; display: grid; grid-template-columns: auto minmax(0,1fr) auto 88px; align-items: center; gap: .75rem; background: rgba(233,240,233,.035); border: 1px solid var(--line); border-radius: 13px; cursor: pointer; transition: transform 160ms ease, background 160ms ease, border-color 160ms ease; }
.fabric-selection-row:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.fabric-selection-row.is-selected { background: rgba(89,217,194,.09); border-color: rgba(89,217,194,.38); }
.fabric-selection-row.is-ai-suggested { box-shadow: inset 3px 0 0 var(--brand); }
.fabric-select-checkbox { width: 20px; height: 20px; accent-color: var(--brand-strong); }
.fabric-selection-copy { min-width: 0; display: grid; }
.fabric-selection-copy strong { font-size: .85rem; }
.fabric-selection-copy small { overflow: hidden; color: var(--muted); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.fabric-selection-rate { color: var(--aqua); font-size: .74rem; white-space: nowrap; }
.fabric-share-field { display: flex; align-items: center; overflow: hidden; background: rgba(6,31,26,.58); border: 1px solid var(--line); border-radius: 10px; }
.fabric-share-field input { width: 58px; padding: .5rem .35rem .5rem .5rem; color: var(--ink); background: transparent; border: 0; outline: 0; text-align: right; }
.fabric-share-field span { padding-right: .45rem; color: var(--muted); font-size: .7rem; }
.load-quantity-field { min-width: 7.25rem; gap: .35rem; }
.load-quantity-field input { width: 4.15rem; }
.load-quantity-field b { padding-right: .45rem; color: var(--muted); font-size: .68rem; white-space: nowrap; }
.location-helper { margin: -.3rem 0 1rem; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.fabric-estimate-card { position: sticky; bottom: 1rem; z-index: 20; display: grid; grid-template-columns: minmax(230px,.65fr) minmax(250px,1fr) auto; align-items: center; gap: 1rem; background: rgba(9,43,37,.96); border-color: rgba(185,243,107,.3); box-shadow: 0 20px 60px rgba(0,0,0,.3); backdrop-filter: blur(18px); }
.fabric-estimate-card > div:first-child { display: grid; }
.fabric-estimate-card strong { color: var(--brand); font-family: var(--font-heading); font-size: 1.9rem; line-height: 1.1; }
.fabric-estimate-card small, .fabric-estimate-card p { margin: 0; color: var(--muted); font-size: .72rem; }
.fabric-estimate-breakdown { color: #dbe7e2; font-size: .78rem; }
.booking-submit-actions { display: flex; justify-content: flex-end; gap: .7rem; }
.fabric-pricing-intro { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.fabric-pricing-intro > div { display: grid; }
.fabric-pricing-intro span, .fabric-pricing-intro p { margin: 0; color: var(--muted); font-size: .78rem; }
.fabric-price-form, .custom-fabric-form { margin-top: 1rem !important; }
.fabric-price-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
.fabric-price-card { padding: .9rem; display: grid; gap: .75rem; background: rgba(233,240,233,.045); border: 1px solid var(--line); border-radius: 14px; }
.fabric-price-card.custom { border-color: rgba(185,243,107,.3); }
.fabric-price-card.is-disabled { opacity: .63; }
.fabric-price-card-heading { display: flex; align-items: start; justify-content: space-between; gap: .8rem; }
.fabric-price-card-heading > div { min-width: 0; display: grid; }
.fabric-price-card-heading small { color: var(--muted); font-size: .69rem; }
.toggle-field { display: flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .68rem; cursor: pointer; }
.toggle-field input { accent-color: var(--brand-strong); }
.fabric-rate-field { display: flex; align-items: center; justify-content: space-between; gap: .8rem; color: var(--muted); font-size: .72rem; }
.currency-input { display: flex; align-items: center; overflow: hidden; background: rgba(6,31,26,.54); border: 1px solid var(--line); border-radius: 10px; }
.currency-input b { padding-left: .55rem; color: var(--aqua); font-size: .72rem; }
.currency-input input { width: 105px; padding: .48rem .55rem .48rem .25rem; color: var(--ink); background: transparent; border: 0; outline: 0; }
.fabric-price-card > p { min-height: 2.2em; margin: 0; color: #91a79f; font-size: .66rem; }
.fabric-custom-heading { margin-top: 1.5rem; }

.footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { width: min(1440px,100%); margin: 0 auto; padding: 1.5rem clamp(1rem,3vw,2.5rem); display: flex; justify-content: space-between; gap: 1rem; font-size: 0.8rem; }
.footer-inner div { display: flex; gap: 0.6rem; }
.footer strong { color: var(--ink); }

.reveal-ready { opacity: 0; transform: translateY(28px) scale(0.988); transition: opacity 650ms cubic-bezier(.2,.8,.2,1), transform 650ms cubic-bezier(.2,.8,.2,1); transition-delay: var(--reveal-delay, 0ms); }
.reveal-ready.is-visible { opacity: 1; transform: translateY(0) scale(1); }

@keyframes hero-copy-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hero-image-in { from { opacity: 0; transform: translateX(34px) scale(.98); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes hero-image-breathe { from { transform: scale(1.005); } to { transform: scale(1.055); } }
@keyframes floating-note { 0%,100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes bubble-float { 0%,100% { translate: 0 0; scale: 1; } 50% { translate: 9px -16px; scale: 1.05; } }
@keyframes particle-drift-a { from { transform: translate3d(0,0,0) rotate(0deg); } to { transform: translate3d(70px,-52px,0) rotate(18deg); } }
@keyframes particle-drift-b { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-56px,74px,0) scale(1.12); } }
@keyframes particle-drift-c { from { transform: translate3d(0,0,0); } to { transform: translate3d(42px,-88px,0); } }
@keyframes checkout-progress { from { transform: translateX(-15%); } to { transform: translateX(155%); } }
@keyframes cashout-ready-pulse { from { box-shadow: 0 0 0 4px rgba(185,243,107,0.08), 0 10px 28px rgba(185,243,107,0.13); } to { box-shadow: 0 0 0 7px rgba(185,243,107,0.13), 0 15px 38px rgba(185,243,107,0.22); } }
@keyframes fabric-scan-sweep { 0%,100% { top: 16%; opacity: .35; } 50% { top: 82%; opacity: 1; } }
@keyframes fabric-status-breathe { from { background: rgba(245,201,105,.05); } to { background: rgba(245,201,105,.14); } }
@keyframes call-status-pulse { 50% { opacity: .55; transform: scale(.82); } }
@keyframes call-waiting-wave { from { opacity: 1; transform: scale(.55); } to { opacity: 0; transform: scale(2.1); } }
@keyframes incoming-call-ring { 70%,100% { box-shadow: 0 0 0 12px rgba(185,243,107,0); } }
@keyframes incoming-call-in { from { opacity: 0; transform: translateY(-18px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .business-layout, .admin-grid, .gateway-layout, .cashout-layout { grid-template-columns: 1fr; }
  .admin-sidebar, .gateway-side-card, .cashout-assurance { position: static; }
  .hero-enhanced { grid-template-columns: minmax(300px, .85fr) minmax(430px, 1.15fr); gap: 2.5rem; }
  .hero-visual-inner { min-height: 560px; }
  .visual-story { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; padding: 0.6rem 0.8rem; color: var(--ink); background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-weight: 700; }
  .nav-panel { position: absolute; left: 1rem; right: 1rem; top: calc(100% + 0.5rem); display: none; padding: 1rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-md); box-shadow: var(--shadow); }
  .nav-panel.open { display: block; }
  .nav-links, .account-menu { align-items: stretch; flex-direction: column; }
  .nav-item a { width: 100%; }
  .account-menu { margin-top: 0.6rem; padding: 0.9rem 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .logout-form .btn { width: 100%; }
  .hero, .hero-enhanced { grid-template-columns: 1fr; min-height: auto; }
  .hero-enhanced h1 { max-width: 760px; }
  .hero-visual { max-width: 760px; width: 100%; justify-self: center; padding: 1.2rem 1rem 2.5rem 2.5rem; }
  .hero-visual-inner { min-height: 540px; }
  .visual-story { grid-template-columns: 1fr; }
  .visual-story-image { min-height: 460px; }
  .visual-story-image::after { background: linear-gradient(180deg, transparent 72%, rgba(233,240,233,0.45)); }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { min-height: 240px; }
  .call-container { min-height: 720px; grid-template-columns: 1fr; grid-template-rows: minmax(230px, .7fr) minmax(350px, 1.3fr); }
  .local-video-wrapper { min-height: 230px; }
  .chat-layout { min-height: 760px; grid-template-columns: 1fr; grid-template-rows: auto minmax(0,1fr); }
  .chat-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .chat-sidebar-heading { padding: 0.7rem 0.85rem; }
  .chat-contact-list { display: flex; overflow-x: auto; overflow-y: hidden; }
  .chat-contact { min-width: 230px; }
  .chat-panel { min-height: 620px; }
  .fabric-scanner-workspace { grid-template-columns: 1fr; }
  .fabric-scanner-actions { flex-direction: row; flex-wrap: wrap; }
  .fabric-scanner-actions .btn { flex: 1 1 180px; }
  .fabric-estimate-card { grid-template-columns: 1fr 1fr; }
  .fabric-estimate-card > p { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .page-header, .section-heading, .footer-inner, .footer-inner div { align-items: stretch; flex-direction: column; }
  .gateway-overview { grid-template-columns: 1fr; align-items: start; }
  .gateway-status-stack { justify-items: start; }
  .gateway-endpoints div { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.7rem, 15vw, 4rem); }
  .hero-enhanced { padding-top: 3.5rem; }
  .hero-visual { padding: 1rem 0 2.7rem; }
  .hero-visual-inner { min-height: 440px; border-radius: 26px 26px 26px 7px; }
  .hero-proof { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 0.9rem; }
  .hero-proof strong { margin-bottom: 0.6rem; }
  .proof-row { padding: 0.46rem 0; font-size: 0.78rem; }
  .floating-note { display: none; }
  .picture-bubble-one { width: 82px; height: 82px; }
  .visual-story { border-radius: 24px 24px 24px 7px; }
  .visual-story-image { min-height: 350px; }
  .visual-story-copy { padding: 1.5rem; }
  .visual-story-copy h2 { font-size: clamp(2rem, 10vw, 3rem); }
  .ambient-particles span:nth-child(1) { width: 230px; height: 230px; }
  .ambient-particles span:nth-child(2) { width: 160px; height: 160px; }
  .ambient-particles span:nth-child(4) { width: 190px; height: 190px; }
  .card { border-radius: 15px; }
  #map, #shopMap, #customerShopMap, #adminBusinessMap, .leaflet-map-container { min-height: 360px; }
  .call-page-heading { align-items: start; flex-direction: column; }
  .call-status { min-width: 0; }
  .call-participants { grid-template-columns: 1fr; }
  .call-prejoin { min-height: 500px; padding: 2rem 1.25rem; background: linear-gradient(90deg, rgba(12,50,42,0.98), rgba(12,50,42,0.76)), url('../images/laundry-atelier-hero-v1.png') center / cover; }
  .call-join-actions { width: 100%; }
  .call-join-actions .btn { flex: 1 1 160px; }
  .call-container { min-height: 660px; grid-template-rows: 230px minmax(340px, 1fr); }
  .remote-video-grid { grid-template-columns: 1fr; }
  .call-controls { bottom: 0.75rem; }
  .call-btn { min-width: 62px; min-height: 49px; }
  .incoming-call-banner { top: 76px; grid-template-columns: auto minmax(0,1fr) auto; }
  .incoming-call-banner .incoming-call-sound { grid-column: 2; justify-self: start; padding: 0; }
  .incoming-call-banner .incoming-call-dismiss { grid-column: 3; justify-self: end; padding: 0; }
  .chat-shell { margin-top: 0; }
  .chat-layout { min-height: 700px; }
  .chat-panel { min-height: 570px; }
  .chat-messages { min-height: 300px; padding: 0.85rem; }
  .chat-message { max-width: 88%; }
  .chat-panel-heading { padding: 0.72rem; }
  .chat-panel-heading .btn { padding: 0.5rem 0.65rem; }
  .chat-composer { padding: 0.65rem; gap: 0.45rem; }
  .chat-composer .btn { padding-inline: 0.8rem; }
  .local-ai-badge { white-space: normal; }
  .fabric-camera-stage, .fabric-camera-stage video, .fabric-camera-stage > img { min-height: 330px; }
  .fabric-detection-grid, .fabric-price-grid { grid-template-columns: 1fr; }
  .fabric-selection-row { grid-template-columns: auto minmax(0,1fr) 78px; }
  .fabric-selection-rate { grid-column: 2; }
  .fabric-share-field { grid-column: 3; grid-row: 1 / span 2; }
  .fabric-estimate-card { position: static; grid-template-columns: 1fr; }
  .fabric-estimate-card > p { grid-column: auto; }
  .fabric-pricing-intro, .fabric-ai-results-heading { align-items: flex-start; flex-direction: column; }
  .booking-submit-actions { flex-direction: column; }
  .booking-submit-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
  .reveal-ready { opacity: 1; transform: none; }
  .hero-visual-inner { transform: none !important; }
}

@media print {
  .site-header, .footer, .btn, .modal-overlay, .ambient-particles { display: none !important; }
  body, .card { color: #111; background: #fff !important; }
  .container { max-width: none; padding: 0; }
  .card { border: 0; box-shadow: none; }
}
