/* Reset & Base */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600&display=swap');
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #d33e3c;
  --primary-dark: #b83230;
  --primary-light: #ff6b69;
  --text: #eef2f7;
  --text-muted: #a7b1be;
  --bg: #0d1117;
  --bg-alt: #121824;
  --border: #232b3a;
  --brand-kafka: var(--primary);
  --brand-streamyard: #f5f5f5;
  --font-display: 'Orbitron', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius-card: 12px;
  --surface-card: rgba(18, 24, 36, 0.72);
  --shadow-card: 0 1px 0 rgba(238, 242, 247, 0.04);
  --accent-edge: #8f1d1b;
  --accent-line: linear-gradient(90deg, var(--accent-edge) 0%, var(--primary) 45%, var(--primary) 55%, var(--accent-edge) 100%);
  --radius: 8px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

 body {
   position: relative;
   min-height: 100vh;
   overflow-x: hidden;
   isolation: isolate;
 }

 body > *:not(.ksy-site-background) {
   position: relative;
   z-index: 1;
 }

 .ksy-site-background {
   position: fixed;
   inset: 0;
   overflow: hidden;
   pointer-events: none;
   z-index: 0;
   background:
     radial-gradient(circle at 20% 20%, rgba(211, 62, 60, 0.08) 0%, rgba(211, 62, 60, 0) 36%),
     radial-gradient(circle at 78% 18%, rgba(88, 166, 255, 0.08) 0%, rgba(88, 166, 255, 0) 34%),
     linear-gradient(180deg, rgba(7, 10, 15, 0.16) 0%, rgba(7, 10, 15, 0.42) 100%);
 }

 .ksy-site-background__veil,
 .ksy-site-background__mesh,
 .ksy-site-background__streams,
 .ksy-site-background__cursor,
 .ksy-site-background__blob {
   position: absolute;
 }

 .ksy-site-background__veil,
 .ksy-site-background__mesh,
 .ksy-site-background__streams {
   inset: 0;
 }

 .ksy-site-background__veil {
   background:
     radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 42%),
     linear-gradient(180deg, rgba(6, 9, 14, 0.08) 0%, rgba(6, 9, 14, 0.5) 100%);
 }

 .ksy-site-background__mesh {
   opacity: 0.24;
   background-image:
     linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
     linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
   background-size: 160px 160px;
   mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.95) 12%, rgba(0, 0, 0, 0.95) 84%, transparent 100%);
 }

 .ksy-site-background__blob {
   border-radius: 999px;
   filter: blur(90px);
   opacity: 0.34;
   will-change: transform;
 }

 .ksy-site-background__blob-a {
   width: min(42vw, 560px);
   height: min(42vw, 560px);
   left: -8vw;
   top: -8vh;
   background: radial-gradient(circle at 35% 35%, rgba(211, 62, 60, 0.42) 0%, rgba(211, 62, 60, 0.14) 42%, rgba(211, 62, 60, 0) 74%);
   animation: ksyBlobFloatA 26s ease-in-out infinite;
 }

 .ksy-site-background__blob-b {
   width: min(36vw, 500px);
   height: min(36vw, 500px);
   right: -10vw;
   top: 10vh;
   background: radial-gradient(circle at 50% 50%, rgba(88, 166, 255, 0.32) 0%, rgba(88, 166, 255, 0.12) 46%, rgba(88, 166, 255, 0) 78%);
   animation: ksyBlobFloatB 30s ease-in-out infinite;
 }

 .ksy-site-background__blob-c {
   width: min(40vw, 520px);
   height: min(40vw, 520px);
   left: 28vw;
   top: 46vh;
   background: radial-gradient(circle at 45% 45%, rgba(129, 140, 248, 0.3) 0%, rgba(129, 140, 248, 0.12) 44%, rgba(129, 140, 248, 0) 76%);
   animation: ksyBlobFloatC 34s ease-in-out infinite;
 }

 .ksy-site-background__blob-d {
   width: min(28vw, 380px);
   height: min(28vw, 380px);
   left: 6vw;
   top: 62vh;
   background: radial-gradient(circle at 42% 42%, rgba(86, 207, 225, 0.24) 0%, rgba(86, 207, 225, 0.1) 46%, rgba(86, 207, 225, 0) 78%);
   animation: ksyBlobFloatD 32s ease-in-out infinite;
 }

 .ksy-site-background__cursor {
   left: 0;
   top: 0;
   width: 260px;
   height: 260px;
   border-radius: 999px;
   transform: translate(-160px, -160px);
   background: radial-gradient(circle, rgba(88, 166, 255, 0.16) 0%, rgba(88, 166, 255, 0.08) 28%, rgba(211, 62, 60, 0.07) 54%, rgba(13, 17, 23, 0) 72%);
   filter: blur(10px);
   opacity: 0.5;
   transition: transform 180ms ease-out, opacity 220ms ease-out;
   will-change: transform;
 }

 .ksy-site-background__stream {
   position: absolute;
   left: 0;
   top: 0;
   display: block;
   border-radius: 999px;
   opacity: 0;
   transform: translate3d(0, 0, 0) rotate(var(--stream-angle, 0deg));
   transform-origin: left center;
   background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.02) 34%, var(--stream-color, rgba(88, 166, 255, 0.42)) 100%);
   box-shadow: 0 0 14px var(--stream-shadow, rgba(88, 166, 255, 0.18));
   filter: blur(0.2px);
   animation: ksyStreamDrift var(--stream-duration, 2200ms) ease-out var(--stream-delay, 0ms) forwards;
   will-change: transform, opacity;
 }

 .ksy-site-background__turn-node {
   position: absolute;
   left: 0;
   top: 0;
   width: 10px;
   height: 10px;
   margin-left: -5px;
   margin-top: -5px;
   border-radius: 999px;
   opacity: 0;
   background: radial-gradient(circle, rgba(255, 255, 255, 0.92) 0%, var(--turn-node-color, rgba(88, 166, 255, 0.72)) 36%, rgba(255, 255, 255, 0) 72%);
   box-shadow: 0 0 18px var(--turn-node-shadow, rgba(88, 166, 255, 0.28));
   animation: ksyTurnNodeFlash var(--turn-node-duration, 420ms) ease-out forwards;
   will-change: transform, opacity;
 }

 .ksy-site-background[data-paused="true"] .ksy-site-background__blob,
 .ksy-site-background[data-paused="true"] .ksy-site-background__stream,
 .ksy-site-background[data-paused="true"] .ksy-site-background__turn-node {
   animation-play-state: paused;
 }

 @keyframes ksyBlobFloatA {
   0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
   33% { transform: translate3d(7vw, 3vh, 0) scale(1.08); }
   66% { transform: translate3d(2vw, 9vh, 0) scale(0.96); }
 }

 @keyframes ksyBlobFloatB {
   0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
   35% { transform: translate3d(-8vw, 4vh, 0) scale(1.06); }
   70% { transform: translate3d(-3vw, -5vh, 0) scale(0.95); }
 }

 @keyframes ksyBlobFloatC {
   0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
   40% { transform: translate3d(5vw, -4vh, 0) scale(1.04); }
   75% { transform: translate3d(-4vw, 5vh, 0) scale(0.94); }
 }

 @keyframes ksyBlobFloatD {
   0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
   50% { transform: translate3d(8vw, -6vh, 0) scale(1.1); }
 }

 @keyframes ksyStreamDrift {
   0% {
     opacity: 0;
     transform: translate3d(0, 0, 0) rotate(var(--stream-angle, 0deg)) scaleX(0.84);
   }
   18% {
     opacity: var(--stream-opacity, 0.42);
   }
   70% {
     opacity: calc(var(--stream-opacity, 0.42) * 0.58);
   }
   100% {
     opacity: 0;
     transform: translate3d(var(--stream-travel-x, 96px), var(--stream-travel-y, 0px), 0) rotate(var(--stream-angle, 0deg)) scaleX(1.06);
   }
 }

 @keyframes ksyTurnNodeFlash {
   0% {
     opacity: 0;
     transform: scale(0.42);
   }
   28% {
     opacity: 0.95;
     transform: scale(1);
   }
   100% {
     opacity: 0;
     transform: scale(1.6);
   }
 }

