/* ============================================================
   HOG Scheduler — Design System (DARK)
   Generated from design/tokens-dark.css + design/base.css
   Run `node design/build-css.mjs` after editing either file.
   ============================================================ */
:root {
  --bg: #0b0b0d;
  --bg2: #131316;
  --bg3: #1b1b20;
  --bg4: #24242b;
  --hog: #f26f21;
  --hog2: #ff8a3d;
  --hog-dim: rgba(242, 111, 33, 0.12);
  --hog-border: rgba(242, 111, 33, 0.35);
  --text: #e9e9ee;
  --white: #ffffff;
  --muted: #9a9aa6;
  --muted2: #6c6c78;
  --border: #26262d;
  --border2: #33333c;
  --green: #22c55e;
  --red: #ef4444;
  --blue: #3b82f6;
  --orange: #f59e0b;
  --green-dim: rgba(34, 197, 94, 0.12);
  --red-dim: rgba(239, 68, 68, 0.12);
  --blue-dim: rgba(59, 130, 246, 0.12);
  --orange-dim: rgba(245, 158, 11, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 5px;
  --sidebar-w: 230px;
  --topbar-h: 64px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --overlay: rgba(0, 0, 0, 0.65);
  color-scheme: dark;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background .2s ease, color .2s ease;
}
html[dir="ltr"] body { font-family: 'DM Sans', system-ui, sans-serif; }
html[dir="rtl"] body { font-family: 'Alexandria', 'IBM Plex Sans Arabic', system-ui, sans-serif; }
h1, h2, h3, h4, .display { font-family: 'Syne', 'DM Sans', sans-serif; color: var(--white); margin: 0; letter-spacing: -0.01em; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4, html[dir="rtl"] .display { font-family: 'Alexandria', sans-serif; letter-spacing: 0; }
a { color: var(--hog); text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--hog); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 8px; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.text-hog { color: var(--hog); }
.hidden { display: none !important; }

/* ---------- page transition ---------- */
.fade-enter-active, .fade-leave-active { transition: opacity .18s ease; }
.fade-enter-from, .fade-leave-to { opacity: 0; }

/* ---------- sidebar ---------- */
.sidebar {
  position: fixed; inset-block: 0; inset-inline-start: 0;
  width: var(--sidebar-w);
  background: var(--bg2);
  border-inline-end: 1px solid var(--border);
  display: flex; flex-direction: column;
  z-index: 40;
  transition: transform .25s ease;
}
.sidebar-logo { height: var(--topbar-h); display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid var(--border); }
.sidebar-logo img { height: 34px; width: auto; }
.sidebar-logo .brand { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 15px; color: var(--white); line-height: 1.1; }
.sidebar-logo .brand small { display: block; font-family: inherit; font-weight: 500; font-size: 10px; color: var(--hog); letter-spacing: .14em; text-transform: uppercase; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 10px 10px 16px; }
.nav-section-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted2); padding: 16px 10px 6px; font-weight: 600; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--radius-sm);
  color: var(--muted); font-weight: 500; font-size: 13.5px;
  transition: background .15s, color .15s;
  position: relative;
}
.nav-item:hover { background: var(--bg3); color: var(--text); }
.nav-item.active { background: var(--hog-dim); color: var(--hog); }
.nav-item.active::before { content: ''; position: absolute; inset-inline-start: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--hog); }
.nav-icon { width: 18px; height: 18px; flex: 0 0 18px; }
.nav-badge { margin-inline-start: auto; font-size: 10.5px; background: var(--hog); color: #fff; border-radius: 20px; padding: 0 7px; line-height: 18px; }
.sidebar-profile { border-top: 1px solid var(--border); padding: 12px; display: flex; align-items: center; gap: 10px; }
.sidebar-profile .who { flex: 1; min-width: 0; }
.sidebar-profile .who b { display: block; font-size: 13px; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-profile .who span { font-size: 11px; color: var(--muted); text-transform: capitalize; }
.sidebar-backdrop { display: none; }

/* ---------- avatar ---------- */
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--hog-dim); color: var(--hog); display: grid; place-items: center; font-weight: 700; font-size: 13px; overflow: hidden; flex: 0 0 auto; border: 1px solid var(--hog-border); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--lg { width: 72px; height: 72px; font-size: 22px; }
.avatar--sm { width: 28px; height: 28px; font-size: 11px; }

/* ---------- main area ---------- */
.main-wrap { margin-inline-start: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--topbar-h);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px; padding: 0 24px;
}
.topbar-title { flex: 1; min-width: 0; }
.topbar-title h1 { font-size: 18px; }
.topbar-title span { font-size: 12px; color: var(--muted); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar-chip { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; background: var(--hog-dim); border: 1px solid var(--hog-border); color: var(--hog); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.topbar-search { position: relative; }
.topbar-search input { width: 220px; height: 36px; padding: 0 12px 0 34px; border-radius: 20px; background: var(--bg2); border: 1px solid var(--border); outline: none; }
html[dir="rtl"] .topbar-search input { padding: 0 34px 0 12px; }
.topbar-search input:focus { border-color: var(--hog-border); }
.topbar-search svg { position: absolute; inset-inline-start: 11px; top: 10px; width: 16px; height: 16px; color: var(--muted); }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bg2); border: 1px solid var(--border); color: var(--muted); position: relative; }
.icon-btn:hover { color: var(--text); border-color: var(--border2); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .dot { position: absolute; top: 6px; inset-inline-end: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--hog); border: 2px solid var(--bg2); }
.menu-toggle { display: none; }
.content { flex: 1; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.content > div { display: flex; flex-direction: column; gap: 0; }
.copyrights { text-align: center; color: var(--muted2); font-size: 12px; padding-top: 12px; border-top: 1px solid var(--border); }

/* ---------- dropdowns ---------- */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0;
  min-width: 190px; background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 6px; z-index: 60;
}
.dropdown-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: var(--radius-xs); background: none; border: 0; color: var(--text); text-align: start; font-size: 13px; }
.dropdown-item:hover { background: var(--bg3); }
.dropdown-item.active { color: var(--hog); }
.dropdown-item.danger { color: var(--red); }
.dropdown-sep { height: 1px; background: var(--border); margin: 4px 0; }

