:root {
  color-scheme: dark;
  --bg: #100719;
  --surface: rgba(25, 14, 43, 0.76);
  --surface-soft: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #fff8ff;
  --muted: #d4c6df;
  --soft: #a995bd;
  --pink: #ff5bd8;
  --rose: #ff9ac6;
  --violet: #7a4dff;
  --indigo: #2f1768;
  --cyan: #63ddff;
  --mint: #63f3bf;
  --amber: #ffc66d;
  --danger: #ff7480;
  --shadow: 0 26px 96px rgba(91, 42, 198, 0.3);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body[data-theme="claude_pro"] {
  --pink: #ff5bd8;
  --rose: #ff9ac6;
  --violet: #7a4dff;
  --cyan: #63ddff;
  --shadow: 0 26px 96px rgba(122, 77, 255, 0.32);
}

body[data-theme="grok_pro"] {
  --pink: #2ad5ff;
  --rose: #82f0ff;
  --violet: #246bff;
  --cyan: #65f1ff;
  --shadow: 0 26px 96px rgba(36, 107, 255, 0.32);
}

body[data-theme="x_premium"] {
  --pink: #4aa3ff;
  --rose: #ffffff;
  --violet: #1a6fff;
  --cyan: #8fc7ff;
  --shadow: 0 26px 96px rgba(74, 163, 255, 0.25);
}

body[data-theme="chatgpt_plus"] {
  --pink: #39f6b2;
  --rose: #8fffd8;
  --violet: #11a37f;
  --cyan: #6ee7ff;
  --shadow: 0 26px 96px rgba(17, 163, 127, 0.3);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 21% 17%, rgba(255, 91, 216, 0.18), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(99, 221, 255, 0.12), transparent 28%),
    radial-gradient(circle at 58% 88%, rgba(122, 77, 255, 0.24), transparent 34%),
    linear-gradient(140deg, #0d0617 0%, #160924 48%, #090613 100%);
}

body[data-theme="grok_pro"] {
  background:
    radial-gradient(circle at 20% 16%, rgba(101, 241, 255, 0.18), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(36, 107, 255, 0.2), transparent 28%),
    radial-gradient(circle at 58% 88%, rgba(22, 44, 116, 0.36), transparent 34%),
    linear-gradient(140deg, #050b18 0%, #071d33 48%, #030712 100%);
}

body[data-theme="x_premium"] {
  background:
    radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.13), transparent 26%),
    radial-gradient(circle at 82% 20%, rgba(74, 163, 255, 0.2), transparent 28%),
    radial-gradient(circle at 58% 88%, rgba(18, 56, 112, 0.32), transparent 34%),
    linear-gradient(140deg, #02040a 0%, #111827 52%, #05070d 100%);
}

body[data-theme="chatgpt_plus"] {
  background:
    radial-gradient(circle at 20% 16%, rgba(57, 246, 178, 0.16), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(110, 231, 255, 0.13), transparent 28%),
    radial-gradient(circle at 58% 88%, rgba(17, 163, 127, 0.25), transparent 34%),
    linear-gradient(140deg, #061611 0%, #0d2a25 48%, #050b0a 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at center, black, transparent 74%);
  animation: grid-drift 16s linear infinite;
}

button,
input,
select {
  font: inherit;
}

.shell {
  width: min(1180px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 18px;
  display: grid;
  place-items: center;
}

.activation-card {
  width: min(1060px, 100%);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025)),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px);
}

.activation-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 91, 216, 0.23), transparent 30%),
    radial-gradient(circle at 12% 86%, rgba(99, 221, 255, 0.1), transparent 28%);
}

.topbar,
.hero-grid,
.requirements,
.steps,
.channel-switch,
.flow-grid,
.status-panel,
.help-panel {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  animation: rise-in 520ms ease both;
}

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

.brand-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(140deg, var(--violet), var(--pink) 65%, var(--rose));
  box-shadow: 0 16px 38px rgba(255, 91, 216, 0.32);
  animation: brand-glow 3.2s ease-in-out infinite;
}

.eyebrow,
.hero-kicker {
  margin: 0 0 6px;
  color: var(--rose);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: 0;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.top-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 13px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.top-link.solid {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.buy-link {
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--pink) 62%, var(--rose));
  box-shadow: 0 10px 30px rgba(255, 91, 216, 0.28);
}

.top-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.buy-link:hover {
  background: linear-gradient(135deg, var(--violet), var(--pink) 62%, var(--rose));
}

html[lang="ru"] .lang-en,
html[lang="en"] .lang-ru {
  display: none;
}

.lang-btn {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.lang-btn.active {
  color: #120719;
  background: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(260px, 0.94fr);
  gap: 28px;
  align-items: center;
  margin: 34px 0 22px;
  animation: rise-in 620ms 80ms ease both;
}

.hero-copy h2 {
  max-width: 650px;
  margin-bottom: 14px;
  font-size: clamp(34px, 5.7vw, 62px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 600px;
  color: var(--muted);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 6px;
}

.hero-buy-btn,
.hero-activate-link,
.hero-wholesale-btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  padding: 0 22px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.hero-buy-btn {
  position: relative;
  overflow: hidden;
  flex-direction: column;
  gap: 2px;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--pink) 56%, var(--rose));
  box-shadow: 0 18px 44px rgba(255, 91, 216, 0.32);
}