h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.01em;
  font-size: 1.82rem;
  line-height: 1.18;
}

h3 {
  font-weight: 600;
  letter-spacing: -0.005em;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid rgba(211, 62, 60, 0.55);
  outline-offset: 3px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.centered-cta {
  margin-top: 1.5rem;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.34rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s;
  white-space: nowrap;
}

button.btn {
  appearance: none;
  -webkit-appearance: none;
}
.btn-lg { padding: 0.42rem 1.75rem; font-size: 1rem; }
.btn-full { width: 100%; text-align: center; display: block; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost { color: var(--text-muted); background: transparent; border-color: var(--border); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); border-color: rgba(211, 62, 60, 0.35); }

.btn-disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}

/* Navbar */
.navbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(13, 17, 23, 0.86);
  backdrop-filter: blur(8px);
  z-index: 100;
  isolation: isolate;
  overflow: hidden;
}
.navbar::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(211, 62, 60, 0.16) 0%, rgba(211, 62, 60, 0) 58%),
    linear-gradient(90deg, rgba(88, 166, 255, 0.07) 0%, rgba(129, 140, 248, 0.1) 50%, rgba(88, 166, 255, 0.07) 100%);
  opacity: 0;
  pointer-events: none;
}
.navbar.is-flashing::after {
  animation: navbarClickFlash 280ms ease-out;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.98rem;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  text-decoration: none;
  justify-self: start;
  position: relative;
  z-index: 1;
}
.logo-icon { height: 26px; width: 26px; object-fit: contain; display: block; }
.logo-text { display: inline-flex; gap: 0; font-size: 1.25em; }
.logo-kafka { color: var(--brand-kafka); }
.logo-streamyard { color: var(--brand-streamyard); }

.logo-kafka,
.logo-streamyard {
  text-shadow:
    0 0 10px rgba(211, 62, 60, 0.14),
    0 0 18px rgba(43, 194, 230, 0.06);
}
.nav-links {
  list-style: none;
  display: flex;
  grid-column: 2;
  justify-self: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.84rem;
  transition: color 0.15s, text-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
  padding-bottom: 0.55rem;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.is-flashing {
  color: var(--text);
  text-shadow: 0 0 18px rgba(211, 62, 60, 0.24), 0 0 24px rgba(88, 166, 255, 0.12);
  transform: translateY(-1px);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.1rem;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-line);
  box-shadow: 0 0 0 1px rgba(211, 62, 60, 0.12);
}

body.page-enter main > * {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(5px);
  transition:
    opacity 0.52s ease,
    transform 0.58s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.52s ease;
}
body.page-enter main > *:nth-child(1) { transition-delay: 0ms; }
body.page-enter main > *:nth-child(2) { transition-delay: 70ms; }
body.page-enter main > *:nth-child(3) { transition-delay: 140ms; }
body.page-enter main > *:nth-child(4) { transition-delay: 210ms; }
body.page-enter main > *:nth-child(5) { transition-delay: 280ms; }
body.page-enter main > *:nth-child(n + 6) { transition-delay: 340ms; }
body.page-enter.page-enter-ready main > * {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@keyframes navbarClickFlash {
  0% {
    opacity: 0;
  }
  22% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Hero */
.hero {
  text-align: center;
  padding: 5.8rem 1.5rem 4.6rem;
  background: radial-gradient(1100px 420px at 50% 0%, rgba(211, 62, 60, 0.16) 0%, rgba(13, 17, 23, 0) 70%),
              linear-gradient(180deg, rgba(18, 24, 36, 0.85) 0%, rgba(13, 17, 23, 1) 85%);
}
.hero-badge {
  display: inline-block;
  background: rgba(18, 24, 36, 0.9);
  color: var(--primary-light);
  border: 1px solid rgba(211, 62, 60, 0.35);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.27rem 0.8rem;
  margin-bottom: 1.15rem;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 2.78rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin-bottom: 0.6rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.01em;
  font-size: 2.22rem;
  margin-bottom: 0.6rem;
}
.hero-accent {
  color: var(--primary);
  box-shadow: inset 0 -0.38em 0 rgba(211, 62, 60, 0.16);
  border-radius: 0.25em;
  padding: 0 0.15em;
}
.hero-sub {
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--primary-light);
  margin-bottom: 0.6rem;
}
.hero-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 1.9rem;
}
.hero-cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.feature-hero-note {
  max-width: 760px;
  margin: -1rem auto 1.4rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(211, 62, 60, 0.22);
  border-radius: 14px;
  background: rgba(31, 41, 55, 0.72);
  color: #d7dde8;
  line-height: 1.6;
  box-shadow: var(--shadow-card);
}

.feature-hero-note-label {
  color: var(--primary-light);
  font-weight: 700;
  margin-right: 0.35rem;
}

/* Section shared */
.section-label {
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.section-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.4rem;
  margin-bottom: 2rem;
}

