@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,600&display=swap');

:root {
  --bg-outer: #061021;
  --bg-app: #dbe4f2;
  --bg-card: #f8fafd;
  --bg-card-inner: #eaf0fa;
  --navy-950: #050d1a;
  --navy-900: #0b1e3b;
  --navy-800: #132d56;
  --navy-700: #1d4078;
  --orange-600: #ea580c;
  --orange-500: #ff6b00;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --gold-300: #fde047;
  --ink: #0b1e3b;
  --ink-soft: #24385a;
  --muted: #526685;
  --line: #c4d2e6;
  --danger: #be123c;
  --danger-bg: #fff1f2;
  --success: #047857;
  --success-bg: #ecfdf5;
  --radius-xl: 20px;
  --radius-lg: 15px;
  --radius-md: 11px;
  --shadow-card: 0 6px 20px rgba(11, 30, 59, 0.08);
  --shadow-btn: 0 5px 16px rgba(255, 107, 0, 0.32);
  --shadow-navy: 0 5px 16px rgba(11, 30, 59, 0.24);
  --shell-max: 460px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-padding-bottom: 130px;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-outer);
  color: var(--ink);
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select, .sub-form {
  scroll-margin-bottom: 130px;
}

.phone-shell {
  width: min(100vw, var(--shell-max));
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg-app);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.55);
  padding-bottom: 132px;
}

/* Wide desktop enhancement for Shop / Admin operators */
.phone-shell.shell-wide {
  --shell-max: 540px;
}
@media (min-width: 900px) {
  .phone-shell.shell-wide {
    --shell-max: 860px;
  }
}

/* Status Bar & Header Banner */
.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(9px + env(safe-area-inset-top, 0px)) 16px 4px;
  font-size: 11px;
  font-weight: 800;
  color: var(--amber-400);
  letter-spacing: 0.03em;
}

.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 3px 9px;
  border-radius: 99px;
  cursor: pointer;
}
.sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
}
.sync-pill.sync-pending .sync-dot { background: #fbbf24; }
.sync-pill.sync-error .sync-dot { background: #ef4444; }

.app-banner {
  background: linear-gradient(145deg, #07152b 0%, #0d254c 52%, #193c73 100%);
  padding: 0 0 16px;
  border-radius: 0 0 26px 26px;
  color: #fff;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--amber-500);
  box-shadow: 0 10px 26px rgba(7, 19, 38, 0.28);
}

.app-banner::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -60px;
  top: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 158, 0, 0.22) 0%, rgba(255, 107, 0, 0) 70%);
  pointer-events: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 16px 8px;
  position: relative;
  z-index: 2;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff6b00 0%, #f59e0b 100%);
  display: grid;
  place-items: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.4);
  border: 1.5px solid #fde047;
  flex-shrink: 0;
}

.brand-text strong {
  display: block;
  font-size: 15.5px;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: #fff;
}

