@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css");

:root {
  color-scheme: dark;
  --bg: #03050d;
  --bg-2: #070a15;
  --panel: rgba(13, 16, 30, .76);
  --panel-2: rgba(18, 21, 36, .88);
  --stroke: rgba(163, 133, 255, .22);
  --stroke-2: rgba(255, 255, 255, .10);
  --text: #f6f3ff;
  --muted: #a7a2bc;
  --purple: #8f5cff;
  --purple-2: #5b2df5;
  --blue: #5e7dff;
  --danger: #ff5d7d;
  --success: #61f3b3;
  --shadow: 0 34px 120px rgba(0, 0, 0, .58);
  --card-h: 660px;
  --media-h: 296px;
  --step-h: 50px;
  --page-gutter: clamp(18px, 4vw, 52px);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.back-to-top {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 110;
  display: grid;
  place-items: center;
  width: 42px;
  min-width: 42px;
  max-width: 42px;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(97, 243, 179, .18), rgba(143, 92, 255, .18)),
    rgba(8, 11, 24, .88);
  box-shadow: 0 14px 34px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(.96);
  transition: opacity .18s ease, transform .18s ease, border-color .18s ease, background .18s ease;
  padding: 0;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  border-color: rgba(97, 243, 179, .38);
  background:
    linear-gradient(135deg, rgba(97, 243, 179, .24), rgba(143, 92, 255, .24)),
    rgba(10, 14, 30, .94);
}

.back-to-top i {
  display: block;
  font-size: 15px;
  line-height: 1;
}

@media (max-width: 760px) {
  .back-to-top {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}

/* Unified product UI layer */
.toast-stack {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 9999;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.ui-toast {
  display: grid;
  grid-template-columns: 22px 1fr 28px;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 14px;
  border-radius: 14px;
  background: rgba(16, 18, 34, .96);
  color: #f6f4ff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .34);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: auto;
}

.ui-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ui-toast.is-leaving {
  opacity: 0;
  transform: translateY(8px);
}

.ui-toast > i {
  font-size: 16px;
}

.ui-toast span {
  min-width: 0;
  color: inherit;
  font-size: 13px;
  line-height: 1.35;
}

.ui-toast button {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .72);
  cursor: pointer;
}

.ui-toast--success > i { color: #52e3a1; }
.ui-toast--error > i { color: #ff6f91; }
.ui-toast--warning > i { color: #ffd166; }
.ui-toast--info > i { color: #8ca7ff; }

.empty-state,
.promo-empty-state,
.support-empty-state,
.history-empty--wide {
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(123, 86, 255, .12), rgba(255, 255, 255, .045));
  color: rgba(239, 236, 255, .82);
  padding: 20px;
}

.empty-state strong,
.promo-empty-state strong,
.support-empty-state strong {
  display: block;
  color: #fff;
  font-size: 15px;
  margin-bottom: 6px;
}

.apply-button,
.download-button,
.auth-panel .admin-login-button,
button.apply-button,
a.download-button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: #5f4dff;
  background-image: none;
  color: #fff;
  font-weight: 650;
  box-shadow: none;
}

.apply-button:hover,
.download-button:hover,
.auth-panel .admin-login-button:hover {
  background: #705eff;
  transform: translateY(-1px);
}

.copy-button,
.mask-button,
.ghost-button,
.clear-file-button,
.webhook-mini-form button,
.support-icon-button,
.admin-page button:not(.apply-button):not(.code-copy-button):not(.copy-token-button):not(.id-copy-button):not(.danger):not(.ck):not(.ck-button):not([class*="ck-"]),
.account-shell button:not(.apply-button):not(.code-copy-button):not(.copy-token-button):not(.id-copy-button):not(.history-delete-trigger) {
  min-height: 38px;
  border: 0;
  border-radius: 11px;
  background: rgba(255, 255, 255, .08);
  color: rgba(246, 244, 255, .9);
  font-weight: 520;
  box-shadow: none;
}

.copy-button:hover,
.mask-button:hover,
.ghost-button:hover,
.clear-file-button:hover,
.webhook-mini-form button:hover,
.support-icon-button:hover {
  background: rgba(255, 255, 255, .13);
}

button.danger,
.danger,
.ghost-button.danger,
.id-delete-button,
.history-delete-trigger {
  border: 0;
  background: #3b1724;
  color: #ff9ab0;
}

button.danger:hover,
.danger:hover,
.ghost-button.danger:hover,
.id-delete-button:hover,
.history-delete-trigger:hover {
  background: #d93662;
  color: #fff;
}

button:disabled,
.is-disabled {
  cursor: not-allowed;
  opacity: .55;
}

@media (max-width: 720px) {
  .toast-stack {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
  }
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 10000;
  transform: translateY(-140%);
  border-radius: 10px;
  background: #5b5cff;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  padding: 10px 14px;
  transition: transform .16s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid rgba(255,255,255,.72);
  outline-offset: 2px;
}

body {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% 24%, rgba(90, 45, 245, .28), transparent 24%),
    radial-gradient(circle at 16% 42%, rgba(143, 92, 255, .16), transparent 25%),
    radial-gradient(circle at 88% 44%, rgba(94, 125, 255, .14), transparent 24%),
    linear-gradient(180deg, #050711 0%, #03050d 54%, #060814 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black, transparent 70%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 30%, rgba(143, 92, 255, .08), transparent 70%),
    radial-gradient(circle at 50% 50%, transparent 0 52%, rgba(3, 5, 13, .84) 80%);
}

body.modal-open {
  overflow: hidden;
}

body > main {
  margin-bottom: clamp(32px, 5vw, 76px);
}

main[id="main-content"] {
  scroll-margin-top: 96px;
}

img,
video,
canvas {
  max-width: 100%;
}

img {
  height: auto;
}

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

.home-page > main {
  margin-bottom: clamp(22px, 3vw, 42px);
}

.home-page .neon-shell {
  --home-gap: clamp(28px, 4vw, 56px);
  --home-gap-sm: clamp(18px, 2.4vw, 30px);
  padding-bottom: clamp(38px, 5vw, 72px);
}

a {
  color: inherit;
}

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

h1 {
  max-width: 1000px;
  margin: 0 auto 12px;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: .98;
  letter-spacing: 0;
  text-align: center;
}

h1 strong {
  display: block;
  color: var(--purple);
  text-shadow: 0 0 42px rgba(143, 92, 255, .42);
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
}

h3 {
  margin-bottom: 8px;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

code {
  border: 1px solid rgba(143, 92, 255, .22);
  border-radius: 7px;
  background: rgba(143, 92, 255, .10);
  color: #e7dcff;
  padding: 2px 6px;
}

pre {
  margin: 0;
  overflow-x: auto;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: #060815;
  color: #efeaff;
  padding: 18px;
}

pre code {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
}

.code-block {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: #060815;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}

.docs-panel .code-block {
  margin: 14px 0;
}

.docs-panel .code-block + .code-block {
  margin-top: 18px;
}

.code-block__toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 0 0, rgba(143, 92, 255, .16), transparent 46%),
    rgba(255,255,255,.035);
  padding: 9px 10px;
}

.code-block__toolbar span {
  min-width: 0;
  overflow: hidden;
  color: #cfc5ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.code-block__toolbar button {
  justify-self: end;
  width: 34px;
  height: 32px;
  min-height: 32px;
  max-width: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(143, 92, 255, .30);
  border-radius: 999px;
  background: rgba(143, 92, 255, .10);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 0;
}

.code-copy-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 32px;
  min-width: 34px;
  min-height: 32px;
  padding: 0;
}

.code-copy-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.code-copy-button .check-icon {
  display: none;
}

.code-copy-button.is-copied .copy-icon,
.code-copy-button.is-error .copy-icon {
  display: none;
}

.code-copy-button.is-copied .check-icon {
  display: block;
}

.code-block__toolbar button:hover,
.code-block__toolbar button.is-copied {
  border-color: rgba(97, 243, 179, .38);
  background: rgba(97, 243, 179, .12);
  color: #c6ffe8;
}

.code-block__toolbar button.is-error {
  border-color: rgba(255, 93, 125, .34);
  background: rgba(255, 93, 125, .12);
  color: #ffd7df;
}

.code-block .code-block__pre {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 16px 18px;
}

.code-block code {
  font-size: 13px;
  line-height: 1.65;
}

.tok-key,
.tok-name {
  color: #a78bff;
}

.tok-keyword,
.tok-flag,
.tok-const {
  color: #7dd3fc;
}

.tok-string {
  color: #86efac;
}

.tok-number,
.tok-bool {
  color: #fbbf24;
}

.tok-url {
  color: #f0abfc;
}

.neon-header,
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 12px clamp(16px, 4vw, 42px);
  border-bottom: 1px solid rgba(143, 92, 255, .13);
  background: rgba(3, 5, 13, .72);
  backdrop-filter: blur(18px);
}

.brand,
.main-nav,
.nav-links,
nav,
.file-note,
.benefit-bar article,
.result-meta,
.admin-head {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  text-decoration: none;
}

.site-nav,
.nav-links {
  min-width: 0;
}

.brand > span:last-child {
  display: grid;
  gap: 1px;
}

.brand strong {
  font-size: 16px;
  font-weight: 900;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(143, 92, 255, .42);
  border-radius: 12px;
  background: radial-gradient(circle at 35% 20%, rgba(255,255,255,.32), transparent 34%), linear-gradient(135deg, #9a6bff, #4f22ec);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 0 32px rgba(143, 92, 255, .35);
}

.main-nav,
.nav-links,
nav {
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

.main-nav a,
.nav-links a,
nav a {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  padding: 0 12px;
}

.main-nav a:hover,
.nav-links a:hover,
nav a:hover,
.nav-button,
.main-nav a.is-active,
.nav-links a.is-active {
  border-color: rgba(143, 92, 255, .26);
  background: rgba(143, 92, 255, .10);
  color: #fff;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  border: 1px solid rgba(143, 92, 255, .22);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.025)),
    rgba(8, 11, 23, .66);
  padding: 3px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.language-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .04em;
  padding: 0 10px 0 7px;
}

.language-switcher a:hover,
.language-switcher a.is-active {
  border: 0;
  background: linear-gradient(135deg, rgba(143, 92, 255, .92), rgba(86, 49, 236, .92));
  color: #fff;
}

.lang-flag {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  box-shadow:
    0 6px 14px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.28),
    inset 0 -1px 0 rgba(0,0,0,.18);
}

.lang-flag::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255,255,255,.26), transparent 38%, rgba(0,0,0,.16));
  pointer-events: none;
  z-index: 2;
}

