/* ==========================================================================
   IT4ALL Affiliate — design system
   Tokens · base · components · app shell · admin console · auth
   ========================================================================== */

:root {
  /* brand */
  --cyan-50: #ecf9fc;
  --cyan-100: #d2f1f8;
  --cyan-200: #a6e3f1;
  --cyan-400: #3fc0da;
  --cyan-500: #1bb0ce;
  --cyan-600: #1197b3;
  --cyan-700: #0e7a92;
  --cyan-800: #0c6174;
  --navy-950: #0a171c;
  --navy-900: #0f2027;
  --navy-800: #162d36;
  --navy-700: #213f4b;
  --navy-600: #2f5462;
  --signal: #2f6bdb;

  /* neutrals (cool) */
  --white: #ffffff;
  --g-25: #fafcfd;
  --g-50: #f4f7f9;
  --g-100: #ebf0f3;
  --g-200: #dde4e9;
  --g-300: #c8d2d9;
  --g-400: #97a5b0;
  --g-500: #6c7c88;
  --g-600: #5b6b78;
  --g-700: #3c4b56;
  --g-800: #24323c;

  /* semantic */
  --bg: var(--g-50);
  --surface: var(--white);
  --surface-2: var(--g-25);
  --text: var(--navy-900);
  --text-2: var(--g-600);
  --text-3: var(--g-500);
  --border: var(--g-200);
  --border-strong: var(--g-300);
  --brand: var(--cyan-500);
  --brand-strong: var(--cyan-700);
  --brand-soft: var(--cyan-50);
  --focus: 0 0 0 3px rgba(27, 176, 206, .32);

  --ok: #0f7a55;     --ok-bg: #e7f6ef;     --ok-bd: #bfe6d3;
  --warn: #9a5b00;   --warn-bg: #fdf4e3;   --warn-bd: #f3dcae;
  --bad: #b93228;    --bad-bg: #fdeeed;    --bad-bd: #f5c9c5;
  --info: #1f5fc4;   --info-bg: #ebf2fd;   --info-bd: #c6d8f6;
  --neutral: #4f5d68; --neutral-bg: #eef2f5; --neutral-bd: #dbe2e8;

  /* spacing (8px system) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 40px; --s-8: 48px; --s-9: 64px; --s-10: 96px;

  /* radius */
  --r-xs: 6px; --r-sm: 8px; --r: 10px; --r-md: 12px; --r-lg: 16px; --r-full: 999px;

  /* elevation */
  --sh-xs: 0 1px 2px rgba(15, 32, 39, .06);
  --sh-sm: 0 1px 2px rgba(15, 32, 39, .05), 0 2px 8px -2px rgba(15, 32, 39, .06);
  --sh-md: 0 2px 4px rgba(15, 32, 39, .04), 0 8px 20px -6px rgba(15, 32, 39, .12);
  --sh-lg: 0 4px 8px rgba(15, 32, 39, .04), 0 24px 48px -16px rgba(15, 32, 39, .24);

  /* type */
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 12px; --fs-sm: 13px; --fs-base: 14px; --fs-md: 15px; --fs-lg: 17px;
  --fs-xl: 20px; --fs-2xl: 24px; --fs-3xl: 30px;

  /* motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: 150ms; --t: 220ms; --t-slow: 380ms;

  --sidebar-w: 236px;
  --sidebar-w-collapsed: 68px;
  --topbar-h: 60px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: var(--fs-base); line-height: 1.55; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01", "ss03";
}
img, svg { display: block; max-width: 100%; }
.icon { flex: none; }
a { color: var(--brand-strong); text-decoration: none; }
a:hover { color: var(--cyan-800); }
h1, h2, h3, h4 { margin: 0; color: var(--text); line-height: 1.2; letter-spacing: -.015em; font-weight: 650; }
p { margin: 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--s-5) 0; }
::selection { background: var(--cyan-200); color: var(--navy-900); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-xs); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 200; background: var(--navy-900); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); transition: top var(--t-fast); }
.skip-link:focus { top: 12px; color: #fff; }
.muted { color: var(--text-2); }
.subtle { color: var(--text-3); font-size: var(--fs-sm); }
.num, .tabular { font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace; font-size: .92em; letter-spacing: 0; }
.nowrap { white-space: nowrap; }
.text-right { text-align: right; }
.text-ok { color: var(--ok); } .text-bad { color: var(--bad); } .text-warn { color: var(--warn); }
.stack { display: flex; flex-direction: column; gap: var(--s-4); }
.stack-sm { display: flex; flex-direction: column; gap: var(--s-2); }
.stack-lg { display: flex; flex-direction: column; gap: var(--s-5); }
.row { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.hide, [hidden] { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--text); --btn-bd: var(--border-strong);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg); font: 550 var(--fs-base)/1 var(--font); letter-spacing: -.005em;
  cursor: pointer; white-space: nowrap; user-select: none; overflow: hidden; isolation: isolate;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:hover { color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { box-shadow: var(--focus); border-radius: var(--r-sm); }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-primary { --btn-bg: var(--navy-900); --btn-fg: #fff; --btn-bd: var(--navy-900); box-shadow: 0 1px 2px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.08); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-101%);
  background: linear-gradient(100deg, var(--cyan-700), var(--cyan-500)); transition: transform var(--t-slow) var(--ease-out);
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary:hover { --btn-bd: var(--cyan-600); }
.btn-brand { --btn-bg: var(--cyan-500); --btn-fg: var(--navy-950); --btn-bd: var(--cyan-500); font-weight: 600; }
.btn-brand:hover { --btn-bg: var(--cyan-400); --btn-bd: var(--cyan-400); }
.btn-secondary:hover { --btn-bg: var(--g-50); --btn-bd: var(--g-400); }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--g-700); }
.btn-ghost:hover { --btn-bg: var(--g-100); --btn-fg: var(--text); }
.btn-soft { --btn-bg: var(--brand-soft); --btn-fg: var(--cyan-800); --btn-bd: transparent; }
.btn-soft:hover { --btn-bg: var(--cyan-100); }
.btn-danger { --btn-bg: var(--bad); --btn-fg: #fff; --btn-bd: var(--bad); }
.btn-danger:hover { --btn-bg: #a12a21; --btn-bd: #a12a21; }
.btn-danger-ghost { --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--bad); }
.btn-danger-ghost:hover { --btn-bg: var(--bad-bg); }
.btn-sm { height: 32px; padding: 0 12px; font-size: var(--fs-sm); gap: 6px; border-radius: 7px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: var(--fs-md); border-radius: var(--r); }
.btn-icon { width: 36px; padding: 0; }
.btn-sm.btn-icon { width: 32px; }
.btn-block { width: 100%; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading > * { visibility: hidden; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 16px; height: 16px; left: calc(50% - 8px); top: calc(50% - 8px);
  border-radius: 50%; border: 2px solid currentColor; border-color: var(--btn-fg) var(--btn-fg) transparent transparent;
  animation: spin .7s linear infinite; color: var(--btn-fg); opacity: .9; visibility: visible;
}
.btn.is-success { --btn-bg: var(--ok); --btn-bd: var(--ok); --btn-fg: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.inline-form { display: inline; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand-strong); font: inherit; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-5); }
.form-grid .span-2, .form-grid .field-wide { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.label { font-size: var(--fs-sm); font-weight: 560; color: var(--g-800); display: flex; align-items: center; gap: 6px; }
.req { color: var(--bad); font-weight: 600; }
.opt { margin-left: auto; font-size: var(--fs-xs); font-weight: 450; color: var(--text-3); }
.help { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.45; }
.error-text { display: none; font-size: var(--fs-xs); color: var(--bad); font-weight: 500; }
.has-error .error-text { display: block; }
.input {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text); font: 400 var(--fs-base)/1.4 var(--font);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.input::placeholder { color: var(--g-400); }
.input:hover { border-color: var(--g-400); }
.input:focus { outline: none; border-color: var(--cyan-500); box-shadow: var(--focus); }
.input[readonly] { background: var(--g-50); color: var(--g-700); }
.input[disabled] { background: var(--g-100); color: var(--g-500); cursor: not-allowed; }
.has-error .input { border-color: var(--bad); }
.has-error .input:focus { box-shadow: 0 0 0 3px rgba(185, 50, 40, .18); }
.is-valid .input { border-color: var(--ok-bd); }
.textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.55; }
.input[type="file"] { height: auto; padding: 8px; }
.input[type="color"] { width: 64px; padding: 4px; }
.select-wrap { position: relative; }
.select { appearance: none; padding-right: 34px; cursor: pointer; }
.select-caret { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--g-500); }
.select-sm .select { height: 34px; font-size: var(--fs-sm); padding-left: 10px; }
.input-group { position: relative; display: flex; }
.input-group .input { flex: 1; }
.input-addon-btn { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 34px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 6px; color: var(--g-500); cursor: pointer; }
.input-addon-btn:hover { background: var(--g-100); color: var(--text); }
.input-group:has(.input-addon-btn) .input { padding-right: 44px; }
.has-icon .input { padding-left: 36px; }
.input-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--g-400); pointer-events: none; }
.has-prefix .input { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-prefix { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--border-strong); border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); background: var(--g-50); color: var(--text-2); font-size: var(--fs-sm); }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: var(--fs-sm); color: var(--g-700); line-height: 1.5; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box { flex: none; width: 18px; height: 18px; margin-top: 1px; border: 1.5px solid var(--g-400); border-radius: 5px; display: grid; place-items: center; background: #fff; color: transparent; transition: all var(--t-fast); }
.check input:checked + .check-box { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.check input:focus-visible + .check-box { box-shadow: var(--focus); }
.has-error .check-box { border-color: var(--bad); }
.switch { position: relative; display: inline-flex; flex: none; cursor: pointer; }
.switch input[type="checkbox"] { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch-track { width: 38px; height: 22px; border-radius: 999px; background: var(--g-300); position: relative; transition: background var(--t); }
.switch-thumb { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform var(--t) var(--ease-out); }
.switch input:checked ~ .switch-track { background: var(--cyan-600); }
.switch input:checked ~ .switch-track .switch-thumb { transform: translateX(16px); }
.switch input:focus-visible ~ .switch-track { box-shadow: var(--focus); }
.toggle-row { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-5); padding: var(--s-4) 0; border-bottom: 1px solid var(--g-100); }
.toggle-row:last-child { border-bottom: 0; }
.toggle-text label { font-weight: 560; color: var(--g-800); font-size: var(--fs-base); }
.toggle-text .help { margin-top: 2px; }
.form-actions { display: flex; align-items: center; gap: var(--s-3); justify-content: flex-end; padding-top: var(--s-4); }
.form-actions.start { justify-content: flex-start; }
.form-section { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--s-6); padding: var(--s-6) 0; border-top: 1px solid var(--border); }
.form-section:first-child { border-top: 0; padding-top: 0; }
.form-section-head h2 { font-size: var(--fs-md); font-weight: 620; }
.form-section-head p { margin-top: 4px; color: var(--text-2); font-size: var(--fs-sm); }
.copy-field { display: flex; gap: 8px; }
.copy-field .input { flex: 1; min-width: 0; font-size: var(--fs-sm); }
.otp-input { display: flex; gap: 8px; justify-content: center; }
.otp-input input { width: 46px; height: 54px; text-align: center; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; padding: 0; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--sh-xs); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--g-100); flex-wrap: wrap; }
.card-head h2, .card-head h3 { font-size: var(--fs-md); font-weight: 620; letter-spacing: -.01em; }
.card-head p { font-size: var(--fs-sm); color: var(--text-2); margin-top: 2px; }
.card-body { padding: var(--s-5); }
.card-body.tight { padding: var(--s-4); }
.card-foot { padding: var(--s-3) var(--s-5); border-top: 1px solid var(--g-100); background: var(--surface-2); border-radius: 0 0 var(--r-md) var(--r-md); }
.card-link { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sm); font-weight: 550; }
.panel-plain { padding: var(--s-5); border-radius: var(--r-md); background: var(--surface-2); border: 1px dashed var(--border-strong); }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--r-full); font-size: 12px; font-weight: 560; white-space: nowrap; border: 1px solid transparent; line-height: 1; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-success { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-bd); }
.badge-warning { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-bd); }
.badge-danger { color: var(--bad); background: var(--bad-bg); border-color: var(--bad-bd); }
.badge-info { color: var(--info); background: var(--info-bg); border-color: var(--info-bd); }
.badge-neutral { color: var(--neutral); background: var(--neutral-bg); border-color: var(--neutral-bd); }
.badge-brand { color: var(--cyan-800); background: var(--cyan-50); border-color: var(--cyan-100); }
.badge-info .badge-dot { animation: pulse-dot 1.8s ease-in-out infinite; }
@keyframes pulse-dot { 50% { opacity: .35; } }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--r-full); background: var(--g-100); color: var(--g-700); font-size: var(--fs-xs); font-weight: 520; }

/* ---------- callouts ---------- */
.callout { display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--r); border: 1px solid; font-size: var(--fs-sm); line-height: 1.5; }
.callout .icon { margin-top: 1px; }
.callout strong { display: block; font-weight: 600; margin-bottom: 2px; }
.callout p strong { display: inline; margin: 0; }
.callout-info { background: var(--info-bg); border-color: var(--info-bd); color: #1a4f9f; }
.callout-warning { background: var(--warn-bg); border-color: var(--warn-bd); color: #7e4a00; }
.callout-danger { background: var(--bad-bg); border-color: var(--bad-bd); color: #962a22; }
.callout-success { background: var(--ok-bg); border-color: var(--ok-bd); color: #0b6646; }
.callout-brand { background: var(--cyan-50); border-color: var(--cyan-100); color: var(--cyan-800); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-4) var(--s-5); box-shadow: var(--sh-xs); min-width: 0; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat-label { font-size: var(--fs-sm); color: var(--text-2); font-weight: 500; }
.stat-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--g-100); color: var(--g-600); }
.stat-brand .stat-icon { background: var(--cyan-50); color: var(--cyan-700); }
.stat-ok .stat-icon { background: var(--ok-bg); color: var(--ok); }
.stat-warn .stat-icon { background: var(--warn-bg); color: var(--warn); }
.stat-value { margin-top: 10px; font-size: 26px; font-weight: 680; letter-spacing: -.025em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.stat-value .money-line { display: block; }
.stat-value .money-line + .money-line { font-size: 15px; font-weight: 600; color: var(--g-700); margin-top: 2px; letter-spacing: -.01em; }
.stat-meta { margin-top: 6px; font-size: var(--fs-xs); color: var(--text-3); }

/* ---------- tables ---------- */
.table-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--sh-xs); overflow: hidden; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--g-100); }
.toolbar-search { position: relative; flex: 1 1 220px; max-width: 320px; }
.toolbar-search .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--g-400); }
.toolbar-search .input { height: 34px; padding-left: 34px; font-size: var(--fs-sm); }
.toolbar-dates { display: flex; align-items: center; gap: 6px; color: var(--g-400); }
.toolbar-dates .input { height: 34px; width: 140px; font-size: var(--fs-sm); padding: 0 8px; }
.toolbar-end { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-sm); }
.table th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); text-align: left; font-weight: 560; color: var(--text-2); font-size: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table th.sortable a { color: inherit; display: inline-flex; align-items: center; gap: 4px; }
.table th.sortable a:hover, .table th.is-sorted a { color: var(--text); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--g-100); vertical-align: middle; color: var(--g-800); }
.table tbody tr { transition: background var(--t-fast); }
.table tbody tr:hover { background: #f8fbfc; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table .actions { text-align: right; white-space: nowrap; width: 1%; }
.table .actions > * { margin-left: 4px; }
.cell-main { font-weight: 560; color: var(--text); }
.cell-sub { font-size: var(--fs-xs); color: var(--text-3); margin-top: 1px; }
.cell-user { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.row-link { color: inherit; }
.row-link:hover { color: var(--brand-strong); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--g-100); font-size: var(--fs-sm); color: var(--text-2); flex-wrap: wrap; }
.pager-nav { display: flex; gap: 4px; }
.pager-btn { min-width: 32px; height: 32px; padding: 0 8px; display: grid; place-items: center; border-radius: 7px; color: var(--g-700); border: 1px solid transparent; font-variant-numeric: tabular-nums; }
.pager-btn:hover { background: var(--g-100); color: var(--text); }
.pager-btn.is-current { background: var(--navy-900); color: #fff; }
.pager-btn.is-disabled { color: var(--g-300); pointer-events: none; }
.pager-gap { padding: 0 4px; align-self: center; }
.table-card.is-loading .table-scroll { opacity: .45; pointer-events: none; transition: opacity var(--t-fast); }

/* ---------- empty / skeleton ---------- */
.empty { text-align: center; padding: var(--s-8) var(--s-5); max-width: 420px; margin: 0 auto; }
.empty-icon { width: 48px; height: 48px; margin: 0 auto var(--s-4); border-radius: 14px; display: grid; place-items: center; background: var(--cyan-50); color: var(--cyan-700); border: 1px solid var(--cyan-100); }
.empty h3 { font-size: var(--fs-md); font-weight: 620; }
.empty p { margin-top: 6px; color: var(--text-2); font-size: var(--fs-sm); }
.empty-action { margin-top: var(--s-4); display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.skeleton { position: relative; overflow: hidden; background: var(--g-100); border-radius: 6px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-line { height: 12px; margin: 8px 0; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; padding: 10px 14px; font-size: var(--fs-sm); font-weight: 540; color: var(--text-2); white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); }
.tab.is-active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--cyan-500); }
.seg { display: inline-flex; padding: 3px; background: var(--g-100); border-radius: 9px; gap: 2px; flex: none; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg button, .seg a { border: 0; background: transparent; padding: 5px 10px; font: 540 var(--fs-xs)/1.2 var(--font); color: var(--text-2); border-radius: 7px; cursor: pointer; white-space: nowrap; }
.seg .is-active { background: #fff; color: var(--text); box-shadow: var(--sh-xs); }

/* ---------- key/value ---------- */
.kv { margin: 0; display: grid; gap: 0; }
.kv-row { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--g-100); font-size: var(--fs-sm); }
.kv-row:last-child { border-bottom: 0; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; color: var(--text); font-weight: 500; word-break: break-word; }

/* ---------- avatar ---------- */
.avatar { --av-h: 190; flex: none; display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; font-weight: 620; color: hsl(var(--av-h) 45% 26%); background: hsl(var(--av-h) 55% 90%); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 28px; height: 28px; font-size: 11px; }
.avatar-md { width: 34px; height: 34px; font-size: 13px; }
.avatar-lg { width: 56px; height: 56px; font-size: 19px; }

/* ---------- progress ---------- */
.progress { height: 8px; border-radius: 999px; background: var(--g-100); overflow: hidden; }
.progress-bar { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan-600), var(--cyan-400)); transition: width .6s var(--ease-out); }
.ring { --p: 0; --size: 64px; width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--cyan-500) calc(var(--p) * 1%), var(--g-100) 0); flex: none; }
.ring::before { content: ""; grid-area: 1/1; width: calc(var(--size) - 12px); height: calc(var(--size) - 12px); border-radius: 50%; background: var(--surface); }
.ring span { grid-area: 1/1; position: relative; font-weight: 680; font-size: 15px; font-variant-numeric: tabular-nums; }

