/* CSS3; Lore AI Cloud — Obsidian Tactical & Top-Lit Rarity Design System (Strict CSP: zero inline styles). */
:root {
  color-scheme: dark;
  --bg-void: #0d0c10;
  --bg-obsidian: #121116;
  --bg-header: #19171f;
  --bg-panel: #17151d;
  --bg-card: #1c1a24;
  --bg-card-deep: #121117;
  --bg-input: #0e0d12;
  --bg-code: #0b0a0f;

  --border-subtle: rgba(255, 255, 255, 0.065);
  --border-strong: rgba(255, 255, 255, 0.13);
  --border-violet: rgba(158, 108, 255, 0.52);
  --border-emerald: rgba(0, 219, 118, 0.42);
  --border-gold: rgba(255, 197, 39, 0.50);
  --border-blue: rgba(96, 138, 255, 0.48);

  --text-white: #f8f6fc;
  --text-bright: #ece8f4;
  --text-body: #a69fb8;
  --text-muted: #6e6880;

  --violet-main: #7b46ff;
  --violet-bright: #9e6cff;
  --violet-neon: #c084fc;
  --emerald-main: #00c46a;
  --emerald-bright: #5dffd0;
  --gold-main: #ffc527;
  --crimson-main: #ff5c6c;
  --blue-main: #5c8aff;
  --cyan-main: #2ad0ff;

  --radius-2xl: 28px;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 13px;
  --radius-sm: 9px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);

  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 14px 34px rgba(0, 0, 0, 0.48);
  --shadow-elevated: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 22px 52px rgba(0, 0, 0, 0.68);

  font: 15px/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-void);
  color: var(--text-white);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Keyframes */
@keyframes pulseSignal {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 219, 118, 0.65);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(0, 219, 118, 0);
    transform: scale(1.06);
  }
}

@keyframes neonFlicker {
  0%, 100% {
    text-shadow: 0 0 18px rgba(168, 85, 247, 0.72), 0 0 42px rgba(123, 70, 255, 0.45);
    opacity: 1;
  }
  50% {
    text-shadow: 0 0 26px rgba(192, 132, 252, 0.95), 0 0 64px rgba(123, 70, 255, 0.68);
    opacity: 0.96;
  }
}

@keyframes floatCrest {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -4px, 0); }
}

@keyframes shimmerSweep {
  0% { transform: translateX(-140%) skewX(-18deg); }
  100% { transform: translateX(240%) skewX(-18deg); }
}

@keyframes panelEnter {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes spinSpark {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.12); }
  100% { transform: rotate(360deg) scale(1); }
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-void);
  background-image:
    radial-gradient(ellipse 65% 38% at 50% 0%, rgba(123, 70, 255, 0.13), transparent 68%),
    radial-gradient(ellipse 55% 40% at 88% 24%, rgba(92, 138, 255, 0.07), transparent 65%),
    radial-gradient(ellipse 55% 42% at 12% 65%, rgba(0, 196, 106, 0.05), transparent 65%);
  color: var(--text-white);
  overflow-x: hidden;
}

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

/* ==========================================================================
   1. STICKY TACTICAL HEADER (MusorDrop Matte Obsidian Style)
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: 74px;
  padding: 0 36px;
  background: rgba(24, 22, 30, 0.92);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  border: 1px solid rgba(166, 125, 255, 0.42);
  box-shadow: 0 0 22px rgba(123, 70, 255, 0.42);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
}

.brand-wrap:hover .brand-logo-img {
  transform: rotate(-4deg) scale(1.06);
  box-shadow: 0 0 30px rgba(158, 108, 255, 0.68);
}

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

header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(123, 70, 255, 0.28);
}

.brand-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #d8c7ff;
  background: rgba(123, 70, 255, 0.20);
  border: 1px solid rgba(158, 108, 255, 0.40);
  padding: 3px 10px;
  border-radius: 999px;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-links a.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d4cee3;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 15px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s var(--ease-spring);
}

.top-links a.nav-link svg {
  width: 18px;
  height: 18px;
  color: #9e6cff;
  flex-shrink: 0;
  transition: transform 0.22s var(--ease-spring), color 0.18s ease;
}

.top-links a.nav-link:hover {
  color: #ffffff;
  background: rgba(123, 70, 255, 0.14);
  border-color: rgba(158, 108, 255, 0.25);
  transform: translateY(-1px);
}

.top-links a.nav-link:hover svg {
  color: #c084fc;
  transform: scale(1.14);
}

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

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 14px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--emerald-bright);
  background: radial-gradient(circle at 88% 0%, rgba(0, 219, 118, 0.24), transparent 58%), linear-gradient(135deg, #073621, #0a4f31);
  border: 1px solid rgba(0, 219, 118, 0.30);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 16px rgba(0, 0, 0, 0.26);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2effa8;
  display: inline-block;
  flex-shrink: 0;
  animation: pulseSignal 2s infinite;
}

/* ==========================================================================
   2. BUTTON SYSTEM (Tactile Solid Violet & Rarity Accents)
   ========================================================================== */
