/* CSS3; Lore AI Cloud — Cinematic Big-Tech Aurora & Holographic Glass Design System (Raycast / Linear / Cursor Flagship, Strict CSP). */
:root {
  color-scheme: dark;
  --bg-deep: #04060e;
  --bg-panel: rgba(12, 17, 34, 0.72);
  --bg-card: rgba(16, 23, 44, 0.74);
  --bg-card-hover: rgba(23, 33, 62, 0.88);
  --bg-code: #050814;
  --border-glass: rgba(148, 163, 255, 0.15);
  --border-hover: rgba(99, 179, 255, 0.42);
  --border-violet: rgba(139, 92, 246, 0.48);
  --border-cyan: rgba(56, 189, 248, 0.48);
  --border-gold: rgba(251, 191, 36, 0.52);
  --text-primary: #f8fafc;
  --text-secondary: #a5b4fc;
  --text-body: #94a3b8;
  --text-muted: #64748b;
  --violet: #8b5cf6;
  --indigo: #6366f1;
  --cyan: #0ea5e9;
  --sky: #38bdf8;
  --emerald: #10b981;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 7px;
  --shadow-glass: inset 0 1px 0 0 rgba(255, 255, 255, 0.12), 0 24px 54px -14px rgba(0, 0, 0, 0.78);
  --shadow-violet: inset 0 1px 0 0 rgba(255, 255, 255, 0.18), 0 0 45px rgba(99, 102, 241, 0.24), 0 24px 54px -12px rgba(0, 0, 0, 0.82);
  --shadow-gold: inset 0 1px 0 0 rgba(254, 243, 199, 0.25), 0 0 45px rgba(245, 158, 11, 0.20), 0 24px 54px -12px rgba(0, 0, 0, 0.82);
  font: 14.5px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Roboto, system-ui, sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  background-color: var(--bg-deep);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

@keyframes nebulaDrift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(4%, 3%, 0) scale(1.1); }
  100% { transform: translate3d(-3%, -2%, 0) scale(0.95); }
}

@keyframes pulseHalo {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.75); }
  50% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
}

@keyframes beamSlide {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 68% 44% at 18% -4%, rgba(124, 58, 237, 0.30), transparent 62%),
    radial-gradient(ellipse 62% 42% at 84% 4%, rgba(14, 165, 233, 0.26), transparent 64%),
    radial-gradient(ellipse 70% 48% at 50% 98%, rgba(16, 185, 129, 0.15), transparent 65%),
    linear-gradient(rgba(148, 163, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 255, 0.032) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 52px 52px, 52px 52px;
  background-attachment: fixed;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: -160px;
  left: 8%;
  width: 640px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, rgba(56, 189, 248, 0.08) 45%, transparent 72%);
  filter: blur(56px);
  pointer-events: none;
  z-index: 0;
  animation: nebulaDrift 18s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  bottom: -220px;
  right: 5%;
  width: 660px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(16, 185, 129, 0.08) 50%, transparent 72%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: nebulaDrift 22s ease-in-out infinite alternate-reverse;
}

.stat-big,
.tier-price,
.hero-metric strong,
td,
code,
pre,
.chip-ctx {
  font-variant-numeric: tabular-nums;
}

/* Top Glass Navbar */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  padding: 0 36px;
  background: rgba(5, 8, 19, 0.76);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #8b5cf6 0%, #0ea5e9 55%, #10b981 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  border: 1px solid rgba(167, 139, 250, 0.45);
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.45), 0 0 10px rgba(56, 189, 248, 0.30);
}

.brand-showcase-banner {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  margin: -10px auto 8px;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 84% 80% at 50% 50%, #000 58%, transparent 98%);
  mask-image: radial-gradient(ellipse 84% 80% at 50% 50%, #000 58%, transparent 98%);
  pointer-events: none;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 10px;
}

header h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.025em;
  background: linear-gradient(92deg, #ffffff 0%, #e0e7ff 55%, #7dd3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tag {
  font-size: 11px;
  font-weight: 650;
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.36);
  padding: 2px 9px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border-glass);
  border-radius: 999px;
}

.top-links a.nav-link {
  color: var(--text-body);
  text-decoration: none;
  font-size: 13px;
  font-weight: 550;
  padding: 6px 14px;
  border-radius: 999px;
  transition: all 0.16s ease;
}

.top-links a.nav-link:hover {
  color: #ffffff;
  background: rgba(99, 102, 241, 0.22);
}

.header-pills {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(16, 185, 129, 0.30);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  display: inline-block;
  flex-shrink: 0;
  animation: pulseHalo 2s infinite;
}