/* ---------- timeline / steps ---------- */
.flow { display: flex; align-items: center; gap: 0; flex-wrap: wrap; row-gap: 10px; }
.flow-step { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--text-3); font-weight: 520; }
.flow-step .flow-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--g-300); background: #fff; color: var(--g-400); }
.flow-step.is-done { color: var(--g-800); }
.flow-step.is-done .flow-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.flow-step.is-current { color: var(--text); }
.flow-step.is-current .flow-dot { border-color: var(--cyan-500); color: var(--cyan-700); box-shadow: 0 0 0 4px var(--cyan-50); }
.flow-step.is-failed .flow-dot { background: var(--bad); border-color: var(--bad); color: #fff; }
.flow-line { width: 28px; height: 1.5px; background: var(--g-200); margin: 0 8px; }
.flow-step.is-done + .flow-line { background: var(--ok-bd); }

.activity { list-style: none; margin: 0; padding: 0; }
.activity li { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--g-100); }
.activity li:last-child { border-bottom: 0; }
.activity-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--g-100); color: var(--g-600); }
.activity-title { font-size: var(--fs-sm); font-weight: 550; }
.activity-sub { font-size: var(--fs-xs); color: var(--text-3); margin-top: 1px; }
.activity-time { font-size: var(--fs-xs); color: var(--text-3); white-space: nowrap; }

/* ---------- charts ---------- */
.chart { position: relative; width: 100%; height: 240px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .grid line { stroke: var(--g-100); }
.chart .axis text { fill: var(--g-500); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .series-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .series-area { opacity: .14; }
.chart .bar { transition: opacity var(--t-fast); }
.chart .bar:hover { opacity: .8; }
.chart .hover-line { stroke: var(--g-300); stroke-dasharray: 3 3; }
.chart .dot { stroke: #fff; stroke-width: 2; }
.chart-tip { position: absolute; pointer-events: none; z-index: 5; background: var(--navy-900); color: #fff; padding: 8px 10px; border-radius: 8px; font-size: 12px; box-shadow: var(--sh-md); white-space: nowrap; transform: translate(-50%, -110%); opacity: 0; transition: opacity var(--t-fast); }
.chart-tip.is-on { opacity: 1; }
.chart-tip b { font-variant-numeric: tabular-nums; }
.chart-legend { display: flex; gap: 16px; font-size: var(--fs-xs); color: var(--text-2); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 10px; height: 3px; border-radius: 2px; display: inline-block; }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--text-3); font-size: var(--fs-sm); }
.chart-enter .series-line { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw .9s var(--ease-out) forwards; }
.chart-enter .series-area, .chart-enter .bar { animation: fade-up .6s var(--ease-out) both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } }
.hbar { display: grid; gap: 10px; }
.hbar-row { display: grid; grid-template-columns: minmax(90px, 140px) 1fr auto; gap: 12px; align-items: center; font-size: var(--fs-sm); }
.hbar-track { height: 8px; background: var(--g-100); border-radius: 999px; overflow: hidden; }
.hbar-fill { height: 100%; background: var(--cyan-500); border-radius: inherit; width: 0; transition: width .8s var(--ease-out); }
.hbar-val { font-variant-numeric: tabular-nums; color: var(--g-700); font-weight: 560; min-width: 48px; text-align: right; }

/* ---------- modal / drawer / dropdown / toast ---------- */
.overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.48); backdrop-filter: blur(2px); opacity: 0; transition: opacity var(--t) var(--ease); }
.overlay.is-open { opacity: 1; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; pointer-events: none; }
.modal-dialog { pointer-events: auto; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-lg); border: 1px solid var(--border); opacity: 0; transform: translateY(8px) scale(.98); transition: opacity var(--t) var(--ease-out), transform var(--t) var(--ease-out); }
.modal.is-open .modal-dialog { opacity: 1; transform: none; }
.modal-lg .modal-dialog { max-width: 680px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 0; }
.modal-head h2 { font-size: var(--fs-lg); font-weight: 640; }
.modal-head p { color: var(--text-2); font-size: var(--fs-sm); margin-top: 4px; }
.modal-body { padding: 18px 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--g-100); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.modal-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 12px; }
.modal-icon.danger { background: var(--bad-bg); color: var(--bad); }
.modal-icon.warning { background: var(--warn-bg); color: var(--warn); }
.modal-icon.primary { background: var(--cyan-50); color: var(--cyan-700); }
template { display: none; }

