/* Palette and type from the approved prototype (prototypes/romiproperties-portal.html). */
:root {
  --navy: #1E2761; --navy2: #273272; --gold: #C89B3C; --ice: #CADCFC;
  --bg: #F5F7FB; --card: #FFFFFF; --txt: #22283F; --muted: #5A6178; --line: #E3E8F2;
  --good: #1B7A4B; --serious: #B3261E; --field: #C9D2E3; --soft: #F2F5FB;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Arial, 'Noto Sans Hebrew', sans-serif; background: var(--bg); color: var(--txt); line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 1150px; margin: 0 auto; padding: 0 16px; }
[hidden] { display: none !important; }

header { background: var(--navy); color: #fff; }
.bar { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; }
.logo { font-weight: 800; font-size: 1.15rem; }
.logo span { color: var(--gold); }
.demo { background: var(--gold); color: var(--navy); font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.lang { background: transparent; color: var(--ice); border: 1px solid var(--ice); border-radius: 8px; padding: 5px 12px; font: inherit; font-size: .85rem; cursor: pointer; }
.banner { background: #FFF6E0; color: #6B4A00; text-align: center; font-size: .85rem; padding: 6px 16px; border-bottom: 1px solid #F0DDA8; }

main { flex: 1; padding: 28px 16px 60px; }
h1 { color: var(--navy); font-size: 1.35rem; margin: 4px 0 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin: 0 auto 18px; max-width: 640px; }
.muted { color: var(--muted); font-size: .88rem; font-weight: 400; }
.stack { display: grid; gap: 12px; }

label { font-size: .86rem; font-weight: 700; display: block; }
input, select { display: block; width: 100%; margin-top: 5px; padding: 9px 12px; border: 1px solid var(--field); border-radius: 8px; font: inherit; font-size: .95rem; background: #fff; }
input:focus, select:focus, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
input[dir="ltr"] { text-align: left; }
input.code { width: 190px; font-size: 1.3rem; letter-spacing: .5em; text-align: center; font-family: monospace; }
input[readonly] { background: var(--soft); color: var(--muted); }

.btn { padding: 10px 20px; border: none; border-radius: 8px; background: var(--navy); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.secondary { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.link { background: none; border: none; color: var(--navy); text-decoration: underline; font: inherit; font-size: .83rem; cursor: pointer; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.err { color: var(--serious); font-size: .88rem; }
.ok { color: var(--good); font-weight: 800; }

.steps { display: flex; gap: 6px; margin-bottom: 18px; font-size: .82rem; font-weight: 700; }
.steps span { flex: 1; text-align: center; padding: 7px 4px; border-radius: 8px; background: #E7EBF4; color: #7A849B; }
.steps span.on { background: var(--navy); color: #fff; }
.steps span.done { background: var(--ice); color: var(--navy); }

.qr { display: flex; justify-content: center; margin: 12px 0; }
.qr svg { width: 200px; height: 200px; background: #fff; }
.secret { font-family: monospace; font-size: 1rem; letter-spacing: .08em; background: var(--soft); border-radius: 8px; padding: 8px 12px; word-break: break-all; }

table { width: 100%; border-collapse: collapse; font-size: .86rem; }
th, td { text-align: start; padding: 7px 6px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 700; }

footer { background: var(--navy); color: var(--ice); font-size: .75rem; padding: 18px 0; }
footer p + p { margin-top: 6px; }
footer .todo { color: #F3D58F; }

@media (max-width: 560px) {
  .steps { font-size: .7rem; }
  .card { padding: 16px; }
}
