@import url('./lib/vazirmatn/Vazirmatn-font-face.css');

:root {
  color-scheme: light;
  --ink: #12324f;
  --primary: #1e6fb8;
  --primary-dark: #154a7c;
  --primary-mid: #3d90d0;
  --primary-soft: #e6f2fb;
  --surface: #f3f7fb;
  --card: #ffffff;
  --text: #12324f;
  --muted: #5b738b;
  --border: #d5e4f0;
  --blue: #1e6fb8;
  --accent: #1aa38a;
  --accent-dark: #14806c;
  --amber: #a36700;
  --danger: #ba1a1a;
  --hero-grad: linear-gradient(160deg, #12324f 0%, #154a7c 40%, #1e6fb8 74%, #4aa0dc 100%);
  --banner-grad: linear-gradient(90deg, #d4ebf8 0%, #c3e2f6 48%, #e7f4fc 100%);
  --nav-bg: #fffffff2;
  --float-bg: color-mix(in srgb, #fff 92%, transparent);
  --input-bg: #ffffff;
  /* ارتفاع تقریبی نوار پایین + دکمه + ؛ JS بعد از رندر دقیق می‌کند */
  --bottom-nav-clearance: calc(140px + env(safe-area-inset-bottom, 0px));
  font-family: Vazirmatn, Tahoma, sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e8eef6;
  --primary: #5ba3e0;
  --primary-dark: #8ec5f0;
  --primary-mid: #4a92cf;
  --primary-soft: #1a2f45;
  --surface: #0f1722;
  --card: #1a2433;
  --text: #e8eef6;
  --muted: #9bb0c4;
  --border: #2a3a4d;
  --blue: #5ba3e0;
  --accent: #3dcfb0;
  --accent-dark: #2a9f88;
  --amber: #f0b45a;
  --danger: #f07178;
  --hero-grad: linear-gradient(160deg, #0b1220 0%, #132338 40%, #1a3a5c 74%, #245a86 100%);
  --banner-grad: linear-gradient(90deg, #1a2f45 0%, #1e3a55 48%, #243f5a 100%);
  --nav-bg: #152032f2;
  --float-bg: color-mix(in srgb, #152032 92%, transparent);
  --input-bg: #152032;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-width: 320px;
  background: var(--surface);
  color: var(--text);
  font-family: Vazirmatn, Tahoma, sans-serif;
}
button, input, select, textarea { font: inherit; font-family: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100dvh; display: flex; justify-content: center; }
.screen { width: min(100%, 620px); min-height: 100dvh; padding: 24px 20px var(--bottom-nav-clearance); }
.form-screen { padding-top: 0; }
.float-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  direction: ltr;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 -20px 16px;
  padding: calc(8px + env(safe-area-inset-top)) 8px 8px;
  background: color-mix(in srgb, #fff 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.float-bar strong {
  flex: 1;
  direction: rtl;
  font-size: 15px;
  text-align: right;
  padding-right: 8px;
}
.float-actions { display: flex; align-items: center; gap: 0; flex: 0 0 auto; }
.float-ico {
  width: 48px;
  height: 48px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #edf3f8;
  color: var(--text);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}
.float-ico .ui-icon { display: block; }
.float-ico.back-ico { background: var(--primary-soft); color: var(--primary-dark); }
.float-ico.exit { color: var(--muted); background: #f3f5f7; }
.site-link { color: var(--primary); font-weight: 800; text-decoration: none; direction: ltr; }
.support-case-chip {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f3f8fd;
  border: 1px solid #d9e8f4;
  font-size: 13px;
  color: var(--text);
}
.support-case-chip strong { color: var(--ink); }
.install-app-card { text-align: right; gap: 10px; }
.install-app-card .btn { width: 100%; }
.install-app-card .help-block { padding-top: 4px; }
.install-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
  border-radius: 16px;
  background: var(--primary-soft);
}
.install-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 12px 12px;
  padding: 8px 10px 8px 8px;
  border-radius: 16px;
  background: #1c1c1e;
  color: #fff;
  box-shadow: 0 8px 20px #0003;
}
.install-top .brand-logo.install-mark {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.install-top .brand-logo.install-mark img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}
.install-top-txt { flex: 1; min-width: 0; text-align: right; }
.install-top-txt strong { display: block; font-size: 13px; font-weight: 800; line-height: 1.4; }
.install-top-txt small { display: block; margin-top: 2px; font-size: 11px; color: #c8c8cc; direction: ltr; text-align: right; }
.install-go {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: #3b82f6;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.login-screen > .install-top { margin-top: 12px; }
.install-banner strong { display: block; font-size: 14px; }
.install-banner p { margin: 4px 0 0; font-size: 12px; color: var(--muted); line-height: 1.7; }
.install-banner .btn { flex: 0 0 auto; min-height: 40px; padding: 8px 14px; }
.install-steps { margin: 8px 0 0; padding: 0 18px 0 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.install-steps li { margin: 0 0 6px; }
.install-card { text-align: right; }
.screen-install {
  padding-bottom: calc(var(--bottom-nav-clearance) + 28px);
}
.install-hub {
  gap: 10px;
  text-align: right;
}
.install-hub-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--ink);
}
.install-hub-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}
.install-hub-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
}
.install-hub-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--primary) 18%, #e8eef5);
}
.install-hub .btn {
  width: 100%;
}
.install-hub .btn[disabled],
.install-hub .btn:disabled {
  opacity: .62;
  cursor: default;
  pointer-events: none;
}
.install-qr-card {
  align-items: center;
  text-align: center;
}
.install-qr-card strong {
  align-self: stretch;
  text-align: right;
}
.install-qr {
  display: block;
  width: min(100%, 148px);
  height: auto;
  aspect-ratio: 1;
  margin: 4px auto;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line, #d7e4f2);
  border-radius: 14px;
}
@media (min-width: 700px) {
  .install-qr { width: min(100%, 220px); }
}
.coupon-code { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: .06em; color: var(--primary-dark); word-break: break-all; }
.coupon-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.coupon-row .coupon-code { flex: 1; min-width: 0; font-size: 16px; }
.btn-copy-sm { width: auto !important; padding: 8px 14px; font-size: 13px; flex-shrink: 0; }
.discount-card { gap: 8px; }
.discount-card.is-done { opacity: .88; }
.discount-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.discount-head strong { font-size: 15px; line-height: 1.6; }
.discount-hint { margin: 0; font-size: 13px; line-height: 1.7; }
.discount-amount { margin: 0; font-size: 15px; font-weight: 800; color: var(--ink); }
.discount-meta { margin: 0; font-size: 12px; }
.discount-foot { margin: 0; font-size: 13px; line-height: 1.8; }
.discount-guide {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #eef5fb;
  border: 1px solid #d9e8f4;
  text-align: right;
  direction: rtl;
}
.discount-guide-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.discount-guide-ico {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--primary);
}
.discount-guide-head strong {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.5;
}
.discount-guide-body:not(.is-open) .discount-guide-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.discount-guide-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.85;
  color: var(--muted);
  white-space: pre-line;
}
.discount-guide-more {
  margin-top: 4px;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}