.hero-buy-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.38) 45%, transparent 74%);
  transform: translateX(-130%);
  animation: button-sheen 3s ease-in-out infinite;
}

.hero-buy-btn span {
  position: relative;
  z-index: 1;
}

.hero-buy-btn .hero-price {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.hero-activate-link {
  flex-direction: column;
  gap: 2px;
  color: var(--text);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(99, 221, 255, 0.08)),
    rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-activate-link small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.hero-cdk-link {
  min-width: 184px;
}

.hero-wholesale-btn {
  min-width: 270px;
  justify-content: flex-start;
  gap: 12px;
  color: var(--text);
  border: 1px solid rgba(99, 221, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(99, 221, 255, 0.18), rgba(255, 91, 216, 0.14)),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 38px rgba(99, 221, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.wholesale-badge {
  width: 50px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  color: #071019;
  font-size: 14px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
  box-shadow: 0 10px 26px rgba(99, 221, 255, 0.22);
}

.wholesale-copy {
  display: grid;
  gap: 2px;
  text-align: left;
  line-height: 1.05;
}

.wholesale-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hero-buy-btn:hover,
.hero-activate-link:hover,
.hero-wholesale-btn:hover {
  transform: translateY(-2px);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.trust-item {
  min-height: 84px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.trust-item:hover,
.flow-panel:hover,
.requirement:hover,
.status-panel:hover,
.help-panel:hover,
.bulk-panel:hover,
.faq-item:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 91, 216, 0.35);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045));
}

.trust-item span {
  display: block;
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.trust-item strong {
  font-size: 14px;
  line-height: 1.35;
}

.visual {
  min-height: 340px;
  position: relative;
  display: grid;
  place-items: center;
  animation: float-visual 5.6s ease-in-out infinite;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(16px);
}

.aurora-a {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 91, 216, 0.32), transparent 68%);
}

.aurora-b {
  width: 190px;
  height: 190px;
  transform: translate(74px, 58px);
  background: radial-gradient(circle, rgba(99, 221, 255, 0.2), transparent 68%);
}

.cube {
  position: relative;
  width: 178px;
  height: 178px;
  transform: rotate(-30deg) skew(18deg, 18deg);
  animation: cube-breathe 3.8s ease-in-out infinite;
}

.cube-top,
.cube-left,
.cube-right {
  position: absolute;
  border-radius: 20px;
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.16);
}

.cube-top {
  inset: 0;
  background: linear-gradient(135deg, #ff63e4, #7c47ff 56%, #4b28bc);
}

.cube-left {
  width: 178px;
  height: 90px;
  left: -44px;
  bottom: -64px;
  transform: skewY(-36deg);
  background: linear-gradient(135deg, #ba43ff, #551cc0);
}

.cube-right {
  width: 90px;
  height: 178px;
  right: -64px;
  top: 44px;
  transform: skewX(-36deg);
  background: linear-gradient(160deg, #ff66da, #742df0 76%);
}

.star {
  position: absolute;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #fff3ff, var(--pink));
  clip-path: polygon(50% 0, 62% 34%, 100% 50%, 62% 66%, 50% 100%, 38% 66%, 0 50%, 38% 34%);
  filter: drop-shadow(0 0 24px rgba(255, 91, 216, 0.64));
}

.star-a {
  top: 38px;
  right: 54px;
  animation: twinkle 2.8s ease-in-out infinite;
}

.star-b {
  width: 42px;
  height: 42px;
  bottom: 50px;
  left: 34px;
  animation: twinkle 3.6s 400ms ease-in-out infinite;
}

.spark {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 22px rgba(122, 77, 255, 0.9);
}

.spark-a {
  left: 34px;
  top: 92px;
  animation: pulse-dot 2.5s ease-in-out infinite;
}

.spark-b {
  right: 28px;
  bottom: 94px;
  animation: pulse-dot 3s 250ms ease-in-out infinite;
}

.requirements {
  display: block;
  margin-bottom: 22px;
  animation: rise-in 620ms 140ms ease both;
}

.requirement {
  display: flex;
  gap: 14px;
  min-height: 104px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
}

.requirement.primary {
  border-color: rgba(255, 198, 109, 0.42);
  background: linear-gradient(145deg, rgba(255, 198, 109, 0.15), rgba(255, 91, 216, 0.08));
}

.requirement-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #130817;
  font-weight: 900;
  background: var(--amber);
}

.requirement:not(.primary) .requirement-icon {
  background: var(--cyan);
}

.requirement p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

[hidden] {
  display: none !important;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 22px 0;
}

.step {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--soft);
}

.step::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.step:last-child::after {
  display: none;
}

.step span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.055);
}

.step p {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
}

.step.is-active,
.step.is-done {
  color: #fff;
}

.step.is-active span,
.step.is-done span {
  border-color: transparent;
  background: linear-gradient(135deg, var(--violet), var(--pink));
}