button,
a.button {
  position: relative;
  overflow: hidden;
  background: #23202d;
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 15px;
  padding: 10px 18px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 16px rgba(0, 0, 0, 0.28);
  transition: transform 0.18s var(--ease-spring), background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

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

button:hover,
a.button:hover {
  background: #2d293a;
  border-color: rgba(166, 125, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 24px rgba(0, 0, 0, 0.42);
}

button:active,
a.button:active {
  transform: translateY(0) scale(0.98);
}

button.primary,
a.button.primary {
  background: linear-gradient(180deg, #8352ff 0%, #6835eb 100%);
  color: #ffffff;
  border: 2px solid #a67dff;
  border-radius: 17px;
  padding: 10px 22px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 10px 28px rgba(123, 70, 255, 0.40);
}

button.primary::after,
a.button.primary::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: translateX(-160%) skewX(-18deg);
  pointer-events: none;
}

button.primary:hover,
a.button.primary:hover {
  background: linear-gradient(180deg, #9366ff 0%, #7845fc 100%);
  border-color: #c2a3ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 14px 34px rgba(139, 92, 246, 0.58);
  color: #ffffff;
}

button.primary:hover::after,
a.button.primary:hover::after {
  animation: shimmerSweep 0.75s var(--ease-out-expo);
}

button.emerald-cta,
a.button.emerald-cta {
  background: linear-gradient(180deg, #00c46a 0%, #009952 100%);
  border: 2px solid #4dffad;
  border-radius: 17px;
  color: #041f12;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 28px rgba(0, 196, 106, 0.36);
}

button.emerald-cta:hover,
a.button.emerald-cta:hover {
  background: linear-gradient(180deg, #16da7e 0%, #00b360 100%);
  color: #02140b;
  box-shadow: 0 14px 34px rgba(0, 219, 118, 0.50);
}

button.amber,
a.button.amber {
  background: linear-gradient(180deg, #f5b418 0%, #d98a06 100%);
  border: 2px solid #ffd86b;
  border-radius: 17px;
  color: #1c1202;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.40), 0 10px 28px rgba(255, 197, 39, 0.32);
}

button.amber:hover,
a.button.amber:hover {
  background: linear-gradient(180deg, #ffc527 0%, #eb9b0c 100%);
  border-color: #ffe599;
  color: #120b00;
  box-shadow: 0 14px 36px rgba(255, 197, 39, 0.50);
}

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

button.subtle:hover,
a.button.subtle:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  transform: none;
}

button.danger {
  background: rgba(255, 92, 108, 0.15);
  border-color: rgba(255, 92, 108, 0.42);
  color: #ff9aa5;
}

button.danger:hover {
  background: rgba(255, 92, 108, 0.28);
  color: #ffffff;
}

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

/* ==========================================================================
   3. FULL-BLEED LIVE MODEL FEED RAIL (MusorDrop #mdls-1 Architecture)
   ========================================================================== */
.mdls-root {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 162px;
  padding: 10px 14px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(90deg, #09080c 0%, #0e0d13 50%, #09080c 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 8px 20px rgba(0, 0, 0, 0.62), inset 0 -6px 16px rgba(0, 0, 0, 0.48);
}

.mdls-root::after {
  content: "";
  position: absolute;
  z-index: 8;
  top: 0;
  right: 0;
  width: 56px;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(9, 8, 12, 0.94));
}

.mdls-controls {
  position: relative;
  z-index: 10;
  flex: 0 0 154px;
  width: 154px;
  height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mdls-online {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 58px;
  border-radius: 21px;
  color: var(--emerald-bright);
  background: radial-gradient(circle at 90% 0px, rgba(0, 219, 118, 0.30), transparent 55%), linear-gradient(135deg, #073621, #007947);
  border: 1px solid rgba(0, 219, 118, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 18px rgba(0, 0, 0, 0.32);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: transform 0.18s var(--ease-spring), filter 0.18s ease;
}

.mdls-online:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.mdls-online svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.mdls-control-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  height: 76px;
}

button.mdls-ctrl-btn {
  width: 100%;
  height: 76px;
  padding: 0;
  border-radius: 22px;
  background: #17151d;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #8c85a0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

button.mdls-ctrl-btn:hover {
  background: #23202c;
  color: #ffffff;
  border-color: rgba(158, 108, 255, 0.4);
}

button.mdls-ctrl-btn.mdls-magic {
  background: #292534;
  border-color: rgba(158, 108, 255, 0.32);
  color: #a875ff;
}

button.mdls-ctrl-btn.mdls-magic svg {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 0 10px rgba(158, 108, 255, 0.45));
  transition: transform 0.4s var(--ease-spring);
}

button.mdls-ctrl-btn.mdls-magic:hover svg {
  animation: spinSpark 0.9s var(--ease-out-expo);
}

button.mdls-ctrl-btn.is-paused {
  border-color: rgba(255, 197, 39, 0.55);
  color: var(--gold-main);
}

.mdls-rail {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-width: 0;
  height: 142px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.mdls-rail.is-dragging {
  cursor: grabbing;
}

.mdls-rail::-webkit-scrollbar {
  display: none;
}

.mdls-track {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: max-content;
  height: 142px;
}

/* Signature Top-Lit Rarity Card inside Rail */
button.mdls-card {
  --tone: 152, 78, 255;
  position: relative;
  flex: 0 0 218px;
  width: 218px;
  height: 142px;
  padding: 0;
  overflow: hidden;
  border-radius: 23px;
  background:
    radial-gradient(ellipse 72% 100% at 52% -10%, rgba(var(--tone), 0.95) 0%, rgba(var(--tone), 0.42) 34%, rgba(var(--tone), 0.10) 58%, transparent 74%),
    linear-gradient(148deg, #25222c 0%, #191720 65%, #111015 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 24px rgba(0, 0, 0, 0.35);
  text-align: left;
  display: block;
  transition: transform 0.24s var(--ease-spring), border-color 0.22s ease, box-shadow 0.24s ease;
}

button.mdls-card::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.44), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.42)),
    linear-gradient(transparent 42%, rgba(10, 9, 13, 0.30) 68%, rgba(10, 9, 13, 0.74) 100%);
}

button.mdls-card:hover {
  transform: translateY(-3px) scale(1.018);
  border-color: rgba(var(--tone), 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 14px 30px rgba(0, 0, 0, 0.55), 0 0 26px rgba(var(--tone), 0.24);
}

.tone-gold,
button.mdls-card.tone-gold,
.showcase-card.tone-gold,
.card.tone-gold,
.hero-metric.tone-gold { --tone: 255, 197, 39; }

.tone-red,
button.mdls-card.tone-red,
.showcase-card.tone-red,
.card.tone-red,
.hero-metric.tone-red { --tone: 255, 92, 108; }

.tone-violet,
button.mdls-card.tone-violet,
.showcase-card.tone-violet,
.card.tone-violet,
.hero-metric.tone-violet { --tone: 152, 78, 255; }

.tone-blue,
button.mdls-card.tone-blue,
.showcase-card.tone-blue,
.card.tone-blue,
.hero-metric.tone-blue { --tone: 92, 138, 255; }

.tone-emerald,
button.mdls-card.tone-emerald,
.showcase-card.tone-emerald,
.card.tone-emerald,
.hero-metric.tone-emerald { --tone: 0, 219, 118; }

.tone-cyan,
button.mdls-card.tone-cyan,
.showcase-card.tone-cyan,
.card.tone-cyan,
.hero-metric.tone-cyan { --tone: 42, 208, 255; }

.mdls-card-badge {
  position: absolute;
  z-index: 3;
  top: 11px;
  right: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(12, 11, 16, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f3effa;
  backdrop-filter: blur(6px);
}

.mdls-card-crest {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(14, 13, 19, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.38), 0 0 24px rgba(var(--tone), 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: transform 0.28s var(--ease-spring);
}

button.mdls-card:hover .mdls-card-crest {
  transform: translateX(-50%) scale(1.10) translateY(-2px);
}

.mdls-card-crest svg {
  width: 28px;
  height: 28px;
}

.mdls-card-copy {
  position: absolute;
  z-index: 4;
  left: 17px;
  right: 14px;
  bottom: 12px;
  pointer-events: none;
}

.mdls-card-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f7f3fc;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -0.025em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.mdls-card-sub {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(206, 198, 220, 0.62);
  font-size: 13px;
  font-weight: 700;
}

button.mdls-card.is-copied {
  border-color: #4dffad;
  box-shadow: 0 0 28px rgba(0, 219, 118, 0.45);
}

button.mdls-card.is-copied .mdls-card-title {
  color: var(--emerald-bright);
}

/* ==========================================================================
   4. MAIN CONTAINER & SCROLL-REVEAL PHYSICS
   ========================================================================== */
main {
  position: relative;
  z-index: 2;
  max-width: 1340px;
  margin: 0 auto;
  padding: 26px 24px 96px;
}

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

.reveal-block {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.js-anim .reveal-block:not(.is-visible) {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
}

/* ==========================================================================
   5. CINEMATIC HERO ARENA + TACTICAL KEY VAULT
   ========================================================================== */
.hero-arena {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(ellipse 68% 85% at 32% 12%, rgba(132, 62, 255, 0.40) 0%, rgba(88, 36, 184, 0.16) 44%, transparent 74%),
    radial-gradient(ellipse 52% 70% at 88% 85%, rgba(0, 196, 106, 0.15) 0%, transparent 65%),
    linear-gradient(135deg, #1b1628 0%, #13111a 55%, #0f0e14 100%);
  border: 1px solid rgba(168, 118, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 28px 68px rgba(0, 0, 0, 0.66);
  padding: 38px;
  margin-bottom: 30px;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.72;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: 34px;
  align-items: stretch;
}

.hero-grid > * {
  min-width: 0;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.neon-kicker {
  display: inline-block;
  margin: 0 0 6px;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #d8a8ff;
  animation: neonFlicker 4s ease-in-out infinite;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(34px, 3.9vw, 54px);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -0.042em;
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

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

.hero-sub strong {
  color: #f4f0fc;
  font-weight: 750;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.hero-cta-row .button,
.hero-cta-row button {
  padding: 13px 26px;
  font-size: 14.5px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.hero-metric {
  --tone: 152, 78, 255;
  padding: 15px 16px;
  border-radius: 18px;
  background:
    radial-gradient(ellipse 80% 90% at 50% -18%, rgba(var(--tone), 0.34), transparent 70%),
    rgba(16, 15, 22, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.2s var(--ease-spring), border-color 0.2s ease;
}

.hero-metric:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--tone), 0.45);
}

.hero-metric strong {
  display: block;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.035em;
  color: #ffffff;
}

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

/* Tactical Key Vault Module */
.vault-card {
  position: relative;
  background:
    radial-gradient(ellipse 80% 85% at 50% -15%, rgba(152, 78, 255, 0.42), transparent 66%),
    linear-gradient(160deg, #211e2b 0%, #15131c 62%, #100f15 100%);
  border: 1px solid rgba(166, 125, 255, 0.34);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 20px 48px rgba(0, 0, 0, 0.62);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

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

.vault-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vault-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(123, 70, 255, 0.22);
  border: 1px solid rgba(166, 125, 255, 0.45);
  color: #d4b8ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(123, 70, 255, 0.28);
}

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

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

.vault-sub {
  margin: 0 0 14px;
  font-size: 13.2px;
  color: var(--text-body);
  line-height: 1.5;
}

/* Forms & Inputs */
input,
textarea,
select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-white);
  padding: 12px 15px;
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 13.8px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input[name="key"] {
  font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  font-size: 13.8px;
  border-color: rgba(158, 108, 255, 0.36);
  background: #0b0a0f;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--violet-bright);
  background: #09080d;
  box-shadow: 0 0 0 3px rgba(123, 70, 255, 0.24), 0 0 20px rgba(123, 70, 255, 0.18);
}

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

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

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

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

.endpoint-list {
  padding-top: 15px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

button.endpoint-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #0d0c12;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  width: 100%;
  text-align: left;
  box-shadow: none;
}

button.endpoint-row:hover {
  border-color: var(--violet-bright);
  background: #15131e;
  transform: translateY(-1px);
}

button.endpoint-row.is-copied {
  border-color: #4dffad;
  background: rgba(0, 196, 106, 0.12);
}

.endpoint-row-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #b79cff;
}

.endpoint-row code {
  background: transparent;
  padding: 0;
  color: #f8f6fc;
  font-size: 12.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* ==========================================================================
   6. MUSORDROP TRIPTYCH — 3 BOTTOM-LIT SHOWCASE CARDS
   ========================================================================== */
.triptych-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 34px;
}

.showcase-card {
  --tone: 152, 78, 255;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 28px 26px 26px;
  background:
    radial-gradient(ellipse 88% 78% at 50% 108%, rgba(var(--tone), 0.78) 0%, rgba(var(--tone), 0.28) 42%, transparent 74%),
    linear-gradient(180deg, #1b1923 0%, #14121b 65%, #111016 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: transform 0.26s var(--ease-spring), border-color 0.24s ease, box-shadow 0.26s ease;
}

.showcase-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--tone), 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 22px 46px rgba(0, 0, 0, 0.62), 0 0 34px rgba(var(--tone), 0.22);
}

.showcase-emblem {
  width: 56px;
  height: 56px;
  border-radius: 17px;
  background: rgba(var(--tone), 0.16);
  border: 1px solid rgba(var(--tone), 0.45);
  box-shadow: 0 0 28px rgba(var(--tone), 0.30);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  animation: floatCrest 5s ease-in-out infinite;
}

.showcase-emblem svg {
  width: 27px;
  height: 27px;
}

.showcase-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 6px;
}

.showcase-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.showcase-card p {
  margin: 0;
  font-size: 13.6px;
  line-height: 1.58;
  color: #ded8ec;
}

/* ==========================================================================
   7. PANELS, TELEMETRY CARDS & AUTHENTICATED CONSOLE
   ========================================================================== */
.card,
section.panel,
div.panel {
  border: 1px solid var(--border-subtle);
  background: linear-gradient(165deg, #1a1822 0%, #131219 100%);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-card);
}

#account > .panel {
  border-color: rgba(158, 108, 255, 0.35);
  box-shadow: var(--shadow-elevated);
  animation: panelEnter 0.42s var(--ease-out-expo);
}

.card {
  --tone: 152, 78, 255;
  margin-bottom: 0;
  background:
    radial-gradient(ellipse 75% 92% at 50% -14%, rgba(var(--tone), 0.55) 0%, rgba(var(--tone), 0.16) 44%, transparent 72%),
    linear-gradient(160deg, #211e2b 0%, #15131c 70%, #111016 100%);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s var(--ease-spring);
}

.card:hover {
  border-color: rgba(var(--tone), 0.48);
  transform: translateY(-3px);
}

.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: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(158, 108, 255, 0.22);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(22px, 2.3vw, 28px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.section-head p {
  margin: 6px 0 0;
  max-width: 680px;
}

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

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

.stat-big {
  font-size: 27px;
  font-weight: 900;
  margin: 9px 0 4px;
  letter-spacing: -0.035em;
  color: #ffffff;
  line-height: 1.15;
}

.stat-gradient {
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(158, 108, 255, 0.35);
}

/* Progress Bar */
progress.bar {
  width: 100%;
  height: 7px;
  margin-top: 14px;
  border: none;
  border-radius: 999px;
  background: rgba(8, 7, 12, 0.88);
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
}

progress.bar::-webkit-progress-bar {
  background: rgba(8, 7, 12, 0.88);
  border-radius: 999px;
}

progress.bar::-webkit-progress-value {
  background: linear-gradient(90deg, #7b46ff 0%, #a875ff 55%, #00db76 100%);
  border-radius: 999px;
}

progress.bar::-moz-progress-bar {
  background: linear-gradient(90deg, #7b46ff 0%, #a875ff 55%, #00db76 100%);
  border-radius: 999px;
}

/* Segmented Tabs & Config Controls */
.segmented-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  background: #0e0d13;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  margin-bottom: 18px;
}

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

button.seg-btn:hover {
  color: #ffffff;
  background: rgba(123, 70, 255, 0.14);
  transform: none;
}

button.seg-btn.active {
  background: linear-gradient(180deg, #7b46ff 0%, #6232db 100%);
  border-color: #a67dff;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(123, 70, 255, 0.35);
}

.wizard-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 15px;
  background: #100f16;
  border: 1px solid var(--border-subtle);
}

.wizard-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wizard-group span {
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-body);
}

.wizard-group select {
  width: auto;
  min-width: 210px;
  padding: 8px 12px;
  font-size: 13px;
}

/* Upgrade Strip */
.upgrade-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 20px;
  background:
    radial-gradient(circle at 12% 50%, rgba(123, 70, 255, 0.24), transparent 55%),
    linear-gradient(90deg, #1d182b 0%, #161420 100%);
  border: 1px solid rgba(158, 108, 255, 0.35);
  border-radius: 18px;
  margin-bottom: 22px;
}

.upgrade-strip-text {
  font-size: 13.5px;
  color: #ebe6f5;
}

.upgrade-strip-text strong {
  color: var(--gold-main);
}

/* ==========================================================================
   8. TOP-LIT RARITY PRICING CARDS
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.tier-card {
  --tone: 92, 138, 255;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 76% 88% at 50% -14%, rgba(var(--tone), 0.72) 0%, rgba(var(--tone), 0.24) 38%, transparent 70%),
    linear-gradient(165deg, #221f2c 0%, #15131c 62%, #100f15 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease-spring), border-color 0.22s ease, box-shadow 0.25s ease;
}

.tier-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--tone), 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 24px 52px rgba(0, 0, 0, 0.65), 0 0 32px rgba(var(--tone), 0.20);
}

.tier-card.featured {
  --tone: 0, 219, 118;
  border-color: rgba(0, 219, 118, 0.35);
}

.tier-card.vip-card {
  --tone: 255, 197, 39;
  border-color: rgba(255, 197, 39, 0.38);
}

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

.tier-name {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.tier-tag {
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(14, 13, 19, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e8e2f6;
}

.tier-card.featured .tier-tag {
  background: rgba(0, 219, 118, 0.20);
  border-color: rgba(0, 219, 118, 0.50);
  color: var(--emerald-bright);
}

.tier-tag.vip-tag {
  background: rgba(255, 197, 39, 0.20);
  border-color: rgba(255, 197, 39, 0.55);
  color: #ffe28a;
}

.tier-price {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.035em;
  margin: 14px 0 4px;
  color: #ffffff;
}

.tier-price small {
  font-size: 13px;
  font-weight: 600;
  color: #c2bbd4;
}

.price-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.price-pill {
  font-size: 11.8px;
  font-weight: 750;
  padding: 5px 10px;
  border-radius: 9px;
  background: #0e0d13;
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: #f0ecfa;
}

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

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

.tier-list li svg {
  width: 17px;
  height: 17px;
  color: rgb(var(--tone));
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   9. RARITY-LIT MODEL DIRECTORY CHIPS
   ========================================================================== */
.filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

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

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

button.cat-btn {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 750;
  background: #100f16;
  border: 1px solid var(--border-subtle);
  color: var(--text-body);
  box-shadow: none;
}

button.cat-btn:hover {
  color: #ffffff;
  border-color: rgba(158, 108, 255, 0.4);
  transform: none;
}

button.cat-btn.active-cat {
  background: linear-gradient(180deg, #8352ff 0%, #6835eb 100%);
  border-color: #a67dff;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(123, 70, 255, 0.35);
}

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

button.chip {
  --tone: 152, 78, 255;
  background:
    radial-gradient(ellipse 80% 100% at 50% -25%, rgba(var(--tone), 0.36), transparent 68%),
    linear-gradient(155deg, #1f1c28 0%, #131219 100%);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 12.6px;
  font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  color: #f4f1fb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  width: 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

button.chip:hover {
  border-color: rgba(var(--tone), 0.58);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45), 0 0 18px rgba(var(--tone), 0.18);
  transform: translateY(-2px);
}

button.chip.is-copied {
  border-color: #4dffad;
  color: var(--emerald-bright);
}

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

.chip-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgb(var(--tone));
  box-shadow: 0 0 10px rgb(var(--tone));
  flex-shrink: 0;
}

button.chip.fam-claude { --tone: 168, 108, 255; }
button.chip.fam-openai { --tone: 0, 219, 118; }
button.chip.fam-kimi { --tone: 92, 138, 255; }
button.chip.fam-glm { --tone: 255, 92, 108; }
button.chip.fam-deepseek { --tone: 42, 208, 255; }
button.chip.fam-qwen { --tone: 255, 197, 39; }
button.chip.fam-gemini { --tone: 45, 212, 191; }
button.chip.fam-grok { --tone: 255, 175, 36; }

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

.chip-ctx {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(12, 11, 17, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #d7d0e8;
  flex-shrink: 0;
}

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

/* ==========================================================================
   10. FAQ ACCORDION & FLOATING SCROLL-TOP
   ========================================================================== */
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

details.faq-item {
  background: #14131b;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 18px 22px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s var(--ease-spring);
}

details.faq-item:hover {
  border-color: rgba(158, 108, 255, 0.32);
}

details.faq-item[open] {
  border-color: var(--border-violet);
  background: linear-gradient(165deg, #1e1a2b 0%, #14121c 100%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
}

details.faq-item summary {
  cursor: pointer;
  font-weight: 750;
  font-size: 14.5px;
  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: "+";
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(123, 70, 255, 0.18);
  border: 1px solid rgba(158, 108, 255, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #c7a6ff;
  flex-shrink: 0;
  transition: transform 0.22s var(--ease-spring), background 0.2s ease;
}

details.faq-item[open] summary::after {
  content: "−";
  background: var(--violet-main);
  color: #ffffff;
}

details.faq-item p {
  margin: 12px 0 0;
  color: var(--text-body);
  font-size: 13.5px;
  line-height: 1.62;
}

button.scroll-top-btn {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 75;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 14px;
  background: rgba(34, 30, 46, 0.92);
  border: 1px solid rgba(166, 125, 255, 0.42);
  color: #e4d8ff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.24s ease, transform 0.24s var(--ease-spring), background 0.18s ease;
}

button.scroll-top-btn.is-shown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

button.scroll-top-btn:hover {
  background: var(--violet-main);
  color: #ffffff;
}

/* ==========================================================================
   11. CODE WINDOWS, PLAYGROUND, TABLES & ADMIN SHELL
   ========================================================================== */
.code-window {
  background: var(--bg-code);
  border: 1px solid rgba(158, 108, 255, 0.26);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.65);
}

.code-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 11px 16px;
  background: #16141f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.code-window-title {
  font-size: 12.8px;
  font-weight: 750;
  color: #dfd8f2;
}

pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--bg-code);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 18px;
  border-radius: 14px;
  font: 12.8px/1.62 "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  color: #e6defa;
  margin: 0;
  max-height: 320px;
  overflow-y: auto;
}

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

code {
  color: #d6baff;
  background: rgba(123, 70, 255, 0.18);
  padding: 2px 7px;
  border-radius: 6px;
  font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  font-size: 0.9em;
}

.playground-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--emerald-bright);
}

.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: 6px 13px;
  font-size: 12px;
  border-radius: 999px;
  background: rgba(123, 70, 255, 0.15);
  border: 1px solid rgba(158, 108, 255, 0.34);
  color: #dfd2ff;
  box-shadow: none;
}

button.preset-chip:hover {
  background: rgba(123, 70, 255, 0.30);
  color: #ffffff;
}

/* Admin Layout */
.brand-showcase-banner {
  width: 100%;
  max-width: 260px;
  height: auto;
  display: block;
  margin: -6px auto 10px;
  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;
}

.admin-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

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

.admin-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: #16141d;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  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: 10px 14px;
  border-radius: 12px;
  font-weight: 650;
}

.admin-sidebar nav button:hover {
  background: rgba(123, 70, 255, 0.14);
  color: #ffffff;
  transform: none;
}

.admin-sidebar nav button.active-tab {
  background: linear-gradient(180deg, #8352ff 0%, #6835eb 100%);
  border-color: #a67dff;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(123, 70, 255, 0.32);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

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

th {
  color: #c8b8f5;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11px;
  background: #100f16;
}

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

tr:hover td {
  background: rgba(123, 70, 255, 0.07);
}

tr.alert-row td {
  background: rgba(255, 92, 108, 0.15);
}

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

td button {
  padding: 6px 11px;
  margin: 2px;
  font-size: 12px;
  border-radius: 9px;
}

.badge-ok { color: var(--emerald-bright); font-weight: 800; }
.badge-warn { color: var(--gold-main); font-weight: 800; }
.badge-err { color: var(--crimson-main); font-weight: 800; }

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

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

#notice {
  position: sticky;
  top: 84px;
  z-index: 70;
  color: #ffe28a;
  white-space: pre-wrap;
}

#notice:not(:empty) {
  background: rgba(34, 24, 10, 0.96);
  border: 1px solid var(--border-gold);
  padding: 13px 18px;
  border-radius: 14px;
  margin-bottom: 18px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65);
}

dialog {
  background: #15131d;
  color: var(--text-white);
  border: 1px solid var(--border-violet);
  border-radius: var(--radius-xl);
  width: min(780px, 95vw);
  padding: 28px;
  box-shadow: var(--shadow-elevated);
}

dialog::backdrop {
  background: rgba(5, 4, 9, 0.82);
  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(46, 32, 10, 0.92), rgba(20, 18, 28, 0.96));
}

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

.copy-head h2,
.copy-head h3 {
  margin: 0;
}

.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: 450px;
  margin: 56px auto;
  border-color: var(--border-violet);
  box-shadow: var(--shadow-elevated);
}

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

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  color: var(--text-body);
}

.footer-brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

/* ==========================================================================
   12. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1120px) {
  .pricing-grid,
  .triptych-grid,
  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .hero-grid {
    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: 880px) {
  header {
    padding: 12px 18px;
    flex-wrap: wrap;
  }
  .top-links {
    display: none;
  }
  .hero-arena {
    padding: 22px 18px;
  }
  .vault-card,
  section.panel,
  div.panel,
  .tier-card,
  .showcase-card {
    padding: 20px 18px;
  }
  main {
    padding: 18px 14px 72px;
  }
  button.endpoint-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .faq-list {
    grid-template-columns: 1fr;
  }
  .mdls-root {
    height: 138px;
    padding: 8px 10px;
  }
  .mdls-controls {
    flex-basis: 112px;
    width: 112px;
    height: 122px;
  }
  .mdls-online {
    height: 48px;
    border-radius: 16px;
    font-size: 14px;
  }
  .mdls-control-row,
  button.mdls-ctrl-btn {
    height: 66px;
    border-radius: 16px;
  }
  .mdls-rail,
  .mdls-track {
    height: 122px;
  }
  button.mdls-card {
    flex-basis: 184px;
    width: 184px;
    height: 122px;
    border-radius: 19px;
  }
  .mdls-card-crest {
    top: 10px;
    width: 48px;
    height: 48px;
  }
  .mdls-card-title {
    font-size: 14.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 640px) {
  .admin-layout > header,
  .admin-layout > header .header-pills {
    flex-wrap: wrap;
    height: auto;
    justify-content: flex-start;
  }
}
