/* ============================================================================
   Leads Scrapper — design system
   Innobrains navy #112E46 + orange #F9A826

   Plain CSS, no build step: this has to deploy to shared hosting by FTP.
   ========================================================================= */

:root {
  /* Brand ramp */
  --navy-900: #0A1826;
  --navy-800: #0E2438;
  --navy: #112E46;
  --navy-600: #1B4066;
  --navy-500: #245685;
  --navy-400: #3D74A6;
  --navy-100: #E3ECF4;
  --navy-50: #F1F6FA;

  --orange: #F9A826;
  --orange-600: #E08C0B;
  --orange-700: #B26E08;
  --orange-100: #FDEBC9;
  --orange-50: #FEF7EA;

  /* Surfaces */
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --surface-2: #FAFBFD;
  --surface-3: #F2F5F9;
  --border: #E5EAF1;
  --border-2: #D5DDE8;

  /* Text */
  --text: #0F1D2D;
  --text-2: #475569;
  --text-3: #7C8DA3;
  --text-4: #A3B1C2;

  /* Semantic */
  --green: #0A9268;
  --green-bg: #E6F6F0;
  --green-br: #B4E5D3;
  --red: #DC3E43;
  --red-bg: #FDEDED;
  --red-br: #F6C7C8;
  --amber: #B67A00;
  --amber-bg: #FFF7E6;
  --amber-br: #F3DCAB;
  --blue: #2563EB;
  --blue-bg: #EEF3FF;
  --blue-br: #C8D8FD;
  --violet: #7C3AED;
  --violet-bg: #F3EEFE;

  /* Geometry */
  --r-xs: 6px;
  --r-sm: 9px;
  --r: 13px;
  --r-lg: 18px;
  --r-xl: 24px;

  /* Elevation — tinted with brand navy, not neutral grey */
  --sh-xs: 0 1px 2px rgba(15, 29, 45, .05);
  --sh-sm: 0 1px 3px rgba(15, 29, 45, .07), 0 1px 2px rgba(15, 29, 45, .04);
  --sh: 0 4px 14px rgba(15, 29, 45, .07), 0 1px 3px rgba(15, 29, 45, .04);
  --sh-lg: 0 12px 32px rgba(15, 29, 45, .10), 0 4px 8px rgba(15, 29, 45, .04);
  --sh-xl: 0 24px 56px rgba(15, 29, 45, .14), 0 8px 16px rgba(15, 29, 45, .05);

  --ring: 0 0 0 3px rgba(61, 116, 166, .18);
  --ring-orange: 0 0 0 3px rgba(249, 168, 38, .25);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  --sidebar-w: 250px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--orange-100); color: var(--navy); }

/* ------------------------------------------------------------------ icon */