.brand-text span {
  display: block;
  font-size: 11px;
  color: var(--amber-400);
  font-weight: 700;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chip-btn {
  border: 1.5px solid rgba(251, 191, 36, 0.55);
  background: rgba(255, 122, 0, 0.2);
  color: #fff;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 800;
  padding: 6px 11px;
  border-radius: 99px;
  cursor: pointer;
}

.chip-btn.gold {
  background: linear-gradient(135deg, #ff6b00, #f59e0b);
  border-color: #fde047;
}

.hero-body {
  padding: 2px 16px 4px;
  position: relative;
  z-index: 2;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.42);
  color: var(--gold-300);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 6px;
}

.hero-body h1 {
  font-size: 20px;
  line-height: 1.22;
  font-weight: 900;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero-body h1 span { color: var(--amber-400); }

.hero-body p {
  margin: 0;
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.45;
}

/* KPI Strip */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 16px 0;
  position: relative;
  z-index: 3;
}
.kpi-strip.kpi-4 {
  grid-template-columns: repeat(4, 1fr);
}

.kpi-box {
  background: rgba(11, 30, 59, 0.72);
  border: 1.5px solid rgba(251, 191, 36, 0.32);
  border-radius: 13px;
  padding: 8px 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.kpi-box.active-filter {
  background: linear-gradient(135deg, #ff6b00 0%, #f59e0b 100%);
  border-color: #fde047;
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.38);
}

.kpi-box strong {
  display: block;
  font-size: 16.5px;
  font-weight: 900;
  color: var(--amber-400);
}

.kpi-box.active-filter strong,
.kpi-box.active-filter small { color: #fff; }

.kpi-box small {
  font-size: 10.5px;
  color: #e2e8f0;
  font-weight: 700;
}

/* Content & Tabs */
.content-area {
  padding: 14px 14px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tab-pane {
  display: none;
  flex-direction: column;
  gap: 14px;
  animation: fadeIn 0.16s ease;
}
.tab-pane.active { display: flex; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Service Preset Grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.srv-item {
  background: var(--bg-card);
  border: 2px solid var(--line);
  border-radius: 15px;
  padding: 9px 4px;
  text-align: center;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: all 0.14s ease;
}
.srv-item.selected {
  background: var(--navy-900);
  border-color: var(--orange-500);
}
.srv-item.selected strong { color: var(--amber-400); }
.srv-item.selected small { color: #e2e8f0; }

.srv-icon {
  width: 38px;
  height: 38px;
  margin: 0 auto 5px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border: 1px solid #fed7aa;
}

.srv-item strong {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--navy-900);
}
.srv-item small {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--orange-600);
  margin-top: 1px;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 15px;
  box-shadow: var(--shadow-card);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 11px;
  padding-bottom: 9px;
  border-bottom: 1.5px solid var(--line);
  flex-wrap: wrap;
}

.card-head h2 {
  font-size: 15px;
  font-weight: 900;
  color: var(--navy-900);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Forms */
label {
  display: block;
  font-weight: 800;
  font-size: 12.5px;
  color: var(--navy-900);
  margin: 10px 0 5px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.field-grid label { margin: 0; }
@media (max-width: 420px) {
  .field-grid.stack-xs { grid-template-columns: 1fr; }
}

textarea, input[type="text"], input[type="tel"], input[type="number"], input[type="date"], select {
  display: block;
  width: 100%;
  border: 1.5px solid #b6c6de;
  border-radius: 12px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-900);
  background: #ffffff;
  outline: none;
  margin-top: 4px;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

textarea:focus, input:focus, select:focus {
  border-color: var(--orange-500);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.16);
}

textarea { min-height: 70px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #8da0bc; font-weight: 500; }

.hint {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
}

.fee-preview {
  margin-top: 8px;
  padding: 8px 11px;
  border-radius: 10px;
  background: #eef4fc;
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.upload-box {
  border: 2px dashed var(--navy-700);
  background: var(--bg-card-inner);
  border-radius: 13px;
  padding: 11px;
  text-align: center;
  cursor: pointer;
  margin-top: 5px;
}

.upload-box strong { color: var(--navy-900); font-size: 12.5px; }
.upload-box input[type="file"] {
  display: block;
  width: 100%;
  font-size: 12px;
  margin-top: 6px;
  color: var(--ink-soft);
}

/* Media Gallery & Lightbox */
.gallery-block { margin: 8px 0; }
.gallery-title {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--navy-800);
  margin-bottom: 5px;
}
.media-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.media-tile {
  position: relative;
  width: 82px;
  height: 82px;
  border-radius: 11px;
  overflow: hidden;
  border: 2px solid #b8c9e3;
  padding: 0;
  background: #0b1e3b;
  cursor: pointer;
}
.media-tile img, .media-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  background: rgba(5, 13, 26, 0.82);
  color: #fde047;
  font-size: 10px;
  font-weight: 800;
  border-radius: 6px;
  padding: 2px 4px;
  text-align: center;
}
.media-thumbs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.preview-thumb-item {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid var(--navy-700);
}
.preview-thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(190, 18, 60, 0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
}

.attention-banner {
  background: linear-gradient(135deg, #ff5e00 0%, #f59e0b 100%);
  color: #fff;
  border: 2px solid #fde047;
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 8px 22px rgba(255, 107, 0, 0.34);
  cursor: pointer;
}
.attention-banner strong { display: block; font-size: 13.5px; font-weight: 900; }
.attention-banner small { display: block; font-size: 11.5px; opacity: 0.95; }
.attention-cta {
  flex: none;
  background: #0b1e3b;
  color: #fde047;
  font-size: 11.5px;
  font-weight: 900;
  padding: 7px 11px;
  border-radius: 10px;
  white-space: nowrap;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.q-chip {
  background: #eef4fc;
  color: var(--navy-800);
  border: 1px solid #b6c6de;
  border-radius: 99px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
}
.q-chip:hover { background: #dbe8fa; border-color: var(--navy-700); }

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 9px;
}
.ba-col {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 8px;
}
.ba-col h5 {
  margin: 0 0 6px;
  font-size: 11.5px;
  font-weight: 900;
  color: var(--navy-900);
}
.ba-col.ba-after {
  border-color: #10b981;
  background: #ecfdf5;
}
.ba-col.ba-after h5 { color: #065f46; }

.contact-pill-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #eef4fc;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 8px 10px;
  font-size: 12px;
  margin-bottom: 8px;
}

.action-hint-tag {
  display: inline-block;
  margin-top: 3px;
  font-size: 10.5px;
  font-weight: 800;
  color: #c2410c;
  background: #ffedd5;
  padding: 2px 7px;
  border-radius: 6px;
}
.thumb-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--navy-900);
  color: var(--amber-400);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 8px;
}

.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 22, 0.88);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.lightbox-backdrop[hidden] { display: none; }
.lightbox-dialog {
  position: relative;
  max-width: min(94vw, 720px);
  max-height: 90vh;
  background: #0b1e3b;
  border: 2px solid var(--amber-400);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--orange-500);
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  border: 2px solid #fff;
  cursor: pointer;
}
.lightbox-media {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 10px;
  display: block;
}
.lightbox-cap {
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.modal-sheet {
  width: min(94vw, 520px);
  max-height: 88vh;
  overflow-y: auto;
  background: #ffffff;
  color: var(--ink);
  border: 2px solid var(--amber-500);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1.5px solid var(--line);
}
.modal-head h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 900;
  color: var(--navy-900);
}
.modal-body { font-size: 13px; line-height: 1.55; }
.modal-body ul { padding-left: 18px; margin: 6px 0; }
.modal-body li { margin-bottom: 4px; }
.honeypot-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Buttons */
button {
  touch-action: manipulation;
  font: inherit;
  cursor: pointer;
  border: 0;
  transition: transform 0.12s ease, filter 0.12s ease;
}
button:active { transform: scale(0.97); }
button:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-orange {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  background: linear-gradient(135deg, #ff5e00 0%, #ff9500 60%, #ffb700 100%);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
  border: 1.5px solid #fde047;
  border-radius: 13px;
  font-weight: 900;
  font-size: 13.5px;
  padding: 11px 14px;
  box-shadow: var(--shadow-btn);
  margin-top: 8px;
}

.btn-navy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  background: linear-gradient(135deg, #0b1e3b 0%, #17386b 100%);
  color: var(--amber-400);
  border: 1.5px solid #2e5694;
  border-radius: 13px;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 14px;
  box-shadow: var(--shadow-navy);
  margin-top: 8px;
}

.btn-navy-sm {
  background: var(--navy-900);
  color: var(--amber-400);
  border: 1px solid var(--navy-700);
  font-weight: 800;
  font-size: 11.5px;
  padding: 6px 11px;
  border-radius: 9px;
}

.btn-outline {
  background: #ffffff;
  color: var(--navy-900);
  border: 1.5px solid #b6c6de;
  font-weight: 800;
  font-size: 12.5px;
  padding: 10px 12px;
  border-radius: 12px;
  width: 100%;
}

.btn-outline-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1.5px solid #fda4af;
  font-weight: 800;
  font-size: 12.5px;
  padding: 10px 12px;
  border-radius: 12px;
  width: 100%;
}

.btn-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  border: 1.5px solid #6ee7b7;
  border-radius: 13px;
  font-weight: 900;
  font-size: 13px;
  padding: 10px 14px;
  margin-top: 8px;
}

.btn-gmaps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #ffffff;
  color: #0b1e3b;
  border: 2px solid #4285F4;
  border-radius: 13px;
  font-weight: 900;
  font-size: 13px;
  padding: 10px 14px;
  margin-top: 9px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.18);
  transition: transform 0.12s ease, background 0.14s ease;
}
.btn-gmaps:hover { background: #eff6ff; }
.btn-gmaps:active { transform: scale(0.97); }
.btn-gmaps svg { width: 20px; height: 20px; flex-shrink: 0; }

.actions-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.actions-row > * {
  flex: 1;
  min-width: 128px;
  margin-top: 0 !important;
}

/* Filter Pills */
.filter-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 8px;
}
.pill-btn {
  flex: none;
  background: #e6eef9;
  color: var(--navy-800);
  border: 1.5px solid var(--line);
  border-radius: 99px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 800;
}
.pill-btn.active {
  background: var(--navy-900);
  color: var(--amber-400);
  border-color: var(--amber-500);
}