.lang-flag--ru {
  background: linear-gradient(180deg, #f8f9ff 0 33.33%, #2857d7 33.33% 66.66%, #df3348 66.66% 100%);
}

.lang-flag--en {
  background:
    repeating-linear-gradient(
      180deg,
      #c9223a 0 7.69%,
      #c9223a 7.69% 15.38%,
      #f7f8ff 15.38% 23.07%,
      #f7f8ff 23.07% 30.76%
    );
}

.lang-flag--en::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 56%;
  height: 54%;
  background:
    radial-gradient(circle at 22% 24%, #fff 0 1px, transparent 1.2px),
    radial-gradient(circle at 50% 24%, #fff 0 1px, transparent 1.2px),
    radial-gradient(circle at 78% 24%, #fff 0 1px, transparent 1.2px),
    radial-gradient(circle at 36% 52%, #fff 0 1px, transparent 1.2px),
    radial-gradient(circle at 64% 52%, #fff 0 1px, transparent 1.2px),
    radial-gradient(circle at 22% 78%, #fff 0 1px, transparent 1.2px),
    radial-gradient(circle at 50% 78%, #fff 0 1px, transparent 1.2px),
    radial-gradient(circle at 78% 78%, #fff 0 1px, transparent 1.2px),
    #21468f;
}

.donate-link {
  gap: 8px;
  min-height: 38px;
  border-color: rgba(143, 92, 255, .34);
  background: rgba(143, 92, 255, .12);
  color: #f4efff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  padding: 0 14px;
}

.donate-link span {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: transparent;
  font-size: 0;
}

.donate-link span::before {
  content: "";
  width: 11px;
  height: 8px;
  border: 1.8px solid #d8ccff;
  border-top: 0;
  border-radius: 0 0 4px 4px;
}

.donate-link span::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 7px;
  width: 5px;
  height: 6px;
  border: 1.6px solid #d8ccff;
  border-left: 0;
  border-radius: 0 5px 5px 0;
}

button:disabled,
.is-disabled {
  cursor: not-allowed;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
.mode-tile:focus-within,
.swatch:focus-within,
.custom-bg:focus-within {
  outline: 2px solid rgba(143, 92, 255, .72);
  outline-offset: 3px;
}

.neon-shell,
.workspace,
.shell,
.admin-shell {
  flex: 1 0 auto;
  width: min(1580px, calc(100% - (var(--page-gutter) * 2)));
  margin: 0 auto;
}

.neon-hero {
  padding: clamp(18px, 2.5vw, 30px) 0 var(--home-gap-sm);
  text-align: center;
}

.neon-hero p {
  max-width: 740px;
  margin: 0 auto;
  color: #c8c2dc;
  font-size: 18px;
}

.hero-commerce {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hero-commerce span {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  border: 1px solid rgba(143, 92, 255, .28);
  border-radius: 999px;
  background: rgba(143, 92, 255, .10);
  color: #ede8ff;
  font-size: 13px;
  font-weight: 900;
  padding: 0 13px;
}

.hero-pill,
.badge,
.eyebrow,
.section-kicker {
  display: inline-grid;
  place-items: center;
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  margin-bottom: 10px;
  border: 0;
  border-radius: 10px;
  background: rgb(102 53 239);
  color: #e7e7e7;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 0 18px;
}

.neon-workflow {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(390px, 1.05fr) minmax(360px, 1fr);
  justify-content: stretch;
  gap: clamp(10px, 1vw, 16px);
  align-items: stretch;
  padding: 0;
}

.workflow-step {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: var(--step-h) minmax(var(--card-h), auto);
  gap: 10px;
  min-width: 0;
}

.step-title {
  min-height: var(--step-h);
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

.step-title strong {
  color: var(--purple);
  font-size: 18px;
  text-shadow: 0 0 24px rgba(143, 92, 255, .45);
}

.step-title span {
  color: var(--muted);
  font-size: 14px;
}

.glass-card,
.docs-hero,
.docs-panel,
.doc-card,
.plan,
.api-box,
.table-card {
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)),
    rgba(9, 12, 25, .78);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(18px);
}

.ai-doc-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 22px;
  align-items: stretch;
  border-color: rgba(143, 92, 255, .30);
  background:
    radial-gradient(circle at 92% 8%, rgba(97, 243, 179, .16), transparent 32%),
    radial-gradient(circle at 0 0, rgba(143, 92, 255, .24), transparent 40%),
    rgba(9, 12, 25, .78);
  padding: 26px;
}

.ai-doc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.10), transparent 34%, rgba(143, 92, 255, .08));
  opacity: .78;
}

.ai-doc-card__content,
.ai-doc-card__aside {
  position: relative;
  z-index: 1;
}

.ai-doc-card h2 {
  max-width: 780px;
  margin-bottom: 10px;
  font-size: clamp(28px, 3vw, 40px);
}

.ai-doc-card p {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 16px;
}

.ai-doc-card__chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.ai-doc-card__chips span {
  display: inline-grid;
  place-items: center;
  min-height: 32px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  color: #ded4ff;
  font-size: 12px;
  font-weight: 900;
  padding: 0 12px;
}

.ai-doc-card__aside {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background:
    radial-gradient(circle at 20% 0, rgba(97, 243, 179, .14), transparent 44%),
    rgba(255,255,255,.045);
  padding: 18px;
}

.ai-doc-card__aside i {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #7c43ff, #4d24dc);
  color: #fff;
  font-style: normal;
  font-weight: 950;
  box-shadow: 0 16px 34px rgba(91, 45, 245, .32);
}

.ai-doc-card__aside strong {
  color: #fff;
  font-size: 17px;
  word-break: break-word;
}

.ai-doc-card__aside small {
  color: var(--muted);
  line-height: 1.45;
}

.ai-doc-card__aside a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c43ff, #4d24dc);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 18px 38px rgba(91, 45, 245, .28);
}

.ai-doc-card__aside a:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.upload-card,
.params-card,
.result-card {
  display: grid;
  gap: 12px;
  min-height: var(--card-h);
  height: auto;
  padding: 14px;
}

.upload-card {
  grid-template-rows: var(--media-h) 74px 1fr;
}

.params-card {
  grid-template-rows: auto auto auto auto auto auto;
  align-content: start;
  gap: 10px;
}

.result-card {
  grid-template-rows: var(--media-h) minmax(118px, auto) auto;
  gap: 8px;
}

.result-actions-compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  align-items: start;
  grid-auto-rows: min-content;
  row-gap: 5px;
  column-gap: 5px;
}

.result-inline-classification {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  border: 1px solid rgba(143, 92, 255, .22);
  border-radius: 12px;
  background:
    radial-gradient(circle at 10% 0, rgba(143, 92, 255, .13), transparent 42%),
    rgba(255,255,255,.035);
  padding: 10px;
}

.result-inline-classification.is-empty {
  align-content: center;
  justify-items: center;
  color: var(--muted);
  text-align: center;
}

.result-inline-classification.is-empty strong {
  margin-bottom: 2px;
}

.result-inline-classification__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.result-inline-classification__head strong,
.result-inline-classification > strong {
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.result-inline-classification__head span,
.result-inline-classification > span {
  display: inline-flex;
  align-items: center;
  justify-content: start;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

.result-inline-classification__head span {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  min-height: 22px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  padding: 0 7px;
}

.result-inline-classification__head i {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.result-inline-classification__head b {
  overflow: hidden;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-inline-classification__head em {
  color: #adffcf;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
}

.result-inline-classification__group {
  display: grid;
  gap: 6px;
  padding-top: 1px;
}

.result-inline-classification__group small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.result-inline-classification__group span {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.result-inline-classification__group--bg span {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.result-inline-classification__group b {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-height: 22px;
  min-width: 0;
  border: 1px solid rgba(143, 92, 255, .22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018)),
    rgba(143, 92, 255, .08);
  color: #f0ebff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  padding: 0 7px;
  white-space: nowrap;
}

.result-inline-classification__group b {
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-inline-classification__group em {
  flex: 0 0 auto;
  color: #adffcf;
  font-size: 9px;
  font-style: normal;
}

.upload-zone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  height: var(--media-h);
  overflow: hidden;
  border: 2px dashed rgba(143, 92, 255, .78);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(3,5,13,.22), rgba(3,5,13,.70)),
    radial-gradient(circle at center, rgba(143, 92, 255, .28), transparent 34%),
    #101421;
  cursor: pointer;
}

.upload-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.54)),
    linear-gradient(135deg, #314057, #0d101b);
  opacity: .72;
}

.upload-zone input,
.mode-tile input,
.swatch input,
.custom-bg input {
  display: none;
}

.upload-zone:hover,
.upload-zone.is-active,
.upload-zone.has-file {
  box-shadow: 0 0 0 4px rgba(143, 92, 255, .10), 0 0 46px rgba(143, 92, 255, .25);
}

.upload-zone img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #070914;
  cursor: zoom-in;
}

.upload-zone.has-preview img {
  display: block;
}

.upload-zone.has-preview::before,
.upload-zone.has-preview .upload-overlay {
  display: none;
}

.upload-overlay {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(300px, calc(100% - 32px));
  align-self: center;
  padding: 18px 16px;
  border: 1px solid rgba(143, 92, 255, .22);
  border-radius: 14px;
  background: rgba(8, 9, 20, .62);
  backdrop-filter: blur(10px);
  text-align: center;
}

.upload-overlay i {
  position: relative;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: 6px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(143, 92, 255, .62), rgba(50, 21, 116, .76));
  box-shadow: 0 0 42px rgba(143, 92, 255, .52);
}

.upload-overlay i::before {
  content: "";
  width: 34px;
  height: 22px;
  border: 2px solid #fff;
  border-top-width: 3px;
  border-radius: 16px 16px 10px 10px;
}

.upload-overlay i::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-left: 2px solid #fff;
  border-top: 2px solid #fff;
  transform: translateY(-4px) rotate(45deg);
}

.upload-overlay b {
  font-size: 18px;
}

.upload-overlay small,
.custom-bg small,
.mode-tile small,
.file-note small,
.benefit-bar small,
.page-grid span {
  color: var(--muted);
}

.file-note {
  gap: 12px;
  border: 1px solid var(--stroke-2);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  padding: 12px;
}

.compact-url {
  align-self: end;
}

.file-note > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--purple);
  border-radius: 999px;
}

.file-note > span::before {
  content: "";
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--purple);
  border-bottom: 2px solid var(--purple);
  transform: rotate(-45deg) translate(1px, -1px);
}

.file-note p {
  display: grid;
  gap: 3px;
  margin: 0;
}

.clear-file-button {
  min-height: 38px;
  border-color: rgba(255, 93, 125, .28);
  background: rgba(255, 93, 125, .08);
  color: #ffd7df;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.clear-file-button:hover {
  border-color: rgba(255, 93, 125, .58);
  background: rgba(255, 93, 125, .14);
}

.clear-file-button.is-hidden {
  display: none;
}

.upload-zone.is-invalid,
.custom-bg.is-invalid,
.field input.is-invalid {
  border-color: rgba(255, 93, 125, .9);
  box-shadow: 0 0 0 4px rgba(255, 93, 125, .16), 0 0 34px rgba(255, 93, 125, .20);
}

.field,
.settings-box {
  display: grid;
  gap: 8px;
  align-self: end;
}

.quota-card {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(143, 92, 255, .34);
  border-radius: 10px;
  background:
    radial-gradient(circle at 16% 20%, rgba(143, 92, 255, .24), transparent 46%),
    rgba(143, 92, 255, .08);
  padding: 8px 10px;
}

.quota-card.is-low {
  border-color: rgba(255, 196, 87, .55);
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 196, 87, .20), transparent 46%),
    rgba(255, 196, 87, .07);
}

.quota-card.is-empty {
  border-color: rgba(255, 93, 125, .46);
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 93, 125, .18), transparent 46%),
    rgba(255, 93, 125, .08);
}

.quota-card strong {
  color: #fff;
  font-size: 16px;
}

.quota-card small {
  color: var(--muted);
  line-height: 1.25;
}

.quota-card a {
  width: fit-content;
  color: #d8ccff;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.field span,
.field-label {
  color: #f1edff;
  font-size: 13px;
  font-weight: 800;
}

input:not(.ck-input):not([type="hidden"]),
select,
textarea:not([data-ckeditor]),
button:not(.ck):not(.ck-button) {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--stroke-2);
  border-radius: 10px;
  background: rgba(255,255,255,.055);
  color: var(--text);
  font: inherit;
  padding: 0 12px;
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #cbbcff 50%),
    linear-gradient(135deg, #cbbcff 50%, transparent 50%);
  background-position:
    calc(100% - 23px) 50%,
    calc(100% - 17px) 50%;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
  padding-right: 46px;
}

button:not(:disabled),
[role="button"],
summary,
label[for],
input[type="file"] {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.5;
  padding: 12px;
}

textarea:not([data-ckeditor]) {
  box-sizing: border-box;
  line-height: 1.55;
  padding-top: 12px;
  padding-bottom: 12px;
}

.field input {
  min-width: 0;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(143, 92, 255, .78);
  outline: none;
  box-shadow: 0 0 0 4px rgba(143, 92, 255, .12);
}

input::placeholder,
textarea::placeholder {
  color: #6f6983;
}

select option {
  background: #0d1020;
}

.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-self: stretch;
}

.mode-tile {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  gap: 6px;
  align-content: center;
  align-items: center;
  min-height: 78px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .028)),
    rgba(12, 14, 28, .82);
  cursor: pointer;
  padding: 11px;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.mode-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at 18% 12%, rgba(143, 92, 255, .34), transparent 42%);
  transition: opacity .18s ease;
}

.mode-tile b,
.mode-tile small {
  position: relative;
  z-index: 1;
  grid-column: auto;
}

.mode-tile b {
  align-self: end;
  font-size: 14px;
  line-height: 1.2;
}

.mode-tile small {
  align-self: start;
  line-height: 1.25;
  font-size: 11px;
}

.mode-tile small:empty {
  display: none;
}

.mode-tile:hover,
.mode-tile.is-selected,
.swatch:hover,
.swatch.is-selected,
.custom-bg:hover,
.custom-bg.has-file {
  border-color: rgba(143, 92, 255, .88);
  background: linear-gradient(180deg, rgba(143, 92, 255, .16), rgba(143, 92, 255, .07));
  box-shadow: 0 0 0 3px rgba(143, 92, 255, .10), 0 14px 34px rgba(62, 31, 148, .20);
  transform: translateY(-1px);
}

.mode-tile:hover::before,
.mode-tile.is-selected::before {
  opacity: 1;
}

.plate-color-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: 4px 10px;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
  padding: 9px 10px;
}

.plate-color-control span {
  color: #f4efff;
  font-size: 12px;
  font-weight: 800;
}

.plate-color-control small {
  grid-column: 1 / 2;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.plate-color-control input[type="color"] {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 44px;
  height: 38px;
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.plate-color-control input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.plate-color-control input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 10px;
}

.background-panel {
  display: grid;
  gap: 7px;
  align-self: start;
}

.background-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.swatch {
  display: grid;
  align-items: end;
  min-height: 46px;
  border: 1px solid var(--stroke-2);
  border-radius: 9px;
  background: linear-gradient(135deg, var(--a), var(--b));
  cursor: pointer;
  padding: 6px;
}

.swatch span {
  width: fit-content;
  border-radius: 999px;
  background: rgba(3,5,13,.72);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 6px;
}

.custom-bg {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 4px 10px;
  align-items: center;
  border: 1px dashed var(--stroke);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  cursor: pointer;
  padding: 7px;
}

.custom-bg > span {
  grid-row: 1 / span 2;
  width: 58px;
  height: 42px;
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(143, 92, 255, .20), rgba(94, 125, 255, .18)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.08), rgba(255,255,255,.08) 8px, transparent 8px, transparent 16px);
  background-size: cover;
  background-position: center;
}

.custom-bg b {
  align-self: end;
}

.custom-bg small {
  align-self: start;
}

.apply-button,
.download-button,
.copy-button,
.mask-button,
.ghost-button {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  overflow: hidden;
  border-radius: 12px;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.apply-button > *,
.download-button > *,
.copy-button > *,
.mask-button > *,
.ghost-button > * {
  position: relative;
  z-index: 1;
}

.apply-button::before,
.download-button::before,
.copy-button::before,
.mask-button::before,
.ghost-button::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  z-index: 0;
  height: 45%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0));
  pointer-events: none;
}

.apply-button::before,
.download-button::before {
  display: none;
}

.apply-button {
  align-self: start;
}

.apply-button,
.download-button {
  border: 0;
  background-color: #5b5cff;
  background-image: linear-gradient(135deg, #5b5cff 0%, #4a3df0 48%, #3624c8 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: none;
}

.apply-button:not(:disabled):not(.is-disabled):hover,
.download-button:not(:disabled):not(.is-disabled):hover {
  transform: translateY(-1px);
  background-color: #7071ff;
  background-image: linear-gradient(135deg, #7071ff 0%, #5b5cff 50%, #4432d8 100%);
  color: #fff;
  box-shadow: none;
}

.apply-button:not(:disabled):not(.is-disabled):active,
.download-button:not(:disabled):not(.is-disabled):active,
.copy-button:not(:disabled):not(.is-disabled):active,
.mask-button:not(:disabled):not(.is-disabled):active,
.ghost-button:not(:disabled):not(.is-disabled):active {
  transform: translateY(0);
}

.apply-button.is-loading {
  position: relative;
  overflow: hidden;
}

.apply-button.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .22), transparent);
  animation: shimmer 1.15s linear infinite;
}

@keyframes shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.download-button.is-disabled {
  pointer-events: none;
  opacity: .58;
}

.download-button,
.copy-button,
.mask-button,
.ghost-button {
  align-self: end;
}

.copy-button {
  border: 1px solid rgba(124, 67, 255, .55);
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
    rgba(124, 67, 255, .14);
  color: #f2edff;
  cursor: pointer;
  box-shadow: none;
}

.copy-button:not(.is-disabled):hover {
  transform: translateY(-1px);
  border-color: rgba(143, 92, 255, .88);
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.018)),
    rgba(124, 67, 255, .24);
  color: #fff;
  box-shadow: none;
}

.copy-button.is-disabled {
  opacity: .52;
}

.mask-button {
  border: 1px solid rgba(97, 243, 179, .26);
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012)),
    radial-gradient(circle at 12% 20%, rgba(97, 243, 179, .12), transparent 42%),
    rgba(97, 243, 179, .055);
  color: #dfffee;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(20, 120, 84, .10);
}

.mask-button:not(.is-disabled):hover {
  transform: translateY(-1px);
  border-color: rgba(97, 243, 179, .58);
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.018)),
    radial-gradient(circle at 12% 20%, rgba(97, 243, 179, .18), transparent 42%),
    rgba(97, 243, 179, .10);
  color: #fff;
  box-shadow: 0 12px 30px rgba(97, 243, 179, .14);
}

.mask-button.is-disabled {
  opacity: .52;
}

.ghost-button {
  border: 1px solid rgba(124, 67, 255, .46);
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)),
    rgba(124, 67, 255, .12);
  color: #f2edff;
  cursor: pointer;
  box-shadow: none;
}