.icon {
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

/* ------------------------------------------------------------ typography */

h1, h2, h3, h4, h5 {
  line-height: 1.22;
  letter-spacing: -.021em;
  font-weight: 700;
  color: var(--navy);
}

h1 { font-size: 1.75rem; letter-spacing: -.028em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
h4 { font-size: .93rem; }

.display {
  font-size: clamp(2.15rem, 5.2vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -.038em;
  font-weight: 800;
}

.lead { font-size: 1.06rem; color: var(--text-2); line-height: 1.62; }

.t-2 { color: var(--text-2); }
.t-3 { color: var(--text-3); }
.t-4 { color: var(--text-4); }
.sm { font-size: .86rem; }
.xs { font-size: .78rem; }
.xxs { font-size: .71rem; }
.w5 { font-weight: 500; }
.w6 { font-weight: 600; }
.w7 { font-weight: 700; }
.mono { font-family: var(--mono); font-feature-settings: 'zero'; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.upper { text-transform: uppercase; letter-spacing: .08em; }

.trunc {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.eyebrow {
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--orange-700);
}

/* ---------------------------------------------------------------- layout */

.wrap { width: min(1280px, 100% - 44px); margin-inline: auto; }
.wrap-md { width: min(920px, 100% - 44px); margin-inline: auto; }
.wrap-sm { width: min(620px, 100% - 44px); margin-inline: auto; }

.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.row-t { display: flex; align-items: flex-start; }
.between { display: flex; align-items: center; justify-content: space-between; }
.wrapping { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.shrink0 { flex-shrink: 0; }

.g4{gap:4px}.g6{gap:6px}.g8{gap:8px}.g10{gap:10px}.g12{gap:12px}
.g14{gap:14px}.g16{gap:16px}.g20{gap:20px}.g24{gap:24px}.g32{gap:32px}

.mt4{margin-top:4px}.mt8{margin-top:8px}.mt12{margin-top:12px}.mt16{margin-top:16px}
.mt20{margin-top:20px}.mt24{margin-top:24px}.mt32{margin-top:32px}.mt40{margin-top:40px}
.mb4{margin-bottom:4px}.mb8{margin-bottom:8px}.mb12{margin-bottom:12px}
.mb16{margin-bottom:16px}.mb20{margin-bottom:20px}.mb24{margin-bottom:24px}.mb32{margin-bottom:32px}

.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-side { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-side-l { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }

@media (max-width: 1100px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-side, .g-side-l, .g-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .g-2, .g-4 { grid-template-columns: minmax(0, 1fr); }
  .wrap, .wrap-md, .wrap-sm { width: calc(100% - 28px); }
  h1 { font-size: 1.45rem; }
}

.hide { display: none !important; }
@media (max-width: 900px)  { .hide-md { display: none !important; } }
@media (max-width: 640px)  { .hide-sm { display: none !important; } }
@media (min-width: 901px)  { .only-md { display: none !important; } }

/* ----------------------------------------------------------------- brand */

.brand { display: inline-flex; align-items: center; gap: 11px; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-600) 100%);
  color: var(--orange);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(17, 46, 70, .22);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }

.brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.022em;
}

/* The "by Innobrains" second line — small, quiet, always present. */
.brand-by {
  font-size: .655rem;
  font-weight: 600;
  color: var(--text-4);
  letter-spacing: .045em;
  margin-top: 1px;
}

.brand-lg .brand-mark { width: 44px; height: 44px; border-radius: 13px; }
.brand-lg .brand-name { font-size: 1.2rem; }
.brand-lg .brand-by { font-size: .72rem; }

.brand-dark .brand-name { color: #fff; }
.brand-dark .brand-by { color: rgba(255, 255, 255, .55); }
.brand-dark .brand-mark { background: rgba(255, 255, 255, .1); }

/* ------------------------------------------------------------------ card */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--sh-xs);
}

.card-lift { transition: box-shadow .22s var(--ease), transform .22s var(--ease); }
.card-lift:hover { box-shadow: var(--sh); transform: translateY(-2px); }

.card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
}

.card-hd h3 { font-size: .97rem; }
.card-bd { padding: 20px; }
.card-p { padding: 20px; }

.card-ft {
  padding: 13px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 0 0 var(--r) var(--r);
}

.card-flush { padding: 0; }

/* ------------------------------------------------------------------ stat */

.stat {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 17px 19px;
  box-shadow: var(--sh-xs);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}

.stat:hover { box-shadow: var(--sh); transform: translateY(-2px); }

.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.stat-ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--c-bg, var(--navy-50));
  color: var(--c-fg, var(--navy-500));
  flex-shrink: 0;
}

.stat-label {
  font-size: .73rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .075em;
  color: var(--text-3);
}

.stat-value {
  font-size: 1.72rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.033em;
  line-height: 1.12;
  margin-top: 9px;
  font-variant-numeric: tabular-nums;
}

.stat-value.sm-val { font-size: 1.18rem; padding-top: 5px; }
.stat-meta { font-size: .79rem; color: var(--text-3); margin-top: 3px; }

