/* ============================================================================
   SessionCodex account portal — app surface styles.
   Builds on the shared tokens in main.css (same brand: cool blue + near-black,
   warm-amber signature reserved for the mark). This file adds the app-specific
   components: auth card, dashboard cards, forms, the seat/machine list, badges.
   ============================================================================ */

/* ----- portal nav (leaner than the marketing nav) ----- */
.portal-nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
}
.portal-nav-email {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.linklike {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0;
  transition: color 0.15s;
}
.linklike:hover { color: var(--text-primary); }

/* ----- centered auth screen (login + interstitial) ----- */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 88px 24px 48px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 36px 32px;
}
.auth-mark {
  display: block;
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
  /* Source PNG already has macOS-style rounded corners + depth baked in.
     No additional styling needed. */
}
.auth-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.auth-sub {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 26px;
}

/* ----- forms ----- */
.field { margin-bottom: 18px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
.field-row > .field { margin-bottom: 0; }
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field-row > .field { margin-bottom: 18px; }
}

/* Info banner — blue-tinted call-out, used at top of Contact tab to
   explain why we collect profile info. */
.info-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 10px;
  margin-bottom: 22px;
}
.info-banner svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--accent-blue);
  margin-top: 1px;
}
.info-banner p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Chip multi-select — pills that toggle on click. Used for Role
   in the Contact form (customer picks any roles that apply). */
.chip-multi {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.chip {
  padding: 7px 13px;
  background: var(--bg-app);
  border: 1px solid var(--border-glass-hover);
  border-radius: 999px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.chip:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.18);
}
.chip.is-selected {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.4);
  color: var(--accent-blue-bright, #60a5fa);
  font-weight: 500;
}
.chip:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* Card sub-headings (h3) used inside .card for sub-sections like 'Rate
   your experience' and 'Get help' inside the Support tab. */
.card-h3 {
  margin: 0 0 6px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.005em;
}
.card-sub {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Star rating widget — 5 SVG star buttons, click to set rating. Hover
   preview fills stars up to the hovered one (mouseenter/mouseleave). */
.star-rating {
  display: inline-flex;
  gap: 4px;
}
.star-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-faint, #4a4a52);
  transition: color 100ms ease, transform 100ms ease;
}
.star-btn:hover { transform: scale(1.08); }
.star-btn svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  transition: fill 100ms ease, stroke 100ms ease;
}
/* Hovered star + everything below it: amber preview */
.star-btn.is-hover {
  color: #e5a442;
}
.star-btn.is-hover svg { fill: rgba(229, 164, 66, 0.25); }
/* Selected (locked) state: solid amber fill */
.star-btn.is-filled {
  color: #e5a442;
}
.star-btn.is-filled svg { fill: #e5a442; }
.star-btn:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Textarea matches .input look (already uses .input class, but textarea
   defaults need an explicit min-height + line-height). */
textarea.input {
  min-height: 90px;
  font-family: var(--font-sans);
  line-height: 1.55;
  resize: vertical;
}

/* Sub-section heading inside a form (e.g., 'Tell us about you' inside the
   Contact form). Separates voluntary profile fields from required contact. */
.dash-subhead {
  margin: 26px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border-glass);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.005em;
}

/* Native <select> matches the .input look. Browser default dropdown arrow
   stays — replaceable with custom SVG later if we want a unified look. */
select.input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) center,
    calc(100% - 13px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
  cursor: pointer;
}
select.input:disabled { cursor: not-allowed; }
select.input option { background: var(--bg-elevated); color: var(--text-primary); }
select.input option[value=""] { color: var(--text-faint, #4a4a52); }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 7px;
}
.field-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
}
.input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-app);
  border: 1px solid var(--border-glass-hover);
  border-radius: 8px;
  padding: 11px 13px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: var(--text-faint); }