.ghost-button:not(:disabled):not(.is-disabled):hover {
  transform: translateY(-1px);
  border-color: rgba(143, 92, 255, .82);
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.018)),
    rgba(124, 67, 255, .22);
  color: #fff;
  box-shadow: none;
}

.apply-button:focus-visible,
.download-button:focus-visible,
.copy-button:focus-visible,
.mask-button:focus-visible,
.ghost-button:focus-visible {
  outline: 0;
  box-shadow:
    0 0 0 3px rgba(216, 204, 255, .18),
    0 0 0 6px rgba(23, 139, 255, .24);
}

.apply-button:disabled,
.download-button.is-disabled,
.copy-button:disabled,
.copy-button.is-disabled,
.mask-button:disabled,
.mask-button.is-disabled,
.ghost-button:disabled,
.ghost-button.is-disabled {
  cursor: not-allowed;
  transform: none;
}

.process-submit-button {
  width: 100%;
  min-height: 48px;
  border: 0;
  background-color: #5b5cff;
  background-image: linear-gradient(135deg, #5b5cff 0%, #4a3df0 48%, #3624c8 100%);
  color: #fff;
  box-shadow: none;
}

.process-submit-button::before {
  display: none;
}

.process-submit-button span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 16px;
  line-height: 1;
}

.process-submit-button:not(:disabled):not(.is-disabled):hover {
  background-color: #7071ff;
  background-image: linear-gradient(135deg, #7071ff 0%, #5b5cff 50%, #4432d8 100%);
  box-shadow: none;
}

.result-actions-compact .download-button,
.result-actions-compact .copy-button,
.result-actions-compact .mask-button,
.result-actions-compact .ghost-button {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-self: stretch;
  align-items: center;
  justify-content: stretch;
  gap: 6px;
  width: 100%;
  height: 32px;
  min-height: 30px;
  max-height: 32px;
  border-radius: 9px;
  font-size: 11px;
  line-height: 1.1;
  padding: 0 8px 0 4px;
  box-shadow: none;
}

.home-page .result-actions-compact :is(.download-button, .copy-button, .mask-button, .ghost-button) {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  align-self: stretch;
  width: 100%;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  padding: 0 8px 0 4px;
  line-height: 1.1;
}

.result-actions-compact .download-button:not(.is-disabled):hover,
.result-actions-compact .copy-button:not(:disabled):not(.is-disabled):hover,
.result-actions-compact .mask-button:not(:disabled):not(.is-disabled):hover,
.result-actions-compact .ghost-button:not(:disabled):not(.is-disabled):hover {
  transform: translateY(-1px);
  box-shadow: none;
}

.result-actions-compact .download-button span,
.result-actions-compact .copy-button span,
.result-actions-compact .mask-button span,
.result-actions-compact .ghost-button span {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 7px;
  background: rgba(255,255,255,.08);
  color: currentColor;
  font-size: 11px;
}

.result-actions-compact .download-button i,
.result-actions-compact .copy-button i,
.result-actions-compact .mask-button i,
.result-actions-compact .ghost-button i {
  line-height: 1;
}

.result-actions-compact .download-button b,
.result-actions-compact .copy-button b,
.result-actions-compact .mask-button b,
.result-actions-compact .ghost-button b {
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.1;
}

.result-actions-compact .download-button {
  background-color: #5b5cff;
  background-image: linear-gradient(135deg, #5b5cff 0%, #4a3df0 48%, #3624c8 100%);
}

.result-actions-compact .copy-button,
.result-actions-compact .mask-button,
.result-actions-compact .ghost-button {
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012)),
    rgba(124, 67, 255, .12);
}

.home-page .apply-button.process-submit-button,
.home-page .result-actions-compact .download-button:not(.is-disabled) {
  border: 0;
  background-color: #5b5cff;
  background-image: linear-gradient(135deg, #5b5cff 0%, #4a3df0 48%, #3624c8 100%);
  color: #fff;
  box-shadow: none;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    width: fit-content;
    max-width: 100%;
    min-height: 30px;
  border: 1px solid rgba(143, 92, 255, .28);
  border-radius: 999px;
  background: rgba(143, 92, 255, .10);
  color: #d7c8ff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
    padding: 0 12px;
  }

  .status-chip.is-message {
    justify-content: flex-start;
    min-height: 34px;
    line-height: 1.35;
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
    white-space: normal;
    padding: 7px 12px;
  }

.status-chip.live {
  border-color: rgba(94, 125, 255, .48);
  color: #dfe5ff;
  box-shadow: 0 0 28px rgba(94, 125, 255, .18);
}

.status-chip.success {
  border-color: rgba(97, 243, 179, .42);
  color: #bbffe4;
  background: rgba(97, 243, 179, .08);
}

.status-chip.danger {
  border-color: rgba(255, 93, 125, .42);
  color: #ffd7df;
  background: rgba(255, 93, 125, .10);
}

.ai-node {
  position: absolute;
  left: 50%;
  top: calc(var(--step-h) + 210px);
  z-index: 0;
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border: 1px solid rgba(143, 92, 255, .55);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(143, 92, 255, .36), rgba(35, 14, 87, .84) 62%, rgba(9, 12, 25, .92));
  box-shadow: 0 0 44px rgba(143, 92, 255, .55), inset 0 0 24px rgba(143, 92, 255, .32);
  transform: translateX(-50%);
  pointer-events: none;
}

.ai-node::before,
.ai-node::after {
  content: "";
  position: absolute;
  top: 50%;
  width: clamp(56px, 6vw, 96px);
  height: 92px;
  border-top: 1px solid rgba(143, 92, 255, .46);
  border-bottom: 1px solid rgba(94, 125, 255, .18);
  filter: drop-shadow(0 0 10px rgba(143, 92, 255, .34));
  opacity: .72;
}

.ai-node::before {
  right: 88px;
  border-left: 1px solid rgba(143, 92, 255, .20);
  border-radius: 60px 0 0 60px;
}

.ai-node::after {
  left: 88px;
  border-right: 1px solid rgba(143, 92, 255, .20);
  border-radius: 0 60px 60px 0;
}

.ai-node span {
  font-size: 26px;
  font-weight: 950;
}

.ai-node small {
  color: #fff;
}

.result-frame {
  display: grid;
  place-items: center;
  min-height: 0;
  height: var(--media-h);
  overflow: hidden;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 20%, rgba(143, 92, 255, .18), transparent 34%),
    linear-gradient(135deg, #1d2435, #080a12);
}

.single-preview,
.compare-view,
.result-frame img {
  display: block;
  width: 100%;
  height: 100%;
}

.single-preview {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: zoom-in;
  padding: 0;
}

.single-preview span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(3, 5, 13, .78);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 12px;
  backdrop-filter: blur(12px);
}

.compare-view {
  --pos: 50%;
  position: relative;
  overflow: hidden;
  border-radius: inherit;
  background: #070914;
}

.compare-img {
  position: absolute;
  inset: 0;
  object-fit: contain;
  background: #070914;
}

.compare-before {
  z-index: 1;
}

.compare-after {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.compare-after::after {
  content: "";
  position: absolute;
  top: 0;
  left: var(--pos);
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, #fff, transparent);
  box-shadow: 0 0 22px rgba(143, 92, 255, .9);
  transform: translateX(-1px);
}

.compare-label,
.preview-open {
  position: absolute;
  z-index: 4;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(3, 5, 13, .74);
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  backdrop-filter: blur(12px);
}

.compare-label {
  top: 12px;
  padding: 6px 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.compare-label--before {
  left: 12px;
}

.compare-label--after {
  right: 12px;
}

.preview-open {
  width: auto;
  min-height: 32px;
  bottom: 12px;
  cursor: zoom-in;
  padding: 0 11px;
}

.preview-open--before {
  left: 12px;
}

.preview-open--after {
  right: 12px;
}

.compare-slider {
  position: absolute;
  z-index: 5;
  left: 12px;
  right: 12px;
  bottom: 54px;
  width: calc(100% - 24px);
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: ew-resize;
  appearance: none;
  -webkit-appearance: none;
}

.compare-slider:focus {
  box-shadow: none;
}

.compare-slider::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .28);
}

.compare-slider::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -9px;
  border: 2px solid #fff;
  border-radius: 999px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(135deg, #8f5cff, #5e7dff);
  box-shadow: 0 0 24px rgba(143, 92, 255, .8);
}

.compare-slider::-moz-range-track {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .28);
}

.compare-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, #8f5cff, #5e7dff);
  box-shadow: 0 0 24px rgba(143, 92, 255, .8);
}

.result-frame img {
  max-height: var(--media-h);
  object-fit: contain;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: none;
  place-items: center;
  background:
    radial-gradient(circle at 50% 10%, rgba(143, 92, 255, .18), transparent 34%),
    rgba(1, 2, 8, .88);
  padding: 28px;
  backdrop-filter: blur(18px);
}

.image-modal.is-open {
  display: grid;
}

.image-modal__frame {
  display: grid;
  gap: 12px;
  max-width: min(1280px, 96vw);
  max-height: 92vh;
  margin: 0;
}

.image-modal__frame img {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 48px);
  border: 1px solid rgba(143, 92, 255, .24);
  border-radius: 14px;
  background: #050711;
  box-shadow: 0 30px 120px rgba(0, 0, 0, .72), 0 0 54px rgba(143, 92, 255, .18);
  object-fit: contain;
}

.image-modal__frame figcaption {
  color: #ded7f7;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.image-modal__close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 141;
  width: 42px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(9, 12, 25, .8);
  color: #fff;
  font-size: 0;
  cursor: pointer;
  padding: 0;
}

.image-modal__close::before,
.image-modal__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transform: translate(-50%, -50%) rotate(45deg);
}

.image-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.image-modal__close:hover {
  border-color: rgba(255,255,255,.34);
  background: rgba(143, 92, 255, .26);
}

.result-placeholder {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
  padding: 24px;
}

.result-placeholder::before {
  content: "";
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: radial-gradient(circle, rgba(143, 92, 255, .46), rgba(65, 31, 154, .32));
  box-shadow: 0 0 44px rgba(143, 92, 255, .32);
}

.result-placeholder b {
  color: #fff;
}

.result-meta {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.result-meta div {
  display: grid;
  gap: 4px;
  min-height: 56px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: rgba(9, 12, 25, .62);
  padding: 10px 12px;
}

.result-meta .result-action-card {
  gap: 6px;
}

.result-meta span,
.result-meta a,
.result-meta button,
.result-meta em {
  color: var(--muted);
  font-size: 13px;
}

.result-meta a,
.result-meta button {
  width: fit-content;
  min-height: 26px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(143, 92, 255, .24);
  border-radius: 999px;
  background: rgba(143, 92, 255, .08);
  color: #d7c8ff;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  padding: 0 9px;
}

.result-meta button {
  cursor: pointer;
}

.result-meta em {
  display: block;
  font-style: normal;
  line-height: 1.35;
}

.result-meta .mask-ready {
  border-color: rgba(97, 243, 179, .26);
  background:
    radial-gradient(circle at 12% 20%, rgba(97, 243, 179, .10), transparent 46%),
    rgba(9, 12, 25, .62);
}

.result-meta .mask-ready strong {
  color: #c6ffe8;
}

.result-meta .mask-ready button {
  display: none;
}

.result-meta .mask-empty {
  opacity: .75;
}

.result-meta .result-classification-card {
  grid-column: span 2;
  border-color: rgba(143, 92, 255, .28);
  background:
    radial-gradient(circle at 12% 16%, rgba(143, 92, 255, .14), transparent 46%),
    rgba(9, 12, 25, .68);
}

.result-meta .result-classification-card > span {
  display: grid;
  gap: 8px;
}

.result-meta .result-classification-card b {
  color: #fff;
  font-weight: 900;
}

.result-classification-chips {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.result-classification-chips div {
  min-height: 0;
  border: 0;
  background: transparent;
  padding: 0;
}

.result-classification-chips small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.result-classification-chips span {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.result-classification-chips b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 25px;
  border: 1px solid rgba(143, 92, 255, .22);
  border-radius: 999px;
  background: rgba(143, 92, 255, .08);
  color: #efe9ff;
  font-size: 11px;
  line-height: 1.1;
  padding: 0 9px;
}

.result-classification-chips em {
  color: #adffcf;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
}

.benefit-bar {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: var(--home-gap) auto 0;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  box-shadow: var(--shadow);
}

.benefit-bar article {
  gap: 12px;
  min-height: 74px;
  background: rgba(9, 12, 25, .72);
  padding: 14px;
}

.benefit-bar article div {
  min-width: 0;
}

.benefit-bar article > span {
  color: var(--purple);
  font-size: 28px;
}

.benefit-bar strong {
  display: block;
  margin-bottom: 4px;
}

.extra-pages {
  padding: 0;
}

.launch-stack {
  position: relative;
  overflow: hidden;
  margin-top: var(--home-gap);
  border: 1px solid rgba(143, 92, 255, .22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 0, rgba(143, 92, 255, .18), transparent 34%),
    radial-gradient(circle at 92% 22%, rgba(97, 243, 179, .10), transparent 32%),
    rgba(7, 10, 22, .58);
  padding: 28px;
}

.launch-stack::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.08), transparent 28%, rgba(143,92,255,.08));
  opacity: .72;
}

.launch-stack .section-head,
.launch-stack .page-grid {
  position: relative;
  z-index: 1;
}

.launch-stack .section-head {
  max-width: 860px;
  margin-bottom: 24px;
}

.launch-stack .section-head p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.landing-section {
  margin-top: var(--home-gap);
}

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

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

.landing-grid--secondary {
  margin-top: 14px;
}

.landing-grid article,
.landing-grid a,
.economy-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background:
    radial-gradient(circle at 12% 16%, rgba(143, 92, 255, .14), transparent 42%),
    rgba(9, 12, 25, .70);
  padding: 16px;
}

.landing-grid a {
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.landing-grid a:hover {
  transform: translateY(-2px);
  border-color: rgba(143, 92, 255, .52);
  background:
    radial-gradient(circle at 12% 16%, rgba(143, 92, 255, .20), transparent 42%),
    rgba(12, 16, 32, .78);
}

.other-projects-section {
  display: grid;
  gap: 18px;
}

.other-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.other-project-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 174px;
  overflow: hidden;
  border: 1px solid rgba(143, 92, 255, .18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 15% 15%, rgba(143, 92, 255, .18), transparent 42%),
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
    rgba(9, 12, 25, .72);
  color: inherit;
  text-decoration: none;
  padding: 20px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.other-project-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -50px auto;
  width: 132px;
  height: 132px;
  border-radius: 999px;
  background: rgba(97, 243, 179, .10);
  filter: blur(20px);
  pointer-events: none;
}

