/* ODELA - ODEL navy with a warm Riyadh sand accent. Arabic-first, RTL-ready. */
:root {
  --bg: #061018;
  --bg-deep: #040b12;
  --navy: #081525;
  --surface: rgba(244, 239, 230, 0.045);
  --surface-2: rgba(244, 239, 230, 0.08);
  --surface-solid: #0d1c2b;
  --border: rgba(228, 196, 138, 0.12);
  --border-strong: rgba(228, 196, 138, 0.22);
  --text: #f4efe6;
  --text-2: #cfc6b6;
  --muted: #8f887c;
  --cyan: #2ec8e8;
  --cyan-2: #7ae8f2;
  --sky: #7ad4f0;
  --sand: #e4c48a;
  --sand-2: #f3ddb0;
  --purple: #8b74e8;
  --green: #1dbf73;
  --amber: #e4c48a;
  --red: #e5484d;
  --claude: #d97757;
  --chatgpt: #10a37f;
  --radius: 18px;
  --radius-sm: 11px;
  --shadow: 0 1px 0 rgba(255, 247, 236, 0.05) inset, 0 24px 48px -28px rgba(0, 0, 0, 0.72);
  --font: 'IBM Plex Sans Arabic', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: dark; }
html, body { margin: 0; }
html.i18n-wait [data-i18n],
html.i18n-wait [data-i18n-html] { visibility: hidden; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  min-height: 100vh;
}
[dir="rtl"] body { line-height: 1.7; }
a { color: var(--sky); text-decoration: none; }
a:hover { color: var(--cyan-2); }
button { font: inherit; }
::selection { background: rgba(35, 186, 236, 0.35); }

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(980px 520px at 92% -8%, rgba(228, 196, 138, 0.16), transparent 58%),
    radial-gradient(1100px 580px at 8% -12%, rgba(46, 200, 232, 0.22), transparent 56%),
    radial-gradient(800px 640px at 50% 118%, rgba(139, 116, 232, 0.10), transparent 62%),
    linear-gradient(180deg, #0c2233 0%, #081825 42%, #061018 100%);
}
.bg-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(244, 239, 230, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at 28% 8%, #000 18%, transparent 68%);
}

