/* dakiya.pk panel styles: navy + orange brand */
:root {
  --navy: #13284A;
  --navy-2: #1C355E;
  --orange: #F26A21;
  --orange-dark: #C9500E;
  --orange-tint: #FFF1E8;
  --orange-line: #F6CFB4;
  --bg: #F5F6F9;
  --card: #FFFFFF;
  --line: #E2E6EE;
  --text: #13284A;
  --muted: #5A6478;
  --green: #0B6B4A; --green-bg: #E3F4EC;
  --blue: #1F4A7A;  --blue-bg: #E7EEF8;
  --red: #8A1F1F;   --red-bg: #FBE6E6;
  --amber: #7A4A06; --amber-bg: #FFF3D9;
  --gray: #4A4F5C;  --gray-bg: #EEF0F4;
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'Poppins', system-ui, -apple-system, Segoe UI, sans-serif; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; }
a { color: var(--navy); }
a:hover { color: var(--orange-dark); }
h1 { font-size: 24px; margin: 0; font-weight: 700; letter-spacing: -.3px; }
h2 { font-size: 17px; margin: 0 0 12px; font-weight: 600; }
h3 { font-size: 15px; margin: 0 0 8px; font-weight: 600; }
small, .muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }

/* Shell */
.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.sidebar { flex: 1 1 220px; max-width: 250px; background: var(--navy); color: #fff; padding: 20px 14px; display: flex; flex-direction: column; gap: 18px; }
.sidebar .logo { background: transparent; border-radius: 12px; padding: 2px 0; display: block; }
.sidebar .logo img { width: 100%; display: block; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar nav a { color: #C3CCDD; text-decoration: none; padding: 10px 12px; border-radius: 9px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.sidebar nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar nav a.active { background: rgba(255,255,255,.12); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--orange); }
.sidebar .section { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #8C9AB5; padding: 8px 12px 2px; }
.sidebar .pill { background: var(--orange); color: var(--navy); font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.sidebar .foot { margin-top: auto; font-size: 12px; color: #9FB0CC; background: rgba(255,255,255,.06); border-radius: 10px; padding: 12px; }
.sidebar .foot strong { color: #fff; display: block; }
.sidebar form button { width: 100%; }
.main { flex: 999 1 560px; min-width: 0; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }

/* Cards & grids */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card.tint { background: var(--orange-tint); border-color: var(--orange-line); }
.card.navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.card.navy .muted, .card.navy small { color: #B7C2D6; }
.grid { display: grid; gap: 16px; }
.grid.stats { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.stat .label { font-size: 13px; color: var(--muted); }
.stat .value { font-size: 26px; font-weight: 700; margin-top: 4px; letter-spacing: -.5px; }
.stat .sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.card.tint .label, .card.tint .sub { color: #7A3E12; }
.card.navy .label, .card.navy .sub { color: #B7C2D6; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 12px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }

/* Buttons */
.btn { font-family: inherit; font-size: 14px; font-weight: 600; border-radius: 9px; padding: 10px 16px; border: 1px solid transparent; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; line-height: 1.2; }
.btn-primary { background: var(--orange-dark); color: #fff; }
.btn-primary:hover { background: #A9420B; color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-light:hover { border-color: #C9D0DC; color: var(--navy); }
.btn-danger { background: #fff; color: var(--red); border-color: #EBC5C5; }
.btn-danger:hover { background: var(--red-bg); color: var(--red); }
.btn-green { background: #0F7A55; color: #fff; }
.btn-sm { padding: 6px 10px; font-size: 13px; }
.btn-ghost { background: transparent; color: #C3CCDD; border-color: rgba(255,255,255,.2); }
.btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,.4); }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
label.field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=url], input[type=date], input[type=time], input[type=datetime-local], input[type=file], select, textarea {
  font-family: inherit; font-size: 14px; color: var(--text); padding: 10px 12px; border: 1px solid #C9D0DC; border-radius: 8px; background: #fff; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--orange); }
label.check { display: flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; }
label.check input { width: 18px; height: 18px; accent-color: var(--orange-dark); }
.error-text { color: var(--red); font-size: 12.5px; }
.hint { font-size: 12.5px; color: var(--muted); }

/* Alerts */
.alert { border-radius: 10px; padding: 12px 14px; font-size: 14px; border: 1px solid; }
.alert-success { background: var(--green-bg); color: var(--green); border-color: #BFE3D1; }
.alert-error { background: var(--red-bg); color: var(--red); border-color: #F0C4C4; }
.alert-info { background: var(--blue-bg); color: var(--blue); border-color: #C9D8EE; }
.alert-warn { background: var(--amber-bg); color: var(--amber); border-color: #F1DBA8; }
.alert ul { margin: 4px 0 0; padding-left: 18px; }

/* Tables */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12.5px; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 8px; border-bottom: 1px solid #EEF1F5; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; }
.pos { color: var(--green); font-weight: 600; }
.neg { color: var(--text); font-weight: 600; }

/* Badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.b-green { background: var(--green-bg); color: var(--green); }
.b-blue { background: var(--blue-bg); color: var(--blue); }
.b-red { background: var(--red-bg); color: var(--red); }
.b-amber { background: var(--amber-bg); color: var(--amber); }
.b-gray { background: var(--gray-bg); color: var(--gray); }
.b-orange { background: var(--orange-tint); color: #8A3A07; }
.b-navy { background: var(--navy); color: #fff; }

/* Courier picker */
.courier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.courier-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; }
.courier-card input { position: absolute; opacity: 0; pointer-events: none; }
.courier-card:has(input:checked) { border-color: var(--orange); background: var(--orange-tint); }
.courier-card:has(input:focus-visible) { outline: 2px solid var(--navy); outline-offset: 2px; }
.courier-card .name { font-weight: 700; font-size: 15px; }
.courier-card .price { font-size: 20px; font-weight: 700; }

/* Package cards */
.pkg { display: flex; flex-direction: column; gap: 10px; }
.pkg.current { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.pkg ul { margin: 0; padding-left: 18px; color: var(--muted); }
.pkg .price-line { font-weight: 600; }

/* Progress */
.bar { height: 10px; background: var(--orange-line); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--orange); border-radius: 999px; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.timeline li { display: grid; grid-template-columns: 12px 1fr; gap: 10px; }
.timeline .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); margin-top: 5px; }
.timeline .when { font-size: 12px; color: var(--muted); }

/* Auth pages */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: var(--bg); }
.auth .box { width: 100%; max-width: 460px; }
.auth .box.wide { max-width: 760px; }
.auth .brand { text-align: center; margin-bottom: 18px; }
.auth .brand img { width: 260px; max-width: 80%; }

/* Pagination */
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 12px; font-size: 13px; }

@media (max-width: 720px) {
  .sidebar { max-width: none; flex-basis: 100%; }
  .sidebar .logo { max-width: 190px; }
  .sidebar nav { flex-direction: row; flex-wrap: wrap; }
  .sidebar .foot { display: none; }
  .main { padding: 16px; }
  .kv { grid-template-columns: 1fr; }
}

/* ---- v1.8: tabs, usage meters, email module ---- */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--navy); }
.tabs a.active { color: var(--navy); font-weight: 600; border-bottom-color: var(--orange); }
.meter { height: 10px; border-radius: 99px; background: #E9ECF2; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 99px; }
.smtp-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.smtp-head h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.smtp-count { text-align: right; font-size: 13px; color: var(--muted); line-height: 1.3; }
.smtp-count strong { font-size: 26px; color: var(--navy); letter-spacing: -.5px; }
.smtp-count span { display: block; }
.smtp-edit { flex-basis: auto; }
.smtp-edit[open] { flex-basis: 100%; order: 5; }
.smtp-edit summary { list-style: none; }
.smtp-edit summary::-webkit-details-marker { display: none; }
.tpl-layout { display: grid; grid-template-columns: 250px 1fr; gap: 16px; align-items: start; }
.tpl-list { padding: 8px; display: flex; flex-direction: column; }
.tpl-list a { padding: 9px 12px; border-radius: 8px; text-decoration: none; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.tpl-list a:hover { background: var(--bg); }
.tpl-list a.active { background: var(--orange-tint); color: #8A3A07; font-weight: 600; }
.tpl-preview { width: 100%; height: 560px; border: 1px solid var(--line); border-radius: 10px; background: #EEF1F6; }
textarea { font-family: inherit; font-size: 14px; color: var(--text); padding: 10px 12px; border: 1px solid #C9D0DC; border-radius: 8px; width: 100%; resize: vertical; line-height: 1.55; }
input[type=search] { font-family: inherit; font-size: 14px; color: var(--text); padding: 10px 12px; border: 1px solid #C9D0DC; border-radius: 8px; background: #fff; }
@media (max-width: 820px) { .tpl-layout { grid-template-columns: 1fr; } }

/* ---- v2.6: new shell + seller dashboard ---- */
body { background: #F3F5F9; }
.sidebar { background: #0F2240; flex: 0 0 248px; max-width: 248px; padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; gap: 14px;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.2px); background-size: 20px 20px; }
.sidebar .logo { padding: 2px 0; border-radius: 14px; }
.sidebar nav { gap: 2px; }
.sidebar nav a { justify-content: flex-start; gap: 11px; padding: 9px 12px; color: #B9C4D8; font-weight: 500; transition: background-color .15s, color .15s; }
.sidebar nav a span:not(.pill) { flex: 1; }
.sidebar nav a .ico { width: 19px; height: 19px; flex: none; opacity: .85; }
.sidebar nav a.active { background: linear-gradient(90deg, rgba(242,106,33,.22), rgba(242,106,33,.04)); box-shadow: inset 3px 0 0 #F26A21; color: #fff; }
.sidebar nav a.active .ico { color: #F2A65A; opacity: 1; }
.sidebar .section { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 600; color: #6F7F9E; padding: 14px 12px 4px; }
.side-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.06); }
.side-avatar { width: 36px; height: 36px; flex: none; border-radius: 10px; background: #F26A21; color: #fff; font-weight: 700; display: grid; place-items: center; }
.side-user-text { flex: 1; min-width: 0; line-height: 1.25; }
.side-user-text strong { display: block; color: #fff; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user-text small { color: #8C9AB5; font-size: 11.5px; }
.side-user form button.side-logout { width: auto; background: transparent; border: 0; color: #B9C4D8; padding: 6px; border-radius: 8px; cursor: pointer; display: grid; }
.side-logout:hover { background: rgba(255,255,255,.1); color: #fff; }
.side-logout .ico { width: 18px; height: 18px; }
.main { padding: 28px 32px; }
.card { border-color: #E6EAF1; box-shadow: 0 1px 2px rgba(15,34,64,.04); }
.page-head h1 { font-size: 26px; }
@media (max-width: 860px) {
  .sidebar { position: static; height: auto; max-width: none; flex-basis: 100%; }
  .sidebar nav { flex-direction: row; flex-wrap: wrap; }
  .side-user { margin-top: 0; }
  .main { padding: 20px 16px; }
}

.dash-top { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(320px, 1.4fr); gap: 16px; }
.dash-wallet { position: relative; overflow: hidden; border-radius: 16px; padding: 22px; color: #fff; display: flex; flex-direction: column; gap: 14px; min-height: 230px;
  background: #13284A; background-image: radial-gradient(420px 220px at 100% 0%, rgba(242,106,33,.35), transparent 70%), radial-gradient(rgba(255,255,255,.06) 1px, transparent 1.2px); background-size: auto, 18px 18px; }
.dash-wallet-head { display: flex; justify-content: space-between; align-items: center; color: #B9C4D8; font-size: 13px; }
.dash-chip { background: rgba(255,255,255,.12); color: #fff; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.dash-wallet-amount { font-size: 38px; font-weight: 700; letter-spacing: -1px; line-height: 1; }
.dash-wallet-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dash-wallet-rows small { display: block; color: #B9C4D8; font-size: 12px; }
.dash-wallet-rows strong { font-size: 16px; }
.dash-btn-light { background: #fff; color: #13284A; }
.dash-btn-light:hover { background: #FFF1E8; color: #13284A; }
.dash-btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }
.dash-btn-ghost:hover { background: rgba(255,255,255,.18); color: #fff; }
.dash-actions { display: flex; flex-direction: column; }
.dash-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dash-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #EEF1F6; }
.dash-list li:first-child { border-top: 0; }
.dash-list li > div { flex: 1; min-width: 0; line-height: 1.35; }
.dash-list strong { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-list small { color: #5A6478; }
.dash-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dash-dot.is-amber { background: #E0A11B; box-shadow: 0 0 0 4px #FFF3D9; }
.dash-dot.is-red { background: #C0392B; box-shadow: 0 0 0 4px #FBE6E6; }
.dash-empty { display: flex; gap: 14px; align-items: center; margin: auto 0; padding: 18px 0; }
.dash-empty-icon { width: 42px; height: 42px; border-radius: 12px; background: #E3F4EC; position: relative; flex: none; }
.dash-empty-icon::after { content: ""; position: absolute; left: 15px; top: 9px; width: 9px; height: 18px; border: solid #0E8A5F; border-width: 0 3px 3px 0; transform: rotate(45deg); }

.dash-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dash-kpi { background: #fff; border: 1px solid #E6EAF1; border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.dash-kpi .label { color: #5A6478; font-size: 13px; }
.dash-kpi strong { font-size: 26px; letter-spacing: -.5px; line-height: 1.2; }
.dash-kpi .sub { color: #5A6478; font-size: 12.5px; }
.dash-trend { font-size: 12.5px; font-weight: 600; }
.dash-trend.is-up { color: #0E8A5F; }
.dash-trend.is-down { color: #B03A2E; }

.dash-mid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.dash-legend { display: flex; gap: 16px; font-size: 13px; color: #3D4659; }
.dash-legend i, .dash-tip i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.dash-chart { position: relative; }
.dash-chart svg { width: 100%; height: auto; display: block; }
.dash-grid { stroke: #EDF0F5; stroke-width: 1; }
.dash-axis { fill: #8A93A6; font-size: 10.5px; font-family: Poppins, sans-serif; }
.dash-hit { fill: transparent; }
.dash-bar.is-on .dash-hit { fill: rgba(19,40,74,.05); }
.dash-tip { position: absolute; top: -6px; background: #13284A; color: #fff; border-radius: 10px; padding: 8px 12px; font-size: 12px; display: flex; flex-direction: column; gap: 2px; pointer-events: none; box-shadow: 0 10px 24px -12px rgba(0,0,0,.6); white-space: nowrap; }
.dash-tip[hidden] { display: none; }
.dash-table summary { cursor: pointer; font-size: 12.5px; color: #5A6478; margin-top: 8px; }
.dash-pipe { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.dash-pipe a { display: flex; justify-content: space-between; text-decoration: none; font-size: 13.5px; margin-bottom: 5px; }
.dash-pipe a:hover span { color: #C9500E; }
.dash-pipe-bar { display: block; height: 6px; border-radius: 99px; background: #EEF1F6; overflow: hidden; }
.dash-pipe-bar i { display: block; height: 100%; border-radius: 99px; background: #F26A21; }
.dash-cities { list-style: none; margin: 0; padding: 0; }
.dash-cities li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid #EEF1F6; font-size: 13.5px; }
.dash-cities li:first-child { border-top: 0; }
@media (max-width: 1100px) { .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash-mid, .dash-top { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .dash-kpis { grid-template-columns: 1fr; } .dash-wallet-rows { grid-template-columns: 1fr; } }
/* admin dashboard */
.dash-profit { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0; font-size: 13px; }
.dash-profit li { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid rgba(255,255,255,.1); padding: 4px 0; color: #B9C4D8; }
.dash-profit strong { color: #fff; font-weight: 600; }
.dash-todo { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.dash-todo-item { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid #E6EAF1; border-radius: 12px; text-decoration: none; color: #13284A; transition: border-color .15s, background-color .15s; }
.dash-todo-item:hover { border-color: #F6CFB4; background: #FFFAF6; color: #13284A; }
.dash-todo-item strong { font-size: 20px; margin-right: 4px; }
.dash-todo-item small { display: block; color: #5A6478; }
.dash-todo-ico { width: 38px; height: 38px; border-radius: 10px; background: #FFF1E8; color: #C9500E; display: grid; place-items: center; flex: none; }
.dash-todo-ico .ico { width: 20px; height: 20px; }
.dash-money { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border: 1px solid #E6EAF1; border-radius: 14px; }
.dash-money > div { padding: 14px 18px; border-left: 1px solid #EEF1F6; display: flex; flex-direction: column; gap: 2px; }
.dash-money > div:first-child { border-left: 0; }
.dash-money span { font-size: 12.5px; color: #5A6478; }
.dash-money strong { font-size: 19px; }
.dash-money small { font-size: 11.5px; color: #8A93A6; }
.dash-pipe small { color: #8A93A6; margin-left: 4px; }
@media (max-width: 1100px) { .dash-money { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash-money > div:nth-child(3) { border-left: 0; } }
@media (max-width: 520px) { .dash-money, .dash-profit { grid-template-columns: 1fr; } .dash-money > div { border-left: 0; border-top: 1px solid #EEF1F6; } }
/* v2.7: list pages */
.list-card { padding: 0 0 8px; overflow: hidden; }
.list-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 6px 20px 0; border-bottom: 1px solid #EEF1F6; margin-bottom: 4px; }
.list-head .tabs { border-bottom: 0; }
.tab-count { display: inline-block; min-width: 22px; padding: 1px 7px; margin-left: 4px; border-radius: 999px; background: #EEF1F6; color: #5A6478; font-size: 11.5px; font-weight: 600; text-align: center; }
.tabs a.active .tab-count { background: #FFF1E8; color: #C9500E; }
.list-search { position: relative; flex: 0 1 340px; margin: 8px 0 10px; }
.list-search svg { position: absolute; left: 12px; top: 50%; width: 17px; height: 17px; margin-top: -8.5px; fill: none; stroke: #8A93A6; stroke-width: 2; stroke-linecap: round; }
.list-search input { width: 100%; padding-left: 38px; border-radius: 10px; background: #F7F8FB; border-color: #E2E6EE; }
.list-card .table-wrap, .list-card > .hint, .list-card .pager { padding: 0 20px; }
.list-table td { vertical-align: middle; padding-top: 12px; padding-bottom: 12px; }
.list-table td small { display: block; color: #8A93A6; font-size: 12px; margin-top: 2px; }
.list-table tbody tr { transition: background-color .12s; }
.list-table tbody tr:hover { background: #FAFBFD; }
.list-ref { font-weight: 700; text-decoration: none; }
.list-open { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; text-decoration: none; font-size: 20px; color: #8A93A6; }
.list-open:hover { background: #FFF1E8; color: #C9500E; }
.list-empty { text-align: center; padding: 48px 20px; }
/* order progress */
.op { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: op; }
.op li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; color: #8A93A6; font-size: 13px; }
.op li::before { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 3px; background: #E6EAF1; z-index: 0; }
.op li:first-child::before { display: none; }
.op li.is-done::before { background: #F26A21; }
.op-dot { position: relative; z-index: 1; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid #D5DBE6; }
.op li.is-done .op-dot { background: #F26A21; border-color: #F26A21; box-shadow: inset 0 0 0 3px #fff; }
.op li.is-current .op-dot { box-shadow: inset 0 0 0 3px #fff, 0 0 0 5px rgba(242,106,33,.2); animation: op-pulse 1.8s ease-in-out infinite; }
@keyframes op-pulse { 50% { box-shadow: inset 0 0 0 3px #fff, 0 0 0 9px rgba(242,106,33,.08); } }
.op li.is-done .op-label { color: #13284A; font-weight: 600; }
.op small { font-size: 11.5px; min-height: 16px; }
.op-note { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 2px; }
.op-note strong { font-size: 15px; }
.op-note span { color: #5A6478; font-size: 13px; }
.op-returned strong { color: #C9500E; } .op-cancelled strong, .op-blocked strong { color: #8A1F1F; }
@media (max-width: 640px) { .op small { display: none; } .op li { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { .op li.is-current .op-dot { animation: none; } }
.list-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid #EEF1F6; margin-bottom: 4px; }
.list-filters .list-search { margin: 0; }
.list-filters select { width: auto; min-width: 160px; }
.list-card > .list-empty { padding: 48px 20px; }
#order-form aside { position: sticky; top: 20px; align-self: flex-start; }
.list-table td a:not(.list-ref):not(.list-open) { text-decoration: none; font-weight: 500; }
.list-table td a:not(.list-ref):not(.list-open):hover { text-decoration: underline; }

/* v3.0 · Cities master list */
.city-form > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.city-form > summary::-webkit-details-marker { display: none; }
.city-form > summary::after { content: "+"; font-size: 22px; color: #8A93A6; line-height: 1; }
.city-form[open] > summary::after { content: "–"; }
.city-form:not([open]) { padding-top: 14px; padding-bottom: 14px; }

/* ---- v3.1: money pages, couriers, packages, settings, integrations ---- */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dash-kpi.kpi-hot { border-color: #F6CFB4; background: linear-gradient(180deg, #FFF7F1, #fff 70%); }
.dash-kpi.kpi-hot strong { color: #C9500E; }
.money-table .amt { font-size: 15px; }
.age { font-weight: 500; }
.age.is-late { color: #B03A2E; font-weight: 600; }
.copyable { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.copy-btn { font: inherit; font-size: 11.5px; font-weight: 600; color: #5A6478; background: #F1F4F9; border: 1px solid #E2E6EE; border-radius: 6px; padding: 1px 7px; cursor: pointer; line-height: 1.6; }
.copy-btn:hover { color: #13284A; border-color: #C9D0DC; }
.copy-btn.is-copied, .btn.is-copied { color: #0B6B4A; background: #E3F4EC; border-color: #BFE3D1; }
.pay-ref { display: flex; gap: 10px; align-items: center; }
.pay-ref > div { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.proof-thumb { flex: none; width: 44px; height: 44px; border-radius: 8px; overflow: hidden; border: 1px solid #E2E6EE; display: block; }
.proof-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.proof-thumb:hover img { transform: scale(1.08); }
.decide { display: flex; flex-direction: column; gap: 6px; min-width: 220px; }
.decide input { padding: 7px 10px; font-size: 13px; }
.bank-box { display: flex; flex-direction: column; gap: 1px; font-size: 13px; }
.bank-box strong { font-size: 13.5px; }
.neg-red { color: #B03A2E; }

/* COD remittance */
.owed { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.owed a { text-decoration: none; color: #13284A; background: #fff; border: 1px solid #E6EAF1; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.owed a:hover { border-color: #F6CFB4; transform: translateY(-1px); color: #13284A; }
.owed a span:first-child { font-size: 13px; color: #5A6478; }
.owed a strong { font-size: 22px; letter-spacing: -.4px; }
.owed a small { color: #5A6478; font-size: 12.5px; }
.owed a.is-on { border-color: #F26A21; box-shadow: 0 0 0 1px #F26A21; }
.owed .owed-total { background: #13284A; border-color: #13284A; color: #fff; }
.owed .owed-total:hover { color: #fff; border-color: #13284A; }
.owed .owed-total span:first-child, .owed .owed-total small { color: #B7C2D6; }
.owed .owed-total.is-on { box-shadow: 0 0 0 2px #F26A21; }
.remit-top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; }
.drop { position: relative; display: flex; align-items: center; gap: 14px; border: 2px dashed #C9D0DC; border-radius: 12px; padding: 16px; cursor: pointer; background: #FAFBFD; transition: border-color .15s, background-color .15s; }
.drop:hover, .drop.is-over { border-color: #F26A21; background: #FFF7F1; }
.drop.has-file { border-style: solid; border-color: #0F7A55; background: #F2FAF6; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-ico { width: 40px; height: 40px; flex: none; border-radius: 10px; background: #FFF1E8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9500E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4m0 0-4 4m4-4 4 4M4 16v3a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-3'/%3E%3C/svg%3E") center / 22px no-repeat; }
.drop-text { display: flex; flex-direction: column; }
.drop-text small { color: #5A6478; }
details.more > summary { cursor: pointer; color: #5A6478; font-size: 13px; font-weight: 500; }
.batch-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.batch-list li { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #EEF1F6; }
.batch-list li:last-child { border-bottom: 0; }
.batch-list a { flex: 1; display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; text-decoration: none; color: #13284A; }
.batch-list a:hover strong { color: #C9500E; }
.batch-list small { display: block; color: #5A6478; font-size: 12px; }
.list-table tr.is-picked td { background: #FFF7F1; }
.list-table td small.mono { display: block; }
.select-bar { position: sticky; bottom: 16px; margin: 12px 20px 4px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: #13284A; color: #fff; padding: 10px 12px 10px 18px; border-radius: 12px; box-shadow: 0 14px 30px rgba(19,40,74,.28); animation: bar-in .18s ease-out; }
@keyframes bar-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Couriers */
.cr { display: flex; flex-direction: column; gap: 16px; }
.cr.is-off { background: #FBFCFD; }
.cr-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cr-logo { width: 42px; height: 42px; border-radius: 12px; background: #13284A; color: #fff; font-weight: 700; font-size: 18px; display: grid; place-items: center; flex: none; }
.cr.is-off .cr-logo { background: #9AA4B5; }
.cr-title { flex: 1; min-width: 160px; }
.cr-title h2 { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.cr-title h2 .mono { font-size: 12px; color: #8A93A6; font-weight: 500; }
.cr-title small { color: #5A6478; }
.cr-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #EEF1F6; border-radius: 12px; }
.cr-stats > div { padding: 12px 14px; display: flex; flex-direction: column; gap: 1px; border-left: 1px solid #EEF1F6; min-width: 0; }
.cr-stats > div:first-child { border-left: 0; }
.cr-stats small { color: #5A6478; font-size: 12px; }
.cr-stats strong { font-size: 18px; letter-spacing: -.3px; }
.cr-stats span { color: #5A6478; font-size: 12.5px; }
.cr-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.cr-edit { flex-basis: auto; }
.cr-edit[open] { flex-basis: 100%; }
.cr-edit > summary { list-style: none; }
.cr-edit > summary::-webkit-details-marker { display: none; }
.cr-edit[open] > summary { background: #13284A; color: #fff; border-color: #13284A; margin-bottom: 14px; }
.cr-new > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cr-new > summary::-webkit-details-marker { display: none; }
.cr-new > summary::after { content: "+"; margin-left: auto; font-size: 22px; color: #8A93A6; line-height: 1; }
.cr-new[open] > summary::after { content: "–"; }
.cf { display: flex; flex-direction: column; gap: 14px; }
.cf-block { border: 1px solid #E6EAF1; border-radius: 12px; padding: 14px 16px 16px; margin: 0; min-width: 0; }
.cf-block legend { padding: 0 6px; font-weight: 600; font-size: 14px; }
.cf-block legend .hint { font-weight: 400; margin-left: 6px; }
.cf-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.cf-prices { display: grid; gap: 8px; max-width: 640px; }
.cf-ph, .cf-pr { display: grid; grid-template-columns: 130px minmax(0, 1fr) minmax(0, 1fr) 100px; gap: 10px; align-items: center; }
.cf-ph span { font-size: 12.5px; color: #5A6478; font-weight: 600; }
.cf-pr span { font-size: 13.5px; font-weight: 500; }
.cf-pr output { font-weight: 700; font-size: 14px; }
.cf-pr output.is-pos { color: #0E8A5F; }
.cf-pr output.is-neg { color: #B03A2E; }
.cf-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.saved-chip { display: inline-block; font-size: 11px; font-weight: 600; color: #0B6B4A; background: #E3F4EC; border-radius: 99px; padding: 0 8px; margin-left: 4px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; font-size: 14px; color: #13284A; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { position: relative; width: 38px; height: 22px; border-radius: 99px; background: #C9D0DC; transition: background-color .15s; flex: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked + span { background: #0F7A55; }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid #F26A21; outline-offset: 2px; }

/* Admin packages */
.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.pk-grid > .pk { align-self: start; }
.pk { display: flex; flex-direction: column; gap: 14px; }
.pk.is-off { background: #FBFCFD; }
.pk-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.pk-head h2 { margin: 0 0 2px; display: flex; gap: 8px; align-items: baseline; }
.pk-head h2 .mono { font-size: 12px; color: #8A93A6; font-weight: 500; }
.pk-head small { color: #5A6478; }
.pk-fees { list-style: none; margin: 0; padding: 0; border: 1px solid #EEF1F6; border-radius: 10px; }
.pk-fees li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-top: 1px solid #EEF1F6; font-size: 13.5px; }
.pk-fees li:first-child { border-top: 0; }
.pk-fees span { color: #5A6478; }
.pk-grid .cr-edit[open] { grid-column: 1 / -1; }
.pk:has(.cr-edit[open]) { grid-column: 1 / -1; }

/* Seller packages */
.pk-note { margin: 0; color: #5A6478; }
.spk { position: relative; display: flex; flex-direction: column; gap: 12px; padding-top: 24px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.spk:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(19,40,74,.08); }
.spk h2 { margin: 0; font-size: 19px; }
.spk-desc { margin: -6px 0 0; color: #5A6478; font-size: 13.5px; min-height: 40px; }
.spk-price strong { font-size: 30px; letter-spacing: -.8px; display: block; line-height: 1.1; }
.spk-price span { color: #5A6478; font-size: 13px; }
.spk.is-current { border-color: #F26A21; box-shadow: 0 0 0 1px #F26A21; }
.spk.is-best { border-color: #0F7A55; box-shadow: 0 0 0 1px #0F7A55; }
.spk-flag { position: absolute; top: -11px; left: 18px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; padding: 3px 10px; border-radius: 99px; background: #F26A21; color: #fff; }
.spk-flag.is-best { background: #0F7A55; }
.spk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.spk-list li { display: flex; gap: 9px; align-items: flex-start; }
.spk-list small { display: block; color: #5A6478; font-size: 12px; }
.spk-ico { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: #E3F4EC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B6B4A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.spk-list li.is-no { color: #9AA4B5; }
.spk-list li.is-no .spk-ico { background: #F1F4F9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239AA4B5' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.spk-est { background: #F7F8FB; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 1px; margin-top: auto; }
.spk-est span { font-size: 12px; color: #5A6478; }
.spk-est strong { font-size: 16px; }
.spk-est small { font-size: 12px; color: #5A6478; }
.spk-btn { margin-top: 4px; }
span.spk-btn { justify-content: center; opacity: .7; cursor: default; }
.spk-est + .spk-btn { margin-top: 0; }
.spk:not(:has(.spk-est)) .spk-btn { margin-top: auto; }

/* Settings layout */
.set-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: start; }
.set-nav { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 2px; }
.set-nav a { text-decoration: none; color: #5A6478; padding: 8px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 500; border-left: 2px solid transparent; }
.set-nav a:hover { color: #13284A; background: #fff; }
.set-nav a.active { color: #13284A; font-weight: 600; background: #fff; border-left-color: #F26A21; }
.set-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.set-body > section { scroll-margin-top: 20px; }
.save-bar { grid-column: 2; position: sticky; bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; background: #fff; border: 1px solid #E2E6EE; border-radius: 12px; box-shadow: 0 10px 26px rgba(19,40,74,.08); color: #5A6478; font-size: 13.5px; transition: background-color .2s, color .2s; }
.save-bar.is-dirty { background: #13284A; border-color: #13284A; color: #fff; box-shadow: 0 14px 30px rgba(19,40,74,.28); }
.acct { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: #fff; border: 1px solid #E6EAF1; border-radius: 14px; padding: 16px 18px; }
.acct-avatar { width: 52px; height: 52px; border-radius: 14px; background: #F26A21; color: #fff; font-weight: 700; font-size: 22px; display: grid; place-items: center; flex: none; }
.acct-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 200px; }
.acct-main strong { font-size: 17px; }
.acct-main > span { color: #5A6478; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.acct-facts { display: flex; gap: 22px; margin: 0; flex-wrap: wrap; }
.acct-facts dt { font-size: 12px; color: #5A6478; }
.acct-facts dd { margin: 0; font-weight: 600; }

/* Integrations */
.int-status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.int-tile { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid #E6EAF1; border-radius: 14px; padding: 14px 16px; }
.int-tile small { display: block; color: #5A6478; font-size: 12.5px; }
.int-tile strong { display: block; font-size: 18px; }
.int-tile div > span { color: #5A6478; font-size: 12.5px; }
.int-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #C9D0DC; margin-top: 6px; box-shadow: 0 0 0 4px #F1F4F9; }
.int-tile.is-ok .int-dot { background: #0F9D63; box-shadow: 0 0 0 4px #E3F4EC; }
.int-tile.is-bad { border-color: #F0C4C4; }
.int-tile.is-bad .int-dot { background: #D64545; box-shadow: 0 0 0 4px #FBE6E6; animation: dot-blink 1.4s infinite; }
@keyframes dot-blink { 50% { opacity: .35; } }
.int-tabs { padding: 6px 20px 0; }
.int-pane { padding: 20px; }
.key-box { display: flex; gap: 8px; align-items: center; margin-top: 8px; background: #fff; padding: 8px 8px 8px 12px; border-radius: 8px; border: 1px solid #E2E6EE; }
.key-box .mono { flex: 1; word-break: break-all; color: #13284A; }
.hook-log { list-style: none; margin: 0; padding: 0; border: 1px solid #EEF1F6; border-radius: 10px; }
.hook-log li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px 12px; border-top: 1px solid #EEF1F6; font-size: 13px; }
.hook-log li:first-child { border-top: 0; }
.hook-log small { color: #5A6478; margin-left: auto; }
.steps-list { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.steps-list li { counter-increment: s; position: relative; padding-left: 38px; line-height: 1.6; min-height: 26px; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: #FFF1E8; color: #C9500E; font-weight: 700; font-size: 13px; display: grid; place-items: center; }
pre.code { background: #13284A; color: #E6EDF7; padding: 14px 16px; border-radius: 10px; overflow-x: auto; margin: 10px 0 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; line-height: 1.6; }
pre.code.is-light { background: #F5F6F9; color: #13284A; border: 1px solid #E2E6EE; margin: 0; }
.verb { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: #E7EEF8; color: #1F4A7A; }
.verb.is-post { background: #FFF1E8; color: #8A3A07; }

@media (max-width: 1100px) {
  .cr-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cr-stats > div:nth-child(3) { border-left: 0; }
  .cr-stats > div:nth-child(n+3) { border-top: 1px solid #EEF1F6; }
  .remit-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .set-layout { grid-template-columns: minmax(0, 1fr); }
  .set-nav { position: static; flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 2px; }
  .set-nav a { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; border-radius: 8px 8px 0 0; }
  .set-nav a.active { border-bottom-color: #F26A21; }
  .save-bar { grid-column: 1; }
  .int-status { grid-template-columns: minmax(0, 1fr); }
  .cf-two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .cr-stats { grid-template-columns: minmax(0, 1fr); }
  .cr-stats > div { border-left: 0 !important; border-top: 1px solid #EEF1F6; }
  .cr-stats > div:first-child { border-top: 0; }
  .cf-ph { display: none; }
  .cf-pr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cf-pr span { grid-column: 1 / -1; }
  .cf-pr output::before { content: "Margin "; font-weight: 500; color: #5A6478; }
  .acct-facts { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .select-bar, .spk, .owed a { animation: none; transition: none; }
  .int-tile.is-bad .int-dot { animation: none; }
}
.pk-fees strong { white-space: nowrap; text-align: right; }

/* v3.3 · customer location pin */
.pin-dot { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-left: 3px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230F7A55'%3E%3Cpath d='M12 22s-7.5-6.6-7.5-12.3a7.5 7.5 0 0 1 15 0C19.5 15.4 12 22 12 22z'/%3E%3Ccircle cx='12' cy='9.7' r='2.6' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat; }
.loc-link { font-weight: 600; }
.loc-add > summary { list-style: none; }
.loc-add > summary::-webkit-details-marker { display: none; }
.loc-add[open] { flex-basis: 100%; }

/* v3.4 · zone rates */
.zone-tabs { display: inline-flex; gap: 4px; padding: 4px; background: #F1F4F9; border-radius: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.zone-tabs button { font: inherit; font-size: 13px; font-weight: 600; color: #5A6478; background: transparent; border: 0; border-radius: 7px; padding: 6px 12px; cursor: pointer; }
.zone-tabs button.is-on { background: #fff; color: #13284A; box-shadow: 0 1px 3px rgba(19,40,74,.12); }
.cf-prices input::placeholder { color: #A9B2C3; }
.zone-line { display: block; font-size: 12px; color: #0B6B4A !important; font-weight: 500; margin-top: 2px; }

/* v3.5 · Shopify */
.shop-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.shop-logo { width: 44px; height: 44px; border-radius: 12px; flex: none; background: #E3F4EC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B6B4A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1.2 11.2a2 2 0 0 1-2 1.8H8.2a2 2 0 0 1-2-1.8L5 8z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E") center / 24px no-repeat; }
.zone-tabs label { cursor: pointer; }
.zone-tabs label span { display: block; font-size: 13px; font-weight: 600; color: #5A6478; border-radius: 7px; padding: 6px 12px; }
.zone-tabs label input:checked + span { background: #fff; color: #13284A; box-shadow: 0 1px 3px rgba(19,40,74,.12); }
.zone-tabs label input:focus-visible + span { outline: 2px solid #F26A21; }

/* v3.6 · products */
.stock-cell { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stock-adj { display: flex; gap: 4px; }
.stock-adj input { width: 70px; padding: 5px 8px; font-size: 13px; }
.items-box { display: flex; flex-direction: column; gap: 8px; }
.item-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 110px 34px; gap: 8px; align-items: center; padding: 8px 10px; background: #F7F8FB; border-radius: 10px; }
.item-row strong { display: block; font-size: 14px; }
.item-row small { color: var(--muted); }
.item-row input { padding: 7px 8px; }
.item-row button { border: 0; background: transparent; font-size: 20px; color: #8A93A6; cursor: pointer; }
.item-row button:hover { color: var(--red); }
.item-pick { position: relative; }
.item-pick ul { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid #DDE3EC; border-radius: 12px; box-shadow: 0 16px 36px rgba(19,40,74,.16); max-height: 260px; overflow-y: auto; }
.item-pick li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.item-pick li:hover, .item-pick li.is-active { background: #FFF1E8; }
.item-pick li small { color: var(--muted); }
.item-pick li.is-out { opacity: .5; cursor: not-allowed; }
@media (max-width: 560px) { .item-row { grid-template-columns: minmax(0, 1fr) 70px 34px; } .item-row .item-sub { display: none; } }
.order-items { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.item-pick input { width: 100%; }

/* v3.8 · weight charges */
.wt { display: flex; flex-direction: column; gap: 12px; }
.wt-line { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; background: #F7F8FB; border-radius: 10px; padding: 12px 14px; }
.wt-line small { display: block; color: var(--muted); font-size: 12px; }
.wt-line strong { font-size: 17px; }
.wt-arrow { font-size: 20px; color: #C9500E; }

/* v3.9 · refer & earn */
.ref-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px; align-items: center; margin-bottom: 18px; padding: 26px 28px; border-radius: 18px; color: #fff;
  background: radial-gradient(circle at 92% 8%, rgba(242,106,33,.45), transparent 42%), linear-gradient(135deg, #13284A, #1D3A66); box-shadow: 0 16px 36px rgba(19,40,74,.18); }
.ref-hero h2 { color: #fff; margin: 10px 0 12px; font-size: 22px; }
.ref-hero-text { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ref-chip { align-self: flex-start; background: rgba(242,106,33,.18); color: #FFD3B8; border: 1px solid rgba(242,106,33,.45); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; }
.ref-link { display: flex; gap: 8px; background: #fff; border-radius: 12px; padding: 6px; }
.ref-link input { flex: 1; min-width: 0; border: 0; font: 600 14px var(--font, Poppins), sans-serif; color: #13284A; padding: 8px 10px; background: transparent; }
.ref-link input:focus { outline: none; }
.ref-hero .hint { color: #C4CEE0; }
.ref-hero .btn-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-wa { background: #1FAF55; color: #fff; border-color: #1FAF55; }
.btn-wa:hover { background: #17964A; color: #fff; }
.ref-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: rs; }
.ref-steps li { counter-increment: rs; position: relative; padding: 12px 14px 12px 52px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; }
.ref-steps li::before { content: counter(rs); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: #F26A21; color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.ref-steps strong { display: block; color: #fff; }
.ref-steps span { color: #C4CEE0; font-size: 13px; }
.ref-bar { height: 8px; border-radius: 99px; background: #EEF1F6; overflow: hidden; margin-bottom: 4px; }
.ref-bar span { display: block; height: 100%; background: linear-gradient(90deg, #F26A21, #C9500E); border-radius: inherit; }
.ref-invite { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: #FFF4EC; border: 1px solid #F6CFB4; color: #13284A; margin-bottom: 16px; font-size: 14px; }
.ref-invite b { color: #C9500E; }
@media (max-width: 860px) { .ref-hero { grid-template-columns: 1fr; padding: 22px 18px; } }

/* v4.0 · call list */
.call-list { display: flex; flex-direction: column; }
.call-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 430px); gap: 18px; padding: 16px 20px; border-top: 1px solid var(--line); }
.call-card:first-child { border-top: 0; }
.call-card.is-due { background: linear-gradient(90deg, #FFF4EC, #fff 60%); box-shadow: inset 3px 0 0 #F26A21; }
.call-who { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.call-name { font-size: 16px; }
.call-phone { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font: 700 19px/1.2 var(--font, Poppins), sans-serif; letter-spacing: .02em; color: #13284A; text-decoration: none; padding: 6px 12px 6px 10px; border-radius: 10px; background: #EEF3FA; border: 1px solid #DCE5F2; }
.call-phone:hover { background: #13284A; color: #fff; }
.call-phone svg { width: 18px; height: 18px; color: #C9500E; }
.call-phone:hover svg { color: #FFB98E; }
.call-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.call-meta.muted { color: var(--muted); font-size: 12.5px; }
.call-actions { display: flex; flex-direction: column; gap: 8px; }
.call-actions > input[type=text] { padding: 8px 10px; font-size: 13px; }
.call-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.call-more summary { font-size: 13px; }
.call-later { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.call-later select, .call-later input { padding: 6px 8px; font-size: 13px; width: auto; flex: 1 1 140px; min-width: 0; }
.call-settings { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.call-settings > div { flex: 1 1 360px; }
@media (max-width: 900px) { .call-card { grid-template-columns: 1fr; padding: 14px 16px; } }

/* v4.1 · notifications, bell, install */
.topbar { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin: -6px 0 10px; min-height: 40px; }
.topbar .btn svg { width: 16px; height: 16px; }
.bell-wrap { position: relative; }
.bell { position: relative; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: #13284A; display: grid; place-items: center; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.bell:hover, .bell[aria-expanded=true] { border-color: #F6CFB4; box-shadow: 0 6px 16px rgba(19,40,74,.08); }
.bell svg { width: 20px; height: 20px; }
.bell-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: #F26A21; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid #F4F6FA; }
.bell-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(380px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 22px 48px rgba(19,40,74,.18); z-index: 60; overflow: hidden; }
.bell-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.bell-link { background: none; border: 0; color: #C9500E; font: 600 13px inherit; font-family: inherit; cursor: pointer; padding: 0; }
.bell-list { max-height: 380px; overflow-y: auto; }
.bell-item, .note-item { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 16px; color: #13284A; text-decoration: none; border-bottom: 1px solid #F0F2F6; }
.bell-item:hover, .note-item:hover { background: #F7F8FB; }
.bell-item.is-unread, .note-item.is-unread { background: #FFF7F1; }
.bell-item strong, .note-item strong { display: block; font-size: 13.5px; font-weight: 600; }
.bell-item small, .note-item small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bell-item time, .note-item time { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.bell-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; background: #8A93A6; }
.is-unread .bell-dot { box-shadow: 0 0 0 3px rgba(242,106,33,.18); }
.t-orders { background: #2E6FD8; } .t-problems { background: #D64545; } .t-delivered { background: #0F7A55; }
.t-money { background: #F26A21; } .t-stock { background: #C98A0E; } .t-store { background: #5E8E3E; } .t-admin { background: #13284A; }
.bell-empty { padding: 26px 16px; text-align: center; color: var(--muted); margin: 0; font-size: 14px; }
.bell-foot { display: block; text-align: center; padding: 11px; font-weight: 600; font-size: 13px; color: #13284A; background: #F7F8FB; text-decoration: none; }
.note-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.note-item strong { font-size: 14.5px; }
.note-list .note-item:last-child { border-bottom: 0; }
.push-card { display: flex; flex-direction: column; gap: 10px; background: linear-gradient(180deg, #FFF7F1, #fff 45%); }
.push-icon { width: 46px; height: 46px; border-radius: 14px; background: #13284A; color: #FFB98E; display: grid; place-items: center; }
.push-icon svg { width: 22px; height: 22px; }
.push-state { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px dashed #F6CFB4; font-size: 13.5px; }
.device-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.device-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; }
.device-list small { display: block; color: var(--muted); font-size: 12px; }
@media (max-width: 960px) { .note-layout { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .topbar { margin: 0 0 8px; } }

/* v4.2 · paste orders */
.paste-card { padding: 0; overflow: hidden; border-color: #F6CFB4; background: linear-gradient(180deg, #FFF7F1, #fff 70%); margin-bottom: 20px; }
.paste-card > summary { display: flex; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer; list-style: none; }
.paste-card > summary::-webkit-details-marker { display: none; }
.paste-card > summary small { display: block; color: var(--muted); font-size: 13px; }
.paste-card[open] > summary { padding-bottom: 6px; }
.paste-ico { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; background: #13284A; color: #FFB98E; display: grid; place-items: center; }
.paste-ico svg { width: 20px; height: 20px; }
.paste-body { padding: 6px 20px 18px; display: flex; flex-direction: column; gap: 10px; }
.paste-body textarea { font-family: inherit; font-size: 14px; resize: vertical; min-height: 110px; }
.paste-result { font-size: 13.5px; font-weight: 500; }
.paste-result.is-ok { color: #0F7A55; }
.paste-result.is-warn { color: #A4520D; }
.just-filled { animation: dkFill 1.4s ease-out; }
@keyframes dkFill { 0% { background-color: #FFE3CF; box-shadow: 0 0 0 3px rgba(242,106,33,.25); } 100% { background-color: #fff; box-shadow: none; } }
.pp-table td { vertical-align: top; padding: 8px 6px; }
.pp-table input[type=text], .pp-table input[type=tel], .pp-table input[type=number] { padding: 7px 8px; font-size: 13px; width: 100%; }
.pp-table input.is-missing { border-color: #E9A23B; background: #FFF6E5; }
.pp-table tr.has-missing td:first-child { box-shadow: inset 3px 0 0 #E9A23B; }
.pp-src summary { font-size: 11.5px; color: var(--muted); cursor: pointer; margin-top: 6px; }
.pp-src pre { position: absolute; z-index: 5; max-width: 320px; white-space: pre-wrap; background: #13284A; color: #fff; padding: 10px 12px; border-radius: 10px; font-size: 12px; margin: 4px 0 0; }

/* ============================================================
   v4.3 · phone app shell (Android style). Desktop is unchanged.
   ============================================================ */
.appbar, .tabbar, .sheet, .ptr, .snackbar-host, .app-cta { display: none; }
html { -webkit-tap-highlight-color: transparent; }

@media (max-width: 860px) {
  :root { --bar-h: 56px; --tab-h: 64px; --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px); }
  body { padding-top: calc(var(--bar-h) + var(--safe-t)); padding-bottom: calc(var(--tab-h) + var(--safe-b) + 8px); background: #F2F4F8; }
  body.no-scroll { overflow: hidden; }
  .shell { display: block; min-height: 0; }
  .sidebar, .topbar { display: none !important; }
  .main { padding: 14px 14px 20px; gap: 14px; }

  /* top app bar */
  .appbar { display: flex; align-items: center; gap: 4px; position: fixed; z-index: 70; top: 0; left: 0; right: 0;
    height: calc(var(--bar-h) + var(--safe-t)); padding: var(--safe-t) 6px 0; background: #13284A; color: #fff; transition: box-shadow .2s; }
  .appbar.is-scrolled { box-shadow: 0 4px 14px rgba(15,34,64,.28); }
  .appbar-btn { position: relative; width: 44px; height: 44px; flex: none; border: 0; background: transparent; color: #fff; border-radius: 50%; display: grid; place-items: center; text-decoration: none; cursor: pointer; }
  .appbar-btn:active { background: rgba(255,255,255,.14); }
  .appbar-btn svg { width: 22px; height: 22px; }
  .appbar-btn[hidden] { display: none; }
  .appbar-brand { width: 44px; height: 44px; display: grid; place-items: center; flex: none; }
  .appbar-brand img { width: 34px; height: 34px; border-radius: 10px; background: #fff; object-fit: contain; padding: 2px; }
  .appbar-brand[hidden] { display: none; }
  .appbar-title { flex: 1; min-width: 0; font-size: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 6px;
    opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
  .appbar.show-title .appbar-title { opacity: 1; transform: none; }
  .appbar-badge { position: absolute; top: 6px; right: 5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: #F26A21; color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; border: 2px solid #13284A; }
  .appbar-avatar { width: 34px; height: 34px; margin: 0 6px 0 2px; border-radius: 50%; background: #F26A21; font-weight: 700; font-size: 14px; }
  .app-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; overflow: hidden; opacity: 0; transition: opacity .15s; }
  .app-progress.is-on { opacity: 1; }
  .app-progress::before { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; background: linear-gradient(90deg, transparent, #F26A21, #FFB98E); animation: dkBar 1s ease-in-out infinite; }
  @keyframes dkBar { from { left: -40%; } to { left: 100%; } }

  /* big page title under the bar */
  .page-head { gap: 10px; }
  .page-head h1 { font-size: 23px; }
  .page-head .app-moved { display: none; }
  .page-head > .row, .page-head > div:last-child:not(:first-child) { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; margin: 0 -14px; padding: 2px 14px; }
  .page-head > .row::-webkit-scrollbar { display: none; }
  .page-head .btn { white-space: nowrap; border-radius: 999px; padding: 8px 14px; font-size: 13px; }

  /* bottom navigation */
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 70; left: 0; right: 0; bottom: 0;
    height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: #fff; border-top: 1px solid #E3E7EF; box-shadow: 0 -6px 18px rgba(15,34,64,.06); }
  .tab, .tab-fab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #5D6A82; text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; padding: 0; position: relative; }
  .tab-ico { position: relative; width: 56px; height: 30px; border-radius: 99px; display: grid; place-items: center; transition: background-color .2s; }
  .tab-ico svg { width: 22px; height: 22px; }
  .tab-label { font-size: 11.5px; font-weight: 500; line-height: 1; }
  .tab.is-active { color: #13284A; }
  .tab.is-active .tab-ico { background: #FFE6D6; color: #C9500E; }
  .tab.is-active .tab-label { font-weight: 700; }
  .tab:active .tab-ico { background: #F0F2F6; }
  .tab-badge { position: absolute; top: -3px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #F26A21; color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
  .tab-dot { position: absolute; top: 2px; right: 15px; width: 9px; height: 9px; border-radius: 50%; background: #F26A21; border: 2px solid #fff; }
  .tab-fab .fab-circle { width: 54px; height: 54px; margin-top: -26px; border-radius: 18px; background: linear-gradient(135deg, #F26A21, #C9500E); color: #fff; display: grid; place-items: center;
    box-shadow: 0 8px 18px rgba(201,80,14,.38), 0 0 0 5px #F2F4F8; transition: transform .15s; }
  .tab-fab .fab-circle svg { width: 26px; height: 26px; }
  .tab-fab:active .fab-circle { transform: scale(.92); }
  .tab-fab .tab-label { color: #C9500E; font-weight: 700; }

  /* "More" bottom sheet */
  .sheet { display: block; position: fixed; inset: 0; z-index: 90; }
  .sheet[hidden] { display: none; }
  .sheet-scrim { position: absolute; inset: 0; background: rgba(10,22,42,.45); opacity: 0; transition: opacity .25s; }
  .sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 86vh; overflow-y: auto; background: #fff; border-radius: 24px 24px 0 0;
    padding: 8px 16px calc(18px + var(--safe-b)); transform: translateY(100%); transition: transform .26s cubic-bezier(.2,.8,.2,1); }
  .sheet.is-open .sheet-scrim { opacity: 1; }
  .sheet.is-open .sheet-panel { transform: translateY(0); }
  .sheet-handle { width: 40px; height: 4px; border-radius: 4px; background: #D5DAE3; margin: 4px auto 14px; }
  .sheet-user { display: flex; align-items: center; gap: 12px; padding: 4px 4px 14px; border-bottom: 1px solid #EEF1F6; margin-bottom: 12px; }
  .sheet-user strong { display: block; font-size: 15px; }
  .sheet-user small { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 62vw; }
  .sheet-group { font-size: 12px; font-weight: 600; color: #8A93A6; padding: 10px 4px 4px; }
  .sheet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .sheet-grid:empty { display: none; }
  .sheet-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 2px; border-radius: 16px; text-decoration: none; color: #13284A; font-size: 12px; font-weight: 500; text-align: center; line-height: 1.2; }
  .sheet-tile:active { background: #F2F4F8; }
  .tile-ico { position: relative; width: 50px; height: 50px; border-radius: 16px; background: #F2F5FA; display: grid; place-items: center; color: #13284A; }
  .tile-ico svg { width: 23px; height: 23px; }
  .sheet-tile.is-active .tile-ico { background: #FFE6D6; color: #C9500E; }
  .tile-ico .tab-badge { top: -5px; right: -6px; }
  .sheet-actions { margin-top: 12px; border-top: 1px solid #EEF1F6; padding-top: 6px; }
  .sheet-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 8px; border: 0; background: none; font: inherit; font-size: 15px; color: #13284A; text-decoration: none; border-radius: 12px; cursor: pointer; text-align: left; }
  .sheet-row svg { width: 21px; height: 21px; color: #5D6A82; }
  .sheet-row:active { background: #F2F4F8; }
  .sheet-row.is-danger, .sheet-row.is-danger svg { color: #B42318; }
  .sheet-row[hidden] { display: none; }

  /* snackbar */
  .snackbar-host { display: flex; flex-direction: column; gap: 8px; position: fixed; z-index: 95; left: 12px; right: 12px; bottom: calc(var(--tab-h) + var(--safe-b) + 12px); pointer-events: none; }
  .snackbar { display: flex; align-items: center; gap: 12px; padding: 12px 8px 12px 16px; border-radius: 12px; background: #1F2A3D; color: #fff; font-size: 14px; box-shadow: 0 10px 26px rgba(0,0,0,.25);
    transform: translateY(20px); opacity: 0; transition: transform .25s, opacity .25s; pointer-events: auto; }
  .snackbar.is-in { transform: none; opacity: 1; }
  .snackbar span { flex: 1; }
  .snackbar button { background: none; border: 0; color: #FFB98E; font: 700 14px inherit; font-family: inherit; padding: 8px 10px; border-radius: 8px; }
  .snackbar.is-error { background: #7A1C1C; }
  .snackbar.is-error button { color: #fff; }

  /* pull to refresh */
  .ptr { display: grid; place-items: center; position: fixed; z-index: 65; top: calc(var(--bar-h) + var(--safe-t) - 30px); left: 50%; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #C9500E;
    box-shadow: 0 4px 12px rgba(15,34,64,.2); opacity: 0; transform: translate(-50%, 0); pointer-events: none; }
  .ptr svg { width: 20px; height: 20px; }
  .ptr.is-ready { color: #fff; background: #F26A21; }
  .ptr.is-loading svg { animation: dkSpin .8s linear infinite; }
  @keyframes dkSpin { to { transform: rotate(360deg); } }

  /* screens */
  .app-enter { animation: dkEnter .28s cubic-bezier(.2,.8,.2,1); }
  @keyframes dkEnter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  .card { border-radius: 18px; padding: 16px; }
  .alert { border-radius: 14px; }
  input, select, textarea { font-size: 16px !important; }
  .btn { min-height: 42px; }
  .btn:active, .sheet-tile:active, .dash-kpi:active { transform: scale(.97); }
  .btn, .sheet-tile, .dash-kpi { transition: transform .12s, background-color .15s; }

  /* tabs become swipeable chips */
  .list-head { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 12px 0; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 6px; border-bottom: 0; padding-bottom: 10px; margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { white-space: nowrap; border: 1px solid #E3E7EF; border-radius: 999px; padding: 7px 12px; background: #fff; }
  .tabs a.active { background: #13284A; color: #fff; border-color: #13284A; box-shadow: none; }
  .tabs a.active::after { display: none; }
  .tabs a.active .tab-count { background: rgba(255,255,255,.18); color: #fff; }
  .list-search { width: 100%; flex: none; margin: 0 0 12px; }
  .list-card .table-wrap { padding: 0; }
  .list-card .pager { padding: 8px 12px; }
  .list-table tbody tr:hover { background: transparent; }

  /* tables become cards */
  .list-card { padding: 0; overflow: hidden; }
  .list-table thead { display: none; }
  .list-table, .list-table tbody { display: block; min-width: 0 !important; width: 100%; }
  .list-table tbody tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 13px 16px; border-bottom: 1px solid #EEF1F6; position: relative; }
  .list-table tbody tr:last-child { border-bottom: 0; }
  .list-table td { display: block; padding: 0 !important; border: 0 !important; text-align: left !important; }
  .list-table td:first-child { flex: 1 1 100%; }
  .list-table td small { display: inline; margin-left: 4px; }
  .list-table td small::before { content: "· "; }
  .list-table tr.is-tap { cursor: pointer; padding-right: 34px; }
  .list-table tr.is-tap::after { content: "›"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 22px; color: #B5BDCB; }
  .list-table tr.is-tap:active { background: #F5F7FA; }
  .list-table .list-open { display: none; }
  .main { overflow-x: clip; }

  /* orders list: name + COD on top, order no. + status below */
  .orders-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "cust cod" "ref status" "courier courier"; gap: 3px 10px; }
  .orders-table td:nth-child(1) { grid-area: ref; font-size: 12.5px; white-space: nowrap; }
  .orders-table td:nth-child(2) { grid-area: cust; }
  .orders-table td:nth-child(2) small { display: block; margin: 1px 0 0; }
  .orders-table td:nth-child(2) small::before, .orders-table td:nth-child(1) small::before { content: ""; }
  .orders-table td:nth-child(3) { grid-area: courier; font-size: 12px; color: var(--muted); }
  .orders-table td:nth-child(4) { grid-area: cod; text-align: right !important; font-size: 15px; }
  .orders-table td:nth-child(5) { grid-area: status; justify-self: end; }
  .orders-table td:nth-child(6) { display: none; }
  .orders-table td:nth-child(3) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .orders-table td:nth-child(3) small { display: inline !important; }
  .orders-table.is-admin tbody tr { grid-template-areas: "cust cod" "ref status" "seller courier"; }
  .orders-table.is-admin td:nth-child(2) { grid-area: seller; font-size: 12px; }
  .orders-table.is-admin td:nth-child(2) small::before { content: ""; }
  .orders-table.is-admin td:nth-child(3) { grid-area: cust; font-size: inherit; color: inherit; white-space: normal; overflow: visible; }
  .orders-table.is-admin td:nth-child(3) small { display: block !important; margin: 1px 0 0; }
  .orders-table.is-admin td:nth-child(3) small::before { content: ""; }
  .orders-table.is-admin td:nth-child(4) { grid-area: courier; font-size: 12px; color: var(--muted); justify-self: end; text-align: right !important; white-space: nowrap; max-width: 55vw; overflow: hidden; text-overflow: ellipsis; }
  .orders-table.is-admin td:nth-child(4) small { display: inline !important; }
  .orders-table.is-admin td:nth-child(5) { grid-area: cod; text-align: right !important; font-size: 15px; font-weight: 400; color: inherit; }
  .orders-table.is-admin td:nth-child(6) { grid-area: status; justify-self: end; display: block; }
  .orders-table.is-admin td:nth-child(7) { display: none; }

  /* forms: action bar stuck above the tabs */
  .app-cta { display: flex; align-items: center; gap: 12px; position: fixed; z-index: 60; left: 0; right: 0; bottom: calc(var(--tab-h) + var(--safe-b)); padding: 10px 14px;
    background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid #E3E7EF; }
  .app-cta > div { flex: 1; line-height: 1.2; }
  .app-cta small { display: block; font-size: 11.5px; }
  .app-cta strong { font-size: 17px; }
  .app-cta .btn { flex: none; padding: 0 22px; height: 46px; border-radius: 14px; font-size: 15px; }
  body.has-cta { padding-bottom: calc(var(--tab-h) + var(--safe-b) + 80px); }
  .hide-on-phone { display: none !important; }
  .save-bar { bottom: calc(var(--tab-h) + var(--safe-b) + 8px) !important; }

  /* KPI tiles: two per row like app widgets */
  .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
  .dash-kpi { padding: 12px 14px; border-radius: 16px; min-width: 0; }
  .dash-kpi strong { font-size: 22px; }
  .dash-kpi .label, .dash-kpi .sub { font-size: 12px; }
  .dash-kpis > form.dash-kpi { grid-column: 1 / -1; }

  /* dashboard touches */
  .dash-wallet { border-radius: 22px; min-height: 0; }
  .dash-wallet-amount { font-size: 34px; }
}

/* installed app: no browser bounce, text not selectable on chrome */
@media (display-mode: standalone) {
  body { overscroll-behavior-y: contain; }
  .appbar, .tabbar, .sheet-panel { user-select: none; -webkit-user-select: none; }
}

/* ============================================================
   v4.4 · native feel: transitions, dialogs, pickers, ripple, skeletons
   ============================================================ */
/* Page transitions between screens (Chrome 126+). App bar + tab bar stay still. */
@media (max-width: 860px) and (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .appbar { view-transition-name: appbar; }
  .tabbar { view-transition-name: tabbar; }
  .app-cta { view-transition-name: appcta; }
  ::view-transition-group(appbar), ::view-transition-group(tabbar) { animation: none; }
  ::view-transition-old(appbar), ::view-transition-new(appbar), ::view-transition-old(tabbar), ::view-transition-new(tabbar) { animation: none; mix-blend-mode: normal; }
  ::view-transition-old(root) { animation: dkOutLeft .26s cubic-bezier(.4,0,.2,1) both; }
  ::view-transition-new(root) { animation: dkInRight .3s cubic-bezier(.2,.8,.2,1) both; }
  html:active-view-transition-type(back)::view-transition-old(root) { animation-name: dkOutRight; }
  html:active-view-transition-type(back)::view-transition-new(root) { animation-name: dkInLeft; }
}
@keyframes dkOutLeft { to { opacity: 0; transform: translateX(-18%); } }
@keyframes dkInRight { from { opacity: 0; transform: translateX(28%); } }
@keyframes dkOutRight { to { opacity: 0; transform: translateX(18%); } }
@keyframes dkInLeft { from { opacity: 0; transform: translateX(-28%); } }

/* Ripple */
.has-ripple { overflow: hidden; }
.dk-ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .16; transform: scale(0); pointer-events: none; animation: dkRipple .55s cubic-bezier(.2,.8,.2,1) forwards; }
.btn-primary .dk-ripple, .btn-navy .dk-ripple, .btn-green .dk-ripple, .btn-wa .dk-ripple, .fab-circle .dk-ripple { background: #fff; opacity: .3; }
@keyframes dkRipple { to { transform: scale(1); opacity: 0; } }
.list-table tr.has-ripple { overflow: hidden; }

/* Dialog (replaces the browser confirm box) */
.dk-dialog, .dk-pick { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; }
.dk-dialog-scrim { position: absolute; inset: 0; background: rgba(10,22,42,.5); opacity: 0; transition: opacity .2s; }
.dk-dialog.is-open .dk-dialog-scrim, .dk-pick.is-open .dk-dialog-scrim { opacity: 1; }
.dk-dialog-box { position: relative; width: min(400px, 100%); background: #fff; border-radius: 26px; padding: 24px 22px 18px; box-shadow: 0 24px 60px rgba(10,22,42,.3);
  transform: scale(.92); opacity: 0; transition: transform .2s cubic-bezier(.2,.8,.2,1), opacity .2s; text-align: center; }
.dk-dialog.is-open .dk-dialog-box { transform: none; opacity: 1; }
.dk-dialog-icon { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: #FFF1E8; color: #C9500E; }
.dk-dialog-icon.is-danger { background: #FDECEC; color: #B42318; }
.dk-dialog-icon svg { width: 26px; height: 26px; }
.dk-dialog-msg { margin: 0 0 20px; font-size: 16px; line-height: 1.5; color: #13284A; font-weight: 500; }
.dk-dialog-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dk-dialog-btns .btn { justify-content: center; min-height: 46px; border-radius: 14px; font-size: 15px; }
.btn-danger-solid { background: #B42318; color: #fff; border-color: #B42318; }
.btn-danger-solid:hover { background: #912018; color: #fff; }
.dk-dialog.is-sheet { place-items: end stretch; padding: 0; }
.dk-dialog.is-sheet .dk-dialog-box { width: 100%; border-radius: 26px 26px 0 0; padding: 26px 18px calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateY(100%); opacity: 1; }
.dk-dialog.is-sheet.is-open .dk-dialog-box { transform: none; }

/* Select picker sheet */
.dk-pick { place-items: end stretch; padding: 0; }
.dk-pick-panel { position: relative; background: #fff; border-radius: 26px 26px 0 0; max-height: 72vh; display: flex; flex-direction: column; padding: 8px 0 env(safe-area-inset-bottom, 0px);
  transform: translateY(100%); transition: transform .24s cubic-bezier(.2,.8,.2,1); }
.dk-pick.is-open .dk-pick-panel { transform: none; }
.dk-pick-title { padding: 2px 22px 10px; font-weight: 600; font-size: 16px; border-bottom: 1px solid #EEF1F6; }
.dk-pick-list { overflow-y: auto; padding: 6px 10px 12px; }
.dk-pick-opt { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 15px 14px; border: 0; background: none; border-radius: 14px; font: inherit; font-size: 15.5px; color: #13284A; text-align: left; cursor: pointer; }
.dk-pick-opt i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #C5CCD8; flex: none; transition: all .15s; }
.dk-pick-opt.is-on { background: #FFF4EC; font-weight: 600; }
.dk-pick-opt.is-on i { border: 7px solid #F26A21; }
.dk-pick-opt:disabled { color: #A8B0BE; }

/* Skeleton while the next screen loads */
.dk-skel { position: fixed; z-index: 50; left: 0; right: 0; top: calc(56px + env(safe-area-inset-top, 0px)); bottom: calc(64px + env(safe-area-inset-bottom, 0px)); background: #F2F4F8; padding: 18px 14px; display: flex; flex-direction: column; gap: 12px; animation: dkFadeIn .15s ease-out; overflow: hidden; }
.dk-skel i, .dk-skel .sk-card { display: block; border-radius: 10px; background: linear-gradient(90deg, #E6EAF0 0%, #F3F5F9 40%, #E6EAF0 80%); background-size: 300% 100%; animation: dkShimmer 1.1s linear infinite; }
.dk-skel .sk-h { height: 26px; width: 55%; }
.dk-skel .sk-s { height: 14px; width: 35%; margin-bottom: 6px; }
.dk-skel .sk-card { background: #fff; animation: none; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.dk-skel .sk-card i { height: 14px; }
.dk-skel .sk-card i:first-child { width: 60%; height: 16px; }
.dk-skel .sk-card .sk-short { width: 40%; }
@keyframes dkShimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes dkFadeIn { from { opacity: 0; } }

@media (max-width: 860px) {
  /* hide the "this is a web page" tells */
  html { touch-action: manipulation; }
  a, button, img, .btn, .tab, .tab-fab, .sheet-tile, .appbar, .tabbar, .tabs, label, summary, .badge, .dash-kpi .label, h1, h2, h3 { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
  img { -webkit-user-drag: none; }
  select { cursor: pointer; }
  /* active tab pill grows like Material 3 */
  .tab.is-active .tab-ico { animation: dkPill .3s cubic-bezier(.2,.8,.2,1); }
  @keyframes dkPill { from { transform: scaleX(.5); opacity: .4; } }
  .snackbar { border-radius: 14px; }
}

/* ============================================================
   v4.5 · app powers: swipe rows, endless lists, search screen
   ============================================================ */
.input-btn { position: relative; display: block; }
.input-btn input { width: 100%; padding-right: 50px; }
.input-btn-act { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 10px; background: #FFF1E8; color: #C9500E; display: grid; place-items: center; cursor: pointer; }
.input-btn-act svg { width: 20px; height: 20px; }
.input-btn-act[hidden] { display: none; }
.btn svg.ico { width: 17px; height: 17px; vertical-align: -3px; }

@media (max-width: 860px) {
  /* swipe on cards */
  tr[data-swipe] { overflow: hidden; touch-action: pan-y; }
  tr[data-swipe] > td { position: relative; z-index: 1; }
  tr.is-swiping > td { transform: translateX(var(--sw, 0px)); }
  tr.sw-anim > td { transition: transform .2s cubic-bezier(.2,.8,.2,1); }
  tr.is-swiping::after { opacity: 0; }
  .sw-under { position: absolute; top: 0; bottom: 0; z-index: 0; display: flex; overflow: hidden; }
  tr.sw-right .sw-under { left: 0; width: var(--sw, 0px); }
  tr.sw-left .sw-under { right: 0; width: calc(var(--sw, 0px) * -1); }
  tr.sw-anim .sw-under { transition: width .2s cubic-bezier(.2,.8,.2,1); }
  .sw-act { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; min-width: 0; }
  .sw-confirm { flex: 1; justify-content: flex-start; padding-left: 20px; background: #0F7A55; }
  tr.sw-armed .sw-confirm { background: #0A5E41; }
  .sw-call { flex: 1; background: #13284A; }
  .sw-wa { flex: 1; background: #1FAF55; }
  .act-confirm span { color: #0F7A55; font-weight: 700; }
  .act-cancel span { color: #B42318; }

  /* endless lists */
  .list-card.is-endless .pager { display: none; }
  .endless { padding: 18px; text-align: center; }
  .endless-end { font-size: 12.5px; color: #8A93A6; }
  .endless-spin { display: inline-block; width: 24px; height: 24px; border-radius: 50%; border: 3px solid #FFE3CF; border-top-color: #F26A21; animation: dkSpin .8s linear infinite; }
  .endless-in { animation: dkFadeIn .3s ease-out; }

  /* full-screen search */
  .dk-search { position: fixed; inset: 0; z-index: 110; background: #F2F4F8; display: flex; flex-direction: column; opacity: 0; transform: translateY(12px); transition: opacity .18s, transform .18s; }
  .dk-search.is-open { opacity: 1; transform: none; }
  .dk-search-bar { display: flex; align-items: center; gap: 4px; padding: calc(6px + env(safe-area-inset-top, 0px)) 6px 6px; height: calc(56px + env(safe-area-inset-top, 0px)); background: #13284A; }
  .dk-search-bar input { flex: 1; min-width: 0; height: 42px; border-radius: 12px; border: 0; padding: 0 14px; background: #fff; color: #13284A; }
  .dk-search-bar .appbar-btn { font-size: 24px; }
  .dk-search-bar input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
  .dk-search-body { flex: 1; overflow-y: auto; padding: 10px 6px; }
  .dk-search-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px; font-size: 12.5px; font-weight: 600; color: #8A93A6; }
  .dk-search-head button { background: none; border: 0; color: #C9500E; font: 600 13px inherit; font-family: inherit; }
  .dk-search-item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 12px; border: 0; background: none; border-radius: 12px; font: inherit; font-size: 15px; color: #13284A; text-align: left; }
  .dk-search-item svg { width: 19px; height: 19px; color: #8A93A6; }
  .dk-search-item:active { background: #E8EBF1; }
  .dk-search-empty { margin: 30px 20px; text-align: center; color: #8A93A6; }
  .list-search input[readonly] { cursor: text; }

  /* sellers list as cards */
  .sellers-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name status" "contact rate" "pkg orders"; gap: 4px 10px; }
  .sellers-table td:nth-child(1) { grid-area: name; }
  .sellers-table td:nth-child(1) small::before { content: ""; }
  .sellers-table td:nth-child(1) small { display: block; margin: 0; }
  .sellers-table td:nth-child(2) { grid-area: contact; font-size: 13px; }
  .sellers-table td:nth-child(2) small { display: none; }
  .sellers-table td:nth-child(3) { grid-area: pkg; font-size: 12.5px; color: var(--muted); }
  .sellers-table td:nth-child(4) { grid-area: orders; justify-self: end; font-size: 12.5px; color: var(--muted); }
  .sellers-table td:nth-child(4)::after { content: " orders"; }
  .sellers-table td:nth-child(5) { grid-area: rate; justify-self: end; }
  .sellers-table td:nth-child(6) { grid-area: status; justify-self: end; }
  .sellers-table td:nth-child(7) { display: none; }
}

/* ============================================================
   v4.6 · Book order wizard (phone)
   ============================================================ */
@media (max-width: 860px) {
  .is-wizard .wz-hidden { display: none !important; }
  .wz-head { position: sticky; top: calc(56px + env(safe-area-inset-top, 0px)); z-index: 30; margin: -14px -14px 4px; padding: 12px 16px 10px; background: rgba(242,244,248,.94); backdrop-filter: blur(8px); }
  .wz-bar { height: 4px; border-radius: 4px; background: #E3E7EF; overflow: hidden; margin-bottom: 10px; }
  .wz-bar span { display: block; height: 100%; width: 25%; border-radius: 4px; background: linear-gradient(90deg, #F26A21, #C9500E); transition: width .35s cubic-bezier(.2,.8,.2,1); }
  .wz-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
  .wz-steps li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; color: #8A93A6; cursor: pointer; }
  .wz-steps b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #E3E7EF; color: #5D6A82; font-size: 12.5px; transition: all .25s; }
  .wz-steps li.is-on { color: #13284A; font-weight: 700; }
  .wz-steps li.is-on b { background: #F26A21; color: #fff; box-shadow: 0 0 0 4px #FFE3CF; }
  .wz-steps li.is-done b { background: #0F7A55; color: #fff; font-size: 0; }
  .wz-steps li.is-done b::after { content: "✓"; font-size: 13px; }
  .is-wizard .page-head { display: none; }
  .is-wizard #order-form > .row { flex-direction: column; gap: 14px !important; }
  .is-wizard #order-form > .row > * { width: 100%; flex: none !important; }
  .wz-in { animation: wzIn .3s cubic-bezier(.2,.8,.2,1); }
  .wz-in-back { animation: wzInBack .3s cubic-bezier(.2,.8,.2,1); }
  @keyframes wzIn { from { opacity: 0; transform: translateX(40px); } }
  @keyframes wzInBack { from { opacity: 0; transform: translateX(-40px); } }
  .wz-shake { animation: wzShake .4s; border-color: #D64545 !important; }
  @keyframes wzShake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
  .wz-review { display: flex; flex-direction: column; border: 1px solid #EEF1F6; border-radius: 14px; overflow: hidden; margin: 4px 0 6px; }
  .wz-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px 14px; border: 0; border-bottom: 1px solid #EEF1F6; background: #fff; text-align: left; font: inherit; color: #13284A; cursor: pointer; }
  .wz-row:last-child { border-bottom: 0; }
  .wz-row span { font-size: 12.5px; color: #8A93A6; padding-top: 1px; }
  .wz-row strong { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
  .wz-row i { font-style: normal; font-size: 12.5px; font-weight: 600; color: #C9500E; }
  .app-cta .btn.is-next { min-width: 130px; }
  .app-cta .btn.is-next::after { content: " →"; }
}

/* v4.7 · fingerprint login */
.pk-hero { display: flex; gap: 14px; align-items: flex-start; }
.pk-icon { width: 56px; height: 56px; flex: none; border-radius: 18px; background: #13284A; color: #FFB98E; display: grid; place-items: center; }
.pk-icon svg { width: 30px; height: 30px; }
.pk-offer { padding: 8px 22px calc(22px + env(safe-area-inset-bottom, 0px)); text-align: center; align-items: center; gap: 10px; }
.pk-offer .pk-icon { width: 72px; height: 72px; border-radius: 24px; margin: 6px auto 4px; animation: pkPulse 1.6s ease-in-out infinite; }
.pk-offer .pk-icon svg { width: 40px; height: 40px; }
.pk-offer h2 { margin: 4px 0 0; font-size: 19px; }
.pk-offer p { margin: 0 0 6px; color: var(--muted); line-height: 1.5; }
.pk-offer .btn { width: 100%; justify-content: center; min-height: 48px; border-radius: 14px; font-size: 15px; }
@keyframes pkPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(242,106,33,.35); } 50% { box-shadow: 0 0 0 12px rgba(242,106,33,0); } }

/* v5.0 · login & security */
.sec-score { display: flex; align-items: center; gap: 16px; }
.sec-score small { display: block; color: var(--muted); }
.sec-meter { width: 120px; height: 10px; border-radius: 10px; background: #EEF1F6; overflow: hidden; flex: none; }
.sec-meter span { display: block; height: 100%; border-radius: 10px; }
.sec-meter.is-good span { background: #0F7A55; } .sec-meter.is-ok span { background: #C98A0E; } .sec-meter.is-weak span { background: #D64545; }
.sec-choose { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.sec-option button { position: relative; display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: left; padding: 16px; border: 2px solid #E2E6EE; border-radius: 16px; background: #fff; cursor: pointer; font: inherit; color: #13284A; transition: border-color .15s; }
.sec-option button:hover { border-color: #F26A21; }
.sec-option b { font-size: 15px; }
.sec-option span { font-size: 13px; color: var(--muted); }
.sec-option i { position: absolute; top: 14px; right: 14px; font-style: normal; }
.sec-setup { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; background: #F7F8FB; }
.sec-qr { align-self: flex-start; background: #fff; padding: 10px; border-radius: 14px; border: 1px solid #E2E6EE; line-height: 0; }
.sec-qr svg { width: 180px; height: 180px; }
.sec-key { display: inline-block; margin-top: 4px; padding: 3px 8px; border-radius: 8px; background: #fff; border: 1px dashed #C9D0DC; cursor: pointer; word-break: break-all; }
.sec-code { width: 160px; font-size: 22px !important; letter-spacing: .3em; text-align: center; font-weight: 700; }
.sec-codes { padding: 16px; border-radius: 16px; background: #FFF7F1; border: 1px solid #F6CFB4; }
.sec-codes ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; margin: 0 0 12px; padding-left: 22px; font-size: 15px; }
.sec-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.sec-row small, .sec-event small { display: block; color: var(--muted); font-size: 12.5px; }
.sec-event { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 8px 0; border-top: 1px solid #F0F2F6; }
.sec-event time { font-size: 12px; color: var(--muted); }
.sec-dot { width: 8px; height: 8px; border-radius: 50%; background: #0F7A55; margin-top: 7px; }
.sec-event.is-fail .sec-dot { background: #D64545; }
.sec-event.is-fail strong { color: #B42318; }
@media print { body * { visibility: hidden; } .sec-codes, .sec-codes * { visibility: visible; } .sec-codes { position: absolute; top: 0; left: 0; } }
.audit-filter { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.audit-data summary { font-size: 12px; color: var(--muted); cursor: pointer; margin-top: 4px; }
.audit-data dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 6px 0 0; font-size: 12.5px; }
.audit-data dt { color: var(--muted); text-transform: capitalize; }
.audit-data dd { margin: 0; word-break: break-word; }

/* v5.2 · WhatsApp */
.wa-setup { margin-top: 6px; padding: 16px; border-radius: 16px; background: #F3FAF6; border: 1px solid #CFEBDD; }
.wa-guide ul, .wa-steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 14px; line-height: 1.55; }
.wa-copy { cursor: pointer; padding: 1px 6px; border-radius: 6px; background: #F1F3F8; border: 1px dashed #C9D0DC; word-break: break-all; }
.wa-tpl { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 18px; align-items: start; }
.wa-bubble { background: #E7F8DD; border-radius: 4px 14px 14px 14px; padding: 10px 12px 6px; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.wa-bubble pre { margin: 0; white-space: pre-wrap; font-family: inherit; font-size: 14px; color: #111B21; }
.wa-bubble small { display: block; color: #667781; font-size: 12px; margin-top: 4px; }
.wa-btn { margin: 6px -12px 0; padding: 8px; border-top: 1px solid #CFE3C4; text-align: center; color: #027EB5; font-weight: 600; font-size: 14px; }
@media (max-width: 720px) { .wa-tpl { grid-template-columns: 1fr; } }
.wa-chat { display: flex; flex-direction: column; gap: 8px; }
.wa-msg { max-width: 82%; padding: 8px 10px 4px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; }
.wa-msg.out { align-self: flex-end; background: #E7F8DD; border-top-right-radius: 4px; color: #111B21; }
.wa-msg.in { align-self: flex-start; background: #F1F3F8; border-top-left-radius: 4px; color: #111B21; }
.wa-msg .wa-meta { display: flex; justify-content: flex-end; gap: 6px; align-items: center; font-size: 11px; color: #667781; margin-top: 2px; }
.wa-msg .wa-kind { font-size: 11px; font-weight: 700; color: #0F7A55; text-transform: uppercase; letter-spacing: .03em; }
.wa-msg.in .wa-kind { color: #5A6478; }
.wa-msg p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.wa-ticks { font-weight: 700; letter-spacing: -2px; color: #8696A0; }
.wa-ticks.is-read { color: #34B7F1; }
.wa-ticks.is-failed { color: #D64545; letter-spacing: 0; }

/* v4.9 · team */
.team-invite { margin-bottom: 16px; }
.team-invite-head { display: flex; gap: 14px; align-items: center; cursor: pointer; list-style: none; }
.team-invite-head::-webkit-details-marker { display: none; }
.team-invite-head small { display: block; color: var(--muted); font-size: 13px; }
.team-invite-head .pk-icon { width: 44px; height: 44px; border-radius: 14px; }
.team-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.team-role { position: relative; display: block; cursor: pointer; }
.team-role input { position: absolute; opacity: 0; }
.team-role span { display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 12px 14px; border: 2px solid #E2E6EE; border-radius: 14px; background: #fff; transition: border-color .15s, background .15s; }
.team-role small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.team-role input:checked + span { border-color: #F26A21; background: #FFF7F1; }
.team-role input:focus-visible + span { outline: 3px solid #F26A21; outline-offset: 2px; }
.team-perms { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 16px; margin-top: 10px; }
.team-perms .check { align-items: flex-start; }
.team-perms small { display: block; color: var(--muted); font-size: 12px; }
.team-member { margin-bottom: 12px; display: flex; flex-direction: column; gap: 12px; }
.team-member.is-off { opacity: .72; }
.team-top { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.team-who { flex: 1 1 220px; min-width: 0; }
.team-who small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; word-break: break-word; }
.team-stats { display: flex; gap: 18px; }
.team-stats div { text-align: center; }
.team-stats b { display: block; font-size: 18px; color: var(--navy); }
.team-stats small { color: var(--muted); font-size: 11.5px; }
.team-actions { gap: 10px; align-items: flex-start; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; }
.team-actions > details { flex: 1 1 260px; }
.team-remove { color: #B42318; }
.team-help ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.team-roles-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 16px; }
.team-roles-info .card { padding: 14px; }
.team-roles-info small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.team-denied { max-width: 520px; margin: 40px auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.team-denied h1 { margin: 6px 0 0; font-size: 22px; }
.team-denied p { margin: 0 0 8px; }
.by-who { color: var(--muted); font-size: 12px; }

/* v5.3 · profit */
.profit-tabs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 14px; }
.profit-dates { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.profit-dates input { padding: 7px 8px !important; font-size: 13px !important; width: auto; }
.profit-dates[data-active] input { border-color: #F26A21; }
.profit-setup { margin-bottom: 14px; }
.profit-main strong { color: #0F7A55; }
.profit-main.is-loss strong { color: #B42318; }
.profit-expected { display: block; line-height: 1.5; margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; background: #EEF3FB; color: #13284A; font-size: 14px; }
.profit-expected svg { width: 18px; height: 18px; vertical-align: -4px; margin-right: 4px; }
.profit-grid { margin-bottom: 16px; }
.profit-chart svg { width: 100%; height: auto; display: block; }
.profit-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.profit-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.profit-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.profit-flow { display: flex; flex-direction: column; gap: 2px; }
.pf-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.pf-row b { font-variant-numeric: tabular-nums; }
.pf-row:first-child { border-top: 0; }
.pf-in b { color: #0F7A55; }
.pf-bar { grid-column: 1 / -1; display: block; height: 6px; border-radius: 6px; background: #EEF1F6; overflow: hidden; }
.pf-bar i { display: block; height: 100%; border-radius: 6px; }
.pf-total { border-top: 2px solid var(--navy); font-size: 16px; }
.pf-total b { color: #0F7A55; }
.pf-total.is-loss b { color: #B42318; }
.profit-table { margin-bottom: 16px; }
.profit-table .list-head { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.profit-good { color: #0F7A55; }
.profit-bad { color: #B42318; }
.profit-box { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 14px; }
.profit-box dt { color: var(--muted); }
.profit-box dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.profit-box .pb-total { font-weight: 700; border-top: 1px solid var(--line); padding-top: 6px; }
.dash-kpi-link { text-decoration: none; color: inherit; transition: border-color .15s; } .dash-kpi-link:hover { border-color: #F26A21; }
.profit-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 16px; }

/* v6.0 · Dakiya Express rider app */
.rd-hello h1 { margin: 0; font-size: 22px; }
.rd-hello p { margin: 2px 0 14px; }
.rd-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.rd-stat { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); color: inherit; text-decoration: none; }
.rd-stat span { font-size: 12.5px; color: var(--muted); }
.rd-stat b { font-size: 22px; color: var(--text); }
.rd-stat small { font-size: 12px; color: var(--muted); }
.rd-stat.is-hot { border-color: #F26A21; background: #FFF7F1; }
.rd-h { font-size: 15px; margin: 18px 0 8px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.rd-job { display: block; margin-bottom: 10px; color: inherit; text-decoration: none; }
.rd-job p { margin: 4px 0 6px; font-size: 14px; color: #3D4659; }
.rd-job-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.rd-job-top strong { font-size: 16px; }
.rd-cod { font-size: 18px; color: #0F7A55; white-space: nowrap; }
.rd-job-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--muted); }
.rd-pick { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.rd-pick-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.rd-pick-head small { display: block; color: var(--muted); font-size: 13px; }
.rd-pick-list { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.rd-big { width: 100%; justify-content: center; padding: 14px; font-size: 16px; }
.rd-back { display: inline-block; margin-bottom: 10px; }
.rd-detail h1 { margin: 10px 0 4px; font-size: 22px; }
.rd-addr { margin: 0 0 12px; font-size: 15px; line-height: 1.5; }
.rd-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.rd-actions .btn { justify-content: center; }
.rd-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 14px 0 0; font-size: 14px; }
.rd-dl dt { color: var(--muted); }
.rd-dl dd { margin: 0; }
.rd-pod, .rd-fail { margin-top: 14px; }
.rd-otp { font-size: 28px !important; letter-spacing: .5em; text-align: center; font-weight: 700; }
.rd-fail summary { cursor: pointer; font-weight: 700; color: #B42318; }
.rd-reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rd-reasons .team-role span { padding: 10px 12px; }
.dx-scan { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; padding: 12px 16px; }
.dx-scan svg { width: 22px; height: 22px; color: var(--muted); flex: none; }
.dx-scan input { flex: 1; font-size: 16px !important; }
.dx-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #F7F8FB; }
.dx-bar select { padding: 7px 10px; font-size: 13.5px; }
.dx-switch { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; border-left: 4px solid #8A97AD; }
.dx-switch.is-on { border-left-color: #0F7A55; }
.dx-switch small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.dx-branch { margin-bottom: 12px; }
.dx-branch summary { display: flex; gap: 14px; align-items: center; cursor: pointer; list-style: none; }
.dx-branch summary::-webkit-details-marker { display: none; }
.dx-branch .pk-icon { width: 44px; height: 44px; border-radius: 14px; }
.dx-branch-who small { display: block; color: var(--muted); font-size: 13px; }
.dx-otp { margin-top: 12px; padding: 16px; border-radius: 16px; background: #13284A; color: #fff; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.dx-otp span { font-size: 14px; opacity: .85; }
.dx-otp b { font-size: 40px; letter-spacing: .3em; color: #FFB98E; font-variant-numeric: tabular-nums; }
.dx-otp small { font-size: 12px; color: #C9D3E6 !important; }
.dx-bar select { width: auto; min-width: 200px; }
.rd-job strong { color: var(--navy); }
.lh-sec { margin-bottom: 16px; }
.lh-group { display: flex; flex-direction: column; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.lh-group:first-of-type { border-top: 0; padding-top: 0; }
.lh-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 14px; font-size: 13.5px; }
.lh-bag { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.lh-bag summary { cursor: pointer; font-size: 14px; }
.lh-miss { display: none; color: #B42318; font-weight: 700; font-size: 12px; }
.lh-list input:checked ~ .lh-miss { display: inline; }
.lh-bagrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); }
.lh-bagrow:first-of-type { border-top: 0; }
.lh-alert { border-left: 4px solid #D64545; }
.bc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.bc-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bc-nums div { padding: 12px; border-radius: 12px; background: #F7F8FB; }
.bc-nums span { display: block; font-size: 12.5px; color: var(--muted); }
.bc-nums b { font-size: 20px; color: var(--navy); }
/* v6.2 · rider proof */
.rd-duty { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; border-left: 4px solid #F26A21; }
.rd-duty.is-on { flex-direction: row; justify-content: space-between; align-items: center; border-left-color: #0F7A55; }
.rd-duty small { display: block; color: var(--muted); font-size: 12.5px; }
.rd-live { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom) + 76px); z-index: 60; padding: 5px 12px; border-radius: 20px; background: #0F7A55; color: #fff; font-size: 12px; font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.rd-live.is-off { background: #D64545; }
.rd-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #fff; margin-right: 4px; animation: rdPulse 1.6s infinite; }
@keyframes rdPulse { 50% { opacity: .3; } }
@media (min-width: 900px) { .rd-live { bottom: 20px; } }
.rd-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.rd-proof div { padding: 10px; border-radius: 12px; background: #F7F8FB; text-align: center; font-size: 12px; color: var(--muted); }
.rd-proof b { display: block; font-size: 16px; color: var(--navy); }
.rd-proof .ok b { color: #0F7A55; } .rd-proof .bad b { color: #B42318; }
.dx-check { margin-bottom: 14px; border-left: 4px solid #D64545; display: flex; flex-direction: column; gap: 6px; }
.dx-check p { margin: 0; }
.dx-slot { margin-bottom: 14px; display: flex; flex-direction: column; gap: 8px; }
.dx-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dx-slots label { position: relative; cursor: pointer; }
.dx-slots input { position: absolute; opacity: 0; }
.dx-slots span { display: block; padding: 10px 6px; text-align: center; border: 2px solid #E2E6EE; border-radius: 12px; font-size: 13.5px; font-weight: 600; }
.dx-slots input:checked + span { border-color: #F26A21; background: #FFF7F1; color: #C9500E; }
.dx-live { margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.12); font-size: 14px; font-weight: 600; }
.att { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); border-left: 4px solid #2B5797; }
.att.is-ok { border-left-color: #0F7A55; }
.att.is-fail { border-left-color: #D64545; }
.att-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.att p { margin: 6px 0 0; font-size: 14px; }
.att-proof { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13.5px; }
.att-flags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.lv-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; margin-bottom: 10px; }
.lv-map { height: 70vh; min-height: 420px; padding: 0; overflow: hidden; z-index: 1; }
.lv-list { max-height: 70vh; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.lv-rider { display: flex; gap: 10px; align-items: flex-start; }
.lv-rider small { display: block; color: var(--muted); font-size: 12px; }
.lv-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; flex: none; }
@media (max-width: 900px) { .lv-wrap { grid-template-columns: 1fr; } .lv-map { height: 55vh; } }
.rv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; margin-bottom: 12px; border-left: 4px solid #C98A0E; }
.rv.is-hot { border-left-color: #D64545; }
.rv-main { display: flex; flex-direction: column; gap: 6px; }
.rv-side { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.rv-photo { width: 130px; height: 100px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
@media (max-width: 700px) { .rv { grid-template-columns: 1fr; } .rv-side { align-items: flex-start; } }
.sc { display: inline-block; min-width: 38px; padding: 3px 8px; border-radius: 8px; text-align: center; }
.sc.is-good { background: #E9F7F1; color: #0F7A55; } .sc.is-ok { background: #FFF6E5; color: #9A6700; } .sc.is-bad { background: #FDECEC; color: #B42318; }

/* ---------------------------------------------------------------- v7.8: feels like an installed app */
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img { -webkit-user-drag: none; }
a:focus:not(:focus-visible), button:focus:not(:focus-visible), summary:focus:not(:focus-visible) { outline: none; }
.dk-text-l .main { zoom: 1.1; }
.dk-text-xl .main { zoom: 1.2; }
@media (max-width: 860px) {
  html { scrollbar-width: none; }
  ::-webkit-scrollbar { width: 0; height: 0; }
  a, img { -webkit-touch-callout: none; }
}

/* swipe from the edge = back */
.dk-edge { position: fixed; top: 50%; left: 0; z-index: 90; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; opacity: 0; pointer-events: none; box-shadow: 0 6px 18px rgba(15,34,64,.28);
  transform: translateX(calc(-48px + var(--p, 0) * 60px)) scale(calc(.6 + var(--p, 0) * .4)); transition: opacity .15s, background-color .15s; }
.dk-edge.is-rtl { left: auto; right: 0; transform: translateX(calc(48px - var(--p, 0) * 60px)) scale(calc(.6 + var(--p, 0) * .4)); }
.dk-edge.is-rtl svg { transform: rotate(180deg); }
.dk-edge.is-on { opacity: 1; }
.dk-edge.is-ready { background: var(--orange); }
.dk-edge svg { width: 22px; height: 22px; }

/* fingerprint lock */
.is-locked body { overflow: hidden; }
.dk-lock { position: fixed; inset: 0; z-index: 10000; background: #13284A; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: calc(24px + env(safe-area-inset-top, 0px)) 24px 24px; text-align: center; transition: opacity .25s; }
.dk-lock.is-out { opacity: 0; }
.dk-lock-icon { width: 84px; height: 84px; border-radius: 20px; margin-bottom: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.dk-lock strong { font-size: 20px; }
.dk-lock small { color: #C7D2E4; font-size: 14px; }
.dk-lock .btn { margin-top: 16px; min-width: 210px; min-height: 48px; gap: 8px; }
.dk-lock .btn svg { width: 20px; height: 20px; }
.dk-lock-msg { min-height: 20px; margin: 0; color: #FFB4A0; font-size: 13px; }
.dk-lock-out { margin-top: 14px; background: none; border: 0; color: #C7D2E4; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }

/* install card */
.install-card { display: flex; gap: 12px; align-items: center; background: var(--orange-tint); border: 1px solid var(--orange-line); border-radius: 16px; padding: 12px; margin-bottom: 14px; }
.install-card img { border-radius: 12px; flex: none; }
.ic-text { flex: 1; min-width: 0; }
.ic-text strong { display: block; font-size: 14.5px; color: var(--text); }
.ic-text small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.ic-actions { display: flex; align-items: center; gap: 2px; flex: none; }
.ic-later { width: 32px; height: 32px; background: none; border: 0; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.install-card .ic-ios { display: none; }
.install-card.is-ios small.ic-ios { display: block; }
.install-card.is-ios a.ic-ios { display: inline-flex; }
.install-card.is-ios .ic-android { display: none; }
.ic-share svg { width: 16px; height: 16px; vertical-align: -3px; color: #0A84FF; }
.is-app [data-hide-in-app] { display: none; }

/* text size switch in the More sheet */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { min-width: 40px; height: 34px; background: none; border: 0; color: var(--text); font: 600 14px Poppins, system-ui, sans-serif; cursor: pointer; }
.seg button + button { border-inline-start: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.sheet-set { font-weight: 500; }
.sheet-row[hidden], .install-card[hidden] { display: none !important; }

/* ---------------------------------------------------------------- v7.9: Android (Material 3) look on phones */
@media (max-width: 860px) {
  /* buttons: pill shaped, bigger touch area, tonal secondary buttons */
  .main .btn { border-radius: 999px; min-height: 44px; padding: 10px 20px; font-size: 14.5px; justify-content: center; }
  .main .btn-sm { min-height: 38px; padding: 7px 14px; font-size: 13.5px; }
  .main .btn-light { background: #EAEFF7; border-color: transparent; color: var(--navy); }
  .main .btn-light:hover { border-color: transparent; }
  .main .btn-danger { background: #FCEBEA; border-color: transparent; }
  .main .btn-primary { box-shadow: 0 3px 10px rgba(201,80,14,.25); }
  .btn:hover { filter: none; }

  /* fields: filled, rounded, no hard box lines */
  .main input[type=text], .main input[type=email], .main input[type=password], .main input[type=number], .main input[type=tel], .main input[type=url],
  .main input[type=date], .main input[type=time], .main input[type=datetime-local], .main input[type=search], .main select, .main textarea {
    min-height: 50px; border-radius: 14px; border: 1.5px solid transparent; background-color: #F1F4F9; padding: 12px 14px; box-shadow: none; }
  .main textarea { min-height: 96px; }
  .main input:focus, .main select:focus, .main textarea:focus { outline: none; border-color: var(--orange); background-color: #fff; box-shadow: 0 0 0 4px rgba(242,106,33,.13); }
  .main select { appearance: none; -webkit-appearance: none; padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313284A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
  .main input[type=file] { min-height: 0; padding: 10px; }
  label.field { font-size: 13px; font-weight: 600; color: #3D4659; gap: 6px; }
  .main input[type=checkbox], .main input[type=radio] { width: 20px; height: 20px; accent-color: var(--navy); }

  /* cards and sections: softer, rounder, no hard borders */
  .main .card { border-radius: 22px; border-color: transparent; box-shadow: 0 1px 2px rgba(15,34,64,.06), 0 2px 10px rgba(15,34,64,.05); }
  .main .alert { border-radius: 16px; border: 0; }
  .main .badge { border-radius: 999px; }

  /* links look like app text buttons, not web links */
  .main a:not(.btn):not(.list-ref) { text-decoration: none; }
  .main p a:not(.btn), .main .hint a, .main small a { color: var(--orange-dark); font-weight: 600; }

  /* page head: Android large title */
  .main .page-head h1 { font-size: 26px; letter-spacing: -.4px; }

  .main input, .main select, .main textarea { font-size: 16px !important; }
  /* settings section links: scrollable chips */
  .set-nav { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 8px; }
  .set-nav::-webkit-scrollbar { display: none; }
  .set-nav a { flex: none; white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: #EAEFF7; color: var(--navy); font-weight: 600; font-size: 13.5px; border: 0; }
  .set-nav a.active { background: var(--navy); color: #fff; border-left-color: transparent; }

  /* touch: no hover flashes */
  @media (hover: none) { .main a:hover, .main .btn:hover, .list-table tr:hover td { background-color: inherit; } .main .btn-primary:hover { background: var(--orange-dark); } .main .btn-light:hover { background: #EAEFF7; } }
}