.delta { display: inline-flex; align-items: center; gap: 3px; font-size: .76rem; font-weight: 600; }
.delta-up { color: var(--green); }
.delta-down { color: var(--red); }

/* ---------------------------------------------------------------- button */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: .89rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
  transition: background .16s var(--ease), border-color .16s var(--ease),
              box-shadow .16s var(--ease), transform .1s var(--ease), color .16s;
}

.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 1px 2px rgba(17, 46, 70, .18);
}
.btn-primary:hover:not(:disabled) { background: var(--navy-600); box-shadow: 0 3px 10px rgba(17, 46, 70, .24); }

.btn-accent {
  background: var(--orange);
  color: #3D2600;
  box-shadow: 0 1px 2px rgba(224, 140, 11, .28);
}
.btn-accent:hover:not(:disabled) { background: var(--orange-600); box-shadow: 0 3px 12px rgba(224, 140, 11, .34); }

.btn-outline { background: var(--surface); border-color: var(--border-2); color: var(--text); }
.btn-outline:hover:not(:disabled) { border-color: var(--navy-400); background: var(--navy-50); color: var(--navy); }

.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-3); color: var(--navy); }

.btn-success { background: var(--green); color: #fff; }
.btn-success:hover:not(:disabled) { background: #087A56; }

.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #C22F34; }

.btn-danger-soft { background: var(--red-bg); color: var(--red); border-color: var(--red-br); }
.btn-danger-soft:hover:not(:disabled) { background: #FBDCDC; }

.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover:not(:disabled) { background: var(--navy-50); }

.btn-glass { background: rgba(255,255,255,.13); color: #fff; border-color: rgba(255,255,255,.2); }
.btn-glass:hover:not(:disabled) { background: rgba(255,255,255,.22); }

.btn-sm { padding: 6px 12px; font-size: .81rem; border-radius: 7px; gap: 6px; }
.btn-lg { padding: 13px 25px; font-size: .96rem; border-radius: var(--r); }
.btn-block { width: 100%; }
.btn-ico { padding: 8px; }
.btn-ico.btn-sm { padding: 6px; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-3);
  cursor: pointer;
  transition: all .16s var(--ease);
}

.icon-btn:hover { border-color: var(--navy-400); color: var(--navy); background: var(--navy-50); }
.icon-btn.danger:hover { border-color: var(--red-br); color: var(--red); background: var(--red-bg); }

/* ------------------------------------------------------------------ form */

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field-tight { margin-bottom: 0; }

.field label, .lbl {
  font-size: .83rem;
  font-weight: 600;
  color: var(--navy);
}

.hint { font-size: .77rem; color: var(--text-3); line-height: 1.45; }

.input, .select, .textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: .91rem;
  color: var(--text);
  transition: border-color .16s, box-shadow .16s, background .16s;
}

.input:hover:not(:disabled), .select:hover:not(:disabled) { border-color: var(--navy-400); }

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--navy-500);
  box-shadow: var(--ring);
}

.input::placeholder, .textarea::placeholder { color: var(--text-4); }

.input:disabled, .select:disabled, .textarea:disabled {
  background: var(--surface-3);
  color: var(--text-4);
  cursor: not-allowed;
  border-color: var(--border);
}

.textarea { min-height: 92px; resize: vertical; line-height: 1.55; }

.select {
  appearance: none;
  cursor: pointer;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%237C8DA3'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 13px;
}

.input-ico { position: relative; }
.input-ico .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-4);
  pointer-events: none;
}
.input-ico .input { padding-left: 36px; }

.err { border-color: var(--red) !important; }
.err-msg { color: var(--red); font-size: .79rem; font-weight: 500; }

.check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: .88rem;
  user-select: none;
}

.check input {
  width: 17px;
  height: 17px;
  accent-color: var(--navy);
  cursor: pointer;
  flex-shrink: 0;
}

/* Radio card — a selectable panel, used for renewal target / approve mode */
.radio-card {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 15px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all .16s var(--ease);
  background: var(--surface);
}