/* ---------- banners ---------- */
.hero-banner { border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; border: 1px solid var(--border); background: var(--bg2); }
.hero-banner img { width: 100%; height: auto; max-height: 170px; object-fit: cover; }
.info-banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--hog-dim); border: 1px solid var(--hog-border); color: var(--text); font-size: 13px; margin-bottom: 16px; }
.info-banner svg { width: 18px; height: 18px; color: var(--hog); flex: 0 0 18px; margin-top: 1px; }

/* ---------- page header ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h2 { font-size: 20px; }
.page-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

/* ---------- KPI cards ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; position: relative; overflow: hidden; }
.kpi-card .kpi-label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.kpi-card .kpi-label svg { width: 16px; height: 16px; color: var(--hog); }
.kpi-card .kpi-value { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 26px; color: var(--white); margin-top: 6px; }
.kpi-card .kpi-foot { font-size: 11.5px; color: var(--muted2); margin-top: 2px; }
.kpi-card::after { content: ''; position: absolute; inset-inline-end: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--hog-dim); }

/* ---------- grid helpers ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.grid-1-2 { display: grid; grid-template-columns: 360px 1fr; gap: 16px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------- cards / panels ---------- */
.panel { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.panel-header h3 { font-size: 15px; }
.panel-body { padding: 16px; }
.kv { margin: 0; display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--text); font-weight: 500; word-break: break-word; }

