:root {
  --bg: #0a0e1a;
  --bg2: #101627;
  --panel: #141b30;
  --line: #223052;
  --ink: #e8ecf8;
  --muted: #8b96b5;
  --accent: #2ee6c0;        /* vibrant teal/cyan — beacon glow */
  --accent2: #ff8c2e;       /* vivid orange — beacon flame */
  --accent3: #4f8cff;       /* bright blue — signal dot */
  --warn: #ffb454;
  --bad: #ff5d6c;
  --ok: #2ee6c0;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: radial-gradient(1200px 600px at 70% -10%, #1b2a55 0%, var(--bg) 55%),
              radial-gradient(900px 500px at 10% 110%, #2a1a3a 0%, transparent 60%);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
}
.hidden { display: none !important; }
.muted { color: var(--muted); }
.micro { font-size: .78rem; }
.accent { color: var(--accent); }

/* ---------- topbar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 26px; position: sticky; top: 0; z-index: 50;
  background: rgba(10,14,26,.82); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; font-size: 1.68rem; letter-spacing: .03em; display: flex; align-items: center; gap: 10px;
  position: absolute; left: 50%; transform: translateX(-50%); }
.brand-logo { width: 2.52rem; height: 2.52rem; display: block; filter: drop-shadow(0 0 6px rgba(127,243,234,.35)); }
.logo { color: var(--accent); }
nav { display: flex; gap: 6px; flex-wrap: wrap; }
.navlink {
  background: none; border: 1px solid transparent; color: var(--muted);
  padding: 8px 14px; border-radius: 10px; cursor: pointer; font-size: .92rem;
  transition: .15s;
}
.navlink:hover { color: var(--ink); border-color: var(--line); }
.navlink.active { color: var(--accent); border-color: rgba(46,230,192,.45); background: rgba(46,230,192,.12); }

main { max-width: 1080px; margin: 0 auto; padding: 18px 20px 60px; }
.section { margin: 34px 0; }
.section h2 { font-size: 1.7rem; margin-bottom: 6px; }
.section.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

/* ---------- hero ---------- */
.hero { position: relative; border-radius: 22px; overflow: hidden; padding: 58px 40px; margin-bottom: 20px;
  border: 1px solid var(--line); background: linear-gradient(140deg, #1a2a52, #0c1224 70%); }
.hero-glow { position: absolute; top: -120px; right: -80px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46,230,192,.30), transparent 65%); pointer-events: none; }
.hero-glow2 { position: absolute; bottom: -100px; left: -60px; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,140,46,.22), transparent 65%); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; }
.hero-badge { display: inline-block; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--accent2); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; margin-bottom: 12px; }
.hero-sub { max-width: 520px; color: var(--muted); font-size: 1.05rem; margin-bottom: 22px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn { border: none; cursor: pointer; border-radius: 12px; padding: 12px 20px;
  font-size: .98rem; font-weight: 600; transition: .15s; }
.btn-primary { background: linear-gradient(135deg, var(--accent), #1fc4a0); color: #06221a; box-shadow: 0 4px 18px rgba(46,230,192,.35); }
.btn-primary:hover { filter: brightness(1.12); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(46,230,192,.5); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent2); color: var(--accent2); }
.btn-danger { background: rgba(255,93,108,.15); color: var(--bad); border: 1px solid rgba(255,93,108,.4); }
.btn-ok { background: rgba(46,230,192,.18); color: var(--ok); border: 1px solid rgba(46,230,192,.5); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card-num { color: var(--accent); font-weight: 800; font-size: 1.1rem; }
.card h3 { margin: 6px 0 4px; font-size: 1.05rem; }
.card p { color: var(--muted); font-size: .92rem; }

/* ---------- product ---------- */
.product-row { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.product-visual { flex: 0 0 240px; display: grid; place-items: center; }
.compass-disc { position: relative; width: 210px; height: 210px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #1a2440, #0c1224 72%);
  border: 1px solid var(--line); box-shadow: 0 0 60px rgba(46,230,192,.18), inset 0 0 40px rgba(0,0,0,.5);
  display: grid; place-items: center; }
.compass-ring { position: absolute; inset: 14px; border-radius: 50%; border: 1px dashed rgba(46,230,192,.5); }
.compass-needle { position: absolute; color: var(--accent); font-size: 1.05rem; top: 18px;
  transform: translateX(-50%) rotate(var(--rot, 0deg)); transform-origin: 50% 87px; }
.compass-core { position: relative; font-size: 3rem; color: var(--accent); text-shadow: 0 0 26px rgba(46,230,192,.9); }
.product-info { flex: 1 1 340px; }
.product-info p { font-size: 1.06rem; margin-bottom: 14px; }
.product-info li { margin: 8px 0 8px 2px; color: var(--muted); list-style: none; position: relative; padding-left: 22px; }
.product-info li::before { content: "✦"; position: absolute; left: 0; color: var(--accent); }
.fleet { margin-top: 14px; padding: 10px 14px; border: 1px dashed var(--line); border-radius: 10px; color: var(--accent2); font-size: .9rem; }

/* ---------- wizard ---------- */
.wizard { margin-top: 18px; display: flex; flex-direction: column; gap: 18px; }
.wstep { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.wstep h3 { margin-bottom: 12px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.seg-btn { background: var(--bg2); color: var(--muted); border: none; padding: 10px 22px; cursor: pointer; font-weight: 600; }
.seg-btn.active { background: var(--accent); color: #06221a; }
.field-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 10px 0; }
.field-row > * { flex: 1 1 200px; }
label { display: flex; flex-direction: column; gap: 5px; font-size: .86rem; color: var(--muted); }
input, select {
  background: var(--bg2); border: 1px solid var(--line); color: var(--ink);
  border-radius: 10px; padding: 11px 13px; font-size: .98rem; outline: none; width: 100%;
}
input:focus { border-color: var(--accent2); box-shadow: 0 0 0 3px rgba(79,140,255,.15); }
.hint { font-size: .85rem; color: var(--warn); margin-bottom: 8px; }

.quote { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; }
.quote .q-label { font-weight: 700; margin-bottom: 6px; }
.quote .row { display: flex; justify-content: space-between; padding: 4px 0; color: var(--muted); font-size: .95rem; }
.quote .row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; color: var(--ink); font-weight: 700; font-size: 1.05rem; }
.quote .row.total span:last-child { color: var(--accent); }

.payment-box { border: 1px dashed var(--line); border-radius: 12px; padding: 16px 18px; margin-top: 12px; }
.payment-box h4 { margin-bottom: 8px; color: var(--accent2); }

/* ---------- agreement ---------- */
.agree-box { display: flex; flex-direction: column; gap: 12px; max-height: 420px; overflow-y: auto;
  border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 14px; background: var(--bg2); }
.agree-item { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: var(--panel); }
.agree-item h5 { color: var(--accent2); font-size: .95rem; margin-bottom: 6px; }
.agree-item p { color: var(--muted); font-size: .9rem; }
.agree-item label { flex-direction: row; align-items: center; gap: 10px; margin-top: 10px; font-size: .88rem; color: var(--ink); }
.agree-item input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); flex: 0 0 auto; }
.sign-box { border: 1px dashed var(--accent); border-radius: 12px; padding: 16px 18px; margin: 14px 0; background: rgba(46,230,192,.08); }
.sign-box h4 { margin-bottom: 10px; color: var(--accent); }
.attention-note { background: rgba(255,180,84,.08); border: 1px solid rgba(255,180,84,.35); color: var(--warn);
  border-radius: 10px; padding: 12px 14px; font-size: .9rem; margin-bottom: 14px; }
.terms-link { margin-top: 12px; }
.btn-row { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.err { color: var(--bad); font-size: .9rem; margin-top: 10px; white-space: pre-wrap; }

/* ---------- confirm ---------- */
.confirm { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.confirm .big { font-size: 2rem; font-weight: 800; color: var(--accent); margin: 4px 0; }
.confirm .code-pill { display: inline-block; font-family: ui-monospace, monospace; font-size: 1.6rem; font-weight: 700;
  letter-spacing: .35em; background: #06221a; color: var(--accent); border: 1px solid rgba(46,230,192,.5);
  border-radius: 12px; padding: 12px 22px 12px 26px; margin: 10px 0; }
.code-wait { color: var(--warn); font-size: .9rem; }
.confirm h3 { margin: 18px 0 8px; color: var(--accent2); }
.confirm .kv { display: grid; grid-template-columns: 170px 1fr; gap: 6px 14px; font-size: .95rem; }
.confirm .kv b { color: var(--muted); font-weight: 500; }
.status-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; text-transform: capitalize; }
.status-booked { background: rgba(79,140,255,.15); color: var(--accent2); border: 1px solid rgba(79,140,255,.4); }
.status-agreed { background: rgba(46,230,192,.18); color: var(--ok); border: 1px solid rgba(46,230,192,.5); }
.status-picked_up { background: rgba(255,180,84,.15); color: var(--warn); border: 1px solid rgba(255,180,84,.4); }
.status-returned { background: rgba(255,180,84,.15); color: var(--warn); border: 1px solid rgba(255,180,84,.4); }
.status-inspected { background: rgba(79,140,255,.15); color: var(--accent2); border: 1px solid rgba(79,140,255,.4); }
.status-deposit_released { background: rgba(46,230,192,.25); color: var(--ok); border: 1px solid rgba(46,230,192,.6); }
.status-closed { background: rgba(255,93,108,.15); color: var(--bad); border: 1px solid rgba(255,93,108,.4); }

/* ---------- manage / admin ---------- */
#lookupResult { margin-top: 16px; }
.admin-list { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.admin-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.admin-card .top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.admin-card .unit { color: var(--accent2); font-weight: 600; }
.admin-card .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.admin-card .kv { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; margin-top: 8px; }
.admin-card .actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }

.foot { text-align: center; color: var(--muted); font-size: .82rem; padding: 30px 10px 40px; }

/* ---------- toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #0a0e1a; padding: 12px 22px; border-radius: 12px; font-weight: 600;
  box-shadow: 0 12px 40px rgba(0,0,0,.5); z-index: 99; }
.toast.ok { background: var(--accent); }
.toast.err { background: var(--bad); color: #fff; }