.radio-card:hover { border-color: var(--navy-400); background: var(--navy-50); }
.radio-card input { margin-top: 2px; accent-color: var(--navy); flex-shrink: 0; }
.radio-card:has(input:checked) {
  border-color: var(--navy-500);
  background: var(--navy-50);
  box-shadow: var(--ring);
}

/* File drop */
.file-field {
  border: 1.5px dashed var(--border-2);
  border-radius: var(--r-sm);
  padding: 20px;
  text-align: center;
  background: var(--surface-2);
  cursor: pointer;
  transition: all .18s var(--ease);
}
.file-field:hover { border-color: var(--navy-400); background: var(--navy-50); }
.file-field input { display: block; width: 100%; margin-top: 10px; font-size: .84rem; }

/* ----------------------------------------------------------------- badge */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: .745rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  border: 1px solid transparent;
}

.badge-success { background: var(--green-bg); color: var(--green); border-color: var(--green-br); }
.badge-danger  { background: var(--red-bg);   color: var(--red);   border-color: var(--red-br); }
.badge-warning { background: var(--amber-bg); color: var(--amber); border-color: var(--amber-br); }
.badge-info    { background: var(--blue-bg);  color: var(--blue);  border-color: var(--blue-br); }
.badge-accent  { background: var(--orange-50);color: var(--orange-700); border-color: var(--orange-100); }
.badge-muted   { background: var(--surface-3);color: var(--text-3); border-color: var(--border); }
.badge-navy    { background: var(--navy); color: #fff; }

.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

.dot-pulse { animation: pulse 1.9s var(--ease) infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* ---------------------------------------------------------------- avatar */

.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--navy-500), var(--navy));
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
  letter-spacing: .02em;
}

.avatar-lg { width: 50px; height: 50px; font-size: 1.02rem; }
.avatar-sm { width: 28px; height: 28px; font-size: .68rem; }

/* ----------------------------------------------------------------- table */

.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table.tbl { width: 100%; border-collapse: collapse; font-size: .875rem; }

table.tbl th {
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: left;
  padding: 10px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: .715rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-3);
  white-space: nowrap;
}

table.tbl td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

table.tbl tbody tr { transition: background .13s; }
table.tbl tbody tr:hover { background: var(--surface-2); }
table.tbl tbody tr:last-child td { border-bottom: none; }
table.tbl td.tight { width: 1%; white-space: nowrap; }

.empty { padding: 54px 24px; text-align: center; }
.empty .empty-ico {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 15px;
  background: var(--surface-3);
  color: var(--text-4);
}
.empty h4 { margin-bottom: 5px; }
.empty p { color: var(--text-3); font-size: .87rem; }

/* ----------------------------------------------------------------- alert */

.alert {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-size: .885rem;
  margin-bottom: 18px;
  line-height: 1.55;
}

