/* OrderEase — styles. Palette taken from Daily Edition: charcoal, paper, crema, espresso. */
:root {
  --char: #282828;
  --char-2: #3A3A3A;
  --espresso: #5A4636;
  --crema: #D7A46E;
  --crema-soft: #F6EADB;
  --paper: #F3F0EA;
  --card: #FFFFFF;
  --line: #E3DDD2;
  --line-2: #EEE9E0;
  --ink: #1E1E1E;
  --ink-2: #55524D;
  --ink-3: #8C877F;
  --focus: #B9824A;
  --ok: #1F7A45;   --ok-bg: #E4F2E9;
  --warn: #9A5B00; --warn-bg: #FCEFD8;
  --bad: #B8322A;  --bad-bg: #FBE5E2;
  --info: #2B5C8A; --info-bg: #E5EEF7;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(40, 32, 20, .05), 0 6px 20px rgba(40, 32, 20, .05);
  --mono: 'Space Mono', ui-monospace, Menlo, monospace;
  --sidebar: 236px;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); }
body { font-size: 15px; line-height: 1.45; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--espresso); }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.boot { display: grid; place-items: center; height: 100vh; }
.mark-lg { font-family: var(--mono); font-size: 34px; width: 96px; height: 96px; border-radius: 50%; background: var(--char); color: var(--paper); display: grid; place-items: center; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.94); opacity: .8; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- brand ---------- */
.mark { width: 38px; height: 38px; border-radius: 50%; background: var(--paper); color: var(--char); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 13px; letter-spacing: -.04em; white-space: nowrap; flex: none; }
.mark b { color: var(--crema); font-weight: 400; }
.wordmark { font-family: var(--mono); font-size: 19px; letter-spacing: -.02em; }
.wordmark b { color: var(--crema); font-weight: 400; }

