/* SurvivalZone app — dark, high-contrast, large touch targets */
:root {
  --bg: #0B0C0A; --card: #141613; --card2: #1A1D18; --line: #2A2D28;
  --text: #EDE9E1; --muted: #A8A49B; --dim: #7E7B73;
  --green: #7DBA8E; --green-d: #5E9E70; --orange: #E8692F; --cta: #C84A1B; --red: #D9483B;
  --r: 14px; --safe-b: env(safe-area-inset-bottom, 0px);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { min-height: 100vh; font-size: 16px; line-height: 1.5; -webkit-tap-highlight-color: transparent; }
a { color: var(--green); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: 1.6rem; letter-spacing: -.01em; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; }
p { margin: 0 0 .8em; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; background: rgba(11,12,10,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-weight: 800; letter-spacing: .06em; font-size: .95rem; }
.brand b { color: var(--green); font-weight: 800; }
.brand img { border-radius: 8px; }
.net { font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.net.off { color: #fff; background: #3A2A1A; border-color: #6A3F1F; }
.net.on::before, .net.off::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: var(--green); }
.net.off::before { background: var(--orange); }

main { padding: 16px 16px calc(96px + var(--safe-b)); max-width: 720px; margin: 0 auto; outline: none; }

.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: grid; grid-template-columns: repeat(var(--n, 4), 1fr);
  background: rgba(15,17,14,.97); border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px 10px; text-decoration: none; color: var(--dim); font-size: .72rem; font-weight: 600; }
.tabs a svg { width: 24px; height: 24px; }
.tabs a[aria-current="page"] { color: var(--text); }
.tabs a[aria-current="page"] svg { color: var(--green); }
.tabs a.sos { color: #fff; }
.tabs a.sos svg { color: var(--red); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 12px; }
.card.warn { background: #1F1510; border-color: #5A2E18; }
.card.ok { background: #121A14; border-color: #2D4A35; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.label { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-bottom: 6px; }
.label.g { color: var(--green); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; gap: 6px; min-height: 104px; padding: 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line);
  text-decoration: none; color: var(--text); font-weight: 700; font-size: .98rem; line-height: 1.2; }
.tile .ico { font-size: 1.6rem; line-height: 1; }
.tile small { font-weight: 500; color: var(--muted); font-size: .78rem; }
.tile:active { transform: scale(.98); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card2); color: var(--text); font-weight: 700; text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--cta); border-color: var(--cta); color: #fff; }
.btn.green { background: #1E3325; border-color: #2D4A35; color: #DDF0E2; }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.block { display: flex; width: 100%; }
.btn[disabled] { opacity: .5; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.stack > * + * { margin-top: 10px; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 10px 0 10px 44px; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 9px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cta); color: #fff; font-weight: 800; font-size: .95rem; }
.steps.g li::before { background: #2D4A35; color: #DDF0E2; }
ul.dots { padding-left: 20px; margin: 0; }
ul.dots li { margin: 4px 0; }
ul.no { list-style: none; padding: 0; margin: 0; }
ul.no li { padding: 4px 0 4px 26px; position: relative; }
ul.no li::before { content: "✕"; position: absolute; left: 2px; color: var(--red); font-weight: 800; }

.check { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.check:last-child { border-bottom: 0; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--green-d); flex: none; }
.check .q { margin-left: auto; color: var(--green); font-weight: 700; white-space: nowrap; padding-left: 8px; }
.check.done span:first-of-type { color: var(--dim); text-decoration: line-through; }

.field { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.field:last-child { border-bottom: 0; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card2); font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.stepper output { min-width: 28px; text-align: center; font-weight: 800; font-size: 1.1rem; }
input[type=text], input[type=tel], input[type=number], input[type=time], select, textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card2); }
.toggle { display: flex; align-items: center; gap: 10px; }
.toggle input { width: 22px; height: 22px; accent-color: var(--green-d); }

.bar { height: 10px; border-radius: 999px; background: var(--card2); overflow: hidden; border: 1px solid var(--line); }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--green-d), var(--green)); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chip { flex: none; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: .85rem; font-weight: 600; cursor: pointer; }
.chip[aria-pressed="true"] { background: #1E3325; border-color: #2D4A35; color: #DDF0E2; }

.place { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); cursor: pointer; width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; }
.place .pi { font-size: 1.3rem; width: 28px; text-align: center; }
.place .pn { font-weight: 600; }
.place .pd { margin-left: auto; text-align: right; white-space: nowrap; font-weight: 700; color: var(--green); }
.place .pd small { display: block; font-weight: 500; color: var(--muted); }

.radar { width: 100%; max-width: 360px; aspect-ratio: 1; display: block; margin: 0 auto; }
.nav-target { text-align: center; }
.arrow { width: 180px; height: 180px; margin: 6px auto; display: block; transition: transform .25s ease-out; }
.big { font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }

.sos-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-height: 120px; border-radius: 20px; background: var(--red);
  color: #fff; text-decoration: none; font-weight: 800; font-size: 2.6rem; letter-spacing: .02em; border: 0; }
.sos-btn small { font-size: .95rem; font-weight: 600; letter-spacing: 0; opacity: .9; }
.coords { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.15rem; font-weight: 700; word-break: break-all; }

.flash { position: fixed; inset: 0; z-index: 50; background: #000; display: flex; align-items: flex-end; justify-content: center; padding-bottom: calc(40px + var(--safe-b)); }
.flash.on { background: #fff; }
.flash button { background: rgba(60,60,60,.85); color: #fff; border: 0; border-radius: 999px; padding: 14px 26px; font-weight: 700; font-size: 1rem; }

.toast { position: fixed; left: 50%; bottom: calc(86px + var(--safe-b)); transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none; z-index: 60;
  background: #26302A; color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: .9rem; transition: all .25s; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 600; margin-bottom: 10px; min-height: 40px; }
details.card summary { cursor: pointer; font-weight: 700; list-style: none; }
details.card summary::-webkit-details-marker { display: none; }
details.card summary::after { content: "+"; float: right; color: var(--muted); font-weight: 800; }
details.card[open] summary::after { content: "–"; }
details.card[open] summary { margin-bottom: 8px; }

/* Battery saver: pure black, no decoration */
body.saver { --card: #000; --card2: #000; --line: #222; --bg: #000; }
body.saver * { animation: none !important; transition: none !important; box-shadow: none !important; }

@media (min-width: 600px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Map */
.mapwrap { position: relative; height: 56vh; min-height: 320px; max-height: 620px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #0E100D; }
.mapwrap canvas { display: block; width: 100%; height: 100%; }
.mapctl { position: absolute; right: 10px; bottom: 28px; display: flex; flex-direction: column; gap: 8px; }
.mapctl button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: rgba(20,22,19,.92); color: var(--text); font-size: 1.25rem; font-weight: 700; cursor: pointer; }
.mapctl button[aria-pressed="true"] { background: #1E3325; border-color: #2D4A35; }
.mapcard { position: absolute; left: 10px; right: 64px; bottom: 28px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(20,22,19,.96); border: 1px solid var(--line); }
.mapcard[hidden] { display: none; }
.dirline { text-align: center; margin: 10px 0 4px; }
.dialwrap { display: flex; justify-content: center; margin: 6px 0; }
.dial .ring, .dial .needle { transition: transform .25s ease-out; }

.langbtn { min-width: 40px; height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card2); color: var(--text); font-weight: 800; font-size: .78rem; letter-spacing: .06em; cursor: pointer; }
.net, .langbtn { white-space: nowrap; }
@media (max-width: 360px) {
  .top { padding-left: 12px; padding-right: 12px; }
  .brand { font-size: .8rem; gap: 6px; }
  .brand img { width: 26px; height: 26px; }
  .net { padding: 4px 8px; font-size: .7rem; }
  .langbtn { min-width: 34px; padding: 0 8px; }
}
.top .row { flex-wrap: nowrap; }

[hidden] { display: none !important; }
button.sos-btn { cursor: pointer; font-family: inherit; }

.checkrow { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.checkrow:last-child { border-bottom: 0; }
.checkrow .check { flex: 1; border-bottom: 0; }
.buy { flex: none; font-size: .8rem; font-weight: 700; color: var(--orange); text-decoration: none; padding: 6px 10px; border: 1px solid #5A2E18; border-radius: 999px; }
.q2 { display: block; color: var(--green); font-size: .88rem; margin-top: 2px; }
.check.done .q2 { color: var(--dim); }

.startcard { margin-bottom: 18px; }
.stepline { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #2D4A35; color: var(--text); text-decoration: none; font-weight: 600; }
.stepline .num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--cta); color: #fff; font-weight: 800; font-size: .9rem; }
.stepline.done .num { background: #2D4A35; color: #DDF0E2; }
.stepline.done span:nth-child(2) { color: var(--muted); text-decoration: line-through; }
.stepline small { display: block; font-weight: 500; color: var(--muted); margin-top: 3px; }
.stepline em { margin-left: auto; font-style: normal; color: var(--green); font-weight: 700; font-size: .85rem; }
.tabhelp { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: .85rem; color: var(--muted); }
.tabhelp b { color: var(--text); }

/* Guided tour */
.tour-block { position: fixed; inset: 0; z-index: 80; }
.tour-ring { position: fixed; z-index: 81; border-radius: 14px; pointer-events: none; box-shadow: 0 0 0 9999px rgba(4,5,4,.74), 0 0 0 3px #E8692F; animation: tourPulse 1.6s ease-out infinite; transition: top .25s, left .25s, width .25s, height .25s; }
@keyframes tourPulse { 0% { box-shadow: 0 0 0 9999px rgba(4,5,4,.74), 0 0 0 3px #E8692F, 0 0 0 3px rgba(232,105,47,.6); } 100% { box-shadow: 0 0 0 9999px rgba(4,5,4,.74), 0 0 0 3px #E8692F, 0 0 0 16px rgba(232,105,47,0); } }
.tour-tip { position: fixed; left: 16px; right: 16px; max-width: 440px; margin: 0 auto; z-index: 82; background: #161814; border: 1px solid #5A2E18; border-radius: 16px; padding: 14px 16px 12px; box-shadow: 0 18px 50px rgba(0,0,0,.6); }
.tour-tip b { display: block; font-size: 1.05rem; margin: 2px 0 4px; }
.tour-tip p { margin: 0 0 10px; color: #D6D2CA; font-size: .95rem; }
.tour-step { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.tour-dots { display: flex; gap: 5px; margin-bottom: 10px; }
.tour-dots i { width: 18px; height: 4px; border-radius: 4px; background: #34372F; }
.tour-dots i.done { background: #7A4A33; } .tour-dots i.on { background: var(--orange); width: 28px; }
.tour-btns { display: flex; gap: 8px; align-items: center; }
.tour-btns button { min-height: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--card2); color: var(--text); font-weight: 700; padding: 0 16px; cursor: pointer; }
.tour-btns .tour-skip { background: none; border: 0; color: var(--muted); padding: 0 6px; }
.tour-btns .tour-next { margin-left: auto; background: var(--cta); border-color: var(--cta); color: #fff; }
.helpbtn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--card2); color: var(--text); font-weight: 800; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .tour-ring { animation: none; } }

/* Crisis step-by-step */
.cs-head { display: flex; align-items: center; gap: 12px; margin: 4px 0 12px; }
.cs-head .bar { flex: 1; }
.cs-head b { white-space: nowrap; color: var(--orange); font-size: .9rem; }
.cs-step { display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); margin-bottom: 8px; }
.cs-step .n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #26291F; color: var(--muted); font-weight: 800; }
.cs-step.done { opacity: .6; } .cs-step.done .n { background: #2D4A35; color: #DDF0E2; }
.cs-step.todo { opacity: .55; }
.cs-step.now { border: 2px solid var(--orange); background: #1F1510; box-shadow: 0 0 0 4px rgba(232,105,47,.15); }
.cs-step.now .n { background: var(--cta); color: #fff; }
.cs-step .tag { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .14em; color: #fff; background: var(--cta); border-radius: 999px; padding: 2px 8px; margin-bottom: 6px; }
.cs-step p { margin: 0; }
.cs-step .btn { margin-top: 10px; }
.cs-sec { font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--green); margin: 14px 0 8px; }

.buy.partner { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; border-color: #2D4A35; color: var(--green); max-width: 120px; text-align: right; }
.buy.partner small { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kitcard { display: block; text-decoration: none; color: inherit; border-color: #5A2E18; background: #1F1510; }
.kitcard b { display: block; margin: 2px 0; }

/* Location consent (first visit) */
.loc-ask { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; background: rgba(5,6,5,.72); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s; padding: 16px; }
.loc-ask.on { opacity: 1; }
.loc-card { width: 100%; max-width: 440px; background: #161814; border: 1px solid #5A2E18; border-radius: 22px; padding: 22px 20px 14px; box-shadow: 0 20px 60px rgba(0,0,0,.6); transform: translateY(24px); transition: transform .25s; text-align: center; }
.loc-ask.on .loc-card { transform: none; }
@media (min-height: 640px) { .loc-ask { align-items: center; } }
.loc-ico { position: relative; width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; background: rgba(232,106,31,.15); display: grid; place-items: center; font-size: 30px; }
.loc-ico span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--cta); animation: locpulse 1.8s ease-out infinite; }
@keyframes locpulse { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.loc-card h2 { margin: 0 0 6px; font-size: 22px; }
.loc-card p { margin: 0 0 10px; color: var(--muted, #B9BDB3); }
.loc-list { list-style: none; padding: 0; margin: 0 0 12px; text-align: left; display: grid; gap: 8px; }
.loc-list li { background: #1E211C; border-radius: 12px; padding: 10px 12px; font-size: 15px; }
.loc-priv { font-size: 13px; }
.loc-denied { background: rgba(214,54,54,.12); border: 1px solid rgba(214,54,54,.4); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; font-size: 14px; text-align: left; }
.loc-no { background: none; border: 0; color: var(--muted, #B9BDB3); font: inherit; padding: 12px; margin-top: 4px; width: 100%; cursor: pointer; text-decoration: underline; }

/* Pick a place on the map: the star stays in the middle, the map moves under it */
.pickmap .pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); font-size: 34px; pointer-events: none; filter: drop-shadow(0 3px 4px rgba(0,0,0,.7)); }
.pickmap .pin::after { content: ''; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--cta); box-shadow: 0 0 0 3px rgba(232,106,31,.35); }

/* Medicines */
.dose { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.dose:first-of-type { border-top: 0; }
.dose .dt { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 48px; }
.dose .dn { flex: 1; min-width: 0; }
.dose .dn small { display: block; color: var(--muted, #B9BDB3); }
.dose .btn { min-height: 40px; padding: 8px 14px; white-space: nowrap; }
.dose.taken .dt, .dose.taken .dn b { opacity: .55; text-decoration: line-through; }
.dose.now { background: rgba(232,106,31,.10); margin: 0 -12px; padding: 10px 12px; border-radius: 12px; }
.tag-now, .tag-miss { display: inline-block; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 2px 7px; border-radius: 999px; margin-top: 3px; }
.tag-now { background: var(--cta); color: #fff; animation: locpulse2 1.6s ease-in-out infinite; }
.tag-miss { background: rgba(214,54,54,.18); color: #FF8A80; }
@keyframes locpulse2 { 50% { opacity: .6; } }
.medrow { display: block; text-decoration: none; color: inherit; }
.medrow .times { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.medrow .times span { background: #1E211C; border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 700; }
.medrow .times .supply { background: none; font-weight: 600; }
.supply.okt { color: #8FD19E; } .supply.warnt { color: var(--cta); } .supply.bad { color: #FF8A80; }
.flabel { display: block; font-size: 14px; font-weight: 700; margin: 14px 0 6px; }
.timelist .trow { display: flex; gap: 8px; margin-bottom: 8px; }
.timelist .trow input { flex: 1; }
.timelist .trow .btn { min-height: 44px; padding: 8px 14px; }
.medsos { margin: 0 0 10px; padding-left: 18px; } .medsos li { margin-bottom: 6px; }
.meddue { border-color: var(--cta) !important; }

details.card summary .okc { color: var(--green, #5E9E70); font-weight: 700; margin-left: 6px; }
details.card summary .todo { color: var(--cta); font-weight: 700; margin-left: 6px; }
.toolrow { display: flex; justify-content: space-between; align-items: center; text-decoration: none; color: inherit; font-weight: 700; }
.toolrow em { font-style: normal; color: var(--muted); }

/* Home readiness list */
.readylist { padding: 4px 14px; }
.readyrow { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.readyrow:first-child { border-top: 0; }
.readyrow .ri { width: 26px; text-align: center; font-size: 18px; }
.readyrow b { flex: 1; font-weight: 700; }
.readyrow .rs { font-size: 13px; font-weight: 700; }
.readyrow .rs.okc { color: var(--green, #5E9E70); } .readyrow .rs.todo { color: var(--cta); }
.readyrow em { font-style: normal; color: var(--muted); }
.protease { display: block; text-decoration: none; color: inherit; border-color: #5A4A18 !important; background: linear-gradient(135deg, #1b1a12, #161814); }
.protease b { display: block; margin: 2px 0 4px; } .protease .label { color: #E0B84E; }
.prohint { display: block; margin-top: 12px; font-size: 13px; color: #E0B84E; text-decoration: none; }
/* Pro screen */
.prohero .label { color: #E0B84E; }
.ticks { list-style: none; padding: 0; margin: 0; } .ticks li { padding: 6px 0 6px 26px; position: relative; } .ticks li::before { content: '✓'; position: absolute; left: 2px; color: var(--green, #5E9E70); font-weight: 800; }
.procard { border-color: #5A4A18 !important; } .procard .label { color: #E0B84E; }
.soon { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: rgba(224,184,78,.15); color: #E0B84E; padding: 3px 8px; border-radius: 999px; }
.profeat > div { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); } .profeat > div:first-child { border-top: 0; }
.profeat span { font-size: 22px; width: 28px; text-align: center; } .profeat p { margin: 0; } .profeat small { display: block; color: var(--muted, #B9BDB3); }
.price { margin: 10px 0 0; font-weight: 700; color: #E0B84E; font-size: 14px; }
input[type=email] { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card2); }
/* Wizard */
.wsteps { display: flex; align-items: center; gap: 6px; margin: 4px 0 14px; } .wsteps i { width: 28px; height: 6px; border-radius: 3px; background: var(--line); } .wsteps i.on { background: var(--cta); } .wsteps i.done { background: var(--green, #5E9E70); } .wsteps span { margin-left: 8px; font-size: 13px; color: var(--muted); }
input.big { font-size: 20px; padding: 16px; }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.slot { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--card2, #1E211C); color: inherit; font: inherit; cursor: pointer; text-align: left; }
.slot span { color: var(--muted); font-variant-numeric: tabular-nums; }
.slot[aria-pressed=true] { border-color: var(--cta); background: rgba(232,106,31,.12); }
.slot[aria-pressed=true] b::before { content: '✓ '; color: var(--cta); }
.donebox { text-align: center; margin: 10px 0 16px; } .bigok { width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%; background: rgba(94,158,112,.18); color: var(--green, #5E9E70); display: grid; place-items: center; font-size: 32px; font-weight: 800; }
#feats { flex-wrap: wrap; overflow: visible; }

/* Assistant */
#askfab { position: fixed; right: 14px; bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; gap: 6px; padding: 10px 16px 10px 12px; border-radius: 999px; background: #1E211C; border: 1px solid var(--cta); color: #fff; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.5); font-weight: 800; }
#askfab span { font-size: 20px; } #askfab[hidden] { display: none; }
.askhead { display: flex; align-items: center; gap: 12px; margin: 4px 0 12px; } .askhead > div:nth-child(2) { flex: 1; }
.askhead .avatar { width: 46px; height: 46px; border-radius: 50%; background: rgba(232,106,31,.15); border: 1px solid var(--cta); display: grid; place-items: center; font-size: 24px; }
.chat { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.msg { max-width: 88%; padding: 11px 14px; border-radius: 16px; line-height: 1.45; font-size: 15px; }
.msg.bot { background: #1A1D18; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.me { background: var(--cta); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg.urgent { border-color: var(--red); background: rgba(214,54,54,.12); }
.msg .src { display: block; font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 4px; letter-spacing: .03em; }
.msg .acts { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.msg .acts .btn { min-height: 40px; padding: 8px 12px; justify-content: flex-start; font-size: 14px; }
.msg .acts .btn small { margin-left: auto; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.msg .acts .buyb { border-color: #5A4A18; }
.typing { display: flex; gap: 5px; } .typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: tdot 1s infinite; } .typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tdot { 50% { opacity: .2; transform: translateY(-3px); } }
.askbar { position: sticky; bottom: calc(70px + env(safe-area-inset-bottom)); display: flex; gap: 8px; background: var(--bg, #0B0C0A); padding: 8px 0; }
.askbar input { flex: 1; } .askbar .btn { min-width: 52px; }
.askfoot { margin-top: 4px; }
#sugg { flex-wrap: wrap; overflow: visible; }
main#view { padding-bottom: 140px; }

/* Onboarding */
body.onb #tabs, body.onb #askfab, body.onb #help { display: none !important; }
body.onb main#view { padding-bottom: 40px; }
.onbwelcome { text-align: center; padding-top: 18px; } .onbwelcome img { border-radius: 22px; margin-bottom: 10px; }
.onbwelcome h1 { font-size: 28px; line-height: 1.15; } .onbwelcome .ticks { text-align: left; margin: 16px 0 20px; }
.onbwelcome .btn { margin-bottom: 10px; }
.btn.big { min-height: 56px; font-size: 17px; font-weight: 800; }
.onbbar { display: flex; align-items: center; gap: 12px; margin: 6px 0 18px; } .onbbar > div { flex: 1; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; } .onbbar i { display: block; height: 100%; background: var(--cta); border-radius: 3px; transition: width .3s; }
.onbskip { background: none; border: 0; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; }
.pickgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.pick { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 14px; min-height: 92px; border-radius: 14px; border: 2px solid var(--line); background: var(--card2); color: inherit; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.pick span { font-size: 24px; } .pick[aria-pressed=true] { border-color: var(--cta); background: rgba(232,106,31,.12); } .pick[aria-pressed=true]::after { content: '✓'; color: var(--cta); font-weight: 800; margin-top: auto; }
.onbloc { text-align: center; } .onbloc .loc-list { margin: 14px 0; } .onbloc .btn { margin-top: 10px; }
.onbdone { text-align: center; margin: 10px 0 18px; } .onbdone .ring { margin-bottom: 8px; }
.nextlist { padding: 4px 14px; } .nextrow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; } .nextrow:first-child { border-top: 0; }
.nextrow .num { width: 28px; height: 28px; border-radius: 50%; background: rgba(232,106,31,.15); color: var(--cta); display: grid; place-items: center; font-weight: 800; flex: none; }
.nextrow > span:nth-child(2) { flex: 1; } .nextrow small { display: block; color: var(--muted); } .nextrow em { font-style: normal; color: var(--muted); }
.choice { justify-content: center; }
/* Home: next step */
.nextcard { display: flex; gap: 14px; align-items: center; border-color: #5A2E18 !important; }
.nextcard .ring { flex: none; } .nxbody { flex: 1; min-width: 0; } .nxbody b { display: block; font-size: 16px; } .nxbody small { display: block; margin: 2px 0 8px; }
.nxgo { min-height: 40px; padding: 8px 14px; font-size: 14px; }