.input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}
.input:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-block { width: 100%; justify-content: center; }
.text-center { text-align: center; }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn[disabled], .btn-accent[disabled], .btn-primary[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}
/* revoke / destructive — restrained, not alarming (revoke is normal upkeep) */
.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-sans);
  font-weight: 500;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.28);
  border-radius: 8px;
  padding: 7px 13px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-danger:hover { background: rgba(239, 68, 68, 0.18); color: #fecaca; }

/* ----- inline notices (info / success / error) ----- */
.notice {
  font-size: 13.5px;
  line-height: 1.55;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
  color: var(--text-secondary);
  margin-bottom: 18px;
}
.notice.success { border-color: rgba(34, 197, 94, 0.3); background: rgba(34, 197, 94, 0.08); color: #86efac; }
.notice.error { border-color: rgba(239, 68, 68, 0.3); background: rgba(239, 68, 68, 0.08); color: #fca5a5; }
.notice.info { border-color: rgba(59, 130, 246, 0.3); background: rgba(59, 130, 246, 0.08); color: var(--accent-blue-soft); }
.hidden { display: none !important; }

/* ----- dashboard layout ----- */
.dash {
  max-width: 1100px;
  margin: 0 auto;
  padding: 104px 24px 80px;
}
.dash-welcome {
  margin-bottom: 32px;
}
.dash-h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.6px;
  margin: 0 0 6px;
}
.dash-welcome-sub {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}
.dash-intro {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}
/* Sections are tab-switched (click sidebar item -> that section shows,
   others hide). No scrolling between sections.
   !important forces the rule against any later/more-specific override
   that might creep in — the gap-above-section symptom suggested some
   hidden sections were still claiming space. */
.dash-section {
  display: none !important;
  margin: 0;
  padding: 0;
}
.dash-section.is-shown {
  display: block !important;
}
.dash-section.is-shown > *:first-child {
  margin-top: 0;
}
.dash-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}
.dash-section-title {
  font-family: var(--font-sans);
  font-size: 15px;
  letter-spacing: -0.005em;
  color: var(--text-primary);
  font-weight: 600;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 22px 24px;
}
.card + .card { margin-top: 14px; }

/* ----- read-only key/value rows ----- */
.kv { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.kv:last-child { margin-bottom: 0; }
.kv-label { font-size: 12px; color: var(--text-muted); }
.kv-value { font-size: 14.5px; color: var(--text-primary); }

/* ----- license key line ----- */
.keyline {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-app);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 6px;
}
.keyline code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  user-select: all;
  word-break: break-all;
  flex: 1;
}

/* ----- status badges ----- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid transparent;
}
.badge.active { color: #86efac; background: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.3); }
.badge.revoked { color: var(--text-muted); background: rgba(255, 255, 255, 0.04); border-color: var(--border-glass); }
.badge.disabled { color: #fcd34d; background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.3); }
.badge.refunded { color: var(--text-muted); background: rgba(255, 255, 255, 0.04); border-color: var(--border-glass); }

/* ----- seat meter ----- */
.seats {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 14px 0 8px;
}
.seats strong { color: var(--text-primary); font-weight: 600; }

/* ----- machine rows ----- */
.machine {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--border-glass);
}
.machine-main { flex: 1; min-width: 0; }
.machine-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.machine-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  font-family: var(--font-mono);
}
.machine.is-revoked .machine-label { color: var(--text-muted); }
.machine-actions { flex-shrink: 0; }
.iconbtn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-faint);
  font-size: 12px;
  padding: 2px 4px;
  transition: color 0.15s;
}
.iconbtn:hover { color: var(--text-secondary); }

