:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-soft-2: #fafafc;
  --panel: #ffffff;
  --border: #d2d2d7;
  --border-soft: #e8e8ed;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --accent: #0071e3;
  --accent-2: #0066cc;
  --danger: #c41e3a;
  --warn: #b25000;
  --ok: #1d7a46;
  --radius: 18px;
  --nav-bg: #161617;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 .4rem; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: 1.35rem; font-weight: 700; }
h3 { font-size: 1.02rem; font-weight: 600; }

.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.strong { font-weight: 600; }
.mono { font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace; font-size: .86rem; }
.price { color: var(--text); font-weight: 600; white-space: nowrap; }
.pos { color: var(--ok); }
.neg { color: var(--danger); }

.container { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--nav-bg);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #fff;
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: -.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}
.brand-mark img { width: 19px; height: 19px; display: block; }
.brand-small { font-size: .9rem; }
.brand-small .brand-mark { width: 26px; height: 26px; border-radius: 7px; }
.brand-small .brand-mark img { width: 17px; height: 17px; }

.lang-switch {
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 980px;
  padding: .18rem .62rem;
  font-size: .74rem;
  margin-inline-start: .25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .1rem;
  flex-wrap: wrap;
}

.nav-link {
  color: rgba(255, 255, 255, .72);
  padding: .38rem .6rem;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.nav-link:hover { color: #fff; text-decoration: none; }
.nav-link.active { color: #fff; }

.balance-pill {
  background: rgba(255, 255, 255, .16);
  color: #fff;
  border: none;
  border-radius: 980px;
  padding: .02rem .42rem;
  font-size: .72rem;
  font-weight: 600;
}

.nav .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .32);
  color: #fff;
}
.nav .btn-ghost:hover { border-color: rgba(255, 255, 255, .7); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border: 1px solid transparent;
  border-radius: 980px;
  padding: .55rem 1.15rem;
  font: inherit;
  font-weight: 500;
  font-size: .9rem;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: #0077ed; }

.btn-ghost {
  background: #fff;
  border-color: var(--border);
  color: var(--accent);
}
.btn-ghost:hover { border-color: #86868b; }

.btn-danger {
  background: #fff;
  border-color: #e5c1c6;
  color: var(--danger);
}
.btn-danger:hover { background: #fff5f5; border-color: var(--danger); }

.btn-sm { padding: .3rem .8rem; font-size: .8rem; }
.btn-lg { padding: .78rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; margin-top: .35rem; }

.inline-form { display: inline-flex; align-items: center; gap: .35rem; margin: 0; }

/* ---------- Layout ---------- */

.main { padding: 2.2rem 0 4rem; }

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}

.cta-row { display: flex; gap: .6rem; flex-wrap: wrap; }

.grid { display: grid; gap: 1rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.grid.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }

.section { margin-top: 3.5rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }

.panel {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 1.35rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
  overflow-x: auto;
}
.panel.narrow { max-width: 680px; }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .9rem;
}
.panel-head h2 { margin: 0; }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.2rem 0 .5rem;
}

.eyebrow {
  display: inline-block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .02em;
  margin-bottom: .7rem;
}

.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); margin-bottom: .8rem; }

.lede { color: var(--muted); font-size: 1.08rem; max-width: 54ch; }

.checks { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .55rem; }
.checks li { display: flex; align-items: center; gap: .6rem; color: var(--text); font-size: .95rem; }
.tick {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #e9f7ef;
  color: var(--ok);
  display: inline-grid;
  place-items: center;
  font-size: .7rem;
  flex: none;
}
.tick::before { content: "✓"; }

.hero-panel {
  background: var(--bg-soft);
  border: none;
  border-radius: 24px;
  padding: 1.5rem;
}
.hero-panel .panel-head { color: var(--muted); font-size: .8rem; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(29, 122, 70, .12); }

.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--border);
}
.mini-row:last-of-type { border-bottom: 0; }
.mini-name { font-size: .93rem; font-weight: 600; }
.mini-cat { font-size: .76rem; color: var(--muted); }
.mini-price { color: var(--text); font-weight: 600; font-size: .93rem; }
.hero-panel .btn-block { margin-top: 1.2rem; }

/* ---------- Cards ---------- */