/* Order Cards */
.order-card {
  background: #ffffff;
  border: 2px solid #c2d1e8;
  border-radius: 16px;
  margin-top: 12px;
  box-shadow: 0 5px 15px rgba(11, 30, 59, 0.06);
  overflow: hidden;
}
.order-card:first-child { margin-top: 0; }
.order-card.order-open { border-color: var(--navy-700); }

.order-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 13px;
  cursor: pointer;
  background: #fff;
}
.order-summary:hover { background: #f8fbff; }

.order-summary-main { min-width: 0; flex: 1; }
.order-summary-main strong {
  display: block;
  font-size: 13px;
  font-weight: 900;
  color: var(--navy-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.order-summary-main small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.order-chevron {
  flex: none;
  font-size: 16px;
  color: var(--muted);
  transition: transform 0.15s ease;
}
.order-card.order-open .order-chevron { transform: rotate(180deg); }

.order-detail {
  padding: 0 13px 14px;
  border-top: 1.5px dashed var(--line);
}
.order-detail[hidden] { display: none; }

.order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 10px 0 6px;
  flex-wrap: wrap;
}

.order-id {
  font-weight: 900;
  font-size: 13.5px;
  color: var(--navy-900);
  background: #e9eff8;
  padding: 4px 9px;
  border-radius: 8px;
  border: 1px solid #c5d2e6;
}

/* Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.st-new { background: var(--navy-900); color: var(--amber-400); }
.st-quote { background: #ffedd5; color: #c2410c; border: 1px solid #fdba74; }
.st-work { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }
.st-pay { background: #fef3c7; color: #b45309; border: 1px solid #fcd34d; }
.st-done { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.st-danger { background: #ffe4e6; color: #be123c; border: 1px solid #fda4af; }

/* Stepper */
.stepper-wrap { margin: 8px 0 10px; }
.stepper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}
.step-col { text-align: center; }
.step-col span {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--muted);
  margin-top: 3px;
}
.step-bar { height: 6px; border-radius: 99px; background: #dce5f2; }
.step-bar.on { background: var(--navy-800); }
.step-bar.current { background: linear-gradient(90deg, #ff6b00, #fbbf24); }

.order-desc {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy-900);
  margin: 6px 0;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 0 9px;
  border-bottom: 1px dashed var(--line);
}
.meta-tag {
  background: var(--bg-card-inner);
  padding: 3px 8px;
  border-radius: 7px;
  color: var(--navy-800);
  border: 1px solid var(--line);
}
.meta-tag a { color: var(--orange-600); text-decoration: none; font-weight: 800; }

/* Info / Quote / Alert Boxes */
.navy-box {
  background: linear-gradient(135deg, #0b1e3b 0%, #15325e 100%);
  border: 1.5px solid #2b4c7e;
  color: #fff;
  border-radius: 13px;
  padding: 12px;
  font-size: 12.5px;
  margin-top: 9px;
}
.navy-box b { color: var(--amber-400); }

.amber-box {
  background: #fffbeb;
  border: 1.5px solid #f59e0b;
  color: #78350f;
  border-radius: 13px;
  padding: 12px;
  font-size: 12.5px;
  margin-top: 9px;
}

.danger-box {
  background: var(--danger-bg);
  border: 1.5px solid #fda4af;
  color: #881337;
  border-radius: 13px;
  padding: 12px;
  font-size: 12.5px;
  margin-top: 9px;
}

.success-box {
  background: var(--success-bg);
  border: 1.5px solid #6ee7b7;
  color: #065f46;
  border-radius: 13px;
  padding: 12px;
  font-size: 12.5px;
  margin-top: 9px;
}

.sub-form {
  background: var(--bg-card-inner);
  border: 1.5px solid #b8c9e3;
  border-radius: 13px;
  padding: 12px;
  margin-top: 9px;
}
.sub-form h4 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 900;
  color: var(--navy-900);
}

/* Quote breakdown table */
.quote-table {
  width: 100%;
  border-collapse: collapse;
  margin: 7px 0;
  font-size: 12px;
}
.quote-table td {
  padding: 4px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
}
.quote-table td:last-child { text-align: right; font-weight: 800; white-space: nowrap; }
.quote-table tr.total-row td {
  border-bottom: 0;
  padding-top: 7px;
  font-size: 14px;
  font-weight: 900;
  color: var(--amber-400);
}

/* Checkboxes & Stage Pills */
.check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 0 0 6px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.check-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--orange-500);
  margin: 0 7px 0 0;
  vertical-align: middle;
}

