/* ─── Monument Extended Font Family (Self-Hosted + CDN Fallback) ───────── */
@font-face {
  font-family: 'Monument Extended';
  font-style: normal;
  font-weight: 400;
  src: local('Monument Extended Regular'), local('Monument Extended'),
       url('/assets/fonts/MonumentExtended-Regular.woff') format('woff'),
       url('https://fonts.cdnfonts.com/s/19595/MonumentExtended-Regular.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Monument Extended';
  font-style: normal;
  font-weight: 800;
  src: local('Monument Extended Ultrabold'), local('Monument Extended'),
       url('/assets/fonts/MonumentExtended-Ultrabold.woff') format('woff'),
       url('https://fonts.cdnfonts.com/s/19595/MonumentExtended-Ultrabold.woff') format('woff');
  font-display: swap;
}

:root {
  /* Substrates & Surfaces */
  --bg-deep: #050608;
  --bg-surface: #0a0c12;
  --bg-surface-elevated: #10131d;
  --bg-bezel-outer: rgba(255, 255, 255, 0.03);
  --bg-bezel-inner: #080a0f;
  
  /* Precision Borders & Hairlines */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-rigid: #191c28;
  --border-focus: #ff2a2a;
  --inner-highlight: inset 0 1px 1px rgba(255, 255, 255, 0.09);

  /* Tactical Color Accents */
  --accent-red: #ff2a2a;
  --accent-red-hover: #ff4747;
  --accent-red-glow: rgba(255, 42, 42, 0.25);
  --accent-green: #10b981;
  --accent-green-glow: rgba(16, 185, 129, 0.2);
  --accent-cyan: #06b6d4;

  /* Typography Colors */
  --text-phosphor: #f3f4f6;
  --text-muted: #8a91a5;
  --text-dim: #4b5266;

  /* Font Families */
  --font-display: 'Monument Extended', 'Syne', sans-serif;
  --font-sub: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Monument Extended Tracking Tokens */
  --tracking-display: 0.08em;
  --tracking-display-tight: 0.05em;
  --tracking-display-wide: 0.12em;

  /* Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Smooth Scroll */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100dvh;
  background-color: var(--bg-deep);
  color: var(--text-phosphor);
  font-family: var(--font-mono);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient Mechanical Grid Matrix */
.hud-ambient-backplane {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hud-grid-matrix {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hud-radial-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 550px;
  background: radial-gradient(ellipse at center, rgba(255, 42, 42, 0.08) 0%, transparent 70%);
  filter: blur(80px);
}

/* ─── LAN Insecure Context HUD Banner ───────────────────────────────────────── */
.insecure-hud-banner {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  background: linear-gradient(90deg, #180909 0%, #260c0c 50%, #180909 100%);
  border-bottom: 1px solid rgba(255, 42, 42, 0.45);
  padding: 0.65rem 2rem;
  box-shadow: 0 4px 24px rgba(255, 42, 42, 0.2);
}

.insecure-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.insecure-badge {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  color: #ff4747;
  letter-spacing: 0.08em;
  background: rgba(255, 42, 42, 0.15);
  border: 1px solid rgba(255, 42, 42, 0.35);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  white-space: nowrap;
}

.insecure-text {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #d1d5db;
  flex: 1;
}

.insecure-text strong {
  color: #ffffff;
}

.insecure-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-red);
  color: #000000;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.45rem 1.1rem;
  border-radius: 4px;
  transition: all 0.2s var(--ease-spring);
  box-shadow: 0 0 14px rgba(255, 42, 42, 0.4);
  white-space: nowrap;
}

.insecure-action-btn:hover {
  background: var(--accent-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(255, 42, 42, 0.6);
}

/* ─── Top Tactical Navigation ──────────────────────────────────────────────── */
.hud-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2rem;
  background: rgba(5, 6, 8, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: transform 0.3s var(--ease-spring), opacity 0.3s;
}

.hud-nav.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.hud-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  user-select: none;
}

.brand-monogram {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  box-shadow: 0 0 16px rgba(255, 42, 42, 0.15), var(--inner-highlight);
  transition: all 0.25s var(--ease-spring);
}

.hud-brand:hover .brand-monogram {
  border-color: var(--accent-red);
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 0 20px rgba(255, 42, 42, 0.35);
}

.brand-svg-logo {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 4px rgba(255, 42, 42, 0.4));
  transition: transform 0.3s var(--ease-spring);
}

.hud-brand:hover .brand-svg-logo {
  transform: rotate(30deg);
}

.brand-pulse-pip {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-red);
  box-shadow: 0 0 10px var(--accent-red);
  animation: pulsePip 2s infinite ease-in-out;
}

