﻿:root {
  --bg-main: #06131b;
  --bg-deep: #031017;
  --glass: rgba(7, 26, 36, 0.78);
  --line: rgba(132, 204, 213, 0.24);
  --text: #e6f5f9;
  --muted: #9eb3bc;
  --accent: #11d1b0;
  --accent-soft: #0ea48c;
  --warn: #ffb25e;
  --error: #ff6f61;
  --ok: #6ef2a2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(17, 209, 176, 0.28), transparent 42%),
    radial-gradient(circle at 84% 6%, rgba(255, 178, 94, 0.24), transparent 36%),
    linear-gradient(145deg, var(--bg-main), var(--bg-deep));
  color: var(--text);
  font-family: "Sora", "Trebuchet MS", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body[data-page="landing"] {
  opacity: 1;
  transform: none;
  background:
    radial-gradient(circle at 8% -10%, rgba(31, 224, 185, 0.24), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(255, 166, 95, 0.18), transparent 34%),
    radial-gradient(circle at 54% 100%, rgba(17, 91, 176, 0.2), transparent 42%),
    linear-gradient(140deg, #041018 0%, #051b26 48%, #020b11 100%);
}

body.motion-ready[data-page="landing"] {
  animation: landing-enter 0.55s cubic-bezier(0.2, 0.9, 0.24, 1);
}

@keyframes landing-enter {
  from {
    opacity: 0.92;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

body[data-page="landing"]::before,
body[data-page="landing"]::after {
  content: "";
  position: fixed;
  z-index: -2;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(56px);
}

body[data-page="landing"]::before {
  width: 460px;
  height: 460px;
  left: -120px;
  top: 120px;
  background: rgba(17, 209, 176, 0.22);
  animation: drift-a 14s ease-in-out infinite;
}

body[data-page="landing"]::after {
  width: 420px;
  height: 420px;
  right: -120px;
  top: 180px;
  background: rgba(72, 121, 255, 0.18);
  animation: drift-b 16s ease-in-out infinite;
}

@keyframes drift-a {
  0%,
  100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(22px, -28px) scale(1.06); }
}

@keyframes drift-b {
  0%,
  100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 26px) scale(1.04); }
}

.bg-shape {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(44px);
  pointer-events: none;
}

.shape-a {
  width: 360px;
  height: 360px;
  top: -120px;
  left: -80px;
  background: rgba(6, 133, 165, 0.5);
}

.shape-b {
  width: 300px;
  height: 300px;
  bottom: -100px;
  right: -70px;
  background: rgba(255, 166, 87, 0.45);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 26px;
  backdrop-filter: blur(14px);
  background: rgba(2, 14, 20, 0.62);
  border-bottom: 1px solid var(--line);
  transition: transform 0.28s ease, background 0.28s ease, border-color 0.28s ease;
}

.topbar.is-scrolled {
  background: rgba(2, 14, 20, 0.86);
  border-color: rgba(132, 204, 213, 0.35);
}

.topbar.is-hidden {
  transform: translateY(-110%);
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 9;
  pointer-events: none;
  opacity: 0;
}

body[data-page="landing"] .scroll-progress {
  opacity: 1;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, rgba(16, 223, 185, 0.95), rgba(70, 151, 255, 0.95), rgba(255, 177, 97, 0.95));
  box-shadow: 0 0 14px rgba(16, 223, 185, 0.5);
}

.brand {
  color: var(--text);
  font-weight: 800;
  font-size: 1.04rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.brand:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.brand-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #7ce8d4);
  box-shadow: 0 0 18px rgba(17, 209, 176, 0.8);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 6px;
}

.lang-pill {
  border: 1px solid rgba(132, 204, 213, 0.3);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.78rem;
  line-height: 1;
  opacity: 0.9;
}

.lang-pill.active {
  border-color: rgba(17, 209, 176, 0.9);
  color: #b8fff0;
  background: rgba(17, 209, 176, 0.12);
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: #d8fff7;
  transform: translateY(-1px);
}

.btn-mini {
  border: 1px solid rgba(17, 209, 176, 0.6);
  padding: 8px 12px;
  border-radius: 10px;
}

