:root { --bg:#f6f7fb; --card:#ffffff; --text:#171a22; --muted:#535b6c; --accent:#2856c8; --line:#e3e6ee; }
@media (prefers-color-scheme: dark) { :root { --bg:#0e1117; --card:#171b24; --text:#e8eaf0; --muted:#9aa3b5; --accent:#7aa2ff; --line:#2a3040; } }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--text); font-family:"Segoe UI",Arial,"Noto Sans Hebrew",sans-serif; line-height:1.65; }
main { max-width:760px; margin:0 auto; padding:32px 16px 64px; }
header { display:flex; align-items:center; gap:14px; margin-bottom:24px; }
header img { width:56px; height:56px; border-radius:13px; }
header h1 { font-size:24px; margin:0; }
header p { margin:0; color:var(--muted); font-size:15px; }
nav { display:flex; gap:16px; flex-wrap:wrap; margin-bottom:24px; font-size:15px; }
nav a, a { color:var(--accent); text-decoration:none; }
section { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:20px 22px; margin-bottom:18px; }
h2 { font-size:19px; margin:0 0 8px; }
h3 { font-size:16px; margin:18px 0 4px; }
ul { padding-inline-start:20px; margin:6px 0; }
.muted { color:var(--muted); font-size:14px; }
.en { direction:ltr; text-align:left; }
.steps li { margin-bottom:6px; }
footer { color:var(--muted); font-size:13px; text-align:center; margin-top:28px; }
.btn { display:inline-block; background:var(--accent); color:#fff !important; padding:10px 18px; border-radius:10px; font-weight:600; }
code { background:rgba(127,127,127,.15); padding:1px 6px; border-radius:5px; direction:ltr; unicode-bidi:embed; }
.price { font-size:26px; font-weight:700; margin:6px 0 12px; }
table { width:100%; border-collapse:collapse; margin:8px 0; font-size:15px; }
th, td { text-align:start; vertical-align:top; padding:8px 6px; border-bottom:1px solid var(--line); }
th { color:var(--muted); font-weight:600; font-size:14px; }
section { overflow-x:auto; }
@media (max-width: 600px) {
  table, tbody, tr, td { display:block; width:100%; }
  tr:first-child { display:none; }
  tr { border-bottom:1px solid var(--line); padding:6px 0; }
  td { border:0; padding:2px 0; }
  td:first-child { font-weight:600; }
}
code.addr { display:inline-block; white-space:nowrap; direction:ltr; margin-top:4px; font-size:15px; }
/* forms */
label { display:block; font-weight:600; margin:12px 0 4px; }
input, select { width:100%; font:inherit; padding:11px 12px; border-radius:10px; border:1px solid var(--line); background:var(--bg); color:var(--text); }
input[dir=ltr], .ltr { direction:ltr; text-align:left; }
button.btn, .btn { border:0; cursor:pointer; font:inherit; font-weight:700; }
button.btn[disabled] { opacity:.5; cursor:default; }
.seg { display:flex; gap:8px; flex-wrap:wrap; }
.seg button { flex:1; min-width:90px; padding:12px 8px; border-radius:12px; border:2px solid var(--line); background:var(--card); color:var(--text); font:inherit; cursor:pointer; }
.seg button.on { border-color:var(--accent); box-shadow:0 0 0 1px var(--accent) inset; font-weight:700; }
.seg small { display:block; color:var(--muted); font-weight:400; }
.total { display:flex; justify-content:space-between; align-items:baseline; gap:12px; margin:14px 0 4px; }
.total b { font-size:30px; }
.msg { margin-top:12px; padding:10px 12px; border-radius:10px; }
.msg.err { background:rgba(220,60,60,.12); color:#c0392b; }
.msg.ok { background:rgba(40,160,80,.12); color:#1e8449; }
.code { font-family:ui-monospace,Consolas,monospace; font-size:24px; font-weight:700; letter-spacing:1px; direction:ltr; display:inline-block; padding:8px 14px; border-radius:10px; background:rgba(127,127,127,.12); }
.qty { display:flex; align-items:center; gap:10px; }
.qty button { width:46px; height:46px; border-radius:12px; border:1px solid var(--line); background:var(--card); color:var(--text); font-size:22px; cursor:pointer; }
.qty input { width:90px; text-align:center; font-size:20px; font-weight:700; }

/* order progress */
.progress { display:flex; gap:8px; margin:6px 0 4px; list-style:none; padding:0; }
.progress li { flex:1; text-align:center; font-size:14px; color:var(--muted); position:relative; padding-top:46px; }
.progress li::before { content:attr(data-n); position:absolute; top:0; left:50%; transform:translateX(-50%); width:38px; height:38px; border-radius:50%;
  border:2px solid var(--line); background:var(--card); color:var(--muted); font-weight:700; font-size:17px; line-height:34px; }
.progress li.done { color:var(--text); }
.progress li.done::before { content:"✓"; background:#1e8449; border-color:#1e8449; color:#fff; }
.progress li.now { color:var(--text); font-weight:700; }
.progress li.now::before { border-color:var(--accent); color:var(--accent); }
/* accessibility */
.skip { position:absolute; inset-inline-start:-9999px; top:8px; background:var(--accent); color:#fff !important; padding:8px 14px; border-radius:8px; z-index:10; }
.skip:focus { inset-inline-start:8px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline:3px solid #f0b400; outline-offset:2px; }
a:hover { text-decoration:underline; }
/* links inside text are underlined, not only colored */
p a:not(.btn), li a:not(.btn), td a:not(.btn), label a, footer a, .msg a { text-decoration:underline; text-underline-offset:2px; }
/* Language (lang.js): one language at a time */
html.lang-en[data-bilingual] main > section:not(.en) { display:none; }
html.lang-he[data-bilingual] main > section.en { display:none; }
html.lang-en:not(.lang-ready) main { visibility:hidden; }
html[dir=ltr] .en { text-align:start; }
/* Guided setup (wizard.js) */
.wz-cta { display:flex; align-items:center; gap:14px; flex-wrap:wrap; background:var(--card); border:1px solid var(--accent); border-radius:14px; padding:16px 20px; margin-bottom:18px; }
.wz-cta p { margin:0; flex:1; min-width:200px; }
button.btn { border:0; cursor:pointer; font:inherit; font-weight:600; }
dialog.wz { width:min(560px, calc(100vw - 24px)); max-height:calc(100vh - 24px); border:0; border-radius:18px; padding:20px 22px 18px; background:var(--card); color:var(--text); box-shadow:0 30px 80px rgba(0,0,0,.35); display:none; flex-direction:column; }
dialog.wz[open] { display:flex; }
dialog.wz::backdrop { background:rgba(10,14,22,.55); }
.wz-head { display:flex; justify-content:space-between; align-items:center; }
.wz-count { font-size:14px; color:var(--muted); font-variant-numeric:tabular-nums; }
.wz-x { background:none; border:0; font-size:28px; line-height:1; color:var(--muted); cursor:pointer; padding:0 4px; }
.wz-bar { height:5px; border-radius:3px; background:var(--line); margin:10px 0 16px; overflow:hidden; }
.wz-bar i { display:block; height:100%; background:var(--accent); transition:width .25s; }
dialog.wz h2 { font-size:22px; margin:0 0 10px; outline:none; }
.wz-body { overflow:auto; min-height:160px; }
.wz-body ol, .wz-body ul { padding-inline-start:22px; margin:6px 0 10px; }
.wz-body li { margin-bottom:6px; }
.wz-muted { color:var(--muted); font-size:14px; }
.wz-warn { color:#b4452c; font-size:14px; font-weight:600; }
.wz-copy { display:flex; gap:8px; align-items:center; margin:6px 0 12px; direction:ltr; }
.wz-copy code { flex:1; padding:8px 10px; font-size:15px; overflow-x:auto; white-space:nowrap; }
.wz-cbtn { border:1px solid var(--line); background:var(--bg); color:var(--text); border-radius:8px; padding:7px 12px; cursor:pointer; font:inherit; font-size:14px; }
.wz-choice { display:grid; gap:10px; margin:8px 0 14px; }
.wz-opt { text-align:start; border:2px solid var(--line); background:var(--bg); color:var(--text); border-radius:12px; padding:12px 14px; cursor:pointer; font:inherit; display:flex; flex-direction:column; gap:2px; }
.wz-opt span { font-size:14px; color:var(--muted); }
.wz-opt.on { border-color:var(--accent); }
.wz-table { border-collapse:collapse; width:100%; margin:6px 0 12px; font-size:15px; direction:ltr; text-align:left; }
.wz-table td { border-bottom:1px solid var(--line); padding:7px 6px; }
.wz-ip { display:flex; align-items:center; gap:4px; direction:ltr; font-family:monospace; font-size:16px; margin:8px 0 12px; flex-wrap:wrap; }
.wz-ip input { flex:1; min-width:140px; font:inherit; padding:8px 10px; }
a.btn.off { opacity:.45; pointer-events:none; }
.wz-hint { margin-top:10px; font-size:14px; }
.wz-hint summary { cursor:pointer; color:var(--accent); }
.wz-foot { display:flex; justify-content:space-between; gap:10px; margin-top:14px; padding-top:14px; border-top:1px solid var(--line); }
.wz-back { background:none; border:1px solid var(--line); color:var(--text); border-radius:10px; padding:10px 18px; cursor:pointer; font:inherit; }
.wz-foot .btn { margin-inline-start:auto; }
.wz-file { background:var(--bg); border:1px solid var(--line); border-radius:10px; padding:10px 12px; margin:0 0 12px; font-size:14px; }