@keyframes pulsePip {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.3); }
}

.brand-title-group {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: var(--tracking-display);
  color: var(--text-phosphor);
}

.brand-sub {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--accent-red);
  letter-spacing: 0.1em;
}

/* Nav Shortcuts */
.hud-nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.32rem 0.75rem;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.nav-link-btn:hover {
  color: #ffffff;
  background: var(--bg-surface-elevated);
  border-color: var(--border-medium);
}

.hud-telemetry {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.telemetry-node {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  padding: 0.35rem 0.65rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  box-shadow: var(--inner-highlight);
}

.node-label {
  color: var(--text-dim);
  font-weight: 700;
}

.node-val {
  color: var(--text-muted);
  font-weight: 700;
}

.node-val.online {
  color: var(--accent-green);
}

.node-val.active {
  color: var(--accent-cyan);
  animation: blinkFast 1.5s infinite;
}

@keyframes blinkFast {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Auth Pill Button */
.auth-pill-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  color: var(--text-phosphor);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.38rem 0.85rem;
  cursor: pointer;
  box-shadow: var(--inner-highlight);
  transition: all 0.2s var(--ease-spring);
}

.auth-pill-btn:hover {
  border-color: var(--accent-red);
  background: #141724;
}

.auth-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--text-dim);
  transition: background-color 0.2s;
}

.auth-status-dot.authenticated {
  background-color: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

.auth-pill-chevron {
  width: 12px;
  height: 12px;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.auth-pill-btn:hover .auth-pill-chevron {
  transform: translateY(1px);
  color: var(--accent-red);
}

/* ─── Main Content Container ───────────────────────────────────────────────── */
.hud-main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ─── Hero Section ─────────────────────────────────────────────────────────── */
.hero-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 960px;
  margin: 1.5rem 0 3.5rem;
  position: relative;
}

.hero-block::before {
  content: "";
  position: absolute;
  inset: -20px -30px;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.3) 2px,
    rgba(0, 0, 0, 0.3) 4px
  );
  pointer-events: none;
  z-index: -1;
  opacity: 0.7;
}

.hero-block.hidden {
  display: none !important;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  background: rgba(255, 42, 42, 0.08);
  border: 1px solid rgba(255, 42, 42, 0.2);
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.eyebrow-pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 6px var(--accent-red);
}

.eyebrow-text {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-phosphor);
}

.eyebrow-code {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--text-muted);
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  font-weight: 800;
  letter-spacing: var(--tracking-display-tight);
  line-height: 1.04;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.hero-heading-gradient {
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-family: var(--font-sub);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 2.25rem;
}

/* ─── Double-Bezel Tactical Search Chassis ─────────────────────────────────── */
.tactical-search-bezel {
  width: 100%;
  padding: 6px;
  background: var(--bg-bezel-outer);
  border: 1px solid var(--border-medium);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), var(--inner-highlight);
  transition: border-color 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-spring);
}