.channel-switch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 18px;
  align-items: end;
  margin: 10px 0 30px;
  padding: 18px;
  border: 1px solid rgba(99, 221, 255, 0.28);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(99, 221, 255, 0.13), rgba(255, 91, 216, 0.08)),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 18px 42px rgba(7, 5, 24, 0.18);
  animation: rise-in 520ms 160ms ease both;
}

.channel-copy {
  display: grid;
  gap: 5px;
}

.channel-copy span {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.channel-copy label {
  font-size: 18px;
}

.channel-copy small {
  color: var(--muted);
}

.channel-switch select {
  min-height: 50px;
  border-color: rgba(99, 221, 255, 0.35);
  background-color: rgba(12, 7, 30, 0.82);
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  animation: rise-in 620ms 220ms ease both;
}

.flow-panel,
.status-panel,
.help-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
}

.flow-panel {
  padding: 18px;
  transition: opacity 180ms ease, border-color 180ms ease, background 180ms ease;
}

.flow-panel.is-current {
  border-color: rgba(255, 91, 216, 0.45);
  background: linear-gradient(145deg, rgba(255, 91, 216, 0.11), rgba(255, 255, 255, 0.05));
}

.flow-panel.is-locked {
  opacity: 0.58;
}

.panel-heading span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.panel-heading h3 {
  margin-bottom: 8px;
  font-size: 21px;
  letter-spacing: 0;
}

.panel-heading p {
  min-height: 46px;
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.field-group {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

#userIdGroup[hidden] {
  display: none;
}

label {
  font-size: 13px;
  font-weight: 900;
}

input,
select {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 0 15px;
  color: var(--text);
  outline: none;
  background: rgba(9, 5, 19, 0.72);
}

input:disabled {
  opacity: 0.6;
}

input:focus,
select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 91, 216, 0.13);
}

select {
  cursor: pointer;
}

small {
  color: var(--soft);
  line-height: 1.45;
}

.help-panel a {
  color: var(--cyan);
  font-weight: 900;
  text-decoration: none;
}

.help-panel a:hover {
  text-decoration: underline;
}

.primary-btn {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 17px;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(135deg, #6f42ff, #ff49d9 62%, #ffa0ca);
  box-shadow: 0 16px 40px rgba(255, 73, 217, 0.24);
  position: relative;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  animation: button-sheen 3.2s ease-in-out infinite;
}

.primary-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 20px 52px rgba(255, 73, 217, 0.34);
}

.primary-btn.secondary {
  background: linear-gradient(135deg, #24bfe7, #8053ff 54%, #ff5bd8);
}

.primary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  box-shadow: none;
}

.status-panel {
  margin-top: 16px;
  padding: 16px;
}

.progress-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.055);
  overflow: hidden;
}

.progress-line {
  position: absolute;
  top: 38px;
  left: 48px;
  right: 48px;
  height: 2px;
  background: rgba(255, 255, 255, 0.14);
}

.progress-item {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--soft);
  text-align: center;
}

.progress-item span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(9, 5, 19, 0.92);
}

.progress-item span::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: currentColor;
}

.progress-item p {
  margin: 0;
  font-size: 13px;
  font-weight: 900;
}

.progress-item.active {
  color: var(--cyan);
}

.progress-item.active span {
  animation: progress-pulse 1.1s ease-in-out infinite;
  border-color: rgba(99, 221, 255, 0.6);
}

.progress-item.done {
  color: var(--mint);
}

.progress-item.done span {
  border-color: transparent;
  background: linear-gradient(135deg, var(--mint), var(--cyan));
  color: #071018;
}

.progress-item.done span::before {
  content: "✓";
  width: auto;
  height: auto;
  background: transparent;
  color: #071018;
  font-weight: 900;
}

.success-card {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
  border: 1px solid rgba(99, 243, 191, 0.46);
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(99, 243, 191, 0.16), rgba(99, 221, 255, 0.08));
  animation: success-pop 460ms ease both;
}

.success-check {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #071018;
  font-size: 25px;
  font-weight: 900;
  background: var(--mint);
  box-shadow: 0 0 42px rgba(99, 243, 191, 0.45);
}

.success-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

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

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 20px var(--cyan);
}

.status-dot.busy {
  background: var(--amber);
  box-shadow: 0 0 20px var(--amber);
}

.status-dot.good {
  background: var(--mint);
  box-shadow: 0 0 20px var(--mint);
}

.status-dot.bad {
  background: var(--danger);
  box-shadow: 0 0 20px var(--danger);
}

.status-panel p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.debug-box {
  margin: 14px 0 0;
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  color: #f1d9ff;
  background: rgba(0, 0, 0, 0.28);
}

.help-panel,
.bulk-panel {
  margin-top: 16px;
  padding: 14px 16px;
}

.help-panel summary,
.bulk-panel summary {
  cursor: pointer;
  font-weight: 900;
}

