@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Design tokens — referenced as var(--…) across templates. Defining them here
   so those references actually resolve (previously undefined → fell back to
   inherited color). Values mirror BRANDING.md + the explicit hex used in CSS. */
:root {
  --bg:           #0a0a0a;
  --surface:      #111111;
  --card:         #141414;
  --border:       #2a2a2a;
  --accent:       #F08E3F;
  --accent-hover: #d97a2e;
  --text:         #e8e8e8;
  --text-muted:   #888888;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0a0a;
  color: #e8e8e8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* -------------------------
   Navbar
------------------------- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 2rem;
  background: #111;
  border-bottom: 1px solid #1e1e1e;
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: #f5f5f5;
  font-weight: 600;
  font-size: 1rem;
}
.nav-logo { height: 90px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav-link {
  color: #777;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  transition: color .15s;
}
.nav-link:hover, .nav-link.active { color: #F08E3F; }
.nav-user {
  font-size: .84rem;
  color: #555;
  border-left: 1px solid #2a2a2a;
  padding-left: 1.25rem;
}

/* -------------------------
   Main layout
------------------------- */
.main-content {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.page-header h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #f5f5f5;
}
.page-sub {
  font-size: .86rem;
  color: #555;
  margin-top: .2rem;
}
.page-header-actions { display: flex; gap: .75rem; }

/* -------------------------
   Auth / card layout
------------------------- */
.auth-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 60px);
  padding: 2rem 1rem;
}
.card {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
  width: 100%;
  padding: 2.5rem;
}

