/* LogicFlash Tool — Official Website Stylesheet (Navy Header/Footer + Subtle Rounded Precision UI) */
:root {
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --surface-alt: #EFF3F8;
  --navy: #0B1D3A;
  --navy-2: #122B52;
  --navy-text: #0F2B5B;
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #64748B;
  --border: #CBD5E1;
  --border-strong: #94A3B8;
  --accent: #0F2B5B;
  --accent-hover: #193F7E;
  --accent-bg: #E6EFFA;
  --ok: #15803D;
  --ok-bg: #DCFCE7;
  --warn: #B45309;
  --warn-bg: #FEF3C7;
  --err: #B91C1C;
  --err-bg: #FEE2E2;
  --radius-sm: 5px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --mono: "JetBrains Mono", "Consolas", "Courier New", monospace;
  --sans: "Inter", "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header — Dark Navy */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy);
  border-bottom: 1px solid #1E3A68;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  flex-wrap: wrap;
  padding: 8px 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  color: #FFFFFF;
  background: transparent;
  padding: 2px 0;
  border: none;
  letter-spacing: -0.015em;
}
.brand:hover { text-decoration: none; opacity: 0.94; }
.brand-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  object-fit: contain;
  display: block;
}
.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  color: #FFFFFF;
  font-weight: 800;
}
.brand-flash {
  color: #F97316;
  font-weight: 800;
}
.brand-tool-sub {
  color: #FFFFFF;
  font-weight: 800;
  font-size: 17px;
  margin-left: 5px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.nav-links a {
  color: #CBD5E1;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: #FFFFFF; text-decoration: none; }
.nav-links a.active {
  color: #FFFFFF;
  border-bottom: 2px solid #60A5FA;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.header-right .btn-primary {
  background: #1E40AF;
  border-color: #3B82F6;
  color: #FFFFFF;
}
.header-right .btn-primary:hover {
  background: #2563EB;
}
.api-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid #284676;
  background: var(--navy-2);
  border-radius: var(--radius-md);
  font-family: var(--mono);
  font-size: 11.5px;
  color: #E2E8F0;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #94A3B8; display: inline-block; }
.dot.ok { background: #22C55E; }
.dot.err { background: #EF4444; }

/* KPI Grid */
.kpi-grid, .grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.kpi-card, .kpi-box {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.kpi-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.kpi-value, .kpi-val {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

/* Sections & Cards */
section { padding: 44px 0; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: none; }
.section-head { margin-bottom: 22px; }
.section-kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 4px;
}
h1, h2, h3 { margin: 0 0 8px 0; color: var(--ink); line-height: 1.25; }
h1 { font-size: 30px; letter-spacing: -0.02em; }
h2 { font-size: 22px; letter-spacing: -0.01em; }
h3 { font-size: 16px; }
p { margin: 0 0 12px 0; color: var(--ink-2); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.card-muted { background: var(--surface-alt); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* Full-Bleed Hero Showcase Slider */
.hero-banner {
  position: relative;
  background: #071429;
  border-bottom: 1px solid #1E3A68;
  padding: 0;
  overflow: hidden;
}
.hero-carousel {
  position: relative;
  width: 100%;
  background: #071429;
}
.hero-slides {
  position: relative;
}
.hero-slide {
  display: none;
  padding: 52px 0 64px;
  color: #FFFFFF;
  height: 480px;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  position: relative;
}
.hero-slide.active {
  display: flex;
  align-items: center;
}
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 15, 32, 0.90) 0%, rgba(6, 15, 32, 0.72) 48%, rgba(6, 15, 32, 0.22) 100%);
  pointer-events: none;
}
.hero-slide-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}
.hero-slide-1 { background-image: url('/slides/hero-slide-1.jpg'); }
.hero-slide-2 { background-image: url('/slides/hero-slide-2.jpg'); }
.hero-slide-3 { background-image: url('/slides/hero-slide-3.jpg'); }
.hero-slide-content {
  max-width: 580px;
}
.hero-slide-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: #132B52;
  border: 1px solid #26487D;
  color: #F97316;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero-slide h1, .hero-slide h2 {
  color: #FFFFFF;
  font-size: 34px;
  line-height: 1.18;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.hero-slide .hl-orange {
  color: #F97316;
}
.hero-slide p {
  color: #CBD5E1;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn-orange {
  background: #F97316;
  border-color: #EA580C;
  color: #FFFFFF;
}
.btn-orange:hover { background: #EA580C; color: #FFFFFF; }
.btn-ghost-light {
  background: #132B52;
  border-color: #2B4C80;
  color: #FFFFFF;
}
.btn-ghost-light:hover { background: #1E3A68; color: #FFFFFF; }

.hero-app-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.hero-app-frame {
  width: 100%;
  background: #111827;
  border: 1px solid #2C4A7A;
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.48);
}
.hero-app-frame-compact {
  max-width: 310px;
}
.hero-app-shot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
}
.hero-platform-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.hero-plat-pill {
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: #102546;
  border: 1px solid #284B82;
  color: #E2E8F0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid #284B82;
  background: rgba(11, 29, 58, 0.82);
  color: #FFFFFF;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-arrow:hover { background: #1E3A68; }
.carousel-arrow-left { left: 16px; }
.carousel-arrow-right { right: 16px; }
.carousel-dots-bar {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 9px;
  z-index: 10;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #3B5988;
  cursor: pointer;
  padding: 0;
}
.carousel-dot.active {
  background: #F97316;
  transform: scale(1.15);
}

/* Elevated Commercial Pricing Cards */
.pricing-grid-pro {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  margin-top: 18px;
}
.plan-card-pro {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.plan-card-pro.recommended {
  border: 2px solid #0284C7;
  background: #F8FBFF;
  box-shadow: 0 10px 26px rgba(11, 29, 58, 0.08);
}
.plan-popular-ribbon {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: #0284C7;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 14px;
  border-radius: var(--radius-md);
  white-space: nowrap;
}
.plan-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.plan-tier-name {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
}
.plan-tier-starter { color: #334155; }
.plan-tier-pro { color: #0284C7; }
.plan-tier-workshop { color: #D97706; }
.plan-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}
.plan-bar {
  width: 4px;
  border-radius: 2px;
  background: #CBD5E1;
}
.plan-bar.on-starter { background: #334155; }
.plan-bar.on-pro { background: #0284C7; }
.plan-bar.on-workshop { background: #D97706; }
.plan-desc {
  font-size: 12.5px;
  color: var(--muted);
  min-height: 38px;
  margin-bottom: 14px;
}
.plan-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.plan-price-main {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.plan-price-unit {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.plan-price-crd {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--navy-text);
  background: var(--accent-bg);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}
.plan-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.plan-cta-full {
  width: 100%;
  padding: 10px 14px;
  font-size: 13.5px;
}
.plan-metrics {
  border-top: 1px solid var(--border);
}
.plan-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #E2E8F0;
  font-size: 12.5px;
}
.plan-metric-row:last-child { border-bottom: none; }
.plan-metric-label { color: var(--muted); font-weight: 500; }
.plan-metric-val { color: var(--ink); font-weight: 700; font-family: var(--mono); text-align: right; }

.spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.spec-list li span:first-child { color: var(--muted); font-weight: 600; }

/* Buttons & Inputs — Subtle Rounded Everywhere */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  border-radius: var(--radius-md);
}
.btn:hover { background: var(--surface-alt); text-decoration: none; }
.btn-primary {
  background: var(--accent);
  border-color: var(--navy);
  color: #FFFFFF;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-ok { background: var(--ok); border-color: #14532D; color: #FFFFFF; }
.btn-ok:hover { background: #166534; }
.btn-orange {
  background: #F97316;
  border-color: #EA580C;
  color: #FFFFFF;
}
.btn-orange:hover { background: #EA580C; color: #FFFFFF; }
.btn-ghost-light {
  background: rgba(19, 43, 82, 0.85);
  border-color: #3B609C;
  color: #FFFFFF;
}
.btn-ghost-light:hover { background: #1E3A68; color: #FFFFFF; }
.btn-sm { padding: 6px 11px; font-size: 12px; border-radius: var(--radius-sm); }
.lf-toolbar-compact .lf-select-wrap { width: auto; min-width: 128px; flex: 0 0 auto; }
.lf-toolbar-compact .lf-select-trigger { height: 32px; min-height: 32px; padding: 0 10px; font-size: 12px; line-height: 1; border-radius: var(--radius-sm); white-space: nowrap; }
.lf-toolbar-compact .btn-sm { height: 32px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.lf-toolbar-compact .lf-compact-input { height: 32px; padding: 0 10px; width: 220px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-size: 12px; box-sizing: border-box; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 4px;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="file"],
select {
  width: 100%;
  padding: 8px 11px;
  font-size: 13px;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
}
input:focus, select:focus {
  outline: 2px solid var(--accent-bg);
  border-color: var(--accent);
}
.form-row { margin-bottom: 12px; }
.form-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* Badges & Chips */
.badge {
  display: inline-block;
  padding: 2px 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  color: var(--ink-2);
}
.badge-ok { background: var(--ok-bg); color: var(--ok); border-color: #86EFAC; }
.badge-warn { background: var(--warn-bg); color: var(--warn); border-color: #FCD34D; }
.badge-expired { background: #FFF1F2; color: #BE123C; border-color: #FDA4AF; }
.badge-err { background: #FEF2F2; color: #B91C1C; border-color: #FCA5A5; }
.badge-muted { background: #F1F5F9; color: #475569; border-color: #CBD5E1; }
.badge-accent { background: var(--accent-bg); color: var(--accent); border-color: #93C5FD; }
.td-nowrap { white-space: nowrap; }
.res-credit-banner-flex {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
  padding-right: 128px;
}
.res-credit-main { flex: 1 1 auto; min-width: 0; position: relative; z-index: 2; }
.res-credit-mascot-wrap {
  position: absolute;
  right: 0;
  bottom: 0;
  top: 0;
  width: 148px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 1;
}
.res-credit-mascot-img {
  height: 100%;
  width: 148px;
  object-fit: cover;
  object-position: center top;
  display: block;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.6) 18%, #000 38%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.6) 18%, #000 38%);
}
@media (max-width: 520px) {
  .res-credit-banner-flex { padding-right: 18px; }
  .res-credit-mascot-wrap { opacity: 0.35; width: 110px; }
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; justify-content: center; }
.chip {
  padding: 2px 8px;
  font-size: 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  color: var(--ink-2);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  background: var(--surface-alt);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  white-space: nowrap;
}
tr:last-child td { border-bottom: none; }

/* Pricing */
.plan-card { display: flex; flex-direction: column; justify-content: space-between; }
.plan-card.recommended { border: 2px solid var(--accent); }
.plan-price { font-size: 26px; font-weight: 700; color: var(--ink); margin: 8px 0 2px; }
.plan-sub { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.plan-list { padding-left: 18px; margin: 0 0 16px 0; color: var(--ink-2); font-size: 13px; }
.plan-list li { margin-bottom: 6px; }

/* Reseller Grid — Centered Name & Balanced Layout */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.toolbar input { flex: 1 1 240px; }
.toolbar select { flex: 0 0 210px; }

.reseller-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  align-items: stretch;
}
.reseller-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border-radius: var(--radius-lg);
}
.reseller-media {
  height: 132px;
  width: 100%;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.reseller-logo-frame {
  width: 92px;
  height: 92px;
  aspect-ratio: 1 / 1;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reseller-logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.reseller-media-monogram {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-bg);
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.04em;
}
.reseller-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  text-align: center;
}
.reseller-title {
  text-align: center;
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
}
.reseller-meta { font-size: 12.5px; color: var(--ink-2); text-align: center; }
.reseller-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}
.reseller-actions .btn-wa-full {
  width: 100%;
  text-align: center;
}

/* Tabs & Alerts */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.tab-btn {
  padding: 8px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.tab-btn:hover { background: #E2E8F0; }
.tab-btn.active {
  background: var(--accent);
  border-color: var(--navy);
  color: #FFFFFF;
}
.alert {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  font-size: 13px;
  margin-bottom: 12px;
}
.alert.ok { background: var(--ok-bg); border-color: #86EFAC; color: var(--ok); }
.alert.err { background: var(--err-bg); border-color: #FCA5A5; color: var(--err); }
.alert.warn { background: var(--warn-bg); border-color: #FCD34D; color: var(--warn); }
.hidden { display: none !important; }

/* 1:1 Logo Cropper Box */
.cropper-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  align-items: start;
}
.cropper-canvas {
  width: 240px;
  height: 240px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  cursor: grab;
  touch-action: none;
  display: block;
}
.cropper-canvas:active { cursor: grabbing; }

/* Footer — Dark Navy with Patented Brand Colors */
.site-footer {
  background: var(--navy);
  border-top: 1px solid #1E3A68;
  padding: 22px 0;
  font-size: 13px;
  color: #CBD5E1;
}
.site-footer a { color: #93C5FD; }
.footer-brand { font-weight: 400; color: #FFFFFF; }
.footer-brand-flash { color: #F97316; font-weight: 400; }

/* Floating Label Inputs, Selects & Frames */
.fl-field {
  position: relative;
  margin-bottom: 14px;
}
.fl-field input,
.fl-field select {
  width: 100%;
  height: 44px;
  padding: 15px 12px 6px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.fl-field input[type="file"] {
  padding: 16px 10px 6px;
  font-size: 12px;
}
.fl-field-pw input {
  padding-right: 42px;
}
.fl-eye-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
  padding: 0;
}
.fl-eye-btn:hover {
  color: var(--ink);
  background: var(--surface-alt);
}
.fl-field label {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--surface);
  padding: 0 5px;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  pointer-events: none;
  transition: top 0.15s ease, font-size 0.15s ease, color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.fl-field input:focus + label,
.fl-field input:not(:placeholder-shown) + label,
.fl-field-select label,
.fl-field-file label {
  top: 0;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}
.fl-field input:focus,
.fl-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-bg);
}
.fl-frame {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 18px 18px;
}
.fl-frame-title {
  position: absolute;
  top: -10px;
  left: 14px;
  background: var(--surface);
  padding: 0 8px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy-text);
  border-radius: var(--radius-sm);
}

/* Home Page — Commercial Platform & Operations Matrix */
.plat-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.plat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plat-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.plat-card-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy-text);
  margin: 0;
}
.plat-op-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.plat-op-list li::before {
  content: "• ";
  color: #F97316;
  font-weight: 800;
}

/* LogicClient Page — Professional Remote Servicing Flow */
.lc-hero-strip {
  background: var(--navy);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.lc-hero-strip h1 { color: #FFFFFF; font-size: 26px; margin-bottom: 6px; }
.lc-hero-strip p { color: #CBD5E1; margin: 0; max-width: 660px; }
.lc-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.lc-step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.lc-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: #FFFFFF;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 10px;
}

/* Reseller Console — Pro Credit Balance Banner */
.res-credit-banner {
  background: linear-gradient(135deg, #0B1D3A 0%, #153462 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 16px;
  border: 1px solid #1E3A68;
}
.res-credit-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #93C5FD;
  margin-bottom: 4px;
}
.res-credit-num {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.15;
  margin-bottom: 12px;
}
.res-rate-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.res-rate-pill {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(147, 197, 253, 0.28);
  border-radius: var(--radius-sm);
  padding: 4px 9px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: #E2E8F0;
}

/* Download Page — 2-Column Single-Row Installer Grid */
.dl-releases-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.dl-release-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0;
  padding: 16px;
}
.dl-release-card .mono {
  font-size: 12px;
  color: var(--ink-2);
  word-break: break-word;
}
@media (max-width: 780px) {
  .dl-releases-grid {
    grid-template-columns: 1fr;
  }
}

/* Reseller Console — Inline License Plan + Activate Button Row */
.activate-plan-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 14px;
}
.activate-plan-row .fl-field {
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0;
}
.activate-inline-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  padding-left: 16px;
  padding-right: 16px;
}
@media (max-width: 560px) {
  .activate-plan-row {
    flex-direction: column;
  }
}

/* Reseller Console — Compact Dynamic Profit Scheme Card (Fits Exact Right-Column Height) */
.res-profit-panel {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.res-profit-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #0B1D3A 0%, #142C54 100%);
  color: #FFFFFF;
  border: 1px solid #1E3A68;
  border-radius: var(--radius-lg);
  padding: 10px 116px 10px 14px;
  margin-bottom: 10px;
  min-height: 72px;
}
.res-profit-hero-main {
  position: relative;
  z-index: 2;
  min-width: 0;
}
.res-profit-kicker {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4ADE80;
  margin-bottom: 2px;
}
.res-profit-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 3px;
}
.res-profit-desc {
  font-size: 11px;
  line-height: 1.35;
  color: #CBD5E1;
  margin: 0;
}
.res-profit-art-wrap {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 122px;
  pointer-events: none;
  z-index: 1;
}
.res-profit-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.55) 22%, #000 46%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.55) 22%, #000 46%);
}
.res-profit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.res-profit-row {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.res-profit-row.is-selected {
  border-color: #16A34A;
  background: #F0FDF4;
}
.res-profit-plan-meta {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1.2;
}
.res-profit-gain-val {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 800;
  color: #15803D;
  line-height: 1.2;
}
@media (max-width: 560px) {
  .res-profit-hero { padding-right: 14px; }
  .res-profit-art-wrap { opacity: 0.28; width: 104px; }
  .res-profit-list { grid-template-columns: 1fr; }
}

/* Admin Dev — Option 1 Asymmetric Bento Command Grid + Sub-Tab Navigation */
.admin-bento {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}
.admin-bento-hero {
  grid-row: 1 / 3;
  background: linear-gradient(135deg, #0B1D3A 0%, #132A52 100%);
  color: #FFFFFF;
  border-radius: 10px;
  padding: 18px 20px;
  border: 1px solid #1E3A68;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.admin-bento-hero::after {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.2) 0%, transparent 70%);
  pointer-events: none;
}
.admin-bento-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.admin-bento-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: #4ADE80;
  background: rgba(22, 163, 74, 0.16);
  border: 1px solid rgba(74, 222, 128, 0.35);
  padding: 3px 9px;
  border-radius: 99px;
}
.admin-bento-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ADE80;
}
.admin-bento-refresh {
  appearance: none;
  background: rgba(255, 255, 255, 0.10);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.admin-bento-refresh:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}
.admin-bento-hero-mid {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 14px 0;
  position: relative;
  z-index: 1;
}
.admin-bento-ring {
  width: 82px;
  height: 82px;
  flex-shrink: 0;
}
.admin-bento-hero-kicker {
  font-size: 10.5px;
  color: #93C5FD;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.admin-bento-hero-val {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  color: #FFFFFF;
}
.admin-bento-hero-val span:last-child {
  font-size: 17px;
  color: #94A3B8;
  font-weight: 600;
}
.admin-bento-hero-sub {
  font-size: 12px;
  color: #CBD5E1;
  margin-top: 6px;
}
.admin-bento-hero-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  color: #93C5FD;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 10px;
  position: relative;
  z-index: 1;
}
.admin-bento-tile {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.admin-bento-tile-k {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #64748B;
  text-transform: uppercase;
}
.admin-bento-tile-v {
  font-size: 30px;
  font-weight: 800;
  color: #0B1D3A;
  margin: 6px 0 6px;
  line-height: 1.05;
}
.admin-bento-chip-o {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  color: #C2410C;
  background: #FFF7ED;
  border: 1px solid #FDBA74;
  padding: 2px 8px;
  border-radius: 4px;
}
.admin-bento-chip-s {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  color: #475569;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  padding: 2px 8px;
  border-radius: 4px;
}
.admin-bento-wide {
  grid-column: 2 / 4;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.admin-bento-wide-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-bento-bar {
  height: 10px;
  background: #E2E8F0;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
}
.admin-bento-bar-g {
  background: linear-gradient(90deg, #16A34A 0%, #22C55E 100%);
  transition: width 0.25s ease;
}
.admin-bento-bar-o {
  background: #F97316;
  transition: width 0.25s ease;
}
.admin-bento-legend {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: #475569;
}
@media (max-width: 860px) {
  .admin-bento {
    grid-template-columns: 1fr 1fr;
  }
  .admin-bento-hero {
    grid-column: 1 / 3;
    grid-row: auto;
  }
  .admin-bento-wide {
    grid-column: 1 / 3;
  }
}
@media (max-width: 520px) {
  .admin-bento {
    grid-template-columns: 1fr;
  }
  .admin-bento-hero,
  .admin-bento-wide {
    grid-column: auto;
  }
}

/* Admin Dev — Field Health KPI Cards & Sub-Tab Navigation */
.admin-auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #15803D;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-sm);
}
.admin-auth-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16A34A;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
}
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 10px;
}
.admin-kpi-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-top-width: 3px;
  border-radius: var(--radius-md);
  padding: 13px 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.admin-kpi-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07);
}
.admin-kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.admin-kpi-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.admin-kpi-card .kpi-value {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 4px;
}
.admin-kpi-sub {
  font-size: 10.5px;
  color: var(--muted);
}
.kpi-tone-blue { border-top-color: #2563EB; }
.kpi-tone-blue .admin-kpi-icon { background: #EFF6FF; color: #2563EB; }
.kpi-tone-green { border-top-color: #16A34A; }
.kpi-tone-green .admin-kpi-icon { background: #F0FDF4; color: #16A34A; }
.kpi-tone-orange { border-top-color: #EA580C; }
.kpi-tone-orange .admin-kpi-icon { background: #FFF7ED; color: #EA580C; }
.kpi-tone-indigo { border-top-color: #6366F1; }
.kpi-tone-indigo .admin-kpi-icon { background: #EEF2FF; color: #6366F1; }

.admin-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  padding: 5px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.admin-subtab-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex: 0 0 auto;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}
.admin-subtab-btn:hover {
  background: var(--surface-alt);
  color: var(--ink);
}
.admin-subtab-btn.active {
  background: #0B1D3A;
  color: #FFFFFF;
  border-color: #0B1D3A;
}
@media (max-width: 760px) {
  .admin-subtabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 4px;
    padding: 4px;
  }
  .admin-subtabs::-webkit-scrollbar {
    display: none;
  }
  .admin-subtab-btn {
    font-size: 12px;
    padding: 6px 11px;
  }
}
.admin-promo-schedule-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.admin-promo-days-lbl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
}
.admin-promo-dates-pair {
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-promo-date-lbl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
}
.admin-promo-date-lbl input[type="datetime-local"] {
  padding: 5px 7px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 11px;
}
.admin-promo-actions-pair {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
@media (max-width: 760px) {
  .admin-promo-schedule-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .admin-promo-dates-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }
  .admin-promo-date-lbl {
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    min-width: 0;
  }
  .admin-promo-date-lbl input[type="datetime-local"] {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    font-size: 10.5px;
    padding: 5px 6px;
  }
  .admin-promo-actions-pair {
    width: 100%;
  }
  .admin-promo-actions-pair .btn-sm {
    flex: 1 1 0;
    justify-content: center;
  }
}
.admin-panel-head-row,
.admin-rel-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.admin-hf-deploy-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.admin-hf-target-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.admin-hf-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.admin-rel-canary-input {
  width: 255px;
  flex: 0 0 auto;
}
.admin-reward-rule-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin-bottom: 12px;
  background: var(--surface-2, #F8FAFC);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.admin-reward-rule-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.admin-reward-rule-inputs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.admin-reward-rule-lbl {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
}
.admin-reward-rule-lbl input[type="number"] {
  width: 54px;
  height: 30px;
  padding: 0 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-weight: 700;
  box-sizing: border-box;
}
.admin-health-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.admin-health-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
@media (max-width: 760px) {
  .fl-frame-title {
    max-width: calc(100% - 20px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .admin-panel-head-row,
  .admin-rel-head-row {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-rel-canary-input {
    width: 100% !important;
  }
  .admin-hf-deploy-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-hf-target-group {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-hf-target-group .lf-select-wrap,
  .admin-hf-target-group .lf-compact-input {
    width: 100% !important;
  }
  .admin-hf-btn-group {
    width: 100%;
  }
  .admin-hf-btn-group .btn-sm {
    flex: 1 1 0;
    justify-content: center;
  }
  .admin-reward-rule-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .admin-reward-rule-inputs {
    width: 100%;
    justify-content: space-between;
  }
  .admin-health-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-health-actions {
    width: 100%;
  }
  .admin-health-actions .btn-sm {
    flex: 1 1 0;
    justify-content: center;
  }
}
.admin-users-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.admin-users-search-wrap {
  position: relative;
  flex: 1 1 240px;
  min-width: 0;
}
.admin-users-search-wrap .lf-compact-input {
  width: 100%;
}
.admin-users-filter-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.lf-ac-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  z-index: 50;
  max-height: 210px;
  overflow-y: auto;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 20px rgba(11, 29, 58, 0.14);
}
.lf-ac-menu.is-open {
  display: block;
}
.lf-ac-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-size: 12px;
  color: var(--ink);
}
.lf-ac-item:last-child {
  border-bottom: 0;
}
.lf-ac-item:hover {
  background: var(--surface-alt, #F1F5F9);
}
@media (max-width: 760px) {
  .admin-users-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-users-search-wrap {
    flex: 1 1 auto;
    width: 100%;
  }
  .admin-users-filter-right {
    width: 100%;
  }
  .admin-users-filter-right .lf-select-wrap {
    flex: 1 1 0;
  }
}
@media (max-width: 820px) {
  .admin-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .admin-kpi-grid { grid-template-columns: 1fr; }
}

/* Admin Tables — 1/4 + 3/4 Split, Total Count Pills & Pagination Controls */
.grid-1-3 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: 16px;
  align-items: start;
}
@media (max-width: 920px) {
  .grid-1-3 {
    grid-template-columns: 1fr;
  }
}
.admin-title-count {
  margin-left: 4px;
  color: #1D4ED8;
  font-weight: 800;
}
.admin-title-count-warn {
  color: #B45309;
}
.admin-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.admin-pager-sizes {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: #FFFFFF;
}
.admin-pager-size-btn {
  appearance: none;
  height: 26px;
  padding: 0 9px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-2);
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
  cursor: pointer;
}
.admin-pager-size-btn:last-child {
  border-right: none;
}
.admin-pager-size-btn:hover {
  background: var(--surface-alt);
}
.admin-pager-size-btn.active {
  background: #0B1D3A;
  color: #FFFFFF;
}
.admin-pager-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.admin-pager-btn {
  appearance: none;
  height: 26px;
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
}
.admin-pager-btn:hover:not(:disabled) {
  background: var(--surface-alt);
  border-color: var(--ink-2);
}
.admin-pager-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.admin-pager-info {
  font-size: 11px;
  color: var(--muted);
  padding: 0 4px;
}

/* Target Username/Email Autocomplete Dropdown */
.ac-wrap {
  position: relative;
}
.ac-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  z-index: 60;
  background: #FFFFFF;
  border: 1px solid #94A3B8;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  max-height: 240px;
  overflow-y: auto;
  display: none;
}
.ac-menu.is-open {
  display: block;
}
.ac-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-bottom: 1px solid #F1F5F9;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
}
.ac-item:last-child {
  border-bottom: none;
}
.ac-item:hover,
.ac-item.is-active {
  background: #EFF6FF;
}
.ac-user {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  color: #0B1D3A;
}
.ac-email {
  font-size: 11px;
  color: var(--muted);
}
.ac-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  color: #15803D;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Home Redesign — Theme-Matched Alternating Rhythm & Subtle Rounded Precision (max 6-8px) */
.home-sec-white {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.home-sec-slate {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}
.home-sec-dark {
  background: var(--navy);
  border-bottom: 1px solid #1E3A68;
  color: #FFFFFF;
}
.home-sec-dark h2, .home-sec-dark h3 { color: #FFFFFF; }
.home-sec-dark p { color: #CBD5E1; }
.section-kicker-orange { color: #F97316; }

/* Asymmetric Bento Grid (Flagship Capabilities) */
.bento-anchor-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.bento-anchor {
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.bento-anchor-dark {
  background: var(--navy);
  border: 1px solid #1E3A68;
  color: #FFFFFF;
}
.bento-anchor-dark h3 { color: #FFFFFF; font-size: 18px; margin-bottom: 6px; }
.bento-anchor-dark p { color: #CBD5E1; font-size: 13.5px; margin: 0; }
.bento-anchor-light {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
}
.bento-anchor-light h3 { font-size: 18px; margin-bottom: 6px; }
.bento-anchor-light p { font-size: 13.5px; margin: 0; }
.bento-kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 6px;
}
.bento-kicker-orange { color: #F97316; }

/* Inline Mini Hardware Telemetry Console */
.bento-terminal {
  background: #071429;
  border: 1px solid #1E3A68;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.65;
  color: #E2E8F0;
}
.bento-term-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1E3A68;
  padding-bottom: 6px;
  margin-bottom: 8px;
}
.bento-term-title {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #93C5FD;
}
.bento-term-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
}
.bento-term-tag-ok {
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ADE80;
}
.bento-term-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-muted { color: #94A3B8; }
.t-ok { color: #4ADE80; font-weight: 700; }
.t-warn { color: #FBBF24; font-weight: 700; }
.t-err { color: #F87171; font-weight: 700; }

/* Realistic Futuristic Remote USB Visual + Subtle Process Animation */
.bento-remote-visual {
  position: relative;
  border-radius: var(--radius-sm);
  border: 1px solid #1E3A68;
  background-color: #071429;
  background-image:
    linear-gradient(90deg, rgba(7, 20, 41, 0.88) 0%, rgba(7, 20, 41, 0.68) 52%, rgba(7, 20, 41, 0.82) 100%),
    url('/slides/hero-slide-3.jpg');
  background-size: cover;
  background-position: 78% 46%;
  padding: 12px 14px;
  color: #E2E8F0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bento-rv-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(147, 197, 253, 0.2);
  padding-bottom: 6px;
}
.bento-rv-title {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #93C5FD;
}
.bento-rv-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #4ADE80;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.38);
  border-radius: 3px;
  padding: 2px 6px;
}
.bento-rv-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22C55E;
  animation: lfPulseDot 1.8s ease-in-out infinite;
}
.bento-rv-track {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}
.bento-rv-endpoint {
  background: rgba(11, 29, 58, 0.86);
  border: 1px solid #284B82;
  border-radius: 4px;
  padding: 6px 9px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.bento-rv-endpoint-right {
  border-color: rgba(249, 115, 22, 0.55);
}
.bento-rv-ep-tag {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #93C5FD;
}
.bento-rv-endpoint-right .bento-rv-ep-tag { color: #F97316; }
.bento-rv-ep-name {
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
}
.bento-rv-wire {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 90px;
}
.bento-rv-rail {
  position: relative;
  width: 100%;
  height: 4px;
  background: rgba(148, 163, 184, 0.25);
  border-radius: 2px;
  overflow: hidden;
}
.bento-rv-packet {
  position: absolute;
  top: 0;
  left: -35%;
  width: 34%;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #3B82F6 40%, #F97316 85%, #FFFFFF);
  animation: lfPacketGlide 2.2s linear infinite;
}
.bento-rv-p2 {
  animation-delay: 1.1s;
  background: linear-gradient(90deg, transparent, #22C55E 40%, #60A5FA 90%);
}
.bento-rv-pin {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #F97316;
  background: rgba(7, 20, 41, 0.9);
  border: 1px solid #284B82;
  border-radius: 3px;
  padding: 2px 7px;
}
.bento-rv-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10.5px;
  color: #94A3B8;
  border-top: 1px solid rgba(147, 197, 253, 0.16);
  padding-top: 6px;
}
.bento-rv-status { color: #CBD5E1; font-weight: 600; }

.bento-term-line:last-child::after {
  content: "_";
  margin-left: 3px;
  color: #F97316;
  animation: lfBlinkCursor 1.1s steps(1, end) infinite;
}

@keyframes lfPacketGlide {
  0% { left: -35%; }
  100% { left: 105%; }
}
@keyframes lfPulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.82); }
}
@keyframes lfBlinkCursor {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bento-rv-packet, .bento-rv-dot, .bento-term-line:last-child::after { animation: none; }
}

.bento-anchor-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.bento-foot-note { font-size: 11.5px; color: var(--muted); }
.bento-foot-note-dark { font-size: 11.5px; color: #94A3B8; }

/* Compact 4-Column Precision Technical Cards */
.bento-sub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.bento-mini {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.bento-mini:hover {
  border-color: var(--border-strong);
  background: var(--surface-alt);
}
.bento-mini-ok { border-top-color: var(--ok); }
.bento-mini-blue { border-top-color: #1E40AF; }
.bento-mini-orange { border-top-color: #F97316; }
.bento-mini-navy { border-top-color: var(--navy); }
.bento-mini-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.bento-mini-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.bento-mini-spec {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--navy-text);
}
.bento-mini-ok .bento-mini-cat { color: var(--ok); }
.bento-mini-blue .bento-mini-cat { color: #1E40AF; }
.bento-mini-orange .bento-mini-cat { color: #C2410C; }
.bento-mini-navy .bento-mini-cat { color: var(--navy); }
.bento-mini-ok .bento-mini-spec { background: var(--ok-bg); border-color: #BBF7D0; color: var(--ok); }
.bento-mini-blue .bento-mini-spec { background: var(--accent-bg); border-color: #BFDBFE; color: #1E40AF; }
.bento-mini-orange .bento-mini-spec { background: #FFEDD5; border-color: #FED7AA; color: #C2410C; }
.bento-mini h3 { font-size: 14.5px; margin-bottom: 6px; }
.bento-mini p { font-size: 13px; margin: 0; color: var(--ink-2); }

/* Interactive Platform Explorer (Subtle Rectangular Tabs, No Over-Rounded Pills) */
.plat-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.plat-tab-btn {
  appearance: none;
  background: var(--surface);
  color: var(--ink-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.plat-tab-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.plat-tab-btn.active {
  background: var(--navy);
  color: #FFFFFF;
  border-color: var(--navy);
  box-shadow: inset 0 -2px 0 #F97316;
}
.plat-explorer-stage {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
}
.plat-explorer-panel {
  display: none;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.plat-explorer-panel.active { display: grid; }
.plat-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.plat-panel-head h3 { font-size: 18px; margin: 0; }
.plat-panel-lead { font-size: 13.5px; color: var(--ink-2); margin-bottom: 14px; }
.plat-check-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}
.plat-check-grid li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}
.plat-check-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #F97316;
}
.plat-panel-right {
  background: var(--navy);
  border: 1px solid #1E3A68;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  color: #E2E8F0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.plat-spec-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #F97316;
  border-bottom: 1px solid #1E3A68;
  padding-bottom: 6px;
}
.plat-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 12.5px;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.2);
  padding-bottom: 6px;
}
.plat-spec-row:last-child { border-bottom: none; padding-bottom: 0; }
.plat-spec-row span { color: #94A3B8; font-weight: 600; flex-shrink: 0; }
.plat-spec-row strong { color: #FFFFFF; font-weight: 600; text-align: right; font-size: 12px; }

/* Dark Brand Showcase Grid */
.brand-dark-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.brand-dark-card {
  background: var(--navy-2);
  border: 1px solid #1E3A68;
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: border-color 0.15s ease;
}
.brand-dark-card:hover { border-color: #3B82F6; }
.brand-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(147, 197, 253, 0.18);
}
.brand-title-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 5px;
  border-radius: 4px;
  background: #071429;
  border: 1px solid #3B82F6;
  color: #60A5FA;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.brand-mark-orange { border-color: #F97316; color: #F97316; }
.brand-mark-ok { border-color: #22C55E; color: #4ADE80; }
.brand-series {
  font-size: 10px;
  font-weight: 600;
  color: #94A3B8;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-dark-card h3 { font-size: 15px; margin: 0; color: #FFFFFF; line-height: 1.25; }
.brand-dark-card p { font-size: 13px; margin: 0; color: #CBD5E1; line-height: 1.55; }
.brand-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.brand-chip {
  background: #071429;
  border: 1px solid #284676;
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 600;
  color: #93C5FD;
}

/* 3-Step Connected Horizontal Flow */
.steps-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  position: relative;
}
.step-item {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.step-head-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}
.step-num-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: var(--navy);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 13px;
}
.step-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.step-item h3 { margin: 0; font-size: 16.5px; }
.step-item p { margin: 0 0 6px 0; font-size: 13.5px; }

/* LogicClient Dedicated Page — Exact Same Inner-Page Hero Height (272px) */
.lc-hero-band {
  background-color: #071429;
  background-image:
    linear-gradient(90deg, rgba(7, 20, 41, 0.94) 0%, rgba(7, 20, 41, 0.84) 55%, rgba(7, 20, 41, 0.72) 100%),
    url('/slides/hero-slide-3.jpg');
  background-size: cover;
  background-position: center right;
  border-bottom: 1px solid #1E3A68;
  padding: 24px 0;
  height: 272px;
  display: flex;
  align-items: center;
  color: #FFFFFF;
}
.lc-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
  width: 100%;
}
.lc-hero-copy h1 {
  color: #FFFFFF;
  font-size: 28px;
  line-height: 1.18;
  margin-bottom: 6px;
}
.lc-hero-copy .hl-orange { color: #F97316; }
.lc-hero-copy p {
  color: #CBD5E1;
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 10px;
}
.lc-hero-copy .hero-slide-tag { margin-bottom: 8px; }
.lc-hero-copy .hero-actions { margin-top: 8px; }
.lc-hero-note {
  margin-top: 8px;
  font-size: 11px;
  color: #93C5FD;
}
.lc-stage-visual {
  padding: 13px 15px;
  gap: 10px;
  border-color: #284B82;
}
.lc-stage-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.lc-stage-metrics div {
  background: rgba(7, 20, 41, 0.85);
  border: 1px solid #1E3A68;
  border-radius: 4px;
  padding: 7px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lc-stage-metrics span {
  font-size: 9.5px;
  color: #94A3B8;
  letter-spacing: 0.06em;
}
.lc-stage-metrics strong {
  font-size: 11px;
  color: #FFFFFF;
}
.lc-flow-card {
  border-top: 3px solid var(--navy);
}
.lc-flow-blue { border-top-color: #1E40AF; }
.lc-flow-orange { border-top-color: #F97316; }
.lc-flow-ok { border-top-color: var(--ok); }
.lc-detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 18px;
  align-items: stretch;
}
.lc-spec-dark {
  background: var(--navy);
  border: 1px solid #1E3A68;
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 11px;
}
.lc-download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid #F97316;
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.lc-download-card h3 { margin: 0; font-size: 17px; }
.lc-download-card p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.lc-download-slot {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
}
.lc-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lc-checklist li {
  position: relative;
  padding-left: 16px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.lc-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--ok);
}

/* Download, Pricing, Resellers & Portal — Exact Same Inner-Page Hero Height (272px) */
.dl-hero-band {
  background: var(--navy);
  border-bottom: 1px solid #1E3A68;
  padding: 24px 0;
  height: 272px;
  display: flex;
  align-items: center;
  color: #FFFFFF;
}
.dl-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
  width: 100%;
}
.dl-hero-band h1 { color: #FFFFFF; font-size: 30px; margin-bottom: 10px; }
.dl-hero-band .hl-orange { color: #F97316; }
.dl-hero-band p { color: #CBD5E1; font-size: 14.5px; margin: 0; }
.dl-req-box {
  background: #071429;
  border: 1px solid #1E3A68;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.dl-panel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.dl-panel-banner {
  background: var(--navy);
  border-bottom: 3px solid #F97316;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.dl-panel-banner h2 {
  color: #FFFFFF;
  font-size: 18px;
  margin: 0;
}
.dl-banner-badge {
  background: #071429;
  border: 1px solid #284B82;
  color: #93C5FD;
  border-radius: 4px;
  padding: 4px 9px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.dl-panel-body {
  padding: 18px 22px;
  background: var(--surface-alt);
}
.dl-drivers-grid,
#drivers-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.dl-driver-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.dl-driver-card.bento-mini-ok { border-top-color: var(--ok); }
.dl-driver-card.bento-mini-blue { border-top-color: #1E40AF; }
.dl-driver-card.bento-mini-orange { border-top-color: #F97316; }
.dl-driver-card.bento-mini-navy { border-top-color: var(--navy); }
.dl-driver-card .bento-mini-top { width: 100%; }
.dl-driver-card h3 { margin: 0; font-size: 15px; }
.dl-driver-card p { margin: 0; font-size: 12.5px; color: var(--ink-2); }

.lc-addon-banner {
  margin-top: 24px;
  background: var(--navy);
  border: 1px solid #1E3A68;
  border-left: 4px solid #F97316;
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.lc-addon-copy { max-width: 680px; }
.lc-addon-copy h3 { color: #FFFFFF; font-size: 18px; margin: 0 0 6px 0; }
.lc-addon-copy .hl-orange { color: #F97316; }
.lc-addon-copy p { color: #CBD5E1; font-size: 13.5px; margin: 0; }
.lc-addon-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Account Portal Split Auth & Dashboard Header */
.portal-auth-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 20px;
  align-items: stretch;
}
.portal-auth-aside {
  background: var(--navy);
  border: 1px solid #1E3A68;
  border-top: 3px solid #F97316;
  border-radius: var(--radius-md);
  padding: 24px;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.portal-auth-aside h2 {
  color: #FFFFFF;
  font-size: 20px;
  margin: 0 0 8px 0;
}
.portal-auth-aside p {
  color: #CBD5E1;
  font-size: 13.5px;
  margin: 0 0 16px 0;
}
.portal-aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.portal-aside-list li {
  background: #071429;
  border: 1px solid #1E3A68;
  border-radius: 4px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.portal-aside-list strong {
  color: #FFFFFF;
  font-size: 13px;
}
.portal-aside-list span {
  color: #94A3B8;
  font-size: 12px;
  line-height: 1.45;
}
.portal-aside-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.portal-auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius-md);
  padding: 24px;
}
.portal-auth-tabs {
  margin-bottom: 18px;
}
.portal-dash-bar {
  background: var(--navy);
  border: 1px solid #1E3A68;
  border-left: 4px solid #F97316;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: #FFFFFF;
}
.portal-dash-user {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  min-width: 0;
}
.portal-dash-identity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.portal-dash-user strong { color: #FFFFFF; font-size: 14.5px; }
.portal-dash-email {
  color: #CBD5E1;
  font-size: 12.5px;
  overflow-wrap: anywhere;
}
.portal-dash-email::before {
  content: "\00b7";
  color: #64748B;
  margin-right: 10px;
}
.portal-dash-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* Floating Auto-Dismiss Toast for #portal-alert */
#portal-alert.portal-toast {
  position: fixed;
  top: 74px;
  right: 20px;
  z-index: 95;
  margin: 0;
  max-width: 420px;
  min-width: 240px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 26px rgba(11, 29, 58, 0.22);
  font-weight: 600;
  cursor: pointer;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.24s ease, transform 0.24s ease;
}
#portal-alert.portal-toast.portal-toast-out {
  opacity: 0;
  transform: translateY(-8px);
}

/* Unified Non-Native Custom Dropdown (Identical Clean Look on Desktop & Mobile) */
.lf-native-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  pointer-events: none !important;
}
.fl-field-select {
  position: relative;
}
.lf-select-wrap {
  position: relative;
  width: 100%;
}
.lf-select-trigger {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.lf-select-trigger:hover { border-color: var(--accent); }
.lf-select-wrap.is-open .lf-select-trigger {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(15, 43, 91, 0.12);
}
.lf-select-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lf-select-caret {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  flex-shrink: 0;
  transition: transform 0.16s ease;
}
.lf-select-wrap.is-open .lf-select-caret {
  transform: rotate(-135deg) translateY(-2px);
  border-color: var(--accent);
}
.lf-select-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 70;
  max-height: 240px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgba(11, 29, 58, 0.16);
  padding: 4px;
}
.lf-select-wrap.is-open .lf-select-menu { display: block; }
.lf-select-option {
  width: 100%;
  display: block;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 4px;
  padding: 8px 10px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}
.lf-select-option:hover { background: var(--surface-alt); color: var(--accent); }
.lf-select-option.is-selected {
  background: var(--navy);
  color: #FFFFFF;
  font-weight: 600;
}

/* Mobile Floating Bottom Dock (macOS Dock Style — Crisp Subtle Radius) */
.mobile-dock {
  display: none;
}

/* Mobile Table-to-Accordion (Hidden on Desktop, Active on Mobile <= 860px) */
.m-acc-list {
  display: none;
}

@media (max-width: 860px) {
  .hide-mobile {
    display: none !important;
  }
  .table-wrap table {
    display: none;
  }
  .m-acc-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .m-acc-empty {
    background: #F1F5F9;
    border: 1px dashed #CBD5E1;
    border-radius: var(--radius-sm);
    padding: 14px 12px;
    font-size: 12px;
    font-style: italic;
    color: var(--muted);
    text-align: center;
  }
  .m-acc-item {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    overflow: hidden;
  }
  .m-acc-head {
    width: 100%;
    background: #FFFFFF;
    border: none;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    cursor: pointer;
  }
  .m-acc-item.is-open .m-acc-head {
    background: #F8FAFC;
  }
  .m-acc-head-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }
  .m-acc-primary {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .m-acc-sub {
    font-size: 11px;
    color: var(--muted);
  }
  .m-acc-head-mid {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 4px;
  }
  .m-acc-head-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }
  .m-acc-badge {
    font-size: 10px;
    padding: 2px 6px;
  }
  .m-acc-chev {
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform 0.16s ease;
  }
  .m-acc-item.is-open .m-acc-chev {
    transform: rotate(-135deg);
    border-color: var(--accent);
  }
  .m-acc-body {
    display: none;
    padding: 10px 12px;
    border-top: 1px solid var(--border);
    background: var(--surface);
  }
  .m-acc-item.is-open .m-acc-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .m-acc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    border-bottom: 1px dashed var(--border);
    padding-bottom: 6px;
  }
  .m-acc-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .m-acc-k {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    flex-shrink: 0;
  }
  .m-acc-v {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
    text-align: right;
    color: var(--ink);
    font-weight: 600;
    word-break: break-word;
  }

  body {
    overflow-x: hidden;
  }
  .site-header .nav-links {
    display: none;
  }
  .site-header .header-inner {
    min-height: 54px;
    padding: 6px 16px;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .site-header .api-pill {
    padding: 4px 7px;
    font-size: 10.5px;
  }
  .site-header .header-right .btn-primary {
    padding: 6px 10px;
    font-size: 11.5px;
    white-space: nowrap;
  }
  .brand { font-size: 15px; gap: 7px; }
  .brand-tool-sub { font-size: 15px; }
  .site-footer {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }
  .footer-sep { display: none; }
  .footer-powered {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #94A3B8;
  }
  .mobile-dock {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 7px 6px 6px;
    background: rgba(11, 29, 58, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid #284B82;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(7, 20, 41, 0.45);
  }
  .mobile-dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 2px 2px;
    color: #CBD5E1;
    text-decoration: none;
    border-radius: 6px;
    transition: transform 0.16s ease, color 0.16s ease, background 0.16s ease;
  }
  .mobile-dock-item:hover { text-decoration: none; color: #FFFFFF; }
  .mobile-dock-icon {
    width: 32px;
    height: 30px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(147, 197, 253, 0.16);
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
  }
  .mobile-dock-label {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
  }
  .mobile-dock-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: transparent;
    margin-top: 1px;
  }
  .mobile-dock-item.active {
    color: #FFFFFF;
  }
  .mobile-dock-item.active .mobile-dock-icon {
    background: #1E40AF;
    border-color: #60A5FA;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
  }
  .mobile-dock-item.active .mobile-dock-dot {
    background: #F97316;
  }

  /* Crisp Mobile Layout Polish Across All Pages */
  section { padding: 28px 0; }
  h1, .dl-hero-band h1, .lc-hero-copy h1 { font-size: 24px; }
  h2 { font-size: 19px; }
  .hero-slide h1, .hero-slide h2 { font-size: 26px; }
  .bento-term-line { white-space: normal; word-break: break-word; }
  .plat-tabs-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .plat-tab-btn { flex: 0 0 auto; white-space: nowrap; }
  .dl-drivers-grid, #drivers-list { grid-template-columns: 1fr; }
  .portal-auth-aside, .portal-auth-card { padding: 18px; }
  .portal-dash-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 12px;
  }
  .portal-dash-user {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .portal-dash-identity {
    width: 100%;
    justify-content: space-between;
  }
  .portal-dash-email {
    font-size: 12px;
    width: 100%;
  }
  .portal-dash-email::before {
    display: none;
  }
  .portal-dash-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
  }
  .portal-dash-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .lc-addon-banner { padding: 18px; }
  #portal-alert.portal-toast {
    top: 64px;
    left: 12px;
    right: 12px;
    max-width: none;
    min-width: 0;
  }
}

@media (max-width: 960px) {
  .lc-hero-band, .dl-hero-band {
    height: auto;
    padding: 28px 0;
  }
  .bento-anchor-grid, .plat-explorer-panel.active, .lc-hero-grid, .lc-detail-grid, .dl-hero-grid, .portal-auth-grid {
    grid-template-columns: 1fr;
  }
  .dl-drivers-grid,
  #drivers-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bento-sub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .brand-dark-grid, .steps-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hero-grid, .hero-slide-inner, .grid-2, .grid-3, .plat-showcase-grid, .lc-steps-grid, .pricing-grid-pro, .form-grid-2, .cropper-wrap, .brand-dark-grid, .steps-timeline, .bento-sub-grid, .plat-check-grid, .bento-rv-track {
    grid-template-columns: 1fr;
  }
  .hero-slides {
    display: grid;
  }
  .hero-slide {
    grid-area: 1 / 1;
    display: flex;
    align-items: center;
    height: auto;
    min-height: 430px;
    padding: 32px 0 54px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .hero-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
  }
  .carousel-arrow { display: none; }
  .kpi-grid, .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .toolbar select { flex: 1 1 100%; }
}

/* THEMED CONFIRM / ALERT MODAL (FLAT SHARP BORDER + NAVY ACCENT) */
.lf-ui-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(11, 29, 58, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.lf-ui-modal {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(11, 29, 58, 0.25);
  overflow: hidden;
}
.lf-ui-modal-head {
  background: var(--navy);
  color: #FFFFFF;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--navy-2);
}
.lf-ui-modal-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.lf-ui-modal-body {
  padding: 16px 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
  white-space: pre-wrap;
}
.lf-ui-modal-foot {
  padding: 10px 14px;
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.btn-danger {
  background: var(--err);
  border-color: #7F1D1D;
  color: #FFFFFF;
}
.btn-danger:hover {
  background: #991B1B;
}