.help-panel ol {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.copy-script-btn {
  min-height: 46px;
  margin-top: 14px;
  border: 1px solid rgba(99, 221, 255, 0.34);
  border-radius: 14px;
  padding: 0 16px;
  color: #10111d;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(135deg, var(--cyan), #ffffff);
}

.copy-script-btn.copied {
  background: linear-gradient(135deg, var(--mint), #ffffff);
}

.bulk-panel {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
}

.bulk-inner {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 14px 15px;
  color: var(--text);
  outline: none;
  background: rgba(9, 5, 19, 0.72);
}

textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 91, 216, 0.13);
}

.bulk-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
}

.primary-btn.compact {
  width: auto;
  min-width: 150px;
  min-height: 52px;
  padding: 0 22px;
}

.bulk-results {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.2);
}

.invoice-btn {
  width: fit-content;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid rgba(99, 221, 255, 0.42);
  border-radius: 14px;
  padding: 0 17px;
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(99, 221, 255, 0.16), rgba(255, 91, 216, 0.13));
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.invoice-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(99, 221, 255, 0.78);
  background: linear-gradient(135deg, rgba(99, 221, 255, 0.24), rgba(255, 91, 216, 0.19));
}

.invoice-btn:disabled {
  opacity: 0.62;
  cursor: wait;
}

.invoice-glyph {
  position: relative;
  width: 18px;
  height: 21px;
  flex: 0 0 auto;
  border: 2px solid var(--cyan);
  border-radius: 3px 3px 5px 5px;
}

.invoice-glyph::before,
.invoice-glyph::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
}

.invoice-glyph::before { top: 5px; }
.invoice-glyph::after { top: 11px; }

.invoice-results {
  display: grid;
  gap: 10px;
}

.invoice-result,
.invoice-message {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.2);
}

.invoice-ready {
  border-color: rgba(99, 243, 191, 0.42);
  background: rgba(99, 243, 191, 0.08);
}

.invoice-error,
.invoice-unavailable,
.invoice-not_issued,
.invoice-not_used {
  border-color: rgba(255, 102, 133, 0.32);
}

.invoice-pending {
  border-color: rgba(255, 199, 92, 0.36);
  background: rgba(255, 199, 92, 0.07);
}

.invoice-result-head {
  display: grid;
  gap: 6px;
}

.invoice-result-head strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
}

.invoice-result-head span {
  line-height: 1.5;
}

.invoice-details {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.invoice-details span {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px 8px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
}

.invoice-open-btn {
  min-height: 42px;
  margin-top: 12px;
  border: 0;
  border-radius: 12px;
  padding: 0 15px;
  color: #071018;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(135deg, var(--mint), var(--cyan));
}

.invoice-backdrop {
  z-index: 32;
}

.invoice-modal {
  width: min(980px, 100%);
  max-height: calc(100vh - 36px);
  display: grid;
  gap: 16px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: 20px;
  color: var(--text);
  background: rgba(21, 13, 37, 0.98);
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.55);
  animation: modal-in 220ms ease both;
}

.invoice-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.invoice-modal-head h2,
.invoice-modal-head p {
  margin: 0;
}

.invoice-modal-head h2 {
  font-size: clamp(20px, 3vw, 28px);
}

.invoice-modal-head p {
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}

.invoice-close-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
}

#invoiceFrame {
  width: 100%;
  height: min(66vh, 720px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: #ffffff;
}

@media (max-width: 640px) {
  .invoice-btn { width: 100%; }
  .invoice-modal { padding: 14px; border-radius: 18px; }
  #invoiceFrame { height: 62vh; }
}

.bulk-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
}

.bulk-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.bulk-code,
.bulk-detail {
  overflow-wrap: anywhere;
}

.bulk-code {
  display: block;
  color: var(--text);
  font-weight: 800;
}

.bulk-details-list {
  display: grid;
  gap: 7px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.045);
}

.bulk-detail {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  line-height: 1.35;
}

.bulk-detail-label {
  color: var(--soft);
  font-weight: 800;
}

.bulk-detail-value {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.bulk-row strong {
  flex: 0 0 auto;
  text-align: right;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(255, 255, 255, 0.06);
}

.bulk-row:last-child {
  border-bottom: 0;
}

.bulk-ok {
  color: var(--mint);
}

.bulk-used,
.bulk-disabled,
.bulk-error {
  color: var(--danger);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 2, 9, 0.72);
  backdrop-filter: blur(18px);
  animation: fade-in 180ms ease both;
}

.confirm-modal {
  width: min(520px, 100%);
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  padding: 24px;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 91, 216, 0.2), transparent 32%),
    rgba(25, 14, 43, 0.96);
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.45);
  animation: modal-in 220ms ease both;
}

.modal-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #160719;
  font-weight: 900;
  background: var(--amber);
}

.confirm-modal h2 {
  margin: 16px 0 10px;
  font-size: 26px;
}

.confirm-modal p {
  color: var(--muted);
  line-height: 1.6;
}

.confirm-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
}

.confirm-check input {
  width: 20px;
  min-height: 20px;
  margin-top: 1px;
  accent-color: var(--pink);
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}

.modal-btn {
  min-height: 48px;
  border-radius: 14px;
  padding: 0 18px;
  font-weight: 900;
  cursor: pointer;
}

.modal-btn.ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.modal-btn.primary {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--pink));
}