.alert .icon { margin-top: 2px; }
.alert-success { background: var(--green-bg); color: #06603F; border-color: var(--green-br); }
.alert-danger  { background: var(--red-bg);   color: #A32227; border-color: var(--red-br); }
.alert-warning { background: var(--amber-bg); color: #8A5B00; border-color: var(--amber-br); }
.alert-info    { background: var(--blue-bg);  color: #1D4ED8; border-color: var(--blue-br); }

/* -------------------------------------------------------------- progress */

.bar {
  height: 7px;
  background: var(--surface-3);
  border-radius: 100px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--orange), var(--orange-600));
  transition: width .6s var(--ease);
}

.bar-fill.ok  { background: linear-gradient(90deg, #14B981, var(--green)); }
.bar-fill.low { background: linear-gradient(90deg, #F97316, var(--red)); }
.bar-sm { height: 5px; }

/* ------------------------------------------------------------ token box */

.token {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-800) 100%);
  color: #fff;
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .07em;
  word-break: break-all;
}

.token-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: none;
  border-radius: 7px;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-family: var(--font);
  font-size: .79rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .16s;
}

.token-copy:hover { background: rgba(255, 255, 255, .27); }
.token-copy.done { background: var(--green); }

/* =========================================================== APP SHELL */

.shell { display: flex; min-height: 100vh; }

/* Light sidebar per the chosen direction: separation by border + tint, not
   a dark slab. Keeps the whole product feeling like one bright surface. */
.side {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  transition: transform .28s var(--ease);
}

.side-hd {
  padding: 17px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.side-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;   /* nothing may spill sideways onto the content */
  padding: 14px 12px;
  overscroll-behavior: contain;
}

.side-group { margin-bottom: 20px; }

.side-group-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-4);
  padding: 0 10px;
  margin-bottom: 7px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 9px 11px 9px 14px;
  border-radius: var(--r-sm);
  font-size: .885rem;
  font-weight: 500;
  color: var(--text-2);
  transition: background .15s, color .15s;
  margin-bottom: 2px;
  position: relative;
}

.side-link .icon { color: var(--text-3); transition: color .15s; }
.side-link:hover { background: var(--surface-3); color: var(--navy); }
.side-link:hover .icon { color: var(--navy-500); }

.side-link.on {
  background: var(--navy-50);
  color: var(--navy);
  font-weight: 600;
}

.side-link.on .icon { color: var(--orange-600); }

/* Active marker sits inside the link, so it can never bleed past the
   sidebar's padding onto the content area. */
.side-link.on::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  border-radius: 0 3px 3px 0;
  background: var(--orange);
}

.side-badge {
  margin-left: auto;
  background: var(--orange);
  color: #3D2600;
  font-size: .68rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 100px;
  line-height: 1.6;
}

.side-ft { padding: 12px; border-top: 1px solid var(--border); flex-shrink: 0; }

.side-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  transition: background .15s;
}

.side-user:hover { background: var(--surface-3); }

/* Main column */
.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 60px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.6) blur(10px);
  -webkit-backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 26px;
  flex-shrink: 0;
}

.content { flex: 1; padding: 26px; }

@media (max-width: 900px) {
  .side { transform: translateX(-100%); box-shadow: var(--sh-xl); }
  .side.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .topbar { padding: 0 16px; }
  .content { padding: 18px 16px 40px; }
}

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(10, 24, 38, .42);
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease);
}
.scrim.on { opacity: 1; pointer-events: auto; }

/* Credit pill in topbar */
.credit-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 100px;
  background: var(--orange-50);
  border: 1px solid var(--orange-100);
  color: var(--orange-700);
  font-size: .83rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.credit-pill.low { background: var(--red-bg); border-color: var(--red-br); color: var(--red); }

/* -------------------------------------------------------- page heading */

.page-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.page-hd p { color: var(--text-2); font-size: .92rem; margin-top: 3px; }

.crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: var(--text-4);
  margin-bottom: 7px;
}

.crumb a:hover { color: var(--navy); }

/* ------------------------------------------------------------- key/value */

.kv { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 11px 16px; font-size: .885rem; }
.kv dt { color: var(--text-3); }
.kv dd { font-weight: 500; min-width: 0; }
.kv-tight { grid-template-columns: 100px minmax(0, 1fr); gap: 8px 12px; font-size: .84rem; }

@media (max-width: 560px) {
  .kv, .kv-tight { grid-template-columns: minmax(0, 1fr); gap: 1px 0; }
  .kv dd, .kv-tight dd { margin-bottom: 11px; }
}

/* ------------------------------------------------------------- stepper */

.steps { display: flex; flex-direction: column; gap: 2px; }

.step {
  display: flex;
  gap: 14px;
  padding: 13px 15px;
  border-radius: var(--r-sm);
  transition: background .18s;
  position: relative;
}

.step.now { background: var(--orange-50); }

.step-mark {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  font-size: .78rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 1.5px solid var(--border-2);
  background: var(--surface);
  color: var(--text-3);
  z-index: 1;
}