/* ---------- status tabs ---------- */
.stabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.stab { padding: 7px 14px; border-radius: 20px; border: 1px solid var(--border); background: var(--bg2); color: var(--muted); font-size: 12.5px; font-weight: 500; }
.stab:hover { color: var(--text); }
.stab.active { background: var(--hog); border-color: var(--hog); color: #fff; }
.stab .count { opacity: .75; margin-inline-start: 4px; }

/* ---------- filter bar ---------- */
.filter-bar { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; margin-bottom: 14px; }
.filter-bar .form-group { min-width: 160px; flex: 1; margin: 0; }
.filter-bar .btn { height: 38px; }

/* ---------- forms ---------- */
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 12px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; color: var(--muted); font-weight: 600; }
.form-group label .req { color: var(--hog); }
.form-control, .form-group input, .form-group select, .form-group textarea {
  height: 38px; padding: 0 12px; border-radius: var(--radius-sm);
  background: var(--bg3); border: 1px solid var(--border); outline: none;
  transition: border-color .15s, box-shadow .15s; width: 100%;
}
.form-group textarea { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; }
.form-group input[type="color"] { padding: 3px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus, .form-control:focus { border-color: var(--hog); box-shadow: 0 0 0 3px var(--hog-dim); }
.form-group input.invalid, .form-group select.invalid, .form-group textarea.invalid { border-color: var(--red); }
.form-hint { font-size: 11.5px; color: var(--muted2); }
.form-error { font-size: 11.5px; color: var(--red); }
.form-section-title { font-family: 'Syne', sans-serif; font-weight: 700; color: var(--white); font-size: 13px; margin: 6px 0 10px; display: flex; align-items: center; gap: 8px; }
.form-section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--hog); }
.switch { position: relative; display: inline-flex; width: 38px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--bg4); border-radius: 20px; transition: .2s; }
.switch span::before { content: ''; position: absolute; width: 16px; height: 16px; inset-inline-start: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--hog); }
.switch input:checked + span::before { transform: translateX(16px); }
html[dir="rtl"] .switch input:checked + span::before { transform: translateX(-16px); }
.error-box { margin: 0 20px 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--red-dim); border: 1px solid color-mix(in srgb, var(--red) 40%, transparent); color: var(--red); font-size: 12.5px; }
.error-box ul { margin: 4px 0 0; padding-inline-start: 18px; }
.seg { display: inline-flex; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px; gap: 3px; }
.seg button { border: 0; background: none; color: var(--muted); padding: 6px 14px; border-radius: var(--radius-xs); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.seg button.active { background: var(--hog); color: #fff; }
.seg button svg { width: 16px; height: 16px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid transparent; font-weight: 600; font-size: 13px; transition: background .15s, border-color .15s, opacity .15s; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--hog); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--hog2); }
.btn-secondary { background: var(--bg3); color: var(--text); border-color: var(--border2); }
.btn-secondary:hover:not(:disabled) { background: var(--bg4); }
.btn-success { background: var(--green); color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: var(--bg3); }
.btn-block { width: 100%; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12px; border-radius: var(--radius-xs); display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border2); background: var(--bg3); color: var(--text); font-weight: 600; }
.btn-sm svg { width: 14px; height: 14px; }
.btn-sm-ghost { background: transparent; border-color: var(--border); color: var(--muted); }
.btn-sm-ghost:hover { color: var(--text); border-color: var(--border2); }
.btn-sm-danger { background: var(--red-dim); border-color: transparent; color: var(--red); }
.btn-yellow-sm { height: 30px; padding: 0 12px; font-size: 12px; border-radius: var(--radius-xs); border: 0; background: var(--hog); color: #fff; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.btn-yellow-sm svg { width: 14px; height: 14px; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- table ---------- */
.table-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); overflow: visible; }
.table-card-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.table-card-header h3 { font-size: 15px; }
.table-card-header .sub { font-size: 12px; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { text-align: start; font-weight: 600; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; padding: 10px 16px; background: var(--bg3); white-space: nowrap; }
.data-table td { padding: 12px 16px; border-top: 1px solid var(--border); vertical-align: middle; }
.data-table tbody tr:hover td { background: color-mix(in srgb, var(--bg3) 55%, transparent); }
.data-table .cell-user { display: flex; align-items: center; gap: 10px; }
.data-table .cell-user b { color: var(--white); font-weight: 600; display: block; }
.data-table .cell-user span { font-size: 11.5px; color: var(--muted); }
.data-table .actions { text-align: end; width: 1%; white-space: nowrap; position: relative; }
.table-footer, .pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.pagination .pages { display: flex; gap: 6px; align-items: center; }

/* ---------- row action menu ---------- */
.row-menu { position: relative; display: inline-block; }
.row-menu-btn { width: 30px; height: 30px; border-radius: var(--radius-xs); border: 1px solid var(--border); background: var(--bg3); color: var(--muted); display: grid; place-items: center; }
.row-menu-btn svg { width: 16px; height: 16px; }
.row-menu .dropdown-menu { top: 34px; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--bg4); color: var(--muted); }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--plain::before { display: none; }
.badge--active, .badge--success, .badge--published, .badge--completed { background: var(--green-dim); color: var(--green); }
.badge--blocked, .badge--danger, .badge--cancelled, .badge--expired { background: var(--red-dim); color: var(--red); }
.badge--pending, .badge--warning, .badge--draft, .badge--inactive { background: var(--orange-dim); color: var(--orange); }
.badge--info, .badge--upcoming, .badge--ongoing { background: var(--blue-dim); color: var(--blue); }
.badge--hog, .badge--trip { background: var(--hog-dim); color: var(--hog); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 20px; border: 1px solid var(--border2); font-size: 12px; color: var(--text); background: var(--bg3); }
.color-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: 0 0 10px; }