/* Main Container */
main {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 24px 96px;
}

body.admin-layout main {
  max-width: 1500px;
  padding: 26px 28px 72px;
}

/* Buttons */
button,
a.button {
  background: rgba(22, 31, 58, 0.78);
  color: var(--text-primary);
  border: 1px solid rgba(148, 163, 255, 0.22);
  border-radius: var(--radius-md);
  padding: 9px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.15s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

button svg,
a.button svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

button:hover,
a.button:hover {
  background: rgba(34, 48, 88, 0.92);
  border-color: var(--border-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px rgba(14, 165, 233, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

button.primary,
a.button.primary {
  background: linear-gradient(135deg, #6366f1 0%, #0ea5e9 52%, #10b981 100%);
  color: #ffffff;
  border-color: rgba(125, 211, 252, 0.55);
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  box-shadow: 0 0 28px rgba(14, 165, 233, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

button.primary:hover,
a.button.primary:hover {
  background: linear-gradient(135deg, #818cf8 0%, #38bdf8 52%, #34d399 100%);
  border-color: #bae6fd;
  box-shadow: 0 0 36px rgba(56, 189, 248, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

button.subtle,
a.button.subtle {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--text-body);
}

button.subtle:hover,
a.button.subtle:hover {
  background: rgba(148, 163, 255, 0.08);
  color: #ffffff;
  transform: none;
}

button.amber,
a.button.amber {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.24) 0%, rgba(234, 88, 12, 0.22) 100%);
  border-color: var(--border-gold);
  color: #fde68a;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.20), inset 0 1px 0 rgba(254, 243, 199, 0.25);
}

button.amber:hover,
a.button.amber:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff;
  box-shadow: 0 0 32px rgba(245, 158, 11, 0.45);
}

button.danger {
  background: rgba(244, 63, 94, 0.14);
  border-color: rgba(244, 63, 94, 0.38);
  color: #fda4af;
}

button.danger:hover {
  background: rgba(244, 63, 94, 0.26);
  color: #ffffff;
}

button:disabled {
  opacity: 0.45;
  cursor: wait;
  transform: none;
}

/* Hero Split Architecture */
.hero-grid {
  display: grid;
  grid-template-columns: 1.22fr 1fr;
  gap: 32px;
  align-items: stretch;
  margin-bottom: 36px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  color: #e0e7ff;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.20), rgba(14, 165, 233, 0.18));
  border: 1px solid rgba(129, 140, 248, 0.38);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.20);
  margin-bottom: 18px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.038em;
  background: linear-gradient(102deg, #ffffff 10%, #ddd6fe 45%, #7dd3fc 76%, #6ee7b7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  margin: 0 0 24px;
  color: #cbd5e1;
  font-size: 15.5px;
  line-height: 1.62;
  max-width: 600px;
}

/* Animated Live Signal Pipeline Strip inside Hero */
.signal-pipeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 22px;
  border-radius: var(--radius-lg);
  background: rgba(11, 17, 34, 0.78);
  border: 1px solid rgba(99, 102, 241, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.pipe-node {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
  color: #e2e8f0;
  white-space: nowrap;
}

.pipe-badge {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.22);
  border: 1px solid rgba(129, 140, 248, 0.4);
  color: #c7d2fe;
  font-size: 11px;
  font-weight: 700;
}

.pipe-beam {
  flex: 1;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.15), #38bdf8, #10b981, rgba(99, 102, 241, 0.15));
  background-size: 200% 100%;
  animation: beamSlide 3.5s linear infinite;
}

/* Glowing Glass Metric Pods */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.hero-metric {
  padding: 14px 15px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(19, 27, 52, 0.78) 0%, rgba(10, 15, 30, 0.86) 100%);
  border: 1px solid var(--border-glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  position: relative;
  overflow: hidden;
}

.hero-metric::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--sky), var(--emerald));
}

.hero-metric strong {
  display: block;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #ffffff, #bae6fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-metric span {
  font-size: 11.5px;
  font-weight: 550;
  color: var(--text-body);
}

/* Holographic Console Auth Vault Card */
.vault-card {
  position: relative;
  background: linear-gradient(165deg, rgba(20, 28, 56, 0.86) 0%, rgba(9, 14, 28, 0.94) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-violet);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-violet);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.vault-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.85), rgba(56, 189, 248, 0.85), transparent);
}

.vault-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.vault-card h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.vault-sub {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text-body);
}