.tactical-search-bezel:focus-within {
  border-color: rgba(255, 42, 42, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 24px var(--accent-red-glow);
}

.tactical-input-form {
  width: 100%;
}

.input-chassis {
  display: flex;
  align-items: center;
  background: var(--bg-bezel-inner);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.4rem 0.6rem 0.4rem 1.25rem;
  gap: 0.75rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.input-prefix {
  display: flex;
  align-items: center;
  user-select: none;
}

.prefix-bracket {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-red);
}

#urlInput {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

#urlInput::placeholder {
  color: var(--text-dim);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

.input-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Button-in-Button Launch Button */
.tactical-launch-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--accent-red);
  color: #000000;
  border: none;
  border-radius: 6px;
  padding: 0.55rem 0.75rem 0.55rem 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.tactical-launch-btn:hover {
  background: var(--accent-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-red-glow);
}

.tactical-launch-btn:active {
  transform: scale(0.98);
}

.btn-nested-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
  transition: transform 0.2s var(--ease-spring);
}

.btn-nested-icon svg {
  width: 14px;
  height: 14px;
  stroke: #000000;
}

.tactical-launch-btn:hover .btn-nested-icon {
  transform: translate(2px, -1px);
}

.tactical-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  box-shadow: var(--inner-highlight);
  transition: all 0.2s var(--ease-spring);
}

.tactical-tab-btn svg {
  width: 16px;
  height: 16px;
}

.tactical-tab-btn:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
  background: #141724;
}

/* ─── Quick Verified Target Launchers ──────────────────────────────────────── */
.targets-container {
  width: 100%;
  margin-top: 2rem;
}

.targets-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.targets-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.targets-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.targets-hotkey-hint {
  font-size: 0.62rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.targets-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.targets-edit-btn:hover {
  border-color: var(--accent-red);
  color: #ffffff;
  background: #141824;
}

.targets-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.target-node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-phosphor);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  box-shadow: var(--inner-highlight);
  transition: all 0.2s var(--ease-spring);
  overflow: hidden;
}

.target-node:hover {
  border-color: rgba(255, 42, 42, 0.4);
  background: var(--bg-surface-elevated);
  transform: translateY(-2px);
}

.target-node:active,
.target-node.key-pressed {
  transform: scale(0.96);
  border-color: var(--accent-red);
  background: #190f0f;
  box-shadow: 0 0 16px var(--accent-red-glow);
}

.node-id {
  font-size: 0.65rem;
  color: var(--accent-red);
  font-weight: 800;
  background: rgba(255, 42, 42, 0.1);
  border: 1px solid rgba(255, 42, 42, 0.2);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}

.node-name {
  flex: 1;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.node-corner-pip {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-medium);
  transition: background 0.2s;
}

.target-node:hover .node-corner-pip {
  background: var(--accent-red);
  box-shadow: 0 0 6px var(--accent-red);
}

/* ─── Tactical Architecture Bento Grid ─────────────────────────────────────── */
.tactical-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  width: 100%;
  margin-top: 3.5rem;
}

.bento-card {
  position: relative;
  background: var(--bg-bezel-outer);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 4px;
  box-shadow: var(--inner-highlight);
  transition: border-color 0.25s var(--ease-spring), transform 0.25s var(--ease-spring);
}

.bento-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.bento-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-bezel-inner);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.5rem;
}

.bento-mesh {
  grid-column: span 7;
}

.bento-vault {
  grid-column: span 5;
}

.bento-cloak {
  grid-column: span 5;
}

.bento-engine {
  grid-column: span 7;
}

.bento-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.bento-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

.bento-status-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--accent-cyan);
}

.bento-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: var(--tracking-display);
  color: var(--text-phosphor);
  margin-bottom: 0.65rem;
}

.bento-desc {
  font-family: var(--font-sub);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1.25rem;
}

.bento-telemetry-row {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.telemetry-chip {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 0.4rem 0.65rem;
  flex: 1;
}

.chip-k {
  font-size: 0.58rem;
  color: var(--text-dim);
  font-weight: 700;
}

.chip-v {
  font-size: 0.72rem;
  color: var(--text-phosphor);
  font-weight: 700;
}

.vault-state-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 0.65rem 0.85rem;
  margin-top: auto;
}

.vault-state-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-dim);
}

.vault-state-val {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-green);
}