/* Features */
.features {
  padding: 6rem 1.5rem;
  background: rgba(18, 24, 36, 0.44);
  backdrop-filter: blur(3px);
}
.features h2 {
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 0.25rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* Feature card colours */
.feature-card {
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  padding: 1.4rem;
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.feature-card:hover {
  border-color: rgba(211, 62, 60, 0.45);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.55);
  transform: translateY(-2px);
}
.feature-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--text); letter-spacing: -0.005em; }
.feature-card p { font-size: 0.9rem; line-height: 1.65; color: var(--text-muted); }
.feature-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.feature-card-link:focus-visible {
  outline: none;
  border-color: rgba(211, 62, 60, 0.72);
  box-shadow: 0 0 0 3px rgba(211, 62, 60, 0.18), 0 18px 54px rgba(0, 0, 0, 0.55);
  transform: translateY(-2px);
}
.feature-card-link-note {
  margin-top: 1rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--primary);
}
.feature-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.6rem;
  opacity: 0.92;
}

.feature-card.blue .feature-tag {
  color: #93c5fd;
  border-color: rgba(147, 197, 253, 0.28);
  background: rgba(37, 99, 235, 0.12);
}

.feature-card.cyan .feature-tag {
  color: #67e8f9;
  border-color: rgba(103, 232, 249, 0.26);
  background: rgba(34, 211, 238, 0.10);
}

.feature-card.indigo .feature-tag {
  color: #c7d2fe;
  border-color: rgba(199, 210, 254, 0.22);
  background: rgba(129, 140, 248, 0.10);
}

.feature-card.emerald .feature-tag {
  color: #6ee7b7;
  border-color: rgba(110, 231, 183, 0.22);
  background: rgba(52, 211, 153, 0.10);
}

.feature-card.violet .feature-tag {
  color: #ddd6fe;
  border-color: rgba(221, 214, 254, 0.22);
  background: rgba(167, 139, 250, 0.10);
}

.feature-card.amber .feature-tag {
  color: #fde68a;
  border-color: rgba(253, 230, 138, 0.20);
  background: rgba(252, 211, 77, 0.10);
}

.feature-card.rose .feature-tag {
  color: #fecdd3;
  border-color: rgba(254, 205, 211, 0.20);
  background: rgba(251, 113, 133, 0.10);
}

/* Feature guides */
.feature-guides {
  padding: 0 1.5rem 6rem;
  background: rgba(18, 24, 36, 0.4);
  backdrop-filter: blur(3px);
}
.feature-guides-header {
  max-width: 760px;
  margin: 0 auto 2.2rem;
  text-align: center;
}
.feature-guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.feature-guide-card {
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
  scroll-margin-top: 6rem;
}
.feature-guide-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--text);
  letter-spacing: -0.005em;
}
.feature-guide-card p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}
.feature-guide-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}
.feature-guide-card li {
  margin-bottom: 0.55rem;
  line-height: 1.6;
}
.feature-guide-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  border: 1px solid rgba(211, 62, 60, 0.24);
  background: rgba(211, 62, 60, 0.08);
  color: #f3b1af;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.7rem;
}

/* How it works */
.how-it-works {
  padding: 6rem 1.5rem;
  text-align: center;
}
.how-it-works h2 {
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 3rem;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.pillar-icon {
  font-size: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pillar-icon.sky     { background: rgba(56, 189, 248, 0.14); }
.pillar-icon.emerald { background: rgba(16, 185, 129, 0.14); }
.pillar-icon.violet  { background: rgba(124, 58, 237, 0.14); }
.pillar-icon.amber   { background: rgba(245, 158, 11, 0.14); }
.pillar h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.005em; }
.pillar p  { font-size: 0.9rem; color: var(--text-muted); max-width: 200px; }

/* Pricing */
.pricing {
  padding: 6rem 1.5rem;
  background: rgba(18, 24, 36, 0.42);
  backdrop-filter: blur(3px);
  text-align: center;
}
.pricing h2 {
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
  align-items: start;
  margin-top: 2.5rem;
  text-align: left;
}
.pricing-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  position: relative;
}
.pricing-card:hover {
  border-color: rgba(211, 62, 60, 0.35);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.55);
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(211, 62, 60, 0.18);
}
.popular-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  margin-bottom: 0.75rem;
}
.pricing-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; letter-spacing: -0.005em; }
.price {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.pricing-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.pricing-card ul {
  list-style: none;
  margin-bottom: 1.75rem;
}
.pricing-card ul li {
  padding: 0.3rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pricing-card ul li::before { content: "✓"; color: var(--primary); font-weight: 700; }

.pricing-checkout-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.pricing-help {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.85rem;
}

.pricing-help-note {
  background: rgba(31, 41, 55, 0.7);
  border: 1px solid rgba(211, 62, 60, 0.22);
  border-radius: 12px;
  color: #d7dde8;
  padding: 0.8rem 0.9rem;
  line-height: 1.5;
}

.pricing-help-label {
  color: var(--primary-light);
  font-weight: 700;
  margin-right: 0.35rem;
  letter-spacing: 0.03em;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.info-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
}

.info-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 0.5rem;
}

.info-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.info-list {
  list-style: none;
}

.info-list li {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
}

/* Contact */
.contact {
  padding: 6rem 1.5rem;
  background: rgba(18, 24, 36, 0.42);
  backdrop-filter: blur(3px);
}
.contact h2 {
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 1.4rem;
  align-items: start;
}

.contact-form-card,
.contact-side-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18, 24, 36, 0.9) 0%, rgba(12, 16, 24, 0.96) 100%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
}

.contact-form-card {
  padding: 1.2rem;
}

.contact-form-intro {
  margin-bottom: 0.95rem;
}

.contact-form-intro p {
  color: var(--text-muted);
  margin-top: 0.45rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: left;
}

.contact-form .btn {
  align-self: flex-start;
  min-width: 140px;
}
.contact-radio-group {
  display: grid;
  gap: 0.55rem;
}

.contact-radio-heading {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-radio-panel {
  display: grid;
  gap: 0.65rem;
  padding: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.contact-radio-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.contact-radio {
  display: block;
  cursor: pointer;
  min-width: 0;
}

.contact-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  accent-color: var(--primary);
}

.contact-radio-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.48rem 0.62rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--text);
  text-align: center;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.contact-radio:hover .contact-radio-button {
  border-color: rgba(211, 62, 60, 0.24);
  background: rgba(255, 255, 255, 0.05);
}

.contact-radio input:checked + .contact-radio-button,
.contact-radio[data-selected="true"] .contact-radio-button,
.contact-radio-button[data-selected="true"] {
  border-color: rgba(211, 62, 60, 0.36);
  background: linear-gradient(180deg, rgba(211, 62, 60, 0.18) 0%, rgba(211, 62, 60, 0.08) 100%);
  box-shadow: 0 0 0 1px rgba(211, 62, 60, 0.14), 0 8px 22px rgba(211, 62, 60, 0.12);
  color: #fff5f5;
}