.step.done .step-mark { background: var(--green); border-color: var(--green); color: #fff; }
.step.now .step-mark { background: var(--orange); border-color: var(--orange); color: #3D2600; }

/* Connector line between step markers */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 28px;
  top: 41px;
  bottom: -2px;
  width: 1.5px;
  background: var(--border-2);
}

.step.done:not(:last-child)::after { background: var(--green-br); }

.step-title { font-size: .9rem; font-weight: 600; color: var(--navy); }
.step.done .step-title { color: var(--text-2); }
.step-body { font-size: .81rem; color: var(--text-3); margin-top: 1px; }

/* --------------------------------------------------------------- charts */

.chart { display: flex; align-items: flex-end; gap: 5px; height: 128px; }

.chart-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  height: 100%;
  justify-content: flex-end;
}

.chart-bar {
  width: 100%;
  min-height: 3px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--navy-400), var(--navy));
  transition: opacity .16s, filter .16s;
}

.chart-col:hover .chart-bar { filter: brightness(1.22); }
.chart-bar.accent { background: linear-gradient(180deg, var(--orange), var(--orange-600)); }

.chart-lbl {
  font-size: .66rem;
  color: var(--text-4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ------------------------------------------------------------ pagination */

/* ------------------------------------------------------------ pagination */

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 13px 18px;
}

.pager-count {
  font-size: .82rem;
  color: var(--text-3);
  margin: 0;
}

.pager-count strong { color: var(--text-2); font-weight: 600; }

.pagination {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagination li a,
.pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 34px;
  height: 34px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: .84rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: border-color .15s, background .15s, color .15s;
}

.pagination li a:hover {
  border-color: var(--navy-400);
  color: var(--navy);
  background: var(--navy-50);
}

.pagination .active span {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  font-weight: 600;
}

.pagination .disabled span {
  opacity: .45;
  cursor: not-allowed;
}

/* Hard cap: the stock paginator shipped unsized inline SVGs which rendered at
   natural size and stacked huge arrows under every table. */
.pagination .icon,
.pagination svg {
  width: 13px !important;
  height: 13px !important;
  flex-shrink: 0;
}

@media (max-width: 620px) {
  .pager { justify-content: center; }
  .pager-count { width: 100%; text-align: center; }
  /* Keep Prev/Next reachable; drop the number strip so it cannot wrap. */
  .pagination .pager-num { display: none; }
}

@media (max-width: 380px) {
  .pagination .pager-word { display: none; }
}

/* ----------------------------------------------------------------- misc */

.hr { height: 1px; background: var(--border); border: none; margin: 20px 0; }

.link { color: var(--navy-500); font-weight: 500; }
.link:hover { color: var(--orange-600); text-decoration: underline; }

.tile {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--c-bg, var(--navy-50));
  color: var(--c-fg, var(--navy-500));
  flex-shrink: 0;
}

.tile-lg { width: 48px; height: 48px; border-radius: 13px; }

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  transition: background .13s;
}

.list-row:last-child { border-bottom: none; }
a.list-row:hover { background: var(--surface-2); }

details.acc { border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); }
details.acc summary {
  padding: 14px 17px;
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  font-size: .92rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after {
  content: '';
  width: 8px; height: 8px;
  border-right: 2px solid var(--text-4);
  border-bottom: 2px solid var(--text-4);
  transform: rotate(45deg);
  transition: transform .2s var(--ease);
  flex-shrink: 0;
}
details.acc[open] summary::after { transform: rotate(-135deg); }
details.acc .acc-body { padding: 0 17px 15px; color: var(--text-2); font-size: .88rem; line-height: 1.62; }

/* -------------------------------------------------------------- scrollbar */

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 100px; border: 2.5px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--text-4); }

/* --------------------------------------------------------------- motion */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .side, .topbar, .btn, .icon-btn { display: none !important; }
  .main { margin-left: 0; }
  .card { box-shadow: none; border-color: #ccc; }
}