.cloak-mini-preview {
  display: flex;
  gap: 0.45rem;
  margin-top: auto;
}

.cloak-preview-pill {
  flex: 1;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.35rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-muted);
}

.engine-specs-row {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.engine-spec-item {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 0.4rem 0.65rem;
}

/* ─── Desktop-Class Cyberdeck Browser Window ───────────────────────────────── */
.cyberdeck-window {
  width: 100%;
  height: 85vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  background: #080a0f;
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), var(--inner-highlight);
  position: relative;
  z-index: 50;
  overflow: hidden;
  transition: opacity 0.25s var(--ease-spring);
}

.cyberdeck-window.hidden {
  display: none !important;
}

/* Multi-Tab Bar */
.deck-tabs-bar {
  display: flex;
  align-items: center;
  background: #040508;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.35rem 0.65rem 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.deck-tabs-scroll {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}

.deck-tab {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.85rem;
  max-width: 220px;
  min-width: 120px;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s;
  position: relative;
}

.deck-tab:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-phosphor);
}

.deck-tab.active {
  background: #0d1017;
  color: #ffffff;
  border-color: var(--border-subtle);
  border-top: 2px solid var(--accent-red);
}

.deck-tab-favicon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deck-tab-favicon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.deck-tab-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deck-tab-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  border-radius: 2px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.15s;
}

.deck-tab-close:hover {
  background: rgba(255, 42, 42, 0.2);
  color: var(--accent-red);
}

.deck-tab-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  border-radius: 4px;
  cursor: pointer;
  margin-left: 0.25rem;
  margin-bottom: 2px;
  transition: all 0.15s;
}

.deck-tab-add-btn svg {
  width: 14px;
  height: 14px;
}

.deck-tab-add-btn:hover {
  background: var(--bg-surface);
  color: #ffffff;
}

/* Header Chrome & Address Bar */
.deck-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.85rem;
  background: #090c12;
  border-bottom: 1px solid var(--border-subtle);
}

.deck-controls, .deck-window-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.deck-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-phosphor);
  cursor: pointer;
  box-shadow: var(--inner-highlight);
  transition: all 0.15s var(--ease-spring);
}

.deck-btn svg {
  width: 14px;
  height: 14px;
}

.deck-btn:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.deck-btn.close-deck-btn:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #000000;
}

.deck-address-bar {
  flex: 1;
  display: flex;
  align-items: center;
  background: #040508;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  gap: 0.5rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.deck-address-bar:focus-within {
  border-color: var(--accent-red);
}

.address-lock {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--accent-green);
  user-select: none;
}

#activeUrlInput {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-phosphor);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.deck-mini-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  transition: color 0.15s;
}

.deck-mini-btn svg {
  width: 14px;
  height: 14px;
}

.deck-mini-btn:hover {
  color: var(--accent-red);
}

/* Panic Cloak Dropdown */
.cloak-dropdown-wrapper {
  position: relative;
}

.cloak-btn {
  width: auto !important;
  padding: 0 0.65rem;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
}

.cloak-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: #0f121a;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  min-width: 150px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.9);
  z-index: 1000;
  overflow: hidden;
}

.cloak-menu.hidden {
  display: none !important;
}

.cloak-menu button {
  padding: 0.55rem 0.85rem;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text-phosphor);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
  transition: background 0.15s;
}

.cloak-menu button:hover {
  background: var(--bg-surface-elevated);
  color: var(--accent-red);
}

/* Bookmarks Bar */
.deck-bookmarks-bar {
  display: flex;
  align-items: center;
  background: #05070a;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.25rem 0.85rem;
  height: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}