.stage-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 10px;
}
.stage-pill {
  background: #fff;
  color: var(--navy-800);
  border: 1.5px solid var(--line);
  border-radius: 99px;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 800;
}
.stage-pill.active {
  background: linear-gradient(135deg, #ff6b00, #f59e0b);
  color: #fff;
  border-color: #fde047;
}

/* VietQR Card */
.qr-card {
  background: linear-gradient(180deg, #0b1e3b 0%, #122b52 100%);
  border: 2px solid var(--amber-500);
  color: #fff;
  border-radius: 15px;
  padding: 13px;
  margin-top: 9px;
}
.qr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.qr-badge {
  background: linear-gradient(135deg, #ff6b00, #f59e0b);
  color: #fff;
  font-size: 10.5px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 6px;
}
.qr-img-wrap {
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  margin: 0 auto 10px;
  max-width: 240px;
  text-align: center;
}
.qr-img-wrap img { width: 100%; height: auto; display: block; border-radius: 8px; }
.qr-rows { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.qr-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 9px;
  border-radius: 8px;
}
.mini-copy {
  background: var(--amber-500);
  color: #0b1e3b;
  font-size: 10.5px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 6px;
  margin-left: 5px;
}

/* Chat */
.chat-box {
  margin-top: 10px;
  background: #eef3fa;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 10px 11px;
}
.chat-title {
  font-size: 11.5px;
  font-weight: 900;
  color: var(--navy-900);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
}
.chat-list {
  max-height: 230px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 8px 0;
}
.chat-msg {
  font-size: 12.5px;
  padding: 8px 10px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid var(--line);
  max-width: 92%;
  align-self: flex-start;
}
.chat-msg.self {
  background: var(--navy-900);
  color: #fff;
  border-color: var(--navy-700);
  align-self: flex-end;
}
.chat-msg small {
  display: block;
  font-size: 10px;
  opacity: 0.72;
  margin-top: 3px;
}
.chat-input-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.chat-input-row input[type="text"] {
  flex: 1;
  margin-top: 0;
  padding: 8px 10px;
  font-size: 13px;
}
.chat-input-row button {
  background: linear-gradient(135deg, #ff6b00, #f59e0b);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  padding: 9px 13px;
  border-radius: 10px;
  white-space: nowrap;
}

/* Star Rating */
.star-row {
  display: flex;
  gap: 6px;
  margin: 6px 0;
}
.star-btn {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 15px;
}
.star-btn.active {
  background: #fef3c7;
  border-color: #f59e0b;
}

/* Feature List Items */
.feature-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 11px 12px;
  margin-bottom: 9px;
  flex-wrap: wrap;
}
.feature-item:last-child { margin-bottom: 0; }
.feat-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 180px; }
.feat-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--navy-900);
  color: var(--amber-400);
  display: grid;
  place-items: center;
  font-size: 19px;
  flex-shrink: 0;
}
.feat-info strong { display: block; font-size: 13.5px; font-weight: 800; color: var(--navy-900); }
.feat-info small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.stat-tile {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  padding: 11px 12px;
}
.stat-tile small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; }
.stat-tile strong { display: block; font-size: 17px; font-weight: 900; color: var(--navy-900); margin-top: 2px; }

