:root {
  --bg: #f4f5fa;
  --card: #ffffff;
  --ink: #1a1d29;
  --ink-soft: #5b6172;
  --ink-faint: #9aa0b4;
  --line: #e6e8f0;
  --brand: #059669;
  --brand-2: #047857;
  --brand-grad: linear-gradient(135deg, #34d399 0%, #059669 100%);
  --wa: #22c15e;
  --wa-dark: #17a34b;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(31, 36, 66, 0.08);
  --shadow-lg: 0 18px 50px rgba(31, 36, 66, 0.14);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Heebo', 'Segoe UI', Arial, sans-serif;
  background:
    radial-gradient(1200px 500px at 85% -5%, rgba(124, 58, 237, 0.08), transparent 60%),
    radial-gradient(900px 420px at 10% 0%, rgba(79, 70, 229, 0.07), transparent 55%),
    var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
}

.hidden { display: none !important; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 8px; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--brand-grad);
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: -0.3px; }
.beta-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--brand);
  background: rgba(79, 70, 229, 0.1);
  padding: 2px 8px;
  border-radius: 999px;
}
.topbar-tag { font-size: 13px; color: var(--ink-soft); font-weight: 500; }

/* ---------- Layout ---------- */
.container { max-width: 1080px; margin: 0 auto; padding: 28px 20px 60px; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 26px 8px 30px; }
.hero h1 {
  font-size: clamp(28px, 6vw, 46px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.25;
}
.grad-text {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  margin: 14px auto 0;
  max-width: 560px;
  color: var(--ink-soft);
  font-size: clamp(15px, 2.4vw, 17px);
}

/* ---------- Composer ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(230, 232, 240, 0.8);
}
.composer {
  max-width: 720px;
  margin: 0 auto;
  padding: 26px 24px 22px;
}
.composer-label { display: block; font-weight: 700; font-size: 16px; margin-bottom: 10px; }
#jobInput {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 16px;
  resize: vertical;
  min-height: 84px;
  background: #fbfbfd;
  transition: border-color .15s, box-shadow .15s;
}
#jobInput:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
  background: #fff;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.chip {
  font-family: inherit;
  font-size: 13px;
  color: var(--ink-soft);
  background: #f4f5fb;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
  transition: all .15s;
  text-align: right;
}
.chip:hover { border-color: var(--brand); color: var(--brand); background: rgba(79,70,229,0.06); }

.btn-primary {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: var(--brand-grad);
  border: none;
  border-radius: 14px;
  padding: 15px 20px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(99, 60, 235, 0.32);
  transition: transform .12s, box-shadow .15s, opacity .15s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(99, 60, 235, 0.4); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .75; cursor: wait; transform: none; }

.spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.privacy-note {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ---------- Features ---------- */
.features {
  max-width: 900px;
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.feature-icon { font-size: 26px; margin-bottom: 6px; }
.feature h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.feature p { font-size: 13.5px; color: var(--ink-soft); }

/* ---------- Quote toolbar ---------- */
#quoteSection { margin-top: 40px; }
.quote-toolbar {
  max-width: 860px;
  margin: 0 auto 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.toolbar-left { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-ghost {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: all .15s;
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-whatsapp {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--wa), var(--wa-dark));
  border: none;
  border-radius: 12px;
  padding: 10px 18px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(34, 193, 94, 0.3);
  transition: transform .12s, box-shadow .15s;
}
.btn-whatsapp:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(34, 193, 94, 0.4); }

/* ---------- Quote sheet ---------- */
.sheet {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  padding: clamp(22px, 4.5vw, 44px);
}
.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 3px solid var(--ink);
  flex-wrap: wrap;
}
.sheet-title { text-align: left; }
.sheet-title h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; }
.sheet-num { color: var(--ink-soft); font-size: 14px; font-weight: 600; margin-top: 2px; }

.in-text {
  font-family: inherit;
  border: none;
  background: transparent;
  border-bottom: 1.5px dashed transparent;
  padding: 2px 2px;
  color: inherit;
  transition: border-color .15s, background .15s;
}
.in-text:hover { border-bottom-color: var(--ink-faint); }
.in-text:focus { outline: none; border-bottom-color: var(--brand); background: rgba(79,70,229,0.05); }
.biz-name { font-size: 19px; font-weight: 800; width: 100%; max-width: 340px; }
.biz-sub { font-size: 13px; color: var(--ink-soft); width: 100%; max-width: 340px; margin-top: 4px; }

.sheet-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.meta-row { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.meta-wide { grid-column: 1 / -1; }
.meta-label { font-weight: 700; font-size: 14px; white-space: nowrap; }
.meta-val { flex: 1; font-size: 14.5px; min-width: 0; }

/* ---------- Items table ---------- */
.items-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.items-table th {
  text-align: right;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-faint);
  letter-spacing: 0.3px;
  padding: 10px 8px;
  border-bottom: 2px solid var(--line);
}
.items-table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.col-desc { width: 46%; }
.col-qty { width: 12%; }
.col-price { width: 17%; }
.col-total { width: 17%; }
.col-del { width: 8%; }