.page {
  width: min(1360px, calc(100vw - 36px));
  margin: 26px auto 40px;
  display: grid;
  gap: 18px;
}

.panel-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.panel-sidebar {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.panel-main {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.panel-section {
  scroll-margin-top: 96px;
}

.side-nav {
  display: grid;
  gap: 7px;
}

.side-nav-link {
  display: block;
  border: 1px solid rgba(132, 204, 213, 0.26);
  border-radius: 11px;
  padding: 10px 11px;
  color: #d6edf4;
  text-decoration: none;
  font-size: 0.87rem;
  font-weight: 600;
  background: rgba(3, 21, 30, 0.6);
}

.side-nav-link:hover {
  border-color: rgba(17, 209, 176, 0.75);
  background: rgba(17, 209, 176, 0.12);
  color: #c9fff5;
}

.side-nav-link:focus-visible {
  outline: none;
  border-color: rgba(17, 209, 176, 0.9);
  box-shadow: 0 0 0 2px rgba(17, 209, 176, 0.18);
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.eyebrow {
  margin: 0 0 8px;
  color: #9beadf;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1 {
  margin: 0;
  font-size: clamp(1.75rem, 2.8vw, 2.6rem);
  line-height: 1.12;
}

h2 {
  margin: 0;
  font-size: 1.2rem;
}

h3,
h4 {
  margin: 0;
}

.subtext {
  color: var(--muted);
  max-width: 72ch;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.landing-shell {
  display: grid;
  gap: 16px;
  position: relative;
}

.landing-shell::before {
  content: "";
  position: absolute;
  inset: -24px -20px auto -20px;
  height: 220px;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(12, 53, 78, 0.45), rgba(7, 53, 44, 0.34), rgba(7, 35, 58, 0.3));
  filter: blur(24px);
  animation: shell-wash 9s ease-in-out infinite;
}

@keyframes shell-wash {
  0%,
  100% {
    opacity: 0.44;
    transform: translateY(0);
  }
  50% {
    opacity: 0.72;
    transform: translateY(10px);
  }
}

.landing-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(17, 209, 176, 0.16), transparent 28%, transparent 65%, rgba(71, 143, 255, 0.16));
}

.landing-hero-copy {
  position: relative;
  z-index: 1;
}

.landing-hero-copy h1 {
  background: linear-gradient(95deg, #ecfbff 0%, #8ff8e6 42%, #aad9ff 74%, #ecfbff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: heading-flow 7.5s ease-in-out infinite;
}

@keyframes heading-flow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.landing-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.landing-chip {
  border: 1px solid rgba(132, 204, 213, 0.28);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  color: #c8e7ef;
  background: rgba(3, 24, 34, 0.6);
  animation: chip-pulse 4.2s ease-in-out infinite;
}

.landing-chip:nth-child(2) {
  animation-delay: 0.35s;
}

.landing-chip:nth-child(3) {
  animation-delay: 0.7s;
}

@keyframes chip-pulse {
  0%,
  100% {
    border-color: rgba(132, 204, 213, 0.28);
  }
  50% {
    border-color: rgba(17, 209, 176, 0.65);
  }
}

.landing-hero-visual {
  min-height: 260px;
  position: relative;
  z-index: 1;
}

.hero-shot-stack {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  --parallax-scroll: 0px;
  --parallax-x: 0px;
  --parallax-y: 0px;
  transform: translate3d(var(--parallax-x), calc(var(--parallax-scroll) + var(--parallax-y)), 0);
  transition: transform 0.22s ease-out;
  will-change: transform;
}

.hero-shot {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(132, 204, 213, 0.24);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
  background: rgba(2, 16, 24, 0.8);
}

.hero-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-shot-1 {
  width: 84%;
  height: 82%;
  transform: translate(4%, 3%) rotate(-2deg);
  animation: hero-float-1 6.8s ease-in-out infinite;
}

.hero-shot-2 {
  width: 54%;
  height: 46%;
  top: 2%;
  left: 0;
  transform: rotate(-4deg);
  animation: hero-float-2 7.8s ease-in-out infinite;
}

.hero-shot-3 {
  width: 50%;
  height: 42%;
  right: -1%;
  bottom: 2%;
  transform: rotate(4deg);
  animation: hero-float-3 7.2s ease-in-out infinite;
}

@keyframes hero-float-1 {
  0%,
  100% {
    transform: translate(4%, 3%) rotate(-2deg);
  }
  50% {
    transform: translate(4%, -1%) rotate(-1deg);
  }
}

@keyframes hero-float-2 {
  0%,
  100% {
    transform: translate(0, 0) rotate(-4deg);
  }
  50% {
    transform: translate(-2%, -3%) rotate(-2.8deg);
  }
}

@keyframes hero-float-3 {
  0%,
  100% {
    transform: translate(0, 0) rotate(4deg);
  }
  50% {
    transform: translate(2%, -4%) rotate(2.9deg);
  }
}

.hero-visual-fallback {
  height: 100%;
  border: 1px dashed rgba(132, 204, 213, 0.28);
  border-radius: 14px;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  padding: 12px;
  color: #bdd6de;
}

.hero-visual-fallback strong {
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  color: #d4f7f1;
}

.landing-feature-grid .metric-card {
  transform: translateY(0);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.landing-feature-grid .metric-card:hover {
  transform: translateY(-4px);
  border-color: rgba(17, 209, 176, 0.5);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.3);
}

.landing-download {
  position: relative;
  overflow: hidden;
}

.landing-download::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -60px;
  top: -70px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(17, 209, 176, 0.22), transparent 66%);
  pointer-events: none;
}