.other-project-card > span {
  display: inline-grid;
  place-items: center;
  width: fit-content;
  min-height: 28px;
  border: 1px solid rgba(143, 92, 255, .28);
  border-radius: 999px;
  background: rgba(143, 92, 255, .12);
  color: #cdbdff;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
  padding: 0 10px;
}

.other-project-card strong {
  max-width: calc(100% - 42px);
  color: #fff;
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.12;
}

.other-project-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.other-project-card i {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  background: rgba(255,255,255,.045);
  color: #fff;
  font-size: 13px;
}

.other-project-card:hover {
  transform: translateY(-2px);
  border-color: rgba(143, 92, 255, .55);
  background:
    radial-gradient(circle at 15% 15%, rgba(143, 92, 255, .25), transparent 42%),
    linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.024)),
    rgba(11, 15, 31, .82);
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
}

.landing-grid strong {
  color: #fff;
  font-size: 16px;
}

.landing-grid span,
.landing-economy p,
.economy-card span {
  color: var(--muted);
  line-height: 1.55;
}

.before-after-gallery {
  display: grid;
  gap: 18px;
}

.before-after-gallery .section-head p {
  max-width: 780px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.before-after-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.before-after-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(143, 92, 255, .18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 0, rgba(143, 92, 255, .16), transparent 34%),
    rgba(9, 12, 25, .74);
  padding: 14px;
}

.before-after-preview {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 178px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: #070a16;
}

.before-after-side {
  position: relative;
  display: grid;
  align-items: end;
  min-width: 0;
  padding: 12px;
}

.before-after-side::before {
  content: "";
  position: absolute;
  inset: 16px 12px 42px;
  border-radius: 46% 42% 28% 30% / 34% 36% 24% 24%;
  background:
    linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.04)),
    linear-gradient(90deg, rgba(20, 25, 38, .82), rgba(120, 126, 145, .92));
  box-shadow:
    0 22px 40px rgba(0,0,0,.34),
    inset 0 -16px 28px rgba(0,0,0,.24);
}

.before-after-side::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 18%;
  bottom: 48px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  box-shadow: 0 0 0 2px rgba(0,0,0,.16);
}

.before-after-side b {
  position: relative;
  z-index: 1;
  width: fit-content;
  border-radius: 999px;
  background: rgba(0,0,0,.42);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 9px;
}

.before-after-side.has-image {
  align-items: end;
  padding: 0;
  background: #070a16;
}

.before-after-side.has-image::before,
.before-after-side.has-image::after {
  display: none;
}

.before-after-side.has-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-after-side.has-image b {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  max-width: calc(100% - 20px);
}

.before-after-side--before {
  background:
    linear-gradient(180deg, rgba(42, 47, 58, .8), rgba(16, 18, 25, .92)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 8px, transparent 8px 16px);
}

.before-after-side--after {
  background:
    radial-gradient(circle at 50% 16%, rgba(255,255,255,.55), transparent 32%),
    linear-gradient(180deg, rgba(225, 239, 255, .22), rgba(132, 83, 255, .20)),
    rgba(9, 12, 25, .9);
}

.before-after-card--showroom .before-after-side--after {
  background:
    linear-gradient(180deg, rgba(255,255,255,.34), rgba(210, 225, 246, .18)),
    linear-gradient(90deg, rgba(255,255,255,.10), rgba(143, 92, 255, .16));
}

.before-after-card--api .before-after-side::before {
  inset: 34px 24px 58px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(143, 92, 255, .8), rgba(97, 243, 179, .42)),
    rgba(255,255,255,.12);
}

.before-after-card--api .before-after-side::after {
  left: 28%;
  right: 28%;
  bottom: 70px;
  height: 3px;
  background: rgba(255,255,255,.8);
}

.before-after-divider {
  position: absolute;
  inset: 0 auto 0 50%;
  width: 1px;
  background: rgba(255,255,255,.22);
  box-shadow: 0 0 0 1px rgba(143, 92, 255, .22), 0 0 30px rgba(143, 92, 255, .45);
}

.before-after-card strong {
  display: block;
  color: #fff;
  font-size: 17px;
}

.before-after-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.landing-economy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(143, 92, 255, .22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 80% 20%, rgba(97, 243, 179, .10), transparent 38%),
    rgba(9, 12, 25, .62);
  padding: 20px;
}

.economy-card strong {
  color: #fff;
  font-size: 34px;
}

.landing-page-shell {
  gap: 20px;
}

.landing-hero {
  display: grid;
  gap: 12px;
  min-height: 0;
}

.landing-hero h1 {
  max-width: 980px;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.landing-actions .apply-button,
.landing-actions .ghost-button {
  width: auto;
  min-width: 190px;
  min-height: 48px;
  padding: 0 20px;
}

.landing-intro p {
  max-width: 980px;
  margin: 0;
  color: #d8d2e8;
  font-size: 16px;
  line-height: 1.7;
}

.landing-page-section {
  margin-top: 0;
}

.landing-steps {
  display: grid;
  gap: 18px;
}

.landing-steps .section-head,
.landing-page-section .section-head,
.landing-faq .section-head {
  margin-bottom: 0;
}

.landing-steps__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.landing-steps__grid article {
  display: grid;
  gap: 8px;
  min-height: 144px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    rgba(9, 12, 25, .72);
  padding: 16px;
}

.landing-steps__grid i {
  display: inline-grid;
  place-items: center;
  width: fit-content;
  min-width: 40px;
  height: 28px;
  border-radius: 999px;
  background: rgba(143, 92, 255, .14);
  color: #c9bbff;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: .08em;
}

.landing-steps__grid strong {
  color: #fff;
  font-size: 16px;
}

.landing-steps__grid span {
  color: var(--muted);
  line-height: 1.55;
}

.landing-next {
  margin-top: 0;
}

.landing-page .landing-faq {
  margin-top: 0;
}

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

.economy-card a {
  display: inline-grid;
  place-items: center;
  width: fit-content;
  min-height: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c43ff, #4d24dc);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  padding: 0 14px;
}

.faq-accordion {
  display: grid;
  gap: 10px;
}

.faq-accordion details {
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background:
    radial-gradient(circle at 0 0, rgba(143, 92, 255, .10), transparent 42%),
    rgba(9, 12, 25, .70);
}

.faq-accordion summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
  list-style: none;
  padding: 15px 54px 15px 16px;
}

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

.faq-accordion summary::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #bfa9ff;
  border-bottom: 2px solid #bfa9ff;
  transform: translateY(-65%) rotate(45deg);
  transition: transform .18s ease;
}

.faq-accordion details[open] summary::after {
  transform: translateY(-35%) rotate(225deg);
}

.faq-accordion p {
  margin: 0;
  border-top: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
  line-height: 1.65;
  padding: 14px 18px 18px;
}

.home-page .landing-faq {
  margin-top: var(--home-gap);
  padding: 0;
}

.home-page .landing-faq .section-head {
  margin-bottom: var(--home-gap-sm);
}

.home-page .landing-faq .faq-accordion {
  gap: 12px;
}

.feedback-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  align-items: stretch;
  gap: 18px;
  border: 1px solid rgba(143, 92, 255, .25);
  border-radius: 20px;
  background:
    radial-gradient(circle at 6% 10%, rgba(143, 92, 255, .18), transparent 34%),
    radial-gradient(circle at 100% 0, rgba(97, 243, 179, .10), transparent 32%),
    rgba(9, 12, 25, .78);
  padding: 22px;
}

.feedback-copy {
  display: grid;
  align-content: center;
  gap: 12px;
}

.feedback-copy h2 {
  max-width: 620px;
  color: #fff;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.02;
}

.feedback-copy p {
  max-width: 560px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.feedback-alert {
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  color: #fff;
  font-weight: 800;
  line-height: 1.45;
  padding: 12px 14px;
}

.feedback-alert.is-hidden {
  display: none;
}

.feedback-alert.is-success {
  border-color: rgba(97, 243, 179, .32);
  background: rgba(97, 243, 179, .11);
  color: #caffea;
}

.feedback-alert.is-error {
  border-color: rgba(255, 93, 125, .38);
  background: rgba(255, 93, 125, .11);
  color: #ffe2e8;
}

.feedback-form {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background: rgba(4, 6, 16, .48);
  box-shadow: var(--shadow);
  padding: 16px;
}

.feedback-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.feedback-form textarea {
  box-sizing: border-box;
  min-height: 132px;
  line-height: 1.55;
  padding: 13px 14px;
  resize: vertical;
}

.feedback-form .apply-button {
  width: fit-content;
  min-width: 220px;
  justify-self: end;
  padding: 0 22px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 22px;
}

.home-page .ad-slot {
  margin: var(--home-gap) 0 0;
}

.home-page .ad-slot + .landing-section {
  margin-top: var(--home-gap);
}

.home-page .section-head {
  margin-bottom: var(--home-gap-sm);
}

.page-grid,
.feature-grid,
.review-grid,
.docs-grid,
.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.page-grid a,
.feature-grid article,
.review-grid article {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
  min-height: 132px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(9, 12, 25, .72);
  text-decoration: none;
  padding: 18px;
}

.page-grid a span,
.feature-grid article p,
.review-grid article p {
  align-self: end;
}

.page-grid strong,
.feature-grid h3,
.review-grid strong {
  color: #fff;
}

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

.page-grid .launch-card {
  position: relative;
  overflow: hidden;
  min-height: 176px;
  border-color: rgba(143, 92, 255, .24);
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025)),
    rgba(9, 12, 25, .78);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.page-grid .launch-card::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -46px;
  width: 118px;
  height: 118px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(143, 92, 255, .24), transparent 68%);
}

.page-grid .launch-card:hover {
  transform: translateY(-3px);
  border-color: rgba(143, 92, 255, .54);
  background:
    linear-gradient(180deg, rgba(143, 92, 255, .12), rgba(255,255,255,.03)),
    rgba(9, 12, 25, .86);
}

.page-grid .launch-card i {
  display: inline-grid;
  place-items: center;
  width: fit-content;
  min-width: 38px;
  height: 28px;
  margin-bottom: 8px;
  border: 1px solid rgba(191, 169, 255, .28);
  border-radius: 999px;
  color: #c9bbff;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.page-grid .launch-card strong {
  font-size: 18px;
  line-height: 1.2;
}

.page-grid .launch-card span {
  position: relative;
  z-index: 1;
  align-self: end;
  line-height: 1.52;
}

.page-grid .launch-card.is-primary {
  border-color: rgba(97, 243, 179, .34);
  background:
    radial-gradient(circle at 18% 12%, rgba(97, 243, 179, .14), transparent 42%),
    linear-gradient(180deg, rgba(143, 92, 255, .10), rgba(255,255,255,.025)),
    rgba(9, 12, 25, .82);
}

.workspace,
.shell,
.admin-shell {
  padding: 38px 0 64px;
}

.docs-layout {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.docs-hero,
.docs-panel,
.doc-card,
.plan,
.api-box,
.table-card {
  max-width: 100%;
  min-width: 0;
  padding: 22px;
}

.docs-hero {
  position: relative;
  overflow: hidden;
}

.docs-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(143, 92, 255, .22), transparent 68%);
  pointer-events: none;
}

.docs-hero h1,
.page-head h1,
.admin-head h1 {
  max-width: 880px;
  margin-left: 0;
  text-align: left;
}

.docs-hero .lead,
.page-head .lead {
  max-width: 820px;
  color: #c8c2dc;
  font-size: 18px;
}

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

.doc-card {
  text-decoration: none;
  min-height: 190px;
}

.method {
  display: inline-grid;
  place-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  margin-bottom: 12px;
  border: 0;
  border-radius: 10px;
  background: rgba(102, 53, 239, .92);
  color: #f4f1ff;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
  padding: 0 13px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}

.method--ai {
  background: linear-gradient(135deg, rgba(102, 53, 239, .96), rgba(29, 185, 129, .74));
}

.method--flow,
.method--response {
  background: rgba(65, 91, 214, .76);
}

.method--bg {
  background: rgba(29, 154, 112, .70);
}

.method--example {
  background: rgba(170, 112, 28, .72);
}

.method--error {
  background: rgba(190, 54, 84, .72);
}

.api-docs-page .docs-layout {
  gap: 14px;
}

.api-docs-page .docs-hero,
.api-docs-page .docs-panel {
  padding: 18px;
}

.api-docs-page .docs-hero h1 {
  max-width: 760px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.05;
}

.api-docs-page .docs-hero .lead {
  max-width: 860px;
  font-size: 15px;
  line-height: 1.55;
}

.api-docs-page .api-docs-note {
  margin-top: 10px;
  color: #ded7f4;
  font-size: 13px;
}

.api-docs-page .docs-panel h2,
.api-docs-page .ai-doc-card h2 {
  margin: 0 0 10px;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.12;
}

.api-docs-page .docs-panel h3 {
  margin: 16px 0 8px;
  color: #fff;
  font-size: 15px;
  line-height: 1.25;
}

.api-docs-page .docs-panel p {
  font-size: 14px;
  line-height: 1.6;
}

.api-docs-page .method {
  min-height: 24px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 10px;
  padding: 0 11px;
}

.docs-page .docs-layout {
  gap: 14px;
}

.docs-page .docs-hero,
.docs-page .docs-panel,
.docs-page .doc-card {
  padding: 18px;
}

.docs-page .docs-hero h1 {
  max-width: 760px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.05;
}

.docs-page .docs-hero .lead {
  max-width: 860px;
  font-size: 15px;
  line-height: 1.55;
}

.docs-page .docs-panel h2,
.docs-page .doc-card h2 {
  margin: 0 0 10px;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.12;
}

.docs-page .docs-panel p,
.docs-page .doc-card p {
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .docs-page .docs-hero,
  .docs-page .docs-panel,
  .docs-page .doc-card {
    padding: 16px;
  }

  .docs-page .docs-hero h1 {
    font-size: clamp(24px, 8vw, 32px);
  }

  .docs-page .docs-panel h2,
  .docs-page .doc-card h2 {
    font-size: 19px;
  }
}

@media (max-width: 760px) {
  .api-docs-page .docs-hero,
  .api-docs-page .docs-panel {
    padding: 16px;
  }

  .api-docs-page .docs-hero h1 {
    font-size: clamp(24px, 8vw, 32px);
  }

  .api-docs-page .docs-panel h2,
  .api-docs-page .ai-doc-card h2 {
    font-size: 19px;
  }

  .api-docs-page .docs-panel h3 {
    font-size: 14px;
  }
}

.param-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: 12px;
}

.param-table div {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 16px;
  border-bottom: 1px solid var(--stroke);
  background: rgba(255,255,255,.025);
  padding: 14px 16px;
}

.param-table strong {
  color: #fff;
}

.param-table span {
  color: var(--muted);
  line-height: 1.55;
}

.param-table div:last-child {
  border-bottom: 0;
}

.page-head {
  max-width: 860px;
  margin-bottom: 24px;
}

.pricing-head {
  max-width: 980px;
}

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