.card {
  background: var(--bg-soft);
  border: none;
  border-radius: 22px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, .06); }
.service-card h3 { margin: .45rem 0 0; }
.service-card p { flex: 1; margin: 0; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: .8rem; }

.chip {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(0, 113, 227, .08);
  border: none;
  border-radius: 980px;
  padding: .18rem .6rem;
  width: fit-content;
}

.step {
  background: var(--bg-soft);
  border: none;
  border-radius: 22px;
  padding: 1.4rem;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: .55rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .07);
}

/* ---------- Stats ---------- */

.stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 1.4rem; }
.stat-grid.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.stat {
  background: var(--bg-soft);
  border: none;
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.stat-label { color: var(--muted); font-size: .78rem; font-weight: 500; }
.stat-value { font-size: 1.55rem; font-weight: 700; letter-spacing: -.01em; }

.balance-big {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.balance-big .muted { font-weight: 500; }

/* ---------- Tables ---------- */

.table { width: 100%; border-collapse: collapse; font-size: .89rem; min-width: 620px; }
.table th {
  text-align: start;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 500;
  padding: .6rem .65rem;
  border-bottom: 1px solid var(--border-soft);
  white-space: nowrap;
}
.table td { padding: .7rem .65rem; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.table tbody tr:hover { background: var(--bg-soft-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.actions { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.empty { color: var(--muted); text-align: center; padding: 1.8rem 0; }

.input-sm {
  width: 82px;
  padding: .32rem .5rem;
  font-size: .8rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
}
td .input-sm[name="note"] { width: 110px; }
.api-key { max-width: 210px; font-size: .7rem; word-break: break-all; color: var(--muted); margin-bottom: .25rem; }

/* ---------- Badges ---------- */

.badge {
  display: inline-block;
  font-size: .74rem;
  font-weight: 600;
  border-radius: 980px;
  padding: .15rem .6rem;
  white-space: nowrap;
  border: none;
}
.badge-pending { color: #8a5300; background: #fff4e0; }
.badge-processing { color: #0058a3; background: #e8f1fd; }
.badge-completed, .badge-approved { color: #1d6b3a; background: #e9f7ef; }
.badge-rejected { color: #a3172f; background: #fdecef; }

/* ---------- Tabs & search ---------- */

.tabs {
  display: inline-flex;
  gap: 2px;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
  padding: 3px;
  background: var(--bg-soft);
  border-radius: 980px;
}
.tab {
  color: var(--text);
  border: none;
  background: transparent;
  border-radius: 980px;
  padding: .35rem .9rem;
  font-size: .83rem;
  font-weight: 500;
}
.tab:hover { color: var(--accent); text-decoration: none; }
.tab.active { background: #fff; font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

.search { display: flex; gap: .5rem; }
.search input {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 980px;
  padding: .5rem 1rem;
  font: inherit;
  font-size: .88rem;
  min-width: 220px;
}

/* ---------- Forms ---------- */

.form { display: grid; gap: .95rem; }

.form label {
  display: grid;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .62rem .8rem;
  color: var(--text);
  font: inherit;
  font-size: .92rem;
}
.form input:focus,
.form select:focus,
.form textarea:focus,
.search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, .12);
}
.form textarea { resize: vertical; }

.check-label { display: flex !important; align-items: center; gap: .5rem; align-self: end; }
.check-label input { width: auto; }

.auth-wrap { display: grid; place-items: center; padding: 3rem 0; }
.auth-card { width: min(440px, 100%); padding: 2rem; border-radius: 24px; }
.auth-card h1 { font-size: 1.6rem; }
.auth-card .form { margin-top: 1.1rem; }

.kv { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: 1rem 0 .4rem; }
.kv div { background: var(--bg-soft); border: none; border-radius: 12px; padding: .6rem .8rem; }
.kv dt { color: var(--muted); font-size: .75rem; font-weight: 500; }
.kv dd { margin: 0; font-weight: 600; }

.note { color: var(--muted); font-size: .8rem; margin: .8rem 0 0; }
.mt-sm { margin-top: .35rem; }

/* ---------- Alerts ---------- */

.alert {
  border-radius: 14px;
  padding: .8rem 1rem;
  font-size: .88rem;
  margin: .4rem 0 1rem;
  border: 1px solid transparent;
}
.alert-ok { background: #f0f9f2; border-color: #c8e6d0; color: #1d6b3a; }
.alert-err { background: #fff5f5; border-color: #f2c7cd; color: #a3172f; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border-soft);
  padding: 2rem 0;
  margin-top: 2rem;
  background: var(--bg-soft);
}
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer .brand { color: var(--text); }
.footer .brand-mark { background: var(--text); color: #fff; }
.footer p { margin: .45rem 0 0; max-width: 70ch; }
.fineprint { font-size: .72rem; color: #86868b; }

/* ---------- Admin sub navigation ---------- */

.subnav {
  background: #fff;
  border-bottom: 1px solid var(--border-soft);
}
.subnav-inner { display: flex; flex-wrap: wrap; gap: .2rem; padding: .5rem 0; }
.subnav-link {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 500;
  padding: .32rem .7rem;
  border-radius: 8px;
  white-space: nowrap;
}
.subnav-link:hover { color: var(--text); text-decoration: none; }
.subnav-link.active { color: var(--accent); font-weight: 600; }

/* ---------- Countdown ---------- */

.countdown {
  display: inline-flex;
  align-items: center;
  padding: .14rem .55rem;
  border-radius: 999px;
  background: rgba(0, 113, 227, .08);
  border: 1px solid rgba(0, 113, 227, .18);
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent-2);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.countdown.overdue {
  color: var(--warn);
  background: rgba(178, 80, 0, .08);
  border-color: rgba(178, 80, 0, .22);
  font-size: .78rem;
}

/* ---------- ETA card ---------- */

.eta-card {
  margin: .9rem 0 1.1rem;
  padding: 1.05rem 1.15rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  background:
    radial-gradient(120% 150% at 100% 0%, rgba(0, 113, 227, .10), transparent 55%),
    linear-gradient(180deg, #fcfcfe, #f3f5f9);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 28px -22px rgba(0, 0, 0, .35);
}
.eta-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .35rem 1rem;
  margin-bottom: .7rem;
}
.eta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--text);
}
.eta-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(0, 113, 227, .35);
  animation: etaPulse 2s ease-out infinite;
}
.eta-due { font-size: .78rem; color: var(--muted); }
.eta-due .mono { font-size: .78rem; color: var(--text); direction: ltr; unicode-bidi: isolate; }

.eta-digits {
  display: flex;
  align-items: flex-start;
  gap: .45rem;
}
.eta-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  flex: 0 1 auto;
}
.eta-num {
  min-width: 3.3ch;
  padding: .3rem .45rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border-soft);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .03), inset 0 -2px 0 rgba(0, 0, 0, .03);
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  font-size: clamp(1.45rem, 5vw, 1.95rem);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  direction: ltr;
  unicode-bidi: isolate;
}
.eta-label {
  font-size: .7rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .02em;
}
.eta-sep {
  align-self: flex-start;
  margin-top: .55rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--border);
}

.eta-track {
  height: 6px;
  margin-top: .9rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, .07);
  overflow: hidden;
}
.eta-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #64a8f0);
  transition: width .8s linear;
}

.eta-note {
  display: none;
  margin: .75rem 0 0;
  font-size: .84rem;
  color: var(--warn);
}

.eta-card.is-over .eta-live { background: var(--warn); animation: none; }
.eta-card.is-over .eta-num { color: var(--muted); background: #fbfbfd; }
.eta-card.is-over .eta-fill { background: linear-gradient(90deg, #8e8e93, #b9b9c0); }
.eta-card.is-over .eta-note { display: block; }

@keyframes etaPulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 113, 227, .35); }
  70% { box-shadow: 0 0 0 7px rgba(0, 113, 227, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 113, 227, 0); }
}

@media (max-width: 480px) {
  .eta-card { padding: .9rem .9rem .85rem; }
  .eta-digits { gap: .3rem; }
  .eta-sep { margin-top: .45rem; }
  .eta-num { min-width: 3ch; padding: .26rem .36rem; }
}

/* ---------- Order results & details ---------- */

.result-note {
  margin-top: .35rem;
  font-size: .78rem;
  color: var(--muted);
  max-width: 250px;
  white-space: normal;
}
.result-box {
  margin-top: 1.2rem;
  background: var(--bg-soft);
  border-radius: 16px;
  padding: 1rem 1.1rem;
}
.result-box h3 { font-size: .95rem; margin: 0 0 .3rem; }
.result-box p { margin: 0; }
.order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
.order-meta { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: 1rem 0 0; }
.order-meta div { background: var(--bg-soft); border-radius: 12px; padding: .6rem .8rem; }
.order-meta dt { color: var(--muted); font-size: .75rem; }
.order-meta dd { margin: 0; font-weight: 600; }

/* ---------- Service cards ---------- */

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.1rem;
}
.service-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .04);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .02);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
}
.card-art {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  overflow: hidden;
}
.card-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-chip {
  position: absolute;
  inset-block-start: .8rem;
  inset-inline-start: .8rem;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(6px);
}
.card-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1.02rem; margin: 0 0 .35rem; line-height: 1.35; }
.card-desc { margin: 0 0 .9rem; }
.card-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .75rem;
  margin-top: auto;
  padding-top: .6rem;
  border-top: 1px solid rgba(0, 0, 0, .05);
}
.card-meta .price { font-size: 1.15rem; }
.card-actions { display: flex; gap: .5rem; align-items: center; margin-top: .9rem; }
.card-actions .btn-block { flex: 1; }