.landing-download-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.landing-top-card {
  margin-top: 16px;
  padding: 14px;
}

.landing-top-card p {
  margin: 8px 0 0;
  color: #a6c3cc;
  line-height: 1.55;
}

.download-section {
  scroll-margin-top: 96px;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.showcase-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.showcase-grid-premium .shot-card {
  position: relative;
  transform: translateY(0);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.showcase-grid-premium .shot-card:hover {
  transform: translateY(-5px);
  border-color: rgba(17, 209, 176, 0.52);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.34);
}

.showcase-grid-premium .shot-card:nth-child(1) {
  grid-column: span 2;
}

.showcase-grid-premium .shot-card:nth-child(1) img {
  aspect-ratio: 16 / 8.8;
}

.showcase-grid .shot-card figcaption {
  display: none;
}

.shot-card {
  margin: 0;
  border: 1px solid rgba(132, 204, 213, 0.22);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(2, 16, 24, 0.7);
  align-self: start;
}

.shot-card img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.shot-card figcaption {
  padding: 9px 11px;
  font-size: 0.84rem;
  color: #c1dde5;
}

.btn-primary,
.btn-secondary,
.btn-danger {
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #032221;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(7, 172, 146, 0.34);
  filter: saturate(1.08);
}

.btn-secondary {
  background: rgba(13, 40, 54, 0.8);
  border: 1px solid var(--line);
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 209, 176, 0.56);
  background: rgba(13, 46, 62, 0.92);
}

.btn-danger {
  background: rgba(255, 111, 97, 0.15);
  color: #ffd3cd;
  border: 1px solid rgba(255, 111, 97, 0.4);
  padding: 7px 10px;
}

.card-glass,
.metric-card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.clean-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.grid-3,
.grid-4,
.grid-5 {
  display: grid;
  gap: 12px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.metric-card {
  display: grid;
  gap: 8px;
}

.metric-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.metric-value {
  font-size: 1.75rem;
  line-height: 1;
  color: #b6fff2;
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

body.motion-ready [data-reveal] {
  animation: reveal-up 0.56s cubic-bezier(0.19, 1, 0.22, 1) both;
  animation-delay: var(--reveal-delay, 0s);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.center-wrap {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(540px, 100%);
  display: grid;
  gap: 12px;
}

.verify-banner-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(132, 204, 213, 0.28);
  min-height: 170px;
}

.verify-banner-img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.03);
}

.verify-banner-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px;
  background: linear-gradient(180deg, rgba(2, 10, 16, 0.08), rgba(2, 10, 16, 0.88));
}