.pricing-metrics article {
  display: grid;
  gap: 6px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(9, 12, 25, .66);
  padding: 14px;
}

.pricing-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.pricing-metrics strong {
  color: #fff;
  font-size: 24px;
}

.plan strong {
  display: block;
  color: #cbb8ff;
  font-size: 28px;
  margin: 10px 0;
}

.pricing-plans .plan {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 430px;
}

.pricing-plans .plan.is-featured {
  border-color: rgba(143, 92, 255, .72);
  box-shadow: 0 0 0 1px rgba(143, 92, 255, .25), 0 34px 120px rgba(86, 45, 220, .28);
}

.plan-count {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  border: 1px solid rgba(143, 92, 255, .30);
  border-radius: 8px;
  background: rgba(143, 92, 255, .09);
  color: #d8cbff;
  font-size: 12px;
  font-weight: 800;
  padding: 0 9px;
}

.pricing-plans .plan h2 {
  min-height: 28px;
  padding-right: 142px;
}

.plan-badge {
  width: fit-content;
  border: 1px solid rgba(143, 92, 255, .42);
  border-radius: 999px;
  background: rgba(143, 92, 255, .14);
  color: #d8ccff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 9px;
}

.pricing-plans ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-plans li {
  position: relative;
  color: var(--muted);
  padding-left: 22px;
}

.pricing-plans li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--purple);
  border-bottom: 2px solid var(--purple);
  transform: rotate(-45deg);
}

.pricing-plans .plan a {
  align-self: end;
  display: grid;
  place-items: center;
  min-height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c43ff, #4d24dc);
  color: #fff;
}

.monetization-box {
  margin-top: 18px;
}

.payment-panel .section-head {
  margin-bottom: 20px;
}

.pricing-plans + .payment-panel,
.pricing-plans + .ad-slot + .payment-panel {
  margin-top: 22px;
}

.payment-panel {
  margin-bottom: clamp(28px, 4vw, 48px);
}

.plan a,
td a {
  color: #d8ccff;
  font-weight: 900;
  text-decoration: none;
}

.register-layout {
  display: grid;
  gap: 18px;
}

.auth-layout {
  display: grid;
  gap: 22px;
}

.auth-page {
  background:
    radial-gradient(circle at 18% 18%, rgba(143, 92, 255, .20), transparent 28%),
    radial-gradient(circle at 86% 34%, rgba(94, 125, 255, .15), transparent 30%),
    linear-gradient(180deg, #040611 0%, #03050d 100%);
}

.auth-layout--center {
  width: min(1180px, calc(100% - (var(--page-gutter) * 2)));
  padding-top: 46px;
}

.auth-hero {
  max-width: 920px;
}

.auth-hero--center {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.auth-hero h1 {
  max-width: 920px;
  margin-left: 0;
  text-align: left;
}

.auth-hero--center h1 {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.auth-hero .lead {
  max-width: 780px;
  color: #c8c2dc;
}

.auth-hero--center .lead {
  margin-right: auto;
  margin-left: auto;
}

.auth-showcase {
  display: grid;
  grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(320px, 480px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.auth-card {
  position: relative;
  display: grid;
  gap: 14px;
  align-content: start;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)),
    rgba(9, 12, 25, .78);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.06);
  padding: 22px;
}

.auth-panel {
  overflow: hidden;
}

.auth-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 14% 0%, rgba(143, 92, 255, .20), transparent 34%);
  pointer-events: none;
}

.auth-card > * {
  position: relative;
  z-index: 1;
}

.auth-card-head {
  display: grid;
  gap: 6px;
}

.auth-card-head .eyebrow {
  margin-bottom: 2px;
}

.auth-card-head h2 {
  margin-bottom: 0;
}

.auth-card-head span,
.auth-switch span,
.auth-plan-chip span,
.auth-warning span,
.auth-timeline small {
  color: var(--muted);
}

.auth-card .apply-button {
  margin-top: 4px;
}

.auth-info {
  position: relative;
  overflow: hidden;
}

.auth-info::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(143, 92, 255, .24), transparent 68%);
  pointer-events: none;
}

.auth-points {
  display: grid;
  gap: 10px;
}

.auth-points span {
  position: relative;
  border: 1px solid var(--stroke-2);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  color: #e8e0ff;
  padding: 10px 12px 10px 34px;
}

.auth-points span::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
  transform: translateY(-60%) rotate(-45deg);
}

.auth-metrics,
.auth-timeline {
  display: grid;
  gap: 10px;
}

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

.auth-metrics div,
.auth-timeline div,
.auth-plan-chip,
.auth-warning,
.api-key-box {
  border: 1px solid rgba(143, 92, 255, .20);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
}

.auth-metrics div {
  display: grid;
  gap: 4px;
  min-height: 90px;
  align-content: center;
  padding: 12px;
}

.auth-metrics strong {
  color: #fff;
  font-size: 24px;
}

.auth-metrics span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.auth-timeline div {
  display: grid;
  grid-template-columns: 36px 110px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.auth-timeline strong {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8f5cff, #5b2df5);
  color: #fff;
}

.auth-timeline span {
  color: #fff;
  font-weight: 900;
}

.auth-plan-chip {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.auth-plan-chip strong {
  color: #fff;
}

.auth-switch {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--stroke-2);
  padding-top: 12px;
}

.auth-switch a {
  color: #d8ccff;
  font-weight: 900;
  text-decoration: none;
}

.api-key-box {
  overflow: hidden;
  padding: 8px;
}

.api-key-box code {
  display: block;
  overflow-x: auto;
  width: 100%;
  border-radius: 9px;
  padding: 14px;
}

.auth-warning {
  display: grid;
  gap: 4px;
  border-color: rgba(255, 196, 87, .34);
  background: rgba(255, 196, 87, .08);
  padding: 12px;
}

.auth-warning strong {
  color: #ffe3a5;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--stroke-2);
}

.support-panel {
  display: grid;
  gap: 14px;
  margin-top: 0;
}

.support-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.support-head-actions > span,
.support-head-actions a {
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  border: 1px solid rgba(143, 92, 255, .20);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  padding: 0 11px;
}

.support-head-actions a {
  background: rgba(143, 92, 255, .10);
  color: #ded4ff;
}

.support-head-actions a:hover {
  border-color: rgba(143, 92, 255, .50);
  color: #fff;
}

.support-head-actions a.is-loading {
  opacity: .72;
  pointer-events: none;
}

.support-create-form,
.support-admin-form {
  display: grid;
  grid-template-columns: minmax(220px, .6fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  border: 1px solid rgba(143, 92, 255, .18);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  padding: 14px;
}

.support-create-form .apply-button,
.support-admin-form .apply-button {
  min-width: 180px;
}

.support-message-field {
  display: grid;
  gap: 7px;
}

.support-thread-list,
.support-admin-list {
  display: grid;
  gap: 14px;
}

.support-inbox {
  display: grid;
  grid-template-columns: minmax(260px, .42fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.support-ticket-list {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 8px;
  max-height: min(680px, calc(100vh - 120px));
  overflow: auto;
  border: 1px solid rgba(143, 92, 255, .18);
  border-radius: 16px;
  background:
    radial-gradient(circle at 0 0, rgba(143, 92, 255, .12), transparent 42%),
    rgba(9, 12, 25, .58);
  padding: 10px;
}

.support-ticket-list__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.075);
  padding: 4px 4px 12px;
}

.support-ticket-list__head strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
}

.support-ticket-list__head strong::before {
  content: "\f086";
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: rgba(143, 92, 255, .14);
  color: #cbbcff;
  font-family: "Font Awesome 6 Free";
  font-size: 12px;
  font-weight: 900;
}

.support-ticket-list__head span {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  min-height: 28px;
  border-radius: 999px;
  background: rgba(143, 92, 255, .16);
  color: #ded4ff;
  font-size: 12px;
  font-weight: 900;
}

.support-ticket-tab {
  width: 100%;
  display: grid;
  justify-items: start;
  gap: 9px;
  min-height: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.022)),
    rgba(4, 7, 17, .42);
  color: var(--text);
  cursor: pointer;
  padding: 12px 12px 11px;
  text-align: left;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.support-ticket-tab::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: transparent;
}

.support-ticket-tab:hover,
.support-ticket-tab.is-active {
  border-color: rgba(143, 92, 255, .46);
  background:
    radial-gradient(circle at 0 0, rgba(143, 92, 255, .20), transparent 52%),
    linear-gradient(180deg, rgba(143, 92, 255, .10), rgba(255,255,255,.03)),
    rgba(8, 11, 24, .74);
}

.support-ticket-tab.is-active {
  box-shadow: 0 14px 34px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.055);
}

.support-ticket-tab.is-active::before {
  background: linear-gradient(180deg, #9a6bff, #61f3b3);
}

.support-ticket-tab strong {
  overflow: hidden;
  width: 100%;
  color: #fff;
  font-size: 14px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-ticket-tab small,
.support-empty-state span {
  color: var(--muted);
  font-size: 12px;
}

.support-empty-state {
  display: grid;
  gap: 6px;
  border: 1px dashed rgba(143, 92, 255, .24);
  border-radius: 13px;
  padding: 14px;
}

.support-empty-state strong {
  color: #fff;
}

.support-thread {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(143, 92, 255, .18);
  border-radius: 16px;
  background:
    radial-gradient(circle at 0 0, rgba(143, 92, 255, .10), transparent 40%),
    rgba(9, 12, 25, .66);
  padding: 16px;
}

.support-thread[hidden] {
  display: none;
}

.support-thread__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.support-thread__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.support-thread__actions form {
  width: auto;
}

.support-thread__actions button {
  width: auto;
  min-height: 32px;
  border-radius: 999px;
  background: rgba(143, 92, 255, .10);
  font-size: 12px;
  font-weight: 850;
  padding: 0 12px;
}

.support-thread__actions button.is-muted {
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--muted);
}

.support-ticket-tab.is-removing,
.support-thread.is-removing {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.support-thread__head h3 {
  margin: 8px 0 4px;
  color: #fff;
  font-size: 18px;
}

.support-thread__head small,
.support-message small,
.support-closed-note {
  color: var(--muted);
}

.support-messages {
  display: grid;
  gap: 10px;
}

.support-message {
  width: min(760px, 88%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  padding: 12px;
}

.support-message.is-admin {
  justify-self: end;
  border-color: rgba(97, 243, 179, .22);
  background: rgba(97, 243, 179, .08);
}

.support-message.is-user {
  justify-self: start;
  border-color: rgba(143, 92, 255, .24);
}

.support-message strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 13px;
}

.support-message p {
  margin: 0 0 8px;
  color: #e8e4f7;
  line-height: 1.55;
  white-space: pre-wrap;
}

.support-reply-form button,
.support-admin-form button {
  width: auto;
}

.credit-ledger-card {
  border-color: rgba(97, 243, 179, .16);
  background:
    radial-gradient(circle at 100% 0, rgba(97, 243, 179, .08), transparent 30%),
    rgba(9, 12, 25, .78);
}

.credit-ledger-list {
  display: grid;
  gap: 10px;
}

.credit-ledger-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 13px;
  background: rgba(255,255,255,.025);
  padding: 12px;
}

.credit-ledger-item strong {
  display: block;
  color: #fff;
  font-size: 14px;
}

.credit-ledger-item span,
.credit-ledger-item small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.credit-ledger-item__amount {
  min-width: 116px;
  text-align: right;
}

.credit-ledger-item__amount strong {
  font-size: 18px;
}

.credit-ledger-item.is-positive .credit-ledger-item__amount strong {
  color: #8affc9;
}

.credit-ledger-item.is-negative .credit-ledger-item__amount strong {
  color: #ff9fb0;
}

.copy-token-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  min-height: 38px;
  border-color: rgba(143, 92, 255, .34);
  background: rgba(143, 92, 255, .10);
  color: #fff;
  cursor: pointer;
  padding: 0;
}

.copy-token-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copy-token-button i {
  display: inline-grid;
  place-items: center;
  width: 1em;
  height: 1em;
  font-size: 14px;
  line-height: 1;
}

.copy-token-button:hover,
.copy-token-button.is-copied {
  border-color: rgba(97, 243, 179, .48);
  background: rgba(97, 243, 179, .12);
  color: #c6ffe8;
}

.copy-token-button .check-icon {
  display: none;
}

.copy-token-button.is-copied .copy-icon,
.copy-token-button.is-error .copy-icon {
  display: none;
}

.copy-token-button.is-copied .check-icon {
  display: block;
}

.copy-token-button.is-error {
  border-color: rgba(255, 93, 125, .48);
  background: rgba(255, 93, 125, .12);
  color: #ffd7df;
}

.id-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  vertical-align: middle;
}

.id-chip code {
  display: inline-block;
  max-width: 150px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  color: #d8ccff;
  font-size: 11px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 6px 8px;
}

.id-copy-button {
  width: 26px;
  height: 26px;
  min-height: 26px;
  border-radius: 8px;
}

.id-copy-button svg {
  width: 14px;
  height: 14px;
}

.id-copy-button i {
  font-size: 12px;
}

.id-delete-button {
  border-color: rgba(255, 93, 125, .30);
  background: rgba(255, 93, 125, .08);
  color: #ffd7df;
}

.id-delete-button:hover {
  border-color: rgba(255, 93, 125, .56);
  background: rgba(255, 93, 125, .15);
  color: #fff;
}

.id-delete-button i {
  font-size: 12px;
  line-height: 1;
}

.token-chip code {
  max-width: 190px;
}

.token-setting-switch {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 4px 10px;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  padding: 11px;
}

.token-setting-switch input,
.key-smoothing-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.token-setting-switch > span,
.key-smoothing-toggle > span {
  position: relative;
  width: 40px;
  height: 23px;
  border-radius: 999px;
  background: rgba(255,255,255,.11);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.token-setting-switch > span::after,
.key-smoothing-toggle > span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: rgba(246,244,255,.92);
  transition: transform .18s ease, background .18s ease;
}

.token-setting-switch input:checked + span,
.key-smoothing-toggle input:checked + span {
  background: #6635ef;
}

.token-setting-switch input:checked + span::after,
.key-smoothing-toggle input:checked + span::after {
  transform: translateX(17px);
  background: #fff;
}

.token-setting-switch b {
  color: #f4efff;
  font-size: 12px;
  line-height: 1.2;
}