.bookmarks-list {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.bookmark-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.bookmark-item:hover {
  background: var(--bg-surface);
  color: #ffffff;
}

/* Progress Bar */
.deck-progress {
  width: 100%;
  height: 2px;
  background: transparent;
  position: relative;
  z-index: 2;
}

.deck-progress.loading {
  background: var(--accent-red);
  animation: scanBar 1.2s infinite ease-in-out;
}

.deck-progress.done {
  background: var(--accent-green);
  opacity: 0;
  transition: opacity 0.3s;
}

@keyframes scanBar {
  0% { transform: scaleX(0.05); transform-origin: left; }
  50% { transform: scaleX(0.7); transform-origin: center; }
  100% { transform: scaleX(0.15); transform-origin: right; }
}

/* Multi-Tab Viewport Container */
.deck-viewport {
  flex: 1;
  width: 100%;
  height: 100%;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.tab-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: #ffffff;
  display: none;
}

.tab-frame.active {
  display: block;
}

/* Fullscreen Window Mode */
.cyberdeck-window.fullscreen {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0 !important;
  border: none !important;
  z-index: 999999 !important;
}

/* ─── User Auth Modal ──────────────────────────────────────────────────────── */
.tactical-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1.5rem;
}

.tactical-modal-backdrop.hidden {
  display: none !important;
}

.tactical-modal-chassis {
  width: 100%;
  max-width: 440px;
  background: #090c12;
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), var(--inner-highlight);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: #050608;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: var(--tracking-display-wide);
  color: var(--accent-red);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s;
}

.modal-close-btn:hover {
  color: var(--accent-red);
}