.contact-radio input:focus-visible + .contact-radio-button {
  outline: none;
  box-shadow: 0 0 0 3px rgba(211, 62, 60, 0.16);
}

.contact-radio-description {
  margin: 0;
  min-height: 1.5rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.contact-form input,
.contact-form textarea {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  font-size: 0.95rem;
  font-family: inherit;
  width: 100%;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.contact-form textarea {
  min-height: 190px;
  resize: vertical;
}

.input {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  font-size: 0.95rem;
  font-family: inherit;
  width: 100%;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
  margin-bottom: 0.6rem;
}

.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(211, 62, 60, 0.16);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(211, 62, 60, 0.16);
}

.contact-status {
  font-size: 0.9rem;
  color: var(--text-muted);
  min-height: 1.4rem;
}

.contact-side-grid {
  display: grid;
  gap: 1rem;
}

.contact-side-card {
  padding: 1.2rem;
}

.contact-side-card h3 {
  font-size: 1rem;
  margin-bottom: 0.45rem;
}

.contact-side-card p,
.contact-side-card li {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.contact-side-card ul {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.42rem;
}

.contact-side-link {
  color: var(--text);
  text-decoration: none;
}

.contact-side-link-search {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.7rem;
  border: 1px solid rgba(211, 62, 60, 0.22);
  border-radius: 999px;
  background: rgba(211, 62, 60, 0.08);
  font-weight: 600;
}

.contact-side-link-search svg {
  width: 0.92rem;
  height: 0.92rem;
  flex: 0 0 auto;
}

.contact-side-link:hover {
  color: var(--primary-light);
}

.contact-side-link-search:hover {
  border-color: rgba(211, 62, 60, 0.34);
  background: rgba(211, 62, 60, 0.12);
}

.placeholder-page {
  padding: 6rem 1.5rem;
  background: rgba(18, 24, 36, 0.42);
  backdrop-filter: blur(3px);
}

.placeholder-card {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18, 24, 36, 0.9) 0%, rgba(12, 16, 24, 0.96) 100%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
  padding: 1.6rem;
}

.placeholder-card p {
  color: var(--text-muted);
  margin-top: 0.55rem;
}

.placeholder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.blog-storyboard {
  padding: 5rem 1.5rem 3rem;
}

.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.blog-post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
  min-height: 100%;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.blog-post-card:hover {
  border-color: rgba(211, 62, 60, 0.45);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.55);
  transform: translateY(-2px);
}

.blog-post-card-featured,
.blog-post-card-medium {
  grid-column: span 2;
}

.blog-post-card-fullwidth {
  grid-column: 1 / -1;
}

.blog-post-media {
  position: relative;
  min-height: 220px;
  padding: 1rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top left, rgba(211, 62, 60, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(20, 26, 39, 0.94), rgba(10, 14, 21, 0.98));
}

.blog-post-media-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(7, 10, 15, 0.92);
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.42),
    0 8px 18px rgba(211, 62, 60, 0.1);
  transform-origin: top center;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.blog-post-card-fullwidth .blog-post-media {
  min-height: 420px;
  padding: 1.25rem;
}

.blog-post-card-fullwidth .blog-post-media::before {
  content: "";
  position: absolute;
  top: 1.15rem;
  right: 1.25rem;
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  background: rgba(7, 10, 15, 0.48);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  opacity: 0.92;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.blog-post-card-fullwidth .blog-post-media::after {
  content: "";
  position: absolute;
  top: 2.02rem;
  right: 1.04rem;
  width: 0.75rem;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  transform: rotate(45deg);
  transform-origin: center;
  pointer-events: none;
  opacity: 0.92;
  transition: transform 0.24s ease, background 0.24s ease;
}

.blog-post-card-fullwidth .blog-post-media:hover::before {
  border-color: rgba(255, 255, 255, 1);
  background: rgba(14, 19, 29, 0.72);
  transform: scale(1.08);
}

.blog-post-card-fullwidth .blog-post-media:hover::after {
  background: rgba(255, 255, 255, 1);
  transform: rotate(45deg) scale(1.08);
}

.blog-post-media-stack {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.blog-post-media-image-expanded {
  width: 100%;
  max-width: 100%;
  cursor: zoom-in;
}

.image-magnifier-panel {
  position: fixed;
  left: 0;
  top: 0;
  width: 340px;
  height: 220px;
  border: 3px solid var(--primary);
  border-radius: 18px;
  background-color: rgba(7, 10, 15, 0.96);
  background-repeat: no-repeat;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.56),
    0 14px 30px rgba(211, 62, 60, 0.12);
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(0.98);
  transition: opacity 0.16s ease, transform 0.16s ease;
  pointer-events: none;
  z-index: 240;
  overflow: hidden;
}

body > .image-magnifier-panel {
  position: fixed;
  z-index: 240;
}

.image-magnifier-panel[data-visible="true"] {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.blog-post-body {
  padding: 1.2rem;
}

.blog-post-body h3 {
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 0.55rem;
}

.blog-post-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 0.8rem;
}

.blog-post-body p:last-child {
  margin-bottom: 0;
}

.blog-post-body-text-only {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.blog-ui-shot {
  position: absolute;
  inset: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--text);
}

.blog-ui-shot::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 0;
}

.blog-ui-search-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.blog-ui-search-row-tight {
  margin-bottom: 0.15rem;
}

.blog-ui-search-pill,
.blog-ui-search-action,
.blog-ui-chip,
.blog-ui-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(8, 12, 18, 0.78);
  color: var(--text);
  font-size: 0.76rem;
}

.blog-ui-search-pill {
  min-height: 2rem;
  padding: 0.2rem 0.7rem;
  justify-content: flex-start;
}

.blog-ui-search-action {
  min-width: 2rem;
  min-height: 2rem;
}

.blog-ui-topic-list,
.blog-ui-dropdown-menu,
.blog-ui-panel,
.blog-ui-shot-ai {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(8, 12, 18, 0.72);
}

.blog-ui-topic-list {
  padding: 0.65rem 0.75rem;
  display: grid;
  gap: 0.5rem;
}

.blog-ui-topic-list-dense {
  gap: 0.4rem;
}

.blog-ui-topic-line,
.blog-ui-menu-item,
.blog-ui-topic-footer,
.blog-ui-panel-title,
.blog-ui-expression,
.blog-ui-code,
.blog-ui-prompt,
.blog-ui-result {
  font-size: 0.76rem;
  line-height: 1.5;
}

.blog-ui-topic-line {
  color: #d6deeb;
}

.blog-ui-topic-line-active {
  color: #fff;
  border-left: 2px solid var(--primary);
  padding-left: 0.45rem;
}

.blog-ui-topic-footer {
  color: var(--text-muted);
  opacity: 0.9;
}