/* ----- inline revoke confirmation ----- */
.confirm {
  border-top: 1px solid rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.05);
  border-radius: 0 0 8px 8px;
  padding: 14px 0 4px;
  margin-top: 0;
}
.confirm-copy {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.confirm-actions { display: flex; gap: 10px; }

/* ----- purchase rows ----- */
.purchase {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--border-glass);
}
.purchase:first-child { border-top: none; padding-top: 0; }
.purchase-main { min-width: 0; }
.purchase-title { font-size: 14px; color: var(--text-primary); font-weight: 500; }
.purchase-meta { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.purchase-right { text-align: right; flex-shrink: 0; }
.purchase-amount { font-size: 14px; color: var(--text-primary); font-family: var(--font-mono); }
.purchase-link { font-size: 12px; }

/* ----- empty state ----- */
.empty {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}
.empty a { color: var(--accent-blue); }

/* ----- form row for the contact card ----- */
.form-actions { margin-top: 6px; display: flex; align-items: center; gap: 14px; }

/* ----- minimal portal footer ----- */
.portal-footer {
  border-top: 1px solid var(--border-glass);
  padding: 28px 0;
  text-align: center;
}
.portal-footer p {
  font-size: 11.5px;
  color: var(--text-faint);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto;
  padding: 0 24px;
}
.portal-footer a { color: var(--text-muted); }
.portal-footer a:hover { color: var(--text-secondary); }

@media (max-width: 560px) {
  .purchase { flex-direction: column; align-items: flex-start; }
  .purchase-right { text-align: left; }
  .machine { flex-wrap: wrap; }
}

/* ============================================================================
   Open-signup additions (migration 0002): login + signup pages, lock-in
   callouts, license-less CTA, marketing-opt-in checkbox.
   ============================================================================ */

/* ----- auth pages (no nav, full-bleed centered) ----- */
.auth-body {
  background: var(--bg-base);
  min-height: 100vh;
}

.auth-fineprint {
  margin-top: 18px;
  font-size: 11.5px;
  color: var(--text-faint);
  line-height: 1.6;
  text-align: center;
}
.auth-fineprint a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: var(--border-glass-hover);
  text-underline-offset: 2px;
}
.auth-fineprint a:hover { color: var(--text-secondary); }

.auth-back {
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
}
.auth-back a {
  color: var(--text-muted);
  text-decoration: none;
}
.auth-back a:hover { color: var(--text-secondary); }

.link-accent {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
}
.link-accent:hover { color: var(--accent-blue-bright, #60a5fa); text-decoration: underline; }

/* ----- lock-in pill on the signup form ----- */
.lockin-callout {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: rgba(229, 164, 66, 0.07);
  border: 1px solid rgba(229, 164, 66, 0.25);
  border-radius: 10px;
  margin: 0 0 22px;
}
.lockin-eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  color: #e5a442;
}
.lockin-body {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.lockin-body strong { color: var(--text-primary); }

/* ----- lock-in hero on the dashboard ----- */
.lockin-hero {
  margin: 0 0 32px;
  padding: 22px 26px;
  background: linear-gradient(
    135deg,
    rgba(229, 164, 66, 0.10) 0%,
    rgba(229, 164, 66, 0.04) 100%
  );
  border: 1px solid rgba(229, 164, 66, 0.30);
  border-radius: 14px;
}
.lockin-hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: #e5a442;
  margin-bottom: 8px;
}
.lockin-hero-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}
.lockin-hero-sub {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ----- license-less CTA card ----- */
.cta-card {
  text-align: center;
}
.cta-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 10px;
  letter-spacing: -0.2px;
}
.cta-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 22px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}
.cta-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-buttons .btn-accent,
.cta-buttons .btn-secondary {
  text-decoration: none;
  padding: 11px 20px;
  font-size: 14px;
}

/* ----- checkbox row (signup opt-in + dashboard preference toggle) ----- */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 22px;
  padding: 12px 14px;
  background: var(--bg-app);
  border: 1px solid var(--border-glass-hover);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  cursor: pointer;
}
.checkbox-row:hover { border-color: rgba(255, 255, 255, 0.16); }
.checkbox-row input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent-blue);
  cursor: pointer;
}
.checkbox-row-inline {
  margin-bottom: 0;
  background: transparent;
  border: none;
  padding: 0;
}
.checkbox-row-inline:hover { border: none; }

/* ============================================================================
   Dashboard sidebar layout + "My Account" nav pill.
   ============================================================================ */

/* Vertical sidebar layout: fixed 240px sidebar on the left, content
   fills the rest. Redundant width rules on the sidebar lock it firmly
   even if a child tries to push wider (license keys, long product names). */