.modal-tabs {
  display: flex;
  background: #040508;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-tab {
  flex: 1;
  padding: 0.65rem;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.modal-tab.active {
  background: #090c12;
  color: #ffffff;
  border-bottom: 2px solid var(--accent-red);
}

.modal-body {
  padding: 1.5rem;
}

.modal-sub {
  font-family: var(--font-sub);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form.hidden {
  display: none !important;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.form-field input {
  background: #040508;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.form-field input:focus {
  border-color: var(--accent-red);
}

.auth-error {
  padding: 0.5rem 0.75rem;
  background: rgba(255, 42, 42, 0.1);
  border: 1px solid rgba(255, 42, 42, 0.3);
  border-radius: 4px;
  color: var(--accent-red);
  font-size: 0.7rem;
}

.auth-error.hidden {
  display: none !important;
}

.tactical-submit-btn {
  width: 100%;
  padding: 0.75rem;
  background: var(--accent-red);
  color: #000000;
  border: none;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.tactical-submit-btn:hover {
  background: var(--accent-red-hover);
  transform: translateY(-1px);
}

.logged-in-view {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.logged-in-view.hidden {
  display: none !important;
}

.vault-info-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
}

.info-k {
  color: var(--text-dim);
  font-weight: 700;
}

.info-v {
  color: var(--text-phosphor);
  font-weight: 700;
}

.text-green { color: var(--accent-green) !important; }
.text-red { color: var(--accent-red) !important; }

.vault-action-row {
  display: flex;
  gap: 0.65rem;
}

.secondary-btn, .danger-btn {
  flex: 1;
  padding: 0.65rem;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.secondary-btn {
  background: var(--bg-surface-elevated);
  color: var(--text-phosphor);
}

.secondary-btn:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.danger-btn {
  background: rgba(255, 42, 42, 0.1);
  border-color: rgba(255, 42, 42, 0.3);
  color: var(--accent-red);
}

.danger-btn:hover {
  background: var(--accent-red);
  color: #000000;
}

/* ─── Quick Targets Customizer Modal ───────────────────────────────────────── */
.quick-targets-modal-chassis {
  max-width: 620px;
}

.quick-targets-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.quick-targets-instruction {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.quick-targets-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.quick-target-row-edit {
  display: grid;
  grid-template-columns: 65px 140px 1fr 34px;
  gap: 0.55rem;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
}

.target-input-key,
.target-input-name,
.target-input-url {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.4rem 0.6rem;
  outline: none;
  transition: border-color 0.2s;
}

.target-input-key {
  text-align: center;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--accent-red);
}

.target-input-key:focus,
.target-input-name:focus,
.target-input-url:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 8px rgba(255, 42, 42, 0.2);
}

.target-delete-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--text-dim);
  cursor: pointer;
  width: 28px;
  height: 28px;
  font-size: 1.2rem;
  line-height: 1;
  transition: all 0.2s;
}

.target-delete-btn:hover {
  color: var(--accent-red);
  border-color: rgba(255, 42, 42, 0.35);
  background: rgba(255, 42, 42, 0.12);
}

.quick-targets-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.quick-targets-footer-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-subtle {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.btn-subtle:hover {
  border-color: var(--accent-red);
  color: #ffffff;
  background: #141824;
}

.btn-primary {
  background: var(--accent-red);
  border: none;
  border-radius: 6px;
  color: #000000;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.5rem 1.15rem;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
  box-shadow: 0 0 12px rgba(255, 42, 42, 0.35);
}

.btn-primary:hover {
  background: var(--accent-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(255, 42, 42, 0.55);
}

/* ─── FAQ & Knowledge Protocol ─────────────────────────────────────────────── */
.faq-container {
  width: 100%;
  margin-top: 4.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.faq-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-badge {
  display: inline-flex;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--accent-red);
  letter-spacing: 0.12em;
  background: rgba(255, 42, 42, 0.1);
  border: 1px solid rgba(255, 42, 42, 0.25);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.faq-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: var(--tracking-display);
  color: #ffffff;
}

.faq-subtitle {
  font-family: var(--font-sub);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s var(--ease-spring);
}

.faq-item:hover {
  border-color: var(--border-medium);
}

.faq-item.active {
  border-color: rgba(255, 42, 42, 0.4);
  background: var(--bg-surface-elevated);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq-q {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-phosphor);
  letter-spacing: 0.02em;
}

.faq-item.active .faq-q {
  color: #ffffff;
}

.faq-icon {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-red);
  transition: transform 0.25s var(--ease-spring);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease-spring), padding 0.3s var(--ease-spring);
  padding: 0 1.4rem;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding: 0 1.4rem 1.25rem;
}

.faq-answer p {
  font-family: var(--font-sub);
  font-size: 0.88rem;
  line-height: 1.6;
  color: #c0c6d8;
}

.faq-author-link {
  color: var(--accent-red);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}

/* Creator Signature Card */
.creator-signature-card {
  margin-top: 1rem;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, rgba(16, 19, 29, 0.9) 0%, rgba(26, 12, 12, 0.5) 100%);
  border: 1px solid rgba(255, 42, 42, 0.3);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.creator-badge-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.creator-avatar {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--accent-red);
  font-size: 1rem;
  box-shadow: 0 0 12px rgba(255, 42, 42, 0.3);
}

.creator-meta {
  display: flex;
  flex-direction: column;
}

.creator-role {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--text-dim);
  letter-spacing: 0.12em;
}

.creator-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: var(--tracking-display);
}

.creator-bio {
  font-family: var(--font-sub);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.creator-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.creator-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  color: var(--text-phosphor);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.2s var(--ease-spring);
}

.creator-btn:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
  transform: translateY(-1px);
}

/* ─── Pricing / Operator Tiers Modal ───────────────────────────────────────── */
.pricing-modal-chassis {
  max-width: 920px;
  width: min(94vw, 920px);
  max-height: 90vh;
  overflow-y: auto;
}

.pricing-modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pricing-banner-notice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: rgba(255, 42, 42, 0.08);
  border: 1px solid rgba(255, 42, 42, 0.25);
  border-radius: 6px;
}

.pricing-notice-pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 10px var(--accent-red);
  animation: pulsePip 1.5s infinite;
}

.pricing-notice-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ff9999;
}

.pricing-tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.tier-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s var(--ease-spring);
}

.tier-card:hover {
  transform: translateY(-2px);
}

.tier-active {
  border-color: rgba(16, 185, 129, 0.4);
}

.tier-pro {
  border-color: rgba(255, 42, 42, 0.35);
  background: linear-gradient(180deg, rgba(20, 10, 10, 0.8) 0%, rgba(10, 12, 18, 0.8) 100%);
}