.dropdown { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 220px; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--sh-lg); opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.dropdown.is-open .menu { opacity: 1; transform: none; pointer-events: auto; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 7px; border: 0; background: none; font: 500 var(--fs-sm)/1.3 var(--font); color: var(--g-800); text-align: left; cursor: pointer; }
.menu-item:hover { background: var(--g-50); color: var(--text); }
.menu-item.danger { color: var(--bad); }
.menu-sep { height: 1px; margin: 6px -6px; background: var(--g-100); }
.menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--g-100); margin: -6px -6px 6px; }
.menu-head strong { display: block; font-size: var(--fs-sm); }
.menu-head span { font-size: var(--fs-xs); color: var(--text-3); }
.notif-menu { width: 360px; max-width: calc(100vw - 24px); padding: 0; }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--g-100); }
.notif-list { max-height: 380px; overflow-y: auto; }
.notif-item { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--g-100); color: var(--g-800); }
.notif-item:hover { background: var(--g-50); color: var(--text); }
.notif-item.is-unread { background: #f4fbfd; }
.notif-item.is-unread .notif-title::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--cyan-500); vertical-align: 1px; }
.notif-title { font-size: var(--fs-sm); font-weight: 560; line-height: 1.35; }
.notif-body { font-size: var(--fs-xs); color: var(--text-2); margin-top: 2px; }
.notif-time { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.notif-foot { display: block; text-align: center; padding: 10px; font-size: var(--fs-sm); font-weight: 550; }
.dot-count { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; line-height: 1; box-shadow: 0 0 0 2px var(--surface); }

.toasts { position: fixed; z-index: 200; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--navy-900); color: #e9f3f6; box-shadow: var(--sh-lg); font-size: var(--fs-sm); line-height: 1.45; opacity: 0; transform: translateY(8px); transition: opacity var(--t) var(--ease-out), transform var(--t) var(--ease-out); }
.toast.is-in { opacity: 1; transform: none; }
.toast .icon { margin-top: 1px; }
.toast-success .icon { color: #5fd8a6; }
.toast-error .icon { color: #ff9a92; }
.toast-warning .icon { color: #ffc96b; }
.toast-info .icon { color: var(--cyan-400); }
.toast-msg { flex: 1; }
.toast-close { border: 0; background: none; color: #9fb4bd; cursor: pointer; padding: 0; }
.toast-close:hover { color: #fff; }

[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--navy-900); color: #fff; font-size: 11px; font-weight: 500; padding: 4px 8px; border-radius: 6px; white-space: nowrap; pointer-events: none; z-index: 70; }

/* ---------- page head ---------- */
.page-head { margin-bottom: var(--s-5); }
.crumbs { display: flex; align-items: center; gap: 4px; font-size: var(--fs-xs); color: var(--text-3); margin-bottom: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--text); }
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.page-title { font-size: var(--fs-2xl); font-weight: 680; letter-spacing: -.025em; }
.page-sub { color: var(--text-2); margin-top: 4px; max-width: 70ch; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-5); align-items: start; }
.split-wide { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.sticky-side { position: sticky; top: calc(var(--topbar-h) + 20px); }

/* ---------- numbered steps (tutorial + admin help) ---------- */
.tut-steps { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; max-width: 72ch; }
.tut-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 15px; color: var(--g-700); line-height: 1.6; }
.tut-steps li > span { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--g-100); color: var(--navy-900); font-weight: 680; font-size: 13px; font-variant-numeric: tabular-nums; }

/* ---------- provider cards (shared by site + app) ---------- */
.prov-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.prov-card { position: relative; display: flex; flex-direction: column; padding: 22px; border-radius: 14px; background: #fff; border: 1px solid var(--border); transition: border-color var(--t), box-shadow var(--t), transform var(--t) var(--ease-out); }
.prov-card:hover { border-color: var(--cyan-200); box-shadow: var(--sh-md); transform: translateY(-2px); }
/* User Hosting List: visually distinguish providers not ready for promotion. */
.prov-card-disabled { opacity: .65; border-style: dashed; filter: saturate(.55); }
.prov-card-disabled:hover { transform: none; box-shadow: none; border-color: var(--border); }
.prov-card-disabled .prov-actions .btn[disabled] { cursor: not-allowed; opacity: .7; }
.prov-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.prov-logo { height: 44px; min-width: 44px; max-width: 150px; display: flex; align-items: center; }
.prov-logo img { max-height: 36px; width: auto; object-fit: contain; }
.prov-mono { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-900); color: var(--cyan-400); font-weight: 760; font-size: 15px; }
.prov-card h3 { margin-top: 18px; font-size: 18px; font-weight: 680; letter-spacing: -.02em; }
.prov-cat { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.prov-desc { margin-top: 12px; font-size: 14px; color: var(--g-600); line-height: 1.55; flex: 1; }
.prov-meta { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.prov-actions { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--g-100); display: flex; gap: 8px; }
.prov-actions .btn { flex: 1; }

/* ==========================================================================
   App shell (affiliate dashboard)
   ========================================================================== */
.shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); transition: grid-template-columns var(--t) var(--ease); }
.shell.is-collapsed { grid-template-columns: var(--sidebar-w-collapsed) minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--border); z-index: 40; }
.sidebar-brand { height: var(--topbar-h); display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--g-100); }
.sidebar-brand img { height: 28px; width: auto; }
.brand-product { font-size: 12px; font-weight: 620; color: var(--cyan-700); background: var(--cyan-50); border: 1px solid var(--cyan-100); padding: 2px 7px; border-radius: 6px; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 12px 10px; scrollbar-width: thin; }
.nav-group { margin-bottom: 14px; }
.nav-group-label { padding: 6px 10px; font-size: 11px; font-weight: 600; color: var(--g-400); letter-spacing: .01em; }
.nav-item { position: relative; display: flex; align-items: center; gap: 11px; height: 36px; padding: 0 10px; border-radius: 8px; color: var(--g-700); font-weight: 520; font-size: var(--fs-sm); transition: background var(--t-fast), color var(--t-fast); }
.nav-item:hover { background: var(--g-50); color: var(--text); }
.nav-item.is-active { background: var(--cyan-50); color: var(--cyan-800); }
.nav-item.is-active::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--cyan-500); }
.nav-item .icon { color: currentColor; opacity: .85; }
.nav-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-count { font-size: 11px; font-weight: 650; padding: 1px 6px; border-radius: 999px; background: var(--g-100); color: var(--g-600); }
.nav-item.is-active .nav-count { background: var(--cyan-100); color: var(--cyan-800); }
.sidebar-foot { padding: 12px; border-top: 1px solid var(--g-100); }
/* Scroll arrows at the ends of the menu; JS shows one only while the menu can move that way and places
   it (top) over the menu's own edge. They are taken out of the flex flow on purpose: as flex children,
   showing one would shorten the menu, which lengthens its scroll, so the end could never be reached. */
.sidebar-arrow { position: absolute; left: 0; right: 9px; z-index: 46; display: flex; align-items: center; justify-content: center;
  height: 26px; margin: 0; padding: 0; border: 0; cursor: pointer; color: inherit; opacity: .75;
  background: var(--sidebar-bg, var(--chrome, var(--surface))); transition: opacity var(--t-fast), color var(--t-fast); }
.sidebar-arrow:hover, .sidebar-arrow:focus-visible { opacity: 1; color: var(--cyan-200); }
.sidebar-arrow[hidden] { display: none !important; }
.sidebar-arrow-up { box-shadow: 0 8px 12px -8px rgba(0, 0, 0, .5); }
.sidebar-arrow-down { box-shadow: 0 -8px 12px -8px rgba(0, 0, 0, .5); }

/* Orbit Rail: the menu's own scroll indicator on the sidebar edge, in the brand's orbit style
   (same glowing-dot language as .cms-orbit on the About page). Set by JS: --orbit-y, top, height. */
.orbit-rail { position: absolute; right: 3px; width: 3px; border-radius: 999px; background: rgb(var(--brand-rgb, 27 176 206) / .13); pointer-events: none; z-index: 45; }
.orbit-rail[hidden] { display: none !important; }
.orbit-rail::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--orbit-y, 0px); border-radius: inherit;
  background: linear-gradient(180deg, rgb(var(--brand-rgb, 27 176 206) / .06), rgb(var(--brand-rgb, 27 176 206) / .5)); transition: height var(--t) var(--ease-out); }
.orbit-rail-dot { position: absolute; left: 50%; top: 0; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--cyan-200);
  box-shadow: 0 0 9px 1px rgb(var(--brand-rgb, 27 176 206) / .85), 0 0 20px 3px rgb(var(--brand-rgb, 27 176 206) / .35);
  transform: translateY(var(--orbit-y, 0px)); transition: transform var(--t) var(--ease-out); animation: orbitPulse 2.8s ease-in-out infinite; }
@keyframes orbitPulse { 50% { box-shadow: 0 0 13px 2px rgb(var(--brand-rgb, 27 176 206) / .95), 0 0 28px 5px rgb(var(--brand-rgb, 27 176 206) / .5); } }
/* the rail takes the place of the menu's scrollbar (beats the thin scrollbar set in experience.css);
   scroll-padding keeps a keyboard-focused item from landing under an arrow */