.blog-ui-dropdown-menu {
  position: absolute;
  top: 3.7rem;
  left: 1.1rem;
  width: min(310px, calc(100% - 2.2rem));
  padding: 0.4rem;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.45);
}

.blog-ui-menu-item {
  padding: 0.55rem 0.6rem;
  color: #d8dee9;
  border-radius: 8px;
}

.blog-ui-menu-item-strong {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.blog-ui-menu-divider {
  height: 1px;
  margin: 0.3rem 0;
  background: rgba(255, 255, 255, 0.08);
}

.blog-ui-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-ui-chip {
  padding: 0.3rem 0.65rem;
  color: #d8dee9;
}

.blog-ui-expression,
.blog-ui-code,
.blog-ui-result {
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  color: #e5edf7;
}

.blog-ui-modal-header,
.blog-ui-panel-title {
  font-weight: 600;
  color: #fff;
}

.blog-ui-modal-header {
  font-size: 0.82rem;
}

.blog-ui-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 0.75rem;
  flex: 1;
}

.blog-ui-panel {
  padding: 0.75rem;
  display: grid;
  gap: 0.65rem;
}

.blog-ui-panel-line {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.16), rgba(226, 232, 240, 0.06));
}

.blog-ui-tabs {
  display: flex;
  gap: 0.45rem;
}

.blog-ui-tab {
  padding: 0.3rem 0.65rem;
  color: #cbd5e1;
}

.blog-ui-tab-active {
  border-color: rgba(211, 62, 60, 0.52);
  background: rgba(211, 62, 60, 0.14);
  color: #fff;
}

.blog-ui-shot-ai {
  position: relative;
  height: 100%;
  padding: 0.85rem;
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.blog-ui-prompt {
  color: #d6deeb;
}

.blog-ui-result {
  border-color: rgba(52, 211, 153, 0.2);
  background: rgba(16, 185, 129, 0.08);
}

@media (max-width: 900px) {
  .blog-card-grid {
    grid-template-columns: 1fr;
  }

  .blog-post-card-featured,
  .blog-post-card-medium,
  .blog-post-card-fullwidth {
    grid-column: span 1;
  }

  .blog-ui-modal-grid {
    grid-template-columns: 1fr;
  }
}

.admin-page-hero {
  padding-bottom: 0.95rem;
}

.admin-page-hero .hero-desc {
  margin-bottom: 0;
}

.admin-page {
  padding: 1.1rem 1.5rem 6rem;
}

.admin-tabs {
  display: grid;
  gap: 1rem;
}

.admin-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(18, 24, 36, 0.78);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.admin-tab-button:hover {
  border-color: rgba(211, 62, 60, 0.32);
  color: var(--text);
}

.admin-tab-button:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(211, 62, 60, 0.18);
}

.admin-tab-button-active {
  border-color: rgba(211, 62, 60, 0.48);
  background: rgba(211, 62, 60, 0.1);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(211, 62, 60, 0.12);
}

.admin-tab-button[hidden] {
  display: none;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.admin-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.4rem;
  box-shadow: var(--shadow-card);
}

.admin-tab-panel {
  display: none;
  gap: 1rem;
}

.admin-tab-panel-active {
  display: grid;
}

.admin-tab-panel[hidden] {
  display: none;
}

.admin-panel-heading {
  min-width: 0;
}

.admin-panel-heading h2 {
  margin-bottom: 0.35rem;
}

.admin-panel-heading .section-desc {
  margin-bottom: 0;
  max-width: 56rem;
}

.admin-panel-grid,
.admin-search-card,
.admin-summary-card {
  margin-bottom: 0;
}

.admin-card-nested {
  height: 100%;
  box-shadow: none;
}

.admin-summary-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.admin-summary-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-summary-table th,
.admin-summary-table td {
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--border);
}

.admin-summary-table tr:last-child th,
.admin-summary-table tr:last-child td {
  border-bottom: 0;
}

.admin-summary-table th {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
}

.admin-summary-table td {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.1;
  text-align: right;
}

.admin-inline-form {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  flex-wrap: wrap;
}

.admin-danger-form {
  margin-top: 0.9rem;
}

.admin-inline-input {
  flex: 1 1 280px;
  margin-bottom: 0;
}

.admin-select {
  width: auto;
  min-width: 150px;
  margin-bottom: 0;
}

.admin-user-list {
  display: grid;
  gap: 1rem;
}

.admin-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: rgba(18, 24, 36, 0.5);
}

.admin-pagination-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.admin-pagination-actions {
  justify-content: flex-end;
}

.admin-pagination button:disabled {
  opacity: 0.55;
  pointer-events: none;
}

.admin-pagination[hidden] {
  display: none;
}

.admin-user-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-user-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.admin-user-email {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.admin-user-meta {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 0.2rem;
}

.admin-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.admin-badge-paid {
  color: #6ee7b7;
  border-color: rgba(110, 231, 183, 0.28);
  background: rgba(52, 211, 153, 0.1);
}

.admin-badge-expired {
  color: #fde68a;
  border-color: rgba(253, 230, 138, 0.25);
  background: rgba(245, 158, 11, 0.12);
}

.admin-badge-blocked {
  color: #fca5a5;
  border-color: rgba(252, 165, 165, 0.28);
  background: rgba(220, 38, 38, 0.12);
}

.admin-user-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
}

.admin-user-stats div {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(11, 15, 22, 0.55);
  padding: 0.85rem;
}

.admin-user-stats strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.admin-user-stats span {
  font-size: 0.92rem;
}

.admin-user-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.admin-user-actions .btn {
  padding-left: 0.7rem;
  padding-right: 0.7rem;
}

.admin-action-group {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

.admin-days-input {
  margin-bottom: 0;
}

.admin-days-input-trial {
  width: 66px;
}

.admin-days-input-paid {
  width: 99px;
}

.admin-delete-button {
  border-color: rgba(211, 62, 60, 0.35);
}

.admin-delete-button:hover {
  background: rgba(211, 62, 60, 0.08);
  color: #fff;
}

.admin-session-panel {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(11, 15, 22, 0.45);
  padding: 1rem;
}

.admin-session-list {
  display: grid;
  gap: 0.85rem;
}

.admin-session-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(11, 15, 22, 0.55);
  padding: 0.9rem;
}

.admin-session-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.8rem;
}

.admin-session-name {
  font-weight: 700;
}

.admin-session-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.admin-session-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.admin-session-grid div {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem;
}

.admin-session-grid strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.admin-session-empty {
  color: var(--text-muted);
}

.admin-release-form {
  display: grid;
  gap: 1rem;
}

.admin-release-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.admin-field {
  display: grid;
  gap: 0.42rem;
}

.admin-field span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.admin-field-wide {
  grid-column: span 2;
}