/* ---------- modals ---------- */
.modal-overlay { position: fixed; inset: 0; background: var(--overlay); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 100; opacity: 0; pointer-events: none; transition: opacity .2s; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal { width: 100%; max-width: 480px; max-height: calc(100vh - 40px); background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; transform: translateY(12px) scale(.98); transition: transform .2s; }
.modal-overlay.active .modal { transform: none; }
.modal--lg { max-width: 760px; }
.modal--sm { max-width: 400px; }
.modal-header { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.modal-header > div { flex: 1; }
.modal-title { font-family: 'Syne', sans-serif; font-weight: 700; color: var(--white); font-size: 17px; }
html[dir="rtl"] .modal-title { font-family: 'Alexandria', sans-serif; }
.modal-subtitle { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.modal-close { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg3); color: var(--muted); display: grid; place-items: center; }
.modal-close svg { width: 16px; height: 16px; }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border); }
.modal-footer--between { justify-content: space-between; }
.modal-danger-icon { width: 54px; height: 54px; border-radius: 50%; background: var(--red-dim); color: var(--red); display: grid; place-items: center; margin: 4px auto 12px; }
.modal-danger-icon svg { width: 26px; height: 26px; }
.modal-steps { display: flex; gap: 6px; padding: 12px 20px 0; }
.modal-steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--bg4); }
.modal-steps span.done { background: var(--hog); }