.invite-stats { display: grid; gap: 6px; width: 100%; text-align: center; font-size: 13px; color: var(--text); }
.invite-stats strong { font-weight: 800; color: var(--ink); }
.invite-link { font-size: 12px; word-break: break-all; margin: 0 !important; }
.invite-note { font-size: 13px !important; line-height: 1.8 !important; }
.invite-steps {
  margin: 0;
  padding: 0 18px 0 0;
  width: 100%;
  text-align: right;
  color: var(--text);
  font-size: 13px;
  line-height: 1.9;
}
.invite-steps li { margin: 0 0 2px; }
.invite-remain { margin: 0 !important; font-size: 13px !important; font-weight: 700; color: var(--primary-dark) !important; }
.invite-remain.warn { color: var(--amber) !important; }
.invite-code-box {
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f5f8fc;
  border: 1px dashed var(--border);
  text-align: right;
}
.invite-code-label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.invite-history { margin-top: 14px; gap: 10px; text-align: right; }
.invite-hist-row { padding: 8px 0; border-bottom: 1px solid var(--border); }
.invite-hist-row:last-child { border-bottom: 0; padding-bottom: 0; }
.invite-hist-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.invite-hist-name { font-weight: 800; font-size: 14px; color: var(--ink); }
.invite-hist-meta { margin: 4px 0 0; font-size: 12px; }
.invite-hist-line { margin: 4px 0 0; font-size: 13px; color: var(--text); line-height: 1.7; text-align: right; }
.invite-hist-line strong { font-weight: 800; color: var(--ink); }
.screen-invite { padding-bottom: calc(var(--bottom-nav-clearance) + 24px); }
.invite-share-backdrop { align-items: end; place-items: end center; padding: 0; }
.invite-share-sheet {
  width: min(100%, 620px);
  padding: 14px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  border-radius: 22px 22px 0 0;
  background: #fff;
  box-shadow: 0 -10px 30px #0b1c3020;
  display: grid;
  gap: 10px;
  text-align: right;
}
.invite-share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.invite-share-sheet .btn { width: 100%; min-height: 48px; text-decoration: none; display: grid; place-items: center; }
.coupon-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.coupon-chip {
  border: 1px dashed var(--primary);
  background: #fff;
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
}
.coupon-chip.on { background: var(--primary); color: #fff; border-style: solid; }
.landing-screen { padding-top: 18px; }
.login-screen { padding: 0; background: #fff; display: flex; flex-direction: column; }
.login-top { padding: 28px 24px 8px; }
.brand-logo.login { display: block; width: fit-content; }
.brand-logo.login img { width: auto; height: 88px; max-width: 240px; object-fit: contain; display: block; }
.login-body { padding: 8px 24px 40px; flex: 1; }
.login-body h1 { font-size: 22px; font-weight: 800; margin: 10px 0 8px; line-height: 1.7; }
.login-body > .muted { margin-bottom: 28px; }
.login-body form .btn.primary { width: 100%; min-height: 54px; padding: 14px 20px; font-size: 16px; border-radius: 14px; box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 24%, transparent); }
.login-body input { min-height: 54px; border-radius: 14px; }
.login-links { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px solid #edf1f5; }
.login-links .link-btn { color: var(--muted); }
.sheet-handle { width: 42px; height: 5px; margin: 0 auto 26px; border-radius: 99px; background: #dbe4ef; }
.sheet-title { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
.sheet-title h2 { margin-bottom: 4px; }
.otp-screen { padding: 0; background: #f6f9fd; }
.otp-hero { position: relative; min-height: 190px; padding: 22px 28px; color: white; background: var(--hero-grad); border-radius: 0 0 28px 28px; }
.otp-hero span { display: block; margin-top: 58px; color: #d7e9ff; font-size: 13px; }
.otp-hero h1 { color: white; font-size: 25px; margin: 58px 0 0; }
.cancel-banner {
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid #f0b4b4;
  background: #fff1f1;
  border-radius: 16px;
}
.cancel-banner strong { display: block; color: var(--danger); font-size: 15px; margin-bottom: 8px; }
.cancel-banner textarea {
  width: 100%;
  margin-bottom: 10px;
  min-height: 72px;
  border: 1px solid #f0b4b4;
  border-radius: 12px;
  padding: 10px 12px;
  resize: vertical;
}
.cancel-sheet { margin: 0; border: 1px solid #f0b4b4; background: #fff7f7; }
.cancel-sheet .row-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cancel-wrap { margin: 18px 0 8px; text-align: center; }
.btn-cancel-link {
  display: inline-block;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-cancel-link:hover,
.btn-cancel-link:focus-visible { color: var(--danger); }
.coupon-card { margin: 0 0 12px; }
.coupon-card > strong { font-size: 15px; }
.detail-top { margin-bottom: 12px; }
.dossier-card { margin-bottom: 12px; padding: 16px; }
.dossier-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dossier-head h3 { margin: 0; font-size: 18px; line-height: 1.5; }
.dossier-line { margin: 6px 0 0; display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.dossier-fault { margin: 8px 0 0; font-size: 14px; line-height: 1.7; color: var(--text); }
.dossier-id { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.tech-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.tech-inline .tech-photo { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; }
.tech-inline .tech-photo.fallback {
  display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-dark); font-weight: 800;
}
.tech-inline .muted { display: block; font-size: 11px; margin-bottom: 2px; }
.detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}
.detail-actions.cols-1 { grid-template-columns: 1fr; }
.detail-actions.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.action-tile {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 10px 6px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.action-tile em { font-style: normal; font-size: 11px; font-weight: 800; }
.action-ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary-dark);
}
.action-tile.danger .action-ico { background: #ffe8e8; color: var(--danger); }
.detail-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  margin: 0 0 10px;
  padding: 0 14px 12px;
}
.detail-card > summary {
  list-style: none;
  cursor: pointer;
  font-weight: 800;
  padding: 14px 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.detail-card > summary::-webkit-details-marker { display: none; }
.detail-card > summary::after {
  content: '▾';
  color: var(--muted);
  font-size: 12px;
  transition: transform .15s ease;
}
.detail-card:not([open]) > summary::after { transform: rotate(90deg); }
.detail-card .stack.tight,
.stack.tight { gap: 8px; }
.detail-card .empty.tight { padding: 8px 0; }
.detail-card .desc-block { margin: 4px 0 0; white-space: pre-line; }
.tech-card.flat { display: flex; align-items: center; gap: 12px; padding: 4px 0 0; box-shadow: none; border: 0; background: transparent; }
.status-now {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 4px 0 2px;
}
.status-now-dot {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
  animation: pulse-dot 1.1s ease-in-out infinite;
}
.status-now strong { display: block; color: var(--primary-dark); }
.status-now .muted { margin: 4px 0 0; }
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.18); opacity: .72; }
}
.success-actions { display: grid; gap: 8px; width: 100%; }
.success-actions .btn { width: 100%; }
.coupon-inline { width: 100%; margin-top: 4px; }
.reorder-btn { width: 100%; margin: 0 0 16px; }
.addr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.req-star { color: var(--danger); margin-right: 2px; font-weight: 800; }
.opt-hint { color: var(--muted); font-weight: 600; font-size: 12px; }
.case-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 0 0 16px;
  padding: 12px 10px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
}
.case-step {
  display: grid;
  justify-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.case-step span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  background: #eef3f8;
}
.case-step em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}
.case-step.on span,
.case-step.done span { background: var(--primary); color: #fff; }
.case-step.on em { color: var(--primary-dark); }
.case-step-line {
  flex: 0 0 18px;
  height: 2px;
  background: var(--border);
  margin-bottom: 18px;
}
.case-nav-btns { display: flex; gap: 10px; }
.case-nav-btns .btn { flex: 1; }
.photo-hint { margin: 8px 0 0; }
.photo-thumb { position: relative; }
.photo-thumb::after {
  content: '✓';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.btn.cancel-btn {
  width: 100%;
  min-height: 48px;
  border: 0;
  background: var(--danger);
  color: #fff;
  font-weight: 800;
  border-radius: 12px;
}
.hero-back { position: absolute; top: 20px; left: 24px; width: 40px; height: 40px; border: 1px solid #ffffff55; border-radius: 50%; background: #ffffff12; color: white; font-size: 28px; line-height: 1; }
.otp-sheet { position: relative; z-index: 1; min-height: calc(100dvh - 172px); margin-top: -18px; padding: 18px 28px 32px; background: white; border-radius: 28px 28px 0 0; box-shadow: 0 -8px 24px #0b1c3012; }
.otp-label { margin: 8px 0 4px; color: var(--muted); font-size: 14px; }
.otp-phone { display: block; color: var(--primary-dark); font-size: 16px; direction: ltr; text-align: right; margin-bottom: 28px; }
.otp-boxes { position: relative; display: flex; justify-content: space-between; gap: 10px; margin-bottom: 24px; }
.otp-code-input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: transparent;
  -webkit-text-fill-color: transparent;
  caret-color: var(--primary);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 1.35em;
  text-align: left;
  ime-mode: disabled;
}
.otp-code-input:-webkit-autofill,
.otp-code-input:-webkit-autofill:hover,
.otp-code-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--primary);
  transition: background-color 9999s ease-out;
  animation: otpAutofillKick 0.01s;
}
@keyframes otpAutofillKick { from { opacity: 1; } to { opacity: 0.99; } }
.otp-slot {
  flex: 1;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  border: 2px solid var(--border);
  font-size: 25px;
  font-weight: 700;
  color: var(--primary);
  background: #fff;
  pointer-events: none;
}
.otp-slot.filled,
.otp-slot.on { border-color: var(--primary); }
.otp-slot.on { box-shadow: 0 0 0 4px var(--primary-soft); }
.otp-sheet form .btn.primary { width: 100%; min-height: 58px; font-size: 17px; border-radius: 16px; }
.resend-btn { display: block; width: 100%; color: var(--muted); margin-top: 12px; }
.resend-btn strong { color: var(--primary); }
.home-screen {
  padding: 0 0 118px;
  overflow-x: hidden;
  background:
    radial-gradient(120% 70% at 100% -10%, #cfe6f7 0%, transparent 58%),
    radial-gradient(90% 50% at -10% 20%, #e8f4fc 0%, transparent 52%),
    linear-gradient(180deg, #eef6fb 0%, var(--surface) 38%);
}
.ui-icon { display: block; flex: 0 0 auto; }
.home-head { background: color-mix(in srgb, #fff 82%, var(--primary-soft)); border-bottom: 1px solid var(--border); }
.home-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px 8px; }
.home-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.home-brand-name { font-size: 16px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.brand-logo.home-mark img { height: 44px; max-width: 120px; object-fit: contain; display: block; }
.home-phone { direction: ltr; display: inline-flex; align-items: center; gap: 8px; color: var(--primary-dark); text-decoration: none; font-weight: 800; font-size: 14px; background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 16%, transparent); border-radius: 999px; padding: 4px 12px 4px 4px; line-height: 1; flex: 0 0 auto; }
.home-phone-ico { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; flex: 0 0 28px; }
.home-phone-ico .ui-icon { color: #fff; }
.home-promo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--banner-grad); }
.promo-slogan { margin: 0; flex: 1; font-weight: 800; font-size: 13px; line-height: 1.7; color: var(--primary-dark); }
.promo-cta { flex: 0 0 auto; border: 0; background: linear-gradient(180deg, var(--primary-mid), var(--primary)); color: #fff; font-weight: 800; border-radius: 12px; padding: 10px 16px; min-height: 44px; white-space: nowrap; box-shadow: 0 6px 14px color-mix(in srgb, var(--primary) 32%, transparent); }
.promo-cta:active { background: var(--primary-dark); }
.home-welcome { margin: 0 0 16px; }
.home-hello { display: block; font-size: 15px; font-weight: 700; color: var(--primary-dark); }
.home-welcome h1 { margin: 0 0 14px; font-size: 26px; line-height: 1.5; color: var(--ink); text-align: right; }
.start-card {
  margin-top: 16px;
  padding: 18px 16px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f3f9ff 0%, #e7f3fd 100%);
  border: 1px solid color-mix(in srgb, var(--primary) 16%, #fff);
  box-shadow: 0 8px 20px #0b1c3010;
}
.start-card h3 { margin: 0 0 14px; font-size: 16px; line-height: 1.7; text-align: center; color: var(--primary-dark); }
.start-steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2px;
  margin: 4px 0 16px;
}
.start-step { display: grid; justify-items: center; gap: 8px; flex: 1; min-width: 0; }
.start-ico {
  position: relative;
  width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff;
  border: 0;
  color: var(--primary);
  box-shadow: 0 8px 20px #1e6fb814;
  overflow: visible;
}
.start-ico img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: invert(32%) sepia(70%) saturate(1800%) hue-rotate(186deg) brightness(92%);
}
.start-ico .ui-icon { width: 30px; height: 30px; stroke-width: 1.7; }
.start-num {
  position: absolute;
  top: -4px;
  left: 4px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800;
  color: #fff; background: var(--primary);
  border: 3px solid #eaf4fd;
  box-shadow: 0 2px 8px #1e6fb833;
}
.start-step em { font-style: normal; font-size: 13px; font-weight: 800; color: var(--ink); text-align: center; line-height: 1.4; }
.start-step.on .start-ico { box-shadow: 0 0 0 3px var(--primary-soft), 0 8px 20px #1e6fb814; }
.start-step-line {
  flex: 0 1 36px;
  align-self: center;
  height: 0;
  margin-top: -18px;
  border-top: 2px dashed #b7d4ee;
  background: none;
}
.start-cta { width: 100%; min-height: 52px; border-radius: 16px; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.start-cta .ui-icon { transform: scaleX(-1); }
.form-screen .start-steps {
  margin: 0 0 16px;
  padding: 14px 8px 12px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f3f9ff 0%, #e7f3fd 100%);
  border: 1px solid color-mix(in srgb, var(--primary) 16%, #fff);
}
.form-screen form.stack { width: 100%; }
.form-screen .card.case-step-pane {
  width: 100%;
  margin: 0 auto;
  text-align: center;
}
.form-screen .card.case-step-pane h3 {
  text-align: center;
  margin-bottom: 16px;
}
.picked-device {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--primary) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, #fff);
  text-align: right;
}
.picked-device strong { font-size: 16px; font-weight: 800; }
.picked-device button {
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.form-screen .card.case-step-pane .form-field,
.form-screen .card.case-step-pane .check-row,
.form-screen .card.case-step-pane .addr-row {
  text-align: right;
}
.form-screen .home-devices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 10px;
}
.form-screen .home-devices .device-item {
  flex: 0 0 22%;
  max-width: 92px;
}
.form-screen .home-devices .device-item.on,
.form-screen .home-devices .device-item.picked {
  background: var(--primary);
  border-radius: 20px;
  padding: 8px 4px 10px;
  box-shadow: 0 8px 16px color-mix(in srgb, var(--primary) 32%, transparent);
}
.form-screen .home-devices .device-item.on .device-icon,
.form-screen .home-devices .device-item.picked .device-icon {
  border-color: #fff;
  background: #fff;
  box-shadow: 0 0 0 2px #fff, 0 0 0 5px color-mix(in srgb, var(--primary) 55%, #fff);
}
.form-screen .home-devices .device-item.on strong,
.form-screen .home-devices .device-item.picked strong {
  color: #fff;
  font-weight: 800;
}
.home-banner {
  margin: 18px -20px 8px;
  width: auto;
  max-width: none;
  border-radius: 0;
  overflow: hidden;
  background: #d7eefb;
  line-height: 0;
}
.home-banner img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}
/* بنر جشنواره — محو در صفحه، بدون کادر خطی */
.autumn-hero {
  position: relative;
  display: block;
  width: 100%;
  margin: 2px 0 8px;
  padding: 18px 8px 16px;
  min-height: 196px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #7a2e0e;
  text-align: right;
  cursor: pointer;
  font: inherit;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}
.autumn-hero-sky {
  position: absolute;
  inset: -6px 8% -10px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 80% at 78% 42%, rgba(255, 176, 72, 0.55), rgba(255, 176, 72, 0) 68%),
    radial-gradient(ellipse 55% 70% at 18% 70%, rgba(226, 92, 40, 0.28), rgba(226, 92, 40, 0) 70%);
  filter: blur(2px);
}
.autumn-maple {
  position: absolute;
  left: 2px;
  top: 52%;
  z-index: 1;
  width: 72px;
  height: 84px;
  margin: 0;
  pointer-events: none;
  transform: translateY(-50%);
  filter: drop-shadow(0 8px 10px rgba(180, 60, 16, 0.22));
  animation: maple-sway 2.8s ease-in-out infinite;
}
.autumn-maple img { display: block; width: 100%; height: 100%; object-fit: contain; }
@keyframes maple-sway {
  0%, 100% { transform: translateY(-50%) rotate(-10deg); }
  50% { transform: translateY(-54%) rotate(8deg); }
}
.autumn-leaves {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.autumn-leaf {
  position: absolute;
  top: -16px;
  width: 11px;
  height: 15px;
  border-radius: 80% 0 80% 0;
  background: linear-gradient(160deg, #f6b24a, #e4572e);
  opacity: 0;
  animation: autumn-fall 5.2s linear infinite;
}
.autumn-leaf.l1 { right: 8%; animation-duration: 4.6s; }
.autumn-leaf.l2 { right: 24%; animation-duration: 5.8s; animation-delay: -1.4s; width: 9px; height: 12px; background: #f0a04a; }
.autumn-leaf.l3 { right: 42%; animation-duration: 4.2s; animation-delay: -2.6s; background: #c2410c; }
.autumn-leaf.l4 { right: 63%; animation-duration: 6s; animation-delay: -0.8s; }
.autumn-leaf.l5 { right: 78%; animation-duration: 4.8s; animation-delay: -3.2s; width: 8px; height: 11px; background: #f6c15a; }
.autumn-leaf.l6 { left: 30%; animation-duration: 5.4s; animation-delay: -2s; background: #d4561e; }
@keyframes autumn-fall {
  0% { transform: translate3d(0, -12px, 0) rotate(0deg); opacity: 0; }
  12% { opacity: 0.9; }
  40% { transform: translate3d(8px, 70px, 0) rotate(70deg); }
  70% { transform: translate3d(-10px, 130px, 0) rotate(150deg); }
  100% { transform: translate3d(6px, 210px, 0) rotate(220deg); opacity: 0.15; }
}
@media (prefers-reduced-motion: reduce) {
  .autumn-maple, .autumn-leaf { animation: none; }
  .autumn-leaf { opacity: 0.6; top: 24%; }
  .autumn-leaf.l2 { top: 58%; }
  .autumn-leaf.l4 { top: 40%; }
}
.autumn-hero-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding-left: 68px;
}
.autumn-kicker {
  margin: 0;
  color: #c2410c;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}
.autumn-hero-title {
  margin: 0;
  color: #9a3412;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
}
.autumn-amount {
  margin: 2px 0 0;
  color: #e11d2e;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.1;
}
.autumn-amount small {
  color: #15803d;
  font-size: 14px;
  font-weight: 900;
}
.autumn-hero-sub,
.autumn-hero-until {
  margin: 0;
  color: #7c4a2d;
  font-size: 12px;
  font-weight: 700;
}
.autumn-hero-code,
.autumn-hero-hint {
  display: inline-block;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
}
.autumn-hero-code b {
  font-family: ui-monospace, Consolas, monospace;
  letter-spacing: .03em;
}
.autumn-hero-cta {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  background: #c2410c;
  color: #fffaf3;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(194, 65, 12, 0.28);
}
.autumn-hero:active .autumn-hero-cta { transform: scale(0.98); }
.autumn-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff1e4;
  border: 1px solid #f0d7bc;
  color: #5c3317;
  font-size: 13px;
  font-weight: 700;
}
.device-item.on .device-icon {
  position: relative;
  overflow: visible;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
  background: color-mix(in srgb, var(--primary) 10%, #fff);
}
.device-item.on strong { color: var(--primary-dark); font-weight: 800; }
.device-item.on .device-icon::after {
  content: '✓';
  position: absolute;
  top: -5px;
  left: -5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}
.home-devices .device-icon img { object-fit: contain; display: block; background: transparent; }
.home-eta { margin: 8px 0 0; font-size: 13px !important; line-height: 1.7; color: var(--muted); }
.home-hero { min-height: 220px; padding: 22px 22px 56px; color: white; background: var(--hero-grad); border-radius: 0 0 30px 30px; text-align: right; }
.home-actions { display: flex; justify-content: flex-start; gap: 8px; direction: ltr; margin-bottom: 28px; }
.home-icon { position: relative; width: 44px; height: 44px; border: 1px solid #ffffff55; border-radius: 50%; background: #ffffff18; color: white; display: grid; place-items: center; padding: 0; }
.home-greeting { color: #d8eaff; display: block; font-size: 15px; }
.home-hero h1 { color: white; font-size: 22px; margin: 6px 0 0; line-height: 1.55; }
.home-hero p { color: #d8eaff; margin: 8px 0 0; }
.photo-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chat-send-row { display: flex; align-items: flex-end; gap: 8px; }
.chat-send-row > .btn { flex: 1; }
.chat-clip { position: relative; flex: 0 0 auto; }
.chat-clip-btn { width: 50px; min-width: 50px; padding: 0; font-size: 22px; }
.chat-clip-menu { position: absolute; bottom: 58px; right: 0; z-index: 30; min-width: 168px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 10px 28px #0b1c3024; padding: 6px; display: grid; gap: 4px; }
.chat-clip-menu[hidden] { display: none !important; }
.chat-clip-menu .chat-file { width: 100%; min-width: 0; justify-content: flex-start; padding: 10px 12px; border-radius: 10px; background: #f8fafc; }
.chat-file { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 1 1 88px; min-width: 88px; }
.chat-file input[type="file"] { position: absolute; inset: 0; width: 100% !important; height: 100% !important; min-height: 48px; margin: 0; padding: 0 !important; border: 0 !important; opacity: 0.02; cursor: pointer; z-index: 3; font-size: 20px; }
.photo-thumb { position: relative; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: #eef3f8; display: block; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb button { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: #0008; color: #fff; }
.photo-preview { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: #0b1c30cc; }
.photo-preview[hidden] { display: none !important; }
.photo-preview img { max-width: 100%; max-height: 88vh; border-radius: 14px; background: #fff; }
.photo-preview-x { position: absolute; top: 12px; left: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: #143a5c; font-size: 22px; font-weight: 800; }
.star-row { display: flex; gap: 10px; }
.survey-card { padding: 16px 16px 14px; border-radius: 18px; background: #fff; box-shadow: 0 6px 16px #0b1c3010; }
.survey-title { margin: 0 0 14px; font-size: 16px; line-height: 1.6; }
.survey-form > label { font-weight: 700; font-size: 13px; }
.survey-stars { display: flex; gap: 6px; }
.survey-star { flex: 1; display: grid; place-items: center; gap: 2px; position: relative; padding: 8px 0 6px; border: 1.5px solid #e5e7eb; border-radius: 12px; background: #fff; }
.survey-star input { position: absolute; opacity: 0; inset: 0; }
.survey-star span { font-size: 20px; line-height: 1; color: #d1d5db; }
.survey-star em { font-size: 10px; font-style: normal; color: var(--muted); }
.survey-star:has(input:checked) { border-color: #f59e0b; background: #fffbeb; }
.survey-star:has(input:checked) span { color: #f59e0b; }
.survey-yesno { display: flex; gap: 8px; }
.survey-yesno label { flex: 1; text-align: center; font-weight: 800; padding: 10px 8px; border: 1.5px solid #e5e7eb; border-radius: 12px; background: #fff; }
.survey-yesno label:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }
.survey-reason.hidden { display: none; }
.survey-thanks { margin: 0; text-align: center; font-weight: 800; line-height: 1.8; padding: 8px 4px; }
.survey-step { display: grid; gap: 10px; }
.survey-step[hidden] { display: none !important; }
.survey-step-num { margin: 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.detail-cta { margin-top: 4px; }
.survey-overlay {
  position: fixed; inset: 0; z-index: 88;
  display: flex; justify-content: center;
  background: var(--surface);
}
.survey-overlay[hidden] { display: none !important; }
body.survey-open { overflow: hidden; }
.survey-sheet {
  width: min(100%, 620px);
  min-height: 100dvh;
  padding: 0 20px 40px;
  background: var(--surface);
}
.survey-sheet .survey-form { margin-top: 4px; }
.survey-sheet .survey-step { gap: 16px; padding: 22px 18px 20px; }
.survey-sheet .survey-step h3 { margin: 0 0 4px; font-size: 17px; }
.survey-sheet .survey-step label { font-size: 15px; font-weight: 800; line-height: 1.7; }
.survey-sheet .survey-stars { gap: 8px; }
.survey-sheet .survey-star { padding: 16px 0 12px; border-radius: 16px; }
.survey-sheet .survey-star span { font-size: 28px; }
.survey-sheet .survey-star em { font-size: 12px; }
.survey-sheet .survey-yesno label { padding: 16px 10px; border-radius: 16px; font-size: 16px; }
.survey-sheet .survey-reason { margin-top: 8px; min-height: 48px; }
.notif-card { display: grid; gap: 6px; text-align: right; background: #fff; overflow: hidden; }
.notif-card.msg-unread {
  border-color: #b7d4ef;
  background: #f3f8fd;
  box-shadow: none;
}
.notif-card.msg-important {
  border-color: #f0b4b4;
  background: #fff8f7;
  box-shadow: 0 0 0 1px #ffdad6;
}
.notif-sub { margin: 0; font-size: 13px; line-height: 1.75; color: #3a5470; white-space: pre-line; overflow-wrap: anywhere; }
.notif-when { margin: 0; font-size: 11px; }
.msg-coupon-meta { margin: 0; font-size: 12px; font-weight: 700; color: var(--primary-dark); }
.msg-filters { direction: rtl; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: flex-start; }
.msg-filters .link-btn { margin-inline-start: auto; }
.messages-list { padding-bottom: 8px; }
.msg-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent);
}
.profile-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.home-body { position: relative; margin-top: 0; padding: 18px 20px 20px; background: transparent; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick-card { min-height: 118px; display: grid; align-content: center; justify-items: center; gap: 4px; border: 1.5px solid #d7e4f0; border-radius: 20px; background: white; color: var(--text); box-shadow: 0 5px 15px #0b1c3010; }
.device-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 8px; }
.home-devices { grid-template-columns: repeat(4, 1fr); gap: 14px 6px; }
.home-devices .device-icon { width: 62px; height: 62px; border-radius: 18px; padding: 8px; border: 1.5px solid color-mix(in srgb, var(--primary) 55%, #fff); background: #fff; }
.home-devices .device-item { font-size: 10px; }
.home-devices .device-item strong { text-align: center; line-height: 1.35; font-weight: 700; }
.quick-card strong { font-size: 13px; text-align: center; line-height: 1.4; }
.quick-card small { color: var(--muted); font-size: 10px; }
.quick-card.primary-card { color: white; border-color: var(--primary-dark); background: linear-gradient(160deg, var(--primary-mid), var(--primary) 55%, var(--primary-dark)); box-shadow: 0 10px 20px color-mix(in srgb, var(--primary) 28%, transparent); }
.quick-card.primary-card small { color: #fff; }
.primary-card .quick-symbol { background: #ffffff33; color: #fff; border-color: #ffffff55; }
.quick-symbol { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--primary-soft); color: var(--primary-dark); border: 2px solid var(--primary-dark); }
.blue-symbol { color: var(--primary-dark); background: var(--primary-soft); }
.yellow-symbol { color: #b27a00; background: #fff5ce; }
.home-section { margin-top: 26px; }
.blue-tile { color: #075da9; background: linear-gradient(145deg, #dff1ff, #8cc9ef); }
.green-tile { color: #08705b; background: linear-gradient(145deg, #d4fff4, #5bd0b1); }
.pink-tile { color: #d42a80; background: linear-gradient(145deg, #ffe4f3, #ef83bf); }
.ice-tile { color: #237bbb; background: linear-gradient(145deg, #e5f7ff, #9bcaf0); }
.plain-tile { color: var(--primary); background: var(--primary-soft); }
.modal-backdrop { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 20px; background: #0b1c3066; backdrop-filter: blur(7px); }
.city-modal { position: relative; width: min(100%, 560px); padding: 24px 20px 20px; border-radius: 24px; background: white; box-shadow: 0 20px 60px #0b1c3030; }
.city-modal h2 { margin-bottom: 4px; }
.modal-close { position: absolute; top: 16px; left: 16px; width: 40px; height: 40px; border: 0; border-radius: 12px; background: #f1f4f8; color: var(--text); font-size: 24px; }
.city-modal input { margin: 18px 0 10px; }
.city-list { display: grid; gap: 9px; }
.city-list button { display: flex; justify-content: space-between; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: #f5f8fc; color: var(--text); font-weight: 700; }
.landing-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.block { display: block; }
.hero-slider { position: relative; min-height: 300px; overflow: hidden; border-radius: 24px; padding: 28px 24px; color: white; background: var(--hero-grad); box-shadow: 0 14px 30px color-mix(in srgb, var(--primary) 22%, transparent); }
.hero-slider::after { content: '⌂  ⚙  ✦'; position: absolute; left: 18px; bottom: 42px; color: #f5c542; font-size: 38px; letter-spacing: 10px; opacity: .72; transform: rotate(-8deg); }
.hero-logo { position: absolute; top: 14px; left: 16px; z-index: 2; width: auto; height: auto; max-width: 92px; overflow: visible; border-radius: 0; background: transparent; box-shadow: none; padding: 0; }
.hero-logo img { width: 72px; height: 72px; object-fit: contain; display: block; }
.hero-logo .logo-caption { display: block; text-align: center; color: #0b3d78; font-size: 9px; font-weight: 800; line-height: 1.3; padding-top: 2px; }
.brand-logo { display: inline-grid; justify-items: center; }
.brand-logo img { width: auto; height: auto; max-width: 100%; object-fit: contain; }
.brand-logo.login img { width: auto; height: 88px; max-width: 240px; }
.brand-logo.about img { height: 48px; max-width: 120px; }
.about-card { align-items: stretch; text-align: right; gap: 12px; }
.about-card .brand-logo { justify-self: center; margin: 0 auto 2px; }
.about-title { display: block; text-align: center; font-size: 18px; font-weight: 800; color: var(--ink); }
.about-lead { margin: 0; text-align: center; color: #3a5470; font-size: 14px; line-height: 1.85; }
.about-blocks { display: grid; gap: 0; margin-top: 4px; }
.about-block { padding: 10px 0; border-top: 1px solid var(--border); }
.about-block strong { display: block; font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.about-block p { margin: 0; font-size: 13px; line-height: 1.75; color: #3a5470; }
.about-actions { display: grid; gap: 8px; margin-top: 6px; }
.about-actions .btn { width: 100%; min-height: 48px; }
.brand-mark { width: 52px; height: 52px; display: grid; place-items: center; overflow: visible; border-radius: 0; background: transparent; box-shadow: none; padding: 0; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-mark .logo-caption, .phone-icon .logo-caption { display: none; }
.phone-icon { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 12px; background: white; overflow: hidden; }
.phone-icon img { width: 100%; height: 100%; object-fit: contain; }
.device-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 8px; }
.device-item { display: grid; justify-items: center; gap: 7px; border: 0; background: transparent; color: var(--text); font-size: 11px; }
.device-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: #fff; box-shadow: 0 4px 8px #0b1c3018; overflow: hidden; padding: 6px; border: 1.5px solid color-mix(in srgb, var(--primary) 45%, #fff); }
.device-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.device-more { color: var(--primary); font-size: 28px; font-weight: 800; line-height: 1; }
.hero-slide { position: absolute; inset: 28px 24px 50px; opacity: 0; transform: translateY(10px); transition: opacity .45s, transform .45s; }
.hero-slide.active { opacity: 1; transform: translateY(0); }
.hero-slide h1 { color: white; font-size: clamp(25px, 7vw, 38px); line-height: 1.55; margin: 10px 0; }
.hero-slide p { color: #e6f8eb; line-height: 1.9; max-width: 300px; font-size: 14px; }
.hero-kicker { color: #f5d76e; font-weight: 700; font-size: 14px; }
.step-kicker { position: absolute; top: 20px; right: 24px; z-index: 2; color: #d8eaff; font-size: 13px; }
.slider-dots { position: absolute; bottom: 22px; right: 24px; display: flex; gap: 6px; direction: ltr; }
.slider-dots span { width: 7px; height: 7px; border-radius: 99px; background: #b9f8c780; transition: .2s; }
.slider-dots span.active { width: 24px; background: white; }
.landing-actions { display: grid; gap: 10px; margin: 16px 0 24px; }
.section-block h2, .download-card h2, .about-block h2 { font-size: 19px; margin-bottom: 12px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.feature-card { background: white; border: 1px solid var(--border); border-radius: 14px; padding: 12px; min-height: 138px; }
.feature-card span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; color: var(--primary); background: var(--primary-soft); font-weight: 800; margin-bottom: 10px; }
.feature-card strong { font-size: 13px; display: block; }
.feature-card p { font-size: 11px; line-height: 1.7; color: var(--muted); margin: 6px 0 0; }
.download-card { margin-top: 24px; background: var(--primary-soft); border: 1px solid #c8e8d0; border-radius: 16px; padding: 18px; }
.download-card h2 { color: var(--primary-dark); }
.download-row { display: flex; align-items: center; gap: 12px; background: white; border-radius: 12px; padding: 12px; }
.download-row p { margin: 3px 0 0; font-size: 12px; }
.download-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: white; background: var(--primary); font-size: 22px; }
.about-block { padding: 24px 4px 0; }
.screen.center { display: flex; flex-direction: column; justify-content: center; padding-bottom: 24px; }
.logo-wrap { display: grid; justify-items: center; gap: 14px; margin-bottom: 28px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 24px; line-height: 1.6; margin-bottom: 8px; }
h2 { font-size: 20px; line-height: 1.6; margin-bottom: 6px; }
h3 { font-size: 16px; margin-bottom: 8px; }
.muted { color: var(--muted); font-size: 14px; line-height: 1.8; }
.card { background: var(--card); border: 1.5px solid color-mix(in srgb, var(--primary) 28%, var(--border)); border-radius: 16px; padding: 18px; box-shadow: 0 6px 18px #12324f12; }
.case-card { display: grid; gap: 10px; text-align: right; background: #fff; }
.case-unread { border-color: #f2b8b5; background: #fff6f5; box-shadow: 0 0 0 1px #ffdad6; }
.case-head, .case-meta, .profile-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.case-title { font-weight: 800; font-size: 16px; color: var(--ink); }
.case-facts { display: grid; gap: 4px; }
.case-fault { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text); }
.case-meta { color: var(--muted); font-size: 12px; }
.dossier-card { margin-bottom: 12px; padding: 16px; }
.dossier-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dossier-head h3 { margin: 0; font-size: 18px; line-height: 1.5; }
.dossier-line { margin: 6px 0 0; display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.dossier-fault { margin: 8px 0 0; font-size: 14px; line-height: 1.7; color: var(--text); }
.dossier-id { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.stack { display: grid; gap: 14px; }
.form-field { display: grid; gap: 7px; margin-bottom: 14px; }
.form-field label { font-size: 13px; font-weight: 600; }
input, select, textarea { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 13px 14px; background: white; color: var(--text); outline: none; }
input:focus, select:focus, textarea:focus { border: 2px solid var(--primary); padding: 12px 13px; }
textarea { min-height: 110px; resize: vertical; }
.btn { border: 0; border-radius: 12px; min-height: 50px; padding: 12px 18px; font-weight: 700; transition: transform .15s, opacity .15s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: linear-gradient(180deg, var(--primary-mid), var(--primary)); color: white; box-shadow: 0 6px 14px color-mix(in srgb, var(--primary) 28%, transparent); }
.btn.secondary { background: white; color: var(--primary); border: 1px solid var(--primary); }
.btn.ghost { background: transparent; color: var(--primary); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.topbar { direction: ltr; display: flex; align-items: center; gap: 4px; margin-bottom: 24px; }
.topbar-title { direction: rtl; flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-title .brand-mark { width: 40px; height: 40px; border-radius: 0; background: transparent; box-shadow: none; }
.topbar-title h2 { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.45; }
.topbar-title .muted { font-size: 13px; }
.invite-code-row { margin: 4px 0 8px; width: 100%; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: white; color: var(--text); }
.hero { background: linear-gradient(135deg, #e7f7eb, #fff); border: 1px solid #c8e8d0; border-radius: 18px; padding: 20px; margin-bottom: 18px; }
.hero .btn { margin-top: 12px; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 10px; }
.section-head h3 { margin: 0; }
.link-btn { border: 0; background: none; color: var(--primary); font-size: 13px; font-weight: 700; padding: 4px; }
.case-card { display: grid; gap: 10px; text-align: right; background: #fff; }
.case-unread { border-color: #f2b8b5; background: #fff6f5; box-shadow: 0 0 0 1px #ffdad6; }
.case-head, .case-meta, .profile-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.case-title { font-weight: 800; font-size: 16px; color: var(--ink); }
.case-facts { display: grid; gap: 4px; }
.case-fault { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text); }
.case-meta { color: var(--muted); font-size: 12px; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 10px; font-size: 11px; font-weight: 700; }
.badge.green { color: var(--primary-dark); background: #dff6e4; }
.badge.blue { color: #003ea8; background: #e0eaff; }
.badge.amber { color: #653e00; background: #ffddb8; }
.badge.red { color: #93000a; background: #ffdad6; }
.empty { text-align: center; padding: 28px 16px; color: var(--muted); }
.brand-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px 0; }
.brand-option { border: 1px solid var(--border); background: white; border-radius: 16px; min-height: 110px; padding: 14px; text-align: right; display: grid; align-content: space-between; gap: 8px; }
.brand-option.selected { border: 2px solid var(--primary); background: var(--primary-soft); padding: 13px; }
.brand-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 800; }
.choice-list { display: grid; gap: 9px; }
.choice { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--border); border-radius: 10px; padding: 13px; background: white; }
.choice.selected { border: 2px solid var(--primary); padding: 12px; background: var(--primary-soft); }
.choice input { width: auto; accent-color: var(--primary); }
.timeline { position: relative; display: grid; gap: 18px; padding-right: 8px; }
.timeline-item { display: flex; gap: 12px; align-items: flex-start; }
.timeline-dot { flex: 0 0 14px; height: 14px; margin-top: 5px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.bottom-nav { position: fixed; z-index: 5; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 620px); display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 12px 6px max(14px, env(safe-area-inset-bottom)); background: #fffffff2; border-top: 1px solid var(--border); backdrop-filter: blur(12px); }
.nav-btn { border: 0; background: transparent; color: var(--muted); display: grid; justify-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 6px 2px; line-height: 1.25; white-space: normal; }
.nav-btn.active { color: var(--primary); font-weight: 800; }
.nav-icon { position: relative; display: grid; place-items: center; width: 28px; height: 28px; line-height: 1; }
.nav-dot, .home-dot { position: absolute; top: -4px; left: -6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #e53935; color: #fff; font-size: 10px; font-weight: 800; line-height: 16px; text-align: center; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 12px; align-items: center; }
.chip { border: 1px solid var(--border); background: #fff; color: var(--muted); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 700; }
.chip.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.check-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; font-weight: 600; }
.check-row input { width: auto; accent-color: var(--primary); }
.nav-main-action { position: relative; color: var(--primary); font-weight: 800; }
.nav-main-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-top: -28px; border: 4px solid var(--surface); border-radius: 18px; color: white; background: linear-gradient(160deg, var(--primary-mid), var(--primary-dark)); box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 35%, transparent); }
.toast { position: fixed; z-index: 10; left: 50%; bottom: max(24px, calc(var(--bottom-nav-clearance) - 28px)); transform: translate(-50%, 20px); max-width: calc(100% - 40px); padding: 11px 16px; color: white; background: #213145; border-radius: 12px; opacity: 0; pointer-events: none; transition: .2s; font-size: 13px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
/* spinner */
.spinner { display: inline-block; width: 18px; height: 18px; border: 2.5px solid #ffffff55; border-top-color: white; border-radius: 50%; animation: spin .6s linear infinite; vertical-align: middle; margin-left: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
.splash { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(160deg,#f4f8fc,#eaf3fb 45%,#dcecf8 100%); color: #143a5c; transition: opacity .3s ease; overflow: hidden; }
.splash.is-hidden { opacity: 0; pointer-events: none; }
.splash-bg { position: absolute; inset: 0; pointer-events: none; opacity: .08; }
.splash-bg img { position: absolute; width: 92px; height: 92px; object-fit: contain; filter: grayscale(1) opacity(.55); }
.splash-bg img:nth-child(1) { top: 8%; right: 8%; }
.splash-bg img:nth-child(2) { top: 18%; left: 6%; }
.splash-bg img:nth-child(3) { bottom: 16%; right: 10%; }
.splash-bg img:nth-child(4) { bottom: 10%; left: 8%; }
.splash-center { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; padding: 24px; text-align: center; }
.splash-logo { width: 120px; height: 120px; object-fit: contain; background: transparent; padding: 0; filter: drop-shadow(0 8px 18px #143a5c22); }
.splash-name { margin: 2px 0 0; font-size: 26px; font-weight: 800; line-height: 1.4; color: #143a5c; }
.splash-tag { margin: 4px 0 0; font-size: 16px; font-weight: 700; opacity: 1; color: #2a5f8f; }
.splash-wait { margin: 10px 0 0; font-size: 13px; opacity: .9; line-height: 1.8; color: #4a6f90; }
.splash-bar { width: 156px; height: 4px; margin-top: 14px; border-radius: 99px; background: #143a5c22; overflow: hidden; }
.splash-bar span { display: block; height: 100%; width: 42%; border-radius: 99px; background: #2f78b8; animation: splashload 1.05s ease-in-out infinite; }
@keyframes splashload { 0% { transform: translateX(-130%); } 100% { transform: translateX(280%); } }
.spinner.dark { border-color: color-mix(in srgb, var(--primary) 22%, transparent); border-top-color: var(--primary); }
/* profile avatar */
.profile-avatar { width: 52px; height: 52px; font-size: 22px; border-radius: 50%; background: var(--primary); color: white; display: grid; place-items: center; font-weight: 800; flex: 0 0 52px; }
.profile-head { display: flex; align-items: center; gap: 14px; }
.profile-head-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.name-line { display: flex; align-items: center; gap: 8px; }
.name-line h3 { margin: 0; font-size: 18px; line-height: 1.4; }
.pen-btn { width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; padding: 0; flex: 0 0 36px; }
.pen-btn:active { background: #d7e8fb; }
.menu-list { margin-top: 14px; background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.menu-item { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 14px; border: 0; border-bottom: 1px solid var(--border); background: #fff; text-align: right; font-size: 15px; font-weight: 700; color: var(--text); }
.menu-item:last-child { border-bottom: 0; }
.menu-item:active { background: #f6f9fd; }
.menu-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.menu-left .ui-icon { color: var(--primary); }
.menu-right { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.success-card { text-align: center; justify-items: center; padding: 28px 18px; }
.success-check { width: 72px; height: 72px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 16%, #fff); color: var(--accent); display: grid; place-items: center; }
.success-card h2 { margin: 0; color: var(--ink); }
.success-card .btn { width: 100%; }
.form-field input[readonly] { background: #f3f7fb; color: var(--muted); }
.help-card .help-block strong { font-size: 15px; color: var(--ink); }
.help-card .help-block p { margin: 6px 0 0; color: #3a5470; font-size: 14px; line-height: 1.85; }
.help-card .help-block + .help-block { padding-top: 8px; border-top: 1px solid var(--border); }
.help-card .btn { min-height: 48px; }
.terms-card { text-align: right; gap: 0; }
.terms-lead { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.8; }
.terms-card .help-block { padding: 10px 0; }
.terms-card .help-block + .help-block { border-top: 1px solid var(--border); }
.terms-card .help-block strong { display: block; font-size: 14px; color: var(--ink); }
.terms-card .help-block p { margin: 6px 0 0; color: #3a5470; font-size: 13px; line-height: 1.85; }
.invite-card { text-align: center; justify-items: center; }
.invite-card h2 { margin: 0; font-size: 20px; line-height: 1.7; color: var(--ink); }
.invite-card > p { margin: 0; color: #3a5470; line-height: 1.9; font-size: 14px; }
.invite-card .btn { width: 100%; }
.invite-card .link-btn { width: auto; }
.invite-icon { width: 64px; height: 64px; border-radius: 18px; background: color-mix(in srgb, var(--accent) 14%, #fff); color: var(--accent); display: grid; place-items: center; }
.invite-code-row { margin: 0; }
.tech-card { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.tech-card strong { display: block; font-size: 16px; }
.tech-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary-soft); background: var(--primary-soft); flex: 0 0 56px; }
.tech-photo.fallback { display: grid; place-items: center; color: var(--primary); font-weight: 800; font-size: 20px; }
.tech-mini { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 13px; font-weight: 700; }
.tech-mini img, .tech-fallback { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: 0 0 28px; }
/* disabled resend */
.resend-btn:disabled { opacity: .5; cursor: not-allowed; }
/* otp hint */
.otp-hint { color: var(--amber); }
/* done timeline */
.timeline-item:not(.done) .timeline-dot { background: #cbd5e1; box-shadow: 0 0 0 4px #eef2f6; }
.timeline-item:not(.done) strong { color: var(--muted); }
/* muted badge */
.badge.muted { color: var(--muted); background: #f1f4f8; }
.chat-bubble { border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px; background: #fff; color: var(--ink); }
.chat-bubble p { margin: 4px 0 0; color: inherit; }
.chat-bubble.office { background: var(--primary-soft); border-color: #c5d9f2; color: var(--ink); }
.chat-bubble.customer { background: #fff; color: var(--ink); }
.cust-inv-overlay {
  position: fixed; inset: 0; z-index: 90; overflow: auto;
  background: #111827; padding: 20px 12px 24px;
}
.cust-inv-overlay[hidden] { display: none !important; }
body.cust-inv-open { overflow: hidden; }
.cust-inv-tools {
  position: fixed; top: 16px; left: 16px; z-index: 91;
  display: flex; flex-direction: column; gap: 10px;
}
.cust-inv-tools .cust-inv-ico {
  width: 40px; height: 40px; border: 0; border-radius: 999px;
  color: #fff; cursor: pointer; padding: 0; font-size: 16px; line-height: 40px;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.cust-inv-tools .cust-inv-ico.print { background: #2563eb; }
.cust-inv-tools .cust-inv-ico.close { background: #ef4444; }
.cust-inv-frame {
  display: block;
  width: min(860px, 100%);
  min-height: 80vh;
  margin: 0 auto;
  border: 0;
  background: transparent;
}
@media screen and (min-width: 700px) {
  body { padding: 20px 0; }
  .screen { min-height: calc(100dvh - 40px); border: 1px solid var(--border); border-radius: 24px; }
  .bottom-nav { bottom: 20px; border: 1px solid var(--border); border-radius: 18px; }
}
.warranty-card { margin: 0 0 12px; padding: 16px; }
.warranty-card.is-on { background: #f4fbf8; border-color: color-mix(in srgb, var(--accent) 42%, var(--border)); }
.warranty-card.is-off { background: #f7f9fb; }
.warranty-card.is-check,
.warranty-note { background: #fffaf2; border-color: #ead9b4; }
.warranty-note { margin: 0 0 12px; }
.warranty-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.warranty-head strong,
.warranty-note strong { font-size: 15px; }
.warranty-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 10px; }
.warranty-range div { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px; }
.warranty-range span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; }
.warranty-range b { display: block; margin-top: 2px; font-size: 14px; }
.warranty-copy,
.warranty-note p { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.85; }
.warranty-note p { margin-top: 6px; }
.warranty-copy.muted { color: var(--muted); }
.warranty-again { width: 100%; margin-top: 12px; }
.sound-ico { order: -1; flex: 0 0 44px; width: 44px; height: 44px; color: #8aa0b5; background: #edf3f8; position: relative; z-index: 3; }
.sound-ico.on { color: var(--primary); background: var(--primary-soft); }
.sound-ico.warn::after { content: ''; position: absolute; top: 6px; left: 6px; width: 8px; height: 8px; border-radius: 50%; background: #e11d48; border: 1px solid #fff; }

/* حالت شب — با انتخاب کاربر */
html[data-theme="dark"] .bottom-nav { background: var(--nav-bg); }
html[data-theme="dark"] .float-bar { background: var(--float-bg); }
html[data-theme="dark"] .float-ico { background: #243447; color: var(--text); }
html[data-theme="dark"] .float-ico.back-ico { background: var(--primary-soft); color: var(--primary); }
html[data-theme="dark"] .sound-ico { background: #243447; color: #8aa0b5; }
html[data-theme="dark"] .sound-ico.on { color: var(--primary); background: var(--primary-soft); }
html[data-theme="dark"] .card,
html[data-theme="dark"] .quick-card,
html[data-theme="dark"] .start-card,
html[data-theme="dark"] .case-card,
html[data-theme="dark"] .menu-list,
html[data-theme="dark"] .choice,
html[data-theme="dark"] .brand-option,
html[data-theme="dark"] .chip { background: var(--card); color: var(--text); border-color: var(--border); }
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea { background: var(--input-bg); color: var(--text); border-color: var(--border); }
html[data-theme="dark"] .btn.secondary { background: var(--card); color: var(--primary); }
html[data-theme="dark"] .btn.ghost { color: var(--primary); }
html[data-theme="dark"] .home-brand-name,
html[data-theme="dark"] .home-hello,
html[data-theme="dark"] .case-title,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3 { color: var(--ink); }
html[data-theme="dark"] .home-phone { color: var(--primary); background: var(--primary-soft); border-color: var(--border); }
html[data-theme="dark"] .quick-card.primary-card { color: #fff; }
html[data-theme="dark"] .badge.green { color: #b8f0c8; background: #1a3d2a; }
html[data-theme="dark"] .badge.blue { color: #b8d4ff; background: #1a2f55; }
html[data-theme="dark"] .badge.amber { color: #ffd9a0; background: #3d2e14; }
html[data-theme="dark"] .badge.red { color: #ffc0c4; background: #3d1a1e; }
html[data-theme="dark"] .warranty-card.is-on,
html[data-theme="dark"] .warranty-card.is-off,
html[data-theme="dark"] .warranty-card.is-check,
html[data-theme="dark"] .warranty-note { background: var(--card); }
html[data-theme="dark"] .warranty-range div { background: var(--input-bg); }
html[data-theme="dark"] .chat-bubble {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
}
html[data-theme="dark"] .chat-bubble.customer {
  background: #243447;
  border-color: var(--border);
  color: var(--text);
}
html[data-theme="dark"] .chat-bubble.office {
  background: var(--primary-soft);
  border-color: #2a4a6a;
  color: var(--text);
}
html[data-theme="dark"] .chat-bubble .muted { color: var(--muted); }
html[data-theme="dark"] .chat-bubble p { color: var(--text); }
html[data-theme="dark"] .chat-clip-menu {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
}
html[data-theme="dark"] .notif-card { background: var(--card); color: var(--text); }