/* Forms & Inputs */
input,
textarea,
select {
  width: 100%;
  background: rgba(5, 9, 20, 0.86);
  border: 1px solid rgba(148, 163, 255, 0.24);
  color: var(--text-primary);
  padding: 11px 14px;
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 13.5px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

input[name="key"] {
  font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  font-size: 13.5px;
  border-color: rgba(129, 140, 248, 0.42);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--sky);
  background: rgba(7, 12, 26, 0.96);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18), 0 0 22px rgba(99, 102, 241, 0.16);
}

textarea {
  min-height: 120px;
  font: 13px/1.6 "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}

label {
  display: block;
  margin: 10px 0;
  color: #cbd5e1;
  font-weight: 600;
  font-size: 12.5px;
}

label input,
label select {
  margin-top: 6px;
}

.btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 12px;
}

.endpoint-list {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.endpoint-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 13px;
  background: rgba(5, 9, 20, 0.78);
  border: 1px solid rgba(148, 163, 255, 0.18);
  border-radius: var(--radius-md);
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.endpoint-row:hover {
  border-color: var(--sky);
  background: rgba(15, 25, 50, 0.9);
}

.endpoint-row span {
  font-size: 11.5px;
  font-weight: 600;
  color: #93c5fd;
}

.endpoint-row code {
  background: transparent;
  padding: 0;
  color: #f8fafc;
  font-size: 12px;
}

/* Architecture Pillars (3 Glowing Icon Bento Cards) */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 36px;
}

.pillar-card {
  background: linear-gradient(165deg, rgba(16, 24, 48, 0.76) 0%, rgba(9, 14, 28, 0.86) 100%);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-glass);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.pillar-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
}

.pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.pillar-icon.violet {
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.42);
  color: #c4b5fd;
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.25);
}

.pillar-icon.cyan {
  background: rgba(14, 165, 233, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.42);
  color: #7dd3fc;
  box-shadow: 0 0 22px rgba(14, 165, 233, 0.25);
}

.pillar-icon.emerald {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.42);
  color: #6ee7b7;
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.25);
}

.pillar-icon svg {
  width: 19px;
  height: 19px;
}

.pillar-card h3 {
  margin: 0 0 7px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #ffffff;
}

.pillar-card p {
  margin: 0;
  font-size: 13.2px;
  color: var(--text-body);
  line-height: 1.58;
}

/* Panels & Cards */
.card,
section.panel {
  border: 1px solid var(--border-glass);
  background: var(--bg-panel);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-radius: var(--radius-xl);
  padding: 26px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-glass);
}

.card {
  margin-bottom: 0;
  background: linear-gradient(165deg, rgba(20, 29, 56, 0.82) 0%, rgba(11, 16, 32, 0.90) 100%);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--indigo), var(--sky), var(--emerald));
  opacity: 0.85;
}

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

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.025em;
  background: linear-gradient(95deg, #ffffff 0%, #e0e7ff 65%, #7dd3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-head p {
  margin: 5px 0 0;
  max-width: 660px;
}

small,
.muted {
  color: var(--text-body);
  font-size: 13px;
}

.card-kicker {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #93c5fd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.stat-big {
  font-size: 26px;
  font-weight: 850;
  margin: 8px 0 4px;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.18;
}

.stat-gradient {
  background: linear-gradient(90deg, #ffffff 0%, #7dd3fc 55%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Luminous Gradient Progress Line */
progress.bar {
  width: 100%;
  height: 6px;
  margin-top: 14px;
  border: none;
  border-radius: 999px;
  background: rgba(5, 9, 20, 0.9);
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
}

progress.bar::-webkit-progress-bar {
  background: rgba(5, 9, 20, 0.9);
  border-radius: 999px;
}

progress.bar::-webkit-progress-value {
  background: linear-gradient(90deg, #6366f1 0%, #0ea5e9 55%, #10b981 100%);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.65);
}

progress.bar::-moz-progress-bar {
  background: linear-gradient(90deg, #6366f1 0%, #0ea5e9 55%, #10b981 100%);
  border-radius: 999px;
}

/* Segmented Console Bar */
.segmented-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 5px;
  background: rgba(6, 10, 22, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  margin-bottom: 18px;
}

button.seg-btn {
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  color: var(--text-body);
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

button.seg-btn:hover {
  color: #ffffff;
  background: rgba(99, 102, 241, 0.14);
  transform: none;
}

button.seg-btn.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.32), rgba(14, 165, 233, 0.28));
  border-color: rgba(129, 140, 248, 0.5);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.25);
}

/* Upgrade Strip */
.upgrade-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 15px 20px;
  background: linear-gradient(95deg, rgba(99, 102, 241, 0.16) 0%, rgba(14, 165, 233, 0.14) 55%, rgba(245, 158, 11, 0.14) 100%);
  border: 1px solid rgba(129, 140, 248, 0.36);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}