.token-setting-switch small {
  grid-column: 2;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.ajax-save-state {
  display: inline-grid;
  place-items: center;
  justify-self: start;
  min-height: 30px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  padding: 0 12px;
}

form.is-save-ok .ajax-save-state {
  border-color: rgba(97, 243, 179, .28);
  background: rgba(97, 243, 179, .10);
  color: #c7ffea;
}

form.is-save-error .ajax-save-state {
  border-color: rgba(255, 93, 125, .34);
  background: rgba(255, 93, 125, .12);
  color: #ffd7df;
}

.batch-color-dot--black {
  background: #141414;
}

.batch-color-dot--graphite {
  background: #1f2327;
}

.batch-color-dot--gray {
  background: #6b7280;
}

.batch-color-dot--white {
  background: #f4f4f2;
}

.batch-item--failed,
.batch-item--finished_with_errors {
  border-color: rgba(255, 179, 74, .32);
}

.batch-item--success {
  border-color: rgba(97, 243, 179, .30);
}

.batch-item--extracting {
  border-color: rgba(125, 191, 255, .28);
}

.batch-item--cancelled {
  opacity: .78;
}

.batch-item--paused {
  border-color: rgba(255, 214, 102, .30);
}

.batch-job-row--success b {
  color: #7ff0bd;
}

.batch-job-row--failed b,
.batch-job-row--cancelled b {
  color: #ffb38a;
}

.history-preview {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 128px;
  border: 1px solid var(--stroke-2);
  border-radius: 13px;
  background: rgba(255,255,255,.035);
}

.history-preview > span {
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  padding: 9px 10px;
}

.history-preview button {
  width: calc(100% - 20px);
  min-height: 54px;
  align-self: center;
  justify-self: center;
  border-color: rgba(143, 92, 255, .34);
  background:
    radial-gradient(circle at 18% 20%, rgba(143, 92, 255, .22), transparent 44%),
    rgba(143, 92, 255, .08);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.history-preview button:hover {
  border-color: rgba(143, 92, 255, .66);
  background: rgba(143, 92, 255, .16);
}

.history-empty,
.history-error {
  min-height: 84px;
  display: grid;
  place-items: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
  padding: 14px;
}

.history-error {
  align-content: center;
  background: rgba(255, 93, 125, .07);
}

.history-error strong {
  color: #ffd7df;
}

.history-card__tools {
  display: flex;
  justify-content: flex-start;
}

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

.history-card__topline > span:not(.status-pill) {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.history-classification__item--interior {
  border-color: rgba(74, 217, 255, .28);
  background:
    radial-gradient(circle at 16% 20%, rgba(74, 217, 255, .18), transparent 42%),
    rgba(255,255,255,.045);
}

.history-classification__item--exterior {
  border-color: rgba(137, 255, 186, .24);
  background:
    radial-gradient(circle at 16% 20%, rgba(137, 255, 186, .15), transparent 42%),
    rgba(255,255,255,.045);
}

.history-classification__item--unknown {
  border-color: rgba(255,255,255,.10);
}

.register-grid {
  display: grid;
  grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.register-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)),
    rgba(9, 12, 25, .78);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.06);
  padding: 22px;
}

.register-card code {
  display: block;
  overflow-x: auto;
  border-radius: 10px;
  font-size: 16px;
  padding: 14px;
}

.form-error {
  border: 1px solid rgba(255, 93, 125, .34);
  border-radius: 10px;
  background: rgba(255, 93, 125, .12);
  color: #ffd7df;
  padding: 10px 12px;
}

.key-result .download-button {
  width: fit-content;
  padding: 0 18px;
}

.site-footer {
  flex: 0 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: center;
  gap: 16px 20px;
  margin: auto 0 0;
  border: 1px solid var(--stroke);
  border-right: 0;
  border-left: 0;
  border-bottom: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)),
    rgba(9, 12, 25, .72);
  box-shadow: var(--shadow);
  padding: 18px clamp(16px, 4vw, 42px);
}

.coffee-donation {
  width: 100%;
  margin: var(--home-gap-sm, 18px) 0 0;
}

.coffee-donation__inner {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  overflow: hidden;
  border: 1px solid rgba(143, 92, 255, .24);
  border-radius: 20px;
  background:
    radial-gradient(circle at 7% 18%, rgba(143, 92, 255, .18), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.025)),
    rgba(8, 11, 24, .86);
  box-shadow: 0 22px 62px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.07);
  padding: 20px 22px;
}

.coffee-donation__inner::after {
  content: "";
  position: absolute;
  inset: auto 24px 0 auto;
  width: 180px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(143, 92, 255, .66), transparent);
}

.coffee-donation__cup {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(143, 92, 255, .30);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(143, 92, 255, .16), rgba(143, 92, 255, .06)),
    rgba(255,255,255,.035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.coffee-donation__cup i {
  color: #d8ccff;
  font-size: 26px;
  line-height: 1;
}

.coffee-donation__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  min-width: 0;
}

.coffee-donation__content span {
  width: fit-content;
  border: 1px solid rgba(143, 92, 255, .22);
  border-radius: 999px;
  background: rgba(143, 92, 255, .10);
  color: #cbbcff;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 9px;
}

.coffee-donation__content strong {
  color: #fff;
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.12;
}

.coffee-donation__content p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.coffee-donation__button {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  border: 1px solid rgba(143, 92, 255, .42);
  border-radius: 12px;
  background: linear-gradient(135deg, #7c43ff, #4d24dc);
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 18px 34px rgba(77, 36, 220, .24);
  padding: 0 20px;
}

.coffee-donation__button:hover {
  border-color: rgba(203, 188, 255, .72);
  color: #fff;
  transform: translateY(-1px);
}

.site-footer div {
  display: grid;
  gap: 4px;
}

.site-footer strong {
  color: #fff;
}

.site-footer span,
.site-footer small,
.site-footer a {
  color: var(--muted);
  font-size: 14px;
}

.site-footer small {
  font-size: 12px;
  opacity: .78;
}

.site-footer nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.site-footer a {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  border: 1px solid var(--stroke-2);
  border-radius: 999px;
  text-decoration: none;
  padding: 0 12px;
}

.site-footer a:hover {
  border-color: rgba(143, 92, 255, .55);
  color: #fff;
}

.site-footer a.is-active {
  border-color: rgba(143, 92, 255, .64);
  background: rgba(143, 92, 255, .14);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.ad-slot {
  position: relative;
  min-height: 90px;
  margin: 24px 0;
  border: 1px dashed rgba(143, 92, 255, .28);
  border-radius: 12px;
  background: rgba(9, 12, 25, .38);
  padding: 28px 14px 14px;
}

.ad-slot > span {
  position: absolute;
  top: 8px;
  left: 12px;
  color: #7d7690;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ad-slot > div {
  display: grid;
  place-items: center;
  min-height: 48px;
  overflow: hidden;
}

.legal-shell {
  width: min(100% - 32px, 980px);
  padding-top: 42px;
  padding-bottom: 52px;
}

.legal-head {
  margin-bottom: 24px;
}

.legal-head h1 {
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.08;
}

.legal-head .lead {
  font-size: 15px;
}

.legal-notice,
.legal-card {
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: rgba(9, 12, 25, .72);
  box-shadow: var(--shadow);
}

.legal-notice {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
  border-color: rgba(255, 193, 92, .36);
  background: rgba(255, 193, 92, .08);
  color: #ffe7b2;
  padding: 14px 16px;
}

.legal-notice span {
  color: var(--muted);
  font-size: 14px;
}

.legal-empty-state {
  margin: 0;
  border: 1px dashed rgba(143, 92, 255, .24);
  border-radius: 12px;
  background: rgba(143, 92, 255, .055);
  color: var(--muted);
  line-height: 1.55;
  padding: 16px;
}

.legal-card {
  padding: clamp(20px, 4vw, 34px);
}

.public-status-shell {
  width: min(100% - 32px, 1040px);
  padding-top: 42px;
  padding-bottom: 64px;
}

.public-status-head {
  margin-bottom: 22px;
}

.public-status-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(97, 243, 179, .18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(97, 243, 179, .12), transparent 34%),
    rgba(9, 12, 25, .78);
  box-shadow: var(--shadow);
  padding: 20px;
}

.public-status-summary.is-warning {
  border-color: rgba(255, 202, 105, .28);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 202, 105, .12), transparent 34%),
    rgba(9, 12, 25, .78);
}

.public-status-summary strong {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.18;
}

.public-status-summary dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 8px;
  margin: 0;
}

.public-status-summary dl div {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 13px;
  background: rgba(255,255,255,.035);
  padding: 12px;
}

.public-status-summary dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.public-status-summary dd {
  margin: 4px 0 0;
  color: #fff;
  font-size: 24px;
  font-weight: 950;
}

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

.public-status-check {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 15px;
  background: rgba(255,255,255,.028);
  padding: 14px;
}

.public-status-check > span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: rgba(97, 243, 179, .10);
  color: #8affc9;
}

.public-status-check.is-warning > span {
  background: rgba(255, 202, 105, .12);
  color: #ffdc8b;
}

.public-status-check strong {
  color: #fff;
}

.public-status-check p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.public-status-note {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  border: 1px solid rgba(143, 92, 255, .18);
  border-radius: 15px;
  background: rgba(143, 92, 255, .055);
  color: var(--muted);
  padding: 16px;
}

.public-status-note strong {
  color: #fff;
}

.legal-card h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(20px, 2.4vw, 26px);
}

.legal-card h3 {
  margin: 24px 0 10px;
  color: #fff;
  font-size: 16px;
}

.legal-details {
  display: grid;
  margin: 0;
}

.legal-details div {
  display: grid;
  grid-template-columns: minmax(180px, .55fr) 1fr;
  gap: 20px;
  border-top: 1px solid var(--stroke);
  padding: 15px 0;
}

.legal-details div:first-child {
  border-top: 0;
  padding-top: 0;
}

.legal-details dt {
  color: var(--muted);
}

.legal-details dd {
  margin: 0;
  color: #fff;
  overflow-wrap: anywhere;
}

.legal-details a {
  color: #c5afff;
}

.legal-prose p,
.legal-prose li {
  color: var(--muted);
  line-height: 1.7;
}

.legal-prose p {
  margin: 0 0 12px;
  white-space: pre-line;
}

.legal-prose ol {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  padding-left: 0;
  list-style: none;
  counter-reset: legal-item;
}

.legal-prose ol li {
  position: relative;
  counter-increment: legal-item;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  padding: 11px 14px 11px 46px;
}

.legal-prose ol li::before {
  content: counter(legal-item);
  position: absolute;
  top: 12px;
  left: 14px;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: rgba(102, 53, 239, .22);
  color: #e7dcff;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.legal-prose ol:last-child,
.legal-prose p:last-child {
  margin-bottom: 0;
}

.error-page {
  min-height: 100vh;
}

.error-shell {
  display: grid;
  place-items: center;
  flex: 1 0 auto;
  width: min(100% - 32px, 760px);
  margin: 0 auto;
  padding: clamp(56px, 10vh, 120px) 0;
}

.error-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(143, 92, 255, .30);
  border-radius: 20px;
  background:
    radial-gradient(circle at 82% 18%, rgba(102, 53, 239, .22), transparent 27%),
    linear-gradient(145deg, rgba(21, 17, 42, .94), rgba(9, 12, 25, .92));
  box-shadow: var(--shadow);
  padding: clamp(28px, 7vw, 64px);
}

.error-code {
  position: absolute;
  top: -26px;
  right: -8px;
  color: rgba(180, 151, 255, .08);
  font-size: clamp(130px, 24vw, 230px);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: 1;
  pointer-events: none;
}

.error-card > *:not(.error-code) {
  position: relative;
  z-index: 1;
}

.error-card h1 {
  max-width: 550px;
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.04;
}

.error-card > p:not(.eyebrow) {
  max-width: 490px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.error-request-id {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  border-radius: 10px;
  background: rgba(255,255,255,.055);
  color: var(--muted);
  font-size: 12px;
  padding: 7px 10px;
}

.error-request-id code {
  border: 0;
  background: transparent;
  color: #d8ccff;
  padding: 0;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.error-actions .apply-button,
.error-actions .ghost-button {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  width: auto;
  text-decoration: none;
  padding: 0 18px;
}

@media (max-width: 760px) {

  .error-shell {
    padding: 40px 0;
  }

  .error-actions > * {
    width: 100%;
  }

  .legal-details div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.admin-stats span,
td span {
  color: var(--muted);
}

.payment-control-card,
#payments {
  gap: 16px;
}

.payment-method-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.payment-method-list article {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(255,255,255,.02);
  padding: 10px;
}

.payment-method-list article.is-active {
  border-color: rgba(143, 92, 255, .7);
  background: rgba(143, 92, 255, .12);
}

.payment-method-list strong,
.payment-method-list span {
  display: block;
}

.payment-method-list strong {
  color: #fff;
  font-size: 12px;
}

.payment-method-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

[data-history-row] {
  transition: opacity .2s ease, transform .2s ease;
}

[data-history-row].is-removing {
  opacity: 0;
  transform: translateX(10px);
}

[data-history-delete] button.is-error {
  border-color: rgba(255, 93, 125, .68);
  background: rgba(255, 93, 125, .16);
  color: #ffe2e8;
}

.has-new-feedback {
  background:
    linear-gradient(90deg, rgba(255, 197, 92, .10), transparent 46%),
    rgba(255,255,255,.015);
}

.admin-actions,
.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.inline-form input {
  width: 92px;
  min-height: 34px;
}

.inline-form input[name="reason"] {
  width: min(180px, 100%);
}

.inline-form button,
.admin-actions button {
  width: auto;
  min-height: 34px;
  padding: 0 12px;
}

.status-pill {
  display: inline-grid;
  place-items: center;
  min-height: 24px;
  border: 1px solid rgba(143, 92, 255, .22);
  border-radius: 999px;
  background: rgba(143, 92, 255, .10);
  font-size: 11px;
  font-weight: 900;
  padding: 0 8px;
}

.status-pill.danger {
  border-color: rgba(255, 93, 125, .34);
  background: rgba(255, 93, 125, .12);
  color: #ffd7df;
}

.status-pill.success {
  border-color: rgba(97, 243, 179, .34);
  background: rgba(97, 243, 179, .12);
  color: #c6ffe8;
}

.status-pill.warning {
  border-color: rgba(255, 197, 92, .38);
  background: rgba(255, 197, 92, .13);
  color: #ffe4aa;
}

.status-pill.is-muted {
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: var(--muted);
}

.has-open-dispute td {
  background: rgba(255, 197, 92, .026);
}

.has-open-dispute td:first-child {
  box-shadow: inset 3px 0 0 rgba(255, 197, 92, .72);
}

.section-headline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 16px;
  padding-bottom: 16px;
}

.section-headline .section-kicker {
  margin-bottom: 10px;
}

.section-headline > .status-pill,
.section-headline > .organization-status,
.section-headline > .pricing-settings-card__value,
.section-headline > .payments-toolbar,
.section-headline > .support-head-actions,
.section-headline > .admin-search {
  justify-self: end;
  align-self: start;
  margin-top: 0;
  margin-left: 0;
}

.section-headline > .payments-toolbar,
.section-headline > .support-head-actions {
  padding-top: 2px;
}

.section-headline h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 20px;
}

.section-headline p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.section-headline > div:first-child {
  min-width: 0;
}