.modal-btn.primary.danger {
  background: linear-gradient(135deg, #ff5f7c, #ff9d66);
  box-shadow: 0 16px 34px rgba(255, 95, 124, 0.22);
}

.modal-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.duplicate-modal {
  background:
    radial-gradient(circle at 76% 4%, rgba(255, 199, 92, 0.22), transparent 34%),
    radial-gradient(circle at 16% 0%, rgba(255, 91, 216, 0.18), transparent 28%),
    rgba(25, 14, 43, 0.97);
}

.duplicate-icon {
  background: linear-gradient(135deg, var(--amber), #ff6b87);
}

.duplicate-meta {
  margin-top: 12px;
  border: 1px solid rgba(255, 199, 92, 0.34);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--text) !important;
  background: rgba(255, 199, 92, 0.08);
  font-weight: 800;
}

.duplicate-actions {
  justify-content: space-between;
}

.faq-card {
  max-width: 980px;
}

.faq-hero {
  position: relative;
  z-index: 1;
  margin: 42px 0 24px;
  animation: rise-in 560ms ease both;
}

.faq-hero h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.03;
}

.faq-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.055);
  animation: rise-in 520ms ease both;
}

.faq-item h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.faq-item p {
  margin-bottom: 8px;
  color: var(--muted);
  line-height: 1.65;
}

.api-shell {
  align-items: start;
}

.landing-shell {
  align-items: start;
}

.landing-card {
  max-width: 1120px;
}

.landing-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.32fr);
  gap: 22px;
  align-items: center;
  margin: 42px 0 22px;
}

.landing-copy h2 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(36px, 5.6vw, 68px);
  line-height: 1.02;
}

.landing-copy > p:not(.hero-kicker) {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.landing-price-card {
  border: 1px solid rgba(255, 91, 216, 0.34);
  border-radius: 24px;
  padding: 22px;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(255, 91, 216, 0.18), transparent 48%),
    rgba(10, 6, 18, 0.42);
  box-shadow: 0 22px 58px rgba(255, 91, 216, 0.14);
}

.landing-price-card span,
.landing-price-card p {
  color: var(--muted);
  font-weight: 900;
}

.landing-price-card strong {
  display: block;
  margin: 8px 0;
  font-size: clamp(42px, 7vw, 74px);
  line-height: 1;
}

.landing-grid,
.landing-faq {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.landing-grid article,
.landing-info,
.landing-faq article {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: rgba(10, 6, 18, 0.38);
}

.landing-grid span {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  background: rgba(99, 221, 255, 0.1);
}

.landing-grid strong,
.landing-note strong,
.landing-faq h3 {
  display: block;
  margin-bottom: 8px;
}

.landing-grid p,
.landing-info li,
.landing-note p,
.landing-faq p {
  color: var(--muted);
  line-height: 1.6;
}

.landing-info {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
  gap: 18px;
  margin: 14px 0;
}

.landing-info h2 {
  margin-bottom: 12px;
  font-size: clamp(24px, 3vw, 34px);
}

.landing-info ol {
  margin: 0;
  padding-left: 22px;
}

.landing-info li {
  margin-bottom: 8px;
}

.landing-note {
  border: 1px solid rgba(255, 198, 109, 0.42);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 198, 109, 0.08);
}

.api-card {
  max-width: 1120px;
  min-width: 0;
}

.api-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 91, 216, 0.22), transparent 24%),
    radial-gradient(circle at 76% 8%, rgba(99, 221, 255, 0.16), transparent 24%),
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.08) 46%, transparent 58%);
  opacity: 0.72;
  mix-blend-mode: screen;
  animation: api-card-glow 9s ease-in-out infinite;
}

.api-hero,
.api-section,
.api-toc {
  position: relative;
  z-index: 1;
}

.api-hero {
  position: relative;
  overflow: hidden;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
  gap: 22px;
  align-items: end;
  margin: 42px 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  padding: 26px;
  background:
    radial-gradient(circle at 64% 42%, rgba(255, 91, 216, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  animation: rise-in 560ms ease both;
}

.api-hero::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: 18%;
  top: -120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 91, 216, 0.34), transparent 62%);
  filter: blur(3px);
  animation: api-aurora 8s ease-in-out infinite;
}

.api-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(115deg, transparent 0%, black 24%, black 78%, transparent 100%);
  opacity: 0.42;
  animation: grid-drift 18s linear infinite;
}

.api-hero > * {
  position: relative;
  z-index: 1;
}

.api-hero-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.api-hero-orbit span {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  box-shadow: 0 0 28px rgba(255, 91, 216, 0.42);
  animation: api-float 7s ease-in-out infinite;
}

.api-hero-orbit span:nth-child(1) {
  width: 12px;
  height: 12px;
  right: 42%;
  top: 28%;
}

.api-hero-orbit span:nth-child(2) {
  width: 7px;
  height: 7px;
  right: 9%;
  bottom: 26%;
  animation-delay: -2s;
}

.api-hero-orbit span:nth-child(3) {
  width: 9px;
  height: 9px;
  left: 44%;
  bottom: 18%;
  animation-delay: -4s;
}

.api-hero h2 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.03;
}