.item-desc, .item-qty, .item-price { width: 100%; font-size: 14.5px; }
.item-qty, .item-price { text-align: center; direction: ltr; }
.row-total { font-weight: 700; font-size: 14.5px; white-space: nowrap; text-align: center; }
.row-del {
  border: none;
  background: transparent;
  color: var(--ink-faint);
  font-size: 16px;
  cursor: pointer;
  border-radius: 8px;
  padding: 4px 8px;
  transition: all .15s;
}
.row-del:hover { color: #e11d48; background: rgba(225, 29, 72, 0.08); }

/* ---------- Totals ---------- */
.totals-wrap { display: flex; justify-content: flex-start; margin-top: 18px; }
.totals {
  width: 100%;
  max-width: 340px;
  background: #f8f8fc;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
}
.totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 14.5px;
  font-weight: 600;
}
.vat-row { border-top: 1px dashed var(--line); color: var(--ink-soft); }
.vat-row.off { color: var(--ink-faint); text-decoration: line-through; }
.vat-label-wrap { display: inline-flex; align-items: center; gap: 10px; }
.grand {
  border-top: 2px solid var(--ink);
  margin-top: 4px;
  padding-top: 12px;
  font-size: 19px;
  font-weight: 800;
}

/* ---------- Switch ---------- */
.switch { position: relative; display: inline-block; width: 40px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  inset: 0;
  background: #cfd3e0;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s;
}
.slider::before {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  top: 3px; right: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.switch input:checked + .slider { background: var(--brand); }
.switch input:checked + .slider::before { transform: translateX(-18px); }

/* ---------- Terms & footer ---------- */
.terms { margin-top: 22px; }
.terms h4 { font-size: 14px; font-weight: 800; margin-bottom: 6px; }
#termsInput {
  width: 100%;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink-soft);
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  resize: vertical;
  background: transparent;
}
#termsInput:focus { outline: none; border-color: var(--brand); }

.sheet-foot { margin-top: 30px; }
.sig-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--ink-soft);
  padding-top: 10px;
}
.sheet-note {
  text-align: center;
  margin-top: 22px;
  font-size: 12px;
  color: var(--ink-faint);
}

.page-foot { text-align: center; margin-top: 40px; font-size: 13px; color: var(--ink-faint); }

/* ---------- Desktop ---------- */
@media (min-width: 760px) {
  .features { grid-template-columns: repeat(3, 1fr); }
  .composer { padding: 30px 32px 26px; }
}

/* ---------- Print ---------- */
@media print {
  body { background: #fff; }
  .no-print, .topbar, .hero, .composer, .features, .page-foot, .quote-toolbar { display: none !important; }
  .container { padding: 0; max-width: none; }
  .sheet {
    box-shadow: none;
    border: none;
    border-radius: 0;
    max-width: none;
    padding: 10px 4px;
  }
  .in-text, #termsInput { border-bottom-color: transparent !important; background: transparent !important; }
  #termsInput { border: none; padding: 0; }
  .row-del, .col-del { display: none !important; }
  .sheet-head { border-bottom-color: #000; }
  @page { margin: 14mm; }
}

/* ---------- Small phones: stacked line items ---------- */
@media (max-width: 600px) {
  .sheet-meta { grid-template-columns: 1fr; }
  .items-table thead { display: none; }
  .items-table, .items-table tbody { display: block; }
  .items-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 4px 6px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    align-items: end;
  }
  .items-table td { border: none; padding: 2px 2px; }
  .items-table td.td-desc { grid-column: 1 / -1; padding-bottom: 6px; }
  .items-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-faint);
    margin-bottom: 2px;
  }
  .items-table td.td-desc::before { margin-bottom: 3px; }
  .row-total { align-self: end; padding-bottom: 8px; }
  .items-table td.no-print { align-self: end; }
  .items-table td.no-print::before { content: none; }
  .totals { max-width: none; }
  .sheet-title h2 { font-size: 24px; }
  .sig-line { flex-direction: column; gap: 8px; }
}

@media print {
  .items-table td::before { content: none !important; }
  .items-table tr { display: table-row; }
  .items-table thead { display: table-header-group; }
}

/* ---------- Step 2: price list, meta, estimate badge ---------- */
.btn-secondary {
  width: 100%;
  margin-top: 10px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--brand);
  background: rgba(79, 70, 229, 0.07);
  border: 1.5px solid rgba(79, 70, 229, 0.25);
  border-radius: 12px;
  padding: 11px 16px;
  cursor: pointer;
  transition: all .15s;
}
.btn-secondary:hover { background: rgba(79, 70, 229, 0.13); }