.key-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.key-form input,
.key-form select,
.key-form button {
  width: auto;
}

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

th,
td {
  border-bottom: 1px solid var(--stroke);
  padding: 12px;
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

button.danger {
  width: auto;
  border-color: rgba(255, 93, 125, .34);
  background: rgba(255, 93, 125, .12);
  color: #ffd7df;
  cursor: pointer;
}

@media (max-width: 1180px) {
  :root {
    --card-h: auto;
    --media-h: 340px;
  }

  .home-page .neon-shell {
    --home-gap: clamp(26px, 5vw, 44px);
    --home-gap-sm: 18px;
  }

  .neon-workflow {
    grid-template-columns: 1fr;
    max-width: 760px;
    margin: 0 auto;
  }

  .ai-node {
    display: none;
  }

  .workflow-step,
  .upload-card,
  .params-card,
  .result-card {
    grid-template-rows: none;
    height: auto;
  }

  .result-meta,
  .benefit-bar,
  .before-after-grid,
  .page-grid,
  .feature-grid,
  .review-grid,
  .landing-grid,
  .landing-grid--four,
  .landing-steps__grid,
  .landing-page .landing-launch-grid,
  .account-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .result-meta .result-classification-card {
    grid-column: 1;
  }
}

@media (max-width: 760px) {
  :root {
    --media-h: 300px;
    --page-gutter: 16px;
  }

  body > main {
    margin-bottom: 34px;
  }

  .result-actions-compact {
    grid-template-columns: 1fr;
  }

  .before-after-grid,
  .account-onboarding-grid {
    grid-template-columns: 1fr;
  }

  .before-after-preview {
    min-height: 150px;
  }

  .home-page .neon-shell {
    --home-gap: 28px;
    --home-gap-sm: 16px;
    padding-bottom: 34px;
  }

  .neon-header,
  .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 12px 8px;
    background: rgba(3, 5, 13, .86);
  }

  .brand {
    width: 100%;
    min-width: 0;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .brand > span:last-child {
    min-width: 0;
  }

  .brand strong,
  .brand small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    font-size: 11px;
  }

  .main-nav,
  .nav-links {
    display: flex;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow: visible;
    flex-wrap: wrap;
    scrollbar-width: none;
    padding: 0;
  }

  .main-nav::-webkit-scrollbar,
  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .main-nav a,
  .nav-links a {
    flex: 0 1 auto;
    min-height: 32px;
    border-color: rgba(143, 92, 255, .18);
    background: rgba(255, 255, 255, .035);
    font-size: 13px;
    padding: 0 11px;
  }

  .language-switcher {
    flex: 0 0 auto;
    min-height: 32px;
    order: 20;
  }

  .language-switcher a {
    min-height: 24px;
    font-size: 11px;
    padding: 0 8px;
  }

  h1 {
    font-size: 34px;
    line-height: 1.02;
  }

  h2 {
    font-size: 28px;
  }

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

  .landing-actions .apply-button,
  .landing-actions .ghost-button {
    width: 100%;
  }

  .landing-grid,
  .landing-grid--four,
  .landing-steps__grid,
  .landing-page .landing-launch-grid {
    grid-template-columns: 1fr;
  }

  .neon-hero {
    padding: 16px 0 var(--home-gap-sm);
  }

  .neon-hero p,
  .docs-hero .lead,
  .page-head .lead,
  .auth-hero .lead {
    font-size: 15px;
    line-height: 1.55;
  }

  .docs-layout,
  .docs-hero,
  .docs-panel,
  .doc-card,
  .ai-doc-card {
    max-width: 100%;
    min-width: 0;
  }

  .docs-hero,
  .docs-panel,
  .doc-card {
    padding: 18px;
  }

  .docs-hero h1,
  .docs-panel h2,
  .doc-card h2 {
    overflow-wrap: anywhere;
  }

  .docs-panel p code,
  .docs-panel li code,
  .docs-hero p code,
  .param-table code {
    white-space: normal;
    word-break: break-word;
  }

  .code-block,
  pre {
    max-width: 100%;
    min-width: 0;
  }

  pre {
    padding: 14px;
  }

  pre code,
  .code-block code {
    white-space: pre;
  }

  .auth-layout--center {
    width: min(100% - (var(--page-gutter) * 2), 760px);
    padding-top: 22px;
  }

  .launch-stack {
    border-radius: 18px;
    padding: 18px;
  }

  .page-grid .launch-card {
    min-height: 148px;
  }

  .mode-grid,
  .background-grid,
  .benefit-bar,
  .page-grid,
  .feature-grid,
  .review-grid,
  .register-grid,
  .auth-grid,
  .auth-showcase,
  .auth-metrics,
  .docs-grid,
  .plans,
  .pricing-metrics,
  .payment-grid,
  .landing-grid,
  .landing-grid--four,
  .result-meta,
  .admin-stats,
  .admin-grid,
  .admin-layout,
  .admin-overview-grid,
  .account-grid,
  .account-kv,
  .account-key-item dl,
  .webhook-mini-form,
  .history-card,
  .donation-grid,
  .support-create-form,
  .support-admin-form,
  .support-reply-form,
  .support-inbox,
  .history-card__media,
  .history-card dl,
  .history-classification,
  .dispute-kpis,
  .feedback-section,
  .feedback-form__row,
  .admin-review-grid,
  .dispute-form,
  .webhook-log-meta,
  .public-status-summary,
  .public-status-summary dl,
  .public-status-grid,
  .credit-ledger-item,
  .credit-ledger-list--admin .credit-ledger-item,
  .admin-user-card__head,
  .admin-user-card__actions,
  .admin-user-card__stats,
  .admin-user-credit-form,
  .admin-api-key-card__head,
  .admin-api-key-card__stats,
  .admin-api-credit-form,
  .param-table div {
    grid-template-columns: 1fr;
  }

  .credit-ledger-item__amount,
  .credit-ledger-item__meta {
    justify-content: flex-start;
    text-align: left;
  }

  .feedback-section {
    border-radius: 18px;
    padding: 16px;
  }

  .feedback-form .apply-button {
    width: 100%;
    min-width: 0;
    justify-self: stretch;
  }

  .support-create-form .apply-button,
  .support-admin-form .apply-button {
    width: 100%;
  }

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

  .support-thread__actions {
    justify-content: flex-start;
  }

  .support-ticket-list {
    position: static;
    display: flex;
    gap: 8px;
    max-width: 100%;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px;
    scrollbar-width: none;
  }

  .support-ticket-list::-webkit-scrollbar {
    display: none;
  }

  .support-ticket-list__head {
    flex: 0 0 142px;
    align-content: center;
    display: grid;
    padding: 8px;
  }

  .support-ticket-tab,
  .support-empty-state {
    flex: 0 0 min(248px, 76vw);
    max-width: min(248px, 76vw);
  }

  .support-empty-state {
    min-width: 0;
  }

  .support-ticket-tab strong,
  .support-ticket-tab small,
  .support-empty-state strong,
  .support-empty-state span {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .section-headline {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .section-headline > .status-pill,
  .section-headline > .organization-status,
  .section-headline > .pricing-settings-card__value,
  .section-headline > .payments-toolbar,
  .section-headline > .support-head-actions,
  .section-headline > .admin-search {
    justify-self: start;
  }

  .auth-card {
    padding: 18px;
  }

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

  .auth-timeline div {
    grid-template-columns: 36px 1fr;
  }

  .auth-timeline small {
    grid-column: 2;
  }

  .upload-zone,
  .result-frame {
    height: var(--media-h);
    min-height: 0;
  }

  .compare-label {
    top: 9px;
  }

  .preview-open {
    bottom: 9px;
    min-height: 30px;
    font-size: 10px;
    padding: 0 9px;
  }

  .compare-slider {
    bottom: 47px;
  }

  .image-modal {
    padding: 14px;
  }

  .custom-bg {
    grid-template-columns: 1fr;
  }

  .ai-doc-card {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .ai-doc-card__aside {
    align-content: start;
  }

  .custom-bg > span {
    width: 100%;
  }

  .site-footer {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .coffee-donation {
    margin: 16px 0 0;
  }

  .coffee-donation__inner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }

  .coffee-donation__cup {
    width: 56px;
    height: 56px;
  }

  .coffee-donation__button {
    grid-column: 1 / -1;
    width: 100%;
  }

  table {
    display: block;
    overflow-x: auto;
  }
}



/* Product polish pass */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid rgba(151, 112, 255, .82);
  outline-offset: 3px;
}

button:disabled,
.is-disabled {
  opacity: .58;
  filter: saturate(.78);
}

select {
  background-position:
    calc(100% - 24px) 50%,
    calc(100% - 18px) 50%;
  padding-right: 52px;
}

.feedback-form .field {
  align-self: stretch;
}

.feedback-form textarea {
  display: block;
  min-height: 136px;
  line-height: 1.58;
  overflow: auto;
  padding-top: 14px;
}

.token-chip {
  min-width: 0;
}

.token-chip code {
  max-width: min(230px, 48vw);
}

.support-ticket-list {
  scrollbar-color: rgba(143, 92, 255, .44) rgba(255,255,255,.04);
  scrollbar-width: thin;
}

.support-ticket-tab {
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.support-ticket-tab:hover {
  transform: translateY(-1px);
}

.support-thread__head {
  align-items: flex-start;
}

.support-message {
  max-width: 760px;
}

.image-modal__close {
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
}

.blog-card {
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.blog-card:hover {
  border-color: rgba(143, 92, 255, .28);
  transform: translateY(-2px);
}

.blog-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.blog-card__link:hover {
  color: #fff;
}

@media (max-width: 760px) {

  .token-chip {
    width: fit-content;
    max-width: 100%;
  }

  .token-chip code {
    max-width: calc(100vw - 150px);
  }

  .support-thread__head {
    display: grid;
  }

  .support-message {
    width: 100%;
  }
}


/* Final button system overrides */
.apply-button,
.download-button,
.auth-panel .admin-login-button,
button.apply-button,
a.download-button {
  border: 0;
  background: #5f4dff;
  background-image: none;
  color: #fff;
  box-shadow: none;
  font-weight: 650;
}

.apply-button:hover,
.download-button:hover,
.auth-panel .admin-login-button:hover,
button.apply-button:hover,
a.download-button:hover {
  background: #705eff;
}

.copy-button,
.mask-button,
.ghost-button,
.webhook-mini-form button {
  border: 0;
  background: rgba(255, 255, 255, .08);
  color: rgba(246, 244, 255, .9);
  box-shadow: none;
  font-weight: 520;
}

.copy-button:hover,
.mask-button:hover,
.ghost-button:hover,
.webhook-mini-form button:hover {
  background: rgba(255, 255, 255, .13);
}

/* Panels UX refresh */
.admin-page,
.account-page {
  --panel-surface: rgba(10, 13, 28, .86);
  --panel-surface-strong: rgba(15, 18, 36, .94);
  --panel-line: rgba(255, 255, 255, .095);
  --panel-line-strong: rgba(143, 92, 255, .34);
  --panel-muted: #a9a6be;
  --panel-text: #f7f4ff;
  --panel-accent: #6635ef;
  --panel-accent-2: #7c43ff;
}

.admin-shell,
.account-shell {
  padding-bottom: 48px;
}

.admin-content,
.account-shell {
  gap: 22px;
}

.admin-page-title,
.admin-head,
.admin-shell .table-card,
.account-shell .table-card,
.account-hero,
.account-onboarding {
  border: 1px solid var(--panel-line);
  background:
    radial-gradient(circle at 100% 0, rgba(102, 53, 239, .10), transparent 34%),
    var(--panel-surface);
  box-shadow: 0 20px 60px rgba(0,0,0,.24);
}

.admin-head p:not(.eyebrow),
.admin-page-title p:not(.eyebrow),
.section-headline p,
.account-section-head > div > p:not(.eyebrow) {
  max-width: 760px;
  color: var(--panel-muted);
}

.section-headline,
.account-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-headline h2,
.account-section-head h2,
.admin-shell .table-card > h2,
.account-shell .table-card > h2 {
  font-size: clamp(18px, 1.45vw, 22px);
  letter-spacing: 0;
}

.admin-stats,
.account-stats,
.payment-kpis,
.support-kpis,
.dispute-kpis,
.site-page-stats {
  gap: 12px;
}

.admin-stats article,
.account-stats article,
.payment-kpis article,
.support-kpis article,
.dispute-kpis article,
.site-page-stats article {
  min-height: 98px;
  border: 1px solid var(--panel-line);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
    rgba(8,10,22,.62);
  padding: 15px;
}

.admin-stats span,
.account-stats span,
.payment-kpis span,
.support-kpis span,
.dispute-kpis span,
.site-page-stats span {
  color: var(--panel-muted);
  font-size: 12px;
  line-height: 1.35;
}

.admin-stats strong,
.account-stats strong,
.payment-kpis strong,
.support-kpis strong,
.dispute-kpis strong,
.site-page-stats strong {
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1;
}

.admin-filter-bar,
.payments-toolbar,
.support-head-actions,
.admin-search {
  min-height: 48px;
  border: 1px solid var(--panel-line);
  border-radius: 15px;
  background: rgba(255,255,255,.035);
  padding: 8px;
}

.admin-filter-search input,
.admin-search input,
.payment-control-form input,
.payment-control-form select,
.admin-form input,
.admin-form select,
.admin-form textarea,
.support-create-form input,
.support-create-form textarea,
.support-reply-form textarea,
.support-admin-form textarea,
.webhook-mini-form input,
.key-color-mini-form,
.admin-user-credit-form input,
.admin-api-credit-form input {
  border-color: rgba(255,255,255,.11);
  background: rgba(3,5,13,.48);
}

.admin-filter-search input:focus,
.admin-search input:focus,
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.support-create-form input:focus,
.support-create-form textarea:focus,
.support-reply-form textarea:focus,
.support-admin-form textarea:focus,
.webhook-mini-form input:focus {
  border-color: rgba(124, 67, 255, .62);
  box-shadow: 0 0 0 3px rgba(102, 53, 239, .16);
}

.admin-overview-grid a,
.account-onboarding-step,
.payment-plan,
.payment-item,
.admin-user-card,
.admin-api-key-card,
.history-card,
.support-ticket-tab,
.support-thread,
.credit-ledger-item {
  border: 1px solid var(--panel-line);
  background:
    linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.018)),
    rgba(7,9,20,.58);
}

.admin-overview-grid a:hover,
.account-onboarding-step:hover,
.payment-plan:hover,
.payment-item:hover,
.admin-user-card:hover,
.admin-api-key-card:hover,
.history-card:hover,
.support-ticket-tab:hover {
  border-color: var(--panel-line-strong);
  background:
    linear-gradient(145deg, rgba(102, 53, 239, .13), rgba(255,255,255,.025)),
    rgba(8,10,22,.72);
}

.account-balance-card__rates span,
.account-badges span,
.support-head-actions span,
.support-head-actions a {
  border-radius: 999px;
}

.account-grid--keys .admin-form > .field,
.account-grid--keys .account-background-panel,
.account-grid--keys .account-plate-color-control,
.token-setting-switch {
  border-color: var(--panel-line);
  background: rgba(255,255,255,.032);
}

.account-key-row > strong,
.admin-api-key-card__identity strong,
.admin-user-card__identity strong {
  line-height: 1.2;
}

.account-token-line,
.admin-api-key-card__token {
  gap: 8px;
}

.account-key-item dl,
.admin-api-key-card__stats,
.admin-user-card__stats {
  gap: 8px;
}

.account-key-item dl div,
.admin-api-key-card__stats div,
.admin-user-card__stats div {
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(3,5,13,.25);
}

.key-color-mini-form,
.webhook-mini-form,
.admin-user-credit-form,
.admin-api-credit-form {
  border-radius: 14px;
  background: rgba(255,255,255,.032);
}

.support-inbox {
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 14px;
}

.support-ticket-list {
  gap: 9px;
  max-height: 680px;
  border: 1px solid var(--panel-line);
  border-radius: 16px;
  background: rgba(3,5,13,.22);
  padding: 10px;
}

.support-ticket-tab {
  min-height: 92px;
  border-radius: 14px;
  padding: 13px;
}

.support-ticket-tab.is-active {
  border-color: rgba(124, 67, 255, .62);
  background:
    linear-gradient(145deg, rgba(102, 53, 239, .20), rgba(97, 243, 179, .035)),
    rgba(8,10,22,.78);
}

.support-thread {
  border-radius: 16px;
  padding: 16px;
}

.support-messages {
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 15px;
  background: rgba(3,5,13,.22);
  padding: 12px;
}

.support-message {
  max-width: min(760px, 94%);
  border-radius: 14px;
  padding: 12px 13px;
}

.support-message.is-admin {
  margin-left: auto;
}

.support-reply-form,
.support-admin-form {
  border-radius: 15px;
  background: rgba(255,255,255,.026);
  padding: 12px;
}

@media (max-width: 1180px) {

  .account-hero,
  .account-onboarding-grid,
  .account-grid--keys,
  .support-inbox {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .admin-shell,
  .account-shell {
    width: min(100% - 24px, 100%);
    padding-top: 14px;
  }

  .admin-page-title,
  .admin-head,
  .section-headline,
  .account-section-head,
  .account-hero {
    grid-template-columns: 1fr;
  }

  .admin-page-title,
  .admin-head,
  .admin-shell .table-card,
  .account-shell .table-card,
  .account-hero,
  .account-onboarding {
    border-radius: 15px;
    padding: 15px;
  }

  .admin-stats,
  .account-stats,
  .payment-kpis,
  .support-kpis,
  .dispute-kpis,
  .site-page-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-stats article,
  .account-stats article {
    min-height: 86px;
    padding: 12px;
  }

  .account-balance-card__top,
  .account-key-item dl,
  .admin-api-key-card__stats,
  .admin-user-card__stats {
    grid-template-columns: 1fr;
  }

  .account-token-line,
  .admin-api-key-card__token,
  .history-file-panel__actions {
    justify-content: flex-start;
  }

  .support-ticket-list {
    max-height: none;
  }

  .support-message {
    max-width: 100%;
  }
}

/* Compact button and Font Awesome icon pass */
.admin-page,
.account-shell,
.auth-panel,
.docs-page,
.home-page {
  --btn-primary: #4f46e5;
  --btn-primary-hover: #4338ca;
  --btn-soft: rgba(255, 255, 255, .075);
  --btn-soft-hover: rgba(255, 255, 255, .12);
  --btn-line: rgba(255, 255, 255, .12);
  --btn-danger: rgba(255, 93, 125, .13);
  --btn-danger-hover: rgba(255, 93, 125, .22);
  --btn-success: rgba(97, 243, 179, .15);
}

.apply-button,
.download-button,
button.apply-button,
a.download-button,
.auth-panel .admin-login-button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--btn-primary);
  background-image: none;
  color: #fff;
  box-shadow: none;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0;
  padding: 0 18px;
}

.apply-button:not(:disabled):not(.is-disabled):hover,
.download-button:not(.is-disabled):hover,
button.apply-button:not(:disabled):hover,
a.download-button:not(.is-disabled):hover,
.auth-panel .admin-login-button:not(:disabled):hover {
  background: var(--btn-primary-hover);
  transform: translateY(-1px);
}

.ghost-button,
.copy-button,
.mask-button,
.clear-file-button,
.webhook-mini-form button,
.support-create-form button:not(.apply-button),
.support-admin-form button:not(.apply-button),
.support-reply-form button:not(.apply-button),
.admin-page button:not(.apply-button):not(.code-copy-button):not(.copy-token-button):not(.id-copy-button):not(.admin-switch span):not(.ck):not(.ck-button):not([class*="ck-"]),
.account-shell button:not(.apply-button):not(.code-copy-button):not(.copy-token-button):not(.id-copy-button):not(.history-delete-trigger) {
  min-height: 38px;
  border: 1px solid var(--btn-line);
  border-radius: 11px;
  background: var(--btn-soft);
  color: rgba(247, 244, 255, .92);
  box-shadow: none;
  font-size: 13px;
  font-weight: 560;
  letter-spacing: 0;
  padding: 0 12px;
}

.ghost-button:hover,
.copy-button:hover,
.mask-button:hover,
.clear-file-button:hover,
.webhook-mini-form button:hover,
.support-create-form button:not(.apply-button):hover,
.support-admin-form button:not(.apply-button):hover,
.support-reply-form button:not(.apply-button):hover,
.admin-page button:not(.apply-button):not(.code-copy-button):not(.copy-token-button):not(.id-copy-button):not(.ck):not(.ck-button):not([class*="ck-"]):hover,
.account-shell button:not(.apply-button):not(.code-copy-button):not(.copy-token-button):not(.id-copy-button):not(.history-delete-trigger):hover {
  background: var(--btn-soft-hover);
  border-color: rgba(143, 92, 255, .28);
  transform: translateY(-1px);
}

.apply-button i,
.download-button i,
.ghost-button i,
.copy-button i,
.mask-button i,
.support-icon-button i,
.history-delete-trigger i,
.code-copy-button i,
.copy-token-button i,
.id-copy-button i {
  display: inline-grid;
  place-items: center;
  width: 1em;
  height: 1em;
  margin: 0;
  line-height: 1;
  transform: none;
}

.code-copy-button,
.copy-token-button.id-copy-button,
.id-copy-button,
.site-page-copy,
.promo-code-chip .copy-token-button,
.secret-input-row .copy-token-button,
.support-ticket-tab-meta .id-copy-button,
.support-thread-meta .id-copy-button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  min-width: 30px;
  max-width: 30px;
  height: 30px;
  min-height: 30px;
  max-height: 30px;
  border: 1px solid rgba(143, 92, 255, .22);
  border-radius: 9px;
  background: rgba(143, 92, 255, .10);
  color: #d9d2ff;
  box-shadow: none;
  padding: 0;
  line-height: 1;
}