.api-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.api-base-box {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255, 91, 216, 0.14), rgba(99, 221, 255, 0.08)),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 22px 54px rgba(0, 0, 0, 0.22);
  animation: api-base-pulse 4.8s ease-in-out infinite;
}

.api-base-box span {
  display: block;
  margin-bottom: 8px;
  color: var(--rose);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.api-base-box code,
.endpoint-title code {
  overflow-wrap: anywhere;
}

.api-base-box p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.api-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.api-badges span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.06);
}

.api-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.api-toc a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  color: var(--muted);
  font-weight: 900;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.045);
  transition:
    transform 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.api-toc a:hover {
  transform: translateY(-2px);
  color: #fff;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
}

.api-section {
  min-width: 0;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.035);
  animation: rise-in 520ms ease both;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.api-section:nth-of-type(3) {
  animation-delay: 70ms;
}

.api-section:nth-of-type(4) {
  animation-delay: 120ms;
}

.api-section:nth-of-type(5) {
  animation-delay: 170ms;
}

.api-section:nth-of-type(6) {
  animation-delay: 220ms;
}

.api-section:nth-of-type(7) {
  animation-delay: 270ms;
}

.api-section:nth-of-type(8) {
  animation-delay: 320ms;
}

.api-section:nth-of-type(9) {
  animation-delay: 370ms;
}

.api-section:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.section-heading span {
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #120719;
  font-size: 13px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.api-section > p {
  max-width: 820px;
  color: var(--muted);
  line-height: 1.65;
}

.api-subtitle {
  margin: 22px 0 12px;
  font-size: 20px;
}

.api-key-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 6px 0 18px;
  border: 1px solid rgba(255, 91, 216, 0.35);
  border-radius: 20px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(122, 77, 255, 0.22), rgba(255, 91, 216, 0.13)),
    rgba(10, 6, 18, 0.42);
}

.api-key-cta strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}

.api-key-cta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.api-key-cta a {
  min-height: 48px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 18px;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  background: linear-gradient(135deg, var(--violet), var(--pink) 62%, var(--rose));
  box-shadow: 0 14px 36px rgba(255, 91, 216, 0.28);
}

.api-detail-grid,
.response-grid,
.status-grid,
.rules-grid {
  display: grid;
  gap: 14px;
}

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

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

.api-steps,
.endpoint-list,
.code-grid {
  display: grid;
  gap: 14px;
}

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

.api-steps article,
.endpoint-card,
.code-grid article,
.response-grid article,
.api-note,
.status-grid article,
.rules-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(10, 6, 18, 0.38);
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    background 200ms ease,
    box-shadow 200ms ease;
}

.api-steps article:hover,
.endpoint-card:hover,
.code-grid article:hover,
.response-grid article:hover,
.status-grid article:hover,
.rules-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(18, 9, 32, 0.58);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.22);
}

.api-steps strong,
.api-note strong,
.status-grid strong,
.rules-grid strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
}

.api-steps p,
.api-note p,
.endpoint-card p,
.api-flow,
.error-table p,
.param-grid p,
.status-grid p,
.rules-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.step-index {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 999px;
  color: #120719;
  font-size: 13px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
}

.api-steps code,
.endpoint-card code,
.rules-grid code,
.api-note code,
.api-section > p code,
.error-table code {
  color: #fff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.endpoint-list {
  grid-template-columns: 1fr;
  min-width: 0;
}

.endpoint-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 18px;
}

.endpoint-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.065) 46%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 620ms ease;
}

.endpoint-card:hover::before {
  transform: translateX(120%);
}

.endpoint-card-featured {
  border-color: rgba(255, 91, 216, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 91, 216, 0.08), rgba(99, 221, 255, 0.04)),
    rgba(10, 6, 18, 0.42);
}

.endpoint-title {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.method {
  min-width: 58px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #061018;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.method.get {
  background: linear-gradient(135deg, var(--cyan), #8af4ff);
}

.method.post {
  background: linear-gradient(135deg, var(--pink), var(--rose));
}

.code-block {
  --editor-border: rgba(255, 255, 255, 0.12);
  position: relative;
  max-width: 100%;
  min-width: 0;
  margin: 14px 0 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--editor-border);
  border-radius: 18px;
  padding: 48px 0 16px;
  color: #f8edff;
  background:
    linear-gradient(180deg, rgba(42, 31, 56, 0.96) 0 38px, rgba(13, 10, 21, 0.96) 38px),
    #0d0a15;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 48px rgba(0, 0, 0, 0.28);
  transform: translateZ(0);
  transition:
    transform 190ms ease,
    border-color 190ms ease,
    box-shadow 190ms ease;
}

.code-block:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 221, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 64px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(99, 221, 255, 0.06);
}

.code-block::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 16px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #ff5f57;
  box-shadow:
    18px 0 0 #ffbd2e,
    36px 0 0 #28c840;
}

.code-block::after {
  content: attr(data-title) "  ·  " attr(data-lang);
  position: absolute;
  top: 10px;
  left: 76px;
  right: 150px;
  overflow: hidden;
  color: #cfc4dd;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-code-btn {
  position: absolute;
  top: 7px;
  right: 8px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0 10px;
  color: #f7ecff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.075);
  cursor: pointer;
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    background 170ms ease,
    color 170ms ease;
}