.verify-banner-overlay h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.verify-banner-overlay p {
  margin: 0;
  font-size: 0.88rem;
  color: #d6e8ee;
}

.verify-hint {
  border: 1px solid rgba(132, 204, 213, 0.32);
  background: rgba(5, 28, 39, 0.72);
  border-radius: 12px;
  padding: 10px 12px;
}

.verify-hint strong {
  display: block;
  color: #bafff3;
  font-size: 0.96rem;
}

.verify-hint p {
  margin: 5px 0 0;
  color: #b5cfd8;
  font-size: 0.9rem;
}

.verify-code-input {
  text-align: center;
  font-size: 1.25rem;
  letter-spacing: 0.28em;
  font-weight: 700;
}

label {
  display: block;
  font-size: 0.87rem;
  color: #b5d5df;
  margin-bottom: 6px;
}

input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(154, 218, 228, 0.28);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  font-family: inherit;
}

select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(154, 218, 228, 0.28);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  font-family: inherit;
}

textarea {
  width: 100%;
  min-height: 120px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(154, 218, 228, 0.28);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.4;
  resize: vertical;
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(17, 209, 176, 0.2);
}

select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(17, 209, 176, 0.2);
}

textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(17, 209, 176, 0.2);
}

.stack-form {
  display: grid;
  gap: 10px;
}

.resend-form {
  margin-top: 8px;
}

.muted,
.muted-line {
  color: var(--muted);
  font-size: 0.9rem;
}

.muted-line {
  margin: 0;
}

.muted-line a,
.muted a {
  color: #a9ffef;
}

.flash-wrap {
  display: grid;
  gap: 8px;
}

.flash {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.92rem;
}

.flash.success {
  background: rgba(110, 242, 162, 0.14);
  border-color: rgba(110, 242, 162, 0.45);
}

.flash.error {
  background: rgba(255, 111, 97, 0.14);
  border-color: rgba(255, 111, 97, 0.45);
}

.flash.warning {
  background: rgba(255, 178, 94, 0.14);
  border-color: rgba(255, 178, 94, 0.44);
}

.flash.info {
  background: rgba(81, 178, 255, 0.13);
  border-color: rgba(81, 178, 255, 0.4);
}

.dash-header {
  margin-bottom: 4px;
}

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

.stack-gap {
  display: grid;
  gap: 12px;
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

.app-select-form {
  grid-template-columns: 1.2fr 1fr auto;
}

.quick-add-wrap {
  border-top: 1px solid rgba(150, 204, 217, 0.2);
  padding-top: 10px;
}

.quick-add-wrap h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #d8f7ff;
}

.macro-shell {
  padding-top: 12px;
}

.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid rgba(150, 204, 217, 0.2);
  padding-bottom: 10px;
}

.tabs-nav.small {
  margin-top: 6px;
  margin-bottom: 8px;
}

.tab-btn {
  border: 1px solid rgba(132, 204, 213, 0.3);
  background: rgba(5, 27, 37, 0.9);
  color: var(--text);
  border-radius: 10px;
  padding: 9px 13px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.88rem;
}

.tab-btn.active {
  border-color: rgba(17, 209, 176, 0.9);
  background: rgba(17, 209, 176, 0.18);
  color: #bafff2;
}

.tab-panel {
  display: none;
  padding-top: 10px;
}

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

.config-grid {
  display: grid;
  gap: 10px;
}