.tier-enterprise {
  border-color: rgba(6, 182, 212, 0.3);
}

.tier-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-green);
  margin-bottom: 0.5rem;
}

.tier-tag.pro-tag {
  color: var(--accent-red);
}

.tier-tag.ent-tag {
  color: var(--accent-cyan);
}

.tier-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: var(--tracking-display);
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.tier-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-phosphor);
  margin-bottom: 0.75rem;
}

.tier-price span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  font-weight: 500;
}

.tier-desc {
  font-family: var(--font-sub);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 1.25rem;
  min-height: 38px;
}

.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #cfd4e2;
  margin-bottom: 1.5rem;
  flex: 1;
}

.tier-features li {
  line-height: 1.4;
}

.tier-btn {
  padding: 0.55rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  border: none;
}

.active-tier-btn {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--accent-green);
}

.tier-stamp-soon {
  text-align: center;
  padding: 0.55rem;
  background: rgba(255, 42, 42, 0.12);
  border: 1px solid rgba(255, 42, 42, 0.35);
  color: var(--accent-red);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.pricing-waitlist-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.waitlist-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.waitlist-title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: var(--tracking-display);
}

.waitlist-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.waitlist-form {
  display: flex;
  gap: 0.6rem;
  flex: 1;
  max-width: 400px;
}

.waitlist-form input {
  flex: 1;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  outline: none;
}

.waitlist-form input:focus {
  border-color: var(--accent-red);
}

.waitlist-success {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-green);
  text-align: center;
  padding-top: 0.5rem;
}

/* ─── Profile Cookies Inspector ────────────────────────────────────────────── */
.cookies-inspector-section {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1rem;
}

.cookies-inspector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookies-section-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.06em;
}

.cookies-count-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.cookies-inspector-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cookies-domains-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 180px;
  overflow-y: auto;
}

.empty-cookies-notice {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-style: italic;
  padding: 0.5rem 0;
}

.cookie-domain-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.65rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
}

.cookie-domain-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cookie-domain-name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
}

.cookie-count-tag {
  font-size: 0.62rem;
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.1);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
}

.cookie-domain-purge-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  transition: all 0.2s;
}

.cookie-domain-purge-btn:hover {
  color: var(--accent-red);
  background: rgba(255, 42, 42, 0.1);
  border-color: rgba(255, 42, 42, 0.25);
}

/* ─── Responsive Media Queries ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .pricing-modal-chassis {
    width: 96vw;
    max-height: 92vh;
  }
  .pricing-tiers-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
  }
  .targets-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .bento-mesh, .bento-vault, .bento-cloak, .bento-engine {
    grid-column: span 12;
  }
}

@media (max-width: 768px) {
  .hud-nav {
    padding: 0.75rem 1rem;
  }
  .telemetry-node {
    display: none;
  }
  .hud-main {
    padding: 2rem 1rem 4rem;
  }
  .hero-heading {
    font-size: clamp(2.4rem, 11vw, 3.5rem);
  }
  .targets-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .tactical-bento-grid {
    grid-template-columns: 1fr;
  }
  .input-chassis {
    flex-wrap: wrap;
    padding: 0.75rem;
  }
  .input-actions {
    width: 100%;
    margin-top: 0.5rem;
  }
  .tactical-launch-btn {
    flex: 1;
  }

  /* Pricing Modal Mobile Optimizations */
  .pricing-modal-chassis {
    width: 96vw;
    max-height: 94vh;
  }
  .pricing-modal-body {
    padding: 1rem;
    gap: 1.15rem;
  }
  .pricing-tiers-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .tier-card {
    padding: 1.15rem;
  }
  .tier-price {
    font-size: 1.35rem;
  }
  .pricing-waitlist-box {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
  }
  .waitlist-form {
    max-width: 100%;
    flex-direction: column;
  }
  .waitlist-form input,
  .waitlist-form button {
    width: 100%;
  }
}