/* Narrow card — auth forms, small dialogs */
.card-narrow {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.logo {
  display: block;
  margin: 0 auto 1.5rem;
  height: 120px;
  width: auto;
}
.divider { border: none; border-top: 1px solid #2a2a2a; margin-bottom: 1.5rem; }

h1 { font-size: 1.2rem; font-weight: 600; margin-bottom: .4rem; color: #f5f5f5; }
h3 { font-size: 1rem; font-weight: 600; color: #e0e0e0; margin-bottom: .75rem; }

p.sub { color: #777; font-size: .88rem; margin-bottom: 1.5rem; line-height: 1.55; }
label { display: block; font-size: .82rem; font-weight: 500; color: #aaa; margin-bottom: .3rem; }

input[type=text],
input[type=url],
input[type=password],
input[type=email],
input[type=number],
input[type=date],
textarea,
select,
.form-control {
  width: 100%;
  padding: .65rem .9rem;
  background: #1e1e1e;
  border: 1px solid #2e2e2e;
  border-radius: 8px;
  font-size: .92rem;
  color: #f0f0f0;
  outline: none;
  transition: border .15s, box-shadow .15s;
  margin-bottom: 1rem;
  font-family: inherit;
}
textarea { resize: vertical; line-height: 1.5; }
/* native dark dropdown + custom chevron */
select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  padding-right: 2.2rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='%23888' d='M6 8L2 4h8z'/></svg>");
  background-repeat: no-repeat;
  background-position: right .85rem center;
}
select option { background: #1e1e1e; color: #f0f0f0; }
input::placeholder,
textarea::placeholder { color: #555; }
input:focus,
textarea:focus,
select:focus,
.form-control:focus { border-color: #F08E3F; box-shadow: 0 0 0 3px rgba(240,142,63,.15); }

.hint { font-size: .76rem; color: #555; margin-top: -.75rem; margin-bottom: 1rem; }

/* -------------------------
   Buttons
------------------------- */
.btn {
  display: inline-block;
  width: 100%;
  padding: .75rem !important;
  background: #F08E3F;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background .15s, opacity .15s;
  letter-spacing: .01em;
}
.btn:hover { background: #d97a2e; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

.btn.secondary,
.btn-ghost {
  background: transparent;
  color: #F08E3F;
  border: 1.5px solid #F08E3F;
  width: auto;
  padding: .5rem 1rem;
  font-size: .88rem;
}
.btn-ghost:hover,
.btn.secondary:hover { background: rgba(240,142,63,.08); }

.btn-sm {
  width: auto;
  padding: .45rem .9rem;
  font-size: .84rem;
  border-radius: 6px;
}

.btn-danger {
  background: transparent;
  color: #f87171;
  border: 1.5px solid #f87171;
}
.btn-danger:hover { background: rgba(248,113,113,.1); }

/* Primary = solid orange, sized to content (the base .btn is full-width by
   design for auth form submits; .btn-primary is the inline call-to-action). */
.btn-primary {
  width: auto;
  padding: .6rem 1.25rem !important;
  font-size: .9rem;
}

/* Secondary = subtle outline, an alias of .btn-ghost. */
.btn-secondary {
  background: transparent;
  color: #F08E3F;
  border: 1.5px solid #F08E3F;
  width: auto;
  padding: .5rem 1rem;
  font-size: .88rem;
}
.btn-secondary:hover { background: rgba(240,142,63,.08); }

/* -------------------------
   Status / alerts
------------------------- */
.status {
  padding: .65rem .9rem;
  border-radius: 8px;
  font-size: .85rem;
  margin-bottom: 1rem;
}
.status.ok  { background: rgba(16,185,129,.12); color: #34d399; border: 1px solid rgba(52,211,153,.2); }
.status.err { background: rgba(239,68,68,.1);  color: #f87171; border: 1px solid rgba(248,113,113,.2); }

/* -------------------------
   Badges
------------------------- */
.badge {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.badge-active   { background: rgba(16,185,129,.15); color: #34d399; }
.badge-success  { background: rgba(16,185,129,.15); color: #34d399; }
.badge-available { background: rgba(240,142,63,.15); color: #F08E3F; }
.badge-soon     { background: rgba(99,102,241,.15);  color: #a5b4fc; }
.badge-inactive { background: rgba(107,114,128,.15); color: #9ca3af; }

/* -------------------------
   Tools grid
------------------------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.tool-card {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: border-color .15s;
}
.tool-card:hover { border-color: #3a3a3a; }
.tool-card.subscribed { border-color: rgba(240,142,63,.4); }

.tool-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tool-icon { font-size: 1.75rem; }
.tool-name { font-size: 1rem; font-weight: 600; color: #f0f0f0; }
.tool-desc { font-size: .84rem; color: #666; line-height: 1.5; flex: 1; }
.tool-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: auto; }

/* -------------------------
   Admin tables
------------------------- */
.admin-table-wrap {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table thead th {
  padding: .75rem 1rem;
  font-size: .78rem;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid #1e1e1e;
  text-align: left;
}
.admin-table tbody td {
  padding: .75rem 1rem;
  font-size: .88rem;
  border-bottom: 1px solid #1a1a1a;
  color: #ccc;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: #181818; }
.table-link { color: #F08E3F; text-decoration: none; }
.table-link:hover { text-decoration: underline; }

/* Admin detail */
.detail-grid { display: flex; flex-direction: column; gap: 1.5rem; }
.detail-section {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 1.5rem;
}
.info-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.info-table th {
  padding: .4rem .6rem;
  color: #555;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-align: left;
  border-bottom: 1px solid #1e1e1e;
}
.info-table td {
  padding: .45rem .6rem;
  border-bottom: 1px solid #1a1a1a;
  color: #ccc;
}
.info-table td:first-child { color: #555; width: 35%; }

code {
  background: #1e1e1e;
  border: 1px solid #2a2a2a;
  padding: .2rem .45rem;
  border-radius: 4px;
  font-size: .82rem;
  color: #F08E3F;
}

.back-link {
  color: #555;
  text-decoration: none;
  font-size: .84rem;
  display: block;
  margin-bottom: .35rem;
}
.back-link:hover { color: #F08E3F; }

.check { font-size: 2.5rem; text-align: center; margin-bottom: 1rem; }

/* -------------------------
   Footer
------------------------- */
.footer {
  text-align: center;
  font-size: .75rem;
  color: #2a2a2a;
  padding: 1.5rem;
}


/* ============================================================
   ONBOARDING — Progress stepper, form, signature, DNS results
   ============================================================ */

.onboarding-card { margin-bottom: 1.25rem; }

/* Empty state */
.ob-empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
}
.ob-empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.ob-empty-state h3 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.ob-empty-state p { color: var(--color-muted, #777); max-width: 480px; margin: 0 auto 1.5rem; }

/* Progress stepper */
.ob-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.ob-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
  max-width: 110px;
}
.ob-stage-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  border: 2px solid #333;
  background: #1e1e1e;
  color: #555;
  flex-shrink: 0;
}
.ob-stage-label {
  font-size: 0.72rem;
  color: #555;
  text-align: center;
  margin-top: 0.4rem;
  line-height: 1.3;
}
.ob-stage-complete .ob-stage-dot {
  background: #34d399;
  border-color: #34d399;
  color: #000;
}
.ob-stage-complete .ob-stage-label { color: #34d399; }
.ob-stage-active .ob-stage-dot {
  background: #F08E3F;
  border-color: #F08E3F;
  color: #000;
}
.ob-stage-active .ob-stage-label { color: #F08E3F; font-weight: 600; }
.ob-stage-rejected .ob-stage-dot {
  background: #f87171;
  border-color: #f87171;
  color: #000;
}
.ob-stage-rejected .ob-stage-label { color: #f87171; }

.ob-connector {
  height: 2px;
  flex: 1;
  min-width: 24px;
  background: #2a2a2a;
  margin-top: 17px;
  flex-shrink: 0;
}
.ob-connector-done { background: #34d399; }

.ob-status-msg {
  text-align: center;
  color: var(--color-muted, #777);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Summary grid */
.ob-summary-grid { display: flex; flex-direction: column; gap: 0.6rem; }
.ob-summary-row {
  display: flex;
  gap: 1rem;
  font-size: 0.88rem;
  border-bottom: 1px solid #1e1e1e;
  padding-bottom: 0.5rem;
}
.ob-summary-row:last-child { border-bottom: none; padding-bottom: 0; }
.ob-summary-label { color: #777; min-width: 160px; flex-shrink: 0; }

/* Section titles in form */
.ob-section-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: #e8e8e8;
  border-bottom: 1px solid #1e1e1e;
  padding-bottom: 0.6rem;
}

/* 2-column form grid */
.ob-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.25rem;
}
@media (max-width: 640px) {
  .ob-form-grid { grid-template-columns: 1fr; }
}
.ob-form-grid-2 { grid-template-columns: 1fr 1fr; }

/* Channel selector (HELIOS onboarding) */
.ob-channel-groups { display: flex; flex-direction: column; gap: 1.25rem; }
.ob-channel-group-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #555;
  margin: 0 0 0.5rem;
}
.ob-channel-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ob-channel-opt {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid #2a2a2a;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #ccc;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  user-select: none;
}
.ob-channel-opt:hover { border-color: #F08E3F; }
.ob-channel-opt input[type="checkbox"] { accent-color: #F08E3F; cursor: pointer; }
.ob-channel-opt:has(input:checked) {
  border-color: #F08E3F;
  background: rgba(240,142,63,0.08);
  color: #F08E3F;
}

/* Signature pad */
.ob-sig-container {
  border: 2px dashed #333;
  border-radius: 6px;
  background: #1a1a1a;
  overflow: hidden;
  cursor: crosshair;
}
.ob-sig-canvas {
  display: block;
  width: 100%;
  height: 180px;
  touch-action: none;
}
.ob-sig-actions { margin-top: 0.6rem; display: flex; gap: 0.5rem; }
.ob-sig-display { margin-top: 0.5rem; }
.field-error {
  color: #f87171;
  font-size: 0.82rem;
  margin-top: 0.4rem;
}

/* Required asterisk */
.required { color: #f87171; margin-left: 2px; }

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.alert strong { display: block; margin-bottom: 0.3rem; }
.alert-danger  { background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.3); color: #f87171; }
.alert-success { background: rgba(52,211,153,0.1);  border: 1px solid rgba(52,211,153,0.3);  color: #34d399; }
.alert-info    { background: rgba(96,165,250,0.1);  border: 1px solid rgba(96,165,250,0.3);  color: #60a5fa; }

/* DNS results table */
.ob-dns-table { margin-top: 0; }
.dns-ok { color: #34d399; }
.dns-fail { color: #f87171; }

/* Badge variants */
.badge-warning {
  background: rgba(251,191,36,0.15);
  color: #fbbf24;
  border: 1px solid rgba(251,191,36,0.3);
}
.badge-danger {
  background: rgba(248,113,113,0.15);
  color: #f87171;
  border: 1px solid rgba(248,113,113,0.3);
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
}

/* Modal overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-box {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 2rem;
  max-width: 520px;
  width: 100%;
}

/* Btn danger */
.btn-danger {
  background: #f87171 !important;
  color: #000 !important;
}
.btn-danger:hover { background: #ef4444 !important; }

/* ============================================================
   FORM UTILITY CLASSES (used by onboarding & admin templates)
   ============================================================ */

/* Selectable radio cards — choose-one option lists (HELIOS setup, etc.) */
.choice-group { display: flex; flex-direction: column; gap: .6rem; }
.choice {
  display: flex; gap: .85rem; align-items: flex-start;
  padding: 1rem 1.1rem;
  background: #181818;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  cursor: pointer;
  transition: border .15s, background .15s, box-shadow .15s;
}
.choice:hover { border-color: #3a3a3a; background: #1c1c1c; }
.choice input[type=radio] {
  width: auto; flex: 0 0 auto; margin: .2rem 0 0;
  accent-color: #F08E3F;
}
.choice:has(input:checked) {
  border-color: #F08E3F;
  background: rgba(240,142,63,.06);
  box-shadow: 0 0 0 3px rgba(240,142,63,.12);
}
.choice-body { line-height: 1.4; }
.choice-title { font-weight: 600; font-size: .95rem; color: #f0f0f0; }
.choice-title .muted { font-weight: 400; color: #777; }
.choice-desc  { font-size: .84rem; color: #888; margin-top: .15rem; line-height: 1.5; }

/* Card section heading — small uppercase label above grouped fields */
.section-label {
  margin: 0 0 1rem; font-size: .9rem; font-weight: 600;
  color: #e0e0e0; letter-spacing: .01em;
}

.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: .82rem; font-weight: 500; color: #aaa; margin-bottom: .3rem; }
.form-help   { font-size: .8rem; color: #666; margin-bottom: .5rem; line-height: 1.5; }
.form-hint   { font-size: .78rem; color: #666; margin-top: -.5rem; margin-bottom: 1rem; line-height: 1.5; }
.form-input  {
  width: 100%;
  background: #1e1e1e;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  color: #f5f5f5;
  padding: .55rem .75rem;
  font-size: .88rem;
  font-family: inherit;
  box-sizing: border-box;
}
.form-input:focus {
  border-color: #F08E3F;
  outline: none;
  box-shadow: 0 0 0 3px rgba(240,142,63,.15);
}
.form-input option { background: #1e1e1e; }
.page-subtitle { font-size: .88rem; color: #666; margin-top: .25rem; }

/* Custom file input */
.file-input-label {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .4rem;
  cursor: pointer;
}
.file-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.file-input-name {
  font-size: .8rem;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

/* ============================================================
   STOREFRONT REDESIGN — tools catalog + public home (Cozmos Map)
   Design tokens are explicit hex per the Claude Design handoff.
   ============================================================ */

/* Catalog page shell ---------------------------------------- */
.cat-page { max-width: 1280px; margin: 0 auto; padding: 36px 48px 64px; }
.cat-head { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:24px; flex-wrap:wrap; }
.cat-eyebrow { font-size:12px; font-weight:600; letter-spacing:.16em; text-transform:uppercase; color:#F08E3F; margin-bottom:10px; }
.cat-title { font-size:28px; font-weight:600; color:#f5f5f5; margin:0; letter-spacing:-.02em; }
.cat-search { display:flex; align-items:center; gap:10px; background:#161616; border:1px solid #2a2a2a; border-radius:10px; padding:11px 15px; width:320px; max-width:100%; }
.cat-search input { all:unset; flex:1; font-size:13.5px; color:#ccc; }
.cat-search input::placeholder { color:#5a5a5a; }

.cat-tabs { display:flex; gap:9px; margin-bottom:30px; flex-wrap:wrap; }
.cat-tab { font-size:13px; font-weight:500; padding:7px 15px; border-radius:8px; background:transparent; color:#888; border:1px solid #242424; cursor:pointer; text-decoration:none; transition:border-color .15s,color .15s; }
.cat-tab:hover { color:#ccc; border-color:#3a3a3a; }
.cat-tab.active { background:rgba(240,142,63,.14); color:#F08E3F; border-color:rgba(240,142,63,.4); }

/* Featured spotlight ---------------------------------------- */
.spotlight { position:relative; border-radius:18px; border:1px solid #2a2320; overflow:hidden; background:#141210; margin-bottom:38px; }
.spotlight__glow { position:absolute; top:-120px; right:-60px; width:480px; height:480px; background:radial-gradient(circle,rgba(240,142,63,.22),rgba(240,142,63,0) 68%); pointer-events:none; }
.spotlight__grid { position:relative; display:grid; grid-template-columns:1.35fr 1fr; gap:32px; padding:40px 42px; align-items:center; }
.spotlight__name { font-size:30px; font-weight:600; color:#f5f5f5; margin:0 0 12px; letter-spacing:-.02em; }
.spotlight__desc { font-size:15.5px; color:#a0a0a0; line-height:1.6; margin:0 0 22px; max-width:440px; }
.spotlight__pills { display:flex; gap:8px; margin-bottom:26px; flex-wrap:wrap; }
.spotlight__pill { font-size:12.5px; color:#bdbdbd; padding:6px 12px; border-radius:999px; border:1px solid #2e2a26; background:#191613; }
.spotlight__mono { width:160px; height:160px; border-radius:30px; background:#F08E3F; color:#0a0a0a; display:flex; align-items:center; justify-content:center; font-size:54px; font-weight:700; box-shadow:0 20px 60px rgba(240,142,63,.28); }

/* Category rows + compact cards ----------------------------- */
.cat-row { margin-bottom:34px; }
.cat-row__head { display:flex; align-items:center; justify-content:space-between; margin-bottom:15px; }
.cat-row__title { font-size:16px; font-weight:600; color:#e6e6e6; margin:0; }
.cat-row__count { font-size:13px; color:#666; }
.cat-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }

.tcard { background:#141414; border:1px solid #242424; border-radius:13px; padding:18px; display:flex; gap:14px; transition:border-color .15s; }
.tcard:hover { border-color:#3a3a3a; }
.tcard__mono { width:42px; height:42px; border-radius:10px; flex:none; display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:700;
  background:var(--cbg); border:1px solid var(--cbd); color:var(--c); }
.tcard__body { flex:1; min-width:0; }
.tcard__top { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:5px; }
.tcard__name { font-size:15px; font-weight:600; color:#f0f0f0; margin:0; }
.tcard__desc { font-size:12.5px; color:#838383; line-height:1.45; margin:0 0 12px; }
.tcard__cta { border-radius:7px; padding:7px 13px; font-size:12.5px; font-weight:600; font-family:inherit; cursor:pointer; text-decoration:none; display:inline-block;
  background:var(--btnbg); color:var(--c); border:1px solid var(--cbd); }
.tcard__cta:disabled { cursor:default; opacity:.85; }

/* status badge (shared catalog + home) */
.stbadge { font-size:10px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; padding:3px 7px; border-radius:5px; white-space:nowrap;
  background:var(--cbg); color:var(--c); }

/* Status color tokens — set --c/--cbg/--cbd/--btnbg on any element */
.st-available   { --c:#F08E3F; --cbg:rgba(240,142,63,.14); --cbd:rgba(240,142,63,.40); --btnbg:rgba(240,142,63,.14); }
.st-active      { --c:#34d399; --cbg:rgba(52,211,153,.13); --cbd:rgba(52,211,153,.36); --btnbg:rgba(52,211,153,.10); }
.st-beta        { --c:#60a5fa; --cbg:rgba(96,165,250,.13); --cbd:rgba(96,165,250,.36); --btnbg:rgba(96,165,250,.10); }
.st-coming_soon { --c:#a5b4fc; --cbg:rgba(165,180,252,.12); --cbd:rgba(165,180,252,.32); --btnbg:rgba(165,180,252,.10); }

@media (max-width: 880px) {
  .cat-page { padding:28px 20px 48px; }
  .spotlight__grid { grid-template-columns:1fr; }
  .spotlight__mono { width:96px; height:96px; font-size:34px; border-radius:22px; }
  .cat-grid { grid-template-columns:1fr; }
}

/* ============================================================
   PUBLIC HOME — Cozmos Map (orbital)
   ============================================================ */
.cz { font-family:'Inter',-apple-system,BlinkMacSystemFont,sans-serif; background:#09081c; color:#e8e8e8; }
.cz a { text-decoration:none; }

.cz-nav { display:flex; align-items:center; justify-content:space-between; padding:14px 36px; background:#0b0a16; border-bottom:1px solid #181530; position:relative; z-index:20; }
.cz-nav__links { display:flex; align-items:center; gap:28px; }
.cz-nav__link { font-size:14px; color:#76729a; font-weight:500; }
.cz-nav__link--active { color:#b7aaff; }
.cz-nav__cta { font-size:14px; font-weight:600; color:#3a1f02; background:linear-gradient(135deg,#ffd29a,#F8A13F); border-radius:9px; padding:9px 18px; }

.cz-hero { position:relative; overflow:hidden; background:radial-gradient(ellipse 80% 70% at 50% 42%, #1d1648 0%, #120f30 45%, #09081c 100%); }
.cz-stage { position:relative; width:1320px; height:850px; margin:0 auto; }

.cz-node { position:absolute; transform:translate(-50%,-50%); z-index:3; }
.cz-node__dot { border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:700; }
.cz-node__name { position:absolute; left:50%; transform:translateX(-50%); white-space:nowrap; font-weight:600; }
.cz-node__cat  { position:absolute; left:50%; transform:translateX(-50%); white-space:nowrap; }

@keyframes cozmosPulse {
  0%,100% { box-shadow:0 0 22px var(--g,rgba(255,255,255,.4)), inset 0 0 0 1px rgba(255,255,255,.25); }
  50%     { box-shadow:0 0 42px var(--g,rgba(255,255,255,.65)), inset 0 0 0 1px rgba(255,255,255,.4); }
}
@keyframes cozmosCore {
  0%,100% { box-shadow:0 0 60px rgba(124,108,255,.45), inset 0 0 0 1px rgba(255,255,255,.18); }
  50%     { box-shadow:0 0 96px rgba(124,108,255,.7), inset 0 0 0 1px rgba(255,255,255,.3); }
}

.cz-section { background:#0a0a0a; }
.cz-vcard { background:#121212; border:1px solid #232323; border-radius:16px; padding:28px; }
.cz-vcard__num { width:42px; height:42px; border-radius:11px; display:flex; align-items:center; justify-content:center; font-size:18px; font-weight:700; background:rgba(240,142,63,.14); border:1px solid rgba(240,142,63,.4); color:#F08E3F; margin-bottom:16px; }
.cz-hcard { background:#141414; border:1px solid #242424; border-radius:14px; padding:22px; display:flex; flex-direction:column; gap:12px; transition:border-color .15s; }
.cz-hcard:hover { border-color:#3a3a3a; }
.cz-hcard__mono { width:46px; height:46px; border-radius:11px; display:flex; align-items:center; justify-content:center; font-size:15px; font-weight:700; background:var(--cbg); border:1px solid var(--cbd); color:var(--c); }

/* Orbital is a fixed 1320px canvas. Below that, hide it and show
   the simplified hero fallback (full bento home is a later task). */
.cz-hero-fallback { display:none; }
@media (max-width: 1360px) {
  .cz-hero { display:none; }
  .cz-hero-fallback { display:block; }
}
@media (max-width: 760px) {
  .cz-nav { padding:12px 18px; }
  .cz-nav__links { gap:16px; }
  .cz-nav__link, .cz-nav__sep { display:none; }
}

/* Orbital motion — energy flowing along connectors + node transitions */
@keyframes cozmosDash { to { stroke-dashoffset: -120; } }
.cz-flow { animation: cozmosDash 5s linear infinite; }
.cz-node { transition: filter .2s ease; will-change: left, top; }
.cz-node:hover { filter: brightness(1.18) saturate(1.1); cursor: pointer; }
.cz-stage { transition: transform .25s ease-out; }

@media (prefers-reduced-motion: reduce) {
  .cz-flow,
  .cz-node__dot { animation: none !important; }
}