/* =========================================================== MARKETING */

.mkt-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.7) blur(12px);
  -webkit-backdrop-filter: saturate(1.7) blur(12px);
  border-bottom: 1px solid var(--border);
}

.mkt-link {
  padding: 8px 13px;
  border-radius: 8px;
  font-size: .89rem;
  font-weight: 500;
  color: var(--text-2);
  transition: background .15s, color .15s;
}

.mkt-link:hover { background: var(--surface-3); color: var(--navy); }

/* Hero — deep navy with an orange bloom, the one dark moment in the product */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(158deg, var(--navy) 0%, var(--navy-900) 100%);
  color: #fff;
  padding: 86px 0 100px;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 680px; height: 680px;
  top: -300px; right: -190px;
  background: radial-gradient(circle, rgba(249,168,38,.20), transparent 66%);
}

.hero::after {
  width: 520px; height: 520px;
  bottom: -320px; left: -160px;
  background: radial-gradient(circle, rgba(61,116,166,.30), transparent 68%);
}

.hero-inner { position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,.76); font-size: 1.14rem; }

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 15px;
  border-radius: 100px;
  background: rgba(249,168,38,.14);
  border: 1px solid rgba(249,168,38,.32);
  color: var(--orange);
  font-size: .81rem;
  font-weight: 600;
}

.hero-stats {
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.13);
}

.hero-stat .n {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: -.028em;
  line-height: 1.15;
}

.hero-stat .l { font-size: .83rem; color: rgba(255,255,255,.58); }

.section { padding: 76px 0; }
.section-tint { background: var(--surface); border-block: 1px solid var(--border); }

.section-hd { max-width: 620px; margin: 0 auto 42px; text-align: center; }
.section-hd h2 { margin-top: 9px; font-size: clamp(1.5rem, 3.2vw, 2.05rem); }
.section-hd p { color: var(--text-2); margin-top: 11px; font-size: 1rem; }

.feat { padding: 24px; height: 100%; }
.feat h3 { font-size: 1rem; margin-bottom: 7px; }
.feat p { font-size: .88rem; color: var(--text-2); line-height: 1.6; }

/* Pricing */
.price {
  display: flex;
  flex-direction: column;
  padding: 26px 22px;
  height: 100%;
  position: relative;
  transition: box-shadow .24s var(--ease), transform .24s var(--ease);
}

.price:hover { box-shadow: var(--sh-lg); transform: translateY(-3px); }

.price.hot {
  border-color: var(--orange);
  box-shadow: 0 14px 40px rgba(249,168,38,.19);
}

.price-tag {
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  padding: 4px 15px;
  border-radius: 100px;
  background: var(--orange);
  color: #3D2600;
  font-size: .71rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}

.price-amt {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.038em;
  line-height: 1;
}

.price-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 18px 0;
  flex: 1;
}

.price-list li { display: flex; gap: 9px; font-size: .865rem; align-items: flex-start; }
.price-list .icon { color: var(--green); margin-top: 3px; }

/* Steps strip */
.hstep { text-align: left; }
.hstep-n {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--orange);
  font-weight: 700;
  font-size: .88rem;
  margin-bottom: 13px;
}

/* Footer */
.mkt-ft { background: var(--navy-900); color: rgba(255,255,255,.7); padding: 54px 0 26px; }

.mkt-ft-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 36px;
  padding-bottom: 36px;
}

.mkt-ft-h {
  color: #fff;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 13px;
}

.mkt-ft-grid a {
  display: block;
  font-size: .87rem;
  color: rgba(255,255,255,.62);
  padding: 4px 0;
  transition: color .15s;
}

.mkt-ft-grid a:hover { color: var(--orange); }

.mkt-ft-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .8rem;
  color: rgba(255,255,255,.45);
}

@media (max-width: 900px) {
  .mkt-ft-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero { padding: 58px 0 68px; }
  .section { padding: 54px 0; }
}