.copy-code-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(99, 221, 255, 0.36);
  background: rgba(99, 221, 255, 0.11);
}

.copy-code-btn.is-copied {
  color: #081218;
  border-color: rgba(99, 243, 191, 0.68);
  background: linear-gradient(135deg, var(--mint), var(--cyan));
}

.copy-code-btn span {
  position: relative;
  width: 13px;
  height: 13px;
  display: inline-block;
}

.copy-code-btn span::before,
.copy-code-btn span::after {
  content: "";
  position: absolute;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.copy-code-btn span::before {
  width: 8px;
  height: 8px;
  right: 0;
  top: 0;
}

.copy-code-btn span::after {
  width: 8px;
  height: 8px;
  left: 0;
  bottom: 0;
  background: rgba(13, 10, 21, 0.76);
}

.copy-code-btn.is-copied span::after {
  background: transparent;
}

.code-block code {
  counter-reset: code-line;
  display: block;
  width: max-content;
  min-width: 100%;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre;
}

.code-line {
  counter-increment: code-line;
  position: relative;
  display: block;
  min-height: 22px;
  padding: 0 16px 0 58px;
}

.code-line::before {
  content: counter(code-line);
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 46px;
  padding: 0 12px 0 0;
  color: rgba(212, 198, 223, 0.42);
  text-align: right;
  user-select: none;
}

.code-line:hover {
  background: rgba(255, 255, 255, 0.045);
}

.tok-string {
  color: #ffc66d;
}

.tok-keyword {
  color: #ff79d8;
  font-weight: 800;
}

.tok-url {
  color: #63ddff;
}

.tok-comment {
  color: #81758f;
}

.param-grid,
.error-table {
  display: grid;
  grid-template-columns: minmax(160px, 0.32fr) minmax(0, 1fr);
  gap: 10px 14px;
  margin-top: 14px;
}

.param-grid span,
.error-table span {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  background: rgba(99, 221, 255, 0.1);
}

.param-grid p,
.error-table p {
  margin: 0;
}

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

.code-grid h3 {
  margin-bottom: 10px;
}

.code-grid article > p,
.response-grid article > p {
  color: var(--muted);
  font-weight: 800;
}

.api-note {
  margin-top: 14px;
  border-color: rgba(255, 198, 109, 0.42);
  background: rgba(255, 198, 109, 0.08);
}

.api-detail-grid .api-note {
  margin-top: 0;
}

.api-flow {
  margin: 0;
  padding-left: 22px;
}

.api-flow li {
  margin-bottom: 10px;
}

.flow-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.flow-rail article {
  position: relative;
  min-height: 174px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 18px;
  background:
    radial-gradient(circle at top left, rgba(99, 221, 255, 0.14), transparent 42%),
    rgba(10, 6, 18, 0.42);
}

.flow-rail article::after {
  content: "";
  position: absolute;
  top: 34px;
  right: -19px;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  opacity: 0.55;
}

.flow-rail article:last-child::after {
  display: none;
}

.flow-rail span {
  display: inline-flex;
  margin-bottom: 14px;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 900;
  background: rgba(99, 221, 255, 0.1);
}

.flow-rail strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
}

.flow-rail p {
  color: var(--muted);
  line-height: 1.55;
}

.api-table {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.api-table-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) minmax(120px, 0.22fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  color: var(--muted);
  background: rgba(10, 6, 18, 0.34);
}

.api-table-head {
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.07);
}

.api-table code {
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 800;
}

.endpoint-hint {
  margin-top: 12px;
  font-size: 14px;
}

@keyframes api-card-glow {
  0%,
  100% {
    opacity: 0.58;
    transform: translate3d(0, 0, 0);
  }
  50% {
    opacity: 0.9;
    transform: translate3d(0, -8px, 0);
  }
}

@keyframes api-aurora {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.72;
  }
  50% {
    transform: translate3d(-54px, 34px, 0) scale(1.16);
    opacity: 1;
  }
}

@keyframes api-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.72;
  }
  50% {
    transform: translate3d(16px, -18px, 0) scale(1.3);
    opacity: 1;
  }
}

@keyframes api-base-pulse {
  0%,
  100% {
    border-color: rgba(255, 255, 255, 0.13);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 22px 54px rgba(0, 0, 0, 0.22);
  }
  50% {
    border-color: rgba(99, 221, 255, 0.3);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 28px 70px rgba(99, 221, 255, 0.12);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes grid-drift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 52px 52px, 52px 52px;
  }
}

@keyframes brand-glow {
  0%,
  100% {
    box-shadow: 0 16px 38px rgba(255, 91, 216, 0.32);
  }
  50% {
    box-shadow: 0 20px 58px rgba(255, 91, 216, 0.62);
  }
}

@keyframes cube-breathe {
  0%,
  100% {
    transform: rotate(-30deg) skew(18deg, 18deg) scale(1);
  }
  50% {
    transform: rotate(-27deg) skew(18deg, 18deg) scale(1.06);
  }
}