/* ── Brand ─────────────────────────────────────────── */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.odel-logo { height: 34px; width: auto; display: block; }
footer.site .odel-logo { height: 26px; }
.wordmark {
  font-family: 'Didot', 'Bodoni 72', 'Playfair Display', Georgia, serif;
  font-size: 24px;
  letter-spacing: 0.22em;
  font-weight: 400;
}
.brand .by {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-left: 1px solid var(--border-strong);
  padding-left: 10px;
  margin-left: 2px;
}
.accent {
  background: linear-gradient(90deg, var(--sand-2), var(--cyan-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, #7ad4f0, #2eb4d8); color: #04121d; box-shadow: 0 10px 26px -12px rgba(46, 200, 232, .75); }
.btn.primary:hover { background: linear-gradient(180deg, #93def4, #3fc0e0); color: #04121d; }
.btn.ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.danger { background: rgba(229, 72, 77, .12); border-color: rgba(229, 72, 77, .35); color: #ff9da0; }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn .arrow { display: inline-block; transform: rotate(-45deg); }
.link { background: none; border: 0; color: var(--sky); cursor: pointer; padding: 0; font-size: 13px; }

/* ── Chips / badges ────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 500;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2);
}
.client-badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px 2px 6px; border-radius: 999px; font-size: 11.5px; font-weight: 600; border: 1px solid; white-space: nowrap; }
.client-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.client-chatgpt { color: #3fd6a8; background: rgba(16, 163, 127, .12); border-color: rgba(16, 163, 127, .35); }
.client-claude { color: #f0a283; background: rgba(217, 119, 87, .12); border-color: rgba(217, 119, 87, .35); }
.client-inspector { color: #b6a5ff; background: rgba(121, 93, 229, .14); border-color: rgba(121, 93, 229, .35); }
.client-other { color: var(--sky); background: rgba(35, 186, 236, .1); border-color: rgba(35, 186, 236, .3); }

.status-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.s-placed { color: var(--sky); background: rgba(92, 198, 240, .12); }
.s-accepted { color: #b6a5ff; background: rgba(121, 93, 229, .15); }
.s-preparing { color: var(--amber); background: rgba(242, 169, 59, .13); }
.s-picked_up, .s-on_the_way { color: var(--cyan-2); background: rgba(63, 222, 235, .12); }
.s-delivered { color: #4fe09b; background: rgba(29, 191, 115, .13); }
.s-cancelled { color: #ff8a8e; background: rgba(229, 72, 77, .13); }

/* ── Auth / account pages ──────────────────────────── */
.auth-body { display: flex; justify-content: center; }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.auth-shell { width: 100%; max-width: 480px; padding: 36px 20px 48px; display: flex; flex-direction: column; gap: 18px; }
.auth-shell.wide { max-width: 640px; }
.auth-shell > .brand { align-self: center; margin-bottom: 8px; }
.auth-card {
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.auth-card.center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.auth-card h1 { font-size: 30px; line-height: 1.2; margin: 14px 0 8px; font-weight: 700; }
.auth-card h2 { font-size: 20px; margin: 0; }
.auth-card > p { margin: 0 0 18px; }
.fineprint { text-align: center; color: var(--muted); font-size: 12px; margin: 4px 0 0; }
.connect-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(35,186,236,.1); border: 1px solid rgba(35,186,236,.3); color: var(--sky); font-size: 13px; font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-2); box-shadow: 0 0 0 0 rgba(63,222,235,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(63,222,235,.55); } 70% { box-shadow: 0 0 0 9px rgba(63,222,235,0); } 100% { box-shadow: 0 0 0 0 rgba(63,222,235,0); } }

.tabs { display: grid; grid-template-columns: 1fr 1fr; background: rgba(0,0,0,.25); border: 1px solid var(--border); border-radius: 12px; padding: 4px; margin: 6px 0 18px; }
.tabs button { background: none; border: 0; color: var(--muted); padding: 9px; border-radius: 9px; cursor: pointer; font-weight: 500; }
.tabs button.active { background: var(--surface-2); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset; }
[data-mode="signin"] [data-signup-only] { display: none; }

.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); font-weight: 500; }
.form input, .form select {
  background: rgba(3, 9, 20, .55);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 10px;
  padding: 11px 13px;
  font: inherit;
  font-size: 15px;
  outline: none;
  width: 100%;
  min-width: 0;
  transition: border-color .15s, box-shadow .15s;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form input:focus, .form select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(35,186,236,.18); }
.form input::placeholder { color: #5b6778; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form.actions { flex-direction: row; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.form.actions .btn { flex: 1; }
.inline-link { text-align: center; margin-top: 12px; }
.section-title { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 10px 0 0; font-weight: 600; }
.section-title.first { margin-top: 0; margin-bottom: 10px; }
.alert { background: rgba(229,72,77,.1); border: 1px solid rgba(229,72,77,.35); color: #ffb3b5; padding: 10px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; }
.alert.ok { background: rgba(29,191,115,.1); border-color: rgba(29,191,115,.35); color: #8ff0c0; }

.steps { display: flex; gap: 6px; font-size: 12px; color: var(--muted); }
.steps span { flex: 1; padding-top: 8px; border-top: 3px solid var(--border-strong); }
.steps + .connect-pill, .steps + h1 { margin-top: 20px; }
.steps .done { border-color: rgba(35,186,236,.5); color: var(--text-2); }
.steps .current { border-color: var(--cyan); color: var(--text); font-weight: 600; }

.demo-card {
  position: relative; overflow: hidden;
  border-radius: 16px; padding: 18px 20px; aspect-ratio: 1.8 / 1; max-height: 190px;
  background: radial-gradient(120% 140% at 0% 0%, #3fb7e8 0%, #1a6f9e 40%, #0c2742 100%);
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 18px 40px -18px rgba(35,186,236,.6);
}
.demo-card::after { content: ''; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; background: linear-gradient(135deg, rgba(255,255,255,.22), transparent 60%); transform: rotate(25deg); }
.demo-card-top { display: flex; justify-content: space-between; align-items: center; font-weight: 600; letter-spacing: .06em; }
.demo-card-number { font-family: var(--mono); font-size: 20px; letter-spacing: .12em; }
.demo-card-bottom { font-size: 12.5px; opacity: .9; display: flex; justify-content: space-between; gap: 10px; text-transform: uppercase; letter-spacing: .06em; font-family: var(--mono); }
.demo-card-chip { width: 36px; height: 26px; border-radius: 6px; background: linear-gradient(135deg, #f5d98b, #c9a24c); opacity: .9; }
.demo-card { transition: background .4s ease; }
.demo-card[data-brand="mastercard"] { background: radial-gradient(120% 140% at 0% 0%, #f2a93b 0%, #b0472d 45%, #2a1024 100%); box-shadow: 0 18px 40px -18px rgba(242,169,59,.55); }
.demo-card[data-brand="mada"] { background: radial-gradient(120% 140% at 0% 0%, #4fe09b 0%, #1a7f64 45%, #0c2742 100%); box-shadow: 0 18px 40px -18px rgba(29,191,115,.55); }
.demo-card[data-brand="amex"] { background: radial-gradient(120% 140% at 0% 0%, #b6a5ff 0%, #5a3fc0 45%, #140f35 100%); }
.hint { font-size: 12.5px; color: var(--muted); margin: -2px 0 2px; }
.hint b { color: var(--text-2); font-weight: 500; font-family: var(--mono); font-size: 12px; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 64px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); border-radius: 7px; padding: 4px 9px; font-size: 12px; cursor: pointer; }
.btn.loading { position: relative; color: transparent !important; }
.btn.loading::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(4,18,29,.35); border-top-color: #04121d; animation: spin .7s linear infinite; }
.btn.ghost.loading::after { border-color: rgba(255,255,255,.25); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

.perm-list { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-direction: column; gap: 10px; }
.perm-list li { display: flex; flex-direction: column; padding: 12px 14px 12px 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); position: relative; }
.perm-list li::before { content: ''; position: absolute; left: 14px; top: 16px; width: 14px; height: 14px; border-radius: 4px; background: linear-gradient(135deg, var(--sky), var(--cyan-2)); clip-path: polygon(0 40%, 100% 0, 70% 100%); }
.perm-list b { font-weight: 600; font-size: 14.5px; }
.perm-list span { color: var(--muted); font-size: 13px; }

.account-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.avatar { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-weight: 700; font-size: 20px; color: #04121d; background: linear-gradient(135deg, var(--sky), var(--cyan-2)); }
.grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.grow small { color: var(--muted); font-size: 12.5px; }
.app-row, .mini-order { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.mini-order:hover { color: var(--text); background: var(--surface); }
.swatch { width: 10px; height: 34px; border-radius: 4px; flex: none; }
.amount { font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.big-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 700; }
.big-icon.ok { background: rgba(29,191,115,.15); color: #4fe09b; }
.big-icon.error { background: rgba(229,72,77,.15); color: #ff8a8e; }

/* ── App shell (dashboard / order / landing) ───────── */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 18px;
  padding: 14px clamp(16px, 3vw, 36px);
  background: rgba(7, 14, 28, .72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.topbar nav { display: flex; gap: 4px; margin-left: 10px; }
.topbar nav a { color: var(--muted); padding: 7px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.topbar nav a:hover { color: var(--text); background: var(--surface); }
.topbar nav a.active { color: var(--text); background: var(--surface-2); }
.topbar .spacer { flex: 1; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #4fe09b; background: rgba(29,191,115,.1); border: 1px solid rgba(29,191,115,.3); }
.live-pill .dot { background: #4fe09b; }
.live-pill.off { color: var(--muted); background: var(--surface); border-color: var(--border); }
.live-pill.off .dot { background: var(--muted); animation: none; }
.url-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 10px; background: rgba(0,0,0,.3); border: 1px solid var(--border); font-family: var(--mono); font-size: 12.5px; color: var(--text-2); max-width: 360px; }
.url-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.url-chip button { flex: none; border: 0; background: var(--surface-2); color: var(--text); border-radius: 7px; padding: 4px 9px; font-size: 12px; cursor: pointer; font-family: var(--font); }
.url-chip button:hover { background: rgba(35,186,236,.2); }

.page { padding: 28px clamp(16px, 3vw, 36px) 48px; max-width: 1600px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -.01em; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--sand); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--sand); border-radius: 2px; }

.panel { background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02)); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.panel-head h2 { margin: 0; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.count { font-family: var(--mono); font-size: 12px; color: var(--muted); background: var(--surface-2); padding: 1px 8px; border-radius: 999px; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { padding: 16px 18px; position: relative; overflow: hidden; }
.kpi .label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.kpi .label svg { width: 16px; height: 16px; color: var(--cyan); }
.kpi .value { font-size: 28px; font-weight: 700; margin-top: 6px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.kpi .value small { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.kpi .sub { color: var(--muted); font-size: 12px; }
.kpi::after { content: ''; position: absolute; right: -24px; top: -24px; width: 80px; height: 80px; background: radial-gradient(circle, rgba(35,186,236,.16), transparent 70%); }
.kpi.bump .value { animation: bump .6s ease; }
@keyframes bump { 30% { color: var(--cyan-2); transform: translateY(-2px); } }

/* Dashboard grid */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 14px; }
.column { background: rgba(0,0,0,.18); border: 1px solid var(--border); border-radius: 14px; min-height: 420px; display: flex; flex-direction: column; }
.column-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.column-head .bar { width: 8px; height: 8px; border-radius: 3px; }
.column-head .count { margin-left: auto; }
.column-body { display: flex; flex-direction: column; gap: 10px; padding: 0 10px 12px; }
.column-empty { color: #536074; font-size: 12.5px; text-align: center; padding: 24px 8px; border: 1px dashed var(--border); border-radius: 12px; }

.order-card {
  position: relative;
  background: linear-gradient(180deg, #11203a, #0d192d);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 12px 10px;
  cursor: pointer;
  transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease;
  animation: card-in .45s cubic-bezier(.2,.8,.2,1);
}
.order-card:hover { transform: translateY(-2px); border-color: rgba(35,186,236,.35); box-shadow: 0 12px 28px -18px rgba(35,186,236,.6); }
.order-card.flash { animation: card-in .45s cubic-bezier(.2,.8,.2,1), glow 1.6s ease; }
@keyframes card-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes glow { 0%, 100% { box-shadow: none; } 25% { box-shadow: 0 0 0 1px rgba(63,222,235,.7), 0 0 30px -4px rgba(63,222,235,.55); } }
.oc-top { display: flex; align-items: center; gap: 10px; }
.monogram { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; flex: none; box-shadow: 0 6px 14px -8px currentColor; }
.oc-title { flex: 1; min-width: 0; }
.oc-title b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-title small { color: var(--muted); font-size: 11.5px; font-family: var(--mono); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-items { margin: 10px 0 8px; font-size: 12.5px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.oc-foot { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.oc-foot .who { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-foot .total { margin-left: auto; font-family: var(--mono); color: var(--text); font-weight: 500; flex: none; }
.progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; margin: 8px 0 10px; }
.progress i { height: 4px; border-radius: 3px; background: rgba(255,255,255,.08); }
.progress i.on { background: linear-gradient(90deg, var(--sky), var(--cyan-2)); }
.progress i.now { background: linear-gradient(90deg, var(--sky), var(--cyan-2)); animation: shimmer 1.4s ease-in-out infinite; }
.progress.cancelled i.on { background: rgba(229,72,77,.6); }
@keyframes shimmer { 50% { opacity: .45; } }
.oc-status { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.oc-status .eta { color: var(--muted); font-family: var(--mono); }

/* Activity feed */
.side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 84px; }
.filters { display: flex; gap: 6px; padding: 12px 18px 0; flex-wrap: wrap; }
.filters button { background: var(--surface); border: 1px solid var(--border); color: var(--muted); border-radius: 999px; padding: 4px 11px; font-size: 12px; cursor: pointer; }
.filters button.active { color: var(--text); border-color: rgba(35,186,236,.4); background: rgba(35,186,236,.12); }
.feed { list-style: none; margin: 0; padding: 8px 10px 12px; max-height: calc(100vh - 430px); min-height: 280px; overflow-y: auto; }
.feed::-webkit-scrollbar { width: 8px; }
.feed::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 8px; }
.feed li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 10px 8px; border-radius: 10px; animation: card-in .4s ease; }
.feed li:hover { background: var(--surface); }
.feed li + li { border-top: 1px solid rgba(255,255,255,.04); }
.feed .ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(35,186,236,.12); color: var(--cyan); }
.feed .ico svg { width: 15px; height: 15px; }
.feed .ico.order { background: rgba(29,191,115,.12); color: #4fe09b; }
.feed .ico.auth { background: rgba(121,93,229,.15); color: #b6a5ff; }
.feed .ico.err { background: rgba(229,72,77,.14); color: #ff8a8e; }
.feed .line1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.feed .tool { font-family: var(--mono); font-size: 12.5px; color: var(--sky); font-weight: 500; }
.feed .time { margin-left: auto; font-size: 11px; color: var(--muted); font-family: var(--mono); }
.feed .summary { font-size: 13px; color: var(--text-2); margin-top: 2px; word-break: break-word; }
.feed .meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; display: flex; gap: 10px; }
.feed .args { margin-top: 6px; font-family: var(--mono); font-size: 11.5px; color: #9fb3c8; background: rgba(0,0,0,.3); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; white-space: pre-wrap; display: none; max-height: 180px; overflow: auto; }
.feed li.open .args { display: block; }
.feed-empty { text-align: center; color: var(--muted); font-size: 13px; padding: 40px 16px; }

.split { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.split-row { display: grid; grid-template-columns: 110px 1fr 40px; align-items: center; gap: 10px; font-size: 13px; }
.split-track { height: 8px; border-radius: 6px; background: rgba(255,255,255,.06); overflow: hidden; }
.split-fill { height: 100%; border-radius: 6px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.split-row .n { text-align: right; font-family: var(--mono); color: var(--text-2); }

/* Empty board hero */
.board-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 60px 20px; gap: 10px; }
.board-empty img { height: 52px; width: auto; filter: drop-shadow(0 12px 30px rgba(35,186,236,.35)); animation: float 5s ease-in-out infinite; }
.demo-card .odel-logo { height: 18px; }
.toast .odel-logo { height: 22px; }
.board-empty h3 { margin: 10px 0 0; font-size: 20px; }
.board-empty p { margin: 0; color: var(--muted); max-width: 460px; }
.prompt-examples { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.prompt-examples span { font-size: 13px; padding: 7px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }
@keyframes float { 50% { transform: translateY(-8px) rotate(-3deg); } }

/* Drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(2,6,14,.6); backdrop-filter: blur(3px); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); z-index: 41; background: linear-gradient(180deg, #0f1f36, #0a1426); border-left: 1px solid var(--border); transform: translateX(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-head { padding: 20px 22px; border-bottom: 1px solid var(--border); display: flex; gap: 12px; align-items: center; }
.drawer-body { padding: 18px 22px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 18px; }
.drawer-body > * { flex-shrink: 0; }
.drawer-foot { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; gap: 10px; }
.drawer-foot .btn { flex: 1; }
.icon-btn { background: var(--surface); border: 1px solid var(--border); color: var(--text); width: 34px; height: 34px; border-radius: 9px; cursor: pointer; display: grid; place-items: center; font-size: 18px; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.receipt { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.receipt-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 14px; font-size: 13.5px; }
.receipt-row + .receipt-row { border-top: 1px solid rgba(255,255,255,.04); }
.receipt-row .q { color: var(--cyan); font-family: var(--mono); margin-right: 8px; }
.receipt-row.sub { color: var(--muted); font-size: 13px; }
.receipt-row.total { background: rgba(35,186,236,.07); font-weight: 600; }
.receipt-row .money { font-family: var(--mono); }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 16px 28px; font-size: 13.5px; }
.timeline li::before { content: ''; position: absolute; left: 6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--border-strong); }
.timeline li::after { content: ''; position: absolute; left: 11px; top: 20px; bottom: 0; width: 2px; background: var(--border); }
.timeline li:last-child::after { display: none; }
.timeline li.done::before { background: var(--cyan); border-color: var(--cyan); }
.timeline li.done::after { background: rgba(35,186,236,.4); }
.timeline li.current::before { background: var(--cyan-2); border-color: var(--cyan-2); box-shadow: 0 0 0 5px rgba(63,222,235,.18); }
.timeline li.cancel::before { background: var(--red); border-color: var(--red); }
.timeline small { display: block; color: var(--muted); font-family: var(--mono); font-size: 11.5px; }
.timeline .pending { color: #5b6778; }

/* Toasts */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; flex-direction: column; gap: 10px; }
.toast { min-width: 280px; max-width: 360px; padding: 12px 14px; border-radius: 12px; background: #112440; border: 1px solid rgba(35,186,236,.35); box-shadow: 0 18px 40px -16px rgba(0,0,0,.8); display: flex; gap: 12px; align-items: center; animation: toast-in .35s cubic-bezier(.2,.8,.2,1); font-size: 13.5px; }
.toast b { display: block; }
.toast small { color: var(--muted); }
.toast.out { animation: toast-out .3s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(20px); } }

/* ── Order tracking page ───────────────────────────── */
.track { max-width: 980px; margin: 0 auto; padding: 32px 20px 56px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; }
.track-hero { grid-column: 1 / -1; padding: 28px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; position: relative; overflow: hidden; }
.track-hero::after { content: ''; position: absolute; right: -40px; top: -40px; width: 280px; height: 140px; background: url('/odel-logo.svg') no-repeat center / contain; opacity: .08; }
.track-hero h1 { margin: 6px 0 4px; font-size: 32px; }
.track-hero .eta-big { margin-left: auto; text-align: right; }
.track-hero > .dish { position: relative; z-index: 1; }
.eta-big .num { font-size: 44px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.eta-big .lbl { color: var(--muted); font-size: 13px; }
.stepper { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, 1fr); padding: 24px 18px; }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; position: relative; font-size: 12.5px; color: var(--muted); }
.step::before { content: ''; position: absolute; top: 19px; left: -50%; right: 50%; height: 3px; background: var(--border); }
.step:first-child::before { display: none; }
.step .bubble { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-solid); border: 2px solid var(--border-strong); position: relative; z-index: 1; color: var(--muted); }
.step .bubble svg { width: 18px; height: 18px; }
.step.done { color: var(--text-2); }
.step.done::before { background: linear-gradient(90deg, var(--sky), var(--cyan-2)); }
.step.done .bubble { background: linear-gradient(135deg, var(--sky), var(--cyan)); border-color: transparent; color: #04121d; }
.step.current { color: var(--text); font-weight: 600; }
.step.current::before { background: linear-gradient(90deg, var(--sky), var(--cyan-2)); }
.step.current .bubble { border-color: var(--cyan-2); color: var(--cyan-2); background: rgba(63,222,235,.12); animation: pulse 1.8s infinite; }
.hero-text { flex: 1; min-width: 220px; }
.hero-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.eta-big { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; position: relative; z-index: 1; }
.eta-big .btn { margin-top: 8px; }
.s-hero-delivered .eta-big .num { color: #4fe09b; }
.s-hero-cancelled .eta-big .num { color: #ff8a8e; }
.route { grid-column: 1 / -1; padding: 10px 18px 16px; overflow: hidden; }
.route svg { width: 100%; height: auto; display: block; }
.route-labels { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 12px; align-items: start; font-size: 13px; }
.route-labels b { display: block; font-weight: 600; }
.route-labels small { color: var(--muted); }
.route-labels .end { text-align: right; }
.route-caption { text-align: center; color: var(--text-2); }
.track-side { display: flex; flex-direction: column; gap: 20px; }
.driver { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.driver .avatar { width: 44px; height: 44px; font-size: 18px; }
.track .panel-body { padding: 16px 18px; }

/* ── Landing ───────────────────────────────────────── */
.hero { position: relative; min-height: calc(100vh - 64px); display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px; padding: 40px clamp(20px, 6vw, 96px); max-width: 1400px; margin: 0 auto; }
.hero h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.05; margin: 18px 0 16px; font-weight: 700; letter-spacing: -.02em; }
.hero h1 .underline { position: relative; }
.hero h1 .underline::after { content: ''; position: absolute; inset-inline: 0; bottom: .02em; height: .09em; background: linear-gradient(90deg, var(--sand), var(--cyan)); border-radius: 3px; }
.hero .alt-line { font-size: 20px; color: var(--sand-2); margin: 0 0 12px; opacity: .88; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 540px; margin: 0 0 30px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 420px; }
.hero-art .plane { justify-self: end; align-self: start; width: min(400px, 72%); filter: drop-shadow(0 30px 60px rgba(35,186,236,.35)); animation: float 7s ease-in-out infinite; }
.hero-art .shard { position: absolute; width: 12px; height: 12px; background: var(--sky); clip-path: polygon(0 40%, 100% 0, 70% 100%); opacity: .8; animation: drift 9s ease-in-out infinite; }
@keyframes drift { 50% { transform: translate(8px, -12px) rotate(20deg); opacity: .4; } }
.chat-mock { position: absolute; bottom: -6%; left: 0; width: min(360px, 90%); padding: 14px; border-radius: 16px; background: rgba(9,18,34,.85); border: 1px solid var(--border-strong); backdrop-filter: blur(10px); box-shadow: 0 30px 60px -30px #000; font-size: 13.5px; display: flex; flex-direction: column; gap: 8px; }
.bubble-user { align-self: flex-end; background: #1d3050; padding: 8px 12px; border-radius: 12px 12px 4px 12px; max-width: 85%; }
.bubble-ai { background: var(--surface-2); padding: 8px 12px; border-radius: 12px 12px 12px 4px; max-width: 92%; color: var(--text-2); }
.bubble-tool { font-family: var(--mono); font-size: 11.5px; color: var(--sky); display: flex; align-items: center; gap: 8px; }
.chat-head { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.chat-lines { display: flex; flex-direction: column; gap: 8px; min-height: 290px; justify-content: flex-end; }
.chat-lines [data-step] { display: none; }
.chat-lines [data-step].shown { display: flex; animation: card-in .35s ease; }
.chat-lines .bubble-user.shown, .chat-lines .bubble-ai.shown { display: block; }
.spin-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(92,198,240,.3); border-top-color: var(--sky); animation: spin .7s linear infinite; flex: none; }
.bubble-tool.done .spin-dot { animation: none; border-color: var(--green); background: var(--green); }
.fake-link { color: var(--sky); text-decoration: underline; text-underline-offset: 2px; }
.live-strip { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 8px 14px; border-radius: 999px; background: rgba(29,191,115,.08); border: 1px solid rgba(29,191,115,.25); color: #8ff0c0; font-size: 13.5px; }
.live-strip .dot { background: #4fe09b; }

.section { max-width: 1240px; margin: 0 auto; padding: 72px clamp(20px, 5vw, 64px); }
.section h2 { font-size: clamp(28px, 3.2vw, 40px); margin: 12px 0 12px; font-weight: 700; }
.section > p.muted { max-width: 640px; margin: 0 0 32px; font-size: 16.5px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature { padding: 24px; }
.feature .num { font-family: var(--mono); color: var(--cyan); font-size: 13px; }
.feature h3 { margin: 10px 0 6px; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }
.connect-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.connect-card { padding: 24px; }
.connect-card h3 { margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.connect-card ol { margin: 0; padding-left: 20px; color: var(--text-2); display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.connect-card code, .kbd { font-family: var(--mono); font-size: 12.5px; background: rgba(0,0,0,.35); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; color: var(--sky); }
.url-box { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 18px; border-radius: 14px; background: rgba(0,0,0,.35); border: 1px solid rgba(35,186,236,.35); font-family: var(--mono); font-size: 15px; max-width: 640px; }
.url-box span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cyan-2); }
.tools-title { margin: 32px 0 14px; font-size: 18px; font-weight: 600; }
.tools-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tools-row .chip { font-family: var(--mono); font-size: 12.5px; padding: 6px 12px; }
.tools-row .chip.write { border-color: rgba(242,169,59,.4); color: var(--amber); }
footer.site { border-top: 1px solid var(--border); padding: 32px clamp(20px, 5vw, 64px); display: flex; gap: 20px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 14px; max-width: 1240px; margin: 0 auto; }
footer.site .spacer { flex: 1; }

/* ── Polish layer ──────────────────────────────────── */
:focus-visible { outline: 2px solid var(--cyan-2); outline-offset: 2px; border-radius: 6px; }
.btn:disabled { opacity: .55; cursor: progress; transform: none; }
.btn .i, .btn svg { width: 15px; height: 15px; display: inline-flex; }
.btn .i svg { width: 100%; height: 100%; }
.head-actions { display: flex; gap: 10px; align-items: center; }

.dish {
  flex: none; display: grid; place-items: center; color: #fff;
  background: radial-gradient(120% 120% at 20% 10%, color-mix(in srgb, var(--c) 90%, #fff 10%), color-mix(in srgb, var(--c) 55%, #081225 45%));
  box-shadow: 0 8px 18px -10px var(--c), inset 0 1px 0 rgba(255,255,255,.25);
}

.kpi-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 2px; min-height: 34px; }
.spark-wrap { flex: 1; max-width: 120px; height: 34px; }
.spark { width: 100%; height: 34px; display: block; }

.skeleton, .skeleton-text {
  background: linear-gradient(90deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.09) 40%, rgba(255,255,255,.04) 80%) 0 0 / 300% 100%;
  animation: sheen 1.4s linear infinite;
}
.order-card.skeleton { height: 150px; border-color: transparent; cursor: default; }
.skeleton-text { display: inline-block; width: 70px; border-radius: 6px; }
@keyframes sheen { to { background-position: -300% 0; } }

.board-head { flex-wrap: wrap; }
.board-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.seg { display: inline-flex; background: rgba(0,0,0,.25); border: 1px solid var(--border); border-radius: 10px; padding: 3px; }
.seg button { background: none; border: 0; color: var(--muted); padding: 5px 12px; border-radius: 7px; font-size: 12.5px; font-weight: 500; cursor: pointer; }
.seg button.active { background: var(--surface-2); color: var(--text); }
.search { display: inline-flex; align-items: center; gap: 8px; background: rgba(0,0,0,.25); border: 1px solid var(--border); border-radius: 10px; padding: 0 10px; color: var(--muted); transition: border-color .15s; }
.search:focus-within { border-color: rgba(35,186,236,.5); }
.search .i { width: 15px; height: 15px; display: inline-flex; }
.search input { background: none; border: 0; outline: none; color: var(--text); font: inherit; font-size: 13px; padding: 7px 0; width: 210px; }
.search input::placeholder { color: #5b6778; }
.board-foot { padding: 0 18px 14px; }
.kbd { font-family: var(--mono); font-size: 11.5px; padding: 1px 6px; border-radius: 5px; background: rgba(0,0,0,.35); border: 1px solid var(--border); color: var(--text-2); }

.column-body { max-height: 620px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.1) transparent; }
.oc-total { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--text); align-self: flex-start; padding-top: 2px; }
.oc-foot { margin-top: 10px; }

.split-row { grid-template-columns: 96px 1fr 58px; }
.split-row .n small { color: var(--muted); margin-left: 6px; font-size: 11px; }

.toggle { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.toggle input { accent-color: var(--cyan); }

.kind { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .06em; padding: 1px 6px; border-radius: 5px; }
.kind.r { color: var(--sky); background: rgba(92,198,240,.1); }
.kind.w { color: var(--amber); background: rgba(242,169,59,.14); }
.muted-tool { color: var(--text-2) !important; }
.ev-body { min-width: 0; }
.feed .expand { color: var(--sky); }
.feed li { cursor: pointer; }
pre.args { margin: 6px 0 0; }
.feed-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.feed-empty svg { color: var(--cyan); opacity: .7; }

.drawer-status { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.drawer-foot .btn { padding: 11px 14px; }

/* ── Brands and food imagery ───────────────────────── */
.brand-logo { flex: none; display: grid; place-items: center; padding: 5px; background: #fff; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 10px 22px -12px var(--c); }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.thumb { flex: none; display: inline-grid; place-items: center; border-radius: 10px; background: #fff; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.lg { border-radius: 14px; }
.thumb.more { width: 34px; height: 34px; background: #16263f; color: var(--text-2); font: 500 11px var(--mono); }
.thumb-stack { display: flex; align-items: center; }
.thumb-stack .thumb { box-shadow: 0 0 0 2px #0e1a2e; }
.thumb-stack .thumb + .thumb { margin-left: -9px; }
.thumb-stack.lg { margin-top: 14px; }
.thumb-stack.lg .thumb + .thumb { margin-left: -12px; }

.oc-media { display: flex; align-items: center; gap: 10px; margin: 10px 0 8px; }
.oc-media .oc-items { margin: 0; flex: 1; min-width: 0; }

.receipt-row.item { align-items: center; gap: 12px; }
.receipt-row.item .grow { min-width: 0; }
.receipt-row .ar { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }

.drawer-cover { flex: none; height: 150px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 58%, #fff 0 40%, color-mix(in srgb, var(--c) 16%, #eef2f6) 100%); }
.drawer-cover img { height: 100%; width: 100%; object-fit: contain; mix-blend-mode: multiply; }

.track-hero[style*="--c"] { background: linear-gradient(100deg, color-mix(in srgb, var(--c) 14%, transparent), transparent 55%), linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02)); }
.track-hero > .brand-logo { position: relative; z-index: 1; }

.brand-row { display: flex; align-items: center; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.brand-row .muted { margin-right: 4px; }
.brand-row a { display: inline-flex; border-radius: 12px; transition: transform .2s ease; }
.brand-row a:hover { transform: translateY(-3px); }
.brand-row + .live-strip { margin-top: 18px; }

.bubble-card { display: flex; align-items: center; gap: 10px; padding: 6px; margin: 0 0 8px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--border); }
.bubble-card img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: #fff; flex: none; }
.bubble-card b { display: block; color: var(--text); font-size: 13px; }
.bubble-card small { color: var(--muted); font-size: 11.5px; }
.chat-lines { min-height: 340px; }

.rest-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.rest-card { grid-column: span 2; display: flex; flex-direction: column; padding: 0; text-align: left; font: inherit; color: var(--text); cursor: pointer; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); box-shadow: var(--shadow); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.rest-card:nth-child(-n+2) { grid-column: span 3; }
.rest-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 30px 50px -30px color-mix(in srgb, var(--c) 60%, #000); }
.rest-card.skeleton { min-height: 330px; cursor: default; }
.rest-media { position: relative; height: 190px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 60%, #fff 0 36%, color-mix(in srgb, var(--c) 16%, #eef2f6) 100%); }
.rest-card:nth-child(-n+2) .rest-media { height: 230px; }
.rest-media img { height: 90%; max-width: 86%; object-fit: contain; mix-blend-mode: multiply; transition: transform .45s ease; }
.rest-card:hover .rest-media img { transform: scale(1.06) rotate(-1deg); }
.rest-media.cover img, .drawer-cover.cover img { width: 100%; height: 100%; max-width: none; object-fit: cover; mix-blend-mode: normal; }
.rest-card:hover .rest-media.cover img { transform: scale(1.04); }
.rest-eta { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(7,16,31,.82); color: #fff; font-size: 12px; font-weight: 500; }
.rest-info { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px 0; }
.rest-card:nth-child(n+3) .rest-foot .thumb:nth-child(4) { display: none; }
.rest-info .brand-logo { margin-top: -40px; box-shadow: 0 0 0 3px #0e1a2e, 0 12px 24px -12px var(--c); }
.rest-name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
.rest-name b { font-size: 17px; }
.rest-name [lang="ar"], .rest-name [lang="en"] { color: var(--text-2); font-size: 15px; }
.rest-sub { display: block; color: var(--muted); font-size: 13px; }
.rating { display: inline-flex; align-items: baseline; gap: 5px; padding: 3px 9px; border-radius: 999px; background: rgba(242,169,59,.12); color: var(--amber); font-size: 13px; font-weight: 600; white-space: nowrap; }
.rating small { color: var(--muted); font-weight: 400; font-size: 11.5px; }
.rest-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 16px; margin-top: auto; }
.rest-fees { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.rest-fees span { font-size: 12px; color: var(--text-2); padding: 3px 9px; border-radius: 999px; background: var(--surface-2); }
.credit { margin-top: 16px; }

.menu-modal { width: min(780px, calc(100vw - 32px)); max-height: min(86vh, 900px); padding: 0; border: 1px solid var(--border-strong); border-radius: 20px; background: linear-gradient(180deg, #0f1f36, #0a1426); color: var(--text); box-shadow: 0 40px 80px -30px #000; overflow: hidden; }
.menu-modal[open] { display: flex; flex-direction: column; animation: card-in .25s ease; }
.menu-modal::backdrop { background: rgba(3,8,18,.66); backdrop-filter: blur(4px); }
.menu-head { display: flex; gap: 16px; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--border); background: linear-gradient(90deg, color-mix(in srgb, var(--c) 18%, transparent), transparent 70%); }
.menu-head h3 { margin: 0; font-size: 22px; }
.menu-head h3 [lang="ar"] { color: var(--text-2); font-weight: 500; font-size: 18px; margin-left: 6px; }
.menu-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 13px; margin-top: 4px; }
.menu-body { overflow-y: auto; padding: 4px 22px 22px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.12) transparent; }
.menu-cat { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 18px 0 10px; font-weight: 600; }
.menu-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.menu-item { display: flex; gap: 14px; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.menu-item .grow { min-width: 0; display: flex; flex-direction: column; }
.mi-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mi-name b { font-size: 15px; }
.pop { font-size: 10.5px; font-weight: 600; letter-spacing: .04em; color: var(--amber); background: rgba(242,169,59,.14); padding: 1px 7px; border-radius: 999px; }
.mi-ar { color: var(--text-2); font-size: 13px; }
.menu-item p { margin: 4px 0 10px; color: var(--muted); font-size: 12.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mi-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.price { font-family: var(--mono); font-weight: 600; font-size: 15px; }
.price small { color: var(--muted); font-weight: 400; font-size: 11px; }
.menu-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--border); }

.lang-switch {
  display: inline-flex; direction: ltr; align-items: center; padding: 3px; gap: 2px;
  border: 1px solid var(--border-strong); border-radius: 999px;
  background: rgba(4, 12, 20, .62);
  box-shadow: inset 0 1px 0 rgba(255, 247, 236, .05);
}
.lang-switch button {
  appearance: none; border: 0; background: transparent; color: var(--muted);
  font: inherit; font-size: 13px; font-weight: 600; line-height: 1;
  padding: 8px 13px; border-radius: 999px; cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.lang-switch button:hover:not([aria-pressed="true"]) { color: var(--text); background: rgba(244, 239, 230, .07); }
html[lang="ar"] .lang-switch [data-lang-switch="ar"],
html[lang="en"] .lang-switch [data-lang-switch="en"] {
  background: linear-gradient(180deg, var(--sand-2), var(--sand));
  color: #1c140c; cursor: default;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 8px 16px -10px rgba(228, 196, 138, .9);
}

.band.navy {
  background: linear-gradient(180deg, rgba(8, 21, 37, .55), rgba(6, 16, 24, .2));
  border-block: 1px solid var(--border);
}
.hero-plate {
  position: absolute; inset: 8% 4% auto auto; width: min(78%, 420px); aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 48%, rgba(255,255,255,.08), transparent 42%),
    radial-gradient(circle at 50% 55%, rgba(228,196,138,.16), transparent 58%);
  filter: blur(2px);
  animation: float 10s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 1400px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1180px) {
  .dash-grid { grid-template-columns: 1fr; }
  .side { position: static; }
  .feed { max-height: 520px; }
}
@media (max-width: 900px) {
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-art { min-height: 340px; }
  .cards-3, .connect-grid { grid-template-columns: 1fr; }
  .rest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rest-card, .rest-card:nth-child(-n+2) { grid-column: span 1; }
  .menu-items { grid-template-columns: 1fr; }
  .track { grid-template-columns: 1fr; }
  .url-chip { display: none; }
  .topbar { flex-wrap: wrap; row-gap: 8px; }
  .topbar nav { order: 5; width: 100%; margin-left: 0; overflow-x: auto; }
  .topbar nav a { white-space: nowrap; }
  .search input { width: 150px; }
}
@media (max-width: 560px) {
  .board { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stepper { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
  .step:nth-child(4)::before { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .rest-grid { grid-template-columns: 1fr; }
  .menu-foot { flex-direction: column; align-items: stretch; }
}

/* ── Arabic / RTL ─────────────────────────────────── */
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.28; }
[dir="rtl"] .eyebrow, [dir="rtl"] .section-title, [dir="rtl"] .menu-cat {
  letter-spacing: .03em; text-transform: none;
}
[dir="rtl"] .brand .by { border-left: 0; border-right: 1px solid var(--border-strong); padding-left: 0; padding-right: 10px; margin-left: 0; margin-right: 2px; }
[dir="rtl"] .topbar nav { margin-left: 0; margin-right: 10px; }
[dir="rtl"] .btn .arrow { transform: scaleX(-1) rotate(-45deg); }
[dir="rtl"] .form select { background-position: 18px 50%, 13px 50%; }
[dir="rtl"] .pw-wrap input { padding-right: 13px; padding-left: 64px; }
[dir="rtl"] .pw-toggle { right: auto; left: 6px; }
[dir="rtl"] .perm-list li { padding: 12px 40px 12px 14px; }
[dir="rtl"] .perm-list li::before { left: auto; right: 14px; }
[dir="rtl"] .column-head .count, [dir="rtl"] .oc-foot .total { margin-left: 0; margin-right: auto; }
[dir="rtl"] .kpi .value small { margin-left: 0; margin-right: 4px; }
[dir="rtl"] .kpi::after { right: auto; left: -24px; }
[dir="rtl"] .feed .time { margin-left: 0; margin-right: auto; }
[dir="rtl"] .split-row .n { text-align: left; }
[dir="rtl"] .thumb-stack .thumb + .thumb { margin-left: 0; margin-right: -9px; }
[dir="rtl"] .thumb-stack.lg .thumb + .thumb { margin-left: 0; margin-right: -12px; }
[dir="rtl"] .drawer { right: auto; left: 0; border-left: 0; border-right: 1px solid var(--border); transform: translateX(-100%); }
[dir="rtl"] .drawer.open { transform: none; }
[dir="rtl"] .timeline li { padding: 0 28px 16px 0; }
[dir="rtl"] .timeline li::before { left: auto; right: 6px; }
[dir="rtl"] .timeline li::after { left: auto; right: 11px; }
[dir="rtl"] .toasts { right: auto; left: 20px; }
[dir="rtl"] .toast.out { animation: toast-out-rtl .3s ease forwards; }
@keyframes toast-out-rtl { to { opacity: 0; transform: translateX(-20px); } }
[dir="rtl"] .track-hero .eta-big { margin-left: 0; margin-right: auto; text-align: start; }
[dir="rtl"] .eta-big { align-items: flex-start; }
[dir="rtl"] .track-hero::after { right: auto; left: -60px; }
[dir="rtl"] .step::before { left: 50%; right: -50%; }
[dir="rtl"] .route-labels .end { text-align: start; }
[dir="rtl"] .bubble-user { align-self: flex-start; border-radius: 12px 12px 12px 4px; }
[dir="rtl"] .bubble-ai { border-radius: 12px 12px 4px 12px; }
[dir="rtl"] .connect-card ol { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .url-box { padding: 14px 18px 14px 14px; }
[dir="rtl"] .url-chip { padding: 6px 12px 6px 6px; }
[dir="rtl"] .rest-card { text-align: right; }
[dir="rtl"] .rest-eta { right: auto; left: 12px; }
[dir="rtl"] .rest-fees { justify-content: flex-start; }
[dir="rtl"] .brand-row .muted { margin-right: 0; margin-left: 4px; }
[dir="rtl"] .menu-head h3 [lang="en"] { margin-left: 0; margin-right: 6px; }
[dir="rtl"] .receipt-row .q { margin-right: 0; margin-left: 8px; }
[dir="rtl"] .hero-plate { inset: 8% auto auto 4%; }

@media (max-width: 900px) {
  [dir="rtl"] .topbar nav { margin-right: 0; }
}