@media (max-width: 560px) {
  .mkt-ft-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
}

/* ============================================================== AUTH */

.auth-split { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }

.auth-aside {
  position: relative;
  overflow: hidden;
  background: linear-gradient(158deg, var(--navy) 0%, var(--navy-900) 100%);
  color: #fff;
  padding: 46px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-aside::before {
  content: '';
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  top: -170px; right: -150px;
  background: radial-gradient(circle, rgba(249,168,38,.2), transparent 67%);
}

.auth-aside-body { position: relative; z-index: 1; }
.auth-aside h2 { color: #fff; font-size: 1.95rem; max-width: 17ch; line-height: 1.2; }

.auth-feat { display: flex; gap: 13px; align-items: flex-start; margin-top: 22px; }
.auth-feat .icon { color: var(--orange); margin-top: 3px; }
.auth-feat strong { display: block; font-size: .92rem; color: #fff; }
.auth-feat span { font-size: .845rem; color: rgba(255,255,255,.62); line-height: 1.55; }

.auth-main {
  display: grid;
  place-items: center;
  padding: 40px 24px;
  background: var(--bg);
}

.auth-card { width: min(430px, 100%); }

@media (max-width: 960px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}

/* An uploaded logo replaces the gradient mark; let the image fill the tile. */
.brand-mark-img {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 8px;
  overflow: hidden;
}

.brand-mark-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ======================================================= HERO ANIMATION */

/* Entrance: content rises and fades in, staggered so the eye follows the
   hierarchy (pill → headline → copy → buttons → stats) rather than being hit
   with everything at once. Transform+opacity only, so it runs on the GPU and
   never triggers layout. */
@keyframes riseIn {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

.hero-inner > div > * {
  animation: riseIn .7s var(--ease) both;
}

.hero-pill        { animation-delay: .05s; }
.hero h1          { animation-delay: .15s; }
.hero .lead       { animation-delay: .25s; }
.hero .row        { animation-delay: .35s; }
.hero-stats       { animation-delay: .45s; }

/* The orange bloom behind the hero drifts slowly. Very low amplitude — it
   should register as depth, not as movement competing with the copy. */
@keyframes bloomDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-26px, 20px, 0) scale(1.07); }
}

.hero::before { animation: bloomDrift 17s ease-in-out infinite; }
.hero::after  { animation: bloomDrift 21s ease-in-out infinite reverse; }

/* Hero stat numbers get a subtle count-up feel via a scale pop as they land. */
@keyframes popIn {
  0%   { opacity: 0; transform: scale(.82); }
  60%  { transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1); }
}

.hero-stat .n { animation: popIn .55s var(--ease) both; }
.hero-stats > :nth-child(1) .n { animation-delay: .55s; }
.hero-stats > :nth-child(2) .n { animation-delay: .68s; }
.hero-stats > :nth-child(3) .n { animation-delay: .81s; }

/* Primary CTA: a slow sheen that draws the eye back without shouting.
   Pauses on hover so it never fights the hover state. */
.hero .btn-accent { position: relative; overflow: hidden; }

.hero .btn-accent::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-18deg);
  animation: sheen 4.5s ease-in-out 1.6s infinite;
  pointer-events: none;
}

.hero .btn-accent:hover::after { animation-play-state: paused; }

@keyframes sheen {
  0%        { left: -60%; }
  38%, 100% { left: 130%; }
}

/* Sections below the fold reveal as they scroll into view. Starts visible and
   is only hidden once JS confirms IntersectionObserver support — otherwise a
   JS failure would leave the page blank, which is far worse than no animation. */
.reveal-ready .reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}

.reveal-ready .reveal.in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

/* Respect the OS setting. Anyone who asked for less motion gets none of this. */
@media (prefers-reduced-motion: reduce) {
  .hero-inner > div > *,
  .hero-stat .n,
  .hero::before,
  .hero::after,
  .hero .btn-accent::after {
    animation: none !important;
  }

  .reveal-ready .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