.sidebar .sidebar-nav { scrollbar-width: none; scroll-padding-block: 30px; }
.sidebar .sidebar-nav::-webkit-scrollbar { width: 0; height: 0; }
@media (prefers-reduced-motion: reduce) {
  .orbit-rail-dot { animation: none; }
  .orbit-rail-dot, .orbit-rail::before { transition: none; }
}
.code-card { padding: 10px 12px; border-radius: 10px; background: var(--g-50); border: 1px solid var(--g-100); }
.code-card small { display: block; font-size: 11px; color: var(--text-3); }
.code-card .row-between { flex-wrap: nowrap; }
.code-card strong { font-size: 15px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.shell.is-collapsed .nav-label, .shell.is-collapsed .nav-count, .shell.is-collapsed .nav-group-label, .shell.is-collapsed .brand-product, .shell.is-collapsed .sidebar-foot, .shell.is-collapsed .sidebar-brand img.brand-full { display: none; }
.shell.is-collapsed .nav-item { justify-content: center; padding: 0; }
.shell.is-collapsed .sidebar-brand { justify-content: center; padding: 0; }
.brand-mark { display: none; width: 30px; height: 30px; border-radius: 8px; background: var(--navy-900); color: var(--cyan-400); font-weight: 800; font-size: 12px; place-items: center; letter-spacing: -.02em; }
.shell.is-collapsed .brand-mark { display: grid; }
.shell.is-collapsed .nav-item:hover::after { content: attr(data-label); position: absolute; left: calc(100% + 10px); background: var(--navy-900); color: #fff; padding: 5px 9px; border-radius: 6px; font-size: 12px; white-space: nowrap; z-index: 80; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; height: var(--topbar-h); display: flex; align-items: center; gap: 8px; padding: 0 24px; background: rgba(244, 247, 249, .82); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color var(--t), background var(--t); }
.topbar.is-scrolled { border-bottom-color: var(--border); background: rgba(255, 255, 255, .86); }
.topbar-title { font-weight: 600; font-size: var(--fs-md); display: none; }
.topbar-spacer { flex: 1; }
.topbar .btn-icon { position: relative; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: 999px; border: 1px solid transparent; background: none; cursor: pointer; font: inherit; color: var(--text); }
.user-chip:hover { background: var(--surface); border-color: var(--border); }
.user-chip-name { font-size: var(--fs-sm); font-weight: 560; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.content { padding: 24px; width: 100%; max-width: 1320px; margin: 0 auto; flex: 1; }
.content-narrow { max-width: 960px; }
.mobile-only { display: none !important; }

.banner { display: flex; align-items: center; gap: 12px; padding: 10px 24px; font-size: var(--fs-sm); background: var(--warn-bg); color: #7e4a00; border-bottom: 1px solid var(--warn-bd); }
.banner .btn { margin-left: auto; }

/* ==========================================================================
   Admin console — distinct, denser, navy
   ========================================================================== */
.console { --sidebar-w: 228px; }
.console .sidebar { background: var(--navy-900); border-right: 0; color: #c3d3da; }
.console .sidebar-brand { border-bottom: 1px solid rgba(255,255,255,.06); }
.console .brand-product { color: var(--cyan-200); background: rgb(var(--brand-rgb) / .12); border-color: rgb(var(--brand-rgb) / .25); }
.console .nav-group-label { color: var(--cyan-500); }
.console .nav-item { color: #aebfc7; height: 32px; font-size: 13px; }
.console .nav-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.console .nav-item.is-active { background: rgb(var(--brand-rgb) / .14); color: #fff; }
.console .nav-item.is-active::before { left: -10px; background: var(--cyan-400); }
.console .nav-count { background: rgba(255,255,255,.08); color: #d7e5ea; }
.console .nav-item.is-active .nav-count { background: var(--cyan-500); color: var(--navy-950); }
.console .sidebar-foot { border-top: 1px solid rgba(255,255,255,.06); }
.console .brand-mark { background: var(--cyan-500); color: var(--navy-950); }
.console .topbar { background: rgba(255,255,255,.9); border-bottom: 1px solid var(--border); }
.console .content { max-width: 1440px; padding: 20px 24px; }
.console .page-title { font-size: 22px; }
.console .table td { padding: 10px 14px; }
.console .stat-value { font-size: 24px; }
.cmdk-trigger { display: flex; align-items: center; gap: 10px; height: 36px; width: min(420px, 100%); padding: 0 10px 0 12px; border-radius: 9px; border: 1px solid var(--border); background: var(--g-50); color: var(--text-3); font: 450 var(--fs-sm) var(--font); cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
.cmdk-trigger:hover { border-color: var(--border-strong); background: #fff; }
.cmdk-trigger kbd, .kbd { margin-left: auto; font: 600 11px var(--font); color: var(--g-500); background: #fff; border: 1px solid var(--border); border-bottom-width: 2px; padding: 1px 6px; border-radius: 5px; }
.env-pill { font-size: 11px; font-weight: 650; color: var(--navy-900); background: var(--cyan-100); padding: 3px 8px; border-radius: 6px; }
.cmdk { position: fixed; inset: 0; z-index: 120; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; pointer-events: none; }
.cmdk-panel { pointer-events: auto; width: 100%; max-width: 620px; background: #fff; border-radius: 14px; box-shadow: var(--sh-lg); border: 1px solid var(--border); overflow: hidden; opacity: 0; transform: translateY(-6px) scale(.985); transition: opacity var(--t) var(--ease-out), transform var(--t) var(--ease-out); }
.cmdk.is-open .cmdk-panel { opacity: 1; transform: none; }
.cmdk-input { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--g-100); color: var(--g-400); }
.cmdk-input input { flex: 1; height: 54px; border: 0; outline: none; font: 450 16px var(--font); color: var(--text); background: transparent; }
.cmdk-results { max-height: 420px; overflow-y: auto; padding: 6px; }
.cmdk-group { padding: 8px 10px 4px; font-size: 11px; font-weight: 600; color: var(--g-400); }
.cmdk-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; color: var(--g-800); }
.cmdk-item .icon { color: var(--g-400); }
.cmdk-item.is-active { background: var(--cyan-50); color: var(--cyan-800); }
.cmdk-item.is-active .icon { color: var(--cyan-700); }
.cmdk-item-title { font-size: var(--fs-sm); font-weight: 550; }
.cmdk-item-sub { font-size: var(--fs-xs); color: var(--text-3); }
.cmdk-empty { padding: 28px 16px; text-align: center; color: var(--text-3); font-size: var(--fs-sm); }
.cmdk-foot { display: flex; gap: 14px; padding: 8px 14px; border-top: 1px solid var(--g-100); font-size: 11px; color: var(--text-3); background: var(--surface-2); }

.health-list { list-style: none; margin: 0; padding: 0; }
.health-item { display: grid; grid-template-columns: 28px 180px 1fr; gap: 14px; align-items: start; padding: 14px 20px; border-bottom: 1px solid var(--g-100); font-size: var(--fs-sm); }
.health-item:last-child { border-bottom: 0; }
.health-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; }
.health-ok .health-ico { background: var(--ok-bg); color: var(--ok); }
.health-warning .health-ico { background: var(--warn-bg); color: var(--warn); }
.health-error .health-ico { background: var(--bad-bg); color: var(--bad); }
.health-item strong { font-weight: 600; padding-top: 4px; }
.health-item p { padding-top: 4px; color: var(--g-700); word-break: break-word; }

.settings-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s-5); align-items: start; }
.settings-nav { position: sticky; top: calc(var(--topbar-h) + 16px); display: flex; flex-direction: column; gap: 2px; }
.settings-nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--g-700); font-size: var(--fs-sm); font-weight: 520; }
.settings-nav a:hover { background: var(--g-100); color: var(--text); }
.settings-nav a.is-active { background: #fff; color: var(--text); box-shadow: var(--sh-xs); border: 1px solid var(--border); }

.thread { display: flex; flex-direction: column; gap: 14px; }
.msg { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; }
.msg-bubble { background: #fff; border: 1px solid var(--border); border-radius: 4px 14px 14px 14px; padding: 12px 14px; box-shadow: var(--sh-xs); }
.msg-admin .msg-bubble { background: #f3fafc; border-color: var(--cyan-100); }
.msg-system .msg-bubble { background: var(--g-50); border-style: dashed; }
.msg-internal .msg-bubble { background: #fffaf0; border-color: var(--warn-bd); }
.msg-meta { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--text-3); margin-bottom: 6px; flex-wrap: wrap; }
.msg-meta strong { color: var(--g-800); font-size: var(--fs-sm); }
.msg-text { white-space: pre-wrap; word-break: break-word; font-size: var(--fs-base); color: var(--g-800); line-height: 1.6; }
.attachments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.attachment { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: var(--fs-xs); color: var(--g-800); max-width: 260px; }
.attachment:hover { border-color: var(--cyan-400); color: var(--text); }
.attachment span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropzone { position: relative; border: 1.5px dashed var(--border-strong); border-radius: var(--r-md); padding: 18px; text-align: center; background: var(--surface-2); transition: border-color var(--t-fast), background var(--t-fast); }
.dropzone.is-over { border-color: var(--cyan-500); background: var(--cyan-50); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone p { font-size: var(--fs-sm); color: var(--text-2); }
.dropzone strong { color: var(--brand-strong); }
.file-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.file-list li { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--g-700); background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; }
.file-list li span:first-of-type { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-tile { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); }
.doc-preview { aspect-ratio: 16/10; border-radius: 8px; background: var(--g-100); overflow: hidden; display: grid; place-items: center; color: var(--g-400); }
.doc-preview img { width: 100%; height: 100%; object-fit: cover; filter: blur(0); }
.doc-preview.is-blurred img { filter: blur(14px); }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); background: #fff; }
.auth-main { display: flex; flex-direction: column; padding: 28px clamp(20px, 5vw, 64px); }
.auth-top { display: flex; align-items: center; justify-content: space-between; }
.auth-top img { height: 30px; width: auto; }
.auth-form-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 0; }
.auth-form { width: 100%; max-width: 400px; }
.auth-form h1 { font-size: 28px; font-weight: 700; letter-spacing: -.03em; }
.auth-form .lede { color: var(--text-2); margin-top: 8px; margin-bottom: 26px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--text-3); font-size: var(--fs-xs); }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-alt { margin-top: 22px; text-align: center; font-size: var(--fs-sm); color: var(--text-2); }
.auth-foot { font-size: var(--fs-xs); color: var(--text-3); display: flex; gap: 16px; flex-wrap: wrap; }
.auth-foot a { color: var(--text-3); }
.btn-google { --btn-bg: #fff; --btn-fg: var(--g-800); --btn-bd: var(--border-strong); height: 44px; font-weight: 560; }
.btn-google:hover { --btn-bg: var(--g-50); }
.auth-aside { position: relative; overflow: hidden; background: var(--navy-900); color: #d5e4ea; padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.auth-aside::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 80% 10%, rgb(var(--brand-rgb) / .22), transparent 70%), radial-gradient(40% 40% at 0% 100%, rgba(47,107,219,.18), transparent 70%); }
.auth-aside > * { position: relative; }
.auth-aside h2 { color: #fff; font-size: clamp(24px, 2.4vw, 32px); font-weight: 680; letter-spacing: -.03em; max-width: 20ch; }
.auth-aside p { margin-top: 12px; max-width: 46ch; color: #a9c0c9; }
.auth-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; max-width: 440px; }
.auth-points li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; font-size: var(--fs-sm); color: #c7d8de; }
.auth-points .icon-tile { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgb(var(--brand-rgb) / .14); color: var(--cyan-400); border: 1px solid rgb(var(--brand-rgb) / .22); }
.auth-points b { display: block; color: #fff; font-weight: 600; margin-bottom: 1px; }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.pw-meter i { height: 4px; border-radius: 2px; background: var(--g-200); transition: background var(--t); }
.pw-meter[data-score="1"] i:nth-child(-n+1) { background: var(--bad); }
.pw-meter[data-score="2"] i:nth-child(-n+2) { background: #e38b1d; }
.pw-meter[data-score="3"] i:nth-child(-n+3) { background: var(--cyan-500); }
.pw-meter[data-score="4"] i { background: var(--ok); }

/* ---------- minimal (error pages) ---------- */
.minimal { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.error-card { max-width: 460px; text-align: center; }
.error-code { font-size: 72px; font-weight: 800; letter-spacing: -.05em; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--g-300); }
.error-card h1 { margin-top: 12px; font-size: 22px; font-weight: 680; }
.error-card p { margin-top: 8px; color: var(--text-2); }
.error-actions { margin-top: 22px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.error-ref { margin-top: 18px; font-size: var(--fs-xs); color: var(--text-3); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .sticky-side { position: static; }
}
@media (max-width: 1024px) {
  .shell, .shell.is-collapsed { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; height: 100%; transform: translateX(-100%); transition: transform var(--t-slow) var(--ease-out); box-shadow: var(--sh-lg); }
  .shell.is-drawer-open .sidebar { transform: none; }
  .sidebar { z-index: 100; } /* the drawer sits above its dimmed, blurred backdrop (.overlay, z 90) */
  .shell:not(.console) .sidebar { background: #fff; }
  html[data-theme=dark] .shell:not(.console) .sidebar { background: var(--navy-900); }
  .shell.is-collapsed .nav-label, .shell.is-collapsed .nav-group-label, .shell.is-collapsed .nav-count, .shell.is-collapsed .sidebar-foot, .shell.is-collapsed .brand-product, .shell.is-collapsed .sidebar-brand img.brand-full { display: revert; }
  .shell.is-collapsed .brand-mark { display: none; }
  .shell.is-collapsed .nav-item { justify-content: flex-start; padding: 0 10px; }
  .shell.is-collapsed .sidebar-brand { justify-content: flex-start; padding: 0 16px; }
  .mobile-only { display: inline-flex !important; }
  .desktop-only { display: none !important; }
  .topbar { padding: 0 16px; }
  .topbar-title { display: block; }
  .content, .console .content { padding: 18px 16px; }
  .split-wide { grid-template-columns: minmax(0, 1fr); }
  .settings-layout { grid-template-columns: minmax(0, 1fr); }
  .settings-nav { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .settings-nav a { white-space: nowrap; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-aside { display: none; }
}
@media (max-width: 760px) {
  .grid-2, .grid-3, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-section { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .page-title { font-size: 21px; }
  .card-body { padding: var(--s-4); }
  .card-head { padding: var(--s-3) var(--s-4); }
  .toolbar-search { max-width: none; flex-basis: 100%; }
  .toolbar-end { margin-left: 0; }
  .health-item { grid-template-columns: 28px 1fr; }
  .health-item p { grid-column: 2; padding-top: 0; }
  /* tables become stacked cards */
  .table-cards thead { display: none; }
  .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards tr { padding: 12px 14px; border-bottom: 1px solid var(--g-100); }
  .table-cards tbody tr:hover { background: transparent; }
  .table-cards td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 0; border: 0; text-align: right; }
  .table-cards td::before { content: attr(data-label); color: var(--text-3); font-size: var(--fs-xs); font-weight: 500; text-align: left; flex: none; }
  .table-cards td[data-label=""]::before, .table-cards td:not([data-label])::before { display: none; }
  .table-cards td.cell-primary { display: block; text-align: left; padding-bottom: 6px; }
  .table-cards td.cell-primary::before { display: none; }
  .table-cards td.actions { justify-content: flex-end; width: 100%; padding-top: 8px; }
  .table-cards .num { text-align: right; }
  .modal { align-items: end; padding: 0; }
  .modal-dialog { max-width: none; border-radius: 18px 18px 0 0; max-height: 92vh; transform: translateY(24px); }
  .toasts { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .user-chip-name { display: none; }
  .kv-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 14px; }
  .stat-icon { display: none; }
  .stat-value { font-size: 20px; margin-top: 6px; }
  .stat-value .money-line + .money-line { font-size: 13px; }
  .stat .stat-sub, .stat > p { font-size: 12px; }
  .otp-input input { width: 40px; height: 50px; }
  .content, .console .content { padding: 16px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

@media print {
  .sidebar, .topbar, .toolbar, .pager, .toasts, .page-actions { display: none !important; }
  .shell { display: block; }
  .card, .table-card { box-shadow: none; }
}

@media (max-width: 1180px) { .prov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .prov-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .flow { flex-direction: column; align-items: flex-start; row-gap: 12px; }
  .flow-line { display: none; }
}
.seg::-webkit-scrollbar { display: none; }
@media (max-width: 420px) {
  .toolbar-dates { flex-wrap: wrap; min-width: 0; max-width: 100%; }
  .toolbar-dates .input { min-width: 0; flex: 1 1 120px; }
}

/* ---------- brand logos (hostings, payout methods) ---------- */
.pay-logo { flex: none; display: inline-grid; place-items: center; border-radius: 10px; background: #fff; border: 1px solid var(--border); overflow: hidden; }
.pay-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.pay-logo.is-fallback { background: var(--g-100); color: var(--g-600); border-color: transparent; }
.method-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.method-opt { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-size: var(--fs-sm); font-weight: 560; transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast); }
.method-opt input { position: absolute; opacity: 0; pointer-events: none; }
.method-opt:hover { border-color: var(--g-300); }
.method-opt:has(input:checked) { border-color: var(--cyan-500); background: var(--cyan-50); box-shadow: 0 0 0 3px rgb(var(--brand-rgb) / .15); }
.method-opt:has(input:focus-visible) { outline: 2px solid var(--cyan-500); outline-offset: 2px; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.logo-upload { display: flex; align-items: center; gap: 10px; }
.logo-upload .input[type=file] { flex: 1; min-width: 0; padding-top: 6px; }
.logo-preview { flex: none; width: 48px; height: 48px; border-radius: 10px; border: 1px solid var(--border); background: #fff; display: grid; place-items: center; color: var(--g-400); overflow: hidden; }
.logo-preview img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.input-file-sm { height: 34px; font-size: 12px; padding: 5px 8px; }

/* ---------- settings overview + cache ---------- */
.set-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.set-tile { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); color: var(--text); box-shadow: var(--sh-xs); transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast), border-color var(--t-fast); }
.set-tile:hover { transform: translateY(-2px); border-color: var(--cyan-200, var(--cyan-200)); box-shadow: 0 12px 28px -18px rgba(0,0,0,.35); }
.set-tile-ico { flex: none; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--cyan-50); color: var(--cyan-700); }
.set-tile-body { min-width: 0; flex: 1; }
.set-tile-body strong { display: block; font-size: var(--fs-md, 15px); font-weight: 640; }
.set-tile-body small { display: block; margin-top: 2px; color: var(--text-3); font-size: var(--fs-xs); line-height: 1.45; }
.set-tile-go { color: var(--g-400); transition: transform var(--t-fast); }
.set-tile:hover .set-tile-go { transform: translateX(3px); color: var(--cyan-600); }
.cache-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cache-stat { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }
.cache-stat small { display: block; font-size: var(--fs-xs); color: var(--text-3); }
.cache-stat strong { display: block; font-size: 14px; font-weight: 640; }
.cache-ico, .purge-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--g-100); color: var(--g-700); }
.purge-list { display: grid; gap: 10px; }
.purge-opt { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
.purge-opt input { width: 18px; height: 18px; accent-color: var(--cyan-600); flex: none; }
.purge-opt strong { display: block; font-size: 14px; font-weight: 620; }
.purge-opt small { display: block; font-size: var(--fs-xs); color: var(--text-3); margin-top: 2px; }
.purge-opt:has(input:checked) { border-color: var(--cyan-500); background: var(--cyan-50); }
.purge-opt:has(input:checked) .purge-ico { background: #fff; color: var(--cyan-700); }
@media (max-width: 1100px) { .cache-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .cache-grid { grid-template-columns: minmax(0, 1fr); } .set-tiles { grid-template-columns: minmax(0, 1fr); } }
/* payout methods editor */
.pm-list { display: grid; }
.pm-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; padding: 20px; border-top: 1px solid var(--g-100); }
.pm-row:first-child { border-top: 0; }
.pm-drop { position: relative; flex-direction: column; gap: 6px; cursor: pointer; padding: 10px; border: 1px dashed var(--g-300); border-radius: 14px; align-items: center; transition: border-color var(--t-fast), background var(--t-fast); }
.pm-drop:hover { border-color: var(--cyan-500); background: var(--cyan-50); }
.pm-drop:focus-within { outline: 2px solid var(--cyan-500); outline-offset: 2px; }
.pm-drop-txt { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--text-3); }
.pm-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 90px auto; gap: 12px; align-items: start; }
.pm-bottom { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.pm-active { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; padding-top: 2px; }
.pm-active .label { margin: 0; white-space: nowrap; }
.pm-remove { margin-top: 8px; font-size: 12px; }
@media (max-width: 900px) {
  .pm-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pm-active { align-items: flex-start; flex-direction: row; align-items: center; }
  .pm-bottom { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .pm-row { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px; }
  .pm-logo { justify-self: start; }
}

/* ---------- Auto Tracking (hosting connectors) ---------- */
.at-head { padding: 22px 24px; display: grid; gap: 20px; }
.at-head-main { display: flex; gap: 16px; align-items: flex-start; }
.at-head-main h2 { font-size: 18px; font-weight: 680; letter-spacing: -.01em; }
.at-head-main p { margin-top: 4px; color: var(--text-2); font-size: var(--fs-sm); max-width: 78ch; line-height: 1.55; }
.at-ico { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--cyan-50); color: var(--cyan-700); }
.at-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.at-facts > div { padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; min-width: 0; }
.at-facts small { display: block; font-size: var(--fs-xs); color: var(--text-3); margin-bottom: 4px; }
.at-facts strong { display: block; font-size: 14px; font-weight: 640; overflow-wrap: anywhere; }
.at-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; counter-reset: at; }
.at-flow li { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; color: var(--text-2); line-height: 1.45; }
.at-flow li > span { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--g-100); color: var(--cyan-700); }
.at-flow li b { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.at-flow li:not(:last-child)::after { content: ""; position: absolute; right: -9px; top: 28px; width: 8px; height: 2px; background: var(--cyan-500); opacity: .5; }
.at-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.at-opt { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast); }
.at-opt input { position: absolute; opacity: 0; pointer-events: none; }
.at-opt:hover { border-color: var(--g-300); }
.at-opt:has(input:checked) { border-color: var(--cyan-500); background: var(--cyan-50); box-shadow: 0 0 0 3px rgb(var(--brand-rgb) / .15); }
.at-opt:has(input:focus-visible) { outline: 2px solid var(--cyan-500); outline-offset: 2px; }
.at-opt-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.at-opt strong { font-size: 14px; font-weight: 650; }
.at-opt small { font-size: var(--fs-xs); color: var(--text-3); }
.at-panel { display: grid; gap: 16px; padding-top: 4px; }
.at-summary { font-size: var(--fs-sm); color: var(--text-2); }
.at-steps { list-style: none; margin: 0; padding: 14px 16px; display: grid; gap: 10px; border-radius: 12px; background: var(--g-50); border: 1px solid var(--border); }
.at-steps li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.at-steps li > span { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); font-size: 12px; font-weight: 680; color: var(--text); }
.at-log { list-style: none; margin: 0; padding: 0; }
.at-log li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--g-100); font-size: 13px; }
.at-log li:first-child { border-top: 0; }
.at-log li span:nth-child(2) { color: var(--text-2); min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 1100px) { .at-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } .at-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .at-flow li::after { display: none; } }
@media (max-width: 560px) {
  .at-head { padding: 18px 16px; }
  .at-head-main { flex-direction: column; }
  .at-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .at-flow { grid-template-columns: minmax(0, 1fr); }
  .at-log li { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 12px 16px; }
}
/* dark theme: callouts use theme tokens instead of fixed light-mode text colours */
html[data-theme=dark] .callout-warning { background: var(--warn-bg); border-color: var(--warn-bd); color: var(--warn); }
html[data-theme=dark] .callout-danger { background: var(--bad-bg); border-color: var(--bad-bd); color: var(--bad); }
html[data-theme=dark] .callout-success { background: var(--ok-bg); border-color: var(--ok-bd); color: var(--ok); }
html[data-theme=dark] .callout-info { background: var(--info-bg); border-color: var(--info-bd); color: var(--info); }
html[data-theme=dark] :is(.callout-warning, .callout-danger, .callout-success, .callout-info) :is(p, strong, a) { color: inherit; }
html[data-theme=dark] .callout a { text-decoration: underline; }
.at-opt .chip { white-space: nowrap; flex: none; }
@media (max-width: 560px) {
  .at-flow { gap: 6px; }
  .at-flow li { flex-direction: row; align-items: center; gap: 12px; padding: 10px 12px; }
  .at-flow li > span { flex: none; }
}
/* affiliate purchases: per-hosting sync status */
.feed-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.feed-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); min-width: 0; }
.feed-item strong { display: block; font-size: 13px; font-weight: 640; }
.feed-item small { display: block; font-size: 12px; color: var(--text-3); }
.feed-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--g-300); }
.feed-dot.is-live { background: var(--ok); box-shadow: 0 0 0 0 rgba(4,120,87,.45); animation: feedPulse 2.4s ease-out infinite; }
@keyframes feedPulse { to { box-shadow: 0 0 0 8px rgba(4,120,87,0); } }
@media (prefers-reduced-motion: reduce) { .feed-dot.is-live { animation: none; } }
@media (max-width: 560px) {
  .feed-strip { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -4px; padding: 0 4px 2px; }
  .feed-strip::-webkit-scrollbar { display: none; }
  .feed-item { flex: none; }
  .banner { flex-wrap: wrap; }
  .banner > span { flex: 1 1 200px; min-width: 0; }
  .banner .btn { flex: none; }
}
.at-hops { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.at-hops li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.at-hops li > span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--ok); }
.at-hops li.lost > span { background: var(--bad); }
.at-hops strong { font-size: 13px; font-weight: 640; }
.at-hops small { display: block; font-size: 11.5px; color: var(--text-3); overflow-wrap: anywhere; margin-top: 2px; }
.at-hops em { font-style: normal; font-size: 12px; color: var(--text-3); white-space: nowrap; }
/* QR codes */
.qr-dialog { max-width: 420px; }
.qr-body { display: grid; justify-items: center; gap: 10px; text-align: center; }
.qr-frame { padding: 12px; background: #fff; border: 1px solid var(--border); border-radius: 16px; }
.qr-frame canvas { display: block; width: 260px; height: 260px; image-rendering: pixelated; }
.qr-url { font-size: 12px; color: var(--text-2); overflow-wrap: anywhere; max-width: 100%; }
.link-actions { display: flex; gap: 8px; align-items: center; }
.link-actions .copy-field { flex: 1; min-width: 0; }
@media (max-width: 420px) { .qr-frame canvas { width: 220px; height: 220px; } }

/* ---------- link-in-bio public page ---------- */
.bio-body { min-height: 100vh; margin: 0; background: radial-gradient(120% 60% at 50% 0%, rgb(var(--brand-rgb) / .18), transparent 60%), linear-gradient(180deg, #f3f9fb, #e9f3f6); color: var(--text); }
html[data-theme=dark] .bio-body { background: radial-gradient(120% 60% at 50% 0%, rgb(var(--brand-rgb) / .22), transparent 60%), var(--navy-900); }
.bio-wrap { max-width: 520px; margin: 0 auto; padding: 48px 18px 36px; }
.bio-head { text-align: center; }
.bio-avatar { width: 88px; height: 88px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, var(--cyan-500), #2f6bdb); color: #fff; font-size: 30px; font-weight: 720; box-shadow: 0 12px 30px -12px rgb(var(--brand-rgb) / .6), 0 0 0 4px var(--surface); }
.bio-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bio-head h1 { margin-top: 16px; font-size: 24px; font-weight: 740; letter-spacing: -.02em; }
.bio-headline { margin-top: 4px; font-size: 15px; font-weight: 560; color: var(--cyan-700); }
.bio-about { margin: 10px auto 0; max-width: 40ch; font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
.bio-links { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.bio-link { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); color: var(--text); box-shadow: 0 6px 20px -14px rgba(0,0,0,.35); transition: transform .18s var(--ease-out), box-shadow .18s, border-color .18s; }
.bio-link:hover { transform: translateY(-2px); border-color: var(--cyan-500); box-shadow: 0 14px 30px -16px rgb(var(--brand-rgb) / .55); }
.bio-link:active { transform: translateY(0) scale(.99); }
.bio-logo { flex: none; width: 48px; height: 48px; border-radius: 12px; background: #fff; border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; font-weight: 720; color: var(--navy-900, var(--navy-800)); }
.bio-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.bio-text { flex: 1; min-width: 0; }
.bio-text strong { display: block; font-size: 16px; font-weight: 680; }
.bio-text small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-3); line-height: 1.4; }
.bio-go { flex: none; color: var(--cyan-700); }
.bio-empty { text-align: center; color: var(--text-3); margin-top: 24px; }
.bio-foot { margin-top: 36px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.bio-foot p { font-size: 12px; color: var(--text-3); max-width: 44ch; }
.bio-brand { height: 22px; width: auto; opacity: .8; }
.bio-brand-dark { display: none; }
html[data-theme=dark] .bio-brand-light { display: none; }
html[data-theme=dark] .bio-brand-dark { display: inline-block; }
.bio-join { font-size: 12.5px; font-weight: 600; color: var(--cyan-700); }
.anim-up { opacity: 0; transform: translateY(12px); animation: bioUp .5s var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
@keyframes bioUp { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .anim-up { animation: none; opacity: 1; transform: none; } .bio-link { transition: none; } }

/* bio editor: hosting chips */
.bio-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.bio-opt { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 560; }
.bio-opt input { accent-color: var(--cyan-600); }
.bio-opt img { width: 18px; height: 18px; object-fit: contain; }
.bio-opt:has(input:checked) { border-color: var(--cyan-500); background: var(--cyan-50); }

/* ---------- promo material ---------- */
.promo-logo { flex: none; width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; font-weight: 700; color: var(--navy-900, var(--navy-800)); }
.promo-logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; padding: 16px 20px 20px; }
.promo-item { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); min-width: 0; }
.promo-preview { border-radius: 10px; background: repeating-conic-gradient(var(--g-100) 0 25%, transparent 0 50%) 0 0 / 16px 16px; display: grid; place-items: center; min-height: 120px; max-height: 220px; overflow: hidden; }
.promo-preview img { max-width: 100%; max-height: 220px; object-fit: contain; }
.promo-info { min-width: 0; }
.promo-info strong { display: block; font-size: 14px; font-weight: 640; }
.promo-info p { margin-top: 4px; font-size: 13px; color: var(--text-2); line-height: 1.5; overflow-wrap: anywhere; }
.promo-info small { display: block; margin-top: 4px; font-size: 12px; color: var(--text-3); }
.promo-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.promo-ticket { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px; border: 2px dashed var(--cyan-500); background: var(--cyan-50); color: var(--cyan-800); font-size: 18px; font-weight: 720; letter-spacing: .04em; }
.promo-admin { list-style: none; margin: 0; padding: 0; }
.promo-admin > li { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 20px; border-top: 1px solid var(--g-100); }
.promo-admin > li:first-child { border-top: 0; }
.promo-thumb { width: 72px; height: 56px; border-radius: 10px; border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; background: var(--g-50); color: var(--g-500); }
.promo-thumb img { width: 100%; height: 100%; object-fit: contain; }
.promo-meta strong { display: block; font-size: 14px; font-weight: 640; }
.promo-meta small { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.promo-actions { display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap; justify-content: flex-end; }
.promo-edit { position: relative; }
.promo-edit > summary { list-style: none; }
.promo-edit > summary::-webkit-details-marker { display: none; }
.promo-edit[open] { grid-column: 1 / -1; width: 100%; }
.promo-edit-body { margin-top: 10px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--g-50); min-width: min(560px, 80vw); }
@media (max-width: 640px) {
  .promo-admin > li { grid-template-columns: 56px minmax(0, 1fr); padding: 12px 16px; }
  .promo-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .promo-edit-body { min-width: 0; }
  .promo-grid { padding: 12px; grid-template-columns: minmax(0, 1fr); }
}

/* ---------- leaderboard ---------- */
.lb-me { display: flex; align-items: center; gap: 16px; padding: 18px 20px; margin-bottom: 16px; }
.lb-me-ico { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #f6c453, #e29a1e); color: #fff; box-shadow: 0 10px 24px -12px rgba(226,154,30,.7); }
.lb-me strong { display: block; font-size: 16px; font-weight: 680; }
.lb-me p { margin-top: 2px; color: var(--text-2); font-size: 13.5px; }
.lb-list { list-style: none; margin: 0; padding: 0; }
.lb-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--g-100); }
.lb-list li:first-child { border-top: 0; }
.lb-rank { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; color: var(--text-3); }
.lb-rank b { font-size: 15px; font-weight: 700; }
.lb-list li.is-top-1 .lb-rank { color: #c98a12; }
.lb-list li.is-top-2 .lb-rank { color: #8a9aa5; }
.lb-list li.is-top-3 .lb-rank { color: #b0703c; }
.lb-name { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; }
.lb-name em { font-style: normal; font-size: 11px; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: var(--cyan-50); color: var(--cyan-800); margin-left: 6px; }
.lb-sales { font-size: 13px; color: var(--text-3); white-space: nowrap; }
.lb-sales b { font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; }
.lb-list li.is-me { background: var(--cyan-50); }
@media (max-width: 480px) { .lb-list li { grid-template-columns: 40px minmax(0, 1fr) auto; padding: 12px 14px; } .lb-me { padding: 16px; } }

/* Backups: numbered restore steps */
.steps-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--text); }
.steps-list li { padding-left: 4px; line-height: 1.5; }
.steps-list li::marker { color: var(--brand, var(--accent)); font-weight: 600; }

/* Fraud review */
.fraud-signal p { margin: 2px 0 0; font-size: 13px; color: var(--text-2); max-width: 46ch; }
.fraud-signal .subtle { font-style: italic; }
.fraud-review { position: relative; }
.fraud-review > summary { list-style: none; cursor: pointer; }
.fraud-review > summary::-webkit-details-marker { display: none; }
.fraud-review[open] > summary { background: var(--surface-2, var(--bg-subtle)); }
.fraud-form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: min(340px, 86vw); padding: 14px; display: grid; gap: 10px;
  background: var(--surface, #fff); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.16); text-align: left; }
.fraud-form .field { margin: 0; }
.fraud-list { margin: 6px 0 8px; padding-left: 18px; display: grid; gap: 4px; }
.fraud-list li { line-height: 1.45; }
.fraud-callout p { margin: 0; }
@media (max-width: 760px) {
  .fraud-form { position: static; width: 100%; margin-top: 8px; box-shadow: none; }
  .fraud-signal p { max-width: none; }
  .table-cards td.fraud-signal { display: block; text-align: left; }
  .table-cards td.fraud-signal::before { display: block; margin-bottom: 2px; }
  .fraud-table td.cell-actions { display: block; }
}

/* Email log: template previews */
.email-preview-body { padding: 0 20px 20px; display: grid; gap: 14px; }
.email-preview-tabs { flex-wrap: wrap; justify-content: flex-start; }
.email-preview-frame { width: 100%; height: 760px; border: 1px solid var(--border); border-radius: 12px; background: #f4f7f9; }
@media (max-width: 760px) { .email-preview-body { padding: 0 12px 12px; } .email-preview-frame { height: 640px; } }

/* Finance reports */
.report-note { margin: 12px 2px; font-size: 13px; line-height: 1.55; max-width: 92ch; }
.report-totals { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 4px; }
.report-total { flex: 1 1 200px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); display: grid; gap: 4px; }
.report-total span { font-size: 12px; color: var(--text-3); font-weight: 560; }
.report-total strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.report-head { padding: 4px 16px 0; }
.report-head:empty { display: none; }

/* Monthly earnings statement (screen + print) */
.statement-body { background: var(--bg, #f4f7f9); margin: 0; }
.statement-toolbar { position: sticky; top: 0; z-index: 5; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--border); }
.statement-month { height: 32px; padding: 0 10px; min-width: 150px; }
.statement { max-width: 860px; margin: 24px auto 48px; padding: 40px 44px; background: #fff; color: var(--navy-800); border: 1px solid var(--border); border-radius: 14px; }
.statement-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; padding-bottom: 22px; border-bottom: 2px solid var(--navy-800); }
.statement-logo { height: 30px; width: auto; display: block; }
.statement-org { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: #5d6d78; }
.statement-title { text-align: right; }
.statement-title h1 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.02em; }
.statement-title p { margin: 2px 0; font-size: 14px; }
.statement-party { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 18px 0; border-bottom: 1px solid #e4ebef; }
.statement-party span, .statement-summary span { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #6c7c88; margin-bottom: 3px; }
.statement-party strong { font-size: 14px; overflow-wrap: anywhere; }
.statement-currency { margin-top: 24px; }
.statement-currency h2 { font-size: 15px; margin: 0 0 10px; }
.statement-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border: 1px solid #e4ebef; border-radius: 10px; overflow: hidden; }
.statement-summary > div { padding: 12px 14px; border-right: 1px solid #e4ebef; }
.statement-summary > div:last-child { border-right: 0; }
.statement-summary strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.statement-closing { background: #ecf9fc; }
.statement-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 13px; }
.statement-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #6c7c88; padding: 8px 6px; border-bottom: 1px solid #cfd9df; }
.statement-table td { padding: 9px 6px; border-bottom: 1px solid #eef2f4; vertical-align: top; }
.statement-table td .subtle { font-size: 12px; margin-top: 2px; }
.statement-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.statement-carry td { background: #f7fafb; }
.statement .pos { color: #1d7a46; }
.statement .neg { color: #a33a3a; }
.statement-notes { margin: 12px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.55; color: #3c4b56; }
.statement-empty { margin: 28px 0; color: #5d6d78; }
.statement-foot { margin-top: 30px; padding-top: 14px; border-top: 1px solid #e4ebef; font-size: 11.5px; line-height: 1.55; color: #6c7c88; }
@media (max-width: 760px) {
  .statement { margin: 0; padding: 22px 16px; border-radius: 0; border-left: 0; border-right: 0; }
  .statement-head { flex-direction: column; }
  .statement-title { text-align: left; }
  .statement-party { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statement-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statement-summary > div { border-bottom: 1px solid #e4ebef; }
  .statement-table .ref-col { display: none; }
}
@media print {
  @page { size: A4; margin: 14mm; }
  .no-print { display: none !important; }
  .statement-body { background: #fff; }
  .statement { margin: 0; padding: 0; border: 0; max-width: none; }
  .statement-table tr { break-inside: avoid; }
  .statement-closing, .statement-carry td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media print {
  .statement-head { padding-bottom: 14px; }
  .statement-party { padding: 12px 0; }
  .statement-currency { margin-top: 16px; }
  .statement-table { margin-top: 10px; font-size: 12px; }
  .statement-table td { padding: 6px; }
  .statement-foot { margin-top: 16px; padding-top: 10px; break-inside: avoid; }
}

/* Hosting plans: admin */
.plan-admin { list-style: none; margin: 0; padding: 0; }
.plan-admin > li { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; padding: 14px 20px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.plan-admin-main { display: grid; gap: 2px; min-width: 0; flex: 1 1 260px; }
.plan-admin-main small { color: var(--text-2); }
.plan-fieldset { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px 4px; margin: 0; }
.plan-fieldset legend { font-weight: 600; font-size: 13px; padding: 0 6px; }
.plan-fieldset legend .subtle { font-weight: 400; margin-left: 6px; }
.plan-price-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
/* Plan links (affiliate) */
.plan-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.plan-links > li { display: grid; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.plan-links > li:last-child { padding-bottom: 0; border-bottom: 0; }
.plan-links-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.plan-links-com { font-size: var(--fs-xs); font-weight: 600; color: var(--cyan-700); background: var(--cyan-50, #e8f8fb); padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.plan-links .help { margin: 0; }
html[data-theme=dark] .plan-links-com { background: var(--navy-700); color: var(--cyan-200); }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; font-family: var(--font); }
.wa-btn { position: relative; width: 60px; height: 60px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: #fff;
  background: linear-gradient(145deg, #2fe274, #12a84f); box-shadow: 0 16px 30px -10px rgba(18,168,79,.75), inset 0 1px 0 rgba(255,255,255,.35); transition: transform .25s var(--ease-out); }
.wa-btn:hover { transform: translateY(-3px) scale(1.04); }
.wa-btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(37,211,102,.4); animation: waPulse 2.6s ease-out infinite; z-index: -1; }
.wa-btn-ic, .wa-btn-x { display: grid; place-items: center; grid-area: 1 / 1; transition: transform .3s var(--ease-out), opacity .2s; }
.wa-btn-x { opacity: 0; transform: rotate(-90deg) scale(.6); }
.wa-float.is-open .wa-btn-ic { opacity: 0; transform: rotate(90deg) scale(.6); }
.wa-float.is-open .wa-btn-x { opacity: 1; transform: none; }
.wa-float.is-open .wa-btn::before { animation: none; opacity: 0; }
.wa-panel { width: min(340px, calc(100vw - 32px)); border-radius: 18px; overflow: hidden; background: #fff; color: #111; box-shadow: 0 28px 60px -20px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.05);
  transform-origin: bottom right; opacity: 0; transform: translateY(10px) scale(.96); pointer-events: none; visibility: hidden; transition: opacity .2s, transform .25s var(--ease-out), visibility 0s .25s; }
.wa-float.is-open .wa-panel { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .2s, transform .25s var(--ease-out); }
.wa-head { display: flex; align-items: center; gap: 12px; padding: 16px; background: linear-gradient(135deg, #075e54, #128c7e); color: #fff; }
.wa-head-logo { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); overflow: hidden; }
.wa-head-logo img { width: 30px; height: auto; }
.wa-head strong { display: block; font-size: 15px; font-weight: 650; }
.wa-head span { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: .85; margin-top: 2px; }
.wa-online { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.25); }
.wa-close { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.wa-close:hover { background: rgba(255,255,255,.22); }
.wa-body { padding: 16px; display: grid; gap: 10px; background: #efeae2 radial-gradient(rgba(0,0,0,.04) 1px, transparent 1px) 0 0 / 14px 14px; }
.wa-bubble { position: relative; margin: 0 0 4px; max-width: 88%; padding: 10px 12px; border-radius: 0 12px 12px 12px; background: #fff; font-size: 14px; line-height: 1.5; color: #111; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.wa-option { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: #fff; color: #111 !important; text-decoration: none; box-shadow: 0 1px 2px rgba(0,0,0,.08); transition: transform .2s var(--ease-out), box-shadow .2s; }
.wa-option:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(0,0,0,.35); }
.wa-option strong { display: block; font-size: 14px; font-weight: 620; }
.wa-option small { display: block; font-size: 12px; color: #667781; margin-top: 1px; }
.wa-option > .icon { color: #667781; }
.wa-option-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #2fe274, #12a84f); }
.wa-option-ic.is-channel { background: linear-gradient(145deg, #128c7e, #075e54); }
@keyframes waPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
@media (max-width: 760px) { .wa-float { right: 14px; bottom: 14px; } .wa-btn { width: 54px; height: 54px; } }
@media (prefers-reduced-motion: reduce) { .wa-btn::before { animation: none; } .wa-panel { transition: none; } }

/* ---------- authenticator app setup (v3.9.0) ---------- */
.totp-body { container-type: inline-size; }
.totp-setup { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.totp-qr { padding: 8px; border-radius: 14px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,.05)); width: 216px; }
.totp-qr canvas { display: block; width: 200px !important; height: 200px !important; image-rendering: pixelated; }
.totp-steps { display: grid; gap: var(--s-4); min-width: 0; }
.totp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.totp-list li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: var(--fs-sm); color: var(--text-2); line-height: 1.5; }
.totp-list span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 650; background: var(--brand-soft, rgb(var(--brand-rgb) / .12)); color: var(--brand-strong, var(--cyan-700)); }
.totp-key small { display: block; font-size: 12px; color: var(--text-3, var(--text-2)); margin-bottom: 4px; }
.totp-key > div { display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 12px; border-radius: 10px; background: var(--surface-2, rgba(0,0,0,.03)); border: 1px dashed var(--border); }
.totp-key code { flex: 1; min-width: 0; font-size: 14.5px; letter-spacing: .04em; word-break: break-word; line-height: 1.5; color: var(--text); }
.totp-confirm { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.totp-confirm .input { width: 150px; font-size: 18px; letter-spacing: .3em; text-align: center; }
.backup-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; font-size: 15px; padding: 12px 16px; border: 1px dashed var(--border); border-radius: 10px; }
.totp-card .card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); }
.totp-card .card-head p { margin-top: 4px; color: var(--text-2); font-size: var(--fs-sm); }
@container (max-width: 560px) {
  .totp-setup { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .totp-steps { width: 100%; }
  .totp-confirm .input { flex: 1 1 140px; }
}
@media (max-width: 760px) {
  .backup-codes { grid-template-columns: minmax(0, 1fr); }
}

/* plain checkboxes written without the styled .check-box stay visible and clickable */
.check:not(:has(.check-box)) input[type=checkbox] { position: static; opacity: 1; width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--btn, var(--navy-900)); cursor: pointer; }

/* phone: country flag + calling code */
.tel-wrap { display: flex; gap: 0; width: 100%; }
.tel-wrap .tel-cc { flex: none; width: 108px; height: auto; min-height: 40px; padding: 0 6px 0 10px; border: 1px solid var(--border-strong); border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); background: var(--surface-2); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.tel-wrap .input { flex: 1; min-width: 0; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.tel-wrap .tel-cc:focus-visible { outline: none; box-shadow: var(--focus); position: relative; z-index: 1; }

/* traffic source badge */
.src-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 6px; border-radius: 999px; font-size: 12px; font-weight: 550; white-space: nowrap;
  color: var(--src); background: color-mix(in srgb, var(--src) 11%, transparent); border: 1px solid color-mix(in srgb, var(--src) 22%, transparent); }
.src-badge .icon { color: var(--src); }
html[data-theme=dark] .src-badge { color: color-mix(in srgb, var(--src) 55%, #fff); }
.avatar-edit { display: flex; align-items: center; gap: 16px; } .avatar-edit .avatar-lg { width: 72px; height: 72px; font-size: 24px; }

/* v4.0: update progress, security center */
.update-steps{list-style:none;padding:0;margin:0 0 14px;display:flex;flex-wrap:wrap;gap:8px}
.update-steps li{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;font-size:12.5px;background:var(--surface-2,#f3f4f6);color:var(--text-muted,#6b7280)}
.update-steps li.is-done{background:color-mix(in srgb,var(--success,#16a34a) 14%,transparent);color:var(--success,#16a34a);font-weight:600}
.code-block{background:var(--surface-2,#0f172a0d);border:1px solid var(--border,#e5e7eb);border-radius:10px;padding:12px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.check-row{display:grid;grid-template-columns:auto 1fr;gap:10px;padding:10px 0;border-bottom:1px solid var(--border,#e5e7eb)}
.check-row:last-child{border-bottom:0}
.check-dot{width:10px;height:10px;border-radius:50%;margin-top:6px}
.check-dot.ok{background:var(--success,#16a34a)}.check-dot.warn{background:var(--warning,#d97706)}.check-dot.fail{background:var(--danger,#dc2626)}
.score-ring{font-size:34px;font-weight:800;letter-spacing:-.03em}
.captcha-field{min-height:70px}
.timeline{list-style:none;padding:0;margin:0}
.timeline li{padding:10px 0 10px 18px;border-left:2px solid var(--border,#e5e7eb);position:relative}
.timeline li::before{content:"";position:absolute;left:-6px;top:15px;width:10px;height:10px;border-radius:50%;background:var(--brand,#663CE6)}
.timeline li.kind-action::before{background:var(--warning,#d97706)}.timeline li.kind-status::before{background:var(--success,#16a34a)}

/* flags as images (Windows has no flag emoji) */
.flag-img { width: 20px; height: 15px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.08); vertical-align: -2px; flex: none; }
.flag-code { display: inline-block; min-width: 20px; font-size: 10px; font-weight: 700; line-height: 15px; text-align: center; border-radius: 2px; background: var(--surface-2); color: var(--text-muted); }
.tel-wrap { position: relative; }
.tel-cc-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; border: 1px solid var(--border-strong); border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); background: var(--surface-2); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
.tel-cc-btn::after { content: ""; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .6; }
.tel-cc-btn:focus-visible { outline: none; box-shadow: var(--focus); position: relative; z-index: 1; }
.cc-pop { position: absolute; z-index: 60; top: calc(100% + 4px); left: 0; width: min(320px, 92vw); padding: 8px; background: var(--surface, #fff); border: 1px solid var(--border-strong); border-radius: var(--r-md, 10px); box-shadow: 0 18px 40px -12px rgba(0,0,0,.28); }
.cc-list { list-style: none; margin: 6px 0 0; padding: 0; max-height: 260px; overflow: auto; }
.cc-list li { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.cc-list li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-list li b { font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.cc-list li:hover, .cc-list li:focus { background: var(--surface-2); outline: none; }
.cc-list li[aria-selected] { background: color-mix(in srgb, var(--brand, #663CE6) 12%, transparent); }
.country-wrap { position: relative; }
.country-wrap .country-flag { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; display: flex; }
.country-wrap.has-flag select { padding-left: 42px; }

/* date range picker (admin + affiliate dashboards) */
.date-range { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.date-range .select-wrap .input { min-width: 150px; height: 34px; }
.date-range-custom { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.date-range-custom[hidden] { display: none; }
.date-range-custom .input { height: 34px; width: auto; }
@media (max-width: 640px) { .date-range { width: 100%; } .date-range .select-wrap { flex: 1; } .date-range .select-wrap .input { width: 100%; } }

.sync-timer-custom { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sync-timer-custom[hidden] { display: none; }

/* optional colour field (Settings → Branding, "more colours") */
.color-auto { display: flex; gap: 8px; align-items: center; }
.color-auto .input { max-width: 140px; text-transform: lowercase; }
.color-auto input[type=color] { width: 40px; height: 38px; padding: 2px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); cursor: pointer; flex-shrink: 0; }

/* period control (dashboards, reports and every list) */
.period { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 30px 0 6px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); box-shadow: 0 1px 2px rgb(16 24 40 / .05); transition: border-color .15s, box-shadow .15s; max-width: 100%; }
.period:hover { border-color: var(--border-strong); }
.period:focus-within { border-color: var(--btn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--btn) 18%, transparent); }
.period-ico { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: color-mix(in srgb, var(--btn) 12%, transparent); color: var(--btn); flex-shrink: 0; }
html[data-theme=dark] .period-ico { color: var(--text); }
.period-select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: var(--text); font: inherit; font-size: var(--fs-sm); font-weight: 600; padding: 0; cursor: pointer; outline: none; max-width: 150px; text-overflow: ellipsis; }
.period-select option { color: #111; background: #fff; font-weight: 400; }
.period-dates { font-size: 12px; color: var(--text-3); white-space: nowrap; padding-left: 8px; border-left: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.period-caret { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.period-custom { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.period-custom[hidden] { display: none; }
.period-custom .input { height: 36px; width: 142px; font-size: var(--fs-sm); padding: 0 8px; border-radius: 10px; }
.period-custom .btn { height: 36px; }
.period-sep { color: var(--text-3); }
.date-range { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.period-empty { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 14px; padding: 12px 14px; border: 1px dashed var(--border-strong); border-radius: 12px; background: var(--surface-2); color: var(--text-2); }
.period-empty > .icon { color: var(--text-3); flex-shrink: 0; }
.period-empty-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 200px; }
.period-empty-text strong { color: var(--text); font-size: var(--fs-sm); }
.period-empty-text span { font-size: 12px; color: var(--text-3); }
.period-empty-actions { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .period { width: 100%; } .period-select { flex: 1; max-width: none; }
  .period-custom { width: 100%; } .period-custom .input { flex: 1 1 120px; width: auto; min-width: 0; }
  .date-range { width: 100%; }
}
@media print { .period-empty { display: none; } }

/* add/remove list field (Settings) */
.list-field { display: grid; gap: 8px; }
.list-head, .list-row { display: grid; grid-template-columns: minmax(130px, 180px) minmax(0, 2fr) minmax(0, 1fr) 36px; gap: 8px; align-items: center; }
.list-head { font-size: 12px; font-weight: 600; color: var(--text-3); padding: 0 2px; }
.list-row + .list-row { margin-top: 8px; }
.list-row .input { height: 38px; }
.list-remove { width: 36px; height: 36px; padding: 0; display: grid; place-items: center; }
.list-field > [data-list-add] { justify-self: start; margin-top: 2px; }
.list-empty { margin: 0; padding: 14px; border: 1px dashed var(--border-strong); border-radius: 10px; text-align: center; }
@media (max-width: 720px) {
  .list-head { display: none; }
  .list-row { grid-template-columns: minmax(0, 1fr) 36px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; }
  .list-row .list-cell { grid-column: 1; } .list-row .list-remove { grid-column: 2; grid-row: 1; }
}

/* Settings → Email Platforms: test connections */
.test-panel { margin-top: 20px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.test-panel-head { padding: 14px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.test-panel-head h3 { font-size: 15px; margin: 0 0 2px; }
.test-panel-head .help { margin: 0; }
.test-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.test-panel-head + .test-row { border-top: 0; }
.test-row-name { display: flex; flex-direction: column; min-width: 0; }
.test-row-name span { font-size: 12px; color: var(--text-3); }
.test-row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 560px) { .test-row-actions { width: 100%; } .test-row-actions .btn { flex: 1; justify-content: center; } }

/* share dialog for referral links */
.share-dialog { max-width: 520px; }
.share-body { display: grid; gap: 16px; }
.share-body .field { margin: 0; }
.share-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 8px; }
.share-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text-2); font: inherit; font-size: 12px; font-weight: 600; text-decoration: none; cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; }
.share-tile:hover { border-color: var(--border-strong); color: var(--text); transform: translateY(-1px); box-shadow: 0 6px 14px -8px rgb(16 24 40 / .35); }
.share-tile:focus-visible { outline: 2px solid var(--btn); outline-offset: 2px; }
.share-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.share-qr { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.share-qr[hidden] { display: none; }
.share-qr .qr-frame { padding: 8px; border-radius: 12px; flex-shrink: 0; }
.share-qr .qr-frame canvas { width: 112px; height: 112px; }
.share-qr-text { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.share-qr-text .subtle { font-size: 12px; }
@media (max-width: 420px) { .share-qr { flex-direction: column; text-align: center; } .share-qr-text { justify-items: center; } }

/* Conversions → attribution summary cards (clickable filters) */
.conv-stats .stat-link { display: block; color: inherit; text-decoration: none; border-radius: var(--r-md); transition: transform .15s ease, box-shadow .15s ease; }
.conv-stats .stat-link > .stat { height: 100%; }
.conv-stats .stat-link:hover { transform: translateY(-2px); }
.conv-stats .stat-link:hover > .stat { box-shadow: var(--sh-md, 0 6px 18px rgba(0,0,0,.08)); }
.conv-stats .stat-link:focus-visible { outline: 2px solid #FF7400; outline-offset: 2px; }
.conv-stats .stat-link.is-active > .stat { outline: 2px solid #FF7400; outline-offset: -2px; }
.conv-stats .stat .money-line { display: block; }

/* Provider → Promo material: bulk delete */
.promo-bulk { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px 20px; border-top: 1px solid var(--g-100); background: var(--surface-2, #fafafa); }
.promo-check { display: flex; align-items: center; padding-top: 4px; }
.promo-admin.has-bulk > li { grid-template-columns: 22px 72px minmax(0, 1fr) auto; }
@media (max-width: 640px) {
  .promo-admin.has-bulk > li { grid-template-columns: 22px 56px minmax(0, 1fr); }
}