.admin-field-full {
  grid-column: 1 / -1;
}

.admin-textarea {
  min-height: 150px;
  resize: vertical;
}

.admin-release-assets {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: rgba(11, 15, 22, 0.38);
  padding: 1rem;
}

.admin-release-assets-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.admin-release-assets-actions {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

.admin-release-assets-heading p {
  max-width: 34rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.admin-release-asset-list,
.admin-release-list {
  display: grid;
  gap: 1rem;
}

.admin-release-asset,
.admin-release-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
}

.admin-release-asset-top,
.admin-release-item-top,
.release-version-row {
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.admin-release-asset-top strong,
.release-version {
  font-size: 1.02rem;
  font-weight: 700;
}

.admin-release-asset-top span {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.admin-release-asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
  margin-top: 0.9rem;
}

.admin-release-version-row,
.release-badges,
.admin-release-assets-row,
.release-assets-grid,
.admin-release-file-meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}

.admin-release-version {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1;
}

.admin-release-summary,
.release-summary {
  margin-top: 0.95rem;
  color: var(--text);
}

.release-title {
  margin-top: 0.85rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.release-change-list {
  margin: 0.85rem 0 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.release-change-list li + li {
  margin-top: 0.35rem;
}

.admin-release-details,
.release-details-pre {
  margin-top: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(11, 15, 22, 0.5);
  padding: 0.95rem;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.admin-release-asset-chip,
.release-asset-link {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  border: 1px solid rgba(211, 62, 60, 0.26);
  border-radius: 999px;
  background: rgba(211, 62, 60, 0.08);
  color: var(--text);
  padding: 0.42rem 0.8rem;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.admin-release-asset-chip:hover,
.release-asset-link:hover {
  border-color: rgba(211, 62, 60, 0.5);
  background: rgba(211, 62, 60, 0.14);
}

.admin-release-file-meta {
  margin-top: 0.85rem;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.admin-release-empty,
.release-empty {
  color: var(--text-muted);
}

.download-release-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: -1rem;
  margin-bottom: 1.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(211, 62, 60, 0.3);
  background: rgba(18, 24, 36, 0.78);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
}

.download-release-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.8rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: rgba(18, 24, 36, 0.62);
  box-shadow: var(--shadow-card);
}

.download-release-actions-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.download-release-actions-copy {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.release-list {
  display: grid;
  gap: 1rem;
}

.release-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: rgba(18, 24, 36, 0.62);
  padding: 1.2rem;
  box-shadow: var(--shadow-card);
}

.release-meta {
  margin-top: 0.4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Download page */
.page-hero {
  text-align: center;
  padding: 4.15rem 1.5rem 2.25rem;
  background: radial-gradient(900px 380px at 50% 0%, rgba(211, 62, 60, 0.15) 0%, rgba(13, 17, 23, 0) 70%),
              linear-gradient(180deg, rgba(18, 24, 36, 0.85) 0%, rgba(13, 17, 23, 1) 85%);
}

.download {
  padding: 4.5rem 1.5rem 6rem;
}

.download-latest-summary {
  min-height: 4.8em;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
  margin-top: 2rem;
}

.download-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.download-platform {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}

.download-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.25rem 0 1rem;
}

.download-build-list {
  display: grid;
  gap: 0.75rem;
  margin-top: auto;
  min-height: 5.35rem;
  align-content: start;
}

.download-build-link {
  margin-bottom: 0;
  min-height: 2.45rem;
}

.download-build-link-loading {
  display: flex;
}

.download-loading-label {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.12rem;
  min-width: 0;
}

.download-loading-dots {
  display: inline-block;
  width: 4ch;
  overflow: hidden;
  white-space: nowrap;
  animation: downloadLoadingDots 1.1s steps(4, end) infinite;
}

@keyframes downloadLoadingDots {
  0% { width: 1ch; }
  24% { width: 1ch; }
  25% { width: 2ch; }
  49% { width: 2ch; }
  50% { width: 3ch; }
  74% { width: 3ch; }
  75% { width: 4ch; }
  100% { width: 4ch; }
}

.download-helper-card {
  margin-top: 1rem;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.download-helper-summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.download-helper-summary::-webkit-details-marker {
  display: none;
}

.download-helper-summary::after {
  content: '+';
  font-size: 1.15rem;
  line-height: 1;
  color: var(--primary-light);
}

.download-helper-card[open] .download-helper-summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.download-helper-card[open] .download-helper-summary::after {
  content: '−';
}

.download-helper-content {
  padding: 1rem 1.25rem 1.25rem;
}

.download-choice {
  margin-bottom: 1rem;
}

.download-choice-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 0.45rem;
}

.download-select {
  width: 100%;
  margin-bottom: 0;
  min-width: 240px;
}

.download-notes {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.85rem;
}

.download-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.download-details-single {
  grid-template-columns: 1fr;
}

.download-details-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.6rem;
}

.download-details-card-full {
  grid-column: 1 / -1;
}

.download-details-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 0.5rem;
}

.download-details-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.download-command-panel {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #0b0f16;
  overflow: hidden;
  margin-top: 0.85rem;
}

.download-command-copy-btn {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 1;
}

.download-command-code {
  margin: 0;
  padding: 1rem 3.35rem 1rem 1.05rem;
  color: #e5e7eb;
  font-size: 0.84rem;
  line-height: 1.7;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
}

.download-checksum-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.download-checksum-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.download-card .download-checksum-row {
  margin-top: 0.7rem;
}

.download-checksum-row-muted .download-checksum-label {
  color: var(--text-muted);
}

.download-checksum-label {
  flex: 0 0 76px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-light);
}

.download-checksum-value {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #0b0f16;
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
  font-size: 0.8rem;
  line-height: 1.35;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
}

.download-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s, transform 0.18s;
}

.download-copy-btn:hover {
  border-color: rgba(211, 62, 60, 0.4);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.download-copy-btn:focus-visible {
  outline: none;
  border-color: rgba(211, 62, 60, 0.72);
  box-shadow: 0 0 0 3px rgba(211, 62, 60, 0.18);
}

.download-copy-btn[data-copy-state="copied"] {
  border-color: rgba(211, 62, 60, 0.62);
  background: rgba(211, 62, 60, 0.12);
  color: var(--text);
}

.download-copy-btn svg {
  width: 0.95rem;
  height: 0.95rem;
}

/* Feedback pane */
.feedback-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 150;
  border: 0;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 12px 34px rgba(211, 62, 60, 0.22);
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.feedback-fab:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(211, 62, 60, 0.26);
}

.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
}

.feedback-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
}

.feedback-panel {
  position: relative;
  width: min(720px, calc(100vw - 2rem));
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.60);
  overflow: hidden;
}