.code-copy-button i,
.copy-token-button.id-copy-button i,
.id-copy-button i,
.site-page-copy i,
.promo-code-chip .copy-token-button i,
.secret-input-row .copy-token-button i {
  font-size: 12px;
}

.code-copy-button .check-icon,
.copy-token-button .check-icon,
.id-copy-button .check-icon {
  display: none;
}

.code-copy-button.is-copied .copy-icon,
.copy-token-button.is-copied .copy-icon,
.copy-token-button.is-error .copy-icon,
.id-copy-button.is-copied .copy-icon,
.id-copy-button.is-error .copy-icon {
  display: none;
}

.code-copy-button.is-copied .check-icon,
.copy-token-button.is-copied .check-icon,
.id-copy-button.is-copied .check-icon {
  display: inline-grid;
}

.code-copy-button:hover,
.copy-token-button.id-copy-button:hover,
.id-copy-button:hover,
.site-page-copy:hover,
.promo-code-chip .copy-token-button:hover,
.secret-input-row .copy-token-button:hover,
.code-copy-button.is-copied,
.copy-token-button.is-copied,
.id-copy-button.is-copied {
  border-color: rgba(97, 243, 179, .38);
  background: var(--btn-success);
  color: #c6ffe8;
  transform: translateY(-1px);
}

.copy-token-button.is-error,
.id-copy-button.is-error {
  border-color: rgba(255, 93, 125, .38);
  background: var(--btn-danger);
  color: #ffd7df;
}

.id-delete-button,
.account-shell .id-delete-button,
.token-chip .account-key-delete,
.history-delete-trigger {
  border-color: rgba(255, 93, 125, .24);
  background: var(--btn-danger);
  color: #ff9fb0;
}

.id-delete-button:hover,
.account-shell .id-delete-button:hover,
.token-chip .account-key-delete:hover,
.history-delete-trigger:hover {
  border-color: rgba(255, 93, 125, .38);
  background: var(--btn-danger-hover);
  color: #fff;
}

.id-chip {
  gap: 6px;
}

.id-chip code {
  min-height: 30px;
  border-radius: 9px;
  padding: 7px 9px;
}

.token-chip {
  gap: 6px;
  border-radius: 11px;
  padding: 3px;
}

.token-chip code {
  min-height: 30px;
}

.code-block__toolbar {
  align-items: center;
}

.code-block__toolbar .code-copy-button {
  justify-self: end;
}

.result-actions-compact :is(.download-button, .copy-button, .mask-button, .ghost-button) {
  min-height: 42px;
  font-size: 13px;
  font-weight: 560;
}

.result-actions-compact :is(.download-button, .copy-button, .mask-button, .ghost-button) b {
  font-weight: 560;
}

button:disabled,
.is-disabled,
.copy-token-button:disabled {
  cursor: not-allowed;
}

/* Mobile QA hardening for account/admin panels */
@media (max-width: 520px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header,
  .account-shell,
  .admin-shell {
    width: calc(100% - 20px);
    margin-inline: auto;
  }

  .account-shell,
  .admin-shell {
    gap: 14px;
    padding-top: 12px;
    padding-bottom: 32px;
  }

  .account-shell *,
  .admin-shell * {
    min-width: 0;
  }

  .account-hero,
  .account-onboarding,
  .account-shell .table-card,
  .admin-shell .table-card,
  .admin-head,
  .admin-page-title,
  .admin-sidebar {
    width: 100%;
    border-radius: 14px;
    padding: 13px;
  }

  .account-profile-top,
  .admin-sidebar__brand {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 9px;
  }

  .account-avatar,
  .admin-sidebar__brand i {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .account-hero h1,
  .admin-page-title h1,
  .admin-head h1 {
    font-size: 22px;
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .account-badges,
  .account-balance-card__rates,
  .support-head-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
  }

  .account-badges span,
  .account-balance-card__rates span,
  .support-head-actions span,
  .support-head-actions a {
    width: fit-content;
    max-width: 100%;
    white-space: normal;
  }

  .account-balance-card__head,
  .account-section-head,
  .section-headline,
  .support-thread__head,
  .admin-user-card__head,
  .admin-api-key-card__head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .account-balance-card__head a,
  .account-cta,
  .account-grid--keys .apply-button,
  .support-create-form--pro .apply-button,
  .support-reply-form button,
  .support-admin-form__footer .apply-button {
    width: fit-content;
    max-width: 100%;
    justify-self: start;
  }

  .account-balance-card__top,
  .account-onboarding-grid,
  .admin-overview-grid,
  .admin-stats,
  .account-stats,
  .payment-kpis,
  .support-kpis,
  .dispute-kpis,
  .site-page-stats,
  .payment-grid,
  .payment-setup-grid,
  .payment-credentials-grid {
    grid-template-columns: 1fr;
  }

  .admin-stats article,
  .account-stats article,
  .payment-kpis article,
  .support-kpis article,
  .dispute-kpis article,
  .site-page-stats article {
    min-height: 76px;
  }

  .account-grid--keys,
  .support-inbox,
  .support-inbox--admin,
  .admin-grid,
  .payment-item,
  .promo-redeem-card,
  .blog-admin-row,
  .other-project-row,
  .organization-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .support-ticket-list {
    max-height: none;
    overflow: visible;
  }

  .support-ticket-tab {
    min-height: 0;
  }

  .support-ticket-tab__top,
  .support-ticket-tab-meta,
  .support-thread-meta,
  .history-card__topline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    white-space: normal;
  }

  .support-ticket-tab strong,
  .support-thread__head h3,
  .history-card__title,
  .admin-user-card__identity strong,
  .admin-api-key-card__identity strong {
    overflow-wrap: anywhere;
  }

  .account-key-row,
  .account-token-line,
  .admin-api-key-card__token,
  .history-file-panel,
  .history-file-panel__actions,
  .webhook-mini-form,
  .key-color-mini-form,
  .admin-user-credit-form,
  .admin-api-credit-form,
  .support-create-form,
  .support-reply-form,
  .support-admin-form__footer,
  .payments-toolbar,
  .admin-filter-bar {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    justify-items: start;
  }

  .history-file-panel__actions,
  .account-token-line,
  .admin-api-key-card__token {
    display: flex;
    flex-wrap: wrap;
  }

  .id-chip,
  .token-chip {
    max-width: 100%;
  }

  .id-chip code,
  .token-chip code,
  .admin-api-key-card__token .id-chip code,
  .support-ticket-tab-meta .id-chip code,
  .support-thread-meta .id-chip code {
    max-width: calc(100vw - 96px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .key-color-mini-form label,
  .webhook-mini-form input,
  .admin-user-credit-form label,
  .admin-api-credit-form label,
  .support-create-form .field,
  .support-reply-form textarea,
  .support-admin-form textarea,
  .admin-filter-search,
  .admin-filter-search input,
  .admin-search,
  .admin-search input {
    width: 100%;
  }

  .key-smoothing-toggle,
  .token-setting-switch {
    width: 100%;
  }

  .confirm-modal__panel,
  .admin-review-modal__panel,
  .image-modal__panel {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .confirm-modal__actions,
  .admin-review-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .confirm-modal__actions button,
  .admin-review-actions button {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .account-shell,
  .admin-shell,
  .site-header {
    width: calc(100% - 16px);
  }

  .account-hero,
  .account-onboarding,
  .account-shell .table-card,
  .admin-shell .table-card,
  .admin-head,
  .admin-page-title,
  .admin-sidebar {
    padding: 11px;
  }

  .account-hero h1,
  .admin-page-title h1,
  .admin-head h1 {
    font-size: 20px;
  }

  .apply-button,
  .download-button,
  .ghost-button,
  .copy-button,
  .mask-button {
    min-height: 40px;
    font-size: 12px;
    padding-inline: 12px;
  }

  .id-chip code,
  .token-chip code {
    max-width: calc(100vw - 86px);
  }
}