.dash-layout {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
  width: 100%;
}
.dash-sidebar {
  width: 240px;
  min-width: 240px;
  max-width: 240px;
  flex: 0 0 240px;
  /* Subtle card treatment so the sidebar reads visually as a nav surface
     (not just loose items next to the content). Matches the .dash-content
     card style — they sit as two cards side-by-side. */
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 14px 10px;
}
.dash-content {
  flex: 1 1 0;
  min-width: 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 28px 32px;
}
/* Each section inside the card no longer needs its own card chrome —
   the outer .dash-content IS the card. Remove the inner .card backgrounds
   for direct children of dash-content sections. */
.dash-content .dash-section > .card {
  background: transparent;
  border: none;
  padding: 0;
}
.dash-content .dash-section > .card + .card {
  margin-top: 0;
  padding-top: 18px;
  border-top: 1px solid var(--border-glass);
}
/* Each section gets a clear header above its content, like "My details"
   in the reference. */
.dash-content .dash-section-head {
  margin-bottom: 18px;
}
.dash-content .dash-section-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Sidebar nav: vertical stack of icon+label items.
   IMPORTANT: main.css has a global `nav { position: fixed; top: 0; ... }`
   rule for the top-page nav. The sidebar nav is also a <nav> element,
   so we must reset all those inherited properties explicitly — otherwise
   the sidebar nav escapes its parent and pins itself to the top of the
   viewport as a full-width strip. (That was THE bug behind 'menu across
   the top' for hours of debugging — Jun 30 2026.) */
nav.dash-tabs {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  z-index: auto;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-bottom: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  transition: background 120ms ease, color 120ms ease;
}
.dash-tab:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}
.dash-tab.is-active {
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-blue-bright, #60a5fa);
  font-weight: 600;
}
.dash-tab-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Mobile: collapse sidebar to a horizontal strip above content. */
@media (max-width: 880px) {
  .dash-layout {
    flex-direction: column;
    gap: 18px;
  }
  .dash-sidebar {
    width: 100%;
    min-width: 0;
    max-width: none;
    flex: 1 1 auto;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .dash-sidebar::-webkit-scrollbar { display: none; }
  .dash-tabs {
    flex-direction: row;
    gap: 4px;
  }
  .dash-tab {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

/* ============================================================================
   Overview tab: hero CTA + 3-card metadata grid (SessionCodex-branded).
   ============================================================================ */

/* Hero CTA: welcome message + Download / Buy buttons. Sits below the lock-in
   callout, above the 3-card status grid. */
.overview-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 24px 26px;
  background: linear-gradient(135deg, rgba(59,130,246,0.10) 0%, rgba(59,130,246,0.03) 100%);
  border: 1px solid rgba(59,130,246,0.22);
  border-radius: 14px;
  margin-bottom: 24px;
}
.overview-hero-text {
  flex: 1 1 320px;
  min-width: 0;
}
.overview-hero-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  margin: 0 0 6px;
}
.overview-hero-sub {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
  max-width: 520px;
}
.overview-hero-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.overview-hero-actions .btn-accent,
.overview-hero-actions .btn-secondary {
  text-decoration: none;
  padding: 10px 18px;
  font-size: 13.5px;
  white-space: nowrap;
}

/* 3-card metadata grid: License key · Activations · Plan. */
.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.status-card {
  padding: 18px 20px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
}
.status-card-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.status-card-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.1px;
  line-height: 1.25;
  margin-bottom: 6px;
}
.status-card-value.mono {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0;
}
.status-card-value.muted {
  color: var(--text-muted);
  font-weight: 500;
}
.status-card-value.accent {
  color: #e5a442;
}
.status-card-meta {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}

@media (max-width: 760px) {
  .status-grid {
    grid-template-columns: 1fr;
  }
}

/* "My Account" pill in the top nav — head icon + label.
   Replaces the inline email display. The email is now a title-attribute
   tooltip on this pill (set in dashboard.js). */
.nav-account {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.nav-account:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  border-color: var(--border-glass-hover);
}
.nav-account-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

