/* Lyam Luxury apps — shared look (same black-and-gold system as lyamluxury.com) */
:root {
  --bg: #0d0d0f; --panel: #141316; --panel-2: #1b191d; --line: #3a3426; --line-soft: #2a2620;
  --fg: #f4ebd6; --soft: #cfc6b2; --muted: #a8a190; --gold: #c9a24b; --gold-hi: #e0be6f; --on-gold: #14110c;
  --ok: #7fbf8e; --warn: #e2b25a; --bad: #e08a7a;
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font: 15px/1.5 var(--font-body); min-height: 100dvh; -webkit-tap-highlight-color: transparent; }
a { color: var(--gold-hi); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }

.app { max-width: 640px; margin: 0 auto; padding: 0 16px calc(96px + env(safe-area-inset-bottom)); }
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line-soft);
  margin: 0 -16px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); min-width: 0; }
.mono { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--gold); display: grid; place-items: center; flex: none;
  font: 600 24px/1 var(--font-display); color: var(--gold); }
.brand b { font: 600 19px/1 var(--font-display); letter-spacing: .26em; display: block; }
.brand small { font-size: 10px; letter-spacing: .32em; color: var(--gold); font-weight: 600; display: block; margin-top: 4px; }
.lang { display: inline-flex; border: 1px solid var(--gold); border-radius: 999px; padding: 2px; flex: none; }
.lang button { font: 600 11px/1 var(--font-body); letter-spacing: .12em; border: 0; background: transparent; color: var(--soft); padding: 8px 11px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--gold); color: var(--on-gold); }

h1 { font: 600 30px/1.15 var(--font-display); margin: 22px 0 6px; }
h2 { font: 600 22px/1.2 var(--font-display); margin: 26px 0 10px; }
h3 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 22px 0 8px; font-weight: 600; }
p.lead { color: var(--soft); margin: 0 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 14px; padding: 16px; margin: 0 0 12px; }
.card.gold { border-color: var(--line); background: linear-gradient(180deg, #1a1712, var(--panel)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--gold); background: transparent; color: var(--fg); font-weight: 600; font-size: 14px; letter-spacing: .04em; cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--gold); color: var(--on-gold); }
.btn.primary:hover { background: var(--gold-hi); }
.btn.block { width: 100%; }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 13px; }
.btn.ghost { border-color: var(--line); color: var(--soft); }
.btn.danger { border-color: #6b3a32; color: var(--bad); }
.btn[disabled] { opacity: .5; cursor: default; }

.field { display: block; margin: 0 0 12px; }
.field > span { display: block; font-size: 12px; letter-spacing: .08em; color: var(--soft); margin-bottom: 6px; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--fg); }
.field input:focus, .field select:focus { border-color: var(--gold); outline: none; }
.code-in { font-size: 26px !important; letter-spacing: .5em; text-align: center; }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--soft); white-space: nowrap; }
.chip.ok { border-color: #35553d; color: var(--ok); }
.chip.warn { border-color: #5e4a22; color: var(--warn); }
.chip.bad { border-color: #6b3a32; color: var(--bad); }
.chip.gold { border-color: var(--gold); color: var(--gold-hi); }

.trip .when { font: 600 20px/1.2 var(--font-display); }
.trip .svc { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.route { list-style: none; margin: 12px 0; padding: 0 0 0 18px; border-left: 1px dashed var(--line); }
.route li { position: relative; margin: 0 0 8px; font-size: 14px; }
.route li::before { content: ""; position: absolute; left: -23px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.route li.stop::before { background: transparent; border: 1.5px solid var(--gold); }
.route li small { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; margin: 8px 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.driver { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: var(--panel-2); margin-top: 10px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: #2a2418; color: var(--gold-hi); display: grid; place-items: center; font: 600 20px var(--font-display); flex: none; border: 1px solid var(--line); }
.steps { display: flex; gap: 4px; margin-top: 10px; }
.steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--line-soft); }
.steps span.on { background: var(--gold); }
.empty { text-align: center; padding: 28px 12px; color: var(--muted); }
.msg { padding: 10px 12px; border-radius: 10px; font-size: 14px; margin: 0 0 12px; border: 1px solid var(--line); background: var(--panel-2); }
.msg.bad { border-color: #6b3a32; color: var(--bad); } .msg.ok { border-color: #35553d; color: var(--ok); }

.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: rgba(13,13,15,.96); border-top: 1px solid var(--line-soft);
  display: flex; justify-content: center; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); backdrop-filter: blur(8px); }
.tabs-in { display: flex; width: 100%; max-width: 640px; }
.tabs button { flex: 1; background: none; border: 0; color: var(--muted); padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 600; letter-spacing: .06em; cursor: pointer; border-radius: 10px; }
.tabs button svg { width: 22px; height: 22px; }
.tabs button[aria-selected="true"] { color: var(--gold-hi); }
.badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: var(--on-gold); font-size: 11px; line-height: 18px; text-align: center; }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; margin: 0 0 14px; flex-wrap: wrap; }
.seg button { border: 0; background: none; color: var(--soft); padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--panel-2); color: var(--gold-hi); }
.toast { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30; background: var(--gold); color: var(--on-gold);
  padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.5); max-width: calc(100% - 32px); text-align: center; }
.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: s .8s linear infinite; vertical-align: -3px; }
@keyframes s { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
