:root {
  --navy: #08224f;
  --navy-2: #0c3274;
  --blue: #1565d8;
  --blue-2: #2b7fff;
  --sky: #eaf2ff;
  --ice: #f4f8fd;
  --white: #ffffff;
  --ink: #10203d;
  --muted: #5c6d88;
  --line: #d5e2f4;
  --ok: #0d8a68;
  --ok-bg: #e6f7f1;
  --warn: #b87a0d;
  --warn-bg: #fff6e4;
  --danger: #c0364a;
  --danger-bg: #fdecee;
  --shadow: 0 18px 48px rgba(8, 34, 79, 0.08);
  --shadow-sm: 0 8px 24px rgba(8, 34, 79, 0.06);
  --radius: 20px;
  --radius-sm: 14px;
  --sidebar: 280px;
  --font: "Tajawal", "Source Sans 3", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html[dir="rtl"] { font-family: "Tajawal", sans-serif; }
html[dir="ltr"] { font-family: "Source Sans 3", sans-serif; }
body {
  background: var(--ice);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.app { flex: 1; width: 100%; }

a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 10px; line-height: 1.3; letter-spacing: -0.02em; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.btn,
button,
input[type="submit"] {
  appearance: none;
  border: 0;
  background: var(--blue);
  color: #fff;
  border-radius: 12px;
  padding: 11px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(21, 101, 216, 0.18);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover, button:hover, input[type="submit"]:hover { background: var(--blue-2); transform: translateY(-1px); }
.btn-ghost, .ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn-line {
  background: var(--white);
  color: var(--blue);
  border: 1px solid #bad0f3;
  box-shadow: none;
}
.btn-ok { background: var(--ok); box-shadow: 0 8px 20px rgba(13, 138, 104, 0.18); }
.btn-warn { background: var(--warn); }
.btn-danger, .danger { background: var(--danger); box-shadow: 0 8px 20px rgba(192, 54, 74, 0.16); }
.btn-sm { padding: 8px 12px; font-size: 13px; box-shadow: none; }

label { display: block; font-size: 13px; font-weight: 800; margin: 0 0 6px; color: var(--navy); }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(21, 101, 216, 0.12);
}

/* —— Attractive dropdown / select —— */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  min-height: 46px;
  padding: 11px 42px 11px 14px;
  border: 1px solid rgba(8, 34, 79, 0.12);
  border-radius: 14px;
  background-color: #fff;
  background-image:
    linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 5.2L7 9.2L11 5.2' stroke='%2308224f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(243, 210, 122, 0.35), rgba(243, 210, 122, 0.12));
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: 0 0, right 14px center, right 0 top;
  background-size: 100% 100%, 14px 14px, 36px 100%;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 8px 20px rgba(8, 34, 79, 0.06);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    transform 0.15s ease;
}
html[dir="rtl"] select {
  padding: 11px 14px 11px 42px;
  background-position: 0 0, left 14px center, left 0 top;
}
select:hover {
  border-color: rgba(21, 101, 216, 0.45);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 10px 24px rgba(21, 101, 216, 0.12);
  transform: translateY(-1px);
}
select:focus {
  border-color: #1565d8;
  box-shadow:
    0 0 0 4px rgba(21, 101, 216, 0.14),
    0 10px 24px rgba(21, 101, 216, 0.1);
  background-image:
    linear-gradient(180deg, #ffffff 0%, #eef5ff 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 5.2L7 9.2L11 5.2' stroke='%231565d8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #f3d27a, #c9a227);
}
select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
select option {
  color: var(--ink);
  background: #fff;
  font-weight: 700;
  padding: 10px;
}
select option:checked {
  background: linear-gradient(90deg, #eaf2ff, #fff);
  color: var(--navy);
}
select option:hover {
  background: #eaf2ff;
}

.field { margin-bottom: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

body.ui-modal-open { overflow: hidden; }
.ui-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 18px;
}
.ui-modal[hidden] { display: none !important; }
.ui-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 22, 48, 0.55);
  backdrop-filter: blur(2px);
}
.ui-modal-box {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: min(86vh, 820px);
  overflow: auto;
  background: var(--card, #fff);
  border-radius: 18px;
  border: 1px solid rgba(20, 48, 90, 0.1);
  box-shadow: 0 24px 60px rgba(8, 22, 48, 0.28);
  padding: 18px 18px 16px;
}
.ui-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.ui-modal-head h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--navy);
  line-height: 1.35;
}
.ui-modal-x {
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted, #667);
  padding: 0 4px;
}
.ui-modal-body { margin-bottom: 14px; }
.ui-modal-review {
  display: grid;
  gap: 8px;
  margin: 0;
}
.ui-modal-review > div {
  display: grid;
  grid-template-columns: minmax(110px, 34%) 1fr;
  gap: 8px 14px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(20, 48, 90, 0.08);
}
.ui-modal-review dt {
  margin: 0;
  font-weight: 700;
  color: var(--muted, #5a6a7e);
  font-size: 0.92rem;
}
.ui-modal-review dd {
  margin: 0;
  font-weight: 600;
  color: var(--navy);
  word-break: break-word;
}
.ui-modal-foot { justify-content: flex-start; }
@media (max-width: 560px) {
  .ui-modal-review > div { grid-template-columns: 1fr; gap: 2px; }
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: var(--sky);
  color: var(--navy);
}
.badge.approved, .badge.active, .badge.delivered, .badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.pending, .badge.queued, .badge.assigned, .badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.rejected, .badge.suspended, .badge.cancelled, .badge.danger { background: var(--danger-bg); color: var(--danger); }
.badge.picked_up, .badge.on_the_way, .badge.under_review { background: #e7eeff; color: var(--blue); }

.flash {
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 16px;
  font-weight: 700;
}
.flash-error { background: var(--danger-bg); color: var(--danger); }
.flash-ok { background: var(--ok-bg); color: var(--ok); }

.card {
  background: var(--white);
  border: 1px solid #e4eef9;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}
.card + .card { margin-top: 16px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 0 22px; }
.kpi {
  background: var(--white);
  border: 1px solid #e4eef9;
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.kpi::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--blue-2));
}
.kpi span { display: block; color: var(--muted); font-size: 13px; font-weight: 700; }
.kpi b { display: block; margin-top: 6px; font-size: 26px; color: var(--navy); letter-spacing: -0.03em; }

.table-wrap { overflow: auto; }
table .actions { flex-wrap: nowrap; }
table .actions form { display: inline; margin: 0; }
table .table-row-actions { gap: 6px; }
table .table-row-actions .btn,
table .table-row-actions .btn-line,
table .table-row-actions .btn-danger,
table .table-row-actions button {
  white-space: nowrap;
  padding: 6px 10px;
  font-size: 12px;
}
table { width: 100%; border-collapse: collapse; }
th, td { text-align: start; padding: 12px 10px; border-bottom: 1px solid #eef3fa; vertical-align: top; }
th { color: var(--muted); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
tr:hover td { background: #f8fbff; }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--navy);
  position: relative;
}
.nav-burger span::before, .nav-burger span::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
}
.nav-burger span::before { top: -5px; }
.nav-burger span::after { top: 5px; }

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  transition: grid-template-columns 0.28s ease;
}
.app.is-sidebar-collapsed {
  grid-template-columns: 0 1fr;
}
.sidebar {
  background:
    radial-gradient(circle at 20% 10%, rgba(43, 127, 255, 0.22), transparent 28%),
    linear-gradient(180deg, var(--navy-2), var(--navy));
  color: #fff;
  padding: 26px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  transition: opacity 0.22s ease, transform 0.28s ease, padding 0.28s ease;
}
.app.is-sidebar-collapsed .sidebar {
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  padding-inline: 0;
  transform: translateX(-12px);
}
html[dir="rtl"] .app.is-sidebar-collapsed .sidebar {
  transform: translateX(12px);
}
.sidebar-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.sidebar-top .brand { margin-bottom: 12px; flex: 1; min-width: 0; }
.sidebar-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(243, 210, 122, 0.65);
}
.sidebar-toggle-ico {
  width: 10px;
  height: 10px;
  border-inline-start: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-inline-start: 2px;
}
html[dir="rtl"] .sidebar-toggle-ico {
  transform: rotate(-135deg);
  margin-inline-start: 0;
  margin-inline-end: 2px;
}
.app.is-sidebar-collapsed .sidebar-toggle-ico {
  transform: rotate(-135deg);
  margin-inline-start: 0;
  margin-inline-end: 2px;
}
html[dir="rtl"] .app.is-sidebar-collapsed .sidebar-toggle-ico {
  transform: rotate(45deg);
  margin-inline-end: 0;
  margin-inline-start: 2px;
}
.sidebar-toggle-bar {
  display: none;
  border-color: rgba(8, 34, 79, 0.14);
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.app.is-sidebar-collapsed .sidebar-toggle-bar {
  display: inline-flex;
}
.admin-head .sidebar-toggle-bar {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.app-admin.is-sidebar-collapsed .sidebar-toggle-bar {
  display: inline-flex;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: #fff;
  font-weight: 800;
  font-size: 22px;
}
.brand i {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4d8dff, #9ec3ff);
  display: grid;
  place-items: center;
  color: var(--navy);
  font-style: normal;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}
.brand span { color: #9ec3ff; }
.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  flex-shrink: 0;
}
.brand-word { line-height: 1; }
.hero-logo {
  width: min(340px, 92%);
  max-height: 150px;
  object-fit: contain;
  background: #fff;
  border-radius: 20px;
  padding: 10px 16px;
  margin: 0 0 20px;
  display: block;
}
.panel-logo,
.print-logo,
.store-hero-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  background: #fff;
  display: block;
  margin: 0 0 14px;
  box-shadow: var(--shadow-sm);
}
.store-hero-logo { width: 72px; height: 72px; border-radius: 18px; }
.side-note { color: #b9cceb; font-size: 13px; margin: -14px 8px 22px; }
.nav-group { margin-bottom: 22px; }
.nav-group h3 {
  margin: 0 10px 8px;
  color: #8eacd8;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-group a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #e7eefc;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 4px;
  font-weight: 700;
}
.nav-group a:hover { background: rgba(255,255,255,0.08); }
.nav-group a.active {
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.nav-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  display: inline-grid;
  place-items: center;
  font-size: 12px;
}
.nav-group a.active .nav-count { background: var(--sky); color: var(--blue); }

.main {
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.content { flex: 1; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 28px 0;
}
.global-search {
  flex: 1;
  display: flex;
  gap: 8px;
  max-width: 520px;
  min-width: 180px;
}
.global-search input {
  flex: 1;
  margin: 0;
  height: 42px;
}
.global-search button {
  height: 42px;
  padding: 0 16px;
  white-space: nowrap;
}
.search-panel { margin-bottom: 22px; }
.search-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}
.search-hero .field { margin: 0; }
.search-total { font-weight: 800; color: var(--navy); margin: 0 0 16px; }
.search-group { margin: 0 0 28px; }
.search-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.search-group-head h2 { margin: 0; color: var(--navy); }
.search-hits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.search-hit {
  display: block;
  background: var(--white);
  border: 1px solid #e4eef9;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  color: inherit;
}
.search-hit:hover { border-color: var(--blue); }
.search-hit strong { display: block; color: var(--navy); margin-bottom: 4px; }
.search-hit span { display: block; color: var(--muted); font-size: 13px; }
.search-hit .badge { margin-top: 10px; }
.header-home, .header-account { white-space: nowrap; }
.topbar .header-home { margin-inline-end: 4px; }
.store-bar .header-account {
  background: #fff;
  color: var(--navy);
}
.store-bar .header-account:hover { filter: brightness(0.96); }
.topbar .who {
  font-weight: 800;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.who-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #e8f1ff;
  border: 2px solid #cfe0ff;
  display: inline-grid;
  place-items: center;
  color: var(--blue);
  font-size: 14px;
}
.who-avatar-empty { background: var(--blue); color: #fff; border-color: var(--blue); }
.profile-grid {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(280px, 1fr);
  gap: 16px;
}
.profile-preview {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  overflow: hidden;
  background: #e8f1ff;
  border: 4px solid #cfe0ff;
  display: grid;
  place-items: center;
  margin: 0 0 14px;
  font-size: 42px;
  font-weight: 800;
  color: var(--blue);
}
.profile-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.profile-inline h3 { margin: 0; }
@media (max-width: 860px) {
  .profile-grid { grid-template-columns: 1fr; }
}
.header-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lang-switch,
.theme-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(8, 34, 79, 0.05);
  border: 1px solid var(--line);
}
.lang-switch a,
.theme-switch a {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
  border: 0;
  font-weight: 800;
  font-size: 13px;
}
.lang-switch a.active,
.theme-switch a.active {
  background: var(--white);
  color: var(--blue);
  box-shadow: var(--shadow-sm);
}
.content { width: min(1180px, calc(100% - 56px)); margin: 0 auto; padding: 18px 0 28px; }
.screen-title { font-size: 32px; color: var(--navy); margin: 8px 0 6px; }
.lead { color: var(--muted); margin-bottom: 22px; max-width: 70ch; }

.toolbar {
  display: flex;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}
.toolbar .field { flex: 1; margin: 0; }

.shop-grid, .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.product, .soft-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.product {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .16s ease, box-shadow .16s ease;
}
.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(8, 34, 79, 0.12);
}
.product .thumb {
  position: relative;
  display: block;
  height: 210px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(43, 127, 255, 0.16), transparent 55%),
    linear-gradient(180deg, #eaf2ff, #f4f8fd);
  color: var(--navy);
  text-decoration: none;
}
.product .body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 16px 18px;
}
.soft-card { padding: 16px 18px 18px; }
.product h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.45; }
.product h3 a { color: var(--navy); }
.product h3 a:hover { color: var(--blue); }
.product .muted { margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.product .muted a { color: var(--muted); }
.product .muted a:hover { color: var(--blue); }
.product .body > p:has(.price) { margin: 2px 0 8px; }
.price { color: var(--blue); font-size: 22px; font-weight: 800; }
.old { color: var(--muted); text-decoration: line-through; font-size: 13px; margin-inline-start: 6px; }

.trip { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.loc {
  background: var(--ice);
  border: 1px solid #e4eef9;
  border-radius: 16px;
  padding: 14px;
}
.loc h4 { color: var(--blue); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }

.stages { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 14px; }
.stage {
  flex: 1;
  min-width: 110px;
  background: var(--ice);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}
.stage.done { background: var(--ok-bg); color: var(--ok); }
.stage.now { background: #e7eeff; color: var(--blue); }

.chart {
  background: var(--white);
  border: 1px solid #e4eef9;
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bar { display: grid; grid-template-columns: 140px 1fr 54px; gap: 10px; align-items: center; margin: 8px 0; }
.bar b { font-size: 13px; color: var(--navy); }
.bar em { font-style: normal; color: var(--muted); font-size: 13px; text-align: end; }
.bar span {
  background: var(--sky);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--navy), var(--blue-2));
}

.login-body {
  background: #06122a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.login-art {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
}
.login-slides,
.login-slides img,
.login-veil {
  position: absolute;
  inset: 0;
}
.login-slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.12);
  animation: loginSlide 40s infinite;
}
.login-slides img:nth-child(1) { animation-name: loginSlideFirst; animation-delay: 0s; }
.login-slides img:nth-child(2) { animation-delay: 8s; }
.login-slides img:nth-child(3) { animation-delay: 16s; }
.login-slides img:nth-child(4) { animation-delay: 24s; }
.login-slides img:nth-child(5) { animation-delay: 32s; }
@keyframes loginSlide {
  0% { opacity: 0; transform: scale(1.12) translateY(0); }
  6% { opacity: 1; }
  18% { opacity: 1; transform: scale(1) translateY(-2%); }
  24% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes loginSlideFirst {
  0% { opacity: 1; transform: scale(1.08) translateY(0); }
  18% { opacity: 1; transform: scale(1) translateY(-2%); }
  24% { opacity: 0; }
  100% { opacity: 0; }
}
.login-veil {
  background:
    linear-gradient(120deg, rgba(6, 18, 42, 0.72) 0%, rgba(8, 34, 79, 0.42) 48%, rgba(6, 18, 42, 0.58) 100%),
    radial-gradient(circle at 18% 20%, rgba(43, 127, 255, 0.22), transparent 34%);
  pointer-events: none;
}
.login-top,
.login-stage {
  position: relative;
  z-index: 2;
}
.login-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 36px 0;
}
.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 22px;
}
.login-brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
}
.login-brand span { color: #9ec3ff; }
.login-top .header-tools .lang-switch,
.login-top .header-tools .theme-switch {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
}
.login-top .header-tools a { color: #d7e6ff; }
.login-top .header-tools a.active {
  background: rgba(255,255,255,0.18);
  color: #fff;
  box-shadow: none;
}
.login-stage {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  flex: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  padding: 36px 0 48px;
}
.login-copy h1 {
  font-size: 48px;
  max-width: 14ch;
  color: #fff;
}
.login-copy p,
.login-copy li { color: #e4edff; }
.login-kicker {
  letter-spacing: 0.14em;
  font-weight: 800;
  color: #9ec3ff !important;
  margin-bottom: 10px;
}
.login-copy ul { list-style: none; padding: 0; margin: 22px 0 0; }
.login-copy li {
  margin: 0 0 12px;
  padding-inline-start: 22px;
  position: relative;
  font-weight: 700;
}
.login-copy li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7eb0ff;
  position: absolute;
  inset-inline-start: 0;
  top: 9px;
}
.login-glass {
  background: rgba(8, 22, 48, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-radius: 28px;
  padding: 34px 32px 28px;
  box-shadow: 0 24px 70px rgba(4, 14, 36, 0.28);
  color: #fff;
}
.login-glass h2 { color: #fff; font-size: 30px; }
.login-glass p,
.login-glass label,
.login-glass a { color: #e8f0ff; }
.login-glass .muted,
.login-note { color: #c9dbf7 !important; }
.login-glass-logo {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #fff;
  margin-bottom: 14px;
}
.login-glass input {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
}
.login-glass input::placeholder { color: rgba(255,255,255,0.55); }
.login-glass input:focus {
  border-color: #9ec3ff;
  box-shadow: 0 0 0 4px rgba(158, 195, 255, 0.18);
  background: rgba(255, 255, 255, 0.22);
}
.login-glass button {
  width: 100%;
  margin-top: 6px;
}
.login-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}
.login-links a { font-weight: 800; }
.login-note { margin-top: 14px; font-size: 13px; }

.guest {
  min-height: 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--white);
}
.hero {
  background:
    radial-gradient(circle at 18% 18%, rgba(43,127,255,0.28), transparent 26%),
    radial-gradient(circle at 88% 88%, rgba(14,50,116,0.35), transparent 24%),
    linear-gradient(160deg, #061833 0%, #0c3274 52%, #1565d8 100%);
  color: #fff;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border: 70px solid rgba(255,255,255,0.05);
  border-radius: 50%;
  inset-inline-end: -120px;
  inset-block-end: -140px;
}
.hero h1 { font-size: 52px; max-width: 10ch; }
.hero p { color: #d5e4ff; max-width: 46ch; font-size: 18px; }
.hero ul { list-style: none; padding: 0; margin: 28px 0 0; }
.hero li {
  margin: 0 0 12px;
  padding-inline-start: 28px;
  position: relative;
  color: #edf4ff;
  font-weight: 700;
}
.hero li::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  inset-inline-start: 0;
  top: 6px;
  box-shadow: 0 0 0 5px rgba(255,255,255,0.12);
}
.panel {
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.panel .card { box-shadow: var(--shadow); border: 0; padding: 32px; }
.panel h2 { font-size: 34px; color: var(--navy); }
.wide { width: min(1080px, calc(100% - 48px)); margin: 32px auto 64px; }
.section-title {
  font-size: 18px;
  color: var(--navy);
  margin: 28px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.empty {
  text-align: center;
  padding: 42px 20px;
  color: var(--muted);
  background: var(--white);
  border: 1px dashed #c9daf0;
  border-radius: 20px;
}
.money-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.quote-card { border-color: #bad0f3; }
.quote-row + .quote-row { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.rate-table input { margin: 0; }
.rate-table th { text-align: start; }
.money-box div {
  background: var(--ice);
  border-radius: 14px;
  padding: 12px;
}
.money-box span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.money-box b { color: var(--navy); }
.review { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.review dt { color: var(--muted); font-size: 12px; font-weight: 800; }
.review dd { margin: 0 0 8px; font-weight: 700; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}
.pill:hover, .pill.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.report-filters { margin-bottom: 22px; }
.report-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.report-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.report-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}
.report-toc a {
  padding: 8px 12px;
  border-radius: 12px;
  background: #e7eeff;
  color: var(--navy);
  font-weight: 800;
  font-size: 13px;
}
.report-section { margin: 28px 0 36px; }
.report-section-head { margin-bottom: 16px; }
.report-section .charts { margin-bottom: 16px; }
.report-section .table-wrap { margin-bottom: 16px; }
.report-section .table-wrap h3,
.report-section .chart h3 { margin-bottom: 12px; color: var(--navy); }
.bar em { min-width: 72px; }

.site-footer {
  position: relative;
  margin-top: auto;
  isolation: isolate;
  background:
    radial-gradient(circle at 10% -10%, rgba(43, 127, 255, 0.28), transparent 34%),
    radial-gradient(circle at 92% 120%, rgba(212, 175, 88, 0.2), transparent 36%),
    linear-gradient(180deg, #0b2048 0%, #06122a 72%, #040c1c 100%);
  color: #e8f0ff;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.7), transparent 88%);
}
.site-footer-bar {
  position: relative;
  z-index: 1;
  height: 4px;
  background: linear-gradient(90deg, #06122a, #2b7fff 22%, #f3d27a 50%, #2b7fff 78%, #06122a);
  background-size: 220% 100%;
  animation: footerShine 10s linear infinite;
}
@keyframes footerShine {
  0% { background-position: 0 50%; }
  100% { background-position: 220% 50%; }
}
.site-footer-base {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 14px;
  padding: 14px 20px 16px;
  color: #8eacd8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.site-footer-base i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d4af58;
}
.site-footer-base a { color: #d7e6ff; }
.site-footer-base a:hover { color: #fff; }
.login-body .site-footer {
  z-index: 3;
  border-top: 0;
}
html[dir="rtl"] .site-footer-base {
  letter-spacing: 0.04em;
}

@media print {
  .sidebar, .topbar, .admin-head, .actions, .nav-burger, .report-filters, .report-toc, .global-search, .search-panel { display: none !important; }
  .app { display: block; }
  .card { box-shadow: none; }
}

@media (max-width: 1100px) {
  .kpis, .shop-grid, .cards, .charts { grid-template-columns: 1fr 1fr; }
  .row-3 { grid-template-columns: 1fr 1fr; }
}
.store-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 12px 22px 14px;
  color: #fff;
  background:
    radial-gradient(900px 160px at 0% -20%, rgba(43, 127, 255, 0.42), transparent 58%),
    radial-gradient(520px 140px at 100% 140%, rgba(212, 175, 88, 0.2), transparent 52%),
    linear-gradient(180deg, #12397f 0%, #08224f 70%, #071c42 100%);
  box-shadow: 0 14px 36px rgba(8, 34, 79, 0.18);
}
.store-bar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(243, 210, 122, 0.2) 14%, #f3d27a 40%, #fff8df 50%, #f3d27a 60%, rgba(243, 210, 122, 0.2) 86%, transparent 100%);
}
.store-bar-inner {
  width: min(1180px, 100%);
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 18px;
}
.guest-bar .store-bar-inner { grid-template-columns: auto minmax(0, 1fr); }
.store-bar .store-brand {
  justify-self: start;
  margin: 0;
  gap: 10px;
  padding: 5px 14px 5px 5px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
html[dir="ltr"] .store-bar .store-brand { padding: 5px 5px 5px 14px; }
.store-bar .brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  box-shadow: 0 0 0 2px rgba(243, 210, 122, 0.75), 0 8px 16px rgba(0, 0, 0, 0.2);
}
.store-bar .brand-word { font-size: 20px; letter-spacing: -0.03em; }
.store-bar .actions { justify-self: end; gap: 8px; flex-wrap: nowrap; }
.store-bar .actions form { margin: 0; }
.store-bar .btn,
.store-bar .btn-ghost,
.store-bar button.btn-sm {
  min-height: 36px;
  border-radius: 999px;
  padding-inline: 14px;
}
.store-bar .btn {
  background: linear-gradient(180deg, #3d8cff, #1565d8);
  box-shadow: 0 8px 16px rgba(21, 101, 216, 0.28);
}
.store-bar .btn:hover { background: linear-gradient(180deg, #5aa0ff, #2b7fff); }
.store-bar .header-account {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
}
.store-bar .header-account:hover { filter: none; background: #f4f7ff; }
.store-bar .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}
.store-bar .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.store-bar .header-tools { gap: 6px; }
.store-bar .header-tools .lang-switch,
.store-bar .header-tools .theme-switch {
  background: rgba(4, 16, 40, 0.28);
  border-color: rgba(255, 255, 255, 0.12);
  padding: 3px;
}
.store-bar .header-tools a { color: #c9dbf7; padding: 5px 10px; font-size: 12px; }
.store-bar .header-tools a.active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: none;
}
.store-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
  justify-self: center;
  padding: 4px;
  border-radius: 999px;
  background: rgba(4, 16, 40, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.store-links a {
  color: #d7e6ff;
  font-weight: 800;
  font-size: 14.5px;
  line-height: 1;
  padding: 9px 13px;
  border-radius: 999px;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.store-links a.active {
  background: linear-gradient(180deg, #ffffff, #f3f7ff);
  color: var(--navy);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
}
.store-links a:hover:not(.active) { background: rgba(255, 255, 255, 0.1); color: #fff; }
.store-links a:focus-visible,
.store-bar .store-brand:focus-visible,
.store-bar .actions a:focus-visible,
.store-bar .actions button:focus-visible {
  outline: 2px solid #f3d27a;
  outline-offset: 2px;
}
.store-links .nav-count {
  margin-inline-start: 6px;
  min-width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-size: 11px;
}
.store-links a.active .nav-count { background: var(--sky); color: var(--blue); }
html[data-theme="dark"] .store-bar {
  background:
    radial-gradient(900px 160px at 0% -20%, rgba(43, 127, 255, 0.24), transparent 58%),
    radial-gradient(520px 140px at 100% 140%, rgba(212, 175, 88, 0.14), transparent 52%),
    linear-gradient(180deg, #10284f 0%, #071428 100%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
}
@media (max-width: 1120px) {
  .store-bar { padding: 10px 14px 12px; }
  .store-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    min-width: 0;
    gap: 10px 12px;
  }
  .store-links {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .store-bar .actions { margin-inline-start: auto; }
}
.store-wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 40px; flex: 1; }
.store-wrap:has(> .store-hero) { padding-top: 0; }
.guest { flex: 1; width: 100%; }
.store-hero {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100vw;
  max-width: 100vw;
  margin-inline-start: calc(50% - 50vw);
  background: #071c42;
  color: #fff;
  border-radius: 0;
  padding: 52px max(22px, calc((100% - 1120px) / 2)) 88px;
  margin-bottom: -28px;
  box-shadow: none;
  min-height: 560px;
}
.store-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(58%, 380px);
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(244, 248, 253, 0) 0%,
      rgba(244, 248, 253, 0.04) 18%,
      rgba(244, 248, 253, 0.22) 38%,
      rgba(244, 248, 253, 0.55) 58%,
      rgba(244, 248, 253, 0.88) 78%,
      var(--ice) 100%
    );
}
.store-hero-slides,
.store-hero-veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.store-hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.12);
  animation: storeHeroSlide 40s infinite;
}
.store-hero-slides img:nth-child(1) { animation-name: storeHeroSlideFirst; animation-delay: 0s; }
.store-hero-slides img:nth-child(2) { animation-delay: 8s; }
.store-hero-slides img:nth-child(3) { animation-delay: 16s; }
.store-hero-slides img:nth-child(4) { animation-delay: 24s; }
.store-hero-slides img:nth-child(5) { animation-delay: 32s; }
@keyframes storeHeroSlide {
  0% { opacity: 0; transform: scale(1.12); }
  6% { opacity: 1; }
  18% { opacity: 1; transform: scale(1); }
  24% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes storeHeroSlideFirst {
  0% { opacity: 1; transform: scale(1.08); }
  18% { opacity: 1; transform: scale(1); }
  24% { opacity: 0; }
  100% { opacity: 0; }
}
.store-hero-veil {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(6, 18, 42, 0.18) 42%, rgba(6, 18, 42, 0) 78%),
    linear-gradient(90deg, rgba(6, 18, 42, 0.88) 0%, rgba(8, 34, 79, 0.62) 46%, rgba(8, 34, 79, 0.2) 100%);
}
html[dir="rtl"] .store-hero-veil {
  background:
    linear-gradient(180deg, rgba(6, 18, 42, 0.18) 42%, rgba(6, 18, 42, 0) 78%),
    linear-gradient(270deg, rgba(6, 18, 42, 0.9) 0%, rgba(8, 34, 79, 0.66) 48%, rgba(8, 34, 79, 0.18) 100%);
}
.store-hero-layout {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
  gap: 28px 36px;
  align-items: center;
  min-height: 480px;
}
.store-hero-copy {
  max-width: 700px;
  padding: 8px 0 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.store-hero .eyebrow {
  margin: 0 0 8px;
  color: #f3d27a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-shadow: none;
}
.store-hero .lead {
  color: #e7eefc;
  max-width: 58ch;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}
.store-hero h1 {
  margin: 0 0 12px;
  font-size: 46px;
  line-height: 1.25;
  max-width: 16ch;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.idea-badge {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f3d27a;
  color: #08224f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.store-hero .toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 22px 0 16px;
  padding: 8px;
  max-width: 640px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}
.store-hero .toolbar .field { flex: 1; margin: 0; min-width: 0; }
.store-hero .toolbar label {
  margin: 0 12px 0;
  color: var(--navy);
  font-size: 11px;
}
.store-hero .toolbar input {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 4px 12px 8px;
  color: var(--ink);
}
.store-hero .toolbar input:focus { box-shadow: none; }
.store-hero .toolbar button {
  flex-shrink: 0;
  min-height: 52px;
  border-radius: 14px;
  padding-inline: 18px;
  white-space: nowrap;
}
.store-hero .actions .btn {
  background: #fff;
  color: var(--navy);
  border-radius: 999px;
  box-shadow: none;
}
.store-hero .actions .btn:hover { background: #f4f7ff; color: var(--navy); }
.store-hero .btn-line,
.store-hero .btn-ghost {
  border-radius: 999px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: none;
}
.store-hero .home-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: end;
  padding: 0;
}
.store-hero .home-metrics p {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 16px 14px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}
.store-hero .home-metrics b { color: #fff; font-size: 30px; line-height: 1; }
.store-hero .home-metrics span { color: #d5e4ff; font-size: 13px; }
.home-metrics b { font-weight: 900; }
.home-metrics span { font-weight: 800; }

/* —— Home stages: vertical sparse promo —— */
.home-stages {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 auto 36px;
  max-width: 980px;
  padding-inline: 4px;
}
.home-chapter {
  padding: 64px 4px 4px;
  animation: homeRise 0.7s ease both;
}
.home-chapter:nth-child(2) { animation-delay: 0.06s; }
.home-chapter:nth-child(3) { animation-delay: 0.12s; }
.home-chapter:nth-child(5) { animation-delay: 0.18s; }
@keyframes homeRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.home-eyebrow {
  margin: 0 0 12px;
  color: #c9a227;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.home-chapter-head {
  margin-bottom: 32px;
  max-width: 32ch;
  padding-inline-start: 16px;
  border-inline-start: 3px solid #f3d27a;
}
.home-chapter-head h2,
.home-chapter-copy h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.home-lede {
  margin: 18px 0 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.75;
}

/* Why: image + copy */
.home-chapter-why {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding-top: 48px;
}
.home-chapter-shot {
  margin: 0;
  position: relative;
  min-height: 440px;
  border-radius: 0;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 32px 64px rgba(8, 34, 79, 0.22);
}
.home-chapter-shot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(195deg, rgba(8, 34, 79, 0.15) 0%, transparent 42%),
    linear-gradient(180deg, transparent 35%, rgba(8, 34, 79, 0.72) 100%);
  pointer-events: none;
}
.home-chapter-shot::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #f3d27a, #c9a227);
  z-index: 2;
}
.home-chapter-shot img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
}
.home-chapter-copy { padding-inline-end: 8px; }
.home-quiet-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  max-width: 46ch;
}
.home-quiet-list li {
  margin: 0;
  padding: 16px 0;
  padding-inline-start: 18px;
  border-inline-start: 2px solid rgba(243, 210, 122, 0.9);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
}
.home-quiet-list li + li {
  border-top: 1px solid rgba(8, 34, 79, 0.08);
}

/* Story rail */
.home-rail {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.home-rail li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 8px 24px;
  align-items: start;
  padding: 32px 8px;
  border-top: 1px solid rgba(8, 34, 79, 0.1);
}
.home-rail li:last-child { border-bottom: 1px solid rgba(8, 34, 79, 0.1); }
.home-rail em {
  font-style: normal;
  font-size: 34px;
  font-weight: 900;
  color: #c9a227;
  line-height: 1;
  letter-spacing: -0.05em;
  padding-top: 2px;
}
.home-rail span {
  display: block;
  margin-bottom: 8px;
  color: #c9a227;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.home-rail strong {
  display: block;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.28;
}
.home-rail p {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.75;
}
.home-rail li.is-focus {
  margin: 10px -12px;
  padding: 40px 28px;
  background:
    radial-gradient(520px 180px at 100% 0%, rgba(243, 210, 122, 0.18), transparent 55%),
    linear-gradient(135deg, #0c3270 0%, #08224f 48%, #051830 100%);
  border: 0;
  border-radius: 0;
  box-shadow: 0 30px 64px rgba(8, 34, 79, 0.32);
  border-inline-start: 5px solid #f3d27a;
}
.home-rail li.is-focus em,
.home-rail li.is-focus span { color: #f3d27a; }
.home-rail li.is-focus strong { color: #fff; font-size: 28px; }
.home-rail li.is-focus p { color: #c8d8f5; max-width: 54ch; }

/* Edge distinctions */
.home-edge-list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.home-edge-list > div {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 20px 32px;
  padding: 26px 4px;
  border-top: 1px solid rgba(8, 34, 79, 0.1);
  align-items: baseline;
}
.home-edge-list > div:last-child {
  border-bottom: 1px solid rgba(8, 34, 79, 0.1);
}
.home-edge-list dt {
  margin: 0;
  color: var(--navy);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.35;
}
.home-edge-list dd {
  margin: 0;
  max-width: 50ch;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
}

/* News ticker — LTR-isolated seamless marquee (works inside RTL pages) */
.home-ticker {
  margin: 52px 0 8px;
  padding: 0 4px;
}
.home-ticker-frame {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(520px 140px at 12% 0%, rgba(243, 210, 122, 0.22), transparent 55%),
    radial-gradient(420px 120px at 100% 100%, rgba(43, 127, 255, 0.18), transparent 50%),
    linear-gradient(135deg, #061933 0%, #08224f 40%, #0c3274 72%, #08224f 100%);
  box-shadow:
    0 0 0 1px rgba(243, 210, 122, 0.35),
    0 0 0 4px rgba(8, 34, 79, 0.08),
    0 24px 48px rgba(8, 34, 79, 0.28);
}
.home-ticker-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 4;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22);
}
.home-ticker-frame::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  z-index: 5;
  background: linear-gradient(90deg, #c9a227, #f3d27a, #fff4c4, #f3d27a, #c9a227);
}
.home-ticker-badge {
  position: relative;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 10px;
  margin-inline-end: 0;
  padding: 10px 16px;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(243, 210, 122, 0.98), rgba(201, 162, 39, 0.9));
  color: #08224f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  white-space: nowrap;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.home-ticker-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #08224f;
  box-shadow: 0 0 0 3px rgba(8, 34, 79, 0.18);
  animation: homeTickerPulse 1.8s ease-in-out infinite;
}
@keyframes homeTickerPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.75; }
}
.home-ticker-viewport {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-width: 0;
  /* عزل عن اتجاه الصفحة RTL حتى يبدأ المسار من اليسار دائماً */
  direction: ltr;
  unicode-bidi: isolate;
}
.home-ticker-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  animation: homeTickerMove 28s linear infinite;
}
.home-ticker:hover .home-ticker-track {
  animation-play-state: paused;
}
.home-ticker-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  flex: 0 0 auto;
}
.home-ticker-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 18px 36px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  white-space: nowrap;
  direction: rtl;
  unicode-bidi: isolate;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.home-ticker-item + .home-ticker-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  margin-left: -4px;
  transform: rotate(45deg);
  background: linear-gradient(145deg, #fff1c2, #f3d27a 40%, #c9a227);
  box-shadow: 0 0 0 3px rgba(243, 210, 122, 0.2);
}
/* دورة كاملة متتالية: يخرج من اليسار → يدخل من اليمين، بلا قطع */
@keyframes homeTickerMove {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .home-ticker-track { animation: none; transform: none; }
  .home-ticker-badge-dot { animation: none; }
  .home-ticker-viewport { overflow-x: auto; }
}

/* Path: horizontal timeline */
.home-chapter-head--center {
  max-width: none;
  margin-inline: auto;
  margin-bottom: 44px;
  padding-inline-start: 0;
  border-inline-start: none;
  text-align: center;
}
.home-chapter-head--center .home-eyebrow {
  letter-spacing: 0.18em;
}
.home-chapter-path {
  padding-top: 56px;
}
.home-path-stage {
  --path-cut: #f8fbff;
  position: relative;
  margin: 0 auto;
  padding: 28px 18px 8px;
  border-radius: 28px;
  background:
    radial-gradient(520px 180px at 50% 0%, rgba(243, 210, 122, 0.14), transparent 62%),
    radial-gradient(420px 160px at 8% 100%, rgba(21, 101, 216, 0.08), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid rgba(8, 34, 79, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 22px 48px rgba(8, 34, 79, 0.07);
}
.home-path {
  --path-node: 68px;
  --path-ring: 10px;
  --path-gap: 28px;
  --path-line-top: calc(var(--path-node) / 2);
  --path-rail-h: 6px;
  list-style: none;
  margin: 0;
  padding: 4px 8px 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--path-gap);
  position: relative;
  isolation: isolate;
}
/* Soft under-track (depth) */
.home-path::before {
  content: "";
  position: absolute;
  top: calc(4px + var(--path-line-top) - (var(--path-rail-h) / 2) + 3px);
  inset-inline: calc((100% - 3 * var(--path-gap)) / 8);
  height: var(--path-rail-h);
  border-radius: 99px;
  background: rgba(8, 34, 79, 0.12);
  filter: blur(1.5px);
  z-index: 0;
  pointer-events: none;
}
/* Main connector rail — spans centers of first→last node */
.home-path::after {
  content: "";
  position: absolute;
  top: calc(4px + var(--path-line-top) - (var(--path-rail-h) / 2));
  inset-inline: calc((100% - 3 * var(--path-gap)) / 8);
  height: var(--path-rail-h);
  border-radius: 99px;
  background: linear-gradient(
    to inline-end,
    #08224f 0%,
    #1565d8 32%,
    #2b7fff 58%,
    #f3d27a 82%,
    #c9a227 100%
  );
  box-shadow:
    0 0 0 1px rgba(8, 34, 79, 0.2),
    0 4px 14px rgba(21, 101, 216, 0.3),
    0 0 20px rgba(243, 210, 122, 0.4);
  z-index: 0;
  pointer-events: none;
}
.home-path li {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  min-width: 0;
  padding: 0 4px 6px;
  animation: homePathIn 0.65s ease both;
}
.home-path li:nth-child(1) { animation-delay: 0.05s; }
.home-path li:nth-child(2) { animation-delay: 0.14s; }
.home-path li:nth-child(3) { animation-delay: 0.23s; }
.home-path li:nth-child(4) { animation-delay: 0.32s; }
@keyframes homePathIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
/* Segment sparks between nodes (extra visibility on the rail) */
.home-path li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(var(--path-line-top) - 3px);
  inset-inline-start: calc(50% + (var(--path-node) / 2) + 4px);
  width: calc(50% - (var(--path-node) / 2) + (var(--path-gap) / 2) - 4px);
  height: 6px;
  border-radius: 99px;
  background: repeating-linear-gradient(
    to inline-end,
    rgba(255, 255, 255, 0.55) 0 6px,
    transparent 6px 12px
  );
  mix-blend-mode: soft-light;
  z-index: 2;
  pointer-events: none;
  opacity: 0.9;
}
.home-path-node {
  position: relative;
  display: flex;
  width: var(--path-node);
  height: var(--path-node);
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.28), transparent 42%),
    linear-gradient(155deg, #123a7a 0%, #08224f 52%, #1565d8 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
  font-style: normal;
  border: 3px solid #fff;
  box-shadow:
    0 0 0 var(--path-ring) var(--path-cut),
    0 0 0 calc(var(--path-ring) + 2px) rgba(21, 101, 216, 0.22),
    0 14px 28px rgba(8, 34, 79, 0.28);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.home-path-node::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1.5px dashed rgba(201, 162, 39, 0.55);
  opacity: 0.85;
  pointer-events: none;
  animation: homePathOrbit 14s linear infinite;
}
.home-path-node i {
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}
.home-path li:nth-child(2) .home-path-node {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.26), transparent 42%),
    linear-gradient(155deg, #0f3d8a, #0a2f6e 50%, #1f74e8);
}
.home-path li:nth-child(3) .home-path-node {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.26), transparent 42%),
    linear-gradient(155deg, #1a4fa3, #1565d8 48%, #3d8bfd);
}
.home-path li:last-child .home-path-node {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.55), transparent 45%),
    linear-gradient(145deg, #fff1c2, #f3d27a 42%, #c9a227);
  color: #08224f;
  border-color: #fff8e6;
  box-shadow:
    0 0 0 var(--path-ring) var(--path-cut),
    0 0 0 calc(var(--path-ring) + 2px) rgba(201, 162, 39, 0.35),
    0 14px 30px rgba(201, 162, 39, 0.38);
}
.home-path li:last-child .home-path-node::before {
  border-color: rgba(8, 34, 79, 0.28);
  border-style: solid;
  animation: none;
}
.home-path li:hover .home-path-node {
  transform: translateY(-4px) scale(1.05);
  box-shadow:
    0 0 0 var(--path-ring) var(--path-cut),
    0 0 0 calc(var(--path-ring) + 3px) rgba(21, 101, 216, 0.32),
    0 18px 34px rgba(8, 34, 79, 0.32);
}
.home-path li:last-child:hover .home-path-node {
  box-shadow:
    0 0 0 var(--path-ring) var(--path-cut),
    0 0 0 calc(var(--path-ring) + 3px) rgba(201, 162, 39, 0.45),
    0 18px 34px rgba(201, 162, 39, 0.42);
}
@keyframes homePathOrbit {
  to { transform: rotate(-360deg); }
}
.home-path strong {
  display: block;
  margin: 0;
  color: var(--navy);
  font-size: clamp(18px, 1.7vw, 23px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.home-path span {
  display: block;
  max-width: 22ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
}
@media (prefers-reduced-motion: reduce) {
  .home-path li { animation: none; }
  .home-path li:hover .home-path-node { transform: none; }
  .home-path-node::before { animation: none; }
}
@media (max-width: 900px) {
  .home-path-stage {
    padding: 22px 10px 6px;
    border-radius: 22px;
  }
  .home-path {
    --path-node: 60px;
    --path-ring: 8px;
    --path-gap: 0px;
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    padding: 8px 4px 20px;
    -webkit-overflow-scrolling: touch;
  }
  .home-path::before,
  .home-path::after {
    inset-inline: calc(var(--path-node) / 2 + 14px);
    width: calc((4 * min(68vw, 210px)) - var(--path-node) - 28px);
    top: calc(8px + var(--path-line-top) - (var(--path-rail-h) / 2));
  }
  .home-path::before {
    top: calc(8px + var(--path-line-top) - (var(--path-rail-h) / 2) + 3px);
  }
  .home-path li {
    flex: 0 0 min(68vw, 210px);
    scroll-snap-align: center;
    padding-inline: 14px;
  }
  .home-path li:not(:last-child)::after {
    width: calc(50% - (var(--path-node) / 2) + 14px);
  }
  .home-path span { max-width: 18ch; }
}

/* Destinations — photo cards with navy/gold brand veil */
.home-destinations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 52px 0 0;
  padding: 0;
}
@media (max-width: 1100px) {
  .home-destinations { grid-template-columns: 1fr; gap: 14px; }
}
.home-dest {
  position: relative;
  display: block;
  min-height: 220px;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  isolation: isolate;
  box-shadow: 0 16px 36px rgba(8, 34, 79, 0.14);
  border: 1px solid rgba(8, 34, 79, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.home-dest:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(8, 34, 79, 0.22);
  border-color: rgba(201, 162, 39, 0.45);
}
.home-dest:focus-visible {
  outline: 3px solid #f3d27a;
  outline-offset: 3px;
}
.home-dest-media,
.home-dest-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.home-dest-media {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.02);
  transition: transform 0.55s ease;
  z-index: 0;
  filter: saturate(0.92) brightness(0.98);
}
.home-dest:hover .home-dest-media { transform: scale(1.08); }
.home-dest-veil {
  z-index: 1;
  background:
    linear-gradient(115deg, rgba(8, 34, 79, 0.88) 0%, rgba(8, 34, 79, 0.62) 48%, rgba(8, 34, 79, 0.28) 100%),
    linear-gradient(0deg, rgba(8, 34, 79, 0.55) 0%, transparent 55%);
}
.home-dest--depts .home-dest-media {
  background-image: url("/app/hero/2.png");
}
.home-dest--offers .home-dest-media {
  background-image: url("/app/ads/ad-blister-close.png");
  background-position: 50% 40%;
}
.home-dest--products .home-dest-media {
  background-image: url("/app/hero/4.png");
}
.home-dest--offers .home-dest-veil {
  background:
    linear-gradient(120deg, rgba(8, 34, 79, 0.9) 0%, rgba(21, 101, 216, 0.45) 55%, rgba(201, 162, 39, 0.22) 100%),
    linear-gradient(0deg, rgba(8, 34, 79, 0.5) 0%, transparent 50%);
}
.home-dest--products .home-dest-veil {
  background:
    linear-gradient(125deg, rgba(8, 34, 79, 0.9) 0%, rgba(12, 50, 116, 0.55) 52%, rgba(13, 110, 86, 0.25) 100%),
    linear-gradient(0deg, rgba(8, 34, 79, 0.48) 0%, transparent 52%);
}
.home-dest-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  min-height: 220px;
  padding: 22px 22px 20px;
  padding-inline-end: 68px;
}
.home-dest-copy em {
  display: inline-flex;
  align-self: flex-start;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #08224f;
  background: linear-gradient(180deg, #f8e7b0, #f3d27a);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 14px rgba(8, 34, 79, 0.18);
}
.home-dest-copy strong {
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.home-dest-copy > span {
  color: rgba(232, 240, 255, 0.9);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  max-width: 28ch;
}
.home-dest::after {
  content: "←";
  position: absolute;
  z-index: 2;
  inset-inline-end: 18px;
  bottom: 18px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #08224f;
  font-size: 18px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(243, 210, 122, 0.65);
  box-shadow: 0 8px 18px rgba(8, 34, 79, 0.2);
  opacity: 0.92;
  transition: transform 0.25s ease, background 0.25s ease, opacity 0.25s ease;
}
html[dir="ltr"] .home-dest::after { content: "→"; }
.home-dest:hover::after {
  opacity: 1;
  background: #f3d27a;
  transform: translateX(-4px);
}
html[dir="ltr"] .home-dest:hover::after {
  transform: translateX(4px);
}
.home-owner {
  margin: 40px 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.02em;
}
.store-products, .store-depts, #store-featured, #store-latest { scroll-margin-top: 18px; }
.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.dept-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 20px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.dept-card b { color: #1565d8; font-size: 20px; }
.dept-card strong { display: block; margin: 8px 0 6px; color: var(--navy); font-size: 22px; }
.dept-card em { display: block; color: var(--muted); font-style: normal; font-weight: 700; }
.dept-card.on, .dept-card:hover { border-color: #1565d8; background: #f4f8ff; }
.expiry-line {
  color: #0d47a1;
  font-weight: 800;
}
.product .expiry-line,
.product-detail .expiry-line {
  margin-top: 4px;
}
html[data-theme="dark"] .expiry-line { color: #9ec3ff; }
.fav-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; }
.fav-form { display: inline; margin: 0; }
.fav-btn {
  display: inline-flex;
  align-items: center;
  border: 1px solid #1565d8;
  background: #f4f8ff;
  color: #0d47a1;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.fav-btn.on { background: #1565d8; color: #fff; }
html[data-theme="dark"] .fav-btn { background: #182744; color: #9ec3ff; border-color: #2a3d5c; }
html[data-theme="dark"] .fav-btn.on { background: #1565d8; color: #fff; }
.seller-card .eyebrow { color: #1565d8; font-weight: 800; letter-spacing: .04em; }
html[data-theme="dark"] .dept-card.on,
html[data-theme="dark"] .dept-card:hover { background: #182744; }
.store-toolbar {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.75fr 0.95fr auto auto;
  gap: 12px;
  align-items: end;
  margin: 8px 0 22px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}
.store-toolbar .field { margin: 0; }
.store-toolbar button {
  border-radius: 14px;
  min-height: 46px;
  padding-inline: 18px;
}
.store-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(8, 34, 79, 0.16);
  background: linear-gradient(180deg, #fffdf6 0%, #fff8e6 100%);
  color: #08224f;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(8, 34, 79, 0.08);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.store-clear::before {
  content: "×";
  font-size: 20px;
  font-weight: 900;
  line-height: 0.8;
  color: #c9a227;
}
.store-clear:hover {
  transform: translateY(-1px);
  border-color: #c9a227;
  background: linear-gradient(180deg, #fff8df 0%, #f3d27a 100%);
  box-shadow: 0 10px 22px rgba(201, 162, 39, 0.22);
}
.home-more { margin: 8px 0 0; }
.register-body {
  background:
    radial-gradient(circle at 88% -10%, rgba(43, 127, 255, 0.22), transparent 36%),
    linear-gradient(180deg, #08224f 0 240px, #f4f8fd 240px);
}
.register-body .site-footer { margin-top: 0; }
.reg-page {
  width: min(1180px, calc(100% - 32px));
  margin: 22px auto 56px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.reg-hero {
  background: linear-gradient(180deg, #0c3274 0%, #08224f 100%);
  color: #fff;
  border-radius: 28px;
  padding: 30px 26px;
  box-shadow: 0 22px 50px rgba(8, 34, 79, 0.22);
  position: sticky;
  top: 16px;
}
.reg-hero-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #fff;
  margin-bottom: 16px;
}
.reg-kicker {
  letter-spacing: 0.12em;
  font-weight: 800;
  color: #9ec3ff;
  margin: 0 0 8px;
}
.reg-hero h1 {
  color: #fff;
  font-size: 30px;
  margin-bottom: 10px;
}
.reg-hero p { color: #d6e4ff; }
.reg-steps {
  list-style: none;
  padding: 0;
  margin: 22px 0;
}
.reg-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  color: #9eb6dc;
  font-weight: 800;
}
.reg-steps b {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
}
.reg-steps .on { color: #fff; }
.reg-steps .on b { background: #1565d8; border-color: #1565d8; }
.reg-steps .done { color: #b7f0d8; }
.reg-steps .done b { background: #0d8a68; border-color: #0d8a68; }
.reg-points {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.reg-points li {
  position: relative;
  padding-inline-start: 18px;
  margin: 0 0 8px;
  color: #d6e4ff;
  font-weight: 700;
}
.reg-points li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7eb0ff;
  position: absolute;
  inset-inline-start: 0;
  top: 9px;
}
.reg-hero-login {
  display: inline-flex;
  color: #fff;
  font-weight: 800;
  border-bottom: 1px solid rgba(255,255,255,0.35);
}
.reg-sheet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.reg-intro h2 { color: var(--navy); font-size: 28px; }
.reg-intro .lead { color: var(--muted); font-weight: 700; }
.reg-type-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #eaf2ff;
  margin-bottom: 18px;
}
.reg-type-bar.warehouse { background: #fff6e4; }
.reg-type-bar span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; }
.reg-type-bar strong { color: var(--navy); font-size: 18px; }
.register-pick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}
.register-pick-card {
  display: block;
  padding: 26px 22px 22px;
  border-radius: 24px;
  border: 2px solid var(--line);
  background: linear-gradient(180deg, #f7fbff, #eef5ff);
  color: inherit;
  min-height: 220px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.register-pick-card.warehouse { background: linear-gradient(180deg, #fffdf8, #fff4dc); }
.register-pick-card span {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 14px;
  background: #1565d8;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}
.register-pick-card.warehouse span { background: #c9a227; }
.register-pick-card strong { display: block; font-size: 26px; color: var(--navy); }
.register-pick-card em {
  display: block;
  margin: 10px 0 22px;
  font-style: normal;
  color: var(--muted);
  font-weight: 700;
}
.register-pick-card b {
  color: #1565d8;
  font-size: 14px;
}
.register-pick-card.warehouse b { color: #9a7410; }
.register-pick-card:hover { border-color: #1565d8; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.register-pick-card.warehouse:hover { border-color: #c9a227; }
.reg-foot-note { margin-top: 22px; color: var(--muted); font-weight: 700; }
.reg-block {
  margin: 0 0 18px;
  padding: 20px 20px 8px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #f8fbff;
}
.reg-block header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.reg-block header b {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #1565d8;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.reg-block header h3 { margin: 0 0 4px; color: var(--navy); }
.reg-block header p { margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.reg-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 16px;
  color: var(--navy);
  font-weight: 800;
}
.reg-check input { width: auto; margin-top: 3px; }
.reg-file input[type="file"] {
  padding: 10px;
  background: #fff;
  border-style: dashed;
}
.reg-submit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 20px;
  background: #08224f;
  color: #d6e4ff;
  position: sticky;
  bottom: 12px;
}
.reg-submit p { margin: 0; font-weight: 700; }
.reg-submit button { min-width: 220px; }
html[data-theme="dark"] .register-body {
  background: linear-gradient(180deg, #06122a 0 240px, #08111f 240px);
}
html[data-theme="dark"] .reg-sheet {
  background: #15233d;
  border-color: #31486d;
}
html[data-theme="dark"] .reg-block {
  background: #101b31;
  border-color: #2a3d5c;
}
html[data-theme="dark"] .register-pick-card {
  background: linear-gradient(180deg, #1a2d52, #152744);
  border-color: #3a5a8c;
}
html[data-theme="dark"] .register-pick-card.warehouse {
  background: linear-gradient(180deg, #2d2614, #231d10);
  border-color: #8a7028;
}
html[data-theme="dark"] .reg-type-bar { background: #1a2d52; }
html[data-theme="dark"] .reg-type-bar.warehouse { background: #2a2414; }
html[data-theme="dark"] .reg-file input[type="file"] { background: #0d1730; }
@media (max-width: 960px) {
  .reg-page { grid-template-columns: 1fr; }
  .reg-hero { position: static; }
  .register-pick-grid { grid-template-columns: 1fr; }
  .reg-submit { flex-direction: column; align-items: stretch; position: static; }
}
.catalog-banner {
  margin: 6px 0 18px;
  padding: 28px 26px 22px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(480px 180px at 0% -40%, rgba(43, 127, 255, 0.38), transparent 58%),
    radial-gradient(380px 150px at 100% 130%, rgba(243, 210, 122, 0.2), transparent 52%),
    linear-gradient(165deg, #12397f, #071c42);
  box-shadow: 0 18px 40px rgba(8, 34, 79, 0.16);
}
.catalog-banner h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 34px;
  line-height: 1.3;
}
.catalog-banner .lead { margin: 0 0 16px; max-width: 62ch; color: #d6e4ff; }
.catalog-banner .shop-nav {
  background: rgba(4, 16, 40, 0.32);
  border-color: rgba(255, 255, 255, 0.12);
}
.catalog-banner .shop-nav a { color: #d7e6ff; }
.catalog-banner .shop-nav a:hover,
.catalog-banner .shop-nav a.on { background: #fff; color: var(--navy); }
.shop-nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 5px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.shop-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}
.shop-nav a:hover, .shop-nav a.on { background: var(--navy); color: #fff; }
.store-products .store-toolbar { margin-top: 0; }
.shop-section { margin: 18px 0 28px; scroll-margin-top: 18px; }
.shop-section > .section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  font-size: 22px;
}
.shop-section > .section-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c9a227;
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.16);
  flex-shrink: 0;
}
.shop-sub {
  margin: 16px 0 12px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 800;
}
.offer-chip {
  position: absolute;
  z-index: 1;
  inset-inline-start: 12px;
  top: 12px;
  display: inline-block;
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f3d27a;
  color: #08224f;
  font-size: 12px;
  font-weight: 900;
}
.thumb-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 16px;
  color: var(--navy);
  font-weight: 800;
  text-align: center;
}
.product .thumb img,
.product .thumb video {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.product:hover .thumb img,
.product:hover .thumb video { transform: scale(1.05); }
.product .expiry-line {
  margin-top: 0;
  margin-bottom: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.product .fav-row { margin-top: 0; }
.product .body form,
.product .body > a.btn { margin-top: auto; }
.product .actions { width: 100%; flex-wrap: nowrap; }
.product .actions .buy-qty {
  width: 74px;
  flex: 0 0 74px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 14px;
}
.product .actions button,
.product .body > a.btn {
  flex: 1;
  min-height: 42px;
  border-radius: 999px;
}
.product .body > a.btn { width: 100%; }
@media (max-width: 720px) {
  .catalog-banner { padding: 22px 16px 18px; }
  .catalog-banner h2 { font-size: 28px; }
  .catalog-banner .shop-nav {
    display: flex;
    width: 100%;
    justify-content: center;
    border-radius: 20px;
  }
}
.media-badge {
  position: absolute;
  inset-inline-end: 10px;
  bottom: 10px;
  background: rgba(8, 34, 79, 0.82);
  color: #fff;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 800;
}
.media-gallery { display: grid; gap: 10px; }
.media-slide {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--sky);
  min-height: 220px;
}
.media-slide img,
.media-slide video { width: 100%; max-height: 380px; object-fit: cover; display: block; background: #08224f; }
.media-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.media-thumbs a {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eaf2ff;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.product-detail .thumb.tall {
  min-height: 260px;
  border-radius: 18px;
  background: var(--sky);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.product-detail .thumb.tall img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .guest, .app, .row, .row-3, .trip, .charts, .kpis, .shop-grid, .cards, .review, .money-box, .search-hits, .search-hero {
    grid-template-columns: 1fr;
  }
  .topbar { flex-wrap: wrap; }
  .global-search { max-width: none; width: 100%; order: 3; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(86vw, 300px);
    transform: translateX(-110%);
    z-index: 20;
    opacity: 1;
    pointer-events: auto;
  }
  html[dir="rtl"] .sidebar { inset: 0 0 0 auto; transform: translateX(110%); }
  .app.is-sidebar-collapsed .sidebar {
    opacity: 1;
    pointer-events: auto;
    overflow: auto;
    padding: 26px 18px;
    transform: translateX(-110%);
  }
  html[dir="rtl"] .app.is-sidebar-collapsed .sidebar { transform: translateX(110%); }
  .nav-toggle:checked ~ .sidebar,
  .nav-toggle:checked + .nav-burger + .sidebar {
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .app { display: block; }
  .nav-burger { display: inline-flex; }
  .sidebar-toggle-bar { display: none !important; }
  .site-footer-base { padding-inline: 16px; }
  .login-stage { grid-template-columns: 1fr; width: min(100% - 28px, 1180px); padding-top: 24px; }
  .login-copy h1 { font-size: 34px; }
  .login-top { padding: 16px 16px 0; }
  .login-glass { padding: 26px 20px; }
  .panel, .hero { padding: 28px 22px; }
  .content { width: min(100% - 32px, 1180px); }
  .hero h1 { font-size: 36px; }
  .store-bar { padding: 10px 12px 12px; }
  .store-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
  }
  .store-links {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    justify-content: center;
  }
  .store-bar .actions { margin-inline-start: auto; }
  .store-related { margin-top: 28px; }
.store-related h2 { margin: 0 0 14px; color: var(--navy); font-size: 24px; }
  .store-hero {
    width: 100%;
    max-width: 100%;
    margin-inline-start: 0;
    min-height: 0;
    padding: 28px 18px 72px;
    border-radius: 0;
    margin-bottom: -20px;
  }
  .store-hero-layout { grid-template-columns: 1fr; min-height: 0; gap: 18px; }
  .store-hero h1 { font-size: 32px; max-width: none; }
  .store-hero .toolbar { flex-wrap: wrap; }
  .store-hero .toolbar button { width: 100%; }
  .home-promo, .home-strip, .home-story, .home-steps-4, .store-stats, .dept-grid, .store-toolbar, .home-jump { grid-template-columns: 1fr; }
  .home-chapter { padding: 40px 2px 2px; }
  .home-chapter-head { padding-inline-start: 12px; }
  .home-chapter-why {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 28px;
  }
  .home-chapter-shot,
  .home-chapter-shot img { min-height: 220px; }
  .home-chapter-head h2,
  .home-chapter-copy h2 { font-size: 28px; }
  .home-rail li {
    grid-template-columns: 56px 1fr;
    gap: 10px 14px;
    padding: 24px 0;
  }
  .home-rail li.is-focus {
    margin: 6px -6px;
    padding: 28px 16px;
  }
  .home-rail em { font-size: 26px; }
  .home-rail strong { font-size: 20px; }
  .home-rail li.is-focus strong { font-size: 22px; }
  .home-edge-list > div {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }
  .home-ticker { margin-top: 36px; padding: 0; }
  .home-ticker-frame {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }
  .home-ticker-badge {
    justify-content: center;
    margin: 10px 10px 0;
    width: calc(100% - 20px);
  }
  .home-ticker-item { padding: 14px 28px; font-size: 13px; }
  .home-ticker-track { animation-duration: 22s; }
  .home-destinations {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .home-dest,
  .home-dest-copy { min-height: 168px; }
  .home-dest-copy { padding: 18px 18px 16px; padding-inline-end: 64px; }
  .home-dest-copy strong { font-size: 22px; }
  .home-dest::after { inset-inline-end: 14px; bottom: 14px; }
  .store-hero-copy { padding: 8px 0 0; }
  .header-tools { width: 100%; justify-content: flex-end; }
  .store-bar .header-tools { width: auto; }
}
@media (max-width: 720px) {
  .store-bar { padding: 10px 12px 12px; max-width: 100%; }
  .store-bar-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    gap: 8px;
  }
  .store-bar-inner > * { min-width: 0; max-width: 100%; }
  .store-bar .store-brand {
    align-self: flex-start;
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
    margin: 0;
  }
  .store-bar .actions {
    align-self: stretch;
    flex: none;
    width: 100%;
    max-width: 100%;
    margin: 0;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  .store-links {
    order: 0;
    align-self: stretch;
    flex: none;
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .store-links::-webkit-scrollbar { display: none; }
  .store-links a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 12px;
    font-size: 13px;
  }
  .store-bar .actions { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .store-bar .header-tools { flex-wrap: nowrap; width: auto; }
  .store-bar .lang-switch a,
  .store-bar .theme-switch a { padding: 4px 8px; font-size: 11px; }
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ice: #08111f;
  --white: #121c33;
  --ink: #e8f0ff;
  --muted: #9aadc8;
  --line: #2a3d5c;
  --sky: #15243d;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.28);
  --ok-bg: #12352c;
  --warn-bg: #3a2d12;
  --danger-bg: #3a1c22;
}
html[data-theme="dark"] .screen-title,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] label,
html[data-theme="dark"] .kpi b,
html[data-theme="dark"] .bar b,
html[data-theme="dark"] .search-total,
html[data-theme="dark"] .search-group-head h2,
html[data-theme="dark"] .search-hit strong,
html[data-theme="dark"] .who {
  color: #d7e6ff;
}
html[data-theme="dark"] .card,
html[data-theme="dark"] .kpi,
html[data-theme="dark"] .product,
html[data-theme="dark"] .soft-card,
html[data-theme="dark"] .dept-card,
html[data-theme="dark"] .store-toolbar {
  border-color: #243552;
}
html[data-theme="dark"] .store-hero::after {
  background: linear-gradient(
    180deg,
    rgba(8, 17, 31, 0) 0%,
    rgba(8, 17, 31, 0.12) 24%,
    rgba(8, 17, 31, 0.55) 58%,
    rgba(8, 17, 31, 0.9) 82%,
    var(--ice) 100%
  );
}
html[data-theme="dark"] .home-chapter-head h2,
html[data-theme="dark"] .home-chapter-copy h2,
html[data-theme="dark"] .home-rail strong,
html[data-theme="dark"] .home-edge-list dt,
html[data-theme="dark"] .home-path strong,
html[data-theme="dark"] .home-metrics b {
  color: #d7e6ff;
}
html[data-theme="dark"] .home-quiet-list li + li,
html[data-theme="dark"] .home-rail li,
html[data-theme="dark"] .home-rail li:last-child,
html[data-theme="dark"] .home-edge-list > div,
html[data-theme="dark"] .home-edge-list > div:last-child {
  border-color: rgba(215, 230, 255, 0.12);
}
html[data-theme="dark"] .home-path-stage {
  --path-cut: #101c32;
  background:
    radial-gradient(520px 180px at 50% 0%, rgba(243, 210, 122, 0.1), transparent 62%),
    radial-gradient(420px 160px at 8% 100%, rgba(43, 127, 255, 0.1), transparent 55%),
    linear-gradient(180deg, #121f38 0%, #0d1729 100%);
  border-color: rgba(215, 230, 255, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 22px 48px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .home-path::before {
  background: rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .home-path::after {
  box-shadow:
    0 0 0 1px rgba(243, 210, 122, 0.28),
    0 4px 16px rgba(43, 127, 255, 0.35),
    0 0 22px rgba(243, 210, 122, 0.28);
}
html[data-theme="dark"] .home-path-node {
  border-color: #1a2b4a;
  box-shadow:
    0 0 0 var(--path-ring) var(--path-cut),
    0 0 0 calc(var(--path-ring) + 2px) rgba(43, 127, 255, 0.35),
    0 14px 28px rgba(0, 0, 0, 0.45);
}
html[data-theme="dark"] .home-path li:last-child .home-path-node {
  border-color: #2a2410;
  box-shadow:
    0 0 0 var(--path-ring) var(--path-cut),
    0 0 0 calc(var(--path-ring) + 2px) rgba(201, 162, 39, 0.4),
    0 14px 30px rgba(201, 162, 39, 0.22);
}
html[data-theme="dark"] .home-path li:hover .home-path-node {
  box-shadow:
    0 0 0 var(--path-ring) var(--path-cut),
    0 0 0 calc(var(--path-ring) + 3px) rgba(43, 127, 255, 0.45),
    0 18px 34px rgba(0, 0, 0, 0.5);
}
html[data-theme="dark"] .home-path li:last-child:hover .home-path-node {
  box-shadow:
    0 0 0 var(--path-ring) var(--path-cut),
    0 0 0 calc(var(--path-ring) + 3px) rgba(201, 162, 39, 0.5),
    0 18px 34px rgba(201, 162, 39, 0.28);
}
html[data-theme="dark"] .home-dest {
  border-color: rgba(215, 230, 255, 0.14);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .home-dest:hover {
  border-color: rgba(243, 210, 122, 0.4);
}
html[data-theme="dark"] tr:hover td { background: #182744; }
html[data-theme="dark"] .badge.picked_up,
html[data-theme="dark"] .badge.on_the_way,
html[data-theme="dark"] .badge.under_review,
html[data-theme="dark"] .stage.now { background: #1c335c; color: #9ec3ff; }
html[data-theme="dark"] .lang-switch,
html[data-theme="dark"] .theme-switch {
  background: rgba(255,255,255,0.06);
  border-color: #2a3d5c;
}
html[data-theme="dark"] .lang-switch a.active,
html[data-theme="dark"] .theme-switch a.active {
  background: #1c335c;
  color: #9ec3ff;
}
html[data-theme="dark"] .btn-ghost,
html[data-theme="dark"] .ghost {
  color: #d7e6ff;
  border-color: #2a3d5c;
}
html[data-theme="dark"] .btn-line {
  background: #121c33;
  color: #7ab0ff;
  border-color: #2a4a7a;
}
html[data-theme="dark"] .store-clear {
  background: linear-gradient(180deg, #1a2744 0%, #121c33 100%);
  color: #f3d27a;
  border-color: rgba(243, 210, 122, 0.4);
}
html[data-theme="dark"] .store-clear:hover {
  background: linear-gradient(180deg, #243552 0%, #1a2744 100%);
  border-color: #f3d27a;
}
html[data-theme="dark"] input,
html[data-theme="dark"] textarea {
  background: #0d1730;
  color: #e8f0ff;
  border-color: #2a3d5c;
}
html[data-theme="dark"] select {
  color: #e8f0ff;
  border-color: #2a3d5c;
  background-color: #0d1730;
  background-image:
    linear-gradient(180deg, #121c33 0%, #0d1730 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 5.2L7 9.2L11 5.2' stroke='%23f3d27a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(243, 210, 122, 0.45), rgba(201, 162, 39, 0.2));
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: 0 0, right 14px center, right 0 top;
  background-size: 100% 100%, 14px 14px, 36px 100%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}
html[dir="rtl"][data-theme="dark"] select {
  background-position: 0 0, left 14px center, left 0 top;
}
html[data-theme="dark"] select:hover,
html[data-theme="dark"] select:focus {
  border-color: #f3d27a;
  box-shadow: 0 0 0 4px rgba(243, 210, 122, 0.14), 0 10px 24px rgba(0, 0, 0, 0.28);
}
html[data-theme="dark"] select option {
  background: #121c33;
  color: #e8f0ff;
}
html[data-theme="dark"] table { color: #e8f0ff; }
html[data-theme="dark"] thead th { color: #9ec3ff; }
html[data-theme="dark"] .login-body { background: #06122a; }

.acct-dossier { display: grid; gap: 18px; }
.acct-docs { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.acct-docs li {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--ice);
}
.acct-docs strong { color: var(--navy); }
.acct-docs span { color: var(--muted); font-weight: 700; }
.del-dossier { display: grid; gap: 18px; }
.del-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 26px;
  border-radius: 26px;
  background: linear-gradient(135deg, #0c3274, #08224f);
  color: #fff;
  box-shadow: 0 18px 40px rgba(8, 34, 79, 0.18);
}
.del-hero h2 { color: #fff; font-size: 30px; margin: 0 0 6px; }
.del-hero p { color: #d6e4ff; margin: 0; }
.del-kicker {
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 800;
  color: #9ec3ff;
  margin: 0 0 6px;
}
.del-hero .badge { background: rgba(255,255,255,0.14); color: #fff; }
.del-party {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.del-party.pickup { border-top: 4px solid #1565d8; }
.del-party.dropoff { border-top: 4px solid #0d8a68; }
.del-party h3 { color: var(--navy); margin: 8px 0 6px; }
.del-address { font-weight: 800; color: var(--navy); }
.badge.warehouse { background: #fff6e4; color: #b87a0d; }
.del-block { margin: 0; }
.del-events { list-style: none; padding: 0; margin: 0; }
.del-events li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.del-events li:last-child { border-bottom: 0; }
.del-events span, .del-events em { display: inline-block; margin-inline-start: 8px; color: var(--muted); font-style: normal; font-weight: 700; }
.del-job-card .del-kicker { color: var(--blue); }
html[data-theme="dark"] .del-party,
html[data-theme="dark"] .del-block { background: #121c33; border-color: #243552; }
@media (max-width: 860px) {
  .del-hero { flex-direction: column; }
}
.osm-card {
  margin: 12px 0 0;
  background: #f4f8ff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.osm-card figcaption {
  padding: 10px 14px 0;
  font-weight: 800;
  color: var(--navy);
}
.osm-map {
  display: block;
  width: 100%;
  height: 240px;
  border: 0;
  background: #d9e6f7;
}
.osm-map-wide { height: 280px; }
.osm-meta {
  margin: 0;
  padding: 8px 14px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.osm-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.osm-distance {
  margin: 10px 0;
  font-weight: 700;
}
.route-pro { margin: 14px 0 4px; }
.route-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.route-metric {
  background: linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
  border: 1px solid rgba(20, 48, 90, 0.1);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 8px 20px rgba(15, 35, 70, 0.05);
}
.route-metric span {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 4px;
}
.route-metric b {
  display: block;
  font-size: 1.2rem;
  color: var(--navy);
  line-height: 1.2;
}
.route-metric em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: #6a7c94;
}
.route-metric-air { border-color: rgba(201, 162, 39, 0.35); }
.route-metric-air b { color: #9a7a12; }
.route-metric-road { border-color: rgba(31, 78, 140, 0.28); }
.route-metric-bill { border-color: rgba(13, 138, 104, 0.28); }
.route-metric-bill b { color: #0d8a68; }
.route-map-card figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding-bottom: 8px;
}
.route-legend {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.route-dot, .route-line {
  display: inline-block;
  vertical-align: middle;
  margin-inline-end: 4px;
}
.route-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.route-dot-seller { background: #163050; box-shadow: 0 0 0 3px rgba(22, 48, 80, 0.18); }
.route-dot-buyer { background: #0d8a68; box-shadow: 0 0 0 3px rgba(13, 138, 104, 0.18); }
.route-line {
  width: 18px;
  height: 0;
  border-top: 3px solid;
}
.route-line-air { border-color: #c9a227; border-style: dashed; }
.route-line-road { border-color: #1f4e8c; border-style: solid; }
.route-leaflet {
  width: 100%;
  height: min(420px, 58vh);
  min-height: 280px;
  background: #d7e4f5;
  z-index: 1;
}
.route-pin-wrap { background: transparent; border: 0; }
.route-pin {
  position: relative;
  width: 36px;
  height: 46px;
  filter: drop-shadow(0 6px 10px rgba(8, 22, 48, 0.28));
}
.route-pin span {
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 3px solid #fff;
}
.route-pin-seller span { background: #163050; }
.route-pin-buyer span { background: #0d8a68; }
.route-pin em {
  position: absolute;
  left: 50%;
  top: 30px;
  transform: translateX(-50%);
  white-space: nowrap;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: var(--navy);
  background: rgba(255,255,255,0.94);
  border-radius: 999px;
  padding: 2px 8px;
  border: 1px solid rgba(20, 48, 90, 0.12);
}
html[data-theme="dark"] .osm-card,
html[data-theme="dark"] .route-metric { background: #121c33; border-color: #243552; }
html[data-theme="dark"] .route-metric b,
html[data-theme="dark"] .route-pin em { color: #e8eef8; }
@media (max-width: 960px) {
  .route-metrics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .osm-pair { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .route-metrics { grid-template-columns: 1fr; }
  .route-leaflet { height: 300px; }
}
.osm-distance b {
  font-weight: 800;
  color: var(--navy);
}
.reg-pin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 10px 0 6px;
}
html[data-theme="dark"] .osm-card { background: #121c33; border-color: #243552; }
@media (max-width: 860px) {
  .osm-pair { grid-template-columns: 1fr; }
}

/* Smart notifications hub */
.notify-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  padding: 0;
}
.notify-bell-ico::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M15 17h5l-1.4-1.4A2 2 0 0 1 18 14.2V11a6 6 0 1 0-12 0v3.2c0 .5-.2 1-.6 1.4L4 17h5'/%3E%3Cpath d='M9 17a3 3 0 0 0 6 0'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M15 17h5l-1.4-1.4A2 2 0 0 1 18 14.2V11a6 6 0 1 0-12 0v3.2c0 .5-.2 1-.6 1.4L4 17h5'/%3E%3Cpath d='M9 17a3 3 0 0 0 6 0'/%3E%3C/svg%3E") center / contain no-repeat;
}
.notify-bell.has-unread { color: var(--blue); background: #e8f1ff; }
.notify-bell-count {
  position: absolute;
  top: 2px;
  inset-inline-end: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #d62828;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}
.notify-hub { display: grid; gap: 18px; }
.notify-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  border-radius: 22px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(21,101,216,.18), transparent 55%),
    linear-gradient(135deg, #0b2a5b 0%, #123f86 55%, #1a5bb8 100%);
  color: #eaf2ff;
  box-shadow: var(--shadow);
}
.notify-hero h2 { margin: 4px 0 8px; font-size: 28px; color: #fff; }
.notify-hero p { margin: 0; opacity: .88; max-width: 52ch; font-weight: 600; }
.notify-eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
  color: #9ec0ff;
}
.notify-pulse {
  min-width: 110px;
  text-align: center;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(6px);
}
.notify-pulse strong { display: block; font-size: 34px; line-height: 1; color: #fff; }
.notify-pulse span { font-size: 12px; font-weight: 800; opacity: .85; }
.notify-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.notify-kpi {
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.notify-kpi span { display: block; color: var(--muted); font-weight: 800; font-size: 12px; }
.notify-kpi b { display: block; margin-top: 6px; font-size: 26px; color: var(--navy); }
.notify-kpi.urgent { border-color: #f3b4b4; background: linear-gradient(180deg, #fff7f7, #fff); }
.notify-kpi.urgent b { color: #c62828; }
.notify-kpi.warning { border-color: #f0d39a; background: linear-gradient(180deg, #fffbf0, #fff); }
.notify-kpi.warning b { color: #b06d00; }
.notify-kpi.info { border-color: #b9d0f5; background: linear-gradient(180deg, #f5f9ff, #fff); }
.notify-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.notify-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.notify-filters select {
  min-width: 160px;
  width: auto;
}
.notify-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--navy);
}
.notify-check input { width: auto; }
.notify-empty {
  text-align: center;
  padding: 48px 24px;
  border-radius: 20px;
  border: 1px dashed var(--line);
  background: #f8fbff;
}
.notify-empty strong { display: block; font-size: 20px; color: var(--navy); margin-bottom: 8px; }
.notify-empty p { margin: 0; color: var(--muted); font-weight: 700; }
.notify-list { display: grid; gap: 12px; }
.notify-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.notify-item.is-unread {
  border-color: #9ec0ff;
  background: linear-gradient(180deg, #f4f8ff, #fff);
  box-shadow: 0 8px 24px rgba(21,101,216,.08);
}
.notify-item:hover { transform: translateY(-1px); }
.notify-item.sev-urgent { border-inline-start: 4px solid #d62828; }
.notify-item.sev-warning { border-inline-start: 4px solid #d89b1a; }
.notify-item.sev-info { border-inline-start: 4px solid #1565d8; }
.notify-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #eaf2ff;
  color: #1565d8;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
}
.notify-icon::before { content: 'N'; font-family: Tajawal, 'Source Sans 3', sans-serif; font-weight: 900; }
.notify-icon[data-icon='truck']::before { content: 'D'; }
.notify-icon[data-icon='timer']::before { content: 'E'; }
.notify-icon[data-icon='shield']::before { content: 'V'; }
.notify-icon[data-icon='user']::before { content: 'A'; }
.notify-icon[data-icon='bell']::before { content: 'N'; }
.notify-body h3 { margin: 6px 0 6px; font-size: 18px; color: var(--navy); }
.notify-body p { margin: 0 0 12px; color: var(--text); font-weight: 600; line-height: 1.55; }
.notify-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.notify-meta time { color: var(--muted); font-size: 12px; font-weight: 700; }
.notify-dot {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #1565d8;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.notify-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
html[data-theme='dark'] .notify-kpi,
html[data-theme='dark'] .notify-item,
html[data-theme='dark'] .notify-item.is-unread { background: linear-gradient(180deg, #182744, #121c33); }
html[data-theme='dark'] .notify-empty { background: #0f182c; }
html[data-theme='dark'] .notify-bell.has-unread { background: #1a2d52; }
@media (max-width: 860px) {
  .notify-hero { flex-direction: column; align-items: flex-start; }
  .notify-kpis { grid-template-columns: 1fr 1fr; }
  .notify-item { grid-template-columns: 44px 1fr; }
}

.admin-head {
  position: sticky;
  top: 0;
  z-index: 12;
  background:
    radial-gradient(480px 140px at 100% 0%, rgba(243, 210, 122, 0.28), transparent 62%),
    linear-gradient(180deg, #143a86 0%, #08224f 100%);
  color: #fff;
  box-shadow: 0 14px 32px rgba(8, 34, 79, 0.18);
}
.admin-head::after {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, transparent, #f3d27a 20%, #fff4cc 50%, #f3d27a 80%, transparent);
}
.admin-head-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 12px 22px;
}
.admin-head-id {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 0 1 auto;
}
.admin-head .who-avatar {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 0;
  box-shadow: 0 0 0 2px #f3d27a, 0 8px 18px rgba(0, 0, 0, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #f3d27a;
  font-size: 18px;
}
.admin-head .who-avatar-empty { background: rgba(255, 255, 255, 0.12); color: #f3d27a; }
.admin-head-name { min-width: 0; }
.admin-head-name em {
  display: block;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #f3d27a;
  line-height: 1.2;
}
.admin-head-name strong {
  display: block;
  max-width: 190px;
  margin-top: 2px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-search {
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 180px;
  max-width: 520px;
  margin-inline: auto;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.admin-search:focus-within {
  border-color: #f3d27a;
  box-shadow: 0 0 0 3px rgba(243, 210, 122, 0.22);
}
.admin-search input {
  width: auto;
  flex: 1;
  min-width: 0;
  height: 40px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  box-shadow: none;
}
.admin-search input::placeholder { color: #c9daf6; }
.admin-search input:focus { border: 0; box-shadow: none; }
.admin-search button {
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #f3d27a;
  color: #08224f;
  box-shadow: none;
  white-space: nowrap;
}
.admin-search button:hover { background: #ffe7a8; color: #08224f; transform: none; }
.admin-head-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-head-tools form { margin: 0; }
.admin-home {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.admin-home:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
.admin-home-short { display: none; }
.admin-head .notify-bell {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #f3d27a;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.admin-head .notify-bell.has-unread { color: #08224f; background: #f3d27a; }
.admin-head .header-tools { gap: 6px; flex-wrap: nowrap; }
.admin-head .lang-switch,
.admin-head .theme-switch {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  padding: 3px;
}
.admin-head .lang-switch a,
.admin-head .theme-switch a {
  color: #d7e6ff;
  padding: 5px 10px;
  font-size: 12px;
}
.admin-head .lang-switch a.active,
.admin-head .theme-switch a.active {
  background: #f3d27a;
  color: #08224f;
  box-shadow: none;
}
.admin-logout {
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(243, 210, 122, 0.7);
  box-shadow: none;
  white-space: nowrap;
}
.admin-logout:hover { background: #f3d27a; color: #08224f; transform: none; }
.admin-head .nav-burger {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}
.admin-head .nav-burger span,
.admin-head .nav-burger span::before,
.admin-head .nav-burger span::after { background: #fff; }
html[data-theme="dark"] .admin-search input {
  background: transparent;
  color: #fff;
  border: 0;
}
html[data-theme="dark"] .admin-head .lang-switch,
html[data-theme="dark"] .admin-head .theme-switch {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}
html[data-theme="dark"] .admin-head .lang-switch a,
html[data-theme="dark"] .admin-head .theme-switch a { color: #d7e6ff; }
html[data-theme="dark"] .admin-head .lang-switch a.active,
html[data-theme="dark"] .admin-head .theme-switch a.active {
  background: #f3d27a;
  color: #08224f;
}
@media (max-width: 1280px) {
  .admin-head-inner { flex-wrap: wrap; }
  .admin-head-id { flex: 1 1 auto; }
  .admin-search { order: 3; flex: 1 1 100%; max-width: none; margin-inline: 0; }
}
@media (max-width: 720px) {
  .admin-head-inner { padding: 12px; gap: 10px; }
  .admin-head-id { order: 1; width: 100%; }
  .admin-search { order: 2; }
  .admin-head-tools {
    order: 3;
    flex: 1 1 100%;
    justify-content: flex-start;
    gap: 6px;
  }
  .admin-head .header-tools { order: 1; flex: 1 1 100%; flex-wrap: nowrap; }
  .admin-home { order: 2; }
  .admin-head .notify-bell { order: 3; width: 36px; height: 36px; border-radius: 12px; }
  .admin-head-tools > form { order: 4; }
  .admin-head-name strong { max-width: 180px; }
  .admin-home-long { display: none; }
  .admin-home-short { display: inline; }
  .admin-home,
  .admin-logout,
  .admin-search button { height: 36px; font-size: 12px; }
  .admin-home, .admin-logout { padding-inline: 12px; }
  .admin-head .lang-switch a,
  .admin-head .theme-switch a { padding: 4px 8px; font-size: 11px; }
}

.overview-board { display: grid; gap: 16px; }
.overview-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.ov-stat {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 112px;
  padding: 16px 14px;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(8, 34, 79, 0.06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.ov-stat:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(8, 34, 79, 0.1); }
.ov-stat::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 18px;
  height: 3px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, #08224f, #1565d8);
}
.ov-stat-ico {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--sky);
  color: var(--blue);
}
.ov-stat-ico svg { width: 22px; height: 22px; display: block; }
.ov-stat-copy { min-width: 0; position: relative; z-index: 1; }
.ov-stat-copy em {
  display: block;
  font-style: normal;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--muted);
}
.ov-stat-copy strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(26px, 2vw, 34px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}
.ov-tone-0 {
  background:
    radial-gradient(90px 90px at 100% 0%, rgba(243, 210, 122, 0.38), transparent 70%),
    linear-gradient(155deg, #1d4f9e 0%, #0c3274 46%, #071a3d 100%);
  border: 0;
  box-shadow: 0 16px 36px rgba(8, 34, 79, 0.28);
}
.ov-tone-0::before { display: none; }
.ov-tone-0 .ov-stat-ico { background: rgba(243, 210, 122, 0.16); color: #f3d27a; }
.ov-tone-0 .ov-stat-copy em { color: #d5e4ff; }
.ov-tone-0 .ov-stat-copy strong { color: #fff; }
.ov-tone-1::before { background: linear-gradient(90deg, #a88416, #f3d27a); }
.ov-tone-1 .ov-stat-ico { background: #fff6e4; color: #a88416; }
.ov-tone-2::before { background: linear-gradient(90deg, #0d8a68, #7ddec4); }
.ov-tone-2 .ov-stat-ico { background: var(--ok-bg); color: var(--ok); }
.ov-tone-3::before { background: linear-gradient(90deg, #1565d8, #8eb8ff); }
.ov-tone-3 .ov-stat-ico { background: var(--sky); color: var(--blue); }
.ov-tone-4::before { background: linear-gradient(90deg, #c0364a, #f3a0ab); }
.ov-tone-4 .ov-stat-ico { background: var(--danger-bg); color: var(--danger); }

.overview-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ov-chart {
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(243, 210, 122, 0.14), transparent 46%),
    var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px 18px 16px;
  box-shadow: 0 12px 28px rgba(8, 34, 79, 0.05);
}
.ov-chart h3 {
  margin: 0 0 14px;
  font-size: 16px;
  color: var(--navy);
}
.ov-span { grid-column: 1 / -1; }
.ov-donut-wrap {
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}
.ov-donut {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(8, 34, 79, 0.12);
}
.ov-donut span {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--line);
}
.ov-legend, .ov-legend-inline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ov-legend { display: flex; flex-direction: column; gap: 8px; }
.ov-legend li, .ov-legend-inline li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
}
.ov-legend i, .ov-legend-inline i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.ov-legend b, .ov-legend-inline b {
  font-weight: 800;
  color: var(--ink);
  min-width: 0;
}
.ov-legend em, .ov-legend-inline em {
  margin-inline-start: auto;
  font-style: normal;
  font-weight: 900;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.ov-stack {
  display: flex;
  height: 26px;
  border-radius: 999px;
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--sky);
  box-shadow: 0 8px 18px rgba(8, 34, 79, 0.08);
}
.ov-stack i { display: block; height: 100%; }
.ov-legend-inline { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.ov-legend-inline em { margin-inline-start: 2px; }
.ov-cols {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-height: 196px;
}
.ov-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.ov-col-plot {
  width: min(44px, 100%);
  height: 148px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-bottom: 2px solid var(--line);
}
.ov-col-plot i {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 12px 12px 4px 4px;
  box-shadow: 0 8px 16px rgba(8, 34, 79, 0.12);
}
.ov-col-plot em {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.ov-col b {
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  line-height: 1.25;
  color: var(--ink);
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.ov-rank { display: grid; gap: 12px; }
.ov-rank-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
  font-size: 13px;
}
.ov-rank-meta b { font-weight: 800; color: var(--ink); }
.ov-rank-meta em {
  font-style: normal;
  font-weight: 900;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.ov-rank-track {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: var(--sky);
  overflow: hidden;
}
.ov-rank-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  box-shadow: 0 4px 10px rgba(8, 34, 79, 0.12);
}
.ov-chart-risk .ov-rank-track { height: 14px; }

.overview-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.ov-metric {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 14px 12px;
  box-shadow: 0 8px 20px rgba(8, 34, 79, 0.04);
}
.ov-metric::before {
  content: "";
  display: block;
  width: 28px;
  height: 4px;
  border-radius: 99px;
  background: #1565d8;
  margin-bottom: 10px;
}
.overview-metrics article:nth-child(4n+2)::before { background: #c9a227; }
.overview-metrics article:nth-child(4n+3)::before { background: #0d8a68; }
.overview-metrics article:nth-child(4n)::before { background: #c0364a; }
.ov-metric > span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}
.ov-metric strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.ov-metric strong small {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  margin-inline-start: 4px;
}
.ov-meter {
  display: block;
  height: 6px;
  margin-top: 10px;
  border-radius: 99px;
  background: var(--sky);
  overflow: hidden;
}
.ov-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3d8cff, #08224f);
}
.ov-metric p {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
  unicode-bidi: plaintext;
}
html[data-theme="dark"] .ov-chart h3,
html[data-theme="dark"] .ov-stat-copy strong,
html[data-theme="dark"] .ov-legend em,
html[data-theme="dark"] .ov-legend-inline em,
html[data-theme="dark"] .ov-col em,
html[data-theme="dark"] .ov-rank-meta em,
html[data-theme="dark"] .ov-metric strong,
html[data-theme="dark"] .ov-donut span { color: #e8f0ff; }
html[data-theme="dark"] .ov-tone-0 .ov-stat-copy strong { color: #fff; }
html[data-theme="dark"] .ov-tone-1 .ov-stat-ico { background: #3a2d12; color: #f3d27a; }
html[data-theme="dark"] .ov-tone-2 .ov-stat-ico { background: #12352c; color: #7ddec4; }
html[data-theme="dark"] .ov-tone-4 .ov-stat-ico { background: #3a1c22; color: #f3a0ab; }
@media (max-width: 1180px) {
  .overview-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .overview-kpis, .overview-charts, .overview-metrics { grid-template-columns: 1fr 1fr; }
  .ov-span { grid-column: auto; }
}
@media (max-width: 640px) {
  .overview-kpis, .overview-charts, .overview-metrics, .ov-donut-wrap { grid-template-columns: 1fr; }
  .ov-donut { margin-inline: auto; }
}

.report-filters { position: relative; overflow: hidden; border-radius: 24px; }
.report-filters::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #08224f, #1565d8 46%, #f3d27a);
}
.report-toc a {
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(8, 34, 79, 0.04);
}
.report-toc a:hover { background: var(--navy); color: #fff; }
.report-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}
.report-kpis .ov-stat-copy strong {
  font-size: clamp(18px, 1.5vw, 28px);
  overflow-wrap: anywhere;
}
.report-block-head {
  margin: 6px 0 14px;
  padding: 16px 18px;
  border-radius: 22px;
  background:
    radial-gradient(420px 90px at 100% 0%, rgba(243, 210, 122, 0.28), transparent 58%),
    linear-gradient(155deg, #1d4f9e 0%, #0c3274 48%, #071a3d 100%);
  box-shadow: 0 14px 30px rgba(8, 34, 79, 0.16);
}
.report-block-head h2 { margin: 0; color: #fff; font-size: 22px; }
.report-block-head p { margin: 6px 0 0; color: #d5e4ff; }
.report-section .overview-charts { margin-bottom: 16px; }
.report-section .table-wrap {
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(8, 34, 79, 0.05);
}
.report-section .table-wrap h3 { font-size: 16px; }
.report-section .table-wrap thead th { background: var(--sky); }
.rp-line svg { width: 100%; height: 148px; display: block; }
.rp-line-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}
.rp-line-meta b { color: var(--navy); font-size: 15px; }
html[data-theme="dark"] .report-block-head h2 { color: #fff; }
html[data-theme="dark"] .report-block-head p { color: #d5e4ff; }
html[data-theme="dark"] .rp-line-meta b { color: #e8f0ff; }
html[data-theme="dark"] .report-toc a {
  background: #15243d;
  color: #d7e6ff;
  border-color: #2a3d5c;
}
html[data-theme="dark"] .report-toc a:hover { background: #1d4f9e; color: #fff; }

.app-admin .main {
  background:
    radial-gradient(880px 260px at 100% -80px, rgba(21, 101, 216, 0.1), transparent 55%),
    radial-gradient(640px 220px at 0% 12%, rgba(243, 210, 122, 0.16), transparent 50%),
    var(--ice);
}
.app-admin .sidebar {
  background:
    radial-gradient(circle at 18% 0%, rgba(243, 210, 122, 0.16), transparent 26%),
    radial-gradient(circle at 80% 18%, rgba(43, 127, 255, 0.22), transparent 28%),
    linear-gradient(180deg, #12397f 0%, #08224f 58%, #061633 100%);
  box-shadow: inset -3px 0 0 rgba(243, 210, 122, 0.85);
}
html[dir="rtl"] .app-admin .sidebar { box-shadow: inset 3px 0 0 rgba(243, 210, 122, 0.85); }
.app-admin .side-note { color: #f3d27a; font-weight: 800; }
.app-admin .nav-group h3 { color: #f3d27a; }
.app-admin .nav-group a {
  border: 1px solid transparent;
}
.app-admin .nav-group a.active {
  background: linear-gradient(90deg, #fff, #fff8e8);
  border-color: rgba(243, 210, 122, 0.95);
}
html[dir="rtl"] .app-admin .nav-group a.active {
  background: linear-gradient(270deg, #fff, #fff8e8);
}
.app-admin .nav-count {
  background: rgba(243, 210, 122, 0.18);
  color: #f3d27a;
}
.app-admin .nav-group a.active .nav-count {
  background: #08224f;
  color: #f3d27a;
}
.app-admin .content { padding-top: 22px; }
.app-admin .screen-title {
  margin: 0 0 14px;
  padding: 18px 22px 16px;
  border-radius: 22px;
  color: #fff;
  font-size: 30px;
  background:
    radial-gradient(280px 90px at 100% 0%, rgba(243, 210, 122, 0.32), transparent 70%),
    linear-gradient(155deg, #1d4f9e 0%, #0c3274 46%, #071a3d 100%);
  box-shadow: 0 16px 34px rgba(8, 34, 79, 0.18);
}
.app-admin .screen-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 10px;
  border-radius: 99px;
  background: #f3d27a;
}
.app-admin .screen-title + .lead {
  margin: -2px 4px 18px;
  color: var(--navy);
  font-weight: 700;
}
.app-admin .card,
.app-admin .table-wrap,
.app-admin .empty,
.app-admin .toolbar,
.app-admin .search-hit {
  border-radius: 22px;
  border-color: var(--line);
  box-shadow: 0 14px 32px rgba(8, 34, 79, 0.06);
}
.app-admin .card:not(.report-filters) { position: relative; }
.app-admin .card:not(.report-filters)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #08224f, #1565d8 55%, #f3d27a);
}
.app-admin .card,
.app-admin .empty,
.app-admin .toolbar { background: var(--white); }
.app-admin .toolbar {
  padding: 14px;
  align-items: end;
  border: 1px solid var(--line);
}
.app-admin .table-wrap thead th {
  background: #f3f7fd;
  color: var(--navy);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  border-bottom: 2px solid #e3edf8;
}
.app-admin .table-wrap tbody td { border-bottom-color: #eef3fa; }
.app-admin .table-wrap tbody tr:last-child td { border-bottom: 0; }
.app-admin .table-wrap tbody tr:hover td { background: #f5f9ff; }
.app-admin .empty {
  border-style: dashed;
  font-weight: 800;
}
.app-admin .section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 0;
  padding-bottom: 0;
}
.app-admin .section-title::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c9a227;
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.2);
  flex: 0 0 auto;
}
.app-admin .kpis {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.app-admin .kpi {
  position: relative;
  overflow: hidden;
  min-height: 108px;
  padding: 18px 18px 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(8, 34, 79, 0.06);
}
.app-admin .kpi::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 18px;
  height: 3px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, #08224f, #1565d8);
}
.app-admin .kpi span { font-size: 13px; font-weight: 800; }
.app-admin .kpi b {
  display: block;
  margin-top: 6px;
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.app-admin .kpi:first-child {
  background:
    radial-gradient(90px 90px at 100% 0%, rgba(243, 210, 122, 0.35), transparent 70%),
    linear-gradient(155deg, #1d4f9e, #071a3d);
  border: 0;
  box-shadow: 0 16px 32px rgba(8, 34, 79, 0.22);
}
.app-admin .kpi:first-child::before { display: none; }
.app-admin .kpi:first-child span { color: #d5e4ff; }
.app-admin .kpi:first-child b { color: #fff; }
html[data-theme="dark"] .app-admin .screen-title,
html[data-theme="dark"] .app-admin .kpi:first-child b { color: #fff; }
html[data-theme="dark"] .app-admin .kpi:first-child span,
html[data-theme="dark"] .app-admin .screen-title + .lead { color: #d5e4ff; }
html[data-theme="dark"] .app-admin .table-wrap thead th { background: #182744; color: #d7e6ff; }
html[data-theme="dark"] .app-admin .table-wrap tbody tr:hover td { background: #182744; }
@media (max-width: 720px) {
  .app-admin .screen-title { font-size: 24px; padding: 16px; }
}

@media (max-width: 860px) {
  input, select, textarea { font-size: 16px; }
  .store-bar, .admin-head, .login-top {
    padding-top: max(10px, env(safe-area-inset-top));
  }
  .site-footer { padding-bottom: env(safe-area-inset-bottom); }
  .table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table-wrap table { min-width: 560px; }
  .app-admin .card form.actions,
  .app-admin .card > .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .app-admin .card form.actions button,
  .app-admin .card form.actions .btn,
  .app-admin .card > .actions .btn,
  .app-admin .card > .actions a.btn {
    width: 100%;
  }
  .login-copy h1 { font-size: 30px; }
  .login-copy { display: none; }
  .login-stage { align-items: start; }
}

/* —— Messaging hub (admin ↔ pharmacy/warehouse only) —— */
.msg-hub { display: grid; gap: 18px; }
.msg-hero {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding: 22px 24px; border-radius: 22px;
  background: linear-gradient(145deg, #08224f 0%, #1a4f9c 55%, #0d6e56 120%);
  color: #fff; box-shadow: 0 16px 36px rgba(8, 34, 79, 0.22);
}
.msg-hero h2 { margin: 4px 0 8px; font-size: 1.55rem; color: #fff; }
.msg-hero p { margin: 0; color: rgba(255,255,255,0.82); max-width: 52ch; }
.msg-kicker { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; color: #f3d27a; text-transform: uppercase; }
.msg-pulse {
  min-width: 88px; text-align: center; align-self: center;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 18px; padding: 12px 16px;
}
.msg-pulse strong { display: block; font-size: 1.8rem; line-height: 1; }
.msg-pulse span { font-size: 12px; font-weight: 700; opacity: 0.85; }
.msg-layout {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr); gap: 16px; align-items: start;
}
.msg-filters {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: center;
}
.msg-filters input[type="search"], .msg-filters select {
  min-height: 40px; border-radius: 12px; border: 1px solid var(--line); padding: 0 12px; background: #fff;
}
.msg-check { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; color: var(--muted); }
.msg-list { display: grid; gap: 10px; }
.msg-item {
  display: block; text-decoration: none; color: inherit;
  padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f5f8ff); box-shadow: 0 8px 18px rgba(8,34,79,0.04);
  transition: border-color .15s, transform .15s;
}
.msg-item:hover { border-color: rgba(21,101,216,0.35); transform: translateY(-1px); }
.msg-item.is-unread { border-color: rgba(201,162,39,0.45); background: linear-gradient(180deg, #fffdf5, #fff8e8); }
.msg-item-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.msg-item-top strong { color: var(--navy); }
.msg-item p { margin: 4px 0 0; font-size: 13.5px; }
.msg-empty {
  padding: 36px 20px; text-align: center; border-radius: 18px; border: 1px dashed var(--line); background: #f7f9fd;
}
.msg-compose h3 { margin-top: 0; }
.msg-compose .field { margin-bottom: 12px; }
.msg-thread { padding: 18px; }
.msg-bubbles { display: grid; gap: 12px; margin-bottom: 18px; max-height: min(58vh, 560px); overflow: auto; padding: 4px; }
.msg-bubble {
  max-width: min(92%, 520px); padding: 12px 14px; border-radius: 16px;
  border: 1px solid var(--line); background: #f3f7ff;
}
.msg-bubble.is-mine { margin-inline-start: auto; background: linear-gradient(180deg, #163050, #1f4e8c); color: #fff; border: 0; }
.msg-bubble.is-theirs { margin-inline-end: auto; }
.msg-bubble.from-admin.is-theirs { border-color: rgba(201,162,39,0.35); background: #fff9e9; }
.msg-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 12px; font-weight: 700; opacity: 0.85; margin-bottom: 6px; }
.msg-meta span { font-weight: 600; opacity: 0.75; }
.msg-body { white-space: pre-wrap; line-height: 1.55; font-weight: 600; }
.msg-reply { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 8px; }
html[data-theme="dark"] .msg-item,
html[data-theme="dark"] .msg-compose,
html[data-theme="dark"] .msg-thread { background: #121c33; border-color: #243552; }
html[data-theme="dark"] .msg-item.is-unread { background: #1a2238; }
html[data-theme="dark"] .msg-bubble.is-theirs { background: #182744; }
@media (max-width: 900px) {
  .msg-layout { grid-template-columns: 1fr; }
}