.ai-meta {
  font-size: 12.5px;
  color: var(--ink-faint);
  font-weight: 500;
  flex-basis: 100%;
  order: -1;
}

.estimate-badge {
  margin: 14px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: #92610a;
  background: #fdf6e7;
  border: 1px solid #f3e3b8;
  border-radius: 10px;
  padding: 8px 12px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 22, 40, 0.45);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 460px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 22px;
}
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.modal-head h3 { font-size: 19px; font-weight: 800; }
.modal-note { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 12px; }
.modal-label { font-size: 13px; font-weight: 700; display: block; margin-bottom: 4px; }
.price-trade {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 9px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  margin-bottom: 14px;
}
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.price-row.learned .price-desc { color: var(--brand); }
.price-desc { font-size: 14px; }
.price-input {
  width: 100px;
  font-family: inherit;
  font-size: 14.5px;
  text-align: center;
  padding: 6px 8px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  direction: ltr;
}
.price-input:focus { outline: none; border-color: var(--brand); }
.price-learned-head { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); margin-top: 14px; }
.btn-ghost.danger { margin-top: 14px; color: #e11d48; width: 100%; }
.btn-ghost.danger:hover { border-color: #e11d48; color: #e11d48; background: rgba(225,29,72,0.05); }

@media print {
  .modal { display: none !important; }
}

/* ---------- Step 3: avoid heading orphans in PDF ---------- */
@media print {
  .terms, .sheet-foot, .totals { break-inside: avoid; page-break-inside: avoid; }
  .terms h4 { break-after: avoid; page-break-after: avoid; }
}

/* ---------- Step 4: דף חתימת לקוח ---------- */
.sign-card {
  background: var(--card, #fff);
  border-radius: 18px;
  box-shadow: 0 10px 34px rgba(30, 27, 75, 0.09);
  padding: 26px 24px;
  margin: 22px auto 30px;
  max-width: 640px;
}
.sign-card h2 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.sign-sub { color: var(--ink-soft); font-size: 14px; margin-bottom: 16px; }
.sign-label { display: block; font-size: 13px; font-weight: 700; margin: 14px 0 6px; }
.sign-name { width: 100%; font-size: 16px; padding: 10px 12px; }
.sig-pad {
  width: 100%;
  height: 180px;
  border: 2px dashed #c7c2e8;
  border-radius: 14px;
  background: #fbfaff;
  touch-action: none;
  cursor: crosshair;
}
.sign-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.sign-actions .btn-primary { flex: 1; min-width: 160px; }
.sign-err { color: #e11d48; font-size: 13px; font-weight: 700; margin-top: 10px; }
.privacy-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 16px; }
.sig-area { min-height: 40px; }
.sig-done { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.sig-done img {
  max-height: 90px; max-width: 240px;
  border-bottom: 1.5px solid #94a3b8;
  background: #fff;
}
.sig-meta { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--ink); }
.terms-text { font-size: 13.5px; color: var(--ink-soft); line-height: 1.65; white-space: pre-line; }
.sign-body .sheet { margin-top: 22px; }
@media print {
  .sign-card { display: none !important; }
  .sig-done img { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* ---------- שלב: שליחה לחתימת לקוח (צעד שיתוף + סטטוס) ---------- */
.sign-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff8e6;
  border: 1px solid #e8d48a;
  border-radius: 12px;
  padding: 10px 14px;
  margin: 14px auto 0;
  max-width: 760px;
  font-size: 14px;
}
.sign-banner span { flex: 1; }
.sign-banner button { flex: none; }
.share-link-box {
  text-align: left;
  background: #f1f2f7;
  border: 1px solid #e3e5ef;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.5px;
  word-break: break-all;
  color: #333;
  margin: 10px 0 12px;
  max-height: 72px;
  overflow: auto;
}
.share-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.share-actions > * { flex: 1; text-align: center; justify-content: center; }
.share-copied { color: #0a7d3b; font-weight: 600; margin: 8px 0 0; font-size: 14px; }
.sign-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 12px;
  background: #f7f8fc;
  border-radius: 10px;
  font-size: 14px;
}
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #c0c4d6; flex: none; }
.status-dot.sent { background: #c9a227; }
.status-dot.viewed { background: #059669; }
.status-dot.signed { background: #0a7d3b; }
.status-dot.gone { background: #e11d48; }
#signedActions { margin-top: 12px; }
a.btn-primary.btn-link { display: flex; text-decoration: none; }
.share-delete { margin-top: 12px; width: 100%; font-size: 13px; }
.share-note { margin-top: 10px; font-size: 12.5px; color: #777; }
.consent-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13.5px;
  margin: 12px 0 4px;
  color: #444;
  line-height: 1.5;
  cursor: pointer;
}
.consent-row input { margin-top: 3px; flex: none; }


/* ---------- Legal pages ---------- */
main.container.legal { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; }
main.container.legal h1 { font-size: 1.7rem; font-weight: 800; margin: 8px 0 4px; }
main.container.legal h2 { font-size: 1.15rem; font-weight: 700; margin: 26px 0 6px; }
main.container.legal p, main.container.legal li { font-size: 0.98rem; line-height: 1.75; margin: 6px 0; }
main.container.legal ul { padding-inline-start: 22px; margin: 6px 0; }
.legal-updated { color: #64748b; font-size: 0.85rem; margin-bottom: 18px; }
.legal-back { margin-top: 34px; padding-top: 16px; border-top: 1px solid #e2e8f0; }
.legal-links { margin-top: 10px; font-size: 0.85rem; }
.legal-links a, .legal-back a { color: #047857; text-decoration: none; }
.legal-links a:hover, .legal-back a:hover { text-decoration: underline; }
a.brand-name { color: inherit; text-decoration: none; }
.consent-row a { color: #047857; }

/* ==========================================================
   Dark premium theme - landing + generator shell (step 3)
   The quote sheet, signing page and signed result stay light.
   ========================================================== */
html { scroll-behavior: smooth; }

/* Brand mark: document+check SVG tile - shared visual language (all pages). Logo is a replaceable token. */
.brand-mark {
  background: #0a141f;
  border: 1px solid rgba(16, 185, 129, 0.55);
  color: #34d399;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.22);
}

body.theme-dark {
  --gold: #34d399;
  --gold-soft: #6ee7b7;
  --brand: #34d399;
  --brand-grad: linear-gradient(135deg, #6ee7b7 0%, #059669 100%);
  --card: #0c1522;
  --line: rgba(255, 255, 255, 0.09);
  --ink: #eef2f6;
  --ink-soft: #a2a2b0;
  --ink-faint: #74747f;
  background:
    radial-gradient(1000px 520px at 88% -12%, rgba(16, 185, 129, 0.12), transparent 60%),
    radial-gradient(800px 400px at 0% 110%, rgba(16, 185, 129, 0.05), transparent 55%),
    #071019;
  color: var(--ink);
}

/* topbar */
body.theme-dark .topbar {
  background: rgba(7, 16, 25, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
body.theme-dark .topbar-tag { color: var(--ink-soft); }
body.theme-dark .beta-badge {
  color: var(--gold-soft);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* hero: text + phone mock */
body.theme-dark .hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: center;
  text-align: center;
  padding: 40px 8px 44px;
  max-width: 1080px;
  margin: 0 auto;
}
body.theme-dark .hero h1 {
  font-size: clamp(34px, 8vw, 58px);
  line-height: 1.18;
  letter-spacing: -1.2px;
}
body.theme-dark .grad-text {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body.theme-dark .hero p {
  color: var(--ink-soft);
  max-width: 520px;
  margin: 16px auto 0;
}
body.theme-dark .hero-cta-row { margin-top: 26px; }
body.theme-dark .btn-hero {
  width: auto;
  margin-top: 26px;
  padding: 16px 38px;
  border-radius: 999px;
  font-size: 17px;
  text-decoration: none;
  color: #04120c;
  background: var(--brand-grad);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.28);
}
body.theme-dark .btn-hero:hover { box-shadow: 0 14px 36px rgba(16, 185, 129, 0.38); }
body.theme-dark .hero-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-faint);
}

/* phone mock */
.hero-mock { display: flex; justify-content: center; }
.phone {
  width: 250px;
  border-radius: 38px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 10px;
  box-shadow:
    0 0 0 2px #1c1c24,
    0 30px 70px rgba(0, 0, 0, 0.65),
    0 0 90px rgba(16, 185, 129, 0.10);
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 10px;
  right: 50%;
  transform: translateX(50%);
  width: 86px;
  height: 20px;
  background: #000;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-screen {
  border-radius: 29px;
  background: #f6f6f9;
  overflow: hidden;
  padding: 34px 14px 18px;
  min-height: 380px;
}
.pq { direction: rtl; text-align: right; font-size: 11px; color: #1a1d29; }
.pq-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid #1a1d29;
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.pq-biz { font-weight: 700; font-size: 10px; color: #5b6172; }
.pq-title { font-weight: 800; font-size: 15px; }
.pq-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 2px;
  border-bottom: 1px solid #e6e8f0;
  color: #3a3f52;
}
.pq-row b { color: #1a1d29; white-space: nowrap; }
.pq-total {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding: 9px 10px;
  background: #fff;
  border: 1px solid #e6e8f0;
  border-radius: 9px;
  font-weight: 800;
  font-size: 12px;
}
.pq-btn {
  margin-top: 12px;
  text-align: center;
  background: var(--brand-grad);
  color: #04120c;
  font-weight: 800;
  border-radius: 999px;
  padding: 10px;
  font-size: 12px;
}

/* composer card on dark */
body.theme-dark .card {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}
body.theme-dark .composer-label { color: var(--ink); }
body.theme-dark #jobInput {
  background: #0a1521;
  border-color: var(--line);
  color: var(--ink);
}
body.theme-dark #jobInput::placeholder { color: var(--ink-faint); }
body.theme-dark #jobInput:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
  background: #0d1926;
}
body.theme-dark .chip {
  background: #122031;
  border-color: var(--line);
  color: var(--ink-soft);
}
body.theme-dark .chip:hover {
  border-color: rgba(16, 185, 129, 0.55);
  color: var(--gold-soft);
  background: rgba(16, 185, 129, 0.07);
}
body.theme-dark .btn-primary {
  color: #04120c;
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.26);
}
body.theme-dark .btn-primary:hover { box-shadow: 0 12px 28px rgba(16, 185, 129, 0.36); }
body.theme-dark .btn-primary .spinner {
  border-color: rgba(4, 18, 12, 0.35);
  border-top-color: #04120c;
}
body.theme-dark .btn-secondary {
  color: var(--gold-soft);
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
}
body.theme-dark .btn-secondary:hover { background: rgba(16, 185, 129, 0.14); }
body.theme-dark .privacy-note { color: var(--ink-faint); }

/* features */
body.theme-dark .feature {
  background: var(--card);
  border-color: var(--line);
}
body.theme-dark .feature h3 { color: var(--ink); }
body.theme-dark .feature p { color: var(--ink-soft); }

/* quote toolbar + ghost buttons on dark */
body.theme-dark .btn-ghost {
  background: #122031;
  border-color: var(--line);
  color: var(--ink-soft);
}
body.theme-dark .btn-ghost:hover { border-color: rgba(16, 185, 129,0.55); color: var(--gold-soft); }
body.theme-dark .ai-meta { color: var(--ink-faint); }

/* modals on dark */
body.theme-dark .modal { background: rgba(4, 4, 8, 0.66); }
body.theme-dark .modal-card {
  background: #101e2e;
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7);
}
body.theme-dark .modal-note { color: var(--ink-soft); }
body.theme-dark .modal-label { color: var(--ink); }
body.theme-dark .price-trade {
  background: #0a1521;
  border-color: var(--line);
  color: var(--ink);
}
body.theme-dark .price-row { border-bottom-color: var(--line); }
body.theme-dark .price-desc { color: var(--ink); }
body.theme-dark .price-input {
  background: #0a1521;
  border-color: var(--line);
  color: var(--ink);
}
body.theme-dark .price-input:focus { border-color: var(--gold); }
body.theme-dark .price-learned-head { color: var(--ink-soft); }
body.theme-dark .share-link-box {
  background: #0a1521;
  border-color: var(--line);
  color: var(--ink-soft);
}
body.theme-dark .sign-status { background: #0a1521; color: var(--ink); }
body.theme-dark .share-note { color: var(--ink-faint); }
body.theme-dark .btn-ghost.danger { color: #ff7d96; }
body.theme-dark .btn-ghost.danger:hover { border-color: #ff7d96; color: #ff7d96; background: rgba(225,29,72,0.12); }

/* sign status banner on dark */
body.theme-dark .sign-banner {
  background: rgba(16, 185, 129, 0.09);
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--ink);
}

/* footer on dark */
body.theme-dark .page-foot { color: var(--ink-faint); }
body.theme-dark .legal-links a { color: var(--gold-soft); }

/* the quote sheet stays LIGHT inside the dark shell */
body.theme-dark .sheet {
  --ink: #1a1d29;
  --ink-soft: #5b6172;
  --ink-faint: #9aa0b4;
  --line: #e6e8f0;
  background: #fff;
  color: #1a1d29;
  border: none;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}
body.theme-dark .sheet .in-text:focus { border-bottom-color: #059669; background: rgba(16, 185, 129,0.07); }
body.theme-dark .sheet .row-del:hover { color: #e11d48; background: rgba(225,29,72,0.08); }

/* desktop hero layout */
@media (min-width: 900px) {
  body.theme-dark .hero {
    grid-template-columns: 1.05fr 0.95fr;
    text-align: right;
    padding: 54px 8px 60px;
  }
  body.theme-dark .hero p { margin-right: 0; }
  body.theme-dark .hero-note { margin-right: 0; }
}

/* print: dark theme must print white */
@media print {
  body.theme-dark { background: #fff !important; color: #1a1d29 !important; }
  body.theme-dark .hero, body.theme-dark .hero-mock { display: none !important; }
}

/* ---------- חשבון משתמש ---------- */
.btn-account {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-account:hover { background: rgba(16, 185, 129, 0.12); }
.account-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; flex: none; }
.auth-input {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font: inherit;
  background: #fff;
  color: #111827;
}
body.theme-dark .auth-input { background: #1c1c1e; border-color: #3a3a3c; color: #f3f4f6; }
.account-sec { margin: 18px 0 8px; font-size: 15px; }
.hist-hint { font-weight: 400; font-size: 12px; opacity: 0.65; }
.hist-list { display: flex; flex-direction: column; gap: 8px; max-height: 240px; overflow-y: auto; }
.hist-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}
body.theme-dark .hist-row { border-color: #3a3a3c; background: #1c1c1e; }
.hist-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.hist-info b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-info span { font-size: 12px; opacity: 0.7; }
.logo-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.logo-preview { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid #e5e7eb; }
.logo-file { font-size: 13px; }
.sheet-biz { display: flex; gap: 14px; align-items: flex-start; flex: 1; min-width: 0; max-width: 65%; }
.biz-card { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.biz-card .biz-name { overflow-wrap: anywhere; }
.biz-fields { display: flex; flex-direction: column; min-width: 200px; flex: 1; }
.logo-slot { position: relative; flex-shrink: 0; }
.logo-file-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.logo-placeholder {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 76px;
  height: 76px;
  border: 1.5px dashed var(--brand);
  border-radius: 12px;
  background: rgba(79, 70, 229, 0.06);
  color: var(--brand);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
  margin-bottom: 4px;
}
.logo-placeholder:hover { background: rgba(79, 70, 229, 0.13); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(79, 70, 229, 0.18); }
.logo-placeholder:active { transform: translateY(0); }
.logo-placeholder svg { width: 22px; height: 22px; }
.logo-clear {
  position: absolute;
  top: -7px;
  left: -7px;
  z-index: 2;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.logo-clear:hover { color: #b91c1c; border-color: #b91c1c; }
.biz-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  margin-bottom: 4px;
  cursor: pointer;
}
@media print {
  .biz-logo { width: 44px; height: 44px; }
}

/* תבנית לפי תחום */
.trade-pick { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; }
.trade-pick label { opacity: 0.8; }
.price-trade {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font: inherit;
  background: #fff;
  color: #111827;
}
body.theme-dark .price-trade { background: #1c1c1e; border-color: #3a3a3c; color: #f3f4f6; }
/* קלט קובץ לוגו מעוצב */
.logo-file { color: transparent; width: 120px; }
.logo-file::-webkit-file-upload-button { visibility: hidden; }
.logo-file::before {
  content: 'בחר תמונה';
  display: inline-block;
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}
.logo-file:hover::before { background: rgba(16, 185, 129, 0.12); }

/* איך זה עובד */
.how-it-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 10px 0 22px;
}
.how-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(16, 185, 129, 0.18);
  background: rgba(255, 255, 255, 0.02);
}
.how-num {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.how-step b { font-size: 15px; }
.how-step p { margin: 4px 0 0; font-size: 13px; opacity: 0.7; line-height: 1.5; }
@media (max-width: 720px) {
  .how-it-works { grid-template-columns: 1fr; gap: 10px; }
}

/* נגישות: דילוג לתוכן + פוקוס נראה + תנועה מופחתת */
.skip-link {
  position: absolute;
  top: -60px;
  right: 12px;
  background: #34d399;
  color: #000;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }
:focus-visible {
  outline: 2px solid #34d399;
  outline-offset: 2px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .logo-placeholder, .logo-clear { display: none !important; }
}

/* ==========================================================
   Landing v2 - atmospheric glow, nav, pill, WhatsApp mock,
   glass feature cards
   ========================================================== */
body.theme-dark {
  background:
    radial-gradient(rgba(110, 231, 183, 0.07) 1px, transparent 1.6px) 0 0 / 32px 32px,
    radial-gradient(920px 540px at 86% -12%, rgba(16, 185, 129, 0.17), transparent 62%),
    radial-gradient(720px 440px at 4% 8%, rgba(16, 185, 129, 0.07), transparent 58%),
    radial-gradient(840px 560px at 50% 118%, rgba(16, 185, 129, 0.09), transparent 62%),
    #071019;
}

/* nav */
body.theme-dark .topnav { display: flex; gap: 26px; }
body.theme-dark .topnav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .15s;
}
body.theme-dark .topnav a:hover { color: var(--gold-soft); }
body.theme-dark .topbar-actions { display: flex; align-items: center; gap: 10px; }
body.theme-dark .btn-nav-cta {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--brand-grad);
  color: #04120c;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.25);
  transition: transform .15s, box-shadow .15s;
}
body.theme-dark .btn-nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(16, 185, 129, 0.36); }
@media (max-width: 720px) {
  body.theme-dark .topnav { display: none; }
  body.theme-dark .btn-nav-cta { display: none; }
}

/* hero pill + CTA row */
body.theme-dark .hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.38);
  background: rgba(16, 185, 129, 0.09);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
body.theme-dark .hero-cta-row {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
}
body.theme-dark .btn-hero { margin-top: 0; }
body.theme-dark .btn-hero-ghost {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: border-color .15s, background .15s, color .15s;
}
body.theme-dark .btn-hero-ghost:hover {
  border-color: rgba(16, 185, 129, 0.55);
  background: rgba(16, 185, 129, 0.08);
  color: var(--gold-soft);
}
@media (min-width: 900px) {
  body.theme-dark .hero-cta-row { justify-content: flex-start; }
}

/* WhatsApp phone mock */
.phone-screen.wa-screen {
  background: #0b141a;
  padding: 0;
  min-height: 440px;
  display: flex;
  flex-direction: column;
}
.wa-header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1f2c34;
  padding: 30px 10px 8px;
}
.wa-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6ee7b7, #059669);
  color: #04120c;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wa-peer { flex: 1; text-align: right; line-height: 1.25; }
.wa-peer b { display: block; color: #e9edef; font-size: 12px; }
.wa-peer span { color: #8696a0; font-size: 10px; }
.wa-actions { display: flex; gap: 10px; color: #8696a0; }
.wa-actions svg { width: 15px; height: 15px; }
.wa-chat {
  flex: 1;
  padding: 12px 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1.3px);
  background-size: 18px 18px;
}
.wa-date {
  align-self: center;
  background: #182229;
  color: #8696a0;
  font-size: 9.5px;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 2px;
}
.wa-bubble {
  max-width: 84%;
  padding: 6px 8px 14px;
  border-radius: 9px;
  font-size: 11px;
  line-height: 1.45;
  color: #e9edef;
  position: relative;
  direction: rtl;
  text-align: right;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}
.wa-in { align-self: flex-start; background: #1f2c34; border-start-start-radius: 2px; }
.wa-out { align-self: flex-end; background: #005c4b; border-start-end-radius: 2px; }
.wa-time {
  position: absolute;
  bottom: 3px;
  inset-inline-end: 8px;
  font-size: 8.5px;
  color: #8696a0;
  display: flex;
  gap: 2px;
  direction: ltr;
}
.wa-out .wa-time { color: rgba(255, 255, 255, 0.62); }
.wa-ticks { font-style: normal; color: #53bdeb; }
.wa-quote { width: 88%; max-width: 88%; padding-bottom: 16px; }
.waq-top {
  font-weight: 800;
  font-size: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 4px;
  margin-bottom: 5px;
}
.waq-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 10.5px;
  padding: 2px 0;
  color: rgba(255, 255, 255, 0.87);
}
.waq-total {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 4px;
}
.waq-sign {
  margin-top: 6px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 6px;
  padding: 5px;
  color: #6ee7b7;
}

/* glass feature cards */
body.theme-dark .features { max-width: 1080px; gap: 16px; }
body.theme-dark .feature {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 16px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
body.theme-dark .feature::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110, 231, 183, 0.55), transparent);
}
body.theme-dark .feature:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
body.theme-dark .feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16, 185, 129, 0.42);
  background: rgba(16, 185, 129, 0.09);
  color: var(--gold-soft);
  margin: 0 auto 12px;
}
body.theme-dark .feature-icon svg { width: 22px; height: 22px; }
@media (min-width: 640px) {
  body.theme-dark .features { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  body.theme-dark .features { grid-template-columns: repeat(4, 1fr); }
}

/* hide old tag slot if present */
body.theme-dark .topbar-tag { display: none; }

/* ---------- סעיפים אופציונליים ---------- */
.row-opt {
  display: block;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-faint);
  cursor: pointer;
  margin: 0 0 4px auto;
  transition: border-color .15s, color .15s, background .15s;
}
.row-opt:hover { border-color: var(--brand); color: var(--brand); }
.row-opt.on {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(79, 70, 229, 0.07);
}
.opt-tag {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--brand);
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.25);
  border-radius: 999px;
  padding: 1px 8px;
  margin-inline-start: 6px;
  white-space: nowrap;
}
.col-pick { width: 56px; text-align: center; }
.opt-check { width: 19px; height: 19px; accent-color: var(--brand); cursor: pointer; }
tr.opt-excluded td { opacity: 0.45; }
tr.opt-excluded td.col-pick { opacity: 1; }
tr.not-chosen td { opacity: 0.5; }
tr.not-chosen .td-desc, tr.not-chosen .row-total { text-decoration: line-through; }
@media (max-width: 600px) {
  .items-table tr { grid-template-columns: 1fr 1fr 1fr auto auto; }
}

/* ---------- חבילות (שלב ב) ---------- */
.row-tier {
  display: block;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-faint);
  margin: 0 0 4px auto;
  max-width: 92px;
}
.tier-names {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--ink-faint);
}
.tier-name-in { width: 110px; padding: 6px 10px; font-size: 13px; }
.tier-pick { margin: 14px 0 4px; }
.tier-pick-title { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.tier-cards { display: flex; gap: 10px; flex-wrap: wrap; }
.tier-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  min-width: 120px;
  transition: border-color .15s, background .15s;
}
.tier-card input { position: absolute; opacity: 0; pointer-events: none; }
.tier-card.on { border-color: var(--brand); background: rgba(79, 70, 229, 0.07); }
.tier-card-name { font-size: 14.5px; font-weight: 700; }
.tier-card-meta { font-size: 12px; color: var(--ink-faint); }
.tier-chosen { font-size: 14px; padding: 8px 0; }
.tier-tag {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--brand);
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.25);
  border-radius: 999px;
  padding: 1px 8px;
  margin-inline-start: 6px;
  white-space: nowrap;
}

.row-dup {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}
.row-dup:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- שורת הנחה ---------- */
.discount-row .discount-in {
  width: 84px;
  text-align: left;
  font-weight: 700;
  border-bottom: 1.5px dashed var(--line);
  padding: 1px 2px;
}
.discount-row .discount-in:focus { border-bottom-color: var(--brand); outline: none; }
.discount-view span:last-child { color: #b91c1c; font-weight: 700; }

/* קוד שחזור */
.link-btn { background: none; border: none; padding: 0; font: inherit; color: var(--accent, #059669); text-decoration: underline; cursor: pointer; }
.rec-code-row { display: flex; align-items: center; gap: 10px; margin: 8px 0 14px; flex-wrap: wrap; }
.rec-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 18px; letter-spacing: 1px; background: rgba(79,70,229,.08); border: 1px solid rgba(79,70,229,.25); border-radius: 10px; padding: 10px 14px; user-select: all; }
body.theme-dark .rec-code { background: rgba(129,140,248,.12); border-color: rgba(129,140,248,.35); }

/* מחירון: הוספה/הסרה */
.price-hide { font-size: 13px; padding: 2px 6px; flex-shrink: 0; }
.price-add-row { display: flex; align-items: center; gap: 8px; padding: 10px 0 4px; flex-wrap: wrap; }
.price-add-desc { flex: 1 1 160px; min-width: 0; font-size: 14px; }
.price-add-row .price-input { flex: 0 0 90px; }
.brand-mark svg { width: 19px; height: 19px; }

/* ---------- לוח מעקב הצעות ---------- */
.dash-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.dash-count { font-size: 12px; font-weight: 600; color: var(--ink-2, #475569); background: rgba(15, 23, 42, .05); padding: 3px 10px; border-radius: 999px; }
.dash-count-exp { color: #b91c1c; background: rgba(185, 28, 28, .08); }
.dash-list { display: flex; flex-direction: column; gap: 6px; }
.dash-row { align-items: center; }
.dash-chip { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.dash-sent { color: #475569; background: rgba(71, 85, 105, .1); }
.dash-viewed { color: #b45309; background: rgba(180, 83, 9, .1); }
.dash-signed { color: #047857; background: rgba(4, 120, 87, .1); }
.dash-expired { color: #b91c1c; background: rgba(185, 28, 28, .08); }
.dash-followup { color: #0369a1; background: rgba(3, 105, 161, .09); }

/* ---------- הכתבה קולית ---------- */
.mic-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border: 1px solid rgba(15, 23, 42, .15); background: transparent; border-radius: 8px; cursor: pointer;
  color: #475569; padding: 5px; margin-inline-start: 6px; vertical-align: middle; flex: none; }
.mic-btn svg { width: 18px; height: 18px; }
.mic-btn:hover { color: #059669; border-color: #059669; }
.mic-btn:focus-visible { outline: 2px solid #059669; outline-offset: 2px; }
.mic-btn.listening { color: #fff; background: #dc2626; border-color: #dc2626; }
.td-desc { position: relative; }
.td-desc .mic-btn { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); }
.td-desc .item-desc { padding-inline-end: 40px; }
.composer-mic { width: 34px; height: 34px; margin-inline-start: 10px; }
.composer-label { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.mic-note { font-size: 12px; color: #b91c1c; font-weight: 400; }
@media (prefers-reduced-motion: no-preference) {
  .mic-btn.listening { animation: micPulse 1.2s ease-in-out infinite; }
  @keyframes micPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .45); } 50% { box-shadow: 0 0 0 7px rgba(220, 38, 38, 0); } }
}
body.theme-dark .mic-btn { color: #94a3b8; border-color: rgba(148, 163, 184, .25); }
body.theme-dark .mic-btn:hover { color: #6ee7b7; border-color: #6ee7b7; }
body.theme-dark .mic-btn.listening { color: #fff; background: #dc2626; border-color: #dc2626; }
