:root {
  --bg: #050a12;
  --panel: rgba(10, 20, 34, .76);
  --panel-strong: #0b1626;
  --line: rgba(148, 163, 184, .13);
  --text: #eef5ff;
  --muted: #8190a7;
  --cyan: #42d9ff;
  --cyan-2: #6ee7f9;
  --green: #57e6a1;
  --purple: #9d8cff;
  --orange: #ffb86b;
  --shadow: 0 24px 80px rgba(0,0,0,.36);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
}
button { font: inherit; }
.ambient, .grid-glow { position: fixed; pointer-events: none; z-index: 0; }
.ambient { width: 520px; height: 520px; border-radius: 50%; filter: blur(90px); opacity: .16; }
.ambient-a { background: #007fa8; top: -240px; right: -120px; }
.ambient-b { background: #5530b5; bottom: -300px; left: 220px; }
.grid-glow {
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}
.app-shell { position: relative; z-index: 1; display: flex; min-height: 100vh; }
.sidebar {
  width: 260px; min-height: 100vh; padding: 24px 16px 18px;
  background: rgba(4, 10, 19, .88); border-right: 1px solid var(--line);
  backdrop-filter: blur(24px); display: flex; flex-direction: column;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 24px; }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px;
  background: linear-gradient(145deg, #1c354d, #08121f); border: 1px solid rgba(66,217,255,.45);
  box-shadow: 0 0 28px rgba(66,217,255,.13); font-family: "Space Grotesk"; font-weight: 800;
}
.brand-mark span { color: var(--cyan); }
.brand-copy { display: flex; flex-direction: column; }
.brand-copy strong { font: 700 14px "Space Grotesk"; letter-spacing: .08em; }
.brand-copy span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.workspace-pill {
  display: flex; align-items: center; gap: 9px; padding: 10px 12px; margin: 0 4px 24px;
  border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025);
  color: #aab7ca; font-size: 11px;
}
.pulse-dot, .status-dot, .live-chip span, .foundation-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 12px rgba(87,230,161,.7);
}
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-label { color: #53637b; font-size: 9px; font-weight: 800; letter-spacing: .16em; margin: 10px 12px 7px; }
.nav-item {
  width: 100%; border: 1px solid transparent; background: transparent; color: #8492a8;
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; cursor: pointer;
  text-align: left; transition: .2s ease;
}
.nav-item:hover { color: #dbe7f7; background: rgba(255,255,255,.035); }
.nav-item.active {
  color: #eafaff; background: linear-gradient(90deg, rgba(66,217,255,.13), rgba(66,217,255,.025));
  border-color: rgba(66,217,255,.13); box-shadow: inset 3px 0 0 var(--cyan);
}
.nav-icon { width: 18px; text-align: center; font-size: 16px; color: #667891; }
.nav-item.active .nav-icon { color: var(--cyan); }
.sidebar-footer { margin-top: auto; }
.secure-badge { display: flex; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
.secure-badge .lock { color: var(--green); font-size: 13px; }
.secure-badge div { display: flex; flex-direction: column; }
.secure-badge strong { font-size: 10px; }
.secure-badge span { color: var(--muted); font-size: 9px; margin-top: 3px; }
.version { color: #47566c; font-size: 8px; letter-spacing: .12em; margin: 15px 5px 0; }
.version b { color: #74839a; }
.content { flex: 1; min-width: 0; }
.topbar {
  min-height: 106px; padding: 24px 34px 18px; border-bottom: 1px solid var(--line);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  background: rgba(5,10,18,.54); backdrop-filter: blur(18px);
}
.page-heading .eyebrow, .module-header .eyebrow, .section-header .eyebrow, .panel-header .eyebrow, .hero-kicker {
  color: #5f7794; font-size: 9px; font-weight: 800; letter-spacing: .17em;
}
.page-heading h1 { margin: 5px 0 4px; font: 700 25px "Space Grotesk"; letter-spacing: -.03em; }
.page-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.clock { color: #8090a7; font: 600 11px "Space Grotesk"; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; }
.api-status { display: flex; align-items: center; gap: 8px; color: #9eacc0; font-size: 10px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; }
.api-status.offline .status-dot { background: #ff7184; box-shadow: 0 0 12px rgba(255,113,132,.55); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(66,217,255,.28);
  background: #102438; color: var(--cyan); font-weight: 800; cursor: default;
}
.mobile-brand { display: none; }
.content-scroll { max-width: 1500px; padding: 30px 34px 44px; margin: 0 auto; }
.page-section { display: none; animation: pageIn .35s ease; }
.page-section.active { display: block; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hero-panel {
  min-height: 300px; border: 1px solid rgba(66,217,255,.13); border-radius: 20px;
  background: radial-gradient(circle at 78% 50%, rgba(66,217,255,.11), transparent 30%), linear-gradient(135deg, rgba(13,29,47,.92), rgba(7,15,26,.9));
  box-shadow: var(--shadow); position: relative; overflow: hidden; display: flex;
}
.hero-panel:after { content:""; position:absolute; inset:0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.018) 50%, transparent 70%); }
.hero-copy { position: relative; z-index: 2; padding: 38px 42px; max-width: 660px; }
.hero-copy h2 { margin: 9px 0 14px; font: 700 clamp(34px,4vw,54px) "Space Grotesk"; line-height: .98; letter-spacing: -.055em; }
.hero-copy h2 em { color: var(--cyan); font-style: normal; text-shadow: 0 0 30px rgba(66,217,255,.25); }
.hero-copy p { max-width: 580px; color: #8d9db2; line-height: 1.65; font-size: 12px; }
.hero-actions { display: flex; gap: 10px; margin-top: 24px; }
.primary-button, .ghost-button, .text-button {
  border: 0; cursor: pointer; transition: .2s ease;
}
.primary-button {
  padding: 11px 15px; border-radius: 9px; color: #031017; font-weight: 800; font-size: 11px;
  background: linear-gradient(135deg, var(--cyan), #82e7f5); box-shadow: 0 8px 28px rgba(66,217,255,.2);
}
.primary-button span { margin-left: 8px; }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 12px 34px rgba(66,217,255,.28); }
.ghost-button { padding: 11px 15px; border-radius: 9px; color: #aebdd0; background: rgba(255,255,255,.035); border: 1px solid var(--line); font-size: 11px; }
.ghost-button:hover { background: rgba(255,255,255,.07); color: white; }
.hero-visual { flex: 1; min-width: 300px; position: relative; display: grid; place-items: center; }
.core {
  width: 102px; height: 102px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, #173c52, #08121e 68%); border: 1px solid rgba(66,217,255,.55);
  box-shadow: 0 0 50px rgba(66,217,255,.17), inset 0 0 25px rgba(66,217,255,.1); z-index: 2;
}
.core span { font: 700 40px "Space Grotesk"; color: var(--cyan); line-height: 1; }
.core small { position: absolute; margin-top: 61px; font-size: 6px; letter-spacing: .2em; color: #7590a9; }
.orbit { position: absolute; border: 1px solid rgba(66,217,255,.16); border-radius: 50%; transform: rotate(-18deg); }
.orbit-1 { width: 210px; height: 210px; }
.orbit-2 { width: 285px; height: 145px; transform: rotate(30deg); border-color: rgba(157,140,255,.14); }
.orbit-3 { width: 340px; height: 340px; border-color: rgba(66,217,255,.08); }
.scan-line { position: absolute; width: 240px; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: .35; animation: scan 3.5s ease-in-out infinite; }
@keyframes scan { 0%,100% { transform: translateY(-100px); } 50% { transform: translateY(100px); } }

.section-header { display:flex; justify-content:space-between; align-items:end; margin:34px 2px 14px; }
.section-header h2, .panel-header h3, .module-header h2 { margin: 5px 0 0; font-family: "Space Grotesk"; }
.section-header h2 { font-size: 20px; }
.live-chip { color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .1em; display:flex; gap:7px; align-items:center; }
.live-chip span { width:5px; height:5px; }
.stats-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-card {
  padding: 18px; border:1px solid var(--line); border-radius:14px; background:var(--panel);
  box-shadow: 0 12px 40px rgba(0,0,0,.15); backdrop-filter:blur(14px);
}
.stat-card.accent { border-color: rgba(66,217,255,.2); background: linear-gradient(145deg, rgba(12,33,48,.85), rgba(8,17,29,.78)); }
.stat-top, .stat-bottom { display:flex; justify-content:space-between; align-items:center; }
.stat-top span:first-child { color:#8493a8; font-size:10px; }
.stat-icon { color:#5b718d; font-size:15px; }
.stat-card strong { display:block; margin:13px 0 15px; font:700 31px "Space Grotesk"; letter-spacing:-.04em; }
.stat-bottom { border-top:1px solid var(--line); padding-top:11px; color:#53647a; font-size:9px; }
.trend { color:var(--green); }
.trend.neutral { color:#687990; }
.dashboard-grid { display:grid; grid-template-columns: 1.6fr 1fr; gap:12px; margin-top:12px; }
.panel { border:1px solid var(--line); border-radius:14px; background:var(--panel); padding:19px; box-shadow:0 12px 40px rgba(0,0,0,.15); backdrop-filter:blur(14px); }
.panel-header { display:flex; justify-content:space-between; align-items:start; margin-bottom:14px; }
.panel-header h3 { font-size:15px; }
.text-button { background:transparent; color:var(--cyan); font-size:10px; padding:0; }
.activity-list { display:flex; flex-direction:column; }
.activity-item { display:grid; grid-template-columns:30px 1fr auto; align-items:center; gap:11px; padding:12px 0; border-bottom:1px solid var(--line); }
.activity-item:last-child { border-bottom:0; }
.activity-icon { width:27px; height:27px; border-radius:8px; display:grid; place-items:center; font-size:11px; }
.activity-icon.green { background:rgba(87,230,161,.08); color:var(--green); }
.activity-icon.blue { background:rgba(66,217,255,.08); color:var(--cyan); }
.activity-icon.purple { background:rgba(157,140,255,.08); color:var(--purple); }
.activity-icon.orange { background:rgba(255,184,107,.08); color:var(--orange); }
.activity-item div:nth-child(2) { display:flex; flex-direction:column; }
.activity-item strong { font-size:10px; }
.activity-item div:nth-child(2) span { color:#69798e; font-size:9px; margin-top:3px; }
.activity-item time { color:#53647a; font-size:9px; }
.quick-panel { padding-bottom:10px; }
.quick-action { width:100%; display:flex; align-items:center; gap:11px; padding:12px 0; background:transparent; color:var(--text); border:0; border-bottom:1px solid var(--line); text-align:left; cursor:pointer; }
.quick-action:last-child { border-bottom:0; }
.quick-action > span { width:29px; height:29px; border-radius:8px; display:grid; place-items:center; background:rgba(66,217,255,.07); color:var(--cyan); }
.quick-action div { flex:1; display:flex; flex-direction:column; }
.quick-action strong { font-size:10px; }
.quick-action small { color:#66778e; font-size:9px; margin-top:3px; }
.quick-action b { color:#5d7088; font-size:13px; transition:.2s; }
.quick-action:hover b { color:var(--cyan); transform:translateX(3px); }
.foundation-strip { margin-top:12px; border:1px solid var(--line); border-radius:10px; padding:11px 14px; display:flex; justify-content:space-between; color:#5e7189; font-size:9px; background:rgba(255,255,255,.018); }
.foundation-strip div { display:flex; align-items:center; gap:8px; color:#93a3b7; }
.foundation-dot { width:5px; height:5px; }
.module-header { margin-bottom:20px; }
.module-header h2 { font-size:28px; }
.module-header p { color:var(--muted); font-size:11px; }
.empty-module { min-height:360px; border:1px dashed rgba(66,217,255,.15); border-radius:18px; display:grid; place-items:center; align-content:center; text-align:center; background:rgba(8,17,29,.55); }
.empty-module > span { font-size:36px; color:var(--cyan); opacity:.55; }
.empty-module h3 { margin:15px 0 6px; font:700 18px "Space Grotesk"; }
.empty-module p { color:var(--muted); font-size:11px; }

@media (max-width: 1000px) {
  .sidebar { width:220px; }
  .stats-grid { grid-template-columns:repeat(2,1fr); }
  .dashboard-grid { grid-template-columns:1fr; }
  .hero-visual { min-width:240px; }
}
@media (max-width: 760px) {
  .sidebar { position:fixed; left:-270px; top:0; z-index:10; transition:.25s ease; box-shadow:20px 0 60px rgba(0,0,0,.4); }
  .sidebar.open { left:0; }
  .mobile-brand { display:flex; align-items:center; gap:10px; }
  .mobile-brand strong { font-family:"Space Grotesk"; }
  .icon-button { border:1px solid var(--line); background:rgba(255,255,255,.03); color:white; border-radius:8px; width:34px; height:34px; }
  .page-heading { display:none; }
  .topbar { padding:15px 16px; align-items:center; }
  .clock { display:none; }
  .content-scroll { padding:20px 16px 30px; }
  .hero-panel { min-height:0; }
  .hero-copy { padding:28px 24px; }
  .hero-visual { display:none; }
  .stats-grid { grid-template-columns:1fr 1fr; }
  .foundation-strip { flex-direction:column; gap:8px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns:1fr; }
  .topbar-actions .api-status span:last-child { display:none; }
  .hero-copy h2 { font-size:37px; }
  .hero-actions { flex-direction:column; align-items:stretch; }
}

/* =========================================================
   PRODUCT REGISTRY
   ========================================================= */

.registry-search-panel {
  border: 1px solid rgba(66, 217, 255, .14);
  border-radius: 16px;
  background:
    radial-gradient(circle at 90% 0%, rgba(66, 217, 255, .08), transparent 32%),
    linear-gradient(145deg, rgba(13, 29, 47, .82), rgba(7, 15, 26, .72));
  padding: 18px;
  box-shadow: 0 18px 55px rgba(0,0,0,.22);
  backdrop-filter: blur(16px);
}

.search-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.search-tab {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
  color: #71839b;
  padding: 9px 13px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}

.search-tab:hover {
  color: #dcecff;
  background: rgba(255,255,255,.05);
}

.search-tab.active {
  color: var(--cyan);
  border-color: rgba(66,217,255,.28);
  background: rgba(66,217,255,.08);
  box-shadow: 0 0 18px rgba(66,217,255,.06);
}

.registry-search-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.search-input-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cyan);
  font-size: 20px;
  line-height: 1;
  pointer-events: none;
}

#product-search-input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 40px;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 9px;
  outline: none;
  background: rgba(2,8,16,.72);
  color: var(--text);
  font: 500 11px "Inter", system-ui, sans-serif;
  transition: .2s ease;
}

#product-search-input::placeholder {
  color: #53647a;
}

#product-search-input:focus {
  border-color: rgba(66,217,255,.48);
  box-shadow:
    0 0 0 3px rgba(66,217,255,.07),
    0 0 25px rgba(66,217,255,.07);
}

#product-search-button {
  height: 42px;
  white-space: nowrap;
}

#product-search-button:disabled {
  opacity: .55;
  cursor: wait;
  transform: none;
}

.search-hint {
  margin-top: 9px;
  color: #566981;
  font-size: 9px;
}

.product-result-panel {
  margin-top: 14px;
  min-height: 350px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 15% 20%, rgba(66,217,255,.045), transparent 28%),
    rgba(7,15,26,.62);
  overflow: hidden;
}

.result-placeholder {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}

.result-placeholder h3 {
  margin: 18px 0 7px;
  font: 700 17px "Space Grotesk";
}

.result-placeholder p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.result-orbit {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(66,217,255,.25);
  background: radial-gradient(circle, rgba(66,217,255,.10), rgba(8,17,29,.7));
  box-shadow:
    0 0 35px rgba(66,217,255,.08),
    inset 0 0 25px rgba(66,217,255,.05);
  color: var(--cyan);
  font-size: 27px;
}

.result-orbit.loading {
  animation: registryPulse 1.4s ease-in-out infinite;
}

@keyframes registryPulse {
  0%, 100% {
    transform: scale(.94);
    opacity: .65;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

.result-placeholder.result-error .result-orbit {
  color: #ff7184;
  border-color: rgba(255,113,132,.3);
  background: rgba(255,113,132,.05);
}

.result-placeholder.result-error h3 {
  color: #ff9aaa;
}

/* Verified product */

.product-result {
  padding: 22px;
  animation: productReveal .35s ease;
}

@keyframes productReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.product-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.product-result-header h3 {
  margin: 6px 0 0;
  font: 700 21px "Space Grotesk";
  letter-spacing: -.025em;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border-radius: 8px;
  border: 1px solid rgba(87,230,161,.22);
  background: rgba(87,230,161,.06);
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  white-space: nowrap;
}

.verified-badge span {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(87,230,161,.12);
}

.product-identity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-top: 16px;
}

.identity-card {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.018);
}

.identity-card.primary {
  border-color: rgba(66,217,255,.2);
  background: rgba(66,217,255,.035);
}

.identity-label {
  display: block;
  margin-bottom: 7px;
  color: #60748d;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .13em;
}

.identity-card strong {
  display: block;
  color: #e8f4ff;
  font: 600 11px "Space Grotesk";
  overflow-wrap: anywhere;
}

.identity-card.primary strong {
  color: var(--cyan);
}

.token-value {
  font-family: "Inter", system-ui, sans-serif !important;
  font-size: 9px !important;
  color: #93a7bd !important;
}

.product-details {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.detail-row:last-child {
  border-bottom: 0;
}

.detail-row span {
  color: #687a91;
  font-size: 9px;
}

.detail-row strong {
  color: #dbe8f7;
  font-size: 10px;
  text-align: right;
  overflow-wrap: anywhere;
}

.product-result-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.product-result-footer > span {
  color: #61738a;
  font-size: 9px;
}

.product-result-footer .ghost-button {
  text-decoration: none;
  white-space: nowrap;
}

/* Product Registry responsive */

@media (max-width: 900px) {
  .product-identity-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .registry-search-row {
    flex-direction: column;
  }

  #product-search-button {
    width: 100%;
  }

  .product-result {
    padding: 16px;
  }

  .product-result-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-identity-grid {
    grid-template-columns: 1fr;
  }

  .detail-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .detail-row strong {
    text-align: left;
  }

  .product-result-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* =========================================================
   MACH STOVE — LIGHT PROFESSIONAL THEME
   UI readability upgrade
   ========================================================= */

:root {
  --bg: #f4f7fb;
  --panel: rgba(255,255,255,.92);
  --panel-strong: #ffffff;
  --line: rgba(30, 58, 90, .12);
  --text: #142033;
  --muted: #64748b;
  --cyan: #079dcc;
  --cyan-2: #22b8dc;
  --green: #159b68;
  --purple: #705bd6;
  --orange: #d98220;
  --shadow: 0 18px 50px rgba(31, 55, 80, .09);
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at 85% 0%, rgba(66,217,255,.10), transparent 30%),
    radial-gradient(circle at 10% 100%, rgba(112,91,214,.07), transparent 28%),
    var(--bg);
  font-size: 14px;
}

.ambient {
  opacity: .08;
}

.ambient-a {
  background: #00a8d8;
}

.ambient-b {
  background: #8066dc;
}

.grid-glow {
  background-image:
    linear-gradient(rgba(20,32,51,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,32,51,.035) 1px, transparent 1px);
}

/* Sidebar */

.sidebar {
  background: rgba(255,255,255,.94);
  border-right: 1px solid rgba(30,58,90,.10);
  box-shadow: 8px 0 35px rgba(31,55,80,.045);
}

.brand-mark {
  background: linear-gradient(145deg, #ffffff, #eaf8fc);
  border-color: rgba(7,157,204,.35);
  box-shadow: 0 6px 22px rgba(7,157,204,.10);
}

.brand-copy strong {
  color: #172235;
  font-size: 15px;
}

.brand-copy span {
  color: #718096;
  font-size: 11px;
}

.workspace-pill {
  background: #f7fafc;
  border-color: rgba(30,58,90,.10);
  color: #53657b;
  font-size: 12px;
}

.nav-label {
  color: #8a98aa;
  font-size: 10px;
}

.nav-item {
  color: #5e6e82;
  font-size: 13px;
}

.nav-item:hover {
  color: #172235;
  background: #f3f8fb;
}

.nav-item.active {
  color: #087fa6;
  background: linear-gradient(
    90deg,
    rgba(7,157,204,.10),
    rgba(7,157,204,.025)
  );
  border-color: rgba(7,157,204,.16);
  box-shadow: inset 3px 0 0 var(--cyan);
}

.nav-icon {
  color: #8190a3;
}

.sidebar-footer .secure-badge {
  background: #f7fafc;
  border-color: rgba(30,58,90,.10);
}

.secure-badge strong {
  color: #26364a;
  font-size: 11px;
}

.secure-badge span {
  color: #78879a;
  font-size: 10px;
}

.version {
  color: #8a98aa;
  font-size: 9px;
}

/* Topbar */

.topbar {
  background: rgba(255,255,255,.84);
  border-bottom-color: rgba(30,58,90,.10);
  box-shadow: 0 5px 25px rgba(31,55,80,.035);
}

.page-heading .eyebrow,
.module-header .eyebrow,
.section-header .eyebrow,
.panel-header .eyebrow,
.hero-kicker {
  color: #6f8197;
  font-size: 10px;
}

.page-heading h1 {
  color: #142033;
  font-size: 28px;
}

.page-heading p {
  color: #64748b;
  font-size: 13px;
}

.clock {
  color: #52657b;
  background: #ffffff;
  border-color: rgba(30,58,90,.11);
  font-size: 12px;
}

.api-status {
  color: #52657b;
  background: #ffffff;
  border-color: rgba(30,58,90,.11);
  font-size: 11px;
}

.avatar {
  background: #eaf8fc;
  color: #0787ae;
}

/* Main content */

.content-scroll {
  padding-top: 34px;
}

.module-header {
  margin-bottom: 24px;
}

.module-header h2 {
  color: #172235;
  font-size: 31px;
}

.module-header p {
  color: #64748b;
  font-size: 13px;
}

/* Dashboard hero */

.hero-panel {
  background:
    radial-gradient(
      circle at 78% 50%,
      rgba(7,157,204,.09),
      transparent 30%
    ),
    linear-gradient(135deg, #ffffff, #f5fafc);
  border-color: rgba(7,157,204,.14);
  box-shadow: 0 20px 60px rgba(31,55,80,.08);
}

.hero-copy p {
  color: #60738a;
  font-size: 13px;
}

.hero-copy h2 {
  color: #142033;
}

.hero-copy h2 em {
  color: #078fb8;
  text-shadow: none;
}

.ghost-button {
  color: #52657b;
  background: #ffffff;
  border-color: rgba(30,58,90,.12);
}

.ghost-button:hover {
  color: #087fa6;
  background: #f3f9fb;
}

/* Dashboard cards */

.stat-card,
.panel {
  background: rgba(255,255,255,.90);
  border-color: rgba(30,58,90,.10);
  box-shadow: 0 12px 40px rgba(31,55,80,.07);
}

.stat-card.accent {
  background:
    linear-gradient(
      145deg,
      rgba(232,249,253,.96),
      rgba(255,255,255,.94)
    );
  border-color: rgba(7,157,204,.18);
}

.stat-top span:first-child {
  color: #66788e;
  font-size: 11px;
}

.stat-icon {
  color: #7d91a7;
}

.stat-card strong {
  color: #172235;
  font-size: 34px;
}

.stat-bottom {
  color: #738398;
  font-size: 10px;
}

.trend {
  color: #159b68;
}

.trend.neutral {
  color: #75869a;
}

.section-header h2 {
  color: #172235;
  font-size: 22px;
}

.live-chip {
  font-size: 10px;
}

.panel-header h3 {
  color: #172235;
  font-size: 17px;
}

.text-button {
  font-size: 11px;
}

.activity-item strong {
  color: #25354a;
  font-size: 11px;
}

.activity-item div:nth-child(2) span {
  color: #718197;
  font-size: 10px;
}

.activity-item time {
  color: #7c8ca0;
  font-size: 10px;
}

.quick-action {
  color: #25354a;
}

.quick-action strong {
  font-size: 11px;
}

.quick-action small {
  color: #718197;
  font-size: 10px;
}

.foundation-strip {
  color: #718197;
  background: rgba(255,255,255,.78);
  border-color: rgba(30,58,90,.10);
  font-size: 10px;
}

.foundation-strip div {
  color: #53657b;
}

/* =========================================================
   PRODUCT REGISTRY — LIGHT
   ========================================================= */

.registry-search-panel {
  background:
    radial-gradient(
      circle at 90% 0%,
      rgba(7,157,204,.08),
      transparent 30%
    ),
    linear-gradient(145deg, #ffffff, #f7fbfd);
  border-color: rgba(7,157,204,.15);
  box-shadow: 0 18px 50px rgba(31,55,80,.07);
}

.search-tab {
  color: #718197;
  background: #f7fafc;
  border-color: rgba(30,58,90,.10);
  font-size: 11px;
}

.search-tab:hover {
  color: #087fa6;
  background: #edf8fb;
}

.search-tab.active {
  color: #087fa6;
  border-color: rgba(7,157,204,.25);
  background: rgba(7,157,204,.08);
}

#product-search-input {
  background: #ffffff;
  color: #172235;
  border-color: rgba(30,58,90,.14);
  font-size: 13px;
}

#product-search-input::placeholder {
  color: #9aa8b8;
}

#product-search-input:focus {
  border-color: rgba(7,157,204,.45);
  box-shadow:
    0 0 0 3px rgba(7,157,204,.07),
    0 0 20px rgba(7,157,204,.06);
}

.search-hint {
  color: #8493a6;
  font-size: 10px;
}

.product-result-panel {
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(7,157,204,.035),
      transparent 28%
    ),
    rgba(255,255,255,.92);
  border-color: rgba(30,58,90,.10);
  box-shadow: 0 16px 45px rgba(31,55,80,.055);
}

.result-placeholder h3 {
  color: #26364a;
  font-size: 19px;
}

.result-placeholder p {
  color: #718197;
  font-size: 11px;
}

.result-orbit {
  background: radial-gradient(
    circle,
    rgba(7,157,204,.08),
    #ffffff 70%
  );
  border-color: rgba(7,157,204,.22);
  color: var(--cyan);
}

/* Verified product */

.product-result-header h3 {
  color: #172235;
  font-size: 24px;
}

.product-result-header {
  border-bottom-color: rgba(30,58,90,.10);
}

.verified-badge {
  color: #13845b;
  background: rgba(21,155,104,.07);
  border-color: rgba(21,155,104,.20);
}

.identity-card {
  background: #f9fbfd;
  border-color: rgba(30,58,90,.10);
}

.identity-card.primary {
  background: rgba(7,157,204,.045);
  border-color: rgba(7,157,204,.20);
}

.identity-label {
  color: #7c8da2;
  font-size: 9px;
}

.identity-card strong {
  color: #25354a;
  font-size: 12px;
}

.identity-card.primary strong {
  color: #0787ae;
}

.token-value {
  color: #65768b !important;
  font-size: 10px !important;
}

.product-details {
  border-color: rgba(30,58,90,.10);
  background: #ffffff;
}

.detail-row {
  border-bottom-color: rgba(30,58,90,.08);
  padding: 14px 16px;
}

.detail-row span {
  color: #718197;
  font-size: 10px;
}

.detail-row strong {
  color: #26364a;
  font-size: 11px;
}

.product-result-footer {
  border-top-color: rgba(30,58,90,.10);
}

.product-result-footer > span {
  color: #718197;
  font-size: 10px;
}

/* Larger primary buttons */

.primary-button {
  font-size: 12px;
  padding: 12px 17px;
}

.ghost-button {
  font-size: 12px;
  padding: 12px 17px;
}

/* Empty future modules */

.empty-module {
  background: rgba(255,255,255,.78);
  border-color: rgba(7,157,204,.16);
}

.empty-module h3 {
  color: #26364a;
  font-size: 19px;
}

.empty-module p {
  color: #718197;
  font-size: 12px;
}

/* Mobile */

@media (max-width: 760px) {
  .topbar {
    background: rgba(255,255,255,.96);
  }

  .icon-button {
    background: #ffffff;
    color: #26364a;
    border-color: rgba(30,58,90,.12);
  }
}

/* ADMIN LOGIN */
.admin-login {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 20%, rgba(40, 190, 230, 0.12), transparent 38%),
    #07111f;
}

.admin-login-card {
  width: min(460px, 100%);
  padding: 42px;
  border: 1px solid rgba(91, 218, 255, 0.22);
  border-radius: 24px;
  background: rgba(11, 25, 42, 0.94);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.admin-login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 42px;
}

.admin-login-brand .brand-mark {
  width: 48px;
  height: 48px;
}

.admin-login-brand strong,
.admin-login-brand span {
  display: block;
}

.admin-login-brand strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
}

.admin-login-brand span {
  margin-top: 3px;
  font-size: 12px;
  color: #8fa4b8;
}

.admin-login-heading {
  margin-bottom: 28px;
}

.admin-login-heading h1 {
  margin: 8px 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 34px;
}

.admin-login-heading p {
  margin: 0;
  color: #8fa4b8;
  line-height: 1.6;
}

#admin-login-form label {
  display: block;
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 600;
  color: #b9c9d8;
}

#admin-password {
  width: 100%;
  box-sizing: border-box;
  padding: 15px 16px;
  border: 1px solid rgba(150, 190, 215, 0.2);
  border-radius: 12px;
  outline: none;
  background: #091827;
  color: #fff;
  font: inherit;
}

#admin-password:focus {
  border-color: rgba(58, 207, 241, 0.7);
  box-shadow: 0 0 0 3px rgba(58, 207, 241, 0.1);
}

#admin-login-form .primary-button {
  width: 100%;
  margin-top: 18px;
  justify-content: center;
}

.admin-login-error {
  min-height: 20px;
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: #ff7d91;
}