.config-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.config-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.config-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.config-item {
  border: 1px solid rgba(150, 204, 217, 0.2);
  background: rgba(2, 18, 26, 0.52);
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.config-item span {
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94b7c0;
}

.config-item strong {
  font-size: 0.95rem;
  color: #e7fbff;
  word-break: break-word;
}

.config-item.wide {
  grid-column: span 2;
}

.config-item.list-box strong {
  line-height: 1.5;
}

.config-sections {
  display: grid;
  gap: 12px;
}

.config-section-block {
  border: 1px solid rgba(150, 204, 217, 0.2);
  border-radius: 12px;
  padding: 10px;
  background: rgba(1, 14, 21, 0.48);
  display: grid;
  gap: 10px;
}

.config-section-block h3 {
  margin: 0;
  font-size: 0.95rem;
  color: #b4d9e2;
}

.raw-json-block {
  margin-top: 8px;
  border: 1px solid rgba(150, 204, 217, 0.2);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.raw-json-block summary {
  cursor: pointer;
  padding: 10px 12px;
  color: #b4d9e2;
  font-weight: 700;
}

.raw-json-block pre {
  margin: 0;
  padding: 12px;
  max-height: 380px;
  overflow: auto;
  border-top: 1px solid rgba(150, 204, 217, 0.18);
  background: rgba(2, 15, 23, 0.8);
}

.macro-note {
  margin: 0;
}

.selected-app-row td {
  background: rgba(17, 209, 176, 0.08);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 960px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(150, 204, 217, 0.15);
  font-size: 0.88rem;
}

th {
  color: #a9c9d2;
  font-weight: 700;
}

code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.79rem;
  color: #c8fff4;
}

.token {
  max-width: 240px;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

.private-email {
  display: inline-block;
  filter: blur(4px);
  opacity: 0.88;
  user-select: none;
  transition: filter 0.18s ease, opacity 0.18s ease;
}

.private-email.is-visible {
  filter: none;
  opacity: 1;
  user-select: text;
}

.private-email-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.email-eye-btn {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  background: rgba(13, 40, 54, 0.8);
  color: #cbe2ea;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.email-eye-btn:hover {
  border-color: rgba(17, 209, 176, 0.75);
  color: #d7fff7;
}

.email-eye-btn:focus-visible {
  outline: none;
  border-color: rgba(17, 209, 176, 0.9);
  box-shadow: 0 0 0 2px rgba(17, 209, 176, 0.2);
}

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

.email-eye-btn.is-open {
  border-color: rgba(17, 209, 176, 0.9);
  color: #a6fff0;
  background: rgba(17, 209, 176, 0.14);
}

.email-toggle-btn {
  border: 1px solid var(--line);
  background: rgba(13, 40, 54, 0.8);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.84rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.email-toggle-btn:hover {
  border-color: rgba(17, 209, 176, 0.75);
}

.email-toggle-btn:focus-visible {
  outline: none;
  border-color: rgba(17, 209, 176, 0.9);
  box-shadow: 0 0 0 2px rgba(17, 209, 176, 0.2);
}

.endpoint-row td {
  padding-top: 4px;
  padding-bottom: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 999px;
}

.tag.online {
  background: rgba(110, 242, 162, 0.15);
  color: #95ffc0;
  border: 1px solid rgba(110, 242, 162, 0.45);
}

.tag.offline {
  background: rgba(255, 111, 97, 0.16);
  color: #ffcac3;
  border: 1px solid rgba(255, 111, 97, 0.45);
}

.tag.neutral {
  background: rgba(127, 176, 202, 0.16);
  color: #d2ebff;
  border: 1px solid rgba(127, 176, 202, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 1100px) {
  .panel-shell {
    grid-template-columns: 1fr;
  }

  .panel-sidebar {
    position: static;
  }

  .side-nav {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .side-nav-link {
    white-space: nowrap;
  }

  .grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    grid-template-columns: 1fr;
  }

  .landing-hero-visual {
    min-height: 320px;
  }

  .showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-grid-premium .shot-card:nth-child(1) {
    grid-column: span 1;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }

  .app-select-form {
    grid-template-columns: 1fr;
  }

  .config-grid.cols-4,
  .config-grid.cols-3,
  .config-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .page {
    width: calc(100vw - 20px);
    margin-top: 16px;
  }

  .grid-4,
  .grid-5 {
    grid-template-columns: 1fr;
  }

  .config-grid.cols-4,
  .config-grid.cols-3,
  .config-grid.cols-2 {
    grid-template-columns: 1fr;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .landing-hero-visual {
    min-height: 260px;
  }

  .hero-shot-1 {
    width: 92%;
    height: 76%;
    transform: translate(2%, 8%) rotate(-1.2deg);
  }

  .hero-shot-2,
  .hero-shot-3 {
    width: 58%;
    height: 42%;
  }
}