/* ---------- login ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-brand { background: var(--char); color: var(--paper); padding: 48px 56px 78px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-brand .ring { position: absolute; right: -140px; bottom: -140px; width: 520px; height: 520px; opacity: .12; }
.auth-brand h1 { font-size: 46px; line-height: 1.05; margin: 0 0 16px; letter-spacing: -.025em; font-weight: 800; max-width: 520px; }
.auth-brand h1 em { font-style: normal; color: var(--crema); }
.auth-brand p { color: #BDB7AE; max-width: 430px; margin: 0; font-size: 16px; }
.brand-row { display: flex; align-items: center; gap: 12px; }
.tagline { font-family: var(--mono); font-size: 12px; color: #9C968C; letter-spacing: .02em; }
.auth-steps { display: grid; gap: 12px; margin-top: 34px; max-width: 420px; }
.auth-steps div { display: flex; gap: 14px; align-items: center; color: #D8D2C8; font-size: 14px; }
.auth-steps span { font-family: var(--mono); width: 30px; height: 30px; border: 1px solid #5A5650; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: var(--crema); flex: none; }
.auth-form { display: grid; place-items: center; padding: 32px 20px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h2 { font-size: 28px; margin: 0 0 6px; letter-spacing: -.015em; }
.auth-card .sub { color: var(--ink-2); margin: 0 0 26px; }
.auth-foot { margin-top: 26px; font-size: 12px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; }

/* ---------- form controls ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > label, .label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); letter-spacing: .01em; }
.input, .select, .textarea { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 11px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(215, 164, 110, .25); }
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.pw-wrap { position: relative; }
.pw-wrap button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--ink-3); cursor: pointer; padding: 6px 8px; font-size: 12px; font-weight: 700; }
.form-error { background: var(--bad-bg); color: var(--bad); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; }
.hint { color: var(--ink-3); font-size: 12.5px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; cursor: pointer; padding: 4px 0; }
.check input { width: 18px; height: 18px; accent-color: var(--char); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; padding: 0; }
.swatch.on { box-shadow: 0 0 0 2px var(--char); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid transparent; border-radius: 11px; padding: 10px 16px; font-weight: 700; cursor: pointer; background: var(--char); color: #fff; transition: transform .05s, background .15s, opacity .15s; white-space: nowrap; text-decoration: none; font-size: 14px; }
.btn:hover { background: var(--char-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.block { width: 100%; padding: 13px; font-size: 15px; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--crema-soft); border-color: #E2CDB3; }
.btn.crema { background: var(--crema); color: var(--char); }
.btn.crema:hover { background: #CB955C; }
.btn.wa { background: #1F9D55; }
.btn.wa:hover { background: #188547; }
.btn.danger { background: #fff; color: var(--bad); border-color: #EFC9C4; }
.btn.danger:hover { background: var(--bad-bg); }
.btn.sm { padding: 7px 11px; font-size: 13px; border-radius: 9px; }
.btn.icon { padding: 8px; width: 38px; height: 38px; }
.btn svg, .nav svg, .ico { width: 18px; height: 18px; flex: none; }
.link { border: 0; background: none; color: var(--espresso); font-weight: 700; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- layout ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.side { background: var(--char); color: var(--paper); padding: 22px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; }
.side .brand-row { padding: 0 8px 18px; }
.nav { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 11px; color: #C9C3B9; text-decoration: none; font-weight: 600; font-size: 14.5px; }
.nav:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav.on { background: var(--paper); color: var(--char); }
.nav.cta { background: var(--crema); color: var(--char); margin: 4px 0 10px; justify-content: center; font-weight: 800; }
.nav.cta:hover { background: #E2B583; }
.nav-sec { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: #7E786F; padding: 14px 12px 4px; }
.side-foot { margin-top: auto; border-top: 1px solid #3C3C3C; padding: 14px 8px 0; display: flex; gap: 10px; align-items: center; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--espresso); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.side-foot .who { min-width: 0; flex: 1; }
.side-foot .who b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-foot .who span { font-size: 11.5px; color: #9C968C; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-foot button { background: none; border: 1px solid #4A4A4A; color: #D8D2C8; border-radius: 9px; padding: 7px 9px; cursor: pointer; display: flex; }
.side-foot button:hover { background: #3A3A3A; }
.main { min-width: 0; padding: 28px 34px 60px; }
.topbar, .bottomnav { display: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 28px; letter-spacing: -.02em; }
.page-head .sub { color: var(--ink-2); margin: 4px 0 0; }
.eyebrow { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px; }
.card h3 { margin: 0 0 4px; font-size: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.card-head h3 { margin: 0; }
.stack { display: grid; gap: 18px; }
.cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: start; }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { padding: 16px 18px; }
.kpi .k { font-size: 12.5px; color: var(--ink-2); font-weight: 600; display: flex; gap: 8px; align-items: center; }
.kpi .v { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .v small { font-size: 13px; color: var(--ink-3); font-weight: 600; margin-left: 4px; }
.kpi.dark { background: var(--char); color: var(--paper); border-color: var(--char); }
.kpi.dark .k { color: #BDB7AE; }
.kpi.warn .v { color: var(--warn); }

/* restaurant cards */
.rest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.rest { padding: 16px; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.rest::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
.rest .rn { display: flex; gap: 10px; align-items: center; font-weight: 800; }
.badge-r { width: 34px; height: 34px; border-radius: 10px; background: var(--c); color: #fff; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; flex: none; }
.rest .rv { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rest .rm { font-size: 12.5px; color: var(--ink-3); }

/* pills, tags */
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ordered { background: var(--info-bg); color: var(--info); }
.pill.received { background: var(--ok-bg); color: var(--ok); }
.pill.cancelled { background: #EFEDE9; color: var(--ink-3); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, #999); flex: none; display: inline-block; }
.code { font-family: var(--mono); font-size: 12px; background: var(--crema-soft); color: var(--espresso); padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.code.missing { background: var(--warn-bg); color: var(--warn); font-family: inherit; font-weight: 700; }
.count { background: var(--char); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 800; padding: 1px 7px; }

/* chips (filters / choosers) */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 13.5px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; color: var(--ink-2); }
.chip:hover { border-color: #CFC4B4; }
.chip.on { background: var(--char); border-color: var(--char); color: #fff; }
.chip.on .dot { box-shadow: 0 0 0 2px #fff; }
.seg { display: inline-flex; background: #E9E4DA; border-radius: 12px; padding: 4px; gap: 2px; }
.seg button { border: 0; background: none; border-radius: 9px; padding: 8px 14px; font-weight: 700; font-size: 13.5px; cursor: pointer; color: var(--ink-2); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }

/* chooser tiles (new order step 1) */
.choose { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.tile { border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 14px; cursor: pointer; text-align: left; display: flex; gap: 12px; align-items: center; transition: border-color .15s, transform .05s; }
.tile:hover { border-color: var(--c, var(--char)); }
.tile.on { border-color: var(--c, var(--char)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, #282828) 18%, transparent); }
.tile b { display: block; font-size: 14.5px; }
.tile span { font-size: 12px; color: var(--ink-3); }
.step-label { display: flex; gap: 10px; align-items: center; font-weight: 800; margin: 0 0 10px; font-size: 14px; }
.step-label i { font-style: normal; font-family: var(--mono); width: 24px; height: 24px; border-radius: 50%; background: var(--char); color: #fff; display: grid; place-items: center; font-size: 11px; }

/* ---------- order builder ---------- */
.builder { display: grid; grid-template-columns: 1fr 360px; gap: 18px; align-items: start; }
.toolbar { display: flex; gap: 10px; align-items: center; padding: 14px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.search { position: relative; flex: 1; min-width: 200px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); width: 18px; height: 18px; }
.search .input { padding-left: 38px; }
.cat-row { display: flex; gap: 6px; overflow-x: auto; padding: 10px 14px; border-bottom: 1px solid var(--line-2); scrollbar-width: none; }
.cat-row .chip { padding: 6px 12px; font-size: 12.5px; flex: none; }
.plist { max-height: calc(100vh - 330px); min-height: 280px; overflow: auto; }
.prow { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line-2); }
.prow:last-child { border-bottom: 0; }
.prow.in { background: #FCF7F0; }
.thumb { width: 46px; height: 46px; border-radius: 11px; background: var(--crema-soft); display: grid; place-items: center; font-family: var(--mono); font-size: 13px; color: var(--espresso); overflow: hidden; flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.pname { font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.pmeta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; font-size: 12.5px; color: var(--ink-3); }
.star { color: var(--crema); font-size: 12px; font-weight: 800; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 11px; background: #fff; overflow: hidden; }
.stepper button { border: 0; background: none; width: 36px; height: 38px; cursor: pointer; font-size: 18px; font-weight: 700; color: var(--ink-2); }
.stepper button:hover { background: var(--crema-soft); }
.stepper input { width: 46px; border: 0; text-align: center; font-weight: 800; outline: none; height: 38px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.add-btn { border: 1.5px solid var(--char); background: #fff; color: var(--char); border-radius: 11px; height: 41px; padding: 0 16px; font-weight: 800; cursor: pointer; }
.add-btn:hover { background: var(--char); color: #fff; }
.cart { position: sticky; top: 20px; display: flex; flex-direction: column; max-height: calc(100vh - 40px); }
.cart-head { padding: 16px 18px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; }
.cart-head h3 { margin: 0; display: flex; gap: 8px; align-items: center; }
.cart-to { padding: 12px 18px; background: var(--paper); border-bottom: 1px solid var(--line-2); font-size: 13px; display: grid; gap: 4px; }
.cart-items { overflow: auto; flex: 1; min-height: 80px; }
.citem { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 11px 18px; border-bottom: 1px dashed var(--line); align-items: center; }
.citem .n { font-weight: 700; font-size: 13.5px; line-height: 1.3; }
.citem .m { font-size: 12px; color: var(--ink-3); display: flex; gap: 6px; align-items: center; }
.citem .stepper button { width: 30px; height: 32px; font-size: 16px; }
.citem .stepper input { width: 38px; height: 32px; }
.cart-empty { padding: 34px 20px; text-align: center; color: var(--ink-3); font-size: 14px; }
.cart-foot { padding: 14px 18px; border-top: 1px solid var(--line-2); display: grid; gap: 10px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; }
.cart-total .v { font-size: 20px; font-variant-numeric: tabular-nums; }
.cartbar { display: none; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 700; padding: 11px 14px; border-bottom: 1px solid var(--line); background: #FBF9F5; white-space: nowrap; }
.t td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tr.click { cursor: pointer; }
.t tr.click:hover td { background: #FCF7F0; }
.t .r { text-align: right; }
.t tfoot td { font-weight: 800; background: #FBF9F5; border-top: 1px solid var(--line); }
.t tr.off td { opacity: .5; }
.empty { padding: 40px 20px; text-align: center; color: var(--ink-3); }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 6px; }

/* filters bar */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.filters .field { margin: 0; min-width: 140px; }
.filters .input, .filters .select { padding: 9px 11px; }
.filters .select { padding-right: 32px; }

/* order detail */
.od-head { padding: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; border-bottom: 1px solid var(--line-2); }
.od-head .label { display: block; margin-bottom: 4px; }
.od-head b { font-size: 15px; }
.note-box { margin: 16px 20px; padding: 12px 14px; background: var(--crema-soft); border-radius: 11px; font-size: 14px; white-space: pre-wrap; }
.msg { background: #E7F6EC; border: 1px solid #C7E7D2; border-radius: 14px; padding: 14px 16px; font-size: 13.5px; white-space: pre-wrap; font-family: var(--mono); line-height: 1.55; max-height: 380px; overflow: auto; }

/* reports */
.rep-ctrl { padding: 16px 18px; display: grid; gap: 14px; }
.rep-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.rep-row .field { margin: 0; }
.chart { width: 100%; height: 230px; display: block; }
.bars { padding: 6px 18px 16px; }
.hbar { display: grid; grid-template-columns: 150px 1fr 110px; gap: 12px; align-items: center; padding: 7px 0; font-size: 13.5px; }
.hbar .track { height: 12px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.hbar .fill { height: 100%; background: var(--c, var(--espresso)); border-radius: 99px; }
.hbar .name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; gap: 8px; align-items: center; }
.hbar .val { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line-2); padding: 0 12px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 13px 12px; font-weight: 700; color: var(--ink-3); cursor: pointer; border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-color: var(--char); }

/* suppliers */
.sup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.sup { padding: 18px; display: flex; flex-direction: column; gap: 10px; border-top: 4px solid var(--c); }
.sup .sn { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sup .sn b { font-size: 17px; }
.sup .sl { font-size: 13.5px; color: var(--ink-2); display: grid; gap: 4px; }
.sup .sl span { display: flex; gap: 8px; align-items: center; }
.sup .sl svg { width: 15px; height: 15px; color: var(--ink-3); }
.sup .stats { display: flex; gap: 18px; font-size: 12.5px; color: var(--ink-3); padding-top: 10px; border-top: 1px dashed var(--line); }
.sup .stats b { color: var(--ink); font-size: 15px; display: block; }

/* settings */
.set-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.log-row { display: grid; grid-template-columns: 140px 120px 1fr; gap: 12px; padding: 9px 18px; border-bottom: 1px solid var(--line-2); font-size: 13px; }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(30, 26, 20, .45); display: grid; place-items: center; z-index: 50; padding: 18px; animation: fade .15s; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 520px; max-height: calc(100vh - 36px); display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); animation: rise .18s ease-out; }
.modal.wide { max-width: 760px; }
.modal-head { padding: 18px 20px; border-bottom: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-head h3 { margin: 0; font-size: 18px; }
.modal-body { padding: 18px 20px; overflow: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.x { border: 0; background: var(--paper); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1; color: var(--ink-2); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }
.img-drop { display: flex; gap: 14px; align-items: center; }
.img-drop .thumb { width: 72px; height: 72px; border-radius: 14px; }

/* toast */
#toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); background: var(--char); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; z-index: 80; max-width: calc(100vw - 32px); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
#toast.show { opacity: 1; transform: translateX(-50%); }
#toast.bad { background: var(--bad); }

/* idle warning */
.idle-warn { position: fixed; right: 18px; top: 18px; background: var(--char); color: #fff; padding: 14px 16px; border-radius: 14px; z-index: 70; display: flex; gap: 12px; align-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); font-size: 14px; }

/* print */
@media print {
  .side, .topbar, .bottomnav, .no-print, .cartbar { display: none !important; }
  .shell { display: block; }
  .main { padding: 0; }
  .card { box-shadow: none; border-color: #ddd; break-inside: avoid; }
  body { background: #fff; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .rest-grid, .kpis { grid-template-columns: repeat(2, 1fr); }
  .builder { grid-template-columns: 1fr 320px; }
  .cols { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .topbar { display: flex; position: sticky; top: 0; z-index: 30; background: var(--char); color: var(--paper); padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); align-items: center; justify-content: space-between; }
  .topbar .brand-row { gap: 10px; }
  .topbar .mark { width: 32px; height: 32px; font-size: 13px; }
  .topbar button { background: none; border: 1px solid #4A4A4A; color: #E2DCD2; border-radius: 9px; padding: 7px 10px; font-weight: 700; font-size: 12.5px; display: flex; gap: 6px; align-items: center; }
  .bottomnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); z-index: 30; padding-bottom: env(safe-area-inset-bottom); }
  .bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 2px 8px; font-size: 11px; font-weight: 700; color: var(--ink-3); text-decoration: none; }
  .bottomnav a svg { width: 22px; height: 22px; }
  .bottomnav a.on { color: var(--char); }
  .bottomnav a.cta span.ic { background: var(--crema); color: var(--char); border-radius: 50%; width: 44px; height: 44px; display: grid; place-items: center; margin-top: -20px; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
  .main { padding: 20px 16px 110px; }
  .page-head h1 { font-size: 23px; }
  .builder { grid-template-columns: 1fr; }
  .cart { display: none; }
  .cart.open { display: flex; position: fixed; inset: auto 0 0 0; top: 64px; z-index: 60; border-radius: 20px 20px 0 0; max-height: none; }
  .cartbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 35; background: var(--char); color: #fff; border-radius: 14px; padding: 12px 16px; align-items: center; justify-content: space-between; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); cursor: pointer; font-weight: 700; border: 0; width: calc(100% - 24px); }
  .plist { max-height: none; }
  .od-head { grid-template-columns: 1fr 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-brand { padding: 30px 24px; }
  .auth-brand h1 { font-size: 30px; }
  .auth-steps, .auth-brand .ring { display: none; }
  .hbar { grid-template-columns: 100px 1fr 90px; }
  .log-row { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 560px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi .v { font-size: 21px; }
  .rest-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .prow { grid-template-columns: 40px 1fr; }
  .prow .thumb { width: 40px; height: 40px; }
  .prow .ctl { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
  .filters .field { min-width: calc(50% - 5px); flex: 1; }
  .hide-sm { display: none; }
}

/* vertical bars */
.vbars { display: flex; align-items: stretch; gap: 4px; padding-bottom: 20px; }
.vb { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; position: relative; min-width: 0; }
.vb-bar { background: var(--espresso); border-radius: 5px 5px 2px 2px; width: 72%; max-width: 34px; margin: 0 auto; transition: height .3s; }
.vb-bar.hi { background: var(--crema); }
.vb-bar.zero { height: 2px !important; background: var(--line); }
.vb:hover .vb-bar:not(.zero) { filter: brightness(1.15); }
.vb-l { position: absolute; bottom: -19px; left: 0; right: 0; text-align: center; font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }

.cols > *, .builder > *, .kpis > *, .rest-grid > * { min-width: 0; }
.t .mono, .t td:first-child .mono { white-space: nowrap; }
td.mono { white-space: nowrap; }

/* =================== ANIMATION & DECORATION =================== */
/* page entrance: cards rise in one after another */
.main > * { animation: rise-in .45s cubic-bezier(.2,.7,.3,1) both; }
.main > *:nth-child(2) { animation-delay: .05s; } .main > *:nth-child(3) { animation-delay: .1s; }
.main > *:nth-child(4) { animation-delay: .15s; } .main > *:nth-child(5) { animation-delay: .2s; } .main > *:nth-child(n+6) { animation-delay: .25s; }
.kpis > *, .rest-grid > *, .sup-grid > *, .choose > * { animation: rise-in .45s cubic-bezier(.2,.7,.3,1) both; }
.kpis > *:nth-child(2), .rest-grid > *:nth-child(2), .sup-grid > *:nth-child(2), .choose > *:nth-child(2) { animation-delay: .06s; }
.kpis > *:nth-child(3), .rest-grid > *:nth-child(3), .sup-grid > *:nth-child(3), .choose > *:nth-child(3) { animation-delay: .12s; }
.kpis > *:nth-child(4), .rest-grid > *:nth-child(4), .sup-grid > *:nth-child(4), .choose > *:nth-child(4) { animation-delay: .18s; }
.sup-grid > *:nth-child(n+5), .choose > *:nth-child(n+5) { animation-delay: .24s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } }

/* hover lift */
.kpi, .rest, .sup, .tile { transition: transform .2s ease, box-shadow .2s ease, border-color .15s; }
a.kpi:hover, .rest:hover, .sup:hover, .tile:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(40,32,20,.06), 0 12px 28px rgba(40,32,20,.10); }
.rest .badge-r { transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.rest:hover .badge-r { transform: rotate(-8deg) scale(1.08); }
.nav { transition: background .15s, color .15s, transform .15s; }
.nav:not(.on):hover { transform: translateX(3px); }
.nav.cta { position: relative; overflow: hidden; }
.nav.cta::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); animation: shine 5s ease-in-out 1.5s infinite; }
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }

/* dashboard hero with the Jeddah delivery scene */
.hero { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: 10px 24px; background: var(--char); color: var(--paper); border-radius: 20px; padding: 24px 26px 0; margin-bottom: 18px; overflow: hidden; position: relative; box-shadow: var(--shadow); }
.hero-txt { padding-bottom: 24px; align-self: center; }
.hero h1 { margin: 0 0 6px; font-size: 28px; letter-spacing: -.02em; }
.hero p { margin: 0 0 18px; color: #BDB7AE; }
.hero-scene { position: relative; min-height: 158px; align-self: stretch; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%); }
.ds-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ds-line path, .ds-cloud, .ds-moon path { fill: none; stroke: #D9CFC0; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ds-line text { font-family: var(--mono); font-size: 8px; fill: #D9CFC0; letter-spacing: .08em; }
.ds-line .ds-sign { font-size: 7px; fill: #A9A196; }
.ds-shop .ds-awn { fill: var(--c); fill-opacity: .55; stroke: #D9CFC0; }
.ds-shop text { fill: #F3F0EA; font-size: 8px; }
.ds-lamp { fill: #D7A46E; animation: twinkle 2.6s ease-in-out infinite; }
.ds-boxes path { fill: rgba(215,164,110,.25); }
.ds-drop { fill: #D9CFC0; animation: drop 2.4s ease-in infinite; } .ds-drop.d2 { animation-delay: .8s; } .ds-drop.d3 { animation-delay: 1.6s; }
.ds-jet { transform-box: fill-box; transform-origin: 50% 100%; animation: jet 3.2s ease-in-out infinite; }
.ds-line .ds-spray { stroke-dasharray: 1.5 4; stroke-width: 1.8; }
.ds-dash { stroke: #6E6860; stroke-width: 2; stroke-dasharray: 14 12; animation: road 1.2s linear infinite; }
.ds-sun-disc { fill: var(--crema); }
.ds-sun-ring { fill: none; stroke: var(--crema); stroke-opacity: .35; stroke-dasharray: 2 5; animation: spin 40s linear infinite; transform-box: fill-box; transform-origin: center; }
.ds-moon path { fill: #D9CFC0; fill-opacity: .9; }
.ds-star { fill: #EFE7DA; animation: twinkle 3s ease-in-out infinite; }
.ds-glowr { opacity: 0; transition: opacity 2s; }
.ds-svg[data-glow="1"] .ds-glowr { opacity: 1; }
.ds-svg[data-night="1"] .ds-sun, .ds-svg[data-night="1"] .ds-clouds { display: none; }
.ds-svg[data-night="0"] .ds-moon, .ds-svg[data-night="0"] .ds-stars { display: none; }
.ds-svg[data-night="0"] .ds-lamp { fill: #6E6860; animation: none; }
.ds-cloud.c1 { animation: cloud1 70s linear infinite; } .ds-cloud.c2 { animation: cloud2 95s linear infinite; }
.ds-truck-move { animation: deliver 14s cubic-bezier(.45,.05,.55,.95) infinite; }
.ds-truck .truck { color: var(--crema); }
.ds-truck .tk-body { fill: rgba(215,164,110,.18); }
.ds-label { position: absolute; left: 8%; top: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: #A9A196; display: flex; align-items: center; gap: 6px; }
.ds-label b { color: #EFE7DA; }
.ds-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--crema); animation: twinkle 2s ease-in-out infinite; }
/* truck leaves the warehouse, stops at the restaurants, then drives off */
@keyframes deliver { 0% { transform: translateX(80px); } 8% { transform: translateX(80px); } 42% { transform: translateX(470px); } 58% { transform: translateX(470px); } 80% { transform: translateX(700px); } 80.01% { transform: translateX(-60px); } 100% { transform: translateX(80px); } }

/* truck parts (used everywhere) */
.truck { overflow: visible; }
.truck .tk-wheel { transform-box: fill-box; transform-origin: center; animation: spin .7s linear infinite; }
.truck .tk-puff { opacity: 0; animation: puff 1.6s ease-out infinite; } .truck .tk-puff.p2 { animation-delay: .8s; }
.truck .tk-body { animation: bob .45s ease-in-out infinite alternate; }
@keyframes puff { 0% { opacity: .7; transform: translate(0, 0) scale(.6); } 100% { opacity: 0; transform: translate(-10px, -6px) scale(1.6); } }
@keyframes bob { to { transform: translateY(-.8px); } }

/* login page */
.spin-logo { position: absolute; right: -150px; bottom: -150px; width: 420px; height: 420px; opacity: .1; pointer-events: none; }
.spin-logo svg { width: 100%; height: 100%; }
.spin-logo .sl-ring { transform-origin: 100px 100px; animation: spin 40s linear infinite; }
.auth-brand .typer { display: inline-block; white-space: nowrap; padding-right: 4px; border-right: 3px solid var(--crema); animation: type 1.8s steps(21) .5s both, caret .8s step-end 7 forwards; }
@keyframes type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes caret { 50% { border-color: transparent; } to { border-color: transparent; } }
.auth-road { position: absolute; left: 0; right: 0; bottom: 0; height: 52px; overflow: hidden; }
.auth-road .road-line, .sb-road .road-line { position: absolute; left: 0; right: 0; bottom: 10px; height: 2px; background: repeating-linear-gradient(90deg, #5A5650 0 14px, transparent 14px 26px); animation: road-bg 1.2s linear infinite; }
.auth-truck { position: absolute; bottom: 12px; width: 70px; color: var(--crema); animation: drive-across 11s linear infinite; }
.auth-truck svg { width: 70px; height: 40px; }
@keyframes drive-across { from { left: -90px; } to { left: 100%; } }
@keyframes road-bg { to { background-position: -26px 0; } }
.auth-steps div { animation: rise-in .5s both; } .auth-steps div:nth-child(1) { animation-delay: 1.2s; } .auth-steps div:nth-child(2) { animation-delay: 1.4s; } .auth-steps div:nth-child(3) { animation-delay: 1.6s; }
.auth-card { animation: rise-in .5s .1s both; }

/* order builder: rows, add button, cart truck */
.prow { transition: background .25s; }
.prow.flash { animation: flash .9s ease-out; }
@keyframes flash { 0% { background: var(--crema-soft); box-shadow: inset 4px 0 0 var(--crema); } 100% { box-shadow: inset 0 0 0 transparent; } }
.add-btn { transition: transform .1s, background .15s, color .15s; } .add-btn:active { transform: scale(.94); }
.count.bump { animation: bump .45s cubic-bezier(.3,1.8,.5,1); display: inline-block; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
.cart-head { gap: 10px; }
.cart-head h3 { margin-right: auto; }
.cart-truck { width: 66px; height: 40px; color: var(--ink-2); display: inline-flex; }
.cart-truck svg { width: 100%; height: 100%; overflow: visible; }
.cart-truck .ct-box { fill: var(--crema); stroke: var(--espresso); stroke-width: 1; }
.cart-truck .ct-box.new { animation: drop-in .45s cubic-bezier(.3,1.5,.5,1); transform-box: fill-box; }
@keyframes drop-in { from { transform: translateY(-16px); opacity: 0; } }
.cart-truck.loaded { color: var(--char); }
.cart-truck.go { animation: drive-off .75s ease-in forwards; }
.cart-truck.go .ct-w { animation: spin .3s linear infinite; transform-box: fill-box; transform-origin: center; stroke-dasharray: 4 3; }
@keyframes drive-off { 20% { transform: translateX(-6px); } 100% { transform: translateX(260px); opacity: 0; } }

/* order sent banner */
.sent-banner { margin-bottom: 18px; background: #EAF6EE; border-color: #C7E7D2; display: grid; grid-template-columns: 200px 1fr; align-items: center; overflow: hidden; }
.sent-banner .sb-text { padding: 16px 18px; }
.sb-road { position: relative; height: 60px; background: linear-gradient(#DCEFE3, #EAF6EE); }
.sb-road .road-line { background: repeating-linear-gradient(90deg, #A9CDB6 0 14px, transparent 14px 26px); }
.sb-truck { position: absolute; bottom: 12px; color: var(--ok); width: 64px; animation: drive-across 3.2s ease-in-out infinite; }
.sb-truck svg { width: 64px; height: 36px; }

/* received confetti */
.confetti { position: fixed; z-index: 90; pointer-events: none; }
.confetti i { position: absolute; width: 8px; height: 5px; border-radius: 1.5px; animation: burst 1.1s cubic-bezier(.2,.6,.4,1) forwards; }
@keyframes burst { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(var(--x), calc(var(--y) + 90px)) rotate(var(--r)); opacity: 0; } }
.pill.received { animation: pop .5s cubic-bezier(.3,1.8,.5,1); }
@keyframes pop { 0% { transform: scale(.6); } 100% { transform: scale(1); } }

/* empty states */
.empty-box { width: 64px; height: 64px; color: #B9AFA1; display: block; margin: 0 auto 10px; overflow: visible; }
.empty-box .eb-lid { transform-box: fill-box; transform-origin: 50% 100%; animation: lid 2.6s ease-in-out infinite; }
@keyframes lid { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* bars grow */
.vb-bar { animation: grow .7s cubic-bezier(.2,.7,.3,1) both; transform-origin: bottom; }
.vbars .vb:nth-child(n) .vb-bar { animation-delay: calc(var(--i, 0) * 30ms); }
@keyframes grow { from { transform: scaleY(0); } }
.hbar .fill { animation: grow-x .8s cubic-bezier(.2,.7,.3,1) both; transform-origin: left; }
@keyframes grow-x { from { transform: scaleX(0); } }

/* modal & toast already animate; shared keyframes */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes drop { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(44px); opacity: 0; } }
@keyframes jet { 0%, 100% { transform: scaleY(.9); } 50% { transform: scaleY(1.04); } }
@keyframes road { to { stroke-dashoffset: -26; } }
@keyframes cloud1 { from { transform: translate(-60px, 34px); } to { transform: translate(700px, 34px); } }
@keyframes cloud2 { from { transform: translate(-60px, 56px); } to { transform: translate(700px, 56px); } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 20px 18px 0; }
  .hero-txt { padding-bottom: 0; }
  .hero h1 { font-size: 23px; }
  .hero-scene { min-height: 120px; }
  .sent-banner { grid-template-columns: 1fr; }
  .spin-logo { width: 260px; height: 260px; right: -70px; top: -70px; bottom: auto; }
  .auth-brand { position: relative; padding-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* =================== Settings: tabs, users, my account =================== */
.stabs { display: flex; gap: 4px; border-bottom: 1.5px solid var(--line); margin: -4px 0 22px; overflow-x: auto; scrollbar-width: none; }
.stabs a { padding: 12px 18px; font-weight: 700; font-size: 16px; color: var(--ink-3); text-decoration: none; border-bottom: 2.5px solid transparent; margin-bottom: -1.5px; white-space: nowrap; transition: color .15s, border-color .15s; }
.stabs a:hover { color: var(--ink-2); }
.stabs a.on { color: var(--ink); border-color: var(--crema); }
.set-intro { color: var(--ink-2); margin: 0 0 16px; max-width: 980px; }
.set-actions { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.set-actions .btn { padding: 12px 20px; font-size: 15px; }
.users-t td { padding-top: 14px; padding-bottom: 14px; }
.u-cell { display: flex; gap: 12px; align-items: center; }
.u-cell b { display: block; font-size: 15px; }
.u-cell span:not(.av) { font-size: 13px; color: var(--ink-3); }
.muted-2 { color: var(--ink-2); }
.av { width: 40px; height: 40px; border-radius: 50%; background: var(--crema); color: var(--char); display: inline-grid; place-items: center; font-weight: 800; font-size: 16px; flex: none; overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.mini { width: 34px; height: 34px; font-size: 13px; }
.av.lg { width: 64px; height: 64px; font-size: 24px; }
.av.xl { width: 88px; height: 88px; font-size: 34px; box-shadow: 0 0 0 4px var(--crema-soft); }
.role { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.role.admin { background: var(--crema-soft); color: #8A5400; }
.role.staff { background: #EEEBE6; color: var(--ink-2); }
.st { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.st.active { background: var(--ok-bg); color: var(--ok); }
.st.locked { background: var(--bad-bg); color: var(--bad); }
.st.locked svg { width: 13px; height: 13px; }
.st.off { background: #EEEBE6; color: var(--ink-3); }
.acct { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.acct .card-head { padding: 18px 22px; }
.acct .card-pad { padding: 22px; }
.h-ic { display: flex; gap: 10px; align-items: center; font-size: 17px !important; }
.me-row { display: flex; gap: 18px; align-items: center; margin-bottom: 22px; }
.me-name { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.me-sub { color: var(--ink-3); font-size: 14px; margin-top: 4px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.me-sub b { color: var(--ink-2); font-weight: 700; }
.opt { color: var(--ink-3); font-weight: 500; }
.acct .pw-wrap button { letter-spacing: .04em; }
.acct .btn.crema { padding: 12px 22px; }
@media (max-width: 900px) { .acct { grid-template-columns: 1fr; } .stabs a { padding: 10px 12px; font-size: 14.5px; } }

/* animations switched off on this device */
.no-motion *, .no-motion *::before, .no-motion *::after { animation: none !important; transition: none !important; }
.av { position: relative; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.av.mini { min-width: 34px; }
.side-foot > a { display: flex !important; flex: none; }

/* =================== Restaurant logos =================== */
.rlogo { width: 36px; height: 36px; border-radius: 50%; flex: none; object-fit: cover; background: #fff; box-shadow: 0 0 0 2px #fff, 0 3px 10px rgba(0,0,0,.12); display: inline-grid; place-items: center; }
.rlogo.plane { background: var(--c, #E8902A); color: #282828; }
.rlogo.plane svg { width: 20px; height: 20px; }
.rlogo.ghaya { box-shadow: 0 0 0 2px #B08A3E, 0 3px 10px rgba(0,0,0,.12); }
.rlogo.txt { background: var(--c); color: #fff; font-family: var(--mono); font-size: 12px; }
.rlogo.sm { width: 30px; height: 30px; } .rlogo.sm.plane svg { width: 16px; height: 16px; }
.rlogo.xs { width: 22px; height: 22px; vertical-align: -6px; box-shadow: 0 0 0 1.5px #fff; } .rlogo.xs.plane svg { width: 12px; height: 12px; }
.rlogo.pb { width: 52px; height: 52px; } .rlogo.pb.plane svg { width: 28px; height: 28px; } .rlogo.pb.txt { font-size: 15px; }
.rest:hover .rlogo { transform: rotate(-8deg) scale(1.08); }
.rlogo { transition: transform .3s cubic-bezier(.3,1.6,.5,1); }

/* =================== Page banners =================== */
.pbanner { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-radius: 20px; padding: 18px 20px; margin-bottom: 20px;
  background: linear-gradient(100deg, #FFFDF9 0%, color-mix(in srgb, var(--pc) 16%, #FBF6EF) 100%); border: 1px solid color-mix(in srgb, var(--pc) 30%, var(--line)); box-shadow: var(--shadow); }
.pbanner > :not(.deco-layer) { position: relative; z-index: 1; }
.pbanner h1 { margin: 0; font-size: 26px; letter-spacing: -.02em; }
.pbanner .sub { color: var(--ink-2); margin: 3px 0 0; }
.pb-title { display: flex; gap: 14px; align-items: center; min-width: 0; }
.pb-ic { width: 52px; height: 52px; border-radius: 16px; background: var(--char); color: var(--crema); display: grid; place-items: center; flex: none; box-shadow: 0 6px 16px rgba(40,40,40,.18); }
.pb-ic svg { width: 26px; height: 26px; }
.pb-plane { background: linear-gradient(100deg, #FFF6E6 0%, #EAF3FB 55%, #DCEBF8 100%); }
.pb-edition { background: linear-gradient(100deg, #FBF6EF 0%, #F3E6D5 100%); }
.pb-bupa { background: linear-gradient(100deg, #FFFDF8 0%, #F6EEDC 100%); }
.deco-layer { position: absolute; inset: 0; pointer-events: none; z-index: 0; color: var(--espresso); }
/* The Plane */
.dc-cloud { position: absolute; height: 12px; border-radius: 12px; background: rgba(255,255,255,.95); }
.dc-cloud::before, .dc-cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.dc-cloud::before { width: 18px; height: 18px; left: 22%; top: -9px; } .dc-cloud::after { width: 12px; height: 12px; left: 52%; top: -5px; }
.dc-cloud.a { width: 58px; left: 40%; top: 18px; animation: dc-drift 9s ease-in-out infinite alternate; }
.dc-cloud.b { width: 40px; left: 58%; top: 56px; opacity: .8; animation: dc-drift 11s ease-in-out infinite alternate-reverse; }
.dc-cloud.c { width: 46px; left: 78%; top: 14px; opacity: .7; animation: dc-drift 10s ease-in-out infinite alternate; }
@keyframes dc-drift { from { transform: translateX(24px); } to { transform: translateX(-10px); } }
.dc-path, .dc-road { position: absolute; left: 40%; top: 0; width: 34%; height: 100%; fill: none; stroke: color-mix(in srgb, var(--pc) 60%, transparent); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }
.dc-plane { position: absolute; left: 40%; top: 46px; width: 26px; height: 26px; color: #E8902A; offset-path: path('M0 22 C 70 26, 130 -10, 260 -14'); offset-rotate: auto; animation: dc-fly 6s ease-in-out infinite; }
.dc-plane svg { width: 26px; height: 26px; transform: rotate(45deg); }
@keyframes dc-fly { 0% { offset-distance: 0%; opacity: 0; } 10% { opacity: 1; } 70% { offset-distance: 100%; opacity: 1; } 80%, 100% { offset-distance: 100%; opacity: 0; } }
/* Daily Edition */
.dc-cup { position: absolute; left: 50%; top: 50%; transform: translateY(-50%); width: 60px; height: 60px; color: var(--espresso); opacity: .55; }
.dc-cup svg { width: 60px; height: 60px; }
.dc-cup .i-steam { animation: dc-steam 2.4s ease-in-out infinite; } .dc-cup .s2 { animation-delay: .4s; } .dc-cup .s3 { animation-delay: .8s; }
@keyframes dc-steam { 0% { opacity: 0; transform: translateY(6px); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(-6px); } }
.dc-bean { position: absolute; width: 14px; height: 20px; border-radius: 50%; background: #8A5E3C; opacity: .22; animation: bean 5s ease-in-out infinite alternate; }
.dc-bean::after { content: ""; position: absolute; left: 6px; top: 3px; width: 2px; height: 14px; border-radius: 2px; background: #FBF6EF; transform: rotate(12deg); }
.dc-bean.b1 { left: 58%; top: 14px; --r: -30deg; } .dc-bean.b2 { left: 62%; top: 58px; --r: 40deg; animation-delay: -1s; }
.dc-bean.b3 { left: 70%; top: 18px; --r: -70deg; opacity: .15; animation-delay: -2s; } .dc-bean.b4 { left: 46%; top: 62px; --r: 20deg; opacity: .15; animation-delay: -3s; }
@keyframes bean { from { transform: rotate(var(--r)) translateY(0); } to { transform: rotate(calc(var(--r) + 25deg)) translateY(-5px); } }
/* Bupa */
.dc-star { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; transform: translateY(-50%); fill: none; stroke: #B08A3E; stroke-width: 2; opacity: .35; animation: spin 30s linear infinite; }
.dc-shine { position: absolute; top: 0; bottom: 0; left: -30%; width: 22%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.8), transparent); transform: skewX(-18deg); animation: dc-shine 4.5s ease-in-out infinite; }
@keyframes dc-shine { 0% { left: -30%; } 60%, 100% { left: 120%; } }
/* Orders */
.dc-truck { position: absolute; left: 40%; top: 36px; width: 46px; color: var(--espresso); offset-path: path('M0 32 C 60 34, 120 10, 210 8'); offset-rotate: 0deg; animation: dc-fly 7s ease-in-out infinite; }
.dc-truck svg { width: 46px; height: 26px; }
.dc-receipt { position: absolute; left: 80%; top: 50%; transform: translateY(-50%) rotate(6deg); width: 40px; height: 52px; color: var(--espresso); opacity: .45; }
.dc-receipt .rl { stroke-dasharray: 16; animation: write 3s ease-in-out infinite; } .dc-receipt .r2 { animation-delay: .3s; } .dc-receipt .r3 { animation-delay: .6s; }
@keyframes write { 0% { stroke-dashoffset: 16; } 40%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -16; } }
/* Catalog */
.dc-boxes { position: absolute; left: 52%; bottom: 10px; width: 80px; height: 70px; }
.dc-boxes .bx { position: absolute; width: 30px; height: 26px; border-radius: 4px; background: color-mix(in srgb, var(--crema) 55%, #fff); border: 2px solid color-mix(in srgb, var(--espresso) 45%, transparent); animation: stack 4.5s cubic-bezier(.3,1.4,.5,1) infinite; }
.dc-boxes .bx::after { content: ''; position: absolute; left: 11px; top: -2px; width: 4px; height: 26px; background: color-mix(in srgb, var(--espresso) 25%, transparent); }
.dc-boxes .b1 { left: 0; bottom: 0; } .dc-boxes .b2 { left: 32px; bottom: 0; animation-delay: .25s; } .dc-boxes .b3 { left: 16px; bottom: 28px; animation-delay: .5s; }
@keyframes stack { 0% { transform: translateY(-60px); opacity: 0; } 15% { transform: translateY(0); opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }
.dc-barcode { position: absolute; left: 72%; top: 50%; transform: translateY(-50%); width: 90px; height: 40px; stroke: var(--espresso); stroke-width: 2.2; opacity: .3; }
.dc-scan { position: absolute; left: 72%; top: 50%; width: 92px; height: 2px; background: #D9534F; box-shadow: 0 0 8px #D9534F; opacity: .6; animation: scan 2.2s ease-in-out infinite alternate; }
@keyframes scan { from { transform: translateY(-20px); } to { transform: translateY(18px); } }
/* Suppliers */
.dc-house { position: absolute; left: 50%; bottom: 8px; width: 80px; height: 56px; color: var(--espresso); opacity: .45; }
.dc-truck.out { left: 58%; top: auto; bottom: 8px; offset-path: none; animation: drive-out 6s ease-in-out infinite; }
@keyframes drive-out { 0%, 15% { transform: translateX(0); opacity: 0; } 25% { opacity: 1; } 80% { transform: translateX(260px); opacity: 1; } 100% { transform: translateX(300px); opacity: 0; } }
.dc-dash { position: absolute; left: 50%; right: 0; bottom: 6px; height: 2px; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--espresso) 35%, transparent) 0 10px, transparent 10px 18px); animation: road-bg 1.2s linear infinite; }
/* Reports */
.dc-bars { position: absolute; left: 54%; bottom: 12px; height: 60px; display: flex; gap: 8px; align-items: flex-end; }
.dc-bars i { width: 12px; height: var(--h); border-radius: 4px 4px 1px 1px; background: color-mix(in srgb, var(--espresso) 40%, transparent); transform-origin: bottom; animation: bars 3s ease-in-out infinite; }
.dc-bars i:nth-child(2) { animation-delay: .15s; } .dc-bars i:nth-child(3) { animation-delay: .3s; } .dc-bars i:nth-child(4) { animation-delay: .45s; background: var(--crema); } .dc-bars i:nth-child(5) { animation-delay: .6s; }
@keyframes bars { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.dc-line { position: absolute; left: 70%; top: 20%; width: 120px; height: 60%; fill: none; stroke: var(--crema); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 160; animation: draw 4s ease-in-out infinite; }
@keyframes draw { 0% { stroke-dashoffset: 160; } 50%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -160; } }
/* Settings */
.dc-gear { position: absolute; color: var(--espresso); opacity: .3; }
.dc-gear.g1 { left: 56%; top: 50%; width: 70px; height: 70px; margin-top: -35px; animation: spin 14s linear infinite; }
.dc-gear.g2 { left: calc(56% + 58px); top: 14px; width: 44px; height: 44px; animation: spin 9s linear infinite reverse; }
/* New order (step 1) */
.dc-cartbob { position: absolute; left: 56%; top: 50%; margin-top: -22px; width: 44px; height: 44px; color: var(--espresso); opacity: .45; animation: cartbob 2.6s ease-in-out infinite; }
.dc-cartbob svg { width: 44px; height: 44px; }
@keyframes cartbob { 0%, 100% { transform: translateX(0) rotate(0); } 50% { transform: translateX(26px) rotate(-4deg); } }
.dc-dot { position: absolute; width: 10px; height: 10px; border-radius: 3px; background: var(--crema); top: 30%; animation: drop-in2 2.6s ease-in infinite; }
.dc-dot.d1 { left: 60%; } .dc-dot.d2 { left: 64%; animation-delay: .4s; } .dc-dot.d3 { left: 68%; animation-delay: .8s; }
@keyframes drop-in2 { 0% { transform: translateY(-30px); opacity: 0; } 30% { opacity: 1; } 60%, 100% { transform: translateY(14px); opacity: 0; } }
@media (max-width: 900px) {
  .pbanner { padding: 14px; } .pbanner h1 { font-size: 21px; }
  .pb-ic, .rlogo.pb { width: 42px; height: 42px; }
  .dc-cup, .dc-star, .dc-receipt, .dc-barcode, .dc-scan, .dc-line, .dc-gear.g2, .dc-bean.b2, .dc-bean.b3 { display: none; }
  .dc-path, .dc-plane, .dc-road, .dc-truck, .dc-boxes, .dc-house, .dc-bars, .dc-gear.g1, .dc-cartbob { left: auto; right: 6%; opacity: .25; }
}

/* =================== Fly-by truck on page change =================== */
#flyby { position: fixed; top: 6px; left: 0; width: 100vw; height: 30px; pointer-events: none; z-index: 900; overflow: hidden; display: none; }
#flyby.go { display: block; }
#flyby .fb-craft { position: absolute; top: 0; left: 0; width: 52px; height: 30px; color: var(--espresso); }
#flyby .fb-craft svg { width: 52px; height: 30px; }
#flyby .fb-craft .tk-body { fill: var(--crema); }
#flyby .fb-craft::before { content: ""; position: absolute; right: calc(100% + 2px); top: 22px; width: 100vw; height: 2px; background: repeating-linear-gradient(270deg, var(--crema) 0 8px, transparent 8px 14px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 75%); mask-image: linear-gradient(90deg, transparent, #000 75%); }
#flyby.go .fb-craft { animation: fb-drive 1.05s cubic-bezier(.45,.05,.55,.95) both; }
@keyframes fb-drive { from { transform: translateX(-70px); } to { transform: translateX(100vw); } }

/* =================== Live update bar =================== */
#updbar { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--char); color: #fff; padding: 10px 12px 10px 16px; border-radius: 14px; display: flex; gap: 12px; align-items: center; z-index: 85; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: 14px; animation: rise-in .3s both; }

/* =================== Bell =================== */
.bell-link { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 10px; padding: 11px 12px; border: 0; border-radius: 11px; background: rgba(255,255,255,.06); color: #E4DED4; font: inherit; font-weight: 600; font-size: 14.5px; cursor: pointer; text-align: left; }
.bell-link:hover { background: rgba(255,255,255,.12); color: #fff; }
.bell-link svg { width: 18px; height: 18px; flex: none; transform-origin: 50% 0; }
.bell-link span:first-of-type { flex: 1; }
.bell-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--crema); color: #282828; font-size: 11.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; animation: pop .4s cubic-bezier(.3,1.8,.5,1); }
.bell-badge[hidden] { display: none; }
.bell-badge.red { background: var(--bad); color: #fff; }
.bell-link:has(.bell-badge.red:not([hidden])) svg { animation: ring 2.4s ease-in-out infinite; }
@keyframes ring { 0%, 70%, 100% { transform: rotate(0); } 74% { transform: rotate(14deg); } 78% { transform: rotate(-12deg); } 82% { transform: rotate(9deg); } 86% { transform: rotate(-6deg); } 90% { transform: rotate(3deg); } }
.bell-m { position: relative; }
.bell-m svg { width: 18px; height: 18px; }
.bell-m .bell-badge { position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; font-size: 10.5px; }
.bell-m .bell-badge.red { right: auto; left: -7px; }
.bell-tabs { display: flex; gap: 6px; background: var(--paper); padding: 4px; border-radius: 12px; margin-bottom: 14px; }
.bell-tabs button { flex: 1; border: 0; background: none; padding: 9px 10px; border-radius: 9px; font: inherit; font-weight: 700; font-size: 14px; color: var(--ink-2); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; justify-content: center; }
.bell-tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.bt-n { background: var(--crema); color: #282828; border-radius: 999px; font-size: 11px; padding: 1px 7px; }
.bt-n.red { background: var(--bad); color: #fff; }
.bt-help { margin: 0 0 10px; color: var(--ink-3); font-size: 13px; }
.nt-list { display: flex; flex-direction: column; gap: 8px; max-height: 58vh; overflow-y: auto; }
.nt { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; background: #FBF9F5; border: 1px solid #EEE8DE; animation: rise-in .3s both; }
.nt.new { background: var(--crema-soft); border-color: #EBD3B4; }
.nt.warn { border-color: #E8C4C4; }
.nt .av { width: 34px; height: 34px; font-size: 13px; }
.nt-ico { width: 34px; height: 34px; border-radius: 50%; background: #FBEBEB; color: #9B2C2C; display: grid; place-items: center; flex: none; }
.nt-ico svg { width: 17px; height: 17px; }
.nt-ico.sys { background: linear-gradient(135deg, #FFF3D6, #F6E1FF); font-size: 17px; }
.nt-b { min-width: 0; flex: 1; }
.nt-t { font-size: 14.5px; }
.nt-t a { color: var(--espresso); font-weight: 700; }
.nt-s { font-size: 13px; color: var(--ink-2); margin-top: 3px; line-height: 1.45; overflow-wrap: anywhere; }
.nt-time { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; font-family: var(--mono); }
.nt-dot { font-size: 10.5px; font-weight: 800; color: #6B4A2B; background: #fff; border-radius: 999px; padding: 1px 7px; margin-left: 4px; vertical-align: 1px; }
.al-list { display: flex; flex-direction: column; gap: 14px; max-height: 58vh; overflow-y: auto; padding: 2px; }
.al-card { flex: none; --c: #E0A33A; --cs: #FFF5E3; border: 1.5px solid color-mix(in srgb, var(--c) 35%, #fff); border-radius: 14px; overflow: hidden; background: #fff; animation: rise-in .35s both; }
.al-card:nth-child(2) { animation-delay: .08s; } .al-card:nth-child(3) { animation-delay: .16s; } .al-card:nth-child(4) { animation-delay: .24s; }
.al-card.sev-bad { --c: #D9534F; --cs: #FDECEA; }
.al-card.sev-info { --c: #6B8BC9; --cs: #EEF3FC; }
.al-h { background: linear-gradient(90deg, var(--cs), #fff); padding: 11px 14px; border-bottom: 1px solid color-mix(in srgb, var(--c) 20%, #fff); }
.al-t { font-weight: 800; font-size: 15px; color: color-mix(in srgb, var(--c) 70%, #222); }
.al-b { padding: 12px 14px 14px; }
.al-b p { margin: 0 0 8px; color: var(--ink-2); font-size: 13.5px; }
.al-items { list-style: none; margin: 0 0 12px; padding: 0; font-size: 13.5px; }
.al-items li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line-2); }
.al-items li > span { color: var(--ink-3); text-align: right; }
.al-items a { color: var(--espresso); }
.al-items .al-more { color: var(--ink-3); justify-content: center; border: 0; }
.al-go { width: 100%; background: #fff; border: 1.5px solid color-mix(in srgb, var(--c) 55%, #fff); color: color-mix(in srgb, var(--c) 75%, #222); }
.al-go:hover { background: var(--cs); }
.al-f { padding: 8px 14px; font-size: 12px; color: var(--ink-3); border-top: 1px solid var(--line-2); background: #FCFBF9; }
.al-empty small { display: block; margin-top: 8px; color: var(--ink-3); }
.alert-strip { display: flex; align-items: center; gap: 12px; background: #FFF4F2; border: 1.5px solid #F2C4BE; border-radius: 14px; padding: 10px 14px; margin: -4px 0 18px; font-size: 14px; color: #7A2C24; animation: rise-in .35s both; }
.alert-strip[hidden] { display: none; }
.alert-strip > span:nth-child(2) { flex: 1; }
.as-ico { font-size: 18px; animation: ring 2.4s ease-in-out infinite; display: inline-block; }

/* =================== Activity log =================== */
.log-filters { padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.lf-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lf-row > svg { width: 18px; height: 18px; color: var(--ink-3); }
.lf-sel { width: auto; min-width: 140px; padding: 8px 32px 8px 11px; font-size: 13.5px; }
.lg-act { display: inline-flex; gap: 7px; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: #EEEBE6; color: var(--ink-2); white-space: nowrap; }
.lg-act svg { width: 14px; height: 14px; }
.lg-act.a-order { background: var(--crema-soft); color: #8A5400; }
.lg-act.a-product, .lg-act.a-products, .lg-act.a-supplier { background: #E8F0F7; color: var(--info); }
.lg-act.a-login, .lg-act.a-logout { background: #F1EFEC; color: var(--ink-3); }
.lg-act.bad { background: var(--bad-bg); color: var(--bad); }
.log-t td { padding-top: 10px; padding-bottom: 10px; }
.log-t .av.mini { width: 28px; height: 28px; font-size: 11px; }
.ld-list { display: flex; flex-direction: column; gap: 6px; }
.ld-item { border: 1.5px solid var(--line-2); border-radius: 10px; padding: 8px 12px; font-size: 14px; background: #FCFBF9; }
@media (max-width: 900px) { .lf-sel { min-width: calc(50% - 6px); flex: 1; } }
/* decorations live in the right half of the banner so they never sit on the title */
.pbanner .pb-title { max-width: 54%; }
.pbanner .deco-layer { left: 50%; }
.pbanner .dc-path, .pbanner .dc-road { left: 2%; width: 62%; }
.pbanner .dc-plane, .pbanner .dc-truck { left: 2%; }
.pbanner .dc-receipt { left: 70%; }
.pbanner .dc-cloud.a { left: 12%; } .pbanner .dc-cloud.b { left: 40%; } .pbanner .dc-cloud.c { left: 66%; }
.pbanner .dc-cup { left: 22%; }
.pbanner .dc-bean.b1 { left: 38%; } .pbanner .dc-bean.b2 { left: 46%; } .pbanner .dc-bean.b3 { left: 58%; } .pbanner .dc-bean.b4 { left: 8%; }
.pbanner .dc-star { left: 20%; }
.pbanner .dc-boxes { left: 8%; } .pbanner .dc-barcode, .pbanner .dc-scan { left: 38%; }
.pbanner .dc-house { left: 4%; } .pbanner .dc-truck.out { left: 16%; } .pbanner .dc-dash { left: 0; }
.pbanner .dc-bars { left: 4%; } .pbanner .dc-line { left: 22%; }
.pbanner .dc-gear.g1 { left: 14%; } .pbanner .dc-gear.g2 { left: calc(14% + 58px); }
.pbanner .dc-cartbob { left: 14%; } .pbanner .dc-dot.d1 { left: 20%; } .pbanner .dc-dot.d2 { left: 25%; } .pbanner .dc-dot.d3 { left: 30%; }
@media (max-width: 900px) {
  .pbanner .pb-title { max-width: 100%; }
  .pbanner .deco-layer { left: 55%; opacity: .5; }
  .pbanner .dc-path, .pbanner .dc-plane, .pbanner .dc-road, .pbanner .dc-truck, .pbanner .dc-boxes, .pbanner .dc-house, .pbanner .dc-bars, .pbanner .dc-gear.g1, .pbanner .dc-cartbob { left: 20%; right: auto; opacity: .6; }
}

/* =================== Login: animated brand + welcome truck =================== */
.auth-logo { gap: 14px; }
.brand-badge { width: 72px; height: 72px; flex: none; border-radius: 50%; box-shadow: 0 8px 26px rgba(0,0,0,.35); transition: transform .3s; }
.brand-badge svg { width: 100%; height: 100%; display: block; }
.brand-badge .bb-ring { transform-origin: 50px 50px; animation: spin 18s linear infinite; }
.brand-badge:hover { transform: scale(1.06) rotate(-6deg); }
.brand-badge:hover .bb-ring { animation-duration: 4s; }
.bb-dot { animation: dotpulse 1.6s ease-in-out infinite; transform-origin: 66px 55px; }
@keyframes dotpulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: .55; } }
.auth-logo .wordmark { font-size: 24px; }
.wm-anim i { font-style: normal; display: inline-block; animation: wm-in .5s cubic-bezier(.3,1.5,.5,1) both, wm-wave 6s ease-in-out infinite; animation-delay: calc(var(--i) * 55ms), calc(2s + var(--i) * 90ms); }
@keyframes wm-in { from { opacity: 0; transform: translateY(14px) rotate(-8deg); } }
@keyframes wm-wave { 0%, 12%, 100% { transform: translateY(0); } 6% { transform: translateY(-5px); } }
.wm-dot { display: inline-block; animation: wm-in .5s .55s both, dotpulse 1.6s 1.2s ease-in-out infinite; }
.tag-rot { display: flex; align-items: center; min-height: 18px; margin-top: 3px; font-size: 12.5px; }
.tr-caret { width: 7px; height: 13px; background: var(--crema); margin-left: 3px; animation: caret-b .9s step-end infinite; }
@keyframes caret-b { 50% { opacity: 0; } }

.auth-form { position: relative; overflow: hidden; }
.af-float { position: absolute; inset: 0; pointer-events: none; }
.aff { position: absolute; color: var(--espresso); opacity: .1; animation: float 9s ease-in-out infinite; }
.aff svg { width: 46px; height: 46px; }
.aff:nth-child(even) svg { width: 34px; height: 34px; }
@keyframes float { 0%, 100% { transform: translate(0, 0) rotate(-6deg); } 50% { transform: translate(10px, -18px) rotate(6deg); } }
.auth-card { position: relative; }
.auth-card.shake { animation: shake .45s cubic-bezier(.36,.07,.19,.97); }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.auth-card .btn.block { position: relative; overflow: hidden; }
.auth-card .btn.block::after { content: ''; position: absolute; top: 0; bottom: 0; width: 35%; left: -50%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.25), transparent); animation: shine 4s ease-in-out 2s infinite; }
.auth-card .input { transition: border-color .15s, box-shadow .2s, transform .15s; }
.auth-card .input:focus { transform: translateY(-1px); }

.welcome-truck { position: relative; height: 92px; margin: 0 0 18px; }
.wt-road { position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: repeating-linear-gradient(90deg, #CFC6B8 0 14px, transparent 14px 26px); animation: road-bg 1.2s linear infinite; }
.welcome-truck.parked .wt-road { animation-play-state: paused; }
.wt-move { position: absolute; left: 0; bottom: 10px; display: flex; align-items: flex-end; animation: wt-in 1.6s cubic-bezier(.2,.8,.3,1) .2s both; }
@keyframes wt-in { from { transform: translateX(-420px); } }
.welcome-truck.leave .wt-move { animation: wt-out .65s cubic-bezier(.6,0,.9,.4) forwards; }
@keyframes wt-out { 15% { transform: translateX(-10px); } to { transform: translateX(560px); opacity: 0; } }
.wt-truck { width: 92px; color: var(--char); }
.wt-truck svg { width: 92px; height: 52px; }
.wt-truck .tk-body { fill: var(--crema); }
.welcome-truck.parked .tk-wheel { animation-play-state: paused; }
.welcome-truck.parked .tk-body { animation-duration: 1.6s; }
.wt-truck.honk { animation: honk .35s ease; }
@keyframes honk { 30% { transform: translateY(-3px) rotate(-2deg); } 60% { transform: translateY(0) rotate(1deg); } }
.wt-rope { width: 26px; height: 2px; background: #8C877F; margin: 0 -2px 30px; transform: rotate(-8deg); }
.wt-sign { display: inline-block; margin-bottom: 18px; background: #fff; border: 2px solid var(--char); border-radius: 8px 3px 3px 8px; padding: 8px 14px; font-weight: 800; font-size: 15px; white-space: nowrap; box-shadow: 0 6px 16px rgba(40,32,20,.12);
  transform-origin: right center; animation: flag 1.4s ease-in-out infinite; }
.wt-sign span { display: inline-block; }
@keyframes flag { 0%, 100% { transform: skewY(-2deg) rotate(-1deg); } 50% { transform: skewY(2deg) rotate(1deg); } }
@media (max-width: 900px) { .welcome-truck { height: 78px; } .wt-truck, .wt-truck svg { width: 76px; } .wt-sign { font-size: 13.5px; padding: 6px 10px; } .brand-badge { width: 52px; height: 52px; } .aff { opacity: .07; } }