.upgrade-strip-text {
  font-size: 13.2px;
  color: #e2e8f0;
}

.upgrade-strip-text strong {
  color: #fde68a;
}

/* Flagship Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.tier-card {
  position: relative;
  background: linear-gradient(165deg, rgba(17, 25, 48, 0.84) 0%, rgba(8, 13, 26, 0.94) 100%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-glass);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.tier-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.tier-card.featured {
  background: linear-gradient(165deg, rgba(24, 33, 72, 0.92) 0%, rgba(9, 17, 36, 0.96) 100%);
  border-color: var(--border-cyan);
  box-shadow: var(--shadow-violet);
}

.tier-card.vip-card {
  background: linear-gradient(165deg, rgba(42, 28, 12, 0.86) 0%, rgba(12, 16, 32, 0.96) 100%);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}

.tier-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.tier-name {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.tier-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(148, 163, 255, 0.12);
  border: 1px solid var(--border-glass);
  color: #c7d2fe;
}

.tier-card.featured .tier-tag {
  background: linear-gradient(90deg, #6366f1, #0ea5e9);
  color: #ffffff;
  border: none;
}

.tier-tag.vip-tag {
  background: rgba(245, 158, 11, 0.20);
  border-color: var(--border-gold);
  color: #fde68a;
}

.tier-price {
  font-size: 30px;
  font-weight: 850;
  letter-spacing: -0.03em;
  margin: 12px 0 4px;
  color: #ffffff;
}

.tier-price small {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-body);
}

.price-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 18px;
  padding: 13px 0;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.price-pill {
  font-size: 11.5px;
  font-weight: 650;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(5, 9, 20, 0.85);
  border: 1px solid rgba(148, 163, 255, 0.20);
  color: #e0f2fe;
}

.tier-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.2px;
  color: #cbd5e1;
}

.tier-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.tier-list li svg {
  width: 16px;
  height: 16px;
  color: #38bdf8;
  flex-shrink: 0;
  margin-top: 2px;
}

.tier-card.vip-card .tier-list li svg {
  color: #fbbf24;
}

/* Color-Coded Model Directory */
.filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.filter-toolbar input {
  max-width: 340px;
}

.cat-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

button.cat-btn {
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(11, 17, 34, 0.8);
  border: 1px solid var(--border-glass);
  color: var(--text-body);
}

button.cat-btn.active-cat {
  background: linear-gradient(135deg, #6366f1, #0ea5e9);
  border-color: transparent;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 18px rgba(14, 165, 233, 0.35);
}

.chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}

button.chip {
  background: rgba(8, 13, 28, 0.84);
  border: 1px solid rgba(148, 163, 255, 0.18);
  border-radius: 11px;
  padding: 10px 13px;
  font-size: 12.5px;
  font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  width: 100%;
}

button.chip:hover {
  background: rgba(24, 36, 72, 0.92);
  border-color: var(--sky);
  box-shadow: 0 6px 20px -4px rgba(14, 165, 233, 0.28);
}

.chip-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px currentColor;
  flex-shrink: 0;
}

.chip-dot.fam-claude { background: #a78bfa; color: #a78bfa; }
.chip-dot.fam-openai { background: #34d399; color: #34d399; }
.chip-dot.fam-kimi { background: #38bdf8; color: #38bdf8; }
.chip-dot.fam-glm { background: #fb7185; color: #fb7185; }
.chip-dot.fam-deepseek { background: #60a5fa; color: #60a5fa; }
.chip-dot.fam-qwen { background: #fbbf24; color: #fbbf24; }
.chip-dot.fam-gemini { background: #2dd4bf; color: #2dd4bf; }

.chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.chip-ctx {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.18);
  color: #bae6fd;
  flex-shrink: 0;
}

.more-row {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

/* Glass FAQ Accordion */
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

details.faq-item {
  background: rgba(12, 18, 36, 0.78);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  transition: border-color 0.16s ease;
}

details.faq-item[open] {
  border-color: var(--border-cyan);
  background: rgba(17, 26, 52, 0.88);
}

details.faq-item summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 14px;
  color: #ffffff;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 700;
  color: var(--sky);
}

details.faq-item[open] summary::after {
  content: "−";
}

details.faq-item p {
  margin: 10px 0 0;
  color: var(--text-body);
  font-size: 13.2px;
  line-height: 1.6;
}

/* Admin Sidebar Shell */
.admin-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: var(--bg-panel);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  margin: 0;
}

.admin-sidebar nav button {
  width: 100%;
  justify-content: flex-start;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--text-body);
  padding: 9px 13px;
  border-radius: 9px;
  font-weight: 550;
}

.admin-sidebar nav button:hover {
  background: rgba(99, 102, 241, 0.14);
  color: #ffffff;
  transform: none;
}

.admin-sidebar nav button.active-tab {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.30), rgba(14, 165, 233, 0.22));
  border-color: rgba(129, 140, 248, 0.45);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.22);
}

/* Tables & Status Badges */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

td,
th {
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 255, 0.12);
  padding: 11px 12px;
  vertical-align: middle;
}

