/* Velcro Merchant: the public page and the signed-in dashboard.
   Navy and lime are Velcro's; everything else is warm neutral. Flat colour, hairlines, big type.
   The dashed tear with punched notches is the same one customers see on their trade ticket. */
:root {
  --navy: #0d0d59;
  --navy-2: #1a1a6b;
  --lime: #a8cf45;
  --lime-deep: #4d7a12;

  --ink: #15151f;
  --ink-2: #44465a;
  --muted: #6f7186;
  --faint: #a3a5b5;
  --line: #e7e7e2;
  --line-soft: #f1f1ec;
  --card: #fff;
  --page: #f6f6f2;

  --on-navy-2: rgba(255, 255, 255, .78);
  --on-navy-3: rgba(255, 255, 255, .6);
  --line-navy: rgba(255, 255, 255, .16);

  --ok: #2f9e44;
  --wait: #d97706;
  --busy: #3b5bdb;
  --bad: #d92d20;
  --off: #a3a5b5;

  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Bricolage Grotesque', 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; line-height: 1.5; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, ol, ul, dl, dd, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* ═══════════ Landing ═══════════ */
.l-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.l-kicker { font-size: 14px; font-weight: 700; color: var(--lime-deep); }
.l-sec h2, .l-how h2, .l-earn h2 { margin-top: 10px; font-family: var(--display); font-size: clamp(32px, 4vw, 52px); font-weight: 800; line-height: 1.04; letter-spacing: -.03em; color: var(--navy); }
.l-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; background: var(--lime); color: var(--navy); font-size: 15px; font-weight: 700; white-space: nowrap; transition: background .15s; }
.l-btn:hover { background: #b9dc58; }
.l-btn-lg { padding: 15px 24px; font-size: 16px; border-radius: 12px; }
.l-btn-line { display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid rgba(255, 255, 255, .34); color: #fff; font-weight: 700; text-decoration: none; transition: border-color .15s; }
.l-btn-line:hover { border-color: #fff; }

/* Nav */
.l-nav { position: sticky; top: 0; z-index: 40; background: var(--navy); color: #fff; border-bottom: 1px solid transparent; transition: border-color .2s; }
.l-nav.is-solid { border-bottom-color: var(--line-navy); }
.l-nav-in { height: 68px; display: flex; align-items: center; gap: 24px; }
.l-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.l-brand img { height: 26px; width: auto; filter: brightness(0) invert(1); }
.l-brand span { padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .3); font-size: 15px; font-weight: 600; line-height: 1.2; }
.l-brand-sm img { height: 20px; }
.l-links { display: flex; gap: 26px; margin-left: 20px; font-size: 15px; font-weight: 500; }
.l-links a { color: var(--on-navy-2); text-decoration: none; transition: color .15s; }
.l-links a:hover { color: #fff; }
.l-nav-cta { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.l-signin { font-size: 15px; font-weight: 600; color: #fff; white-space: nowrap; }
.l-signin:hover { text-decoration: underline; }

/* Hero */
.l-hero { background: var(--navy); color: #fff; }
.l-hero-in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 72px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.l-hero .l-kicker { color: var(--lime); }
.l-hero h1 { margin-top: 14px; font-family: var(--display); font-size: clamp(44px, 5.7vw, 78px); font-weight: 800; line-height: .99; letter-spacing: -.038em; }
.l-hero h1 em { font-style: normal; color: var(--lime); }
.l-lede { margin-top: 22px; max-width: 33em; font-size: 18px; line-height: 1.55; color: var(--on-navy-2); }
.l-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.l-ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: 14.5px; color: var(--on-navy-2); }
.l-ticks li { display: flex; align-items: center; gap: 9px; }
.l-ticks li::before { content: ''; width: 11px; height: 6px; margin-top: -3px; border-left: 2px solid var(--lime); border-bottom: 2px solid var(--lime); transform: rotate(-45deg); }

/* Try your store */
.l-demo { min-width: 0; }
.l-demo-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; margin-bottom: 12px; font-size: 13.5px; font-weight: 600; color: var(--on-navy-2); }
.l-demo-controls label { cursor: text; }
.l-swatches { display: flex; align-items: center; gap: 8px; }
.l-swatches span { margin-right: 2px; }
.m-swatch { width: 22px; height: 22px; border-radius: 50%; background: var(--sw); box-shadow: 0 0 0 2px var(--navy), 0 0 0 3px transparent; transition: box-shadow .15s; }
.m-swatch:hover { box-shadow: 0 0 0 2px var(--navy), 0 0 0 3.5px rgba(255, 255, 255, .5); }
.m-swatch.is-on { box-shadow: 0 0 0 2px var(--navy), 0 0 0 4px #fff; }

.l-window { background: #fff; color: var(--ink); border-radius: 18px; overflow: hidden; }
.l-window-bar { display: flex; align-items: center; gap: 12px; padding: 11px 16px; background: #f4f4ef; border-bottom: 1px solid var(--line); }
.l-dots { display: flex; gap: 5px; }
.l-dots i { width: 9px; height: 9px; border-radius: 50%; background: #d8d8d2; }
.l-url { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--muted); }
.l-url b { font-weight: 600; color: var(--ink); }
.l-window-body { padding: 16px 20px 18px; }
.l-store-head { display: flex; align-items: center; gap: 10px; }
.l-store-logo { width: 32px; height: 32px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: 15px; transition: background .2s; }
.l-store-head input { flex: 1; min-width: 0; padding: 2px 0; border: 0; border-bottom: 1.5px dashed var(--faint); border-radius: 0; background: transparent; outline: 0; font-size: 16px; font-weight: 700; transition: border-color .15s; }
.l-store-head input:hover, .l-store-head input:focus { border-bottom-color: var(--ink); }
.l-store-head small { flex-shrink: 0; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.l-ticket { margin-top: 14px; }
.l-ticket-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 700; text-align: center; color: var(--faint); }
.l-ticket-tabs span { position: relative; padding: 8px 0 10px; }
.l-ticket-tabs .is-on { color: var(--ink); }
.l-ticket-tabs .is-on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand); transition: background .2s; }
.l-ticket-stack { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; }
.l-ticket-stack > div { padding: 8px 13px 9px; }
.l-ticket-stack > div + div { border-top: 1px solid var(--line); background: #fbfbf9; border-radius: 0 0 11px 11px; }
.l-ticket-stack small { font-size: 12.5px; color: var(--muted); }
.l-ticket-stack p { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.l-ticket-stack b { font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.l-ticket-stack em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.l-ticket-rate { margin-top: 9px; font-size: 12.5px; color: var(--muted); }
.l-tear { position: relative; height: 0; margin: 13px -20px; border-top: 2px dashed var(--line); }
.l-tear::before, .l-tear::after { content: ''; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--navy); }
.l-tear::before { left: -8px; }
.l-tear::after { right: -8px; }
.l-ticket-go { display: block; padding: 12px; border-radius: 11px; background: var(--brand); color: var(--on-brand); font-size: 15px; font-weight: 700; text-align: center; transition: background .2s, color .2s; }
.l-ticket-coins { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 11px; font-size: 12px; font-weight: 500; color: var(--muted); }
.l-coin-row { display: inline-flex; gap: 3px; }
.l-coin-row img { width: 16px; height: 16px; border-radius: 50%; }
.l-ledger { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); background: #f4f4ef; }
.l-ledger > div { padding: 10px 20px 11px; }
.l-ledger > div + div { border-left: 1px solid var(--line); }
.l-ledger b { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.l-ledger b.is-up { color: var(--lime-deep); }
.l-ledger small { display: block; font-size: 12px; color: var(--muted); }

/* Strip */
.l-strip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 28px; padding: 18px 0; border-top: 1px solid var(--line-navy); font-size: 14px; font-weight: 500; color: var(--on-navy-2); }

/* Sections on white */
.l-sec { padding: 104px 0; }
.l-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.l-split-head { position: sticky; top: 100px; }
.l-rows article { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); }
.l-rows article:last-child { border-bottom: 1px solid var(--line); }
.l-rows h3 { font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--navy); }
.l-rows p { font-size: 16px; line-height: 1.55; color: var(--ink-2); }

/* How it works: the loud band */
.l-how { padding: 96px 0 104px; background: var(--lime); color: var(--navy); }
.l-how .l-kicker { color: var(--navy); }
.l-how h2 { max-width: 15em; }
.l-steps { list-style: none; counter-reset: st; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }
.l-steps li { counter-increment: st; padding-top: 14px; border-top: 2px solid var(--navy); }
.l-steps li::before { content: counter(st); display: block; font-family: var(--display); font-size: clamp(76px, 8.4vw, 124px); font-weight: 800; line-height: .95; letter-spacing: -.05em; }
.l-steps h3 { margin-top: 18px; font-size: 19px; font-weight: 700; line-height: 1.3; }
.l-steps p { margin-top: 6px; font-size: 15.5px; line-height: 1.5; }

/* Features */
.l-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 32px; margin-top: 52px; }
.l-features > div { padding-top: 16px; border-top: 3px solid var(--navy); }
.l-features > div:nth-child(-n+3) { border-top-color: var(--lime); }
.l-features h3 { font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--navy); }
.l-features p { margin-top: 8px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }

/* Earnings */
.l-earn { padding: 104px 0; background: var(--navy); color: #fff; }
.l-earn .l-kicker { color: var(--lime); }
.l-earn h2 { color: #fff; }
.l-earn-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.l-earn-sub { margin-top: 16px; max-width: 28em; font-size: 17px; line-height: 1.55; color: var(--on-navy-2); }
.l-calc label { display: block; margin-bottom: 26px; }
.l-calc label > span { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; color: var(--on-navy-2); }
.l-calc label b { font-size: 17px; font-weight: 700; color: #fff; }
.l-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 26px; margin: 6px 0 0; padding: 0; background: transparent; cursor: pointer; --fill: 10%; }
.l-range:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }
.l-range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--lime) var(--fill), var(--line-navy) var(--fill)); }
.l-range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line-navy); }
.l-range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--lime); }
.l-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: #fff; border: 5px solid var(--lime); }
.l-range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 5px solid var(--lime); }
.l-calc-out { padding-top: 22px; border-top: 2px dashed var(--line-navy); }
.l-calc-out > p:first-child { font-size: 15px; color: var(--on-navy-2); }
.l-calc-num { margin-top: 2px; font-size: clamp(50px, 6.6vw, 88px); font-weight: 800; line-height: 1.03; letter-spacing: -.04em; color: var(--lime); overflow-wrap: anywhere; }
.l-calc-num small { font-size: 18px; font-weight: 600; letter-spacing: 0; color: var(--on-navy-2); white-space: nowrap; }
.l-calc-fine { margin-top: 10px; font-size: 13px; color: var(--on-navy-3); }