/* Timeline */
.timeline {
  margin-top: 10px;
  background: #eef3fa;
  border-radius: 12px;
  padding: 9px 11px;
  border: 1px solid var(--line);
}
.timeline summary { cursor: pointer; list-style: none; }
.timeline summary::-webkit-details-marker { display: none; }
.timeline-title {
  font-size: 11px;
  font-weight: 900;
  color: var(--navy-800);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: flex;
  justify-content: space-between;
}
.tl-list { margin-top: 7px; }
.tl-item {
  font-size: 11.5px;
  color: var(--ink-soft);
  padding: 4px 0;
  border-bottom: 1px dashed #cbd5e1;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.tl-item:last-child { border-bottom: 0; }
.tl-time { color: var(--muted); font-size: 10.5px; white-space: nowrap; }

.muted-sm { font-size: 12px; color: var(--muted); text-align: center; padding: 12px 6px; }

/* Toast */
.toast-msg {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 420px);
  background: var(--navy-900);
  color: #fff;
  border: 2px solid var(--amber-400);
  border-radius: 13px;
  padding: 11px 15px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.36);
  z-index: 1500;
  display: none;
  align-items: center;
  gap: 8px;
}
.toast-msg.toast-error { background: #881337; border-color: #fda4af; }
.toast-msg.toast-success { background: #065f46; border-color: #6ee7b7; }

/* 5-Tab Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100vw, var(--shell-max));
  background: linear-gradient(180deg, #091933 0%, #050e1d 100%);
  border-top: 2px solid var(--amber-500);
  border-radius: 20px 20px 0 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  padding: 7px 6px calc(9px + env(safe-area-inset-bottom, 0px));
  z-index: 100;
  box-shadow: 0 -8px 26px rgba(5, 13, 26, 0.5);
}

.nav-item {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #94a3b8;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  padding: 6px 2px 5px;
  border-radius: 13px;
  cursor: pointer;
  position: relative;
}

.nav-item .nav-ico {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: grid;
  place-items: center;
}
.nav-item svg { width: 19px; height: 19px; stroke-width: 2.2; }
.nav-item span { white-space: nowrap; line-height: 1.1; }
.nav-item.active {
  color: #fff;
  font-weight: 900;
  background: rgba(255, 122, 0, 0.15);
  border-color: rgba(251, 191, 36, 0.36);
}
.nav-item.active .nav-ico {
  background: linear-gradient(135deg, #ff5e00 0%, #f59e0b 100%);
  color: #fff;
  box-shadow: 0 4px 10px rgba(255, 107, 0, 0.42);
}
.nav-item.active span { color: var(--amber-400); }

.nav-badge {
  position: absolute;
  top: 2px;
  right: 8px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  min-width: 16px;
  height: 16px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 1.5px solid #091933;
}
.nav-badge:empty, .nav-badge[data-zero="true"] { display: none; }

@media (max-width: 380px) {
  .content-area { padding: 10px 10px 24px; }
  .card { padding: 12px; }
  .service-grid { gap: 5px; }
  .nav-item { font-size: 9.5px; }
}