@keyframes button-sheen {
  0%,
  45% {
    transform: translateX(-120%);
  }
  70%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes progress-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(99, 221, 255, 0.28);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(99, 221, 255, 0);
  }
}

@keyframes success-pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes float-visual {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.88;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.65;
  }
  50% {
    transform: scale(1.6);
    opacity: 1;
  }
}

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

@media (max-width: 860px) {
  .api-card {
    width: 100%;
  }

  .api-card::after {
    opacity: 0.42;
  }

  .requirements,
  .flow-grid,
  .hero-grid,
  .landing-hero,
  .landing-grid,
  .landing-info,
  .landing-faq,
  .api-hero,
  .api-steps,
  .api-detail-grid,
  .response-grid,
  .status-grid,
  .rules-grid,
  .flow-rail,
  .code-grid {
    grid-template-columns: 1fr;
  }

  .flow-rail article {
    min-height: auto;
  }

  .flow-rail article::after {
    display: none;
  }

  .api-key-cta {
    align-items: stretch;
    flex-direction: column;
  }

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

@media (max-width: 640px) {
  body::before {
    opacity: 0.25;
  }

  .shell {
    width: 100%;
    padding: 10px;
  }

  .activation-card {
    border-radius: 22px;
    padding: 14px;
  }

  .api-card {
    border-radius: 20px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .language-switch {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    border-radius: 22px;
  }

  .buy-link {
    flex: 1 1 100%;
  }

  .hero-grid {
    margin-top: 26px;
  }

  .hero-actions,
  .hero-buy-btn,
  .hero-activate-link,
  .hero-wholesale-btn {
    width: 100%;
  }

  .bulk-row {
    grid-template-columns: 1fr;
  }

  .bulk-row strong {
    width: fit-content;
    text-align: left;
  }

  .bulk-detail {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .modal-actions,
  .duplicate-actions {
    flex-direction: column;
  }

  .modal-btn {
    width: 100%;
  }

  .api-section {
    margin-top: 12px;
    border-radius: 17px;
    padding: 14px;
  }

  .api-hero {
    gap: 14px;
    margin: 24px 0 16px;
    border-radius: 18px;
    padding: 16px;
  }

  .landing-hero {
    margin: 26px 0 16px;
  }

  .landing-copy h2 {
    font-size: 34px;
  }

  .landing-copy > p:not(.hero-kicker) {
    font-size: 15px;
  }

  .landing-actions,
  .landing-actions .hero-buy-btn,
  .landing-actions .hero-activate-link {
    width: 100%;
  }

  .landing-price-card,
  .landing-grid article,
  .landing-info,
  .landing-faq article {
    border-radius: 16px;
    padding: 14px;
  }

  .api-hero h2 {
    font-size: 30px;
    line-height: 1.08;
  }

  .api-hero p {
    font-size: 15px;
    line-height: 1.55;
  }

  .api-base-box {
    border-radius: 16px;
    padding: 14px;
  }

  .api-toc {
    gap: 6px;
    margin-bottom: 14px;
  }

  .api-toc a {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .section-heading {
    gap: 9px;
  }

  .section-heading span {
    min-width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .section-heading h2 {
    font-size: 24px;
  }

  .endpoint-card,
  .api-steps article,
  .code-grid article,
  .response-grid article,
  .api-note,
  .status-grid article,
  .rules-grid article,
  .flow-rail article {
    border-radius: 15px;
    padding: 13px;
  }

  .param-grid,
  .error-table,
  .api-table-row {
    grid-template-columns: 1fr;
  }

  .api-table-head {
    display: none;
  }

  .code-block {
    border-radius: 15px;
    padding: 43px 0 12px;
  }

  .code-block::before {
    top: 15px;
    left: 13px;
    width: 9px;
    height: 9px;
    box-shadow:
      15px 0 0 #ffbd2e,
      30px 0 0 #28c840;
  }

  .code-block::after {
    left: 58px;
    right: 48px;
    font-size: 11px;
  }

  .copy-code-btn {
    top: 8px;
    right: 8px;
    width: 31px;
    min-height: 27px;
    justify-content: center;
    gap: 0;
    padding: 0;
    font-size: 0;
  }

  .copy-code-btn span {
    width: 13px;
    height: 13px;
  }

  .code-block code {
    width: auto;
    min-width: 0;
    font-size: 12px;
    line-height: 1.62;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .code-line {
    min-height: 20px;
    padding: 0 10px 0 42px;
    white-space: pre-wrap;
  }

  .code-line::before {
    width: 32px;
    padding-right: 8px;
  }

  .hero-copy h2 {
    font-size: 36px;
  }

  .trust-row,
  .steps {
    grid-template-columns: 1fr;
  }

  .channel-switch {
    grid-template-columns: 1fr;
    align-items: stretch;
    margin: 8px 0 24px;
  }

  .step::after {
    display: none;
  }

  .cube {
    width: 132px;
    height: 132px;
  }

  .cube-left {
    width: 132px;
    height: 68px;
    left: -33px;
    bottom: -48px;
  }

  .cube-right {
    width: 68px;
    height: 132px;
    right: -48px;
    top: 33px;
  }
}