th {
  color: #93c5fd;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11px;
  background: rgba(6, 10, 22, 0.65);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(99, 102, 241, 0.07);
}

tr.alert-row td {
  background: rgba(244, 63, 94, 0.15);
}

td.actions {
  min-width: 210px;
}

td button {
  padding: 5px 10px;
  margin: 2px;
  font-size: 12px;
  border-radius: 7px;
}

.badge-ok {
  color: #34d399;
  font-weight: 700;
}

.badge-warn {
  color: #fbbf24;
  font-weight: 700;
}

.badge-err {
  color: #fb7185;
  font-weight: 700;
}

/* Terminal & Code Windows */
.code-window {
  background: var(--bg-code);
  border: 1px solid rgba(129, 140, 248, 0.26);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6);
}

.code-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(19, 28, 56, 0.65);
  border-bottom: 1px solid rgba(129, 140, 248, 0.2);
}

.code-window-title {
  font-size: 12.5px;
  font-weight: 650;
  color: #c7d2fe;
}

pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--bg-code);
  border: 1px solid rgba(129, 140, 248, 0.22);
  padding: 15px 17px;
  border-radius: var(--radius-md);
  font: 12.6px/1.62 "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  color: #a5f3fc;
  margin: 0;
  max-height: 280px;
  overflow-y: auto;
}

.code-window pre {
  border: none;
  border-radius: 0;
}

code {
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.14);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  font-size: 0.9em;
}

/* SVG Chart */
.svg-chart-wrap {
  width: 100%;
  overflow-x: auto;
  padding: 8px 0 0;
}

svg.bar-chart {
  width: 100%;
  height: 150px;
  display: block;
}

/* Notices & Dialogs */
#notice {
  position: sticky;
  top: 74px;
  z-index: 40;
  color: #fde68a;
  white-space: pre-wrap;
}

#notice:not(:empty) {
  background: rgba(38, 26, 8, 0.94);
  border: 1px solid var(--border-gold);
  padding: 13px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

dialog {
  background: #0b1124;
  color: var(--text-primary);
  border: 1px solid var(--border-violet);
  border-radius: var(--radius-xl);
  width: min(780px, 95vw);
  padding: 26px;
  box-shadow: var(--shadow-violet);
}

dialog::backdrop {
  background: rgba(2, 4, 12, 0.78);
  backdrop-filter: blur(8px);
}

dialog textarea {
  min-height: 290px;
}

dialog menu {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 0;
  margin: 16px 0 0;
}

.overflow {
  overflow-x: auto;
}

[hidden] {
  display: none !important;
}

#secret {
  border-color: var(--border-gold);
  background: linear-gradient(155deg, rgba(42, 28, 8, 0.90), rgba(16, 14, 28, 0.95));
}

.copy-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.copy-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.playground-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 12px 0;
}

.playground-row select {
  flex: 1 1 220px;
}

.playground-row input {
  flex: 2 1 320px;
}

.preset-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

button.preset-chip {
  padding: 5px 12px;
  font-size: 12px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(129, 140, 248, 0.32);
  color: #c7d2fe;
}

.toolbar-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}

.toolbar-row input {
  max-width: 350px;
}

.login-shell {
  max-width: 440px;
  margin: 56px auto;
  border-color: var(--border-violet);
  box-shadow: var(--shadow-violet);
}

footer.site-footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--text-muted);
  font-size: 12.5px;
}

@media (max-width: 1080px) {
  .pricing-grid,
  .pillars-grid,
  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: static;
  }
  .admin-sidebar nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .admin-sidebar nav button {
    width: auto;
  }
}

@media (max-width: 920px) {
  header {
    height: auto;
    padding: 12px 18px;
    flex-wrap: wrap;
  }
  .top-links,
  .signal-pipeline {
    display: none;
  }
  .hero-grid,
  .faq-list {
    grid-template-columns: 1fr;
  }
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}