/* ---------- store cards (card grids) ---------- */
.store-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.store-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; position: relative; transition: border-color .15s, transform .15s; }
.store-card:hover { border-color: var(--border2); }
.store-card--add { border-style: dashed; border-color: var(--hog-border); background: transparent; align-items: center; justify-content: center; text-align: center; color: var(--hog); min-height: 190px; cursor: pointer; }
.store-card--add:hover { background: var(--hog-dim); }
.store-card--add .plus { width: 44px; height: 44px; border-radius: 50%; border: 1px dashed var(--hog); display: grid; place-items: center; font-size: 22px; }
.store-card-top { display: flex; align-items: center; gap: 10px; }
.store-card-top h4 { font-size: 15px; flex: 1; }
.store-card-icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--hog-dim); color: var(--hog); }
.store-card-icon svg { width: 22px; height: 22px; }
.store-card p { margin: 0; color: var(--muted); font-size: 12.5px; }
.store-card-meta { display: flex; gap: 14px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.store-card-meta b { color: var(--white); }
.store-card-foot { margin-top: auto; display: flex; gap: 6px; justify-content: flex-end; padding-top: 8px; border-top: 1px solid var(--border); }
.price { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 22px; color: var(--white); }
.price small { font-family: inherit; font-size: 12px; color: var(--muted); font-weight: 500; }

/* ---------- timeline (history) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; inset-inline-start: 15px; top: 4px; bottom: 4px; width: 2px; background: var(--border); }
.timeline li { position: relative; padding: 0 0 18px; padding-inline-start: 44px; }
.timeline .tl-icon { position: absolute; inset-inline-start: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--bg3); border: 1px solid var(--border2); display: grid; place-items: center; color: var(--hog); }
.timeline .tl-icon svg { width: 15px; height: 15px; }
.timeline .tl-title { font-weight: 600; color: var(--white); font-size: 13px; }
.timeline .tl-meta { font-size: 11.5px; color: var(--muted); }
.timeline .tl-body { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ---------- trip route strip ---------- */
.route { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.route .pt { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--white); }
.route .pt i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--hog); }
.route .pt.end i { background: var(--hog); }
.route .line { flex: 1; min-width: 30px; height: 2px; background: repeating-linear-gradient(90deg, var(--hog) 0 6px, transparent 6px 11px); }
html[dir="rtl"] .route .line { background: repeating-linear-gradient(270deg, var(--hog) 0 6px, transparent 6px 11px); }

/* ---------- event cards ---------- */
.event-cover { aspect-ratio: 16/7; border-radius: var(--radius-sm); overflow: hidden; background: linear-gradient(135deg, var(--bg4), var(--bg3)); display: grid; place-items: center; color: var(--muted2); }
.event-cover img { width: 100%; height: 100%; object-fit: cover; }
.event-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; height: 56px; border-radius: 10px; background: var(--hog-dim); border: 1px solid var(--hog-border); color: var(--hog); line-height: 1; flex: 0 0 auto; }
.event-date b { font-family: 'Syne', sans-serif; font-size: 20px; }
.event-date span { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; }
.stat-pills { display: grid; grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)); gap: 8px; }
.stat-pill { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px; }
.stat-pill small { display: block; font-size: 11px; color: var(--muted); }
.stat-pill b { font-family: 'Syne', sans-serif; color: var(--white); font-size: 16px; }

/* ---------- progress ---------- */
.progress { height: 6px; border-radius: 6px; background: var(--bg4); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--hog); border-radius: 6px; }

/* ---------- list rows ---------- */
.list-rows { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--border); }
.list-row:first-child { border-top: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .grow b { display: block; color: var(--white); font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .grow span { font-size: 11.5px; color: var(--muted); }

/* ---------- empty state ---------- */
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 20px; text-align: center; color: var(--muted); }
.empty-state img { width: 180px; opacity: .9; }

/* ---------- toasts ---------- */
.toast { position: fixed; top: 18px; inset-inline-end: 18px; z-index: 300; min-width: 280px; max-width: 380px; background: var(--bg2); border: 1px solid var(--border2); border-inline-start: 4px solid var(--hog); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; transform: translateY(-20px); opacity: 0; pointer-events: none; transition: all .25s ease; }
.toast--show { transform: none; opacity: 1; pointer-events: auto; }
.toast--success { border-inline-start-color: var(--green); }
.toast--danger { border-inline-start-color: var(--red); }
.toast--warning { border-inline-start-color: var(--orange); }
.toast .toast-icon svg { width: 20px; height: 20px; }
.toast--success .toast-icon { color: var(--green); }
.toast--danger .toast-icon { color: var(--red); }
.toast--warning .toast-icon { color: var(--orange); }
.toast b { display: block; color: var(--white); font-size: 13px; }
.toast p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }

/* ---------- auth (login) ---------- */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-visual { position: relative; background: radial-gradient(circle at 30% 30%, rgba(242,111,33,.35), transparent 55%), linear-gradient(160deg, #141416, #050506); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.auth-visual h2 { color: #fff; font-size: 40px; line-height: 1.05; max-width: 440px; }
.auth-visual p { color: #b9b9c3; max-width: 420px; }
.auth-visual .stripes { position: absolute; inset-inline-end: -80px; bottom: -80px; width: 380px; height: 380px; border-radius: 50%; border: 28px solid rgba(242,111,33,.18); }
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 32px; background: var(--bg); position: relative; }
.auth-form { width: 100%; max-width: 380px; }
.auth-form h1 { font-size: 26px; margin-bottom: 6px; }
.auth-form > p { color: var(--muted); margin: 0 0 22px; }
.auth-form .form-group { margin-bottom: 14px; }
.auth-form .form-group input { height: 44px; }
.auth-topright { position: absolute; top: 18px; inset-inline-end: 18px; display: flex; gap: 8px; }
.otp-boxes { display: flex; gap: 8px; justify-content: space-between; margin-bottom: 16px; direction: ltr; }
.otp-boxes input { width: 48px; height: 54px; text-align: center; font-size: 22px; font-weight: 700; border-radius: var(--radius-sm); background: var(--bg3); border: 1px solid var(--border); outline: none; }
.otp-boxes input:focus { border-color: var(--hog); box-shadow: 0 0 0 3px var(--hog-dim); }
.link-btn { background: none; border: 0; color: var(--hog); font-weight: 600; padding: 0; }

/* ---------- public pages ---------- */
.public-shell { min-height: 100vh; display: flex; flex-direction: column; }
.public-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; border-bottom: 1px solid var(--border); background: var(--bg2); }
.public-main { flex: 1; width: 100%; max-width: 980px; margin: 0 auto; padding: 28px 20px; }

/* ---------- onboarding ---------- */
.boarding-card { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 90; width: 340px; background: var(--bg2); border: 1px solid var(--hog-border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.boarding-card h4 { font-size: 15px; margin-bottom: 4px; }
.boarding-card p { margin: 0 0 12px; color: var(--muted); font-size: 12.5px; }
.boarding-dots { display: flex; gap: 4px; }
.boarding-dots span { width: 18px; height: 4px; border-radius: 4px; background: var(--bg4); }
.boarding-dots span.on { background: var(--hog); }

/* ---------- loading screen ---------- */
.loading-screen { position: fixed; inset: 0; z-index: 999; background: #0b0b0d; display: grid; place-items: center; transition: opacity .35s ease; }
.loading-screen.out { opacity: 0; pointer-events: none; }
.loading-screen .ring { width: 74px; height: 74px; border-radius: 50%; border: 3px solid rgba(242,111,33,.2); border-top-color: #f26f21; animation: spin .9s linear infinite; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid-3-1, .grid-1-2 { grid-template-columns: 1fr; }
  .topbar-search { display: none; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  html[dir="rtl"] .sidebar { transform: translateX(100%); }
  .sidebar.open { transform: none !important; }
  .sidebar-backdrop.open { display: block; position: fixed; inset: 0; background: var(--overlay); z-index: 35; }
  .main-wrap { margin-inline-start: 0; }
  .menu-toggle { display: grid; }
  .grid-2 { grid-template-columns: 1fr; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .topbar { padding: 0 14px; }
  .topbar-chip { display: none; }
  .content { padding: 16px; }
  .kv { grid-template-columns: 110px 1fr; }
}

/* ---------- print ---------- */
@media print {
  .sidebar, .topbar, .copyrights, .no-print { display: none !important; }
  .main-wrap { margin: 0; }
}
html[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