/* ---------- Device preview ---------- */

.device-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #f5f5f7 0%, #fbfbfd 100%);
  border-radius: 18px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}
.device-preview.compact { margin: .9rem 0 0; padding: .75rem 1rem; }
.device-art { flex: 0 0 auto; }
.phone-svg {
  width: 74px;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .12));
}
.device-preview.compact .phone-svg { width: 56px; }
.phone-body { fill: var(--phone-color, #8e8e93); }
.device-info { display: grid; gap: .25rem; }

/* ---------- Admin date editor ---------- */

.date-editor { margin-top: 1rem; }
.date-editor .inline-form { flex-wrap: wrap; align-items: flex-end; gap: .5rem; }
.date-editor label { display: grid; gap: .25rem; color: var(--muted); }
.date-editor input[type="date"] { min-width: 160px; }

/* ---------- Live support ---------- */

.nav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  margin-inline-start: .3rem;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}
.support-fab {
  position: fixed;
  inset-block-end: 1.25rem;
  inset-inline-end: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .6rem 1rem;
  border-radius: 999px;
  background: #161617;
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
  z-index: 50;
  transition: transform .15s ease, box-shadow .15s ease;
}
.support-fab:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(0, 0, 0, .28); }
.support-fab-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
}
.chat-panel { padding: 0; overflow: hidden; }
.chat { display: flex; flex-direction: column; height: min(62vh, 560px); }
.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  background: #fbfbfd;
}
.chat-msg { display: flex; flex-direction: column; max-width: 78%; }
.chat-msg.chat-user { align-self: flex-end; align-items: flex-end; }
.chat-msg.chat-admin { align-self: flex-start; align-items: flex-start; }
.chat-bubble {
  padding: .65rem .9rem;
  border-radius: 16px;
  font-size: .92rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.chat-user .chat-bubble {
  background: #0071e3;
  color: #fff;
  border-end-end-radius: 4px;
}
.chat-admin .chat-bubble {
  background: #fff;
  color: #1d1d1f;
  border: 1px solid rgba(0, 0, 0, .06);
  border-end-start-radius: 4px;
}
.chat-meta { margin-top: .25rem; font-size: .68rem; color: var(--muted); }
.chat-form {
  display: flex;
  gap: .6rem;
  padding: .9rem 1rem;
  border-top: 1px solid rgba(0, 0, 0, .06);
  background: #fff;
}
.chat-form input {
  flex: 1;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 999px;
  padding: .6rem 1rem;
  font: inherit;
}
.chat-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ---------- Focus ---------- */

a:focus-visible,
.btn:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1050px) {
  .grid.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .grid.two,
  .order-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .order-meta { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .grid.cards,
  .grid.steps,
  .stat-grid,
  .stat-grid.six { grid-template-columns: 1fr; }
  .nav-inner { gap: .4rem; }
  .nav-links { gap: .05rem; }
  .nav-link { padding: .35rem .45rem; }
  .balance-big { align-items: flex-start; }
  .table { min-width: 540px; }
}