.feedback-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.feedback-title {
  font-weight: 700;
  letter-spacing: -0.005em;
}

.feedback-close {
  height: 32px;
  width: 32px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: var(--text);
}
.feedback-close:hover {
  background: var(--bg-alt);
}

.feedback-body {
  padding: 1rem;
}

.feedback-subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
}

.feedback-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.feedback-text {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  resize: vertical;
  min-height: 160px;
}

.feedback-text:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(211, 62, 60, 0.16);
}

.feedback-meta {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: pre-wrap;
}

.feedback-actions {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  background: transparent;
  border-top: 0;
}

.feedback-or {
  color: var(--text-muted);
  font-size: 0.85rem;
  align-self: center;
  padding: 0 0.15rem;
}

/* Legal pages */
.legal-page {
  padding: 0 1.5rem 6rem;
  background: rgba(18, 24, 36, 0.38);
  backdrop-filter: blur(3px);
}

.legal-layout {
  display: grid;
  gap: 1.25rem;
}

.legal-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.6rem;
}

.legal-card h2 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.legal-card p,
.legal-card li {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.legal-card p + p,
.legal-card ul,
.legal-card ol,
.legal-card li + li {
  margin-top: 0.75rem;
}

.legal-card ul,
.legal-card ol {
  padding-left: 1.2rem;
}

.legal-card strong {
  color: var(--text);
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 0.9rem;
}

.legal-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.9rem;
}

.legal-inline-links a {
  color: var(--primary-light);
  text-decoration: none;
}

.legal-inline-links a:hover {
  color: var(--text);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 1.2rem;
  background: linear-gradient(180deg, rgba(18, 24, 36, 0.9) 0%, rgba(10, 13, 19, 0.96) 100%);
  backdrop-filter: blur(6px);
}

.is-selected {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(211, 62, 60, 0.16);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(160px, 1fr));
  gap: 2rem;
  align-items: start;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}
.footer-brand-title {
  color: var(--text);
}
.footer-brand-copy {
  max-width: 300px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.footer-column {
  display: grid;
  gap: 0.75rem;
}
.footer-heading {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.footer-nav {
  display: grid;
  gap: 0.55rem;
}
.footer-nav a,
.footer-bottom-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  text-decoration: none;
}
.footer-nav a:hover,
.footer-bottom-links a:hover {
  color: var(--text);
}
.footer-resource-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-resource-link svg {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--primary-light);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Docs page */
.docs-page-hero {
  padding-bottom: 0.9rem;
}

.docs-search-wrap {
  width: min(420px, 100%);
  text-align: left;
}

.docs-search-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.docs-search-input {
  width: 100%;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  font-size: 0.95rem;
  font-family: inherit;
  background: rgba(18, 24, 36, 0.78);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.docs-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(211, 62, 60, 0.16);
}

.docs-generated-note {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.docs-page {
  padding: 0 1.5rem 6rem;
  background: rgba(18, 24, 36, 0.42);
  backdrop-filter: blur(3px);
}

 .docs-page > .container {
   max-width: 1375px;
 }

.docs-shell {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18, 24, 36, 0.88) 0%, rgba(13, 17, 23, 0.96) 100%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.docs-shell-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.docs-shell-copy {
  min-width: 0;
}

.docs-shell-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.docs-shell-title {
  margin-top: 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.docs-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 72vh;
}

.docs-sidebar {
  position: sticky;
  top: 5rem;
  align-self: start;
  min-height: 72vh;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 12, 18, 0.72);
}

.docs-sidebar-scroll {
  display: grid;
  gap: 0.95rem;
  height: auto;
  overflow: visible;
  padding: 0.85rem;
}

.docs-nav-section {
  display: grid;
  gap: 0.4rem;
}

.docs-nav-section-title {
  padding: 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.docs-nav-list {
  list-style: none;
  display: grid;
  gap: 0.28rem;
}

.docs-nav-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.62rem 0.72rem;
  border-radius: 10px;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1.35;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.docs-nav-link-title {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text);
}

.docs-nav-link-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.docs-nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.docs-nav-link-active {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 0 0 3px rgba(211, 62, 60, 0.12);
  color: var(--text);
}

.docs-nav-link[data-section-id="streaming"],
.docs-nav-link[data-section-id="liveFeeds"] {
  border-left-color: rgba(34, 211, 238, 0.5);
}

.docs-nav-link[data-section-id="liveViews"] {
  border-left-color: rgba(129, 140, 248, 0.55);
}

.docs-nav-link[data-section-id="topics"] {
  border-left-color: rgba(52, 211, 153, 0.55);
}

.docs-nav-link[data-section-id="messages"] {
  border-left-color: rgba(167, 139, 250, 0.55);
}

.docs-nav-link[data-section-id="data"] {
  border-left-color: rgba(217, 70, 239, 0.5);
}

.docs-nav-link[data-section-id="automation"] {
  border-left-color: rgba(245, 158, 11, 0.5);
}

.docs-content-pane {
  min-width: 0;
  min-height: 72vh;
  background: linear-gradient(180deg, rgba(20, 26, 38, 0.96) 0%, rgba(12, 16, 24, 0.98) 100%);
}

.docs-content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.docs-content {
  min-width: 0;
  padding: 1.25rem 1.4rem 1.5rem;
}

.docs-entry-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(24, 31, 45, 0.96) 0%, rgba(16, 21, 32, 0.98) 100%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  padding: 1.5rem;
  min-height: calc(72vh - 7rem);
}

.docs-entry-card-active {
  border-color: rgba(255, 255, 255, 0.1);
}