/* FAQ */
.l-faq details { border-top: 1px solid var(--line); }
.l-faq details:last-child { border-bottom: 1px solid var(--line); }
.l-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 18px; font-weight: 700; color: var(--navy); cursor: pointer; list-style: none; }
.l-faq summary::-webkit-details-marker { display: none; }
.l-faq summary::after { content: ''; flex-shrink: 0; width: 12px; height: 12px; background: linear-gradient(var(--navy), var(--navy)) center / 100% 2px no-repeat, linear-gradient(var(--navy), var(--navy)) center / 2px 100% no-repeat; transition: transform .2s; }
.l-faq details[open] summary::after { transform: rotate(45deg); }
.l-faq details p { padding: 0 32px 22px 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* Closing */
.l-cta { background: var(--navy); color: #fff; }
.l-cta-in { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; padding-top: 96px; padding-bottom: 88px; }
.l-cta h2 { max-width: 12em; font-family: var(--display); font-size: clamp(40px, 5.4vw, 72px); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; }
.l-cta p { margin-top: 14px; font-size: 17px; color: var(--on-navy-2); }
.l-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 22px; padding-bottom: 26px; font-size: 14px; }
.l-foot { position: relative; }
.l-foot::before { content: ''; position: absolute; top: 0; left: 32px; right: 32px; border-top: 1px solid var(--line-navy); }
.l-foot-links { display: flex; gap: 22px; }
.l-foot-links a { color: var(--on-navy-2); text-decoration: none; }
.l-foot-links a:hover { color: #fff; text-decoration: underline; }

/* ═══════════ Dashboard ═══════════ */
#app { min-height: 100vh; background: var(--page); }
.d-wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.d-main { padding-top: 28px; padding-bottom: 72px; }
.d-loading { padding: 96px 0; text-align: center; font-size: 14px; color: var(--muted); }

/* Top bar */
.d-top { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.d-top-in { height: 64px; display: flex; align-items: center; gap: 20px; }
.d-store { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 240px; text-align: left; }
.d-store-text { min-width: 0; display: block; }
.d-store-text b { display: block; font-size: 15px; font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-logo { width: 34px; height: 34px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--brand, var(--navy)) center / cover no-repeat; color: #fff; font-size: 15px; font-weight: 700; }
.d-logo.has-img { background-color: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.d-logo-lg { width: 52px; height: 52px; border-radius: 14px; font-size: 21px; }
.d-tabs { display: flex; align-self: stretch; margin: 0 auto; }
.d-tabs button { position: relative; padding: 0 13px; font-size: 14.5px; font-weight: 600; color: var(--muted); transition: color .15s; }
.d-tabs button:hover { color: var(--ink); }
.d-tabs button.is-on { color: var(--navy); }
.d-tabs button.is-on::after { content: ''; position: absolute; left: 13px; right: 13px; bottom: -1px; height: 2px; background: var(--navy); }
.d-tabs .ico { display: none; }
.d-top-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.d-toplink { font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.d-toplink:hover { color: var(--ink); text-decoration: underline; }
.d-menu-wrap { position: relative; }
.d-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 14px; font-weight: 700; }
.d-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 40; min-width: 240px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(20, 20, 40, .3); }
.d-menu-head { padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line-soft); }
.d-menu-head b { display: block; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-menu-head span { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.d-menu button, .d-menu a { display: block; width: 100%; padding: 9px 10px; border-radius: 9px; font-size: 14px; font-weight: 600; text-align: left; text-decoration: none; }
.d-menu button:hover, .d-menu a:hover { background: var(--line-soft); }
.d-menu .is-danger { color: #b42318; }

/* Status: a dot and a word, never colour alone */
.d-st { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.d-st::before { content: ''; width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: var(--off); }
.d-st.is-live::before { background: var(--ok); }
.d-st.is-wait::before { background: var(--wait); }
.d-st.is-busy::before { background: var(--busy); }
.d-st.is-warn::before { background: var(--wait); }
.d-st.is-bad::before { background: var(--bad); }
.d-st:empty { display: none; }

/* Buttons */
.d-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 11px; background: var(--navy); color: #fff; font-size: 14.5px; font-weight: 700; white-space: nowrap; transition: background .15s; }
.d-btn:hover { background: var(--navy-2); }
.d-btn:disabled { opacity: .45; cursor: not-allowed; }
.d-btn-lime { display: inline-flex; align-items: center; justify-content: center; padding: 11px 20px; border-radius: 11px; background: var(--lime); color: var(--navy); font-size: 14.5px; font-weight: 700; white-space: nowrap; text-decoration: none; transition: background .15s; }
.d-btn-lime:hover { background: #b9dc58; }
.d-btn-lime:disabled { background: rgba(255, 255, 255, .14); color: var(--on-navy-3); cursor: not-allowed; }
.d-btn-quiet { display: inline-flex; align-items: center; justify-content: center; padding: 9px 15px; border: 1px solid #dcdcd6; border-radius: 10px; background: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: border-color .15s; }
.d-btn-quiet:hover { border-color: var(--ink-2); }
.d-link { font-size: 13.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.d-link:hover { color: var(--navy); text-decoration: underline; }
.d-quiet { font-size: 14px; color: var(--muted); }

/* Page heads */
.d-hello { font-size: 17px; font-weight: 600; color: var(--ink-2); margin-bottom: 14px; }
.d-head { margin-bottom: 20px; }
.d-head h1 { font-size: 28px; font-weight: 800; line-height: 1.15; letter-spacing: -.025em; }
.d-head p { margin-top: 4px; max-width: 42em; font-size: 15px; color: var(--muted); }
.d-head p b { color: var(--ink); }
.d-head-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 20px; }
.d-section { margin: 28px 0 10px; font-size: 16px; font-weight: 700; }

/* The ledger: earnings first, in the biggest type on the page */
.d-hero { position: relative; background: var(--navy); color: #fff; border-radius: 20px; overflow: hidden; }
.d-hero-main { padding: 26px 30px 0; }
.d-hero-main small { display: block; font-size: 14.5px; font-weight: 500; color: var(--on-navy-2); }
.d-hero-main b { display: block; margin-top: 2px; font-size: clamp(46px, 7vw, 72px); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; overflow-wrap: anywhere; }
.d-hero-split { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.d-hero-sub { display: block; margin-top: 4px; font-size: 14px; color: var(--on-navy-2); }
.d-hero-reason { padding: 10px 30px 0; font-size: 14px; color: var(--on-navy-2); }
.d-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 22px 30px 24px; }
.d-kpis > div { min-width: 0; padding-left: 20px; border-left: 1px solid var(--line-navy); }
.d-kpis > div:first-child { padding-left: 0; border-left: 0; }
.d-kpis dt { font-size: 13.5px; color: var(--on-navy-2); }
.d-kpis dd { margin-top: 2px; font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -.015em; overflow-wrap: anywhere; }
.d-kpis small { display: block; font-size: 12.5px; color: var(--on-navy-3); }
.d-hero-tear { position: relative; height: 0; border-top: 2px dashed var(--line-navy); }
.d-hero-tear::before, .d-hero-tear::after { content: ''; position: absolute; top: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--page); }
.d-hero-tear::before { left: -9px; }
.d-hero-tear::after { right: -9px; }
.d-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 16px 30px 18px; font-size: 14.5px; }
.d-strip .d-st { color: #fff; font-size: 14px; }
.d-strip-url { min-width: 0; flex: 1 1 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: var(--on-navy-2); }
.d-strip-text { flex: 1 1 280px; min-width: 0; }
.d-strip-text b { display: block; font-weight: 700; }
.d-strip-text small { display: block; font-size: 13.5px; line-height: 1.45; color: var(--on-navy-2); }
.d-strip-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.d-strip-btns button:not(.d-btn-lime), .d-strip-btns a:not(.d-btn-lime) { font-size: 14px; font-weight: 700; color: var(--lime); text-decoration: none; }
.d-strip-btns button:not(.d-btn-lime):hover, .d-strip-btns a:not(.d-btn-lime):hover { text-decoration: underline; }

/* Setup steps: gone once they're done */
.d-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.d-steps button { display: flex; align-items: flex-start; gap: 11px; padding: 15px 18px; text-align: left; border-left: 1px solid var(--line-soft); transition: background .15s; }
.d-steps button:first-child { border-left: 0; border-radius: 15px 0 0 15px; }
.d-steps button:last-child { border-radius: 0 15px 15px 0; }
.d-steps button:hover { background: #fbfbf8; }
.d-steps i { flex-shrink: 0; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1.5px solid var(--faint); font-style: normal; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.d-steps i .ico { width: 12px; height: 12px; stroke-width: 3.5; }
.d-steps .is-done i { background: var(--lime); border-color: var(--lime); color: var(--navy); }
.d-steps b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.35; }
.d-steps small { display: block; font-size: 13px; color: var(--muted); }
.d-steps .is-done b { color: var(--muted); font-weight: 600; }

/* Blocks */
.d-two { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.d-block { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.d-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.d-block-head h2 { font-size: 16px; font-weight: 700; }
.d-mini { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.d-mini img { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; }
.d-mini-l { flex: 1; min-width: 0; }
.d-mini-r { text-align: right; flex-shrink: 0; }
.d-mini b { display: block; font-size: 14px; font-weight: 700; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-mini small { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-mini-empty { padding: 14px 0 6px; border-top: 1px solid var(--line-soft); }
.d-mini-empty p { margin-bottom: 12px; font-size: 14px; color: var(--muted); }
.d-rate-head, .d-rate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 96px) minmax(0, 96px); gap: 8px; align-items: center; }
.d-rate-head { padding-bottom: 6px; font-size: 12px; font-weight: 600; color: var(--muted); text-align: right; }
.d-rate { padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.d-rate > span:first-child { display: flex; align-items: center; gap: 8px; font-weight: 700; text-align: left; }
.d-rate img { width: 22px; height: 22px; border-radius: 50%; }
.d-rate i { font-style: normal; color: var(--faint); font-size: 13px; }

/* Prices */
.d-display { margin-bottom: 16px; }
.d-display legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.d-display-opts { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.d-display-opts label { position: relative; display: block; cursor: pointer; }
.d-display-opts label + label { border-left: 1px solid var(--line); }
.d-display-opts input { position: absolute; opacity: 0; }
.d-display-opts span { display: block; height: 100%; padding: 14px 18px 15px; border-radius: 15px; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .15s; }
.d-display-opts input:checked + span { box-shadow: inset 0 0 0 2px var(--navy); }
.d-display-opts input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.d-display-opts b { display: block; font-size: 15px; font-weight: 700; }
.d-display-opts em { display: block; font-style: normal; font-size: 13.5px; color: var(--muted); }
.d-display-opts small { display: block; margin-top: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ── Prices & Markup Page ── */
.d-prices-head-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.d-rates-status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; background: #f0fdf4; border: 1.5px solid #bbf7d0; color: #166534; border-radius: 24px; font-size: 12.5px; font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 0, .03); }
.d-pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .25); animation: ordPulse 2s infinite; flex-shrink: 0; }
.d-btn-icon-subtle { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: none; background: transparent; border-radius: 50%; cursor: pointer; color: inherit; padding: 0; transition: transform .2s, background .15s; }
.d-btn-icon-subtle:hover { background: rgba(22, 101, 52, .12); }
.d-btn-icon-subtle.is-spinning svg { animation: spin 0.8s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Earnings Simulator Card */
.d-sim-card { background: #ffffff; border: 1.5px solid var(--line); border-radius: 18px; padding: 20px 22px; margin-bottom: 18px; box-shadow: 0 3px 12px rgba(0, 0, 0, .03); }
.d-sim-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.d-sim-title { display: flex; align-items: center; gap: 10px; }
.d-sim-icon { width: 36px; height: 36px; border-radius: 10px; background: #eff6ff; color: #2563eb; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.d-sim-icon svg { width: 18px; height: 18px; }
.d-sim-head h3 { margin: 0; font-size: 16px; font-weight: 800; color: var(--ink); }
.d-sim-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.d-sim-quick-chips { display: flex; gap: 6px; }
.d-sim-chip { padding: 5px 12px; border-radius: 8px; border: 1px solid var(--line); background: #f8fafc; font-size: 12.5px; font-weight: 700; color: var(--ink-2); cursor: pointer; transition: all .15s; }
.d-sim-chip:hover, .d-sim-chip.is-active { background: var(--navy); color: #ffffff; border-color: var(--navy); }
.d-sim-body { display: grid; grid-template-columns: 1.4fr 1fr 1.6fr; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); align-items: center; }
.d-sim-stat { display: flex; flex-direction: column; gap: 4px; }
.d-sim-stat small { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.d-sim-stat b { font-size: 18px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.d-sim-stat.is-highlight b { font-size: 22px; color: #15803d; }
.d-sim-input-wrap { display: flex; align-items: center; background: #f8fafc; border: 1.5px solid var(--line); border-radius: 10px; padding: 4px 10px; font-size: 16px; font-weight: 800; transition: border-color .15s; }
.d-sim-input-wrap:focus-within { border-color: var(--navy); background: #ffffff; }
.d-sim-prefix { color: var(--muted); margin-right: 4px; font-size: 15px; font-weight: 800; }
.d-sim-input-wrap input { border: none; background: transparent; font-size: 16px; font-weight: 800; width: 100%; outline: none; font-variant-numeric: tabular-nums; color: var(--ink); }

/* Quick Presets Card */
.d-preset-card { background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 16px; padding: 16px 20px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 12px; }
.d-preset-header { display: flex; align-items: center; gap: 10px; }
.d-preset-icon { width: 28px; height: 28px; border-radius: 8px; background: #fef3c7; color: #b45309; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.d-preset-icon svg { width: 15px; height: 15px; }
.d-preset-info b { font-size: 14px; font-weight: 800; color: #0f172a; }
.d-preset-info small { display: block; font-size: 12px; color: #64748b; }
.d-preset-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.d-preset-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.d-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; background: #ffffff; border: 1.5px solid #cbd5e1; border-radius: 10px; font-size: 13px; cursor: pointer; transition: all .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .03); }
.d-chip:hover { border-color: var(--navy); transform: translateY(-1px); }
.d-chip b { font-weight: 800; color: var(--navy); }
.d-chip small { color: #64748b; font-size: 11.5px; }
.d-preset-bulk { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.d-bulk-btn { background: none; border: none; font-size: 12.5px; font-weight: 700; color: var(--navy); cursor: pointer; text-decoration: underline; padding: 0; }
.d-bulk-btn:hover { opacity: .8; }
.d-bulk-btn.is-warn { color: #dc2626; }
.d-bulk-sep { color: #cbd5e1; }

/* Pricing Cards Container */
.d-prices-container { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.d-prices-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 2px 4px 6px; }
.d-prices-count { font-size: 14px; font-weight: 800; color: var(--ink); }
.d-prices-hint { font-size: 12.5px; color: var(--muted); }
.d-price-cards { display: flex; flex-direction: column; gap: 16px; }

/* Asset Pricing Card */
.d-asset-card { background: #ffffff; border: 1.5px solid var(--line); border-radius: 20px; padding: 20px 22px; box-shadow: 0 3px 12px rgba(0, 0, 0, .03); transition: border-color .15s, box-shadow .15s; }
.d-asset-card:hover { border-color: #cbd5e1; box-shadow: 0 6px 20px rgba(0, 0, 0, .05); }
.d-asset-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.d-asset-info { display: flex; align-items: center; gap: 12px; }
.d-asset-info img { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; }
.d-asset-name-row { display: flex; align-items: baseline; gap: 8px; }
.d-asset-sym { font-size: 17px; font-weight: 800; color: var(--ink); }
.d-asset-name { font-size: 13.5px; color: var(--muted); }
.d-asset-spread-tag { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.d-asset-spread-tag.is-positive { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.d-asset-spread-tag.is-positive b { color: #15803d; }
.d-asset-spread-tag.is-neutral { background: #f8fafc; color: #475569; border: 1px solid #e2e8f0; }
.d-asset-spread-tag.is-muted { background: #f4f4f5; color: #71717a; border: 1px solid #e4e4e7; }
.d-asset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }

/* Side Panels (Buy vs Sell) */
.d-asset-side { background: #fafafb; border: 1.5px solid var(--line-soft); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; transition: all .15s; }
.d-asset-side.is-buy { background: #fafdfa; border-color: #e2f2e5; }
.d-asset-side.is-sell { background: #faf9ff; border-color: #e9e6fd; }
.d-asset-side.is-off { opacity: .65; background: #f8fafc; border-color: #e2e8f0; }

.d-side-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.d-side-title-wrap { display: flex; flex-direction: column; gap: 2px; }
.d-side-pill { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; width: fit-content; }
.d-side-pill.is-buy { background: #dcfce7; color: #15803d; }
.d-side-pill.is-sell { background: #ede9fe; color: #6d28d9; }
.d-side-sub { font-size: 11.5px; color: var(--muted); }

.d-side-controls { display: flex; flex-direction: column; gap: 8px; }
.d-control-label-row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.d-control-label { font-weight: 700; color: var(--ink-2); }
.d-control-hint { color: var(--muted); font-size: 11.5px; }

.d-markup-stepper { display: flex; align-items: center; gap: 6px; }
.d-step-btn { width: 36px; height: 36px; border-radius: 10px; border: 1.5px solid var(--line); background: #ffffff; font-size: 18px; font-weight: 700; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .15s; user-select: none; flex-shrink: 0; }
.d-step-btn:hover { border-color: var(--navy); background: #f8fafc; }
.d-step-btn:active { transform: scale(.95); }
.d-markup-stepper .d-markup { flex: 1; padding: 0 10px; height: 36px; border: 1.5px solid var(--line); border-radius: 10px; background: #ffffff; display: flex; align-items: center; font-size: 15px; font-weight: 700; }
.d-markup-stepper .d-markup input { width: 100%; min-width: 0; padding: 7px 0; border: 0; outline: 0; background: transparent; font-weight: 700; font-size: 15px; color: var(--ink); -moz-appearance: textfield; appearance: textfield; font-variant-numeric: tabular-nums; }
.d-markup-stepper .d-markup span { color: var(--muted); font-weight: 700; margin-left: 2px; }

.d-quick-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.d-quick-chip { padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); background: #ffffff; font-size: 11.5px; font-weight: 700; color: var(--ink-2); cursor: pointer; transition: all .12s; }
.d-quick-chip:hover { border-color: var(--navy); color: var(--navy); }
.d-quick-chip.is-active { background: var(--navy); color: #ffffff; border-color: var(--navy); }

/* Rate Presentations */
.d-rate-box { background: #ffffff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 2px 6px rgba(0, 0, 0, .02); }
.d-rate-main { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.d-rate-lbl { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }
.d-rate-val { font-size: 16px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.d-rate-sub { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; font-size: 12px; padding-top: 6px; border-top: 1px dashed var(--line-soft); }
.d-base-tag { color: var(--muted); font-size: 11.5px; }
.d-profit-tag { color: #15803d; font-weight: 800; font-size: 11px; background: #dcfce7; padding: 1px 6px; border-radius: 4px; }

.d-rate-off-box { background: #ffffff; border: 1px dashed #cbd5e1; border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.d-off-icon { width: 22px; height: 22px; border-radius: 50%; background: #f1f5f9; color: #64748b; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex-shrink: 0; }
.d-off-text b { display: block; font-size: 12.5px; font-weight: 700; color: #475569; }
.d-off-text small { display: block; font-size: 11px; color: #94a3b8; }
.d-btn-turn-on { padding: 4px 11px; border-radius: 7px; background: var(--navy); color: #ffffff; border: none; font-size: 11.5px; font-weight: 700; cursor: pointer; transition: opacity .15s; }
.d-btn-turn-on:hover { opacity: .9; }

/* Legacy Fallback Classes */
.d-prices { padding: 6px 20px 8px; }
.d-prices-head, .d-price-row { display: grid; grid-template-columns: 136px minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: center; }
.d-prices-head { padding: 8px 0; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.d-price-row { padding: 12px 0; border-top: 1px solid var(--line-soft); }
.d-coin { display: flex; align-items: center; gap: 10px; min-width: 0; }
.d-coin img { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; }
.d-coin b { display: block; font-size: 15px; font-weight: 700; line-height: 1.25; }
.d-coin small { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-side-cell { display: grid; grid-template-columns: auto 88px minmax(0, 1fr); gap: 10px; align-items: center; min-width: 0; }
.d-side-label { display: none; }
.d-toggle { position: relative; width: 38px; height: 22px; border-radius: 11px; background: #d9d9d3; transition: background .15s; border: none; cursor: pointer; padding: 0; }
.d-toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.d-toggle[aria-checked="true"] { background: var(--navy); }
.d-toggle[aria-checked="true"]::after { transform: translateX(16px); }
.d-markup { display: flex; align-items: center; padding: 0 10px; border: 1px solid #dcdcd6; border-radius: 9px; background: #fff; font-size: 14.5px; font-weight: 600; transition: border-color .15s, opacity .15s; }
.d-markup:focus-within { border-color: var(--navy); }
.d-markup input { width: 100%; min-width: 0; padding: 7px 0; border: 0; outline: 0; background: transparent; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.d-markup input::-webkit-outer-spin-button, .d-markup input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.d-markup span { color: var(--muted); }
.d-side-cell.is-off .d-markup { opacity: .4; }
.d-result { min-width: 0; text-align: right; }
.d-result b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; white-space: nowrap; }
.d-result small { display: block; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.d-result .is-none { font-size: 13.5px; font-weight: 500; color: var(--muted); }
.d-note { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* Save bars */
.d-savebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px max(24px, calc((100% - 1092px) / 2)); background: #fff; border-top: 1px solid var(--line); }
.d-savebar-note { margin-right: auto; font-size: 14px; color: var(--muted); }
.d-savebar-note.is-dirty { color: var(--ink); font-weight: 600; }
.d-savebar-pop { visibility: hidden; transform: translateY(100%); transition: transform .2s, visibility .2s; }
.d-savebar-pop.is-on { visibility: visible; transform: none; }

/* Orders, customers, withdrawals */
.d-sum { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.d-sum:empty { display: none; }
.d-sum b { color: var(--ink); font-weight: 700; }
.d-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.d-search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0 12px; border: 1px solid #dcdcd6; border-radius: 10px; background: #fff; color: var(--muted); transition: border-color .15s; }
.d-search:focus-within { border-color: var(--navy); }
.d-search .ico { width: 16px; height: 16px; }
.d-search input { flex: 1; min-width: 0; padding: 9px 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14.5px; }
.d-filter { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: #ebebe5; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.d-filter::-webkit-scrollbar { display: none; }
.d-filter button { padding: 6px 11px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: background .15s; }
.d-filter button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(20, 20, 40, .08); }
.d-filter-wide { margin: 12px 0 2px; }
.d-filter-wide button { flex: 1; padding: 8px 11px; }
.d-sheet { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.d-sheet:empty { display: none; }
.d-sheet-msg { padding: 22px 20px; font-size: 14px; color: var(--muted); }
.d-empty { padding: 44px 24px 48px; text-align: center; }
.d-empty h2 { font-size: 18px; font-weight: 700; }
.d-empty p { max-width: 28em; margin: 6px auto 16px; font-size: 14.5px; color: var(--muted); }
.d-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 14px; }
.d-table th { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.d-table td { padding: 12px 14px; border-top: 1px solid var(--line-soft); vertical-align: middle; }
.d-table tbody tr:first-child td { border-top: 0; }
.d-table th:first-child, .d-table td:first-child { padding-left: 20px; }
.d-table th:last-child, .d-table td:last-child { padding-right: 20px; }
.d-table .is-num, .d-table .is-end { text-align: right; font-variant-numeric: tabular-nums; }
.d-cell b { display: block; font-size: 14px; font-weight: 700; line-height: 1.35; }
.d-cell small { display: block; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.d-cell .is-earned { color: var(--lime-deep); }
.d-cell .is-pending { color: var(--muted); font-weight: 600; }
.d-cell .is-bad-note { color: #b42318; }
.d-date { font-size: 13px; color: var(--muted); white-space: nowrap; }
.d-av { width: 32px; height: 32px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--line-soft); font-size: 13px; font-weight: 700; color: var(--ink-2); }
.d-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.d-who img { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; object-fit: contain; }
.d-who > span:last-child { min-width: 0; }

/* Table and recent-card status pills */
.d-table .d-st,
.d-mini .d-st { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: #f3f4f6; color: var(--ink-2); white-space: nowrap; }
.d-table .d-st::before,
.d-mini .d-st::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--off); flex-shrink: 0; }
.d-table .d-st.is-live,
.d-mini .d-st.is-live { background: #eaf6ea; color: #1e7e34; }
.d-table .d-st.is-live::before,
.d-mini .d-st.is-live::before { background: #1e7e34; }
.d-table .d-st.is-wait,
.d-mini .d-st.is-wait { background: #fef3c7; color: #b45309; }
.d-table .d-st.is-wait::before,
.d-mini .d-st.is-wait::before { background: #b45309; }
.d-table .d-st.is-busy,
.d-mini .d-st.is-busy { background: #eff4ff; color: #2563eb; }
.d-table .d-st.is-busy::before,
.d-mini .d-st.is-busy::before { background: #2563eb; }
.d-table .d-st.is-warn,
.d-mini .d-st.is-warn { background: #fef3c7; color: #b45309; }
.d-table .d-st.is-warn::before,
.d-mini .d-st.is-warn::before { background: #b45309; }
.d-table .d-st.is-bad,
.d-mini .d-st.is-bad { background: #fef2f2; color: #dc2626; }
.d-table .d-st.is-bad::before,
.d-mini .d-st.is-bad::before { background: #dc2626; }
.d-table .d-st.is-off,
.d-mini .d-st.is-off { background: #f3f4f6; color: #6b7280; }
.d-table .d-st.is-off::before,
.d-mini .d-st.is-off::before { background: #9ca3af; }

/* Earnings */
.d-wd { margin-top: 16px; scroll-margin-top: 84px; }
.d-wd .d-btn { margin-top: 14px; }
.d-grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
.d-grid-wd { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0 16px; }
.d-span-2 { grid-column: 1 / -1; }
.d-soon-line { margin-top: 16px; padding: 14px 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; font-size: 14.5px; }
.d-soon-line b { font-weight: 700; }
.d-soon-line p { margin-top: 2px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.d-soon-line em, .d-list em { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--line-soft); color: var(--ink-2); white-space: nowrap; }

/* Settings */
.d-profile { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.d-profile-text { flex: 1; min-width: 0; }
.d-profile-text b { display: block; font-size: 17px; font-weight: 700; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-profile-text span { display: block; font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-profile-text .d-st { margin-top: 3px; }
.d-list { margin-top: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.d-list > button, .d-list > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 14px 20px; text-align: left; border-top: 1px solid var(--line-soft); }
.d-list > :first-child { border-top: 0; }
.d-list > button { transition: background .15s; }
.d-list > button:hover { background: #fbfbf8; }
.d-list span { min-width: 0; }
.d-list b { display: block; font-size: 15px; font-weight: 700; line-height: 1.35; }
.d-list small { display: block; font-size: 13.5px; color: var(--muted); }
.d-list .ico { color: var(--faint); }
.is-soon b { color: var(--ink-2); font-weight: 600; }

.d-back { display: inline-flex; align-items: center; gap: 2px; margin: 0 0 14px -4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.d-back:hover { color: var(--ink); }
.d-back .ico { width: 16px; height: 16px; }
.d-form { max-width: 760px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.d-form-sm { max-width: 520px; }
.d-form .d-head h1 { font-size: 22px; }
.d-form .d-btn { margin-top: 16px; }
.d-field { margin-top: 0; }
.d-agree { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.d-agree input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--navy); flex-shrink: 0; }
.d-agree a { font-weight: 600; color: var(--navy); }

/* Forms */
.m-label { display: block; margin: 14px 0 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.m-label i { font-style: normal; font-weight: 500; color: var(--muted); }
.m-label-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.m-label-row button { margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.m-label-row button:hover { color: var(--ink); }
.m-input { display: block; width: 100%; padding: 11px 13px; border: 1px solid #dcdcd6; border-radius: 11px; background: #fff; font-size: 15px; outline: 0; transition: border-color .15s, box-shadow .15s; }
.m-input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(13, 13, 89, .12); }
.m-input[readonly] { background: #fafaf7; color: var(--ink-2); cursor: not-allowed; }
textarea.m-input { resize: vertical; line-height: 1.45; }
.m-code { letter-spacing: .4em; font-weight: 700; }
.m-hint { margin-top: 6px; font-size: 13px; color: var(--muted); }
.m-hint.is-ok { color: #2c6a1d; font-weight: 700; }
.m-hint.is-bad, .m-error { color: #b42318; }
.m-error { margin-top: 12px; font-size: 13.5px; }
.m-slug-wrap { display: flex; align-items: center; border: 1px solid #dcdcd6; border-radius: 11px; background: #fff; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.m-slug-wrap:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(13, 13, 89, .12); }
.m-slug-wrap:has(input[readonly]) { background: #fafaf7; }
.m-slug-wrap span { flex-shrink: 0; padding-left: 13px; font-size: 14.5px; color: var(--muted); }
.m-slug-wrap input { flex: 1; min-width: 0; padding: 11px 13px 11px 0; border: 0; outline: 0; background: transparent; font-size: 15px; font-weight: 600; }
.m-slug-wrap input[readonly] { color: var(--ink-2); cursor: not-allowed; }

/* Customize */
.d-custom { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; padding-bottom: 56px; }
.d-custom-form { min-width: 0; max-width: 620px; }
.d-sec { padding: 4px 0 18px; border-bottom: 1px solid var(--line); }
.d-sec:last-of-type { border-bottom: 0; }
.d-sec-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.d-sec-row .m-hint { margin: 0 0 6px; }
.d-upload { display: flex; align-items: center; gap: 12px; }
.d-upload small { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); }
.d-colors { display: grid; gap: 10px; }
.d-color-row { display: flex; align-items: center; gap: 12px; }
.d-color-chip { position: relative; width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(20, 20, 40, .12); cursor: pointer; }
.d-color-chip input { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); padding: 0; border: 0; background: none; cursor: pointer; }
.d-color-name { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; }
.d-color-name small { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.d-color-name small .d-link { font-size: 12.5px; }
.d-hex { width: 96px; flex-shrink: 0; padding: 8px 10px; border: 1px solid #dcdcd6; border-radius: 9px; background: #fff; font-family: var(--mono); font-size: 13px; outline: 0; }
.d-hex:focus { border-color: var(--navy); }
.d-swatch-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 2px; }
.d-swatch-row span { margin-right: 4px; font-size: 13px; color: var(--muted); }
.d-swatch { width: 24px; height: 24px; border-radius: 50%; background: var(--sw); box-shadow: 0 0 0 2px var(--page), 0 0 0 3px transparent; transition: box-shadow .15s; }
.d-swatch:hover { box-shadow: 0 0 0 2px var(--page), 0 0 0 3.5px var(--faint); }
.d-swatch.is-on { box-shadow: 0 0 0 2px var(--page), 0 0 0 4px var(--ink); }
.d-read p { font-size: 13px; color: var(--ink-2); }
.d-bar { height: 3px; margin-top: 4px; border-radius: 2px; background: #e4e4de; overflow: hidden; }
.d-bar i { display: block; height: 100%; background: var(--ok); transition: width .2s; }
.d-read.is-meh .d-bar i { background: var(--wait); }
.d-read.is-bad .d-bar i { background: var(--bad); }
.d-layouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.d-layouts button { padding: 8px 8px 9px; border: 1px solid #dcdcd6; border-radius: 12px; background: #fff; font-size: 13.5px; font-weight: 600; text-align: center; transition: border-color .15s, box-shadow .15s; }
.d-layouts button:hover { border-color: var(--ink-2); }
.d-layouts button[aria-checked="true"] { border-color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.d-lay { position: relative; display: block; height: 72px; margin-bottom: 7px; border-radius: 8px; overflow: hidden; background: #f6f5f0; transition: transform .15s ease; }
.d-layouts button:hover .d-lay { transform: translateY(-1px); }
.d-lay i { position: absolute; left: 10%; top: 12%; width: 34%; height: 5px; border-radius: 3px; background: #c9c9c2; }
.d-lay b { position: absolute; left: 22%; right: 22%; bottom: 10%; top: 30%; border-radius: 6px; background: #fff; }

/* Classic thumb */
.d-lay.is-classic { background: #f6f5f0; }
.d-lay.is-classic i { background: #d0cfc7; }
.d-lay.is-classic b { background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .08), inset 0 0 0 1px #e3e2d9; }
.d-lay.is-classic b::after { content: ''; position: absolute; left: 0; right: 0; bottom: 32%; border-top: 1px dashed #deddd4; }

/* Card thumb */
.d-lay.is-card { background: var(--navy); background-image: radial-gradient(130% 100% at 50% 0%, color-mix(in srgb, var(--brand, var(--navy)) 85%, #fff 15%), var(--brand, var(--navy))); }
.d-lay.is-card i { background: rgba(255, 255, 255, .6); }
.d-lay.is-card b { background: #fff; border-radius: 7px; box-shadow: 0 4px 12px rgba(0, 0, 0, .32); }

/* Minimal thumb */
.d-lay.is-minimal { background: #fff; box-shadow: inset 0 0 0 1px #e6e6ea; }
.d-lay.is-minimal i { background: #dedee3; }
.d-lay.is-minimal b { background: #fff; box-shadow: inset 0 0 0 1px #e4e4e8; border-radius: 5px; }

/* Phone preview: a small copy of the store */
.d-phone-wrap { position: sticky; top: 84px; }
.d-phone { width: 280px; margin: 0 auto; padding: 7px; border-radius: 34px; background: #15151f; }
.d-phone-cap { margin-top: 10px; display: flex; justify-content: center; gap: 10px; font-size: 13px; color: var(--muted); }
.d-phone-cap a { font-weight: 600; color: var(--ink-2); }
.d-phone-screen { height: 540px; overflow: hidden; display: flex; flex-direction: column; border-radius: 27px; background: #f6f5f0; background-image: radial-gradient(120% 90% at 50% 0%, #faf9f5 0%, #f4f3ec 100%); color: var(--ink); font-size: 11px; line-height: 1.4; --p-page: #f6f5f0; --p-on: var(--ink); --p-on-2: var(--muted); --p-line: var(--line); transition: background .2s ease; }
.d-phone-screen.is-card { background-color: var(--brand); background-image: radial-gradient(130% 90% at 50% -10%, color-mix(in srgb, var(--brand) 88%, #fff 12%) 0%, var(--brand) 65%, color-mix(in srgb, var(--brand) 72%, #050510 28%) 100%); --p-page: var(--brand); --p-on: var(--on-brand-auto); --p-on-2: color-mix(in srgb, var(--on-brand-auto) 80%, transparent); --p-line: rgba(255, 255, 255, .18); }
.d-phone-screen.is-minimal { background: #fff; background-image: none; --p-page: #fff; --p-line: #f0f0f2; }
.bp-status { display: flex; justify-content: space-between; align-items: center; padding: 9px 18px 2px; font-size: 10.5px; font-weight: 700; color: var(--p-on); }
.bp-status span { display: inline-flex; gap: 2px; }
.bp-status i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.bp-top { display: flex; align-items: center; gap: 7px; padding: 8px 12px 9px; border-bottom: 1px solid var(--p-line); color: var(--p-on); }
.is-card .bp-top { background: rgba(0, 0, 0, .06); border-bottom-color: rgba(255, 255, 255, .16); }
.bp-top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 700; }
.bp-top > span:last-child { font-size: 11px; font-weight: 600; }
.bp-logo { width: 22px; height: 22px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; background: var(--brand) center / cover no-repeat; color: var(--on-brand-auto); font-size: 11px; font-weight: 700; }
.is-card .bp-logo:not(.has-img) { background-color: var(--on-brand-auto); color: var(--brand); }
.bp-logo.has-img { background-color: #fff; }
.bp-welcome { padding: 9px 12px 0; font-size: 11px; color: var(--p-on-2); }
.bp-ticket { margin: 9px 10px 0; padding: 2px 11px 11px; background: #fff; color: var(--ink); border: 1px solid #e5e5dc; border-radius: 14px; box-shadow: 0 2px 4px rgba(0, 0, 0, .03), 0 8px 18px -4px rgba(0, 0, 0, .08); }
.is-card .bp-ticket { border-radius: 16px; border: 1px solid rgba(255, 255, 255, .25); box-shadow: 0 8px 24px -4px rgba(0, 0, 0, .35); }
.is-minimal .bp-ticket { border: 1px solid #e4e4e7; border-radius: 14px; box-shadow: none; }
.bp-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin: 0 0 8px; padding: 2px; background: #ecebe4; border: 0; border-radius: 8px; text-align: center; font-size: 11.5px; font-weight: 600; color: #76777c; }
.bp-tabs span { position: relative; padding: 5px 0; border-radius: 6px; }
.bp-tabs .is-on { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.is-card .bp-tabs { background: #f1f4f9; }
.is-card .bp-tabs .is-on { background: #fff; color: var(--ink); }
.is-minimal .bp-tabs { background: transparent; border: 0; border-bottom: 1px solid #f0f0f2; border-radius: 0; margin: 0 -11px 8px; padding: 0 11px; gap: 0; }
.is-minimal .bp-tabs span { padding: 6px 0; border-radius: 0; color: #9496a1; }
.is-minimal .bp-tabs .is-on { background: transparent; color: var(--ink); box-shadow: none; }
.is-minimal .bp-tabs .is-on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand); }
.bp-stack { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.is-card .bp-stack { border-color: #e2e8f0; }
.is-minimal .bp-stack { border-color: #ededf1; background: #fafafb; }
.bp-coin { display: flex; align-items: center; gap: 7px; padding: 6px 8px; }
.bp-coin img { width: 20px; height: 20px; border-radius: 50%; }
.bp-coin b { display: block; font-size: 11.5px; font-weight: 700; line-height: 1.2; }
.bp-coin small { display: block; font-size: 9.5px; color: var(--muted); }
.bp-field { padding: 5px 8px 6px; border-top: 1px solid var(--line); }
.is-card .bp-field { border-top-color: #f1f5f9; }
.is-minimal .bp-field { border-top-color: #ededf1; }
.bp-field small { display: block; font-size: 9.5px; color: var(--muted); }
.bp-field p { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.bp-field b { font-size: 16px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.bp-field em { font-style: normal; font-size: 10px; font-weight: 700; color: var(--ink-2); }
.bp-field.is-out { background: #fbfbf9; border-radius: 0 0 9px 9px; }
.is-card .bp-field.is-out { background: #f8fafc; }
.is-minimal .bp-field.is-out { background: #f4f4f7; }
.bp-tear { position: relative; height: 0; margin: 10px -11px; border-top: 1.5px dashed var(--line); }
.bp-tear::before, .bp-tear::after { content: ''; position: absolute; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--p-page); }
.bp-tear::before { left: -6px; box-shadow: inset -1px 0 0 var(--line); }
.bp-tear::after { right: -6px; box-shadow: inset 1px 0 0 var(--line); }
.is-card .bp-tear { border-top-color: #cbd5e1; }
.is-card .bp-tear::before, .is-card .bp-tear::after { box-shadow: none; background: var(--brand); }
.is-minimal .bp-tear { border-top: 1px solid #ededf1; margin: 9px 0; }
.is-minimal .bp-tear::before, .is-minimal .bp-tear::after { display: none !important; }
.bp-cta { display: block; padding: 8px; border-radius: 8px; background: var(--brand); color: var(--on-brand); text-align: center; font-size: 12px; font-weight: 700; }
.bp-rates { margin: 11px 0 0; padding: 0 12px; color: var(--p-on); }
.bp-rates > b { font-size: 11px; font-weight: 700; }
.bp-rates > b small { margin-left: 3px; font-size: 9.5px; font-weight: 500; color: var(--p-on-2); }
.bp-rate-row { display: flex; gap: 12px; overflow: hidden; margin-top: 5px; padding: 6px 0; border-top: 1px solid var(--p-line); border-bottom: 1px solid var(--p-line); }
.is-card .bp-rates { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 11px; padding: 7px 9px; margin: 10px 10px 0; }
.is-card .bp-rate-row { border-top-color: rgba(255, 255, 255, .14); border-bottom-color: rgba(255, 255, 255, .14); }
.bp-rate { flex-shrink: 0; }
.bp-rate span { display: flex; align-items: center; gap: 3px; font-size: 9.5px; font-weight: 700; }
.bp-rate img { width: 11px; height: 11px; border-radius: 50%; }
.bp-rate b { display: block; margin-top: 1px; font-size: 10.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bp-empty { margin-top: 5px; font-size: 10px; color: var(--p-on-2); }
.bp-foot { margin-top: auto; padding: 8px 12px 12px; text-align: center; font-size: 9.5px; color: var(--p-on-2); }

/* Guided tour */
.d-tour { position: absolute; z-index: 60; width: 300px; padding: 15px 16px; background: var(--navy); color: #fff; border-radius: 14px; box-shadow: 0 20px 44px -18px rgba(13, 13, 89, .6); }
.d-tour b { display: block; font-size: 15px; font-weight: 700; }
.d-tour p { margin-top: 3px; font-size: 13.5px; line-height: 1.45; color: var(--on-navy-2); }
.d-tour-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 11px; font-size: 12.5px; color: var(--on-navy-3); }
.d-tour-foot > span:first-child button { color: var(--on-navy-2); text-decoration: underline; }
.d-tour-btns { display: flex; align-items: center; gap: 12px; }
.d-tour-btns > button:first-child { font-size: 13.5px; font-weight: 600; color: #fff; }
.d-tour-btns .d-btn-lime { padding: 7px 14px; font-size: 13.5px; border-radius: 9px; }
.d-tour-target { outline: 2px solid var(--lime); outline-offset: -2px; }

/* Sign in */
.m-modal { position: fixed; inset: 0; z-index: 70; display: none; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.m-modal.is-open { display: flex; }
.m-modal-bg { position: fixed; inset: 0; background: rgba(13, 13, 89, .62); }
.m-card { position: relative; width: 100%; max-width: 400px; margin: auto; padding: 28px; background: #fff; border-radius: 20px; }
.m-mark { display: block; height: 30px; width: auto; }
.m-card h2 { margin-top: 14px; font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
#auth-sub { margin-top: 4px; font-size: 14px; color: var(--muted); }
.m-x { position: absolute; top: 14px; right: 14px; display: inline-flex; padding: 6px; border-radius: 50%; color: var(--muted); }
.m-x:hover { background: var(--line-soft); color: var(--ink); }
.m-google { display: flex; justify-content: center; min-height: 44px; margin-top: 16px; }
.m-or { position: relative; margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--faint); }
.m-or::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }
.m-or span { position: relative; padding: 0 10px; background: #fff; }
.m-submit { width: 100%; margin-top: 16px; padding: 14px; font-size: 15.5px; border-radius: 12px; }
.m-switch { margin-top: 14px; font-size: 14px; color: var(--muted); text-align: center; }
.m-switch button { font-weight: 700; color: var(--navy); }
.m-fine { margin-top: 12px; font-size: 12px; color: var(--faint); text-align: center; }
.m-fine a { color: var(--muted); }

.m-toast { position: fixed; left: 50%; bottom: 22px; z-index: 80; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; transform: translate(-50%, 160%); opacity: 0; visibility: hidden; transition: transform .25s, opacity .25s; }
.m-toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* Order detail modal & clickable rows */
.d-mini.is-clickable { cursor: pointer; transition: background .15s; border-radius: 12px; padding: 10px 12px; margin: 0 -12px; }
.d-mini.is-clickable:hover { background: #fbfbf8; }
.d-table tbody tr.is-clickable { cursor: pointer; transition: background .12s; }
.d-table tbody tr.is-clickable:hover { background: #fafaf8; }

.ord-modal-card { max-width: 540px; max-height: 90vh; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 24px 26px; }
.ord-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-right: 32px; margin-bottom: 18px; }
.ord-head-main { display: flex; align-items: center; gap: 12px; }
.ord-head-main img { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.ord-head-titles { display: flex; flex-direction: column; gap: 4px; }
.ord-head-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ord-head-main h2 { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.25; }
.ord-head-main p { margin-top: 1px; font-size: 12.5px; color: var(--muted); }
.ord-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.ord-tag-prov { background: var(--brand-soft, #f1f1f8); color: var(--navy, #0D0D59); border: 1px solid var(--line, #e2e8f0); }
.ord-tag-net { background: #f4f4f5; color: #3f3f46; border: 1px solid #e4e4e7; }
.d-badge-mini { display: inline-flex; align-items: center; padding: 1px 6px; border-radius: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.d-badge-mini.is-net { background: #f4f4f5; color: #3f3f46; border: 1px solid #e4e4e7; }
.d-cell-row { display: flex; align-items: center; gap: 6px; }

/* Timeline progression steps */
.ord-timeline { display: flex; flex-direction: column; background: #fafaf8; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 16px; }
.ord-step { position: relative; display: flex; align-items: flex-start; gap: 12px; padding-bottom: 14px; }
.ord-step:last-child { padding-bottom: 0; }
.ord-step:not(:last-child)::before { content: ''; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.ord-step.is-done:not(:last-child)::before { background: #22c55e; }
.ord-step-dot { position: relative; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex-shrink: 0; z-index: 1; }
.ord-step.is-done .ord-step-dot { background: #22c55e; color: #fff; }
.ord-step.is-active .ord-step-dot { background: #f59e0b; color: #fff; box-shadow: 0 0 0 4px rgba(245, 158, 11, .2); animation: ordPulse 2s infinite; }
.ord-step.is-warn .ord-step-dot { background: #eab308; color: #fff; }
.ord-step.is-bad .ord-step-dot { background: #ef4444; color: #fff; }
.ord-step.is-pending .ord-step-dot { background: #e4e4e7; color: #71717a; }
.ord-step-body { flex: 1; min-width: 0; padding-top: 1px; }
.ord-step-title { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.ord-step.is-pending .ord-step-title { color: var(--muted); }
.ord-step.is-active .ord-step-title { color: #b45309; }
.ord-step.is-warn .ord-step-title { color: #a16207; }
.ord-step.is-bad .ord-step-title { color: #dc2626; }
.ord-step-desc { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.ord-step.is-active .ord-step-desc { color: #78350f; }

/* Scan to pay QR card */
.ord-qr-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; background: #ffffff; border: 1.5px solid var(--line); border-radius: 16px; padding: 18px 16px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0, 0, 0, .04); }
.ord-qr-header { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ord-qr-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; border-radius: 20px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.ord-qr-instruction { font-size: 13px; color: var(--ink-2); margin: 0; }
.ord-qr-wrap { padding: 10px; background: #ffffff; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(0, 0, 0, .06); display: inline-block; }
#ord-qr-code { width: 140px; height: 140px; display: flex; align-items: center; justify-content: center; }
#ord-qr-code canvas { display: none !important; }
#ord-qr-code img { display: block !important; margin: 0 auto; width: 140px !important; height: 140px !important; border-radius: 6px; }
.ord-addr-block { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px 10px; }
.ord-addr-block code { font-family: monospace; font-size: 12px; font-weight: 600; color: #0f172a; word-break: break-all; text-align: left; }
.ord-copy-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; background: var(--navy, #0D0D59); color: #fff; border: none; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: opacity .15s, transform .1s; }
.ord-copy-btn:hover { opacity: .9; }
.ord-copy-btn:active { transform: scale(.98); }
.ord-memo-callout { width: 100%; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 10px 12px; text-align: left; display: flex; flex-direction: column; gap: 5px; }
.ord-memo-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ord-memo-label { font-size: 11.5px; font-weight: 800; color: #92400e; text-transform: uppercase; letter-spacing: .03em; }
.ord-memo-val { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #fef3c7; padding: 6px 10px; border-radius: 8px; }
.ord-memo-val code { font-family: monospace; font-size: 13px; font-weight: 800; color: #78350f; word-break: break-all; }
.ord-memo-sub { font-size: 11px; color: #b45309; }
.ord-tech-notice { width: 100%; border-radius: 10px; padding: 10px 12px; font-size: 12px; line-height: 1.45; text-align: left; border-left: 3px solid #6366f1; background: #faf5ff; color: #312e81; }
.ord-link-subtle { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--navy, #0D0D59); text-decoration: none; cursor: pointer; background: none; border: none; padding: 0; font-family: inherit; }
.ord-link-subtle:hover { text-decoration: underline; }

/* Back link from order modal to customer detail */
.cus-back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--navy, #0D0D59); margin-bottom: 14px; cursor: pointer; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 8px; padding: 6px 12px; transition: background .12s, border-color .12s; font-family: inherit; width: fit-content; }
.cus-back-link:hover { background: #e2e8f0; border-color: #cbd5e1; }

/* ── Customer Details Modal ── */
.cus-modal-card { max-width: 580px; max-height: 90vh; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 24px 26px; }
.cus-modal-header { display: flex; align-items: center; gap: 16px; padding-right: 32px; margin-bottom: 20px; }
.cus-modal-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--navy, #0D0D59); color: #fff; font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 4px 12px rgba(13, 13, 89, 0.15); }
.cus-modal-titles { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.cus-modal-titles h2 { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.25; color: var(--ink, #0f172a); word-break: break-word; }
.cus-modal-email-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 1px; }
.cus-modal-email { font-size: 13.5px; font-weight: 600; color: var(--ink-2, #334155); word-break: break-all; }
.cus-copy-btn { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 11px; font-weight: 600; color: #475569; cursor: pointer; transition: background .12s, color .12s; font-family: inherit; }
.cus-copy-btn:hover { background: #e2e8f0; color: #1e293b; }
.cus-copy-btn .ico { width: 12px; height: 12px; }
.cus-modal-since { margin: 2px 0 0; font-size: 12px; color: var(--muted, #64748b); }

/* Customer stat tiles */
.cus-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
@media (min-width: 520px) {
  .cus-stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.cus-stat-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.cus-stat-card.is-highlight { background: #f0fdf4; border-color: #bbf7d0; }
.cus-stat-card small { font-size: 10.5px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .03em; }
.cus-stat-card.is-highlight small { color: #166534; }
.cus-stat-card b { font-size: 16px; font-weight: 800; color: #0f172a; }
.cus-stat-card b.is-earned { color: #15803d; }
.cus-stat-val { font-size: 13px; font-weight: 700; color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Quick actions */
.cus-actions-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.cus-action-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; font-size: 12.5px; font-weight: 600; border-radius: 8px; text-decoration: none; border: 1px solid var(--line, #e2e8f0); background: #fff; color: var(--ink, #0f172a); cursor: pointer; transition: all .15s; font-family: inherit; }
.cus-action-btn:hover { background: #f8fafc; border-color: #cbd5e1; }
.cus-action-btn .ico { width: 14px; height: 14px; }

/* History Section */
.cus-history-section { display: flex; flex-direction: column; gap: 12px; }
.cus-history-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cus-history-head h3 { margin: 0; font-size: 13px; font-weight: 800; color: var(--ink, #0f172a); text-transform: uppercase; letter-spacing: .04em; }
.cus-order-list { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-right: 2px; }
.cus-order-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line, #e2e8f0); transition: background .12s, border-color .12s, transform .1s; cursor: pointer; }
.cus-order-item:hover { background: #f8fafc; border-color: #cbd5e1; transform: translateY(-1px); }
.cus-order-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cus-order-left img { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; }
.cus-order-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cus-order-line1 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cus-order-line1 b { font-size: 13.5px; font-weight: 700; color: var(--ink, #0f172a); }
.cus-order-line2 small { font-size: 11.5px; color: var(--muted, #64748b); }
.cus-order-right { text-align: right; flex-shrink: 0; }
.cus-order-amt b { font-size: 13.5px; font-weight: 700; color: var(--ink, #0f172a); }
.cus-order-sub small { font-size: 11.5px; color: var(--muted, #64748b); }
.cus-history-empty { padding: 24px 16px; text-align: center; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 12px; color: var(--muted, #64748b); font-size: 13px; }

/* Interactive customer table row */
.d-customers tbody tr.is-clickable { cursor: pointer; transition: background .12s; }
.d-customers tbody tr.is-clickable:hover { background: #f8fafc; }
.d-customers tbody tr.is-clickable:hover .c-who .d-cell b { color: var(--navy, #0D0D59); }

/* Buy order bank pay card */
.ord-bank-pay-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 16px; padding: 16px; margin-bottom: 16px; display: grid; gap: 10px; }
.ord-bank-pay-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid #e2e8f0; }
.ord-bank-pay-pill { font-size: 11.5px; font-weight: 800; color: #1e293b; text-transform: uppercase; letter-spacing: .03em; }
.ord-bank-pay-head small { font-size: 11.5px; color: #64748b; }
.ord-bank-rows { display: grid; gap: 8px; font-size: 13px; }
.ord-bank-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ord-bank-row > span { font-size: 12.5px; color: #64748b; }
.ord-bank-row > b { font-size: 13.5px; color: #0f172a; }
.ord-bank-row.is-highlight { background: #f1f5f9; padding: 6px 10px; border-radius: 8px; }
.ord-bank-row.is-highlight code { font-size: 14px; font-weight: 800; color: #0f172a; letter-spacing: .02em; }
.ord-bank-tech-note { font-size: 11.5px; line-height: 1.4; color: #475569; margin: 4px 0 0; }

.ord-receipt { display: grid; gap: 12px; background: #fafaf7; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin-bottom: 16px; }
.ord-receipt-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.ord-receipt-hero small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.ord-receipt-hero b { display: block; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ord-dl { display: grid; gap: 10px; font-size: 13.5px; }
.ord-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ord-row dt { color: var(--muted); font-size: 13px; flex-shrink: 0; }
.ord-row dd { font-weight: 600; color: var(--ink); text-align: right; overflow-wrap: anywhere; }
.ord-val-copy { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.ord-val-copy code { font-family: monospace; font-size: 12.5px; }
.ord-copy { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 11.5px; font-weight: 600; cursor: pointer; color: var(--ink-2); transition: border-color .15s; }
.ord-copy:hover { border-color: var(--ink); color: var(--ink); }
.ord-btn-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 8px; padding: 11px 16px; border: 1px solid var(--line); border-radius: 11px; font-size: 13.5px; font-weight: 700; color: var(--ink); text-decoration: none; transition: background .15s, border-color .15s; }
.ord-btn-link:hover { background: var(--line-soft); border-color: var(--ink-2); }
.ord-btn-subtle { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.ord-btn-subtle:hover { background: #f4f4f5; color: var(--ink); }

@keyframes ordPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .4); }
  50% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
}

/* ── Landing: smaller screens ── */
@media (max-width: 1040px) {
  .l-hero-in { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .l-demo { max-width: 520px; }
  .l-split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .l-split-head { position: static; }
  .l-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
  .l-earn-in { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 860px) {
  .l-links { display: none; }
  .l-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 64px; }
  .l-wrap { padding: 0 18px; }
  .l-nav-in { height: 60px; gap: 10px; }
  .l-brand img { height: 22px; }
  .l-brand span { padding-left: 8px; font-size: 14px; }
  .l-nav-cta { gap: 12px; }
  .l-signin { font-size: 14px; }
  .l-nav .l-btn { padding: 8px 12px; font-size: 13.5px; }
  .l-hero-in { padding-top: 36px; padding-bottom: 44px; }
  .l-lede { font-size: 16.5px; }
  .l-hero-cta .l-btn-lg, .l-hero-cta .l-btn-line { flex: 1 1 100%; }
  .l-ticks { flex-direction: column; }
  .l-window-body { padding: 14px 16px 16px; }
  .l-tear { margin-left: -16px; margin-right: -16px; }
  .l-store-head small { display: none; }
  .l-ledger > div { padding: 10px 14px; }
  .l-strip { flex-direction: column; font-size: 13.5px; }
  .l-sec, .l-earn { padding: 68px 0; }
  .l-how { padding: 64px 0 72px; }
  .l-rows article { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 18px 0; }
  .l-steps { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 36px; }
  .l-steps li { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 8px; }
  .l-steps li::before { grid-row: 1 / span 2; font-size: 76px; }
  .l-steps h3 { margin-top: 6px; }
  .l-features { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 36px; }
  .l-faq summary { font-size: 16.5px; padding: 17px 0; }
  .l-faq details p { padding-right: 0; font-size: 15px; }
  .l-cta-in { padding-top: 64px; padding-bottom: 56px; }
  .l-cta .l-btn-lg { width: 100%; }
  .l-foot::before { left: 18px; right: 18px; }
}
@media (max-width: 420px) {
  .l-brand { gap: 8px; }
  .l-brand img { height: 19px; }
  .l-brand span { padding-left: 7px; font-size: 13px; }
  .l-nav-cta { gap: 10px; }
  .l-signin { font-size: 13.5px; }
  .l-nav .l-btn { padding: 8px 11px; font-size: 13px; }
}
@media (max-width: 374px) {
  .l-nav .l-brand span { display: none; }
}

/* ── Dashboard: narrower screens ── */
@media (max-width: 1080px) {
  .d-top-in { height: auto; flex-wrap: wrap; gap: 0 16px; padding-top: 10px; }
  .d-store { max-width: none; flex: 1; }
  .d-tabs { order: 3; width: 100%; height: 44px; margin: 6px 0 0 -13px; }
}
@media (max-width: 900px) {
  .d-two { grid-template-columns: minmax(0, 1fr); }
  .d-custom { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .d-custom-form { max-width: none; }
  .d-phone-wrap { position: static; }
  .d-prices-head { display: none; }
  .d-price-row { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px 0; }
  .d-side-cell { grid-template-columns: auto 88px minmax(0, 1fr); }
  .d-side-label { display: block; grid-column: 1 / -1; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: -4px; }
  .d-sim-body { grid-template-columns: 1fr; gap: 14px; }
  .d-asset-grid { grid-template-columns: 1fr; gap: 14px; }
  .d-steps { grid-template-columns: minmax(0, 1fr); }
  .d-steps button { border-left: 0; border-top: 1px solid var(--line-soft); padding: 12px 16px; }
  .d-steps button:first-child { border-top: 0; border-radius: 15px 15px 0 0; }
  .d-steps button:last-child { border-radius: 0 0 15px 15px; }
}

/* Phones: tabs along the bottom, every list a stack of cards */
@media (max-width: 760px) {
  .d-wrap { padding: 0 14px; }
  .d-main { padding-top: 18px; padding-bottom: 110px; }
  .d-top-in { height: 58px; padding-top: 0; flex-wrap: nowrap; }
  #hdr-view, .d-top-actions > a { display: none; }
  .d-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 28; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); width: auto; height: auto; margin: 0; padding: 4px 2px calc(4px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
  .d-tabs button { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 6px 0 4px; font-size: 10.5px; }
  .d-tabs button.is-on::after { left: 22%; right: 22%; top: -5px; bottom: auto; }
  .d-tabs .ico { display: block; width: 20px; height: 20px; }

  .d-head h1 { font-size: 24px; }
  .d-hero { border-radius: 18px; }
  .d-hero-main { padding: 20px 20px 0; }
  .d-hero-reason { padding-left: 20px; padding-right: 20px; }
  .d-kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 0; padding: 18px 20px 20px; }
  .d-kpis > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .d-kpis > div:nth-child(3):last-child { grid-column: 1 / -1; }
  .d-kpis dd { font-size: 20px; }
  .d-strip { padding: 14px 20px 16px; }
  .d-strip-url { flex-basis: 100%; order: 3; }
  .d-strip .d-btn-lime { width: 100%; }
  .d-strip-btns { flex: 1 1 100%; }
  .d-strip .d-st + .d-strip-btns { flex: 0 1 auto; margin-left: auto; }

  .d-display-opts { grid-template-columns: minmax(0, 1fr); }
  .d-display-opts label + label { border-left: 0; border-top: 1px solid var(--line); }

  .d-prices-head-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .d-rates-status-pill { align-self: flex-start; }
  .d-preset-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .d-preset-chips { justify-content: flex-start; }
  .d-preset-bulk { justify-content: flex-start; }
  .d-asset-card { padding: 16px 14px; border-radius: 16px; }
  .d-asset-side { padding: 14px 12px; }
  .d-step-btn { width: 42px; height: 42px; }
  .d-markup-stepper .d-markup { height: 42px; }
  .d-sim-quick-chips { width: 100%; justify-content: space-between; }
  .d-sim-chip { flex: 1; text-align: center; padding: 6px 4px; font-size: 11.5px; }

  .d-savebar { bottom: calc(58px + env(safe-area-inset-bottom)); padding: 10px 14px; z-index: 27; }
  .d-savebar .d-btn-quiet { padding: 9px 12px; }
  .d-savebar-note { font-size: 13px; }
  .d-custom { padding-bottom: 60px; }
  .m-toast { bottom: calc(74px + env(safe-area-inset-bottom)); }

  .d-toolbar .d-search { flex-basis: 100%; }
  .d-toolbar .d-filter { flex: 1; min-width: 0; }
  .d-csv { display: none; }

  .d-profile { flex-wrap: wrap; }
  .d-profile .d-btn { width: 100%; }
  .d-list > button, .d-list > div { padding: 13px 16px; }
  .d-form { padding: 18px 16px; }
  .d-grid-2, .d-grid-wd { grid-template-columns: minmax(0, 1fr); }
  .d-soon-line { padding: 14px 16px; }

  /* A table becomes one clean card per row on mobile */
  .d-table { min-width: 0; }
  .d-table thead { display: none; }
  .d-table, .d-table tbody { display: block; }
  .d-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 14px 16px; border-top: 1px solid var(--line-soft); }
  .d-table tbody tr:first-child { border-top: 0; }
  .d-table td, .d-table td:first-child, .d-table td:last-child { display: block; padding: 0; border: 0; min-width: 0; }
  .d-table .is-num { text-align: right; }
  .d-table .is-end { text-align: right; }

  /* Orders cards */
  .d-table.d-orders tr {
    grid-template-areas:
      "order status"
      "who   who"
      "amt   earn"
      "date  date";
  }
  .d-orders .c-order { grid-area: order; }
  .d-orders .c-st { grid-area: status; justify-self: end; align-self: start; }
  .d-orders .c-who { grid-area: who; padding: 3px 0 2px; }
  .d-orders .c-amt { grid-area: amt; text-align: left !important; }
  .d-orders .c-earn { grid-area: earn; text-align: right !important; }
  .d-orders .c-date { grid-area: date; text-align: left !important; font-size: 12.5px; color: var(--muted); }

  /* Customers cards */
  .d-table.d-customers tr {
    grid-template-areas:
      "who  num"
      "vol  vol"
      "date last";
  }
  .d-customers .c-who { grid-area: who; }
  .d-customers .c-num, .d-customers .c-orders { grid-area: num; text-align: right !important; }
  .d-customers .c-orders::before { content: 'Orders: '; font-size: 12px; color: var(--muted); font-weight: 500; }
  .d-customers .c-vol { grid-area: vol; padding: 2px 0; }
  .d-customers .c-vol b { font-size: 15px; color: var(--ink); }
  .d-customers .c-vol::before { content: 'Total volume: '; font-size: 12.5px; color: var(--muted); font-weight: 500; }
  .d-customers .c-date, .d-customers .c-joined { grid-area: date; text-align: left !important; font-size: 12.5px; color: var(--muted); }
  .d-customers .c-date::before, .d-customers .c-joined::before { content: 'Joined '; }
  .d-customers .c-last { grid-area: last; text-align: right !important; font-size: 12.5px; color: var(--muted); }
  .d-customers .c-last::before { content: 'Last: '; }
  .d-table.d-customers tr.is-clickable:active { background: #f1f5f9; }

  /* Withdrawals cards */
  .d-table.d-wds tr {
    grid-template-areas:
      "amt  status"
      "to   to"
      "date date";
  }
  .d-wds .c-amt { grid-area: amt; }
  .d-wds .c-st { grid-area: status; justify-self: end; align-self: start; }
  .d-wds .c-to { grid-area: to; padding: 2px 0; }
  .d-wds .c-date { grid-area: date; text-align: left !important; font-size: 12.5px; color: var(--muted); }
}

/* Top header share button */
.d-toplink-btn {
  background: none;
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all .15s ease;
}
.d-toplink-btn:hover {
  background: #f1f1f4;
  border-color: #d1d1d8;
}

/* Overview greeting row with share button */
.d-hello-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.d-hello-row .d-hello {
  margin-bottom: 0;
}
.d-btn-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0f172a;
  color: #ffffff;
  padding: 9px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .15s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .15);
}
.d-btn-share:hover {
  background: #1e293b;
  transform: translateY(-1px);
}
.d-btn-share .ico {
  width: 16px;
  height: 16px;
}

/* Orders toolbar actions */
.d-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.d-sound-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.d-sound-btn.is-off {
  color: var(--muted);
}

/* Offline / online network banner */
.d-net-banner {
  position: sticky;
  top: 0;
  z-index: 99;
  width: 100%;
  padding: 8px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  transition: all .25s ease;
}
.d-net-banner.is-offline {
  background: #fef2f2;
  color: #991b1b;
  border-bottom: 1px solid #fecaca;
}
.d-net-banner.is-online {
  background: #f0fdf4;
  color: #166534;
  border-bottom: 1px solid #bbf7d0;
}

/* Share exchange modal */
.share-modal-card {
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
}
.share-link-box {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}
.share-link-box input {
  flex: 1;
  font-family: monospace;
  font-size: 13.5px;
  background: #f8fafc;
}
.d-btn-copy {
  white-space: nowrap;
  padding: 0 16px;
  border-radius: 12px;
}
.share-channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all .15s ease;
}
.share-btn .ico {
  width: 16px;
  height: 16px;
}
.share-btn.is-wa {
  background: #25d366;
  color: #ffffff;
}
.share-btn.is-wa:hover {
  background: #20ba59;
}
.share-btn.is-x {
  background: #000000;
  color: #ffffff;
}
.share-btn.is-x:hover {
  background: #1a1a1a;
}
.share-btn.is-tg {
  background: #229ed9;
  color: #ffffff;
}
.share-btn.is-tg:hover {
  background: #1b89be;
}
.share-flyer-wrap {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 10px;
  text-align: center;
}
.share-flyer-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.share-flyer-preview {
  margin: 0 auto 16px;
  max-width: 320px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
  background: #000;
}
.share-flyer-preview canvas {
  display: block;
  width: 100%;
  height: auto;
}
.d-btn-block {
  width: 100%;
  justify-content: center;
}

@media (max-width: 480px) {
  .m-modal { align-items: flex-end; padding: 0; }
  .m-card { max-width: none; margin: auto 0 0; padding: 24px 20px calc(22px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; }
  .m-card::before { content: ''; display: block; width: 36px; height: 4px; border-radius: 2px; background: #dcdce2; margin: -8px auto 16px; }
  .d-custom .m-slug-wrap span { font-size: 13px; }
  .d-hero-main b { font-size: 44px; }
  .d-layouts { gap: 8px; }
  .d-layouts button { padding: 8px 6px 9px; font-size: 12.5px; border-radius: 10px; }
  .d-lay { height: 58px; margin-bottom: 5px; }
  .d-phone { max-width: 100%; width: 285px; }
  .d-phone-screen { height: 500px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