.docs-entry-header {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.docs-entry-header h2 {
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.docs-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.docs-entry-section,
.docs-entry-id,
.docs-keyword {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  border: 1px solid rgba(211, 62, 60, 0.22);
  background: rgba(211, 62, 60, 0.08);
  color: #f3b1af;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.docs-entry-id {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 500;
}

.docs-content-pane[data-active-section="streaming"] .docs-entry-section,
.docs-content-pane[data-active-section="liveFeeds"] .docs-entry-section {
  border-color: rgba(34, 211, 238, 0.28);
  background: rgba(34, 211, 238, 0.12);
  color: #9de8f5;
}

.docs-content-pane[data-active-section="liveViews"] .docs-entry-section {
  border-color: rgba(129, 140, 248, 0.28);
  background: rgba(129, 140, 248, 0.12);
  color: #d1d8ff;
}

.docs-content-pane[data-active-section="topics"] .docs-entry-section {
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(52, 211, 153, 0.12);
  color: #9ff0c7;
}

.docs-content-pane[data-active-section="messages"] .docs-entry-section {
  border-color: rgba(167, 139, 250, 0.28);
  background: rgba(167, 139, 250, 0.12);
  color: #e3d8ff;
}

.docs-content-pane[data-active-section="data"] .docs-entry-section {
  border-color: rgba(217, 70, 239, 0.28);
  background: rgba(217, 70, 239, 0.12);
  color: #f5b3ff;
}

.docs-content-pane[data-active-section="automation"] .docs-entry-section {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.12);
  color: #ffe29f;
}

.docs-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.docs-entry-body {
  display: grid;
  gap: 1.1rem;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

 .docs-entry-header h2,
 .docs-body-heading,
 .docs-copy,
 .docs-stack > div,
 .docs-grid > div,
 .docs-grid-three > div,
 .docs-body-panel p,
 .docs-body-panel li {
   font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
 }

.docs-stack,
.docs-grid,
.docs-grid-three,
.docs-copy {
  display: grid;
  gap: 0.7rem;
}

.docs-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.docs-grid-three {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.docs-mono-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem 1.5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #d6dee8;
}

.docs-mono-grid > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .docs-mono-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.docs-body-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  padding: 1rem 1rem 1.05rem;
}

.docs-body-heading {
  margin-bottom: 0.7rem;
  font-size: 1rem;
  font-weight: 600;
  color: #9cd4ff;
}

.docs-copy,
.docs-stack > div,
.docs-grid > div,
.docs-grid-three > div,
.docs-body-panel p,
.docs-body-panel li {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.docs-entry-body strong {
  color: var(--text);
}

.docs-entry-body code,
.docs-inline-code,
.docs-inline-control {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.08rem 0.42rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 0.85em;
}

.docs-code-block {
  margin: 0;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(7, 10, 15, 0.86);
  color: #e5edf7;
  font-size: 0.84rem;
  line-height: 1.65;
  overflow-x: auto;
  white-space: pre-wrap;
}

 .docs-image,
 .docs-image-crop {
   display: block;
   max-width: 100%;
   height: auto;
   border-radius: 10px;
 }

 .docs-entry-body img {
   display: block;
   max-width: 100%;
   height: auto;
   border-radius: 10px;
 }

 .docs-image {
   border: 1px solid rgba(255, 255, 255, 0.08);
 }

 .docs-image-frame {
   margin: 0;
   overflow: hidden;
   border-radius: 12px;
   border: 1px solid rgba(255, 255, 255, 0.08);
   background: rgba(7, 10, 15, 0.86);
 }

 .docs-image-crop {
   width: 100%;
   min-height: 18rem;
   object-fit: cover;
 }

 .docs-divided-stack > div + div {
   border-top: 1px solid rgba(255, 255, 255, 0.08);
 }

 .docs-inline-control-icon {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 0.95rem;
   height: 0.95rem;
   flex: 0 0 auto;
 }

 .docs-inline-control-icon svg {
   width: 100%;
   height: 100%;
   stroke: currentColor;
 }

.docs-list {
  margin: 0;
  padding-left: 1.1rem;
}

.docs-empty,
.docs-empty-state {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-card);
  background: rgba(18, 24, 36, 0.7);
  box-shadow: var(--shadow-card);
  padding: 1.2rem;
  color: var(--text-muted);
}

.docs-empty-state h2 {
  margin-bottom: 0.45rem;
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    display: flex;
    justify-content: center;
  }
  .logo { justify-self: auto; }
  .ksy-site-background__blob {
    filter: blur(72px);
    opacity: 0.28;
  }
  .ksy-site-background__cursor {
    width: 200px;
    height: 200px;
    opacity: 0.36;
  }
  .hero h1 { font-size: 2rem; }
  .page-hero { padding: 3.65rem 1.25rem 2rem; }
  .page-hero h1 { font-size: 1.92rem; }
  .nav-links { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .contact-shell { grid-template-columns: 1fr; }
  .contact-radio-options { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .download-details { grid-template-columns: 1fr; }
  .admin-tab-list { flex-direction: column; }
  .admin-tab-button { width: 100%; }
  .admin-inline-form { flex-direction: column; align-items: stretch; }
  .admin-action-group { width: 100%; }
  .admin-days-input,
  .admin-days-input-trial,
  .admin-days-input-paid { width: 100%; }
  .admin-select { width: 100%; }
  .admin-field-wide,
  .admin-field-full { grid-column: 1 / -1; }
  .admin-release-assets-heading,
  .admin-release-asset-top,
  .admin-release-item-top,
  .release-version-row,
  .download-release-actions { flex-direction: column; }
  .download-release-actions { align-items: stretch; }
  .admin-pagination { flex-direction: column; align-items: stretch; }
  .admin-pagination-actions { justify-content: stretch; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-shell-toolbar { flex-direction: column; align-items: stretch; }
  .docs-sidebar { position: static; min-height: 0; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .docs-sidebar-scroll { height: auto; max-height: none; }
  .docs-content { padding: 1rem; }
  .docs-content-header { padding: 0.9rem 1rem; flex-direction: column; align-items: flex-start; }
  .docs-entry-card { min-height: 0; padding: 1.1rem; }
}
@media (max-width: 480px) {
  .ksy-site-background__mesh {
    opacity: 0.16;
    background-size: 128px 128px;
  }
  .hero h1 { font-size: 1.68rem; }
  .page-hero { padding: 3.15rem 1rem 1.8rem; }
  .page-hero h1 { font-size: 1.64rem; }
  .hero-sub { font-size: 0.98rem; }
  .hero-desc { font-size: 0.92rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .feedback-actions { flex-direction: column; }
  .placeholder-actions { flex-direction: column; align-items: stretch; }
  .admin-user-top { flex-direction: column; }
}

 @media (prefers-reduced-motion: reduce) {
   .navbar::after,
   .ksy-site-background__turn-node,
   .nav-links a,
   body.page-enter main > * {
     animation: none;
     transition: none;
   }

   body.page-enter main > * {
     opacity: 1;
     transform: none;
     filter: none;
   }

   .ksy-site-background__mesh,
   .ksy-site-background__blob {
     animation: none;
   }

   .ksy-site-background__streams {
     display: none;
   }

   .ksy-site-background__cursor {
     transition: none;
     opacity: 0.22;
   }
 }



.docs-entry-body,
.docs-entry-body > *,
.docs-body-panel,
.docs-stack,
.docs-grid,
.docs-grid-three,
.docs-mono-grid,
.docs-copy,
.docs-stack > div,
.docs-grid > div,
.docs-grid-three > div,
.docs-mono-grid > div {
  min-width: 0;
}

.docs-entry-header h2,
.docs-body-heading,
.docs-copy,
.docs-stack > div,
.docs-grid > div,
.docs-grid-three > div,
.docs-body-panel p,
.docs-body-panel li {
  overflow-wrap: anywhere;
  word-break: break-word;
}
