@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;
}

/* 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; }

.admin-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
}

.admin-filter-search {
  position: relative;
  display: block;
  flex: 1 1 360px;
  min-width: min(100%, 260px);
}

.admin-filter-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(226, 222, 255, .56);
  pointer-events: none;
}

.admin-filter-search input {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(5, 7, 18, .55);
  color: #fff;
  padding: 0 14px 0 40px;
}

.admin-filter-bar > span {
  flex: 0 0 auto;
  color: rgba(232, 228, 255, .72);
  font-size: 12px;
  white-space: nowrap;
}

.admin-filter-bar b {
  color: #fff;
}

.admin-filter-empty {
  margin-top: 12px;
}

.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;
}

.promo-empty-state > span {
  background: rgba(126, 91, 255, .16) !important;
  color: #a88dff !important;
}

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

.apply-button:hover,
.download-button:hover,
.auth-panel .admin-login-button:hover {
  background: #705eff !important;
  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),
.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 !important;
  border-radius: 11px !important;
  background: rgba(255, 255, 255, .08) !important;
  color: rgba(246, 244, 255, .9) !important;
  font-weight: 520 !important;
  box-shadow: none !important;
}

.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) !important;
}

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

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

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

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

  .admin-filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-filter-search {
    flex-basis: auto;
    min-width: 0;
  }
}

.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) !important;
  background: rgba(143, 92, 255, .12) !important;
  color: #f4efff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  padding: 0 14px !important;
}

.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);
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
  place-items: center;
  padding: 18px;
  pointer-events: none;
}

.confirm-modal.is-open {
  display: grid;
  pointer-events: auto;
}

.confirm-modal[hidden] {
  display: none;
}

.confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 12, .78);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

.confirm-modal__panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 0 0, rgba(255, 93, 125, .13), transparent 38%),
    rgba(9, 12, 25, .96);
  box-shadow: var(--shadow);
  padding: 24px;
  pointer-events: auto;
}

.confirm-modal__panel h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 24px;
}

.confirm-modal__panel p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.confirm-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.confirm-modal__actions form,
.confirm-modal__actions button,
.confirm-modal__actions .ghost-button {
  width: auto;
}

.confirm-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  min-height: 38px;
  border-radius: 999px;
  padding: 0;
}

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

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

.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--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-panel .admin-login-button {
  width: 100%;
  min-height: 50px;
  margin-top: 8px;
  border: 0;
  border-radius: 12px;
  background-color: #5b5cff;
  background-image: linear-gradient(135deg, #5b5cff 0%, #4a3df0 48%, #3624c8 100%);
  box-shadow: none;
  letter-spacing: .01em;
}

.auth-panel .admin-login-button::before {
  display: none;
}

.auth-panel .admin-login-button i {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(255,255,255,.13);
  font-size: 12px;
}

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

.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);
}

.account-shell {
  width: min(1180px, calc(100% - (var(--page-gutter) * 2)));
  display: grid;
  gap: 24px;
  margin: 0 auto;
  padding: 38px 0 64px;
}

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

.account-onboarding__head {
  margin: 0;
}

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

.account-onboarding-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-areas:
    "icon title"
    "icon text";
  align-items: start;
  gap: 4px 10px;
  min-height: 108px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 13px;
  background: rgba(255,255,255,.026);
  color: inherit;
  text-decoration: none;
  padding: 13px;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.account-onboarding-step:hover {
  transform: translateY(-1px);
  border-color: rgba(143, 92, 255, .42);
  background: rgba(143, 92, 255, .07);
}

.account-onboarding-step i {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(143, 92, 255, .12);
  color: #c7b5ff;
  font-size: 13px;
}

.account-onboarding-step.is-done i {
  background: rgba(97, 243, 179, .14);
  color: #91ffd0;
}

.account-onboarding-step strong {
  grid-area: title;
  color: #fff;
  font-size: 13px;
  line-height: 1.25;
}

.account-onboarding-step span {
  grid-area: text;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.account-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, .72fr);
  align-items: stretch;
  gap: 16px;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background:
    radial-gradient(circle at 14% 10%, rgba(143, 92, 255, .22), transparent 38%),
    rgba(9, 12, 25, .76);
  padding: 24px;
  box-shadow: var(--shadow);
}

.account-hero--pro {
  align-items: stretch;
  background:
    radial-gradient(circle at 10% 0%, rgba(143, 92, 255, .34), transparent 36%),
    radial-gradient(circle at 90% 16%, rgba(97, 243, 179, .14), transparent 30%),
    linear-gradient(135deg, rgba(16, 19, 38, .92), rgba(8, 10, 22, .82));
}

.account-identity {
  display: grid;
  align-content: start;
  align-self: start;
  gap: 12px;
  min-width: 0;
  justify-items: start;
  text-align: left;
  padding-right: 8px;
}

.account-profile-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(143, 92, 255, .36);
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 18%, rgba(255,255,255,.26), transparent 24%),
    linear-gradient(135deg, rgba(102, 53, 239, .95), rgba(64, 219, 169, .58));
  color: #fff;
  font-size: 24px;
  font-weight: 950;
  box-shadow: 0 16px 36px rgba(102, 53, 239, .25);
}

.account-identity .eyebrow {
  margin-bottom: 8px;
}

.account-hero h1 {
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  letter-spacing: 0;
  text-align: left;
  overflow-wrap: anywhere;
}

.account-hero p {
  margin: 4px 0 0;
  color: var(--muted);
}

.account-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  max-width: 100%;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 11px;
  background: rgba(255,255,255,.04);
  color: #d9d4e8;
  font-size: 13px;
  font-weight: 800;
  padding: 0 12px;
  overflow-wrap: anywhere;
}

.account-email i {
  color: #a58cff;
  font-size: 13px;
  flex: 0 0 auto;
}

.account-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.account-badges--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, max-content));
  align-items: start;
  max-width: 100%;
}

.account-badges span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(143, 92, 255, .26);
  border-radius: 11px;
  background: rgba(143, 92, 255, .10);
  color: #e8ddff;
  font-size: 12px;
  font-weight: 900;
  padding: 0 11px;
}

.account-badges span i {
  font-size: 12px;
  color: #ad94ff;
}

.account-badges span.is-success {
  border-color: rgba(97, 243, 179, .26);
  background: rgba(97, 243, 179, .09);
  color: #d8ffef;
}

.account-badges span.is-success i {
  color: #61f3b3;
}

.account-badges span.is-danger {
  border-color: rgba(255, 93, 125, .34);
  background: rgba(255, 93, 125, .10);
  color: #ffdce3;
}

.account-badges span.is-danger i {
  color: #ff7d98;
}

.account-hero-panel {
  min-width: min(360px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-content: end;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
  padding: 14px;
}

.account-hero-panel div {
  display: grid;
  gap: 5px;
  border: 1px solid var(--stroke-2);
  border-radius: 12px;
  background: rgba(5, 7, 18, .42);
  padding: 12px;
}

.account-hero-panel span {
  color: var(--muted);
  font-size: 12px;
}

.account-hero-panel strong {
  color: #fff;
  font-size: 26px;
}

.account-cta {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 210px;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
}

.account-cta span {
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 850;
}

.account-balance-card {
  width: 100%;
  display: grid;
  align-content: start;
  gap: 9px;
  border: 1px solid rgba(143, 92, 255, .24);
  border-radius: 16px;
  background:
    radial-gradient(circle at 14% 0%, rgba(143, 92, 255, .22), transparent 34%),
    radial-gradient(circle at 100% 12%, rgba(97, 243, 179, .10), transparent 28%),
    rgba(7, 10, 22, .76);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 38px rgba(0,0,0,.22);
  padding: 12px;
}

.account-balance-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.account-balance-card__head > span {
  display: inline-grid;
  place-items: center;
  min-height: 24px;
  border-radius: 9px;
  background: rgba(102, 53, 239, .72);
  color: #f2efff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 0 11px;
}

.account-balance-card__head a {
  color: #d9d0ff;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.account-balance-card__head a:hover {
  color: #fff;
}

.account-balance-card__top {
  display: grid;
  grid-template-columns: minmax(150px, 1.25fr) repeat(2, minmax(90px, .8fr));
  gap: 8px;
  align-items: stretch;
}

.account-balance-card__top > div {
  display: grid;
  gap: 3px;
  align-content: center;
  min-width: 0;
  min-height: 74px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  padding: 10px;
}

.account-balance-card__main {
  background: linear-gradient(135deg, rgba(143, 92, 255, .18), rgba(5, 7, 18, .48));
}

.account-balance-card span,
.account-balance-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.account-balance-card__main strong {
  color: #fff;
  font-size: clamp(32px, 4vw, 46px);
  line-height: .95;
  letter-spacing: 0;
}

.account-balance-card__main small {
  color: #d8ccff;
}

.account-balance-card__top > div:not(.account-balance-card__main) strong {
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.account-balance-card__rates {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.account-balance-card__rates span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(143, 92, 255, .22);
  border-radius: 999px;
  background: rgba(143, 92, 255, .09);
  color: #eee8ff;
  padding: 0 9px;
  font-size: 10px;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr);
  gap: 18px;
}

.admin-stats.account-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 4px 0;
}

.admin-stats.account-stats article {
  min-height: 124px;
}

.account-grid--keys {
  grid-template-columns: minmax(360px, .92fr) minmax(0, 1.08fr);
  align-items: start;
  gap: 18px;
}

.account-grid--keys .admin-form {
  grid-template-columns: 1fr;
  gap: 12px;
}

.account-grid--keys .account-card {
  overflow: hidden;
}

.account-grid--keys .account-card > h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -2px -2px 2px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #fff;
  font-size: 19px;
  line-height: 1.2;
  padding: 0 0 14px;
}

.account-grid--keys .account-card > h2::after {
  content: "";
  width: 42px;
  height: 3px;
  flex: 0 0 42px;
  border-radius: 999px;
  background: #6635ef;
}

.account-grid--keys .admin-form > .field {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.028);
  padding: 11px;
}

.account-grid--keys .admin-form > .field > span,
.account-grid--keys .admin-form .field-label {
  color: #f4efff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
}

.account-grid--keys .admin-form > .field input {
  min-height: 42px;
  border-radius: 11px;
  background: rgba(255,255,255,.055);
}

.account-grid--keys .admin-form .background-panel,
.account-grid--keys .admin-form .field,
.account-grid--keys .admin-form .account-note {
  min-width: 0;
}

.account-grid--keys .admin-form .apply-button {
  grid-column: auto;
  width: fit-content;
  min-width: 220px;
  justify-self: end;
}

.account-background-panel {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.028);
  padding: 11px;
}

.account-background-panel .background-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.account-grid--keys .swatch {
  min-height: 82px;
  border-radius: 12px;
}

.account-grid--keys .custom-bg.account-custom-bg {
  min-height: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(102, 53, 239, .13), rgba(255,255,255,.035));
  padding: 14px;
}

.account-grid--keys .clear-file-button {
  width: fit-content;
  min-height: 34px;
  margin-top: 8px;
  border-radius: 10px;
}

.account-grid--keys .account-note {
  margin: 0;
  border: 1px solid rgba(102, 53, 239, .22);
  border-radius: 14px;
  background: rgba(102, 53, 239, .08);
  color: #cfc5ee;
  font-size: 13px;
  line-height: 1.55;
  padding: 11px 12px;
}

.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;
}

.admin-support-thread .support-admin-form {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 12px;
  border-color: rgba(143, 92, 255, .22);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025)),
    rgba(5, 8, 19, .72);
  padding: 14px;
}

.admin-support-thread .support-admin-form .support-message-field {
  grid-column: auto;
}

.admin-support-thread .support-admin-form textarea {
  min-height: 112px;
  resize: vertical;
}

.support-admin-form__footer {
  display: grid;
  grid-template-columns: minmax(220px, 320px) auto;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}

.support-admin-form__footer .apply-button {
  width: fit-content;
  min-width: 190px;
}

.support-create-form--pro {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 16px;
}

.support-create-form--pro .support-subject-field {
  grid-column: auto;
}

.support-create-form--pro .support-message-field {
  min-width: 0;
}

.support-create-form--pro textarea {
  min-height: 104px;
}

.support-create-form--pro .apply-button {
  width: fit-content;
  min-width: 220px;
  justify-self: end;
}

.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-thread-list--admin {
  min-width: 0;
}

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

.support-inbox--admin {
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 16px;
}

.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--admin {
  top: 82px;
  max-height: min(720px, calc(100vh - 112px));
  border-radius: 14px;
  background:
    radial-gradient(circle at 0 0, rgba(143, 92, 255, .10), transparent 44%),
    rgba(7, 10, 22, .70);
  padding: 8px;
}

.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-list--admin .support-ticket-tab {
  gap: 6px;
  padding: 10px;
}

.support-ticket-list--admin .support-ticket-tab .status-pill {
  min-height: 24px;
  font-size: 10px;
  padding: 0 9px;
}

.support-ticket-list--admin .support-ticket-tab .status-pill + .status-pill {
  margin-top: -2px;
}

.support-ticket-list--admin .support-ticket-tab small + small {
  color: rgba(167, 162, 188, .70);
  font-size: 11px;
}

.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__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.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-ticket-tab-meta,
.support-thread-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
}

.support-ticket-tab-meta {
  width: 100%;
  overflow: hidden;
  flex-wrap: wrap;
}

.support-ticket-tab-date {
  color: rgba(167, 162, 188, .78);
  font-size: 11px;
  font-weight: 800;
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-ticket-tab-meta code {
  display: inline-block;
  max-width: 110px;
  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;
}

.support-ticket-tab-hidden {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  border-radius: 8px;
  background: rgba(255,255,255,.045);
  color: rgba(231,231,231,.66);
  font-size: 11px;
  font-weight: 850;
  padding: 0 8px;
}

.support-ticket-tab-meta .id-chip,
.support-thread-meta .id-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
}

.support-ticket-tab-meta .id-chip code,
.support-thread-meta .id-chip code {
  max-width: 112px;
  min-height: 26px;
  display: inline-grid;
  align-items: center;
  line-height: 1;
}

.support-ticket-tab-meta .id-copy-button,
.support-thread-meta .id-copy-button {
  width: 26px !important;
  min-width: 26px !important;
  max-width: 26px !important;
  height: 26px !important;
  min-height: 26px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: rgba(143, 92, 255, .14) !important;
  color: #d8ccff !important;
  display: inline-grid !important;
  place-items: center !important;
  line-height: 1 !important;
}

.support-ticket-tab-meta .id-copy-button i,
.support-thread-meta .id-copy-button i {
  display: block !important;
  width: auto !important;
  height: auto !important;
  font-size: 12px !important;
  line-height: 1 !important;
  transform: none !important;
}

.support-ticket-tab-meta .id-copy-button:hover,
.support-thread-meta .id-copy-button:hover,
.support-ticket-tab-meta .id-copy-button.is-copied,
.support-thread-meta .id-copy-button.is-copied {
  background: rgba(97, 243, 179, .16) !important;
  color: #c6ffe8 !important;
}

.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;
}

.admin-support-thread {
  min-height: 520px;
  align-content: start;
  gap: 16px;
}

.admin-support-thread .support-admin-form {
  margin-top: auto;
}

.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-thread__actions .support-hide-form,
.support-thread__actions .support-unhide-form {
  width: auto;
}

.support-thread__actions .support-icon-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  border-radius: 10px;
  padding: 0;
}

.support-thread__actions .support-icon-button:hover {
  border-color: rgba(143, 92, 255, .44);
  background: rgba(143, 92, 255, .12);
  color: #fff;
}

.support-thread__actions .support-icon-button i {
  font-size: 13px;
  line-height: 1;
}

.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 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.support-reply-form textarea {
  min-height: 82px;
}

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

.support-closed-note {
  border: 1px solid rgba(97, 243, 179, .18);
  border-radius: 12px;
  background: rgba(97, 243, 179, .07);
  padding: 12px;
}

.admin-support-panel {
  margin-bottom: 18px;
}

.admin-support-thread {
  border-color: rgba(97, 243, 179, .18);
}

.account-payment-card {
  display: grid;
  gap: 14px;
}

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

.payment-plan {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(143, 92, 255, .20);
  border-radius: 14px;
  background:
    radial-gradient(circle at 10% 0, rgba(143, 92, 255, .16), transparent 42%),
    rgba(255,255,255,.035);
  padding: 14px;
}

.payment-plan.is-featured {
  border-color: rgba(97, 243, 179, .28);
  background:
    radial-gradient(circle at 10% 0, rgba(97, 243, 179, .12), transparent 42%),
    rgba(255,255,255,.035);
}

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

.payment-plan strong {
  color: #fff;
  font-size: 28px;
}

.payment-plan p,
.payment-note span,
.payment-item span {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.promo-redeem-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(143, 92, 255, .18);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0, rgba(97, 243, 179, .08), transparent 34%),
    rgba(255,255,255,.03);
  padding: 14px;
}

.promo-redeem-card strong {
  display: block;
  color: #fff;
  font-size: 15px;
  margin-bottom: 4px;
}

.promo-redeem-card span {
  color: var(--muted);
  line-height: 1.45;
}

.promo-redeem-card form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.promo-redeem-card input {
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  background: rgba(3, 5, 13, .42);
  color: #fff;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 0 12px;
}

.promo-redeem-card button {
  width: max-content;
  min-height: 42px;
  padding: 0 14px;
}

.promo-redeem-message {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px solid rgba(255, 93, 125, .24);
  border-radius: 12px;
  background: rgba(255, 93, 125, .08);
  color: #ffd7df;
  padding: 10px 12px;
}

.promo-redeem-message.is-ok {
  border-color: rgba(97, 243, 179, .24);
  background: rgba(97, 243, 179, .08);
  color: #c6ffe8;
}

.promo-redeem-history {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.promo-redeem-history span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: 12px;
  padding: 0 10px;
}

.payment-plan button,
.payment-item button {
  width: fit-content;
  min-height: 38px;
  border-color: rgba(143, 92, 255, .36);
  background: rgba(143, 92, 255, .12);
  color: #fff;
  cursor: pointer;
  font-weight: 850;
  padding: 0 13px;
}

.payment-note {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255, 197, 92, .24);
  border-radius: 12px;
  background: rgba(255, 197, 92, .08);
  padding: 12px;
}

.payment-note strong {
  color: #ffe4aa;
}

.payment-list {
  display: grid;
  gap: 9px;
}

.payment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.026);
  padding: 10px 12px;
}

.payment-item > div {
  display: grid;
  gap: 4px;
}

.payment-item strong {
  color: #fff;
}

.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-list--admin .credit-ledger-item {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.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__meta {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.credit-ledger-item__meta code {
  border: 1px solid rgba(143, 92, 255, .18);
  border-radius: 8px;
  background: rgba(143, 92, 255, .08);
  color: #d8ccff;
  font-size: 11px;
  padding: 5px 7px;
}

.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;
}

.account-card {
  display: grid;
  align-content: start;
  gap: 16px;
}

.account-key {
  max-width: 100%;
}

.account-key code {
  white-space: normal;
  word-break: break-all;
}

.account-kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.account-kv div,
.account-links a {
  border: 1px solid var(--stroke-2);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  padding: 12px;
}

.account-kv span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.account-kv strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  word-break: break-word;
}

.account-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.account-links {
  display: grid;
  gap: 10px;
}

.account-links a {
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.account-links a:hover {
  border-color: rgba(143, 92, 255, .48);
  background: rgba(143, 92, 255, .10);
}

.account-key-list {
  display: grid;
  gap: 12px;
}

.account-key-item {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(102, 53, 239, .08), transparent 38%),
    rgba(255,255,255,.028);
  padding: 13px;
}

.account-key-item strong {
  display: block;
  color: #fff;
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.2;
}

.account-key-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.account-key-delete {
  width: fit-content;
  min-height: 34px;
  justify-self: start;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 750;
  padding: 0 12px;
}

.account-token-line {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.account-key-item code {
  display: block;
  overflow-x: auto;
  color: #d8ccff;
  font-size: 12px;
}

.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-background-badge {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: auto;
  min-height: 28px;
  max-width: 100%;
  border: 1px solid rgba(143, 92, 255, .22);
  border-radius: 10px;
  background:
    radial-gradient(circle at 0 0, rgba(143, 92, 255, .14), transparent 58%),
    rgba(255,255,255,.035);
  color: #ded4ff;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  padding: 0 10px;
  cursor: zoom-in;
}

.token-background-badge:hover:not(:disabled) {
  border-color: rgba(143, 92, 255, .52);
  background:
    radial-gradient(circle at 0 0, rgba(143, 92, 255, .24), transparent 58%),
    rgba(143, 92, 255, .08);
  color: #fff;
}

.token-background-badge i {
  color: #a986ff;
  font-size: 12px;
}

.token-background-badge span {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.token-background-badge.is-empty {
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.025);
  color: var(--muted);
  cursor: default;
}

.token-background-badge.is-empty i {
  color: var(--muted);
}

.token-background-badge:disabled {
  opacity: .72;
}

.token-color-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: auto;
  min-height: 28px;
  max-width: 100%;
  border-radius: 10px;
  background: rgba(255,255,255,.045);
  color: #ded4ff;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  padding: 0 10px;
}

.token-color-badge i {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  border-radius: 5px;
  background: var(--plate-color, #141414);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}

.token-color-badge span {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.token-color-badge.is-empty {
  color: var(--muted);
}

.token-smoothing-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: auto;
  min-height: 28px;
  max-width: 100%;
  border-radius: 10px;
  background: rgba(97, 243, 179, .09);
  color: #bfffe3;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  padding: 0 10px;
}

.token-mask-only-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: auto;
  min-height: 28px;
  max-width: 100%;
  border-radius: 10px;
  background: rgba(102, 53, 239, .12);
  color: #ded4ff;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  padding: 0 10px;
}

.token-mask-only-badge.is-off {
  background: rgba(255,255,255,.055);
  color: var(--muted);
}

.token-mask-only-badge i {
  font-size: 11px;
}

.token-smoothing-badge.is-off {
  background: rgba(255,255,255,.055);
  color: var(--muted);
}

.token-smoothing-badge i {
  font-size: 11px;
}

.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;
}

.account-plate-color-control {
  margin-top: 2px;
}

.key-color-mini-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.022);
  padding: 9px;
}

.key-color-mini-form label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.key-color-mini-form .key-smoothing-toggle {
  justify-content: flex-start;
}

.key-smoothing-toggle b {
  color: rgba(246,244,255,.86);
  font-size: 11px;
  font-weight: 600;
}

.key-color-mini-form label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.key-color-mini-form input[type="color"] {
  width: 42px;
  height: 34px;
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.key-color-mini-form input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

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

.key-color-mini-form button {
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  background: #6635ef;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0;
  font-weight: 500;
  padding: 0;
  width: 38px;
}

.key-color-mini-form button i {
  font-size: 13px;
}

.key-color-mini-form button:disabled {
  cursor: wait;
  opacity: .72;
}

.admin-color-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.admin-color-value i {
  width: 14px;
  height: 14px;
  border-radius: 5px;
  background: var(--plate-color, #141414);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}

.account-key-item dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin: 0;
}

.account-key-item dl div {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 9px;
}

.account-key-item dt {
  color: var(--muted);
  font-size: 11px;
}

.account-key-item dd {
  margin: 4px 0 0;
  color: #fff;
  font-size: 13px;
}

.webhook-mini-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
}

.webhook-mini-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: auto;
  min-width: 112px;
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  background: rgba(143, 92, 255, .18);
  color: #fff;
  cursor: pointer;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 650;
}

.webhook-mini-form button:hover {
  background: rgba(143, 92, 255, .28);
}

.webhook-mini-form button:disabled {
  cursor: wait;
  opacity: .7;
}

.webhook-test-result {
  grid-column: 1 / -1;
  min-height: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.webhook-test-result.is-success {
  color: #8affc9;
}

.webhook-test-result.is-error {
  color: #ff9fb0;
}

.webhook-test-result.is-loading {
  color: #d8ccff;
}

.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;
}

.account-bg-upload {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 82px;
  border: 1px dashed rgba(143, 92, 255, .46);
  border-radius: 14px;
  background:
    radial-gradient(circle at 18% 10%, rgba(143, 92, 255, .22), transparent 40%),
    rgba(255,255,255,.035);
  cursor: pointer;
  padding: 12px;
}

.account-bg-upload:hover {
  border-color: rgba(143, 92, 255, .78);
  background:
    radial-gradient(circle at 18% 10%, rgba(143, 92, 255, .30), transparent 40%),
    rgba(143, 92, 255, .08);
}

.account-bg-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.account-bg-upload > span {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(143, 92, 255, .36);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(143, 92, 255, .22), rgba(97, 243, 179, .12)),
    rgba(5, 7, 18, .72);
}

.account-bg-upload b,
.account-bg-upload small {
  grid-column: 2;
}

.account-bg-upload b {
  align-self: end;
  color: #fff;
}

.account-bg-upload small {
  align-self: start;
  color: var(--muted);
}

.account-history-card {
  display: grid;
  gap: 16px;
  border-color: rgba(143, 92, 255, .18);
  background:
    radial-gradient(circle at 100% 0, rgba(143, 92, 255, .10), transparent 30%),
    rgba(9, 12, 25, .78);
}

.account-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.account-section-head h2 {
  margin: 0;
}

.account-section-head > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.history-head-summary span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  padding: 0 11px;
}

.history-head-summary b {
  color: #fff;
  font-size: 13px;
}

.account-history {
  display: grid;
  gap: 10px;
}

.history-card {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 9px;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.035), rgba(255,255,255,.012)),
    radial-gradient(circle at 0 0, rgba(143, 92, 255, .13), transparent 36%),
    rgba(8, 11, 24, .72);
  padding: 10px;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.history-card:hover {
  border-color: rgba(143, 92, 255, .28);
  background:
    linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.016)),
    radial-gradient(circle at 0 0, rgba(143, 92, 255, .18), transparent 36%),
    rgba(8, 11, 24, .78);
  transform: translateY(-1px);
}

.history-card.is-failed {
  border-color: rgba(255, 93, 125, .30);
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 93, 125, .12), transparent 38%),
    rgba(8, 11, 24, .72);
}

.history-card__media {
  display: grid;
  gap: 10px;
}

.history-file-panel {
  display: grid;
  align-content: start;
  align-self: start;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background:
    radial-gradient(circle at 0 0, rgba(143, 92, 255, .10), transparent 42%),
    rgba(3, 5, 13, .30);
  padding: 9px;
}

.history-file-panel__info {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 10px;
  min-width: 0;
}

.history-file-panel__info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  min-height: 24px;
}

.history-file-panel__info span i {
  font-size: 11px;
}

.history-file-panel__info strong {
  grid-column: 2;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-file-panel__info em {
  grid-column: 3;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.history-file-panel__info small {
  grid-column: 1 / -1;
  color: #ffd7df;
  font-size: 12px;
  line-height: 1.35;
}

.history-file-panel__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: nowrap;
  margin-top: 0;
}

.history-file-panel__actions button,
.history-file-panel__actions span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  border: 1px solid rgba(143, 92, 255, .20);
  border-radius: 9px;
  background: rgba(143, 92, 255, .06);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 0 10px;
}

.history-file-panel__actions button {
  width: auto;
  cursor: pointer;
}

.history-file-panel__actions button[data-open-image] {
  min-width: 58px;
  height: 30px;
  min-height: 30px;
  border: 0;
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  color: #f7f4ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .01em;
  padding: 0 9px 0 7px;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.history-file-panel__actions button[data-open-image] i {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(255,255,255,.10);
  color: currentColor;
  font-size: 10px;
}

.history-file-panel__actions button[data-open-image^="/originals/"] {
  background: rgba(91, 92, 255, .20);
  color: #e9e9ff;
}

.history-file-panel__actions button[data-open-image^="/results/"] {
  background: rgba(97, 243, 179, .16);
  color: #eafff6;
}

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

.history-file-panel__actions button[data-open-image]:hover {
  transform: translateY(-1px);
}

.history-file-panel__actions button[data-open-image^="/originals/"]:hover {
  background: rgba(91, 92, 255, .30);
}

.history-file-panel__actions button[data-open-image^="/results/"]:hover {
  background: rgba(97, 243, 179, .24);
}

.history-file-panel__actions span {
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
  color: var(--muted);
}

.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-empty--wide {
  min-height: 180px;
  border: 1px dashed rgba(143, 92, 255, .28);
  border-radius: 16px;
}

.history-card__body {
  display: grid;
  align-content: space-between;
  gap: 9px;
}

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

.history-delete-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  min-height: 30px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 93, 125, .12);
  color: #ffb8c6;
  font-size: 11px;
  padding: 0;
  margin-top: 0;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.history-delete-trigger i {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  line-height: 1;
  transform: translateY(.5px);
}

.history-file-panel__actions .history-delete-trigger:hover {
  transform: translateY(-1px);
  background: rgba(255, 93, 125, .22);
  color: #fff;
}

.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-card__title {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 16px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.history-card__body p {
  margin: 6px 0 0;
  color: #ffd7df;
}

.history-classification {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0;
}

.history-classification__item {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 2px 8px;
  min-height: 34px;
  border: 1px solid rgba(143, 92, 255, .24);
  border-radius: 10px;
  background:
    radial-gradient(circle at 16% 20%, rgba(143, 92, 255, .18), transparent 42%),
    rgba(255,255,255,.045);
  padding: 6px 9px;
}

.history-classification__item small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.history-classification__item strong {
  margin: 0;
  color: #fff;
  font-size: 13px;
  line-height: 1.1;
}

.history-classification__item em {
  color: #bba9ff;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.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);
}

.history-model-classes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 7px;
}

.history-model-classes__group {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(255,255,255,.028);
  padding: 7px;
}

.history-model-classes__group > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.history-model-classes__group > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.history-model-classes__group b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 23px;
  max-width: 100%;
  border: 1px solid rgba(143, 92, 255, .20);
  border-radius: 999px;
  background: rgba(143, 92, 255, .08);
  color: #ede8ff;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.1;
  overflow-wrap: anywhere;
  padding: 0 8px;
}

.history-model-classes__group b em {
  color: #adffcf;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
}

.history-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.history-card dl div {
  border: 1px solid var(--stroke-2);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  padding: 8px;
}

.history-card dt {
  color: var(--muted);
  font-size: 11px;
}

.history-card dd {
  margin: 4px 0 0;
  color: #fff;
  font-size: 13px;
  word-break: break-word;
}

.history-card dd a {
  color: #d8ccff;
  font-weight: 900;
  text-decoration: none;
}

.dispute-box {
  display: grid;
  gap: 8px;
}

.dispute-status {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  padding: 12px;
}

.dispute-status--pending {
  border-color: rgba(255, 197, 92, .30);
  background:
    radial-gradient(circle at 0 0, rgba(255, 197, 92, .12), transparent 42%),
    rgba(255,255,255,.035);
}

.dispute-status--approved {
  border-color: rgba(97, 243, 179, .28);
  background:
    radial-gradient(circle at 0 0, rgba(97, 243, 179, .10), transparent 42%),
    rgba(255,255,255,.035);
}

.dispute-status--rejected {
  border-color: rgba(255, 93, 125, .28);
  background:
    radial-gradient(circle at 0 0, rgba(255, 93, 125, .10), transparent 42%),
    rgba(255,255,255,.035);
}

.dispute-status--idle {
  border-style: dashed;
}

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

.dispute-status strong {
  color: #fff;
  font-size: 14px;
}

.dispute-status p,
.dispute-status small {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.dispute-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.dispute-form input {
  min-height: 38px;
}

.dispute-form button {
  width: auto;
  min-height: 38px;
  border-color: rgba(255, 196, 87, .34);
  background: rgba(255, 196, 87, .10);
  color: #ffe3a5;
  font-weight: 700;
  cursor: pointer;
  padding: 0 12px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span,
.pagination strong {
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--stroke-2);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  color: #fff;
  text-decoration: none;
  padding: 0 14px;
}

.pagination span {
  color: var(--muted);
  opacity: .6;
}

.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);
}

.organization-card {
  overflow: hidden;
  margin-bottom: 16px;
  border-color: rgba(143, 92, 255, .28);
  background:
    radial-gradient(circle at 100% 0, rgba(102, 53, 239, .16), transparent 34%),
    rgba(9, 12, 25, .82);
}

.donation-card {
  margin-bottom: 16px;
  border-color: rgba(97, 243, 179, .22);
  background:
    radial-gradient(circle at 92% 8%, rgba(97, 243, 179, .12), transparent 32%),
    rgba(9, 12, 25, .78);
}

.donation-form {
  display: grid;
  gap: 14px;
}

.donation-grid {
  display: grid;
  grid-template-columns: minmax(180px, .45fr) minmax(260px, 1fr);
  gap: 12px;
  align-items: end;
}

.donation-grid .apply-button {
  grid-column: 1 / -1;
  justify-self: end;
  width: auto;
  min-width: 180px;
}

.other-projects-card {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
  border-color: rgba(143, 92, 255, .24);
  background:
    radial-gradient(circle at 92% 8%, rgba(143, 92, 255, .15), transparent 34%),
    rgba(9, 12, 25, .78);
}

.other-projects-card .section-headline {
  margin-bottom: 0;
}

.other-projects-toggle-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
  padding: 14px;
}

.other-projects-toggle-form .ghost-button {
  width: auto;
  min-height: 38px;
  padding: 0 14px;
}

.other-project-create-form,
.other-project-edit-form {
  display: grid;
  grid-template-columns: minmax(170px, .75fr) minmax(220px, 1fr) minmax(220px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
}

.other-project-create-form {
  border: 1px solid rgba(143, 92, 255, .18);
  border-radius: 16px;
  background:
    radial-gradient(circle at 0 0, rgba(143, 92, 255, .12), transparent 38%),
    rgba(255,255,255,.025);
  padding: 14px;
}

.other-project-create-form__wide,
.other-project-edit-form__wide {
  min-width: 0;
}

.other-project-create-form .apply-button {
  width: auto;
  min-width: 142px;
  min-height: 42px;
  padding: 0 14px;
}

.other-project-list {
  display: grid;
  gap: 10px;
}

.other-project-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.035), rgba(255,255,255,.012)),
    rgba(8, 11, 23, .72);
  padding: 12px;
}

.other-project-row.is-muted-row {
  opacity: .66;
}

.other-project-edit-form {
  grid-template-columns: minmax(150px, .75fr) minmax(220px, 1fr) minmax(220px, 1fr) 90px auto auto;
}

.other-project-row__actions {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.other-project-row__actions .ghost-button {
  width: auto;
  min-height: 34px;
  padding: 0 12px;
}

.other-project-open-button,
.other-project-delete-button {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  max-width: 34px;
  max-height: 34px;
  padding: 0;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.other-project-open-button {
  border: 1px solid rgba(143, 92, 255, .24);
  border-radius: 10px;
  background: rgba(143, 92, 255, .10);
  color: #d8ccff;
}

.other-project-open-button:hover {
  transform: translateY(-1px);
  border-color: rgba(143, 92, 255, .50);
  background: rgba(143, 92, 255, .18);
  color: #fff;
}

.other-project-delete-button {
  border: 1px solid rgba(255, 126, 155, .28);
  border-radius: 10px;
  background: rgba(255, 126, 155, .08);
  color: #ff9cac;
  font-size: 14px;
}

.other-project-delete-button i,
.other-project-open-button i {
  display: block;
  font-size: 14px;
  line-height: 1;
}

.other-project-delete-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 126, 155, .54);
  background: rgba(255, 126, 155, .15);
  color: #fff;
}

.other-project-delete-form {
  margin: 0;
}

.organization-form {
  display: grid;
  gap: 12px;
}

.organization-card .section-headline {
  align-items: flex-start;
  margin-bottom: 16px;
}

.organization-card .section-headline h2 {
  margin: 6px 0 7px;
}

.organization-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 0 12px;
  white-space: nowrap;
}

.organization-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffca69;
  box-shadow: 0 0 0 4px rgba(255, 202, 105, .12);
}

.organization-status.is-ready i {
  background: #61f3b3;
  box-shadow: 0 0 0 4px rgba(97, 243, 179, .12);
}

.organization-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin: 0 -22px 18px;
  border: 1px solid var(--stroke);
  background: var(--stroke);
}

.organization-progress div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 9px;
  align-items: center;
  min-height: 66px;
  background: rgba(8, 11, 23, .74);
  padding: 10px 22px;
}

.organization-progress span,
.organization-section__head > span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(143, 92, 255, .13);
  color: #b99eff;
  font-size: 11px;
  font-weight: 900;
}

.organization-progress strong {
  color: #fff;
  font-size: 13px;
}

.organization-progress small {
  grid-column: 2;
  color: var(--muted);
  font-size: 11px;
}

.organization-progress .is-complete span {
  background: rgba(97, 243, 179, .12);
  color: #81f7c4;
}

.organization-section {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: rgba(0, 0, 0, .12);
  padding: 16px;
}

.organization-section__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.organization-section__head h3 {
  margin: 0 0 2px;
  color: #fff;
  font-size: 15px;
}

.organization-section__head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.organization-fields {
  display: grid;
  gap: 12px;
}

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

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

.organization-visibility-section {
  border-color: rgba(97, 243, 179, .13);
  background:
    radial-gradient(circle at 100% 0, rgba(97, 243, 179, .055), transparent 34%),
    rgba(0, 0, 0, .12);
}

.organization-visibility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.organization-visibility-switch {
  align-items: flex-start;
  width: 100%;
  min-height: 72px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  padding: 12px;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.organization-visibility-switch:hover {
  border-color: rgba(143, 92, 255, .28);
  background: rgba(143, 92, 255, .045);
  transform: translateY(-1px);
}

.organization-visibility-switch > span:last-child {
  min-width: 0;
}

.organization-visibility-switch strong {
  line-height: 1.25;
}

.organization-visibility-switch small {
  line-height: 1.35;
}

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

.organization-form textarea {
  display: block;
  width: 100%;
  min-height: 148px;
  border: 1px solid rgba(143, 92, 255, .24);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(143, 92, 255, .05), transparent 40%),
    rgba(4, 7, 17, .58);
  color: #f5f2ff;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.62;
  padding: 14px 15px;
  resize: vertical;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.organization-form textarea:focus {
  border-color: rgba(160, 119, 255, .82);
  outline: none;
  background:
    linear-gradient(180deg, rgba(143, 92, 255, .10), transparent 45%),
    rgba(4, 7, 17, .82);
  box-shadow: 0 0 0 4px rgba(143, 92, 255, .12), inset 0 1px 0 rgba(255,255,255,.05);
}

.organization-copy-field {
  gap: 9px;
  border: 1px solid rgba(255,255,255,.045);
  border-radius: 12px;
  background: rgba(255,255,255,.018);
  padding: 12px;
}

.organization-copy-field > span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.organization-copy-field > span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a986ff;
  box-shadow: 0 0 12px rgba(169, 134, 255, .7);
}

.organization-textarea-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}

.organization-textarea-meta em {
  font-style: normal;
}

.organization-textarea-meta b {
  flex: 0 0 auto;
  color: #bfa8ff;
  font-size: 11px;
}

.advertising-card {
  margin-top: 16px;
  border-color: rgba(97, 243, 179, .18);
  background:
    radial-gradient(circle at 100% 0, rgba(97, 243, 179, .08), transparent 30%),
    rgba(9, 12, 25, .82);
}

.metrics-card {
  margin-top: 16px;
  border-color: rgba(82, 183, 255, .20);
  background:
    radial-gradient(circle at 100% 0, rgba(82, 183, 255, .09), transparent 30%),
    rgba(9, 12, 25, .82);
}

.advertising-card .section-headline {
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 20px;
}

.metrics-card .section-headline {
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 20px;
}

.metrics-card .section-kicker {
  margin-bottom: 15px;
}

.metrics-card .section-headline h2 {
  margin: 0 0 10px;
  line-height: 1.18;
}

.metrics-card .section-headline p:not(.section-kicker) {
  max-width: 700px;
  line-height: 1.55;
}

.advertising-card .section-kicker {
  margin-bottom: 15px;
}

.advertising-card .section-headline h2 {
  margin: 0 0 10px;
  line-height: 1.18;
}

.advertising-card .section-headline p:not(.section-kicker) {
  max-width: 700px;
  line-height: 1.55;
}

.advertising-form {
  display: grid;
  gap: 14px;
}

.ads-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  cursor: pointer;
}

.ads-switch input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  opacity: 0;
}

.ads-switch__track {
  position: relative;
  width: 46px;
  height: 26px;
  flex: 0 0 auto;
  border: 1px solid var(--stroke-2);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  transition: background .18s ease, border-color .18s ease;
}

.ads-switch__track::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #b4aec4;
  transition: transform .18s ease, background .18s ease;
}

.ads-switch input:checked + .ads-switch__track {
  border-color: rgba(97, 243, 179, .62);
  background: rgba(97, 243, 179, .2);
}

.ads-switch input:checked + .ads-switch__track::after {
  transform: translateX(20px);
  background: #8affc9;
}

.ads-switch input:focus-visible + .ads-switch__track {
  box-shadow: 0 0 0 4px rgba(97, 243, 179, .13);
}

.ads-switch > span:last-child {
  display: grid;
  gap: 2px;
}

.ads-switch strong {
  color: #fff;
  font-size: 13px;
}

.ads-switch small,
.ad-code-field small {
  color: var(--muted);
  font-size: 12px;
}

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

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

.ad-code-field {
  align-self: stretch;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: rgba(0,0,0,.12);
  padding: 12px;
}

.ad-code-field textarea {
  width: 100%;
  min-height: 166px;
  border: 1px solid rgba(97, 243, 179, .18);
  border-radius: 8px;
  background: #080b14;
  color: #bff6d8;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.55;
  padding: 12px;
  resize: vertical;
}

.ad-code-field textarea:focus {
  border-color: rgba(97, 243, 179, .65);
  outline: none;
  box-shadow: 0 0 0 4px rgba(97, 243, 179, .10);
}

.advertising-note {
  display: flex;
  gap: 8px;
  border: 1px solid rgba(255, 193, 92, .25);
  border-radius: 10px;
  background: rgba(255, 193, 92, .06);
  color: #ffe2a5;
  font-size: 12px;
  line-height: 1.5;
  padding: 11px 12px;
}

.advertising-note span {
  color: var(--muted);
}

.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;
}

.organization-form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--stroke);
  margin-top: 4px;
  padding-top: 16px;
}

.organization-form__actions > div:first-child {
  display: grid;
  gap: 3px;
}

.organization-page-switch {
  justify-content: flex-start;
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  padding: 10px 12px;
}

.organization-form__actions strong {
  color: #fff;
  font-size: 13px;
}

.organization-form__actions span {
  color: var(--muted);
  font-size: 12px;
}

.organization-form__buttons {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.organization-form__buttons .ghost-button {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  text-decoration: none;
  padding: 0 16px;
}

.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) {
  .organization-progress,
  .organization-fields--three,
  .organization-fields--two,
  .advertising-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .organization-progress {
    margin-right: -16px;
    margin-left: -16px;
  }

  .organization-progress div {
    padding-right: 16px;
    padding-left: 16px;
  }

  .organization-field--wide {
    grid-column: auto;
  }

  .organization-form__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .organization-form__buttons,
  .organization-form__buttons .ghost-button,
  .organization-form__buttons .apply-button {
    width: 100%;
  }

  .organization-form__buttons {
    display: grid;
  }

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

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

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

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

  .payment-control-form,
  .payment-switch-row,
  .payment-setup-actions,
  .payment-setup-grid,
  .payment-credentials-grid,
  .payment-kpis,
  .webhook-kpis {
    grid-template-columns: 1fr;
  }

  .package-create-form,
  .package-row {
    grid-template-columns: 1fr 1fr;
  }

  .package-create-form__hint,
  .package-create-form .apply-button,
  .package-row__price,
  .package-toggle,
  .package-row .ghost-button {
    grid-column: 1 / -1;
  }

  .pricing-settings-card__value {
    justify-items: start;
  }

  .pricing-settings-form .apply-button {
    width: 100%;
  }

  .payment-control-form .apply-button,
  .payment-setup-actions .apply-button,
  .payments-toolbar,
  .payments-toolbar .ghost-button {
    width: 100%;
  }

  .payments-toolbar {
    justify-content: stretch;
  }
}

.admin-head {
  display: grid;
  align-items: start;
  justify-content: stretch;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-head--compact {
  margin-bottom: 12px;
}

.admin-head--compact h1,
.admin-page-title h1 {
  max-width: none;
  margin: 0;
  text-align: left;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.12;
}

.admin-page-title {
  display: grid;
  align-items: start;
  margin: 0;
  min-width: 0;
}

.admin-page-title > div,
.admin-head > div {
  display: grid;
  justify-items: start;
  gap: 8px;
  min-width: 0;
}

.admin-layout {
  --admin-block-gap: 18px;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  min-width: 0;
}

.admin-content {
  display: grid;
  gap: var(--admin-block-gap);
  min-width: 0;
}

.admin-sidebar {
  position: sticky;
  top: 82px;
  display: grid;
  gap: 12px;
  overflow: hidden;
  border: 1px solid rgba(163, 133, 255, .18);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.025)),
    radial-gradient(circle at 18% 0, rgba(143, 92, 255, .30), transparent 36%),
    radial-gradient(circle at 100% 18%, rgba(97, 243, 179, .10), transparent 32%),
    rgba(5, 8, 19, .92);
  box-shadow: 0 30px 90px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.08);
  padding: 10px;
}

.admin-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.75), transparent 58%);
}

.admin-sidebar > * {
  position: relative;
  z-index: 1;
}

.admin-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
  padding: 10px;
}

.admin-sidebar__brand i {
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: linear-gradient(135deg, #8f5cff, #4d24dc);
  box-shadow: 0 0 34px rgba(143, 92, 255, .40);
  color: #fff;
  font-size: 13px;
  font-style: normal;
  font-weight: 1000;
  letter-spacing: .08em;
}

.admin-sidebar__brand div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-sidebar__brand strong {
  color: #fff;
  font-size: 17px;
  line-height: 1;
}

.admin-sidebar__brand span {
  color: var(--muted);
  font-size: 12px;
}

.admin-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-sidebar__nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
  color: rgba(246, 243, 255, .72);
  text-decoration: none;
  padding: 9px 10px 9px 12px;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.admin-sidebar__nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    radial-gradient(circle at 0 50%, rgba(143, 92, 255, .28), transparent 48%),
    linear-gradient(90deg, rgba(143, 92, 255, .18), rgba(97, 243, 179, .05));
  transition: opacity .18s ease;
}

.admin-sidebar__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 999px 999px 0;
  opacity: 0;
  background: #8f5cff;
  box-shadow: 0 0 22px rgba(143, 92, 255, .85);
  transition: opacity .18s ease;
}

.admin-sidebar__nav a:hover,
.admin-sidebar__nav a.is-active {
  border-color: rgba(163, 133, 255, .36);
  background: rgba(143, 92, 255, .10);
  color: #fff;
  transform: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 12px 28px rgba(0,0,0,.18);
}

.admin-sidebar__nav a:hover::before,
.admin-sidebar__nav a.is-active::before,
.admin-sidebar__nav a.is-active::after {
  opacity: 1;
}

.admin-sidebar__nav a > i {
  position: relative;
  z-index: 1;
  display: none;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  background: rgba(3, 5, 13, .42);
  color: rgba(203, 188, 255, .88);
  font-size: 11px;
  font-style: normal;
  font-weight: 1000;
  letter-spacing: .06em;
}

.admin-sidebar__nav a.is-active > i {
  border-color: rgba(143, 92, 255, .42);
  background: linear-gradient(135deg, rgba(143, 92, 255, .85), rgba(77, 36, 220, .75));
  color: #fff;
  box-shadow: 0 0 26px rgba(143, 92, 255, .34);
}

.admin-sidebar__nav span {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3px;
  min-width: 0;
  text-align: left;
}

.admin-sidebar__nav span strong {
  overflow: hidden;
  color: inherit;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-sidebar__nav small {
  overflow: hidden;
  color: rgba(167, 162, 188, .78);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-sidebar__nav b {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffcf70, #ff7e9b);
  box-shadow: 0 0 24px rgba(255, 126, 155, .26);
  color: #fff;
  font-size: 11px;
  font-weight: 1000;
}

.admin-page [data-admin-panel] {
  display: none;
}

.admin-section-dashboard [data-admin-panel="dashboard"],
.admin-section-status [data-admin-panel="status"],
.admin-section-pages [data-admin-panel="pages"],
.admin-section-blog [data-admin-panel="blog"],
.admin-section-billing [data-admin-panel="billing"],
.admin-section-promocodes [data-admin-panel="promocodes"],
.admin-section-support [data-admin-panel="support"],
.admin-section-feedback [data-admin-panel="feedback"],
.admin-section-users [data-admin-panel="users"],
.admin-section-disputes [data-admin-panel="disputes"],
.admin-section-history [data-admin-panel="history"],
.admin-section-legal [data-admin-panel="legal"],
.admin-section-monetization [data-admin-panel="monetization"],
.admin-section-projects [data-admin-panel="projects"] {
  display: grid;
}

.admin-overview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-overview-grid a {
  display: grid;
  gap: 8px;
  min-height: 132px;
  border: 1px solid rgba(143, 92, 255, .22);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0, rgba(97, 243, 179, .10), transparent 34%),
    rgba(9, 12, 25, .74);
  color: var(--muted);
  text-decoration: none;
  padding: 16px;
}

.admin-overview-grid a:hover {
  border-color: rgba(143, 92, 255, .48);
  background: rgba(143, 92, 255, .12);
}

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

.admin-overview-grid span {
  color: var(--muted);
  line-height: 1.45;
}

.admin-page .apply-button,
.admin-page .ghost-button,
.admin-page button,
.admin-page a[class*="button"] {
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.admin-page .apply-button:not(:disabled):not(.is-disabled):hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #8b5cff, #5b2fff);
  color: #fff;
  box-shadow: 0 18px 48px rgba(100, 54, 245, .46);
}

.admin-page .ghost-button:not(:disabled):not(.is-disabled):hover {
  transform: translateY(-1px);
  border-color: rgba(143, 92, 255, .58);
  background: rgba(143, 92, 255, .13);
  color: #fff;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .20);
}

.admin-page .danger.ghost-button:not(:disabled):not(.is-disabled):hover,
.admin-page .danger-button:not(:disabled):not(.is-disabled):hover {
  border-color: rgba(255, 126, 155, .58);
  background: rgba(255, 126, 155, .14);
  color: #fff;
}

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

.maintenance-card {
  border-color: rgba(255, 93, 125, .20);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 93, 125, .09), transparent 34%),
    rgba(9, 12, 25, .84);
}

.maintenance-card .section-headline {
  align-items: flex-start;
}

.maintenance-result {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 12px;
}

.maintenance-result.success {
  border-color: rgba(97, 243, 179, .26);
  background: rgba(97, 243, 179, .07);
}

.maintenance-result.danger {
  border-color: rgba(255, 93, 125, .30);
  background: rgba(255, 93, 125, .08);
}

.maintenance-result strong {
  color: #fff;
}

.maintenance-result span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.maintenance-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid rgba(255, 93, 125, .36);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 93, 125, .24), rgba(128, 31, 54, .58));
  color: #fff;
  cursor: pointer;
  padding: 0 16px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.danger-button:hover {
  border-color: rgba(255, 93, 125, .62);
  box-shadow: 0 12px 30px rgba(255, 93, 125, .16);
  transform: translateY(-1px);
}

.database-dumps {
  display: grid;
  gap: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 4px;
  padding-top: 16px;
}

.database-dumps__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.database-dumps__head h3 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 17px;
}

.database-dumps__head p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.database-dumps__head .ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-height: 40px;
  text-decoration: none;
  white-space: nowrap;
  padding: 0 14px;
}

.database-import-form {
  grid-template-columns: minmax(280px, 1fr) minmax(170px, 240px) auto auto;
  align-items: end;
}

.dump-upload-zone {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 78px;
  border: 1px dashed rgba(143, 92, 255, .42);
  border-radius: 14px;
  background:
    radial-gradient(circle at 0 0, rgba(143, 92, 255, .12), transparent 42%),
    rgba(255,255,255,.022);
  cursor: pointer;
  color: inherit;
  text-align: left;
  padding: 14px;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.dump-upload-zone:hover,
.dump-upload-zone.is-active,
.dump-upload-zone.has-file {
  border-color: rgba(143, 92, 255, .72);
  background:
    radial-gradient(circle at 0 0, rgba(143, 92, 255, .18), transparent 44%),
    rgba(143, 92, 255, .055);
  box-shadow: 0 16px 34px rgba(42, 16, 102, .18);
}

.dump-upload-zone.is-active {
  transform: translateY(-1px);
}

.dump-file-input {
  display: none !important;
}

.dump-file-input:focus-visible + .dump-upload-zone {
  border-color: rgba(143, 92, 255, .82);
  box-shadow: 0 0 0 4px rgba(143, 92, 255, .14);
}

.dump-upload-zone input {
  appearance: none;
  display: none;
  width: 0;
  height: 0;
  opacity: 0;
  font-size: 0;
}

.dump-upload-zone input::file-selector-button {
  display: none;
}

.dump-upload-zone__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(143, 92, 255, .32);
  border-radius: 14px;
  background: rgba(143, 92, 255, .10);
  color: #c6b5ff;
  font-size: 18px;
}

.dump-upload-zone__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dump-upload-zone__copy b {
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dump-upload-zone__copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.dump-clear-button {
  width: auto;
  min-height: 44px;
  padding: 0 12px;
}

.admin-head p:not(.eyebrow) {
  max-width: 780px;
  margin-bottom: 0;
}

.admin-stats,
.admin-grid {
  display: grid;
  gap: var(--admin-block-gap);
  margin-bottom: 0;
  min-width: 0;
}

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

.admin-stats article {
  display: grid;
  gap: 8px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background:
    radial-gradient(circle at 16% 20%, rgba(143, 92, 255, .16), transparent 44%),
    rgba(9, 12, 25, .72);
  box-shadow: var(--shadow);
  padding: 16px;
}

.admin-stats article.attention {
  border-color: rgba(255, 197, 92, .34);
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 197, 92, .18), transparent 46%),
    rgba(9, 12, 25, .74);
}

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

.admin-stats strong {
  color: #fff;
  font-size: 30px;
}

.admin-grid {
  grid-template-columns: 1fr;
  align-items: start;
}

.pricing-settings-card {
  margin-bottom: 16px;
  border-color: rgba(143, 92, 255, .30);
  background:
    radial-gradient(circle at 100% 0, rgba(143, 92, 255, .13), transparent 30%),
    rgba(9, 12, 25, .82);
}

.pricing-settings-card .section-headline {
  align-items: flex-start;
  margin-bottom: 18px;
}

.pricing-settings-card .section-kicker {
  margin-bottom: 14px;
}

.pricing-settings-card .section-headline h2 {
  margin: 0 0 9px;
}

.pricing-settings-card .section-headline p:not(.section-kicker) {
  max-width: 760px;
  line-height: 1.55;
}

.pricing-settings-card__value {
  display: grid;
  justify-items: end;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.pricing-settings-card__value small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.pricing-settings-form {
  display: grid;
  grid-template-columns: minmax(180px, 230px) minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
}

.pricing-settings-form__note {
  display: grid;
  gap: 4px;
  min-height: 44px;
  border-left: 2px solid rgba(143, 92, 255, .55);
  padding: 3px 0 3px 12px;
}

.pricing-settings-form__note strong {
  color: #fff;
  font-size: 13px;
}

.pricing-settings-form__note span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.pricing-settings-form .apply-button {
  width: auto;
  min-width: 154px;
  padding: 0 16px;
}

.packages-card {
  margin-bottom: 16px;
}

.packages-card .section-kicker {
  margin-bottom: 14px;
}

.packages-card .section-headline h2 {
  margin: 0 0 9px;
}

.packages-card .section-headline p:not(.section-kicker) {
  max-width: 760px;
  line-height: 1.55;
}

.package-create-form,
.package-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.2fr) minmax(110px, .5fr) minmax(150px, .8fr) auto;
  align-items: end;
  gap: 12px;
}

.package-create-form {
  border-bottom: 1px solid var(--stroke);
  margin-bottom: 12px;
  padding-bottom: 16px;
}

.package-create-form__hint {
  display: grid;
  gap: 3px;
  min-height: 44px;
  border-left: 2px solid rgba(97, 243, 179, .52);
  padding: 3px 0 3px 11px;
}

.package-create-form__hint strong {
  color: #caffea;
  font-size: 12px;
}

.package-create-form__hint span {
  color: var(--muted);
  font-size: 11px;
}

.package-create-form .apply-button {
  width: auto;
  min-width: 152px;
  padding: 0 16px;
}

.package-list {
  display: grid;
  gap: 8px;
}

.package-row {
  grid-template-columns: minmax(180px, 1fr) minmax(100px, .45fr) minmax(90px, .35fr) minmax(94px, .4fr) minmax(100px, .55fr) auto;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: rgba(255,255,255,.02);
  padding: 10px;
}

.package-row.is-inactive {
  opacity: .55;
}

.package-row .field {
  gap: 5px;
}

.package-row .field span {
  color: var(--muted);
  font-size: 10px;
}

.package-row input {
  min-height: 38px;
}

.package-row__price {
  display: grid;
  align-self: end;
  min-height: 38px;
  padding: 4px 0;
}

.package-row__price strong {
  color: #fff;
  font-size: 14px;
}

.package-row__price span {
  color: var(--muted);
  font-size: 10px;
}

.package-toggle {
  display: inline-flex;
  align-items: center;
  align-self: end;
  gap: 7px;
  min-height: 38px;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
}

.package-toggle input {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  min-height: 1px !important;
  margin: -1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  accent-color: #8453ff;
}

.package-toggle > span {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 22px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.package-toggle > span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255,255,255,.86);
  box-shadow: 0 5px 14px rgba(0,0,0,.24);
  transform: translateY(-50%);
  transition: transform .18s ease, background .18s ease;
}

.package-toggle input:checked + span {
  border-color: rgba(97, 243, 179, .52);
  background: rgba(97, 243, 179, .18);
  box-shadow: 0 0 0 3px rgba(97, 243, 179, .08);
}

.package-toggle input:checked + span::after {
  background: #d9ffef;
  transform: translate(16px, -50%);
}

.package-toggle input:focus-visible + span {
  outline: 2px solid rgba(143, 92, 255, .75);
  outline-offset: 2px;
}

.package-row .ghost-button {
  width: auto;
  min-height: 38px;
  padding: 0 12px;
}

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

.payment-control-form {
  display: grid;
  gap: 14px;
}

.payment-switch-row,
.payment-setup-actions {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(180px, 240px) minmax(0, 1fr);
  align-items: end;
  gap: 14px;
}

.payment-setup-actions {
  grid-template-columns: minmax(0, 1fr) auto;
}

.payment-control-toggle {
  justify-content: flex-start;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
  padding: 0 12px;
}

.payment-control-form .apply-button {
  width: auto;
  min-width: 154px;
  padding: 0 16px;
}

.payment-setup-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 14px;
}

.payment-setup-grid--simple {
  grid-template-columns: minmax(260px, .82fr) minmax(0, 1.18fr);
}

.payment-setup-step {
  display: grid;
  gap: 12px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: rgba(255,255,255,.024);
  padding: 16px;
}

.payment-setup-step h3 {
  margin: -4px 0 2px;
  color: #fff;
  font-size: 18px;
}

.payment-setup-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.payment-smart-card {
  align-content: start;
  background:
    radial-gradient(circle at 16% 0%, rgba(143, 92, 255, .18), transparent 38%),
    rgba(255,255,255,.024);
}

.payment-smart-note {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  border: 1px solid rgba(143, 92, 255, .20);
  border-radius: 12px;
  background: rgba(143, 92, 255, .08);
  color: #dcd4ff;
  padding: 10px;
  font-size: 12px;
  line-height: 1.4;
}

.payment-smart-note i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(143, 92, 255, .16);
  color: #bda5ff;
}

.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;
}

.payment-credentials-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.payment-secret-field {
  grid-column: auto;
}

.secret-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 8px;
  align-items: center;
}

.secret-input-row .copy-token-button {
  width: 36px;
  height: 36px;
}

.secret-input-row .copy-token-button:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.payments-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.payments-toolbar .ghost-button {
  width: auto;
  min-height: 34px;
  padding: 0 12px;
}

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

.payment-kpis article {
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
  padding: 14px;
}

.payment-kpis span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.payment-kpis strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 22px;
}

.webhook-log-card {
  gap: 16px;
}

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

.webhook-kpis article {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background:
    radial-gradient(circle at 100% 0, rgba(143, 92, 255, .10), transparent 36%),
    rgba(255,255,255,.026);
  padding: 13px;
}

.webhook-kpis article.attention {
  border-color: rgba(255, 196, 87, .25);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 196, 87, .12), transparent 36%),
    rgba(255, 196, 87, .045);
}

.webhook-kpis span,
.webhook-kpis small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.webhook-kpis span {
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.webhook-kpis strong {
  display: block;
  margin: 6px 0 3px;
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.webhook-log-list {
  display: grid;
  gap: 10px;
}

.webhook-log-item {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}

.webhook-log-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.webhook-log-main > div {
  min-width: 0;
  text-align: right;
}

.webhook-log-main strong {
  display: block;
  color: #fff;
  font-size: 15px;
}

.webhook-log-main span:not(.status-pill) {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.webhook-log-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.webhook-log-meta div {
  min-width: 0;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.03);
}

.webhook-log-meta dt {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.webhook-log-meta dd {
  margin: 0;
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
}

.webhook-log-meta dd span,
.webhook-log-message {
  color: var(--muted);
}

.webhook-log-message {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  font-size: 12px;
}

.webhook-log-payload {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 10px;
}

.webhook-log-payload summary {
  width: fit-content;
  cursor: pointer;
  color: #d8ccff;
  font-size: 12px;
  font-weight: 900;
}

.webhook-log-payload pre {
  max-height: 260px;
  margin: 10px 0 0;
  border: 1px solid rgba(143, 92, 255, .16);
  border-radius: 10px;
  background: rgba(3, 5, 13, .58);
  color: #d8d3e6;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 12px;
}

.is-muted-row {
  opacity: .58;
}

.is-muted-row:hover {
  opacity: .82;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.admin-form .apply-button {
  grid-column: 1 / -1;
  width: fit-content;
  min-width: 180px;
  justify-self: end;
  align-self: end;
}

@media (max-width: 1180px) {
  .admin-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.admin-form .admin-payment-note {
  grid-column: 1 / -1;
  margin-top: 2px;
}

.admin-payment-note {
  display: grid;
  gap: 6px;
  margin-top: 0;
  border: 1px solid rgba(97, 243, 179, .20);
  border-radius: 12px;
  background: rgba(97, 243, 179, .07);
  padding: 12px;
}

.admin-payment-note strong {
  color: #c6ffe8;
  font-size: 13px;
}

.admin-payment-note span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.admin-users-card {
  display: grid;
  gap: 16px;
}

.admin-users-list {
  display: grid;
  gap: 14px;
}

.admin-user-card {
  display: grid;
  gap: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(143, 92, 255, .14), transparent 34%),
    linear-gradient(135deg, rgba(18, 22, 42, .72), rgba(8, 10, 22, .86));
  padding: 15px;
}

.admin-user-card__head,
.admin-user-card__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.admin-user-card__actions {
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
}

.admin-user-card__identity {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-width: 0;
}

.admin-user-card__identity .admin-user-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(143, 92, 255, .28);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(143, 92, 255, .88), rgba(97, 243, 179, .20));
  color: #fff;
  font-size: 15px;
  font-weight: 1000;
  line-height: 1;
  text-align: center;
  white-space: normal;
  padding-top: 1px;
}

.admin-user-card__identity strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-card__identity span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-card__badges {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-user-card__badges code {
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  color: #d8ccff;
  font-size: 11px;
  font-weight: 900;
  padding: 0 10px;
}

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

.admin-user-card__stats div {
  display: grid;
  gap: 4px;
  min-height: 82px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 14px;
  background: rgba(3, 5, 13, .28);
  padding: 12px;
}

.admin-user-card__stats span,
.admin-user-credit-form span {
  color: rgba(231,231,231,.58);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.admin-user-card__stats strong {
  color: #fff;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1;
}

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

.admin-user-credit-form {
  display: grid;
  grid-template-columns: 140px minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: end;
  min-width: 0;
  width: 100%;
}

.admin-user-credit-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-user-credit-form input {
  min-height: 38px;
  border-radius: 10px;
}

.admin-user-credit-form .apply-button {
  width: max-content;
  min-height: 38px;
  justify-self: end;
  align-self: end;
  padding: 0 14px;
}

.admin-user-card__controls {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-user-card__controls form {
  width: auto;
}

.admin-user-card__controls .ghost-button {
  width: max-content;
  min-height: 38px;
  padding: 0 12px;
}

.admin-api-card {
  display: grid;
  gap: 16px;
}

.admin-api-list {
  display: grid;
  gap: 14px;
}

.admin-api-key-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(97, 243, 179, .10), transparent 34%),
    linear-gradient(135deg, rgba(18, 22, 42, .72), rgba(8, 10, 22, .86));
  padding: 15px;
}

.admin-api-key-card__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.admin-api-key-card__identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.admin-api-key-card__identity .switch-form {
  width: auto;
}

.admin-api-key-card__identity strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-api-key-card__identity span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-api-key-card__token {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.admin-api-key-card__token .token-chip {
  max-width: min(360px, 100%);
}

.admin-api-key-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-api-key-card__stats div {
  display: grid;
  gap: 4px;
  min-height: 78px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 14px;
  background: rgba(3, 5, 13, .28);
  padding: 12px;
}

.admin-api-key-card__stats span,
.admin-api-credit-form span {
  color: rgba(231,231,231,.58);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.admin-api-key-card__stats strong {
  color: #fff;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1;
}

.admin-api-key-card__stats small {
  color: var(--muted);
  font-size: 12px;
}

.admin-api-credit-form {
  display: grid;
  grid-template-columns: 140px minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: end;
  width: 100%;
  min-width: 0;
}

.admin-api-credit-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-api-credit-form input {
  min-height: 38px;
  border-radius: 10px;
}

.admin-api-credit-form .apply-button {
  width: max-content;
  min-height: 38px;
  justify-self: end;
  align-self: end;
  padding: 0 14px;
}

.admin-shell .table-card > h2 {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
  color: #fff;
  font-size: 20px;
  line-height: 1.15;
}

.admin-shell .table-card > h2::after {
  content: "";
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(143, 92, 255, .46), rgba(255,255,255,.08), transparent);
}

.admin-create-card {
  position: static;
}

.admin-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}

[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;
}

.history-empty td {
  color: var(--muted);
  text-align: center;
  padding: 28px 16px;
}

.feedback-admin-card {
  margin-bottom: 16px;
}

.feedback-admin-card .section-headline {
  align-items: flex-start;
  margin-bottom: 16px;
}

.feedback-table td {
  vertical-align: top;
}

.feedback-table a {
  color: #cbbcff;
  text-decoration: none;
}

.feedback-table a:hover {
  color: #fff;
}

.feedback-message {
  display: -webkit-box;
  max-width: 460px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.45;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

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

.feedback-status-form .ghost-button {
  width: max-content;
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.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;
}

.switch-form {
  display: inline-flex;
  align-items: center;
}

.admin-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  cursor: pointer;
  user-select: none;
}

.admin-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-switch span {
  position: relative;
  width: 44px;
  height: 24px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255, 93, 125, .16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.admin-switch span::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 5px 12px rgba(0,0,0,.34);
  transition: transform .18s ease;
}

.admin-switch input:checked + span {
  border-color: rgba(97, 243, 179, .48);
  background: rgba(97, 243, 179, .18);
  box-shadow: 0 0 22px rgba(97, 243, 179, .12), inset 0 1px 0 rgba(255,255,255,.10);
}

.admin-switch input:checked + span::before {
  transform: translateX(20px);
}

.admin-switch b {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.admin-switch input:checked ~ b {
  color: #c6ffe8;
}

.admin-switch--icon {
  justify-content: center;
  min-width: 44px;
}

.switch-form.is-saving {
  opacity: .65;
  pointer-events: none;
}

.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);
}

.badge-button {
  width: auto;
  min-height: 28px;
  cursor: pointer;
  white-space: nowrap;
}

.badge-button:hover {
  border-color: rgba(255,255,255,.34);
  filter: brightness(1.12);
}

.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);
}

.dispute-cell {
  min-width: 118px;
}

.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;
}

.admin-content > [data-admin-panel] {
  margin-top: 0;
  margin-bottom: 0;
}

.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;
}

.admin-search {
  display: grid;
  gap: 6px;
  min-width: min(360px, 100%);
}

.admin-search span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-search input {
  min-height: 40px;
  border-radius: 12px;
}

.dispute-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.dispute-kpis article {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  padding: 12px;
}

.dispute-kpis span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.dispute-kpis strong {
  color: #fff;
  font-size: 24px;
}

.admin-review-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 110;
  display: none !important;
  place-items: center;
  padding: 24px;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.admin-review-modal.is-open {
  display: grid !important;
}

.admin-review-modal[hidden] {
  display: none !important;
}

.admin-review-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 8%, rgba(143, 92, 255, .16), transparent 34%),
    rgba(1, 2, 8, .82);
  backdrop-filter: blur(16px);
}

.admin-review-modal__panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  width: min(1120px, 96vw);
  max-height: 92vh;
  overflow: auto;
  border: 1px solid rgba(143, 92, 255, .28);
  border-radius: 18px;
  background:
    radial-gradient(circle at 10% 0, rgba(143, 92, 255, .20), transparent 36%),
    #090c19;
  box-shadow: 0 34px 120px rgba(0,0,0,.70);
  padding: 22px;
}

.admin-review-media {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, .9fr) minmax(130px, .42fr);
  gap: 10px;
}

.admin-review-media figure {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
}

.admin-review-media figure > span {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  min-height: 26px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(5, 7, 17, .72);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 0 9px;
  backdrop-filter: blur(10px);
}

.admin-review-media button,
.admin-review-empty {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 158px;
  border: 1px solid rgba(143, 92, 255, .18);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.015)),
    rgba(2, 4, 11, .72);
  overflow: hidden;
  padding: 0;
}

.admin-review-media button {
  position: relative;
  cursor: zoom-in;
}

.admin-review-media button::after {
  content: "Открыть";
  position: absolute;
  right: 9px;
  bottom: 9px;
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(5, 7, 17, .74);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 0 10px;
  opacity: .86;
  backdrop-filter: blur(10px);
}

.admin-review-media button:hover {
  border-color: rgba(143, 92, 255, .44);
}

.admin-review-media button:hover::after {
  opacity: 1;
  border-color: rgba(143, 92, 255, .48);
  background: rgba(143, 92, 255, .28);
}

.admin-review-media img {
  display: block;
  width: 100%;
  height: 176px;
  object-fit: contain;
  background: #050711;
}

.admin-review-mask img {
  height: 176px;
  object-fit: contain;
  image-rendering: auto;
}

.admin-review-empty {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  padding: 18px;
}

.admin-review-media figcaption {
  display: flex;
  justify-content: center;
}

.admin-review-media figcaption a {
  color: #d8cffd;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.admin-review-media figcaption a:hover {
  color: #fff;
}

.admin-review-modal__close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 38px;
  min-height: 38px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  cursor: pointer;
  padding: 0;
}

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

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

.admin-review-modal__head,
.admin-review-actions,
.review-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-review-modal__head {
  justify-content: space-between;
  padding-right: 46px;
}

.admin-review-modal__head h3 {
  margin: 4px 0 0;
  color: #fff;
  font-size: 22px;
}

.admin-review-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 14px;
}

.admin-review-grid section {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  padding: 14px;
}

.admin-review-grid h4 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 14px;
}

.admin-review-grid p {
  margin: 0 0 12px;
  color: #ded8f4;
}

.admin-review-grid dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.admin-review-grid dl div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
}

.admin-review-grid dt {
  color: var(--muted);
  font-size: 12px;
}

.admin-review-grid dd {
  margin: 0;
  color: #fff;
  font-size: 13px;
}

.review-message {
  min-height: 86px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(0,0,0,.18);
  padding: 12px;
  line-height: 1.5;
}

.review-links a {
  min-height: 34px;
  border: 1px solid rgba(143, 92, 255, .24);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  padding: 7px 11px;
}

.admin-review-details {
  margin-top: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(0,0,0,.14);
  overflow: hidden;
}

.admin-review-details summary {
  cursor: pointer;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  padding: 10px 12px;
}

.admin-review-details pre {
  max-height: 180px;
  margin: 0;
  overflow: auto;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #cfc7ea;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  padding: 12px;
}

.admin-review-details p {
  margin: 0;
  border-top: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
  padding: 10px 12px 12px;
}

.admin-review-actions {
  justify-content: flex-end;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 16px;
}

.admin-review-actions form {
  margin: 0;
}

.admin-review-actions button {
  width: auto;
}

.admin-review-done {
  border: 1px solid rgba(97, 243, 179, .22);
  border-radius: 12px;
  background: rgba(97, 243, 179, .08);
  color: #c6ffe8;
  padding: 12px;
}

.admin-dispute-empty {
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.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;
  }

  .account-onboarding-grid {
    grid-template-columns: 1fr 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;
  }

  .account-onboarding {
    padding: 14px;
  }

  .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;
  }

  .account-shell {
    gap: 20px;
  }

  .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;
  }

  .admin-user-card__badges,
  .admin-user-card__controls,
  .admin-api-key-card__token {
    justify-content: flex-start;
  }

  .admin-user-credit-form .apply-button,
  .admin-api-credit-form .apply-button,
  .admin-user-card__controls .ghost-button {
    width: 100%;
  }

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

  .webhook-log-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .webhook-log-main > div {
    text-align: left;
  }

  .history-classification {
    display: grid;
    gap: 8px;
  }

  .history-classification__item {
    width: 100%;
  }

  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .admin-stats.account-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .admin-stats article {
    min-height: 112px;
    padding: 14px;
  }

  .admin-stats.account-stats article {
    min-height: 104px;
  }

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

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

  .admin-sidebar {
    position: relative;
    width: 100%;
    min-width: 0;
    margin-bottom: 14px;
    padding: 10px;
  }

  .admin-sidebar__brand {
    padding-bottom: 10px;
  }

  .admin-sidebar__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    padding-bottom: 0;
  }

  .admin-sidebar__nav::-webkit-scrollbar {
    display: none;
  }

  .admin-sidebar__nav a {
    width: 100%;
    max-width: none;
    min-height: 48px;
    padding: 9px 10px;
  }

  .admin-sidebar__nav small {
    display: none;
  }

  .admin-sidebar__nav a:hover,
  .admin-sidebar__nav a.is-active {
    transform: none;
  }

  .admin-content,
  .admin-content > *,
  .admin-page-title,
  .admin-shell .table-card,
  .admin-create-card {
    max-width: 100%;
    min-width: 0;
  }

  .admin-page-title h1,
  .admin-shell .table-card > h2 {
    overflow-wrap: anywhere;
  }

  .admin-support-thread .support-admin-form {
    grid-template-columns: 1fr;
  }

  .support-admin-form__footer {
    grid-template-columns: 1fr;
  }

  .support-admin-form__footer .apply-button {
    width: 100%;
    min-width: 0;
  }

  .admin-form {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

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

  .account-grid--keys .admin-form .apply-button {
    width: 100%;
    min-width: 0;
    justify-self: stretch;
  }

  .account-background-panel .background-grid {
    grid-template-columns: 1fr 1fr;
  }

  .support-create-form--pro {
    grid-template-columns: 1fr;
  }

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

  .support-create-form--pro .apply-button {
    width: auto;
    max-width: 100%;
    justify-self: end;
  }

  .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;
  }

  .admin-search {
    min-width: 0;
  }

  .admin-review-modal {
    padding: 10px;
  }

  .admin-review-modal__panel {
    border-radius: 14px;
    padding: 18px;
  }

  .admin-review-modal__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-review-grid dl div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .admin-review-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-review-actions button {
    width: 100%;
  }

  .account-hero {
    display: grid;
    align-items: start;
    padding: 18px;
  }

  .account-hero-panel {
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .account-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .history-card {
    gap: 10px;
    padding: 10px;
  }

  .history-file-panel {
    gap: 9px;
  }

  .history-delete-trigger {
    width: 30px;
    height: 30px;
    min-height: 30px;
    font-size: 12px;
  }

  .account-cta {
    width: 100%;
  }

  .admin-review-media {
    grid-template-columns: 1fr;
  }

  .admin-review-media img,
  .admin-review-mask img {
    height: min(320px, 58vw);
  }

  .admin-create-card {
    position: static;
  }

  .admin-stats strong {
    font-size: 24px;
  }

  .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;
  }

  .confirm-modal {
    align-items: end;
    padding: 10px;
  }

  .confirm-modal__panel {
    border-radius: 16px;
    padding: 20px;
  }

  .confirm-modal__panel h2 {
    max-width: calc(100% - 42px);
    font-size: 21px;
  }

  .confirm-modal__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .confirm-modal__actions form,
  .confirm-modal__actions button,
  .confirm-modal__actions .ghost-button {
    width: 100%;
  }

  .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;
  }
}

/* Final admin panel override */
.admin-page {
  background:
    radial-gradient(circle at 18% 0, rgba(102, 53, 239, .18), transparent 32%),
    radial-gradient(circle at 92% 12%, rgba(97, 243, 179, .08), transparent 30%),
    #050711;
}

.admin-shell {
  width: min(1500px, calc(100% - (var(--page-gutter) * 2)));
  padding-top: 24px;
}

.admin-layout {
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.admin-content {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.admin-sidebar {
  top: 18px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(17, 20, 39, .94), rgba(8, 10, 22, .92)),
    rgba(8, 10, 22, .92);
  box-shadow: 0 22px 70px rgba(0,0,0,.34);
  padding: 14px;
}

.admin-sidebar__brand {
  min-height: 58px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  padding: 10px;
}

.admin-sidebar__brand i {
  display: inline-grid;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 12px;
}

.admin-sidebar__brand strong {
  font-size: 16px;
}

.admin-sidebar__brand span {
  font-size: 11px;
}

.admin-sidebar__nav {
  gap: 7px;
}

.admin-sidebar__nav a {
  min-height: 44px;
  border-radius: 12px;
  padding: 8px 10px;
}

.admin-sidebar__nav a > i {
  display: inline-grid;
  flex-basis: 30px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.admin-sidebar__nav span {
  gap: 0;
}

.admin-sidebar__nav span strong {
  font-size: 13px;
  line-height: 1.2;
}

.admin-sidebar__nav small {
  display: none;
}

.admin-sidebar__nav a.is-active {
  border-color: rgba(143, 92, 255, .58);
  background:
    linear-gradient(90deg, rgba(102, 53, 239, .28), rgba(97, 243, 179, .05)),
    rgba(255,255,255,.035);
}

.admin-head,
.admin-page-title {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(143, 92, 255, .20), transparent 30%),
    linear-gradient(135deg, rgba(15, 18, 34, .92), rgba(7, 9, 20, .82));
  box-shadow: 0 18px 48px rgba(0,0,0,.22);
  padding: 18px 20px;
}

.admin-page-title h1,
.admin-head h1 {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.05;
}

.admin-page-title h1::after,
.admin-head h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8f5cff, #61f3b3);
  box-shadow: 0 0 24px rgba(143, 92, 255, .44);
}

.admin-head .section-kicker,
.admin-page-title .section-kicker {
  margin: 0;
  min-height: 24px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 10px;
  letter-spacing: .12em;
}

.admin-shell .table-card {
  border-color: rgba(255,255,255,.085);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(143, 92, 255, .08), transparent 28%),
    rgba(9, 12, 25, .80);
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
}

.section-headline {
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding-bottom: 16px;
}

.section-headline h2 {
  font-size: 22px;
}

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

.admin-overview-grid a {
  min-height: 118px;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(18, 22, 42, .92), rgba(8, 10, 22, .78));
}

.admin-overview-grid a::after {
  content: "Открыть";
  justify-self: start;
  margin-top: auto;
  border: 1px solid rgba(143, 92, 255, .30);
  border-radius: 999px;
  color: #d8ccff;
  font-size: 11px;
  font-weight: 900;
  padding: 5px 10px;
}

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

.site-pages-card .section-headline {
  align-items: flex-start;
  margin-bottom: 14px;
}

.site-pages-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.site-pages-search {
  position: relative;
  display: grid;
  align-items: center;
  min-width: 0;
}

.site-pages-search i {
  position: absolute;
  left: 14px;
  z-index: 1;
  color: #9b8ed0;
  font-size: 13px;
  pointer-events: none;
}

.site-pages-search input {
  min-height: 44px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(143, 92, 255, .10), rgba(97, 243, 179, .035)),
    rgba(3, 5, 13, .42);
  padding-left: 40px;
}

.site-pages-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.site-pages-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  padding: 0 10px;
}

.site-page-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.32);
  box-shadow: 0 0 16px currentColor;
}

.site-page-dot.is-ok {
  background: #61f3b3;
  color: rgba(97, 243, 179, .7);
}

.site-page-dot.is-warn {
  background: #ffcf70;
  color: rgba(255, 207, 112, .68);
}

.site-page-dot.is-muted {
  background: #858099;
  color: rgba(133, 128, 153, .48);
}

.site-pages-list {
  display: grid;
  gap: 14px;
}

.site-page-row {
  display: grid;
  grid-template-columns: minmax(220px, .95fr) minmax(260px, 1.25fr) minmax(210px, auto);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(143, 92, 255, .07), transparent 42%),
    rgba(255,255,255,.022);
  padding: 10px 12px;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.site-page-row.is-muted-row {
  opacity: .68;
}

.site-page-row:hover {
  border-color: rgba(143, 92, 255, .28);
  background:
    linear-gradient(90deg, rgba(143, 92, 255, .10), rgba(97, 243, 179, .025)),
    rgba(255,255,255,.026);
}

.site-page-title-cell {
  min-width: 0;
}

.site-page-title-cell strong {
  display: block;
  max-width: 100%;
  color: #fff;
  font-size: 14px;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.site-page-group {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1.45;
  text-transform: uppercase;
}

.site-page-title-cell code {
  display: inline-grid;
  width: fit-content;
  max-width: 100%;
  margin-top: 8px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: rgba(3, 5, 13, .34);
  color: #cbbcff;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 3px 8px;
}

.site-page-links,
.page-seo-flags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.site-page-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.site-page-link {
  display: inline-grid;
  grid-template-columns: 34px minmax(0, max-content) 28px;
  align-items: center;
  min-width: 0;
  max-width: min(100%, 260px);
  min-height: 32px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  overflow: hidden;
}

.site-page-link > a {
  display: inline-grid;
  place-items: center;
  align-self: stretch;
  background: rgba(143, 92, 255, .16);
  color: #efeaff;
  font-size: 11px;
  font-weight: 1000;
  text-decoration: none;
  padding: 0 9px;
}

.site-page-link > a:hover {
  background: rgba(143, 92, 255, .24);
  color: #fff;
}

.site-page-link code {
  min-width: 0;
  max-width: 168px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  color: rgba(231,231,231,.82);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 8px;
}

.site-page-copy {
  width: 26px;
  height: 26px;
  min-height: 26px;
  border-radius: 999px;
  margin-right: 1px;
  border-color: transparent;
  background: transparent;
}

.site-page-copy .check-icon {
  display: none;
}

.site-page-copy.is-copied .copy-icon {
  display: none;
}

.site-page-copy.is-copied .check-icon {
  display: inline-block;
}

.site-page-open {
  width: max-content;
  min-height: 32px;
  padding: 0 11px;
  white-space: nowrap;
}

.site-page-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.site-page-actions > .status-pill {
  order: 1;
}

.site-page-actions .page-seo-flags {
  order: 2;
  justify-content: flex-end;
  gap: 5px;
}

.site-page-actions .site-page-open {
  order: 3;
}

.site-page-card {
  display: grid;
  gap: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(143, 92, 255, .16), transparent 30%),
    radial-gradient(circle at 0 100%, rgba(97, 243, 179, .055), transparent 30%),
    linear-gradient(135deg, rgba(18, 22, 42, .88), rgba(8, 10, 22, .76));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  padding: 15px;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.site-page-card:hover {
  border-color: rgba(143, 92, 255, .30);
  transform: translateY(-1px);
}

.site-page-card.is-muted-row {
  opacity: .72;
}

.site-page-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.075);
  padding-bottom: 13px;
}

.site-page-card-head > .status-pill {
  margin-top: 2px;
}

.site-page-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.site-page-badges span,
.site-page-badges code {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  border: 0;
  border-radius: 9px;
  background: rgba(143, 92, 255, .14);
  color: #d8ccff;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .06em;
  padding: 0 9px;
  text-transform: uppercase;
}

.site-page-badges code {
  background: rgba(3, 5, 13, .42);
  color: #cbbcff;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  text-transform: none;
}

.site-page-card .site-page-title-cell strong {
  display: block;
  margin-top: 0;
  font-size: 18px;
  line-height: 1.25;
}

.site-page-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.site-page-title-row strong {
  min-width: 0;
}

.site-page-title-row .site-page-open {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  border: 1px solid rgba(143, 92, 255, .26);
  border-radius: 9px;
  background: rgba(143, 92, 255, .10);
  color: #d8ccff;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.site-page-title-row .site-page-open i {
  font-size: 12px;
  line-height: 1;
}

.site-page-title-row .site-page-open:hover {
  border-color: rgba(143, 92, 255, .52);
  background: rgba(143, 92, 255, .18);
  color: #fff;
  transform: translateY(-1px);
}

.site-page-title-cell--pro {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.site-page-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  color: #d8ccff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.site-page-icon.is-ok {
  background: rgba(97, 243, 179, .10);
  color: #bfffe7;
}

.site-page-icon.is-warn {
  background: rgba(255, 207, 112, .10);
  color: #ffe0a0;
}

.site-page-icon.is-muted {
  background: rgba(255,255,255,.035);
  color: rgba(231,231,231,.56);
}

.site-page-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, .75fr);
  gap: 12px;
}

.site-page-info-block {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  min-height: 88px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  background: rgba(3, 5, 13, .22);
  padding: 13px;
}

.site-page-info-block > span,
.site-page-block-head span {
  color: rgba(231,231,231,.56);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.site-page-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.site-page-block-head b {
  color: rgba(231,231,231,.62);
  font-size: 11px;
  font-weight: 900;
}

.site-page-value-badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 27px;
  align-items: center;
  justify-self: start;
  border-radius: 9px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 9px;
}

.site-page-info-block > code.site-page-value-badge {
  border: 1px solid rgba(143, 92, 255, .16);
  background: rgba(143, 92, 255, .08);
  color: #cbbcff;
}

.site-page-info-block--links .site-page-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
}

.site-page-info-block--links .site-page-link {
  width: 100%;
  max-width: 100%;
  grid-template-columns: 34px minmax(0, 1fr) 28px;
}

.site-page-info-block--links .site-page-link code {
  max-width: none;
}

.site-page-info-block .page-seo-flags {
  gap: 7px;
}

.site-page-info-block--seo {
  min-height: auto;
}

.site-page-value-badge--seo {
  border: 1px solid rgba(97, 243, 179, .18);
  background: rgba(97, 243, 179, .08);
  color: #c6ffe8;
}

.site-page-value-badge--seo.is-muted {
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.045);
  color: rgba(231,231,231,.58);
}

.site-page-info-block--action {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  min-height: auto;
}

.site-page-info-block--action > span {
  display: none;
}

.site-page-info-block--action .site-page-block-head {
  grid-column: 1 / -1;
}

.site-page-info-block--action p {
  grid-column: 1;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.site-page-info-block--action .site-page-open,
.site-page-info-block--action > .status-pill {
  grid-column: 2;
  grid-row: 3;
  justify-self: end;
}

.site-page-info-block--action .site-page-open {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  border: 1px solid rgba(143, 92, 255, .26);
  border-radius: 10px;
  background: rgba(143, 92, 255, .10);
  color: #d8ccff;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.site-page-info-block--action .site-page-open i {
  font-size: 13px;
  line-height: 1;
}

.site-page-info-block--action .site-page-open:hover {
  border-color: rgba(143, 92, 255, .52);
  background: rgba(143, 92, 255, .18);
  color: #fff;
  transform: translateY(-1px);
}

.site-pages-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  border: 1px dashed rgba(143, 92, 255, .24);
  border-radius: 16px;
  background: rgba(143, 92, 255, .045);
  text-align: center;
  padding: 28px;
}

.site-pages-empty[hidden] {
  display: none;
}

.site-pages-empty > span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(143, 92, 255, .12);
  color: #d8ccff;
}

.site-page-card.is-filtered {
  display: none;
}

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

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

.service-status-card .section-headline,
.promocodes-card .section-headline {
  align-items: flex-start;
  margin-bottom: 16px;
}

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

.service-check {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  min-height: 108px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  padding: 14px;
}

.service-check > span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 197, 92, .12);
  color: #ffe4aa;
}

.service-check.is-ok > span {
  background: rgba(97, 243, 179, .12);
  color: #c6ffe8;
}

.service-check strong {
  display: block;
  color: #fff;
  font-size: 14px;
}

.service-check p {
  margin: 6px 0 4px;
  color: rgba(231,231,231,.88);
  line-height: 1.4;
}

.service-check small,
.service-status-note span,
.promo-usage {
  color: var(--muted);
  line-height: 1.45;
}

.service-status-note {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
  margin-top: 14px;
  padding: 12px 14px;
}

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

.service-failed-empty,
.service-failed-jobs {
  margin-top: 14px;
}

.service-failed-empty {
  border: 1px solid rgba(97, 243, 179, .16);
  border-radius: 14px;
  background: rgba(97, 243, 179, .055);
  padding: 14px;
}

.service-failed-empty.is-warning {
  border-color: rgba(255, 202, 105, .28);
  background: rgba(255, 202, 105, .07);
}

.service-failed-empty strong {
  display: block;
  color: #c6ffe8;
  margin-bottom: 4px;
}

.service-failed-empty.is-warning strong {
  color: #ffe4aa;
}

.service-failed-empty span {
  color: var(--muted);
  line-height: 1.45;
}

.service-failed-jobs {
  display: grid;
  gap: 10px;
}

.service-failed-head,
.service-failed-job {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}

.service-failed-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
}

.service-failed-head strong {
  display: block;
  color: #fff;
  font-size: 15px;
}

.service-failed-head span:not(.status-pill) {
  color: var(--muted);
  line-height: 1.45;
}

.service-failed-counter {
  display: inline-grid;
  grid-template-columns: 24px auto auto;
  gap: 7px;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  border: 1px solid rgba(255, 197, 92, .18);
  border-radius: 11px;
  background: rgba(255, 197, 92, .075);
  color: #ffe4aa;
  padding: 0 10px 0 6px;
  white-space: nowrap;
}

.service-failed-counter i {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(255, 197, 92, .13);
}

.service-failed-counter b {
  color: #fff;
  font-size: 15px;
}

.service-failed-counter small {
  color: rgba(255, 228, 170, .78);
  font-size: 12px;
  font-weight: 900;
}

.service-failed-job {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.service-failed-job__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.service-failed-job__head > div {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.service-failed-job__head strong {
  color: #fff;
  font-size: 15px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.service-failed-job__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.service-failed-job__meta div {
  min-width: 0;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 11px;
  background: rgba(3, 5, 13, .26);
  padding: 9px 10px;
}

.service-failed-job__meta dt {
  color: rgba(231,231,231,.52);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.service-failed-job__meta dd {
  margin: 5px 0 0;
  color: rgba(231,231,231,.88);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-failed-job__error {
  margin: 0;
  border: 1px solid rgba(255, 197, 92, .18);
  border-radius: 12px;
  background: rgba(255, 197, 92, .07);
  color: #ffe4aa;
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 12px;
}

.service-failed-job__error.is-muted {
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.025);
  color: var(--muted);
}

.service-failed-job__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.service-failed-job__actions form {
  margin: 0;
}

.service-failed-job__actions .ghost-button,
.service-failed-job__actions .apply-button {
  width: max-content;
  min-height: 36px;
  padding: 0 12px;
}

.service-failed-job.is-reviewed {
  display: none;
}

.promo-create-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  border: 1px solid rgba(143, 92, 255, .18);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(143, 92, 255, .15), transparent 30%),
    radial-gradient(circle at 0 100%, rgba(97, 243, 179, .07), transparent 32%),
    rgba(255,255,255,.025);
  margin-bottom: 16px;
  padding: 14px;
}

.promo-create-panel__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.075);
  padding-bottom: 12px;
}

.promo-create-title {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.promo-create-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(143, 92, 255, .24);
  border-radius: 13px;
  background: rgba(143, 92, 255, .12);
  color: #d8ccff;
}

.promo-create-title strong {
  display: block;
  color: #fff;
  font-size: 17px;
  line-height: 1.25;
}

.promo-create-title p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.promo-create-panel__fields,
.promo-card__fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.promo-create-panel__footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 12px;
}

.promo-create-panel__footer > span {
  margin-right: auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.promo-create-panel__footer .apply-button {
  width: max-content;
  min-height: 42px;
  padding: 0 16px;
}

.promo-create-switch {
  min-height: 38px;
  justify-self: end;
}

.promo-card-list {
  display: grid;
  gap: 12px;
}

.promo-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(97, 243, 179, .08), transparent 28%),
    linear-gradient(135deg, rgba(18, 22, 42, .82), rgba(8, 10, 22, .72));
  padding: 15px;
}

.promo-card.is-muted-row {
  opacity: .72;
}

.promo-card__head,
.promo-card__bottom,
.promo-redemption-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.promo-card__identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.promo-card__identity strong {
  display: block;
  color: #fff;
  font-size: 16px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.promo-card__identity span:not(.promo-code-chip) {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.promo-code-chip {
  display: inline-grid;
  grid-template-columns: minmax(0, auto) 30px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  border: 1px solid rgba(143, 92, 255, .18);
  border-radius: 11px;
  background: rgba(143, 92, 255, .08);
  overflow: hidden;
}

.promo-code-chip code {
  border: 0;
  background: transparent;
  color: #d8ccff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 10px;
}

.promo-code-chip .copy-token-button {
  width: 28px;
  height: 28px;
  min-height: 28px;
  border-color: transparent;
  background: transparent;
  margin-right: 2px;
}

.promo-card__status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.promo-card-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.promo-card-field span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.promo-card-field input,
.promo-create-panel input {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 11px;
  background: rgba(3, 5, 13, .42);
  color: #fff;
  padding: 0 11px;
}

.promo-card-field input:focus,
.promo-create-panel input:focus {
  border-color: rgba(143, 92, 255, .48);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(143, 92, 255, .12);
}

.promo-card__usage {
  display: grid;
  gap: 7px;
  min-width: min(320px, 100%);
}

.promo-card__usage div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.promo-card__usage b {
  color: rgba(231,231,231,.82);
}

.promo-card__usage > i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  overflow: hidden;
}

.promo-card__usage > i::before {
  content: "";
  display: block;
  width: var(--promo-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8f5cff, #61f3b3);
}

.promo-card__bottom .ghost-button {
  width: max-content;
  min-height: 36px;
  padding: 0 12px;
}

.promo-empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  border: 1px dashed rgba(143, 92, 255, .26);
  border-radius: 16px;
  background: rgba(143, 92, 255, .045);
  color: var(--muted);
  text-align: center;
  padding: 22px;
}

.promo-empty-state > span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(143, 92, 255, .14);
  color: #d8ccff;
}

.blog-shell,
.blog-post-shell {
  display: grid;
  gap: clamp(18px, 2.6vw, 30px);
  padding-top: clamp(18px, 3vw, 34px);
  padding-bottom: clamp(46px, 6vw, 84px);
}

.blog-hero {
  display: grid;
  justify-items: start;
  text-align: left;
  gap: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.blog-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: .96;
}

.blog-hero .lead {
  max-width: 760px;
  margin: 0;
}

.blog-hero-actions,
.blog-cta {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.blog-hero-actions .apply-button,
.blog-hero-actions .ghost-button,
.blog-cta .apply-button {
  width: max-content;
  min-height: 44px;
  padding: 0 18px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 16px;
}

.blog-card {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(143, 92, 255, .12), transparent 32%),
    rgba(10, 13, 27, .78);
  box-shadow: 0 22px 70px rgba(0,0,0,.22);
}

.blog-card.is-featured.has-cover {
  grid-column: auto;
  grid-template-columns: 1fr;
}

.blog-card__cover {
  display: block;
  aspect-ratio: 16 / 9;
  background: rgba(143, 92, 255, .08);
}

.blog-card.is-featured.has-cover .blog-card__cover {
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.blog-card.no-cover {
  align-content: start;
  min-height: 0;
}

.blog-card__cover img,
.blog-article__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card__body {
  display: grid;
  gap: 12px;
  align-content: center;
  padding: clamp(18px, 3vw, 28px);
}

.blog-card__meta,
.blog-article__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.blog-card__meta span,
.blog-article__meta span {
  display: inline-grid;
  place-items: center;
  min-height: 26px;
  border-radius: 999px;
  background: rgba(143, 92, 255, .16);
  color: #d8ccff;
  padding: 0 10px;
}

.blog-card h2 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.12;
}

.blog-card h2 a,
.blog-card__link,
.blog-related__grid a,
.blog-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.blog-card p {
  margin: 0;
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  color: #d8ccff;
  font-weight: 900;
}

.blog-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  border: 1px dashed rgba(143, 92, 255, .28);
  border-radius: 18px;
  background: rgba(143, 92, 255, .045);
  text-align: center;
  padding: clamp(28px, 5vw, 56px);
}

.blog-empty > span {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(143, 92, 255, .14);
  color: #d8ccff;
  font-size: 22px;
}

.blog-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
}

.blog-breadcrumbs b {
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-article {
  display: grid;
  gap: 18px;
  max-width: 1040px;
  margin: 0 auto;
}

.blog-article__head {
  display: grid;
  justify-items: start;
  text-align: left;
  gap: 12px;
}

.blog-article__head h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.04;
}

.blog-article__head .lead {
  max-width: 760px;
  margin: 0;
}

.blog-article__meta {
  justify-content: flex-start;
}

.blog-article__meta a {
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  border-radius: 999px;
  background: rgba(97, 243, 179, .10);
  color: #bfffe7;
  text-decoration: none;
  padding: 0 12px;
}

.blog-article__cover {
  overflow: hidden;
  aspect-ratio: 16 / 5.8;
  max-height: 320px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  margin: 0;
}

.blog-article__content {
  display: grid;
  gap: 14px;
  width: min(100%, 880px);
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  background: rgba(10, 13, 27, .78);
  padding: clamp(20px, 4vw, 38px);
}

.blog-article__content h2,
.blog-article__content h3 {
  margin: 8px 0 0;
  color: #fff;
  line-height: 1.16;
}

.blog-article__content h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.blog-article__content h3 {
  font-size: clamp(20px, 2.4vw, 26px);
}

.blog-article__content p,
.blog-article__content li {
  color: rgba(231,231,231,.82);
  font-size: 16px;
  line-height: 1.72;
}

.blog-article__content a {
  color: #cbbcff;
  font-weight: 800;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

.blog-article__content blockquote {
  border-left: 3px solid rgba(143, 92, 255, .72);
  border-radius: 10px;
  background: rgba(143, 92, 255, .08);
  color: rgba(241, 237, 255, .86);
  margin: 4px 0;
  padding: 14px 16px;
}

.blog-article__content pre {
  white-space: pre-wrap;
}

.blog-article__content img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  margin: 8px auto;
}

.blog-article__content .ql-align-center {
  text-align: center;
}

.blog-article__content .ql-align-right {
  text-align: right;
}

.blog-article__content .ql-align-justify {
  text-align: justify;
}

.blog-article__content ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}

.blog-cta {
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(143, 92, 255, .18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(143, 92, 255, .18), transparent 32%),
    rgba(9, 12, 25, .78);
  padding: 20px;
}

.blog-cta > div {
  max-width: 720px;
}

.blog-cta h2 {
  margin-bottom: 6px;
  font-size: clamp(24px, 3vw, 34px);
}

.blog-related {
  display: grid;
  gap: 14px;
}

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

.blog-related__grid a {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
  padding: 16px;
}

.blog-related__grid span,
.blog-related__grid small {
  color: var(--muted);
}

.blog-related__grid strong {
  color: #fff;
  line-height: 1.25;
}

.blog-admin-card {
  gap: 16px;
}

.blog-editor {
  display: grid;
  gap: 18px;
  border: 1px solid rgba(143, 92, 255, .18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(143, 92, 255, .16), transparent 34%),
    linear-gradient(135deg, rgba(18, 22, 42, .72), rgba(8, 10, 22, .82));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  padding: clamp(16px, 2.2vw, 22px);
}

.blog-editor.is-muted-row {
  opacity: .76;
}

.blog-editor__head,
.blog-editor__footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.blog-editor__head {
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding-bottom: 16px;
}

.blog-editor__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, .78fr) minmax(120px, .26fr);
  gap: 14px;
}

.blog-editor__grid > *,
.blog-cover-field > *,
.blog-editor .field,
.blog-editor input,
.blog-editor select,
.blog-editor textarea {
  min-width: 0;
}

.blog-editor__wide {
  grid-column: 1 / -1;
}

.blog-editor__title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.blog-editor__title strong {
  display: block;
  color: #fff;
  line-height: 1.25;
}

.blog-editor__title small,
.blog-editor__footer > span {
  color: var(--muted);
  font-size: 12px;
}

.blog-editor .field {
  gap: 8px;
}

.blog-editor .field > span,
.rich-editor-field > span {
  color: rgba(246, 243, 255, .92);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .03em;
}

.blog-editor input:not(.ck-input):not([type="hidden"]),
.blog-editor select,
.blog-editor textarea:not([data-ckeditor]) {
  min-height: 48px;
  border-color: rgba(255,255,255,.16);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035)),
    rgba(9, 12, 26, .78);
  color: #f6f3ff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.blog-editor input:not(.ck-input)::placeholder,
.blog-editor textarea:not([data-ckeditor])::placeholder {
  color: rgba(231,231,231,.48);
}

.blog-editor input:not(.ck-input):focus,
.blog-editor select:focus,
.blog-editor textarea:not([data-ckeditor]):focus {
  border-color: rgba(143, 92, 255, .72);
  box-shadow: 0 0 0 3px rgba(143, 92, 255, .16);
}

.blog-editor textarea {
  min-height: 180px;
  background: rgba(3, 5, 13, .42);
}

.blog-editor-section-title {
  display: grid;
  gap: 5px;
  align-items: start;
  justify-content: start;
  margin-top: 6px;
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 16px;
}

.blog-editor-section-title:first-child {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.blog-editor-section-title span {
  color: #fff;
  font-size: 15px;
  font-weight: 950;
}

.blog-editor-section-title small {
  max-width: 520px;
  color: rgba(231,231,231,.78);
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
}

.blog-cover-field {
  display: grid;
  gap: 12px;
  align-items: stretch;
  border: 1px solid rgba(143, 92, 255, .16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 0 0, rgba(143, 92, 255, .13), transparent 34%),
    rgba(255,255,255,.035);
  padding: 14px;
}

.blog-editor button.blog-cover-zone {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 190px;
  border: 1px dashed rgba(143, 92, 255, .48);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(143, 92, 255, .12), rgba(97, 243, 179, .04)),
    rgba(6, 8, 18, .58);
  color: #f1edff;
  cursor: pointer;
  padding: 16px;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.blog-editor button.blog-cover-zone:hover,
.blog-editor button.blog-cover-zone.is-dragover {
  border-color: rgba(97, 243, 179, .64);
  background:
    radial-gradient(circle at 50% 0, rgba(97, 243, 179, .14), transparent 42%),
    rgba(3, 5, 13, .44);
  transform: translateY(-1px);
}

.blog-editor button.blog-cover-zone.is-uploading {
  cursor: wait;
  opacity: .78;
}

.blog-cover-zone img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-cover-zone.has-image::after {
  content: "Заменить обложку";
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 999px;
  background: rgba(3, 5, 13, .78);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 8px 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.24);
}

.blog-cover-zone__empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  max-width: 280px;
  text-align: center;
}

.blog-cover-zone__empty i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(143, 92, 255, .85), rgba(97, 243, 179, .28));
  color: #fff;
  font-size: 18px;
  box-shadow: 0 16px 38px rgba(143, 92, 255, .18);
}

.blog-cover-zone__empty strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.25;
}

.blog-cover-zone__empty small,
.blog-cover-status {
  color: rgba(231,231,231,.72);
  font-size: 12px;
  line-height: 1.45;
}

.blog-cover-status {
  justify-self: start;
  border-radius: 12px;
  background: rgba(97, 243, 179, .09);
  color: rgba(214, 255, 238, .92);
  padding: 9px 11px;
}

.rich-editor-field {
  overflow: hidden;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  background:
    linear-gradient(180deg, #f8f8fb, #ffffff);
  color: #202234;
  padding: 14px;
}

.rich-editor-field > span {
  color: #202234;
}

.rich-editor-field .ck.ck-editor {
  width: 100%;
  color: #202234;
  --ck-color-base-background: #ffffff;
  --ck-color-base-foreground: #f3f4f8;
  --ck-color-base-border: #d9dce8;
  --ck-color-text: #202234;
  --ck-color-button-default-hover-background: #eef0f7;
  --ck-color-button-on-background: #e9e2ff;
  --ck-color-button-on-color: #3b235f;
  --ck-color-focus-border: #7657ff;
  --ck-color-link-default: #4f35c8;
  --ck-color-list-button-hover-background: #eef0f7;
  --ck-color-list-button-on-background: #e9e2ff;
  --ck-color-panel-background: #ffffff;
  --ck-color-panel-border: #d9dce8;
  --ck-focus-ring: 0 0 0 3px rgba(118, 87, 255, .20);
}

.rich-editor-field .ck.ck-editor__main,
.rich-editor-field .ck.ck-editor__editable,
.rich-editor-field .ck.ck-editor__editable_inline {
  color: #202234;
  background: #ffffff;
}

.rich-editor-field .ck.ck-toolbar {
  border-color: #d9dce8;
  border-radius: 12px 12px 0 0;
  background: #f8f9fd;
}

.rich-editor-field .ck.ck-editor__editable_inline {
  border-color: #d9dce8;
  border-radius: 0 0 12px 12px;
  box-shadow: none;
  cursor: text;
  padding: 18px 20px;
}

.rich-editor-field .ck.ck-editor__editable_inline:focus {
  border-color: #7657ff;
  box-shadow: 0 0 0 3px rgba(118, 87, 255, .16);
}

.rich-editor-field .ck-editor__editable_inline {
  min-height: 320px;
}

.rich-editor-field .ck-content,
.rich-editor-field .ck-content p,
.rich-editor-field .ck-content li,
.rich-editor-field .ck-content li > span,
.rich-editor-field .ck-content .ck-list-bogus-paragraph,
.rich-editor-field .ck-content blockquote,
.rich-editor-field .ck-content h1,
.rich-editor-field .ck-content h2,
.rich-editor-field .ck-content h3,
.rich-editor-field .ck-content h4 {
  color: #202234 !important;
}

.rich-editor-field .ck-content p,
.rich-editor-field .ck-content li {
  cursor: text;
  font-size: 16px;
  line-height: 1.65;
}

.rich-editor-field .ck-content,
.rich-editor-field .ck-content *,
.rich-editor-field .ck-placeholder::before {
  cursor: text;
}

.rich-editor-field .ck-toolbar,
.rich-editor-field .ck-toolbar *,
.rich-editor-field .ck-dropdown,
.rich-editor-field .ck-dropdown * {
  cursor: default;
}

.rich-editor-field .ck.ck-button,
.rich-editor-field .ck-button,
.rich-editor-field .ck-button *,
.rich-editor-field .ck.ck-dropdown__button,
.rich-editor-field .ck-dropdown__button,
.rich-editor-field .ck-dropdown__button * {
  cursor: pointer;
}

.rich-editor-field .ck-content h2,
.rich-editor-field .ck-content h3,
.rich-editor-field .ck-content h4 {
  margin: 14px 0 8px;
}

.rich-editor-field .ck-content a {
  color: #4f35c8;
}

.rich-editor-field .ck-content blockquote {
  border-left-color: #7657ff;
  background: #f4f0ff;
  padding: 12px 16px;
}

.rich-editor-field .ck-placeholder::before {
  color: #7d8294;
}

.rich-editor-fallback {
  min-height: 320px;
}

.blog-editor__footer .apply-button,
.blog-editor__footer .ghost-button {
  width: max-content;
  min-height: 38px;
  padding: 0 14px;
}

.blog-editor__footer {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 14px;
}

.blog-editor__footer > span {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  border-radius: 999px;
  background: rgba(143, 92, 255, .10);
  color: rgba(231,231,231,.78);
  padding: 8px 11px;
}

.blog-admin-list {
  display: grid;
  gap: 12px;
}

.blog-admin-row {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(143, 92, 255, .18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(143, 92, 255, .16), transparent 34%),
    linear-gradient(135deg, rgba(18, 22, 42, .72), rgba(8, 10, 22, .82));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.blog-admin-row.is-muted-row {
  opacity: .76;
}

.blog-post-details {
  display: block;
}

.blog-post-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
}

.blog-post-summary::-webkit-details-marker {
  display: none;
}

.blog-post-summary__actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.blog-post-summary__actions a,
.blog-post-summary__actions b {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  color: rgba(241, 237, 255, .92);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  padding: 0 12px;
}

.blog-post-summary__actions b {
  background: rgba(143, 92, 255, .13);
  color: #d8ccff;
}

.blog-post-details[open] .blog-post-summary {
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.blog-post-details[open] .blog-post-summary__actions b span {
  font-size: 0;
}

.blog-post-details[open] .blog-post-summary__actions b span::before {
  content: "Свернуть";
  font-size: 12px;
}

.blog-admin-row .blog-editor--item {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: clamp(16px, 2.2vw, 22px);
}

.blog-delete-form {
  display: none;
  width: 0;
  height: 0;
  margin: 0;
}

.blog-post-summary__actions .blog-delete-button {
  appearance: none;
  display: inline-grid;
  place-items: center;
  inline-size: 34px;
  block-size: 34px;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 126, 155, .28);
  border-color: rgba(255, 126, 155, .28);
  border-radius: 10px;
  background: rgba(255, 126, 155, .08);
  color: #ff9cac;
  font-size: 0;
  line-height: 1;
  cursor: pointer;
  padding: 0 !important;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.blog-post-summary__actions .blog-delete-button i {
  display: block;
  width: auto;
  height: auto;
  font-size: 14px;
  line-height: 1;
  transform: translate(-1px, .5px);
}

.blog-post-summary__actions .blog-delete-button:hover {
  border-color: rgba(255, 126, 155, .54);
  background: rgba(255, 126, 155, .15);
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 980px) {
  .other-projects-grid {
    grid-template-columns: 1fr;
  }

  .other-projects-toggle-form,
  .other-project-create-form,
  .other-project-edit-form,
  .other-project-row {
    grid-template-columns: 1fr;
  }

  .other-project-row__actions {
    justify-content: flex-start;
  }

  .other-project-delete-form {
    justify-self: start;
  }

  .blog-grid,
  .blog-related__grid {
    grid-template-columns: 1fr;
  }

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

  .blog-cover-field {
    grid-template-columns: 1fr;
  }

  .blog-editor-section-title {
    display: grid;
    align-items: start;
  }

  .blog-editor-section-title small {
    text-align: left;
  }

  .blog-editor__head,
  .blog-editor__footer,
  .blog-cta {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .blog-editor__footer {
    padding-right: 0;
  }

  .blog-admin-row {
    display: block;
  }

  .blog-post-summary {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 16px;
  }

  .blog-post-summary__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .blog-shell,
  .blog-post-shell {
    padding-top: 16px;
  }

  .blog-hero {
    padding: 0;
  }

  .blog-hero h1,
  .blog-article__head h1 {
    font-size: clamp(31px, 10vw, 42px);
  }

  .blog-grid,
  .blog-card.is-featured.has-cover {
    grid-template-columns: 1fr;
  }

  .blog-post-summary {
    gap: 12px;
  }

  .blog-post-summary .blog-editor__title {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-right: 32px;
  }

  .blog-post-summary .blog-editor__title strong,
  .blog-post-summary .blog-editor__title small {
    text-align: left;
  }

  .blog-post-summary__actions {
    display: grid;
    justify-content: start;
  }

  .blog-card.is-featured.has-cover .blog-card__cover {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .blog-breadcrumbs b,
  .blog-breadcrumbs span:last-of-type {
    display: none;
  }

  .blog-hero,
  .blog-article__content,
  .blog-cta {
    border-radius: 14px;
  }

  .blog-hero-actions .apply-button,
  .blog-hero-actions .ghost-button,
  .blog-cta .apply-button {
    width: 100%;
  }

  .blog-article__content p,
  .blog-article__content li {
    font-size: 15px;
  }
}

.promo-empty-state strong {
  color: #fff;
  font-size: 15px;
}

.promo-empty-state p {
  max-width: 520px;
  margin: 0;
}

.promo-empty-state.is-compact {
  padding: 16px;
}

.promo-redemptions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.promo-redemption-list {
  display: grid;
  gap: 10px;
}

.promo-redemption-item {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
  padding: 12px;
}

.promo-redemption-item__main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.promo-redemption-item__main strong {
  display: block;
  color: #fff;
  font-size: 14px;
}

.promo-redemption-item__main small {
  color: var(--muted);
}

.promo-redemption-item dl {
  display: grid;
  grid-template-columns: 90px minmax(120px, 1fr) minmax(150px, 1.2fr);
  gap: 8px;
  margin: 0;
}

.promo-redemption-item dt {
  color: rgba(231,231,231,.52);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.promo-redemption-item dd {
  margin: 4px 0 0;
  color: rgba(231,231,231,.88);
  font-size: 12px;
}

.admin-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-stats article {
  min-height: 116px;
  border-radius: 16px;
  padding: 17px;
}

.admin-stats strong {
  align-self: end;
  font-size: 32px;
  letter-spacing: -.02em;
}

.admin-table-wrap {
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  background: rgba(3, 5, 13, .30);
}

.admin-table-wrap table {
  margin: 0;
}

.admin-table-wrap th {
  background: rgba(255,255,255,.035);
  color: rgba(231, 231, 231, .82);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-table-wrap td,
.admin-table-wrap th {
  border-color: rgba(255,255,255,.065);
  padding: 13px 14px;
}

.admin-table-wrap tbody tr:hover {
  background: rgba(143, 92, 255, .055);
}

.payment-setup-grid {
  gap: 16px;
}

.payment-setup-step {
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(97, 243, 179, .07), transparent 34%),
    rgba(255,255,255,.025);
  padding: 18px;
}

.payment-method-list {
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.payment-method-list article {
  border-radius: 12px;
  transition: border-color .18s ease, background .18s ease;
}

.payment-method-list article:hover {
  border-color: rgba(143, 92, 255, .42);
  background: rgba(143, 92, 255, .08);
}

.payment-setup-actions {
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
  padding: 14px;
}

@media (max-width: 1180px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

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

  .admin-overview-grid,
  .admin-stats,
  .payment-setup-grid,
  .service-check-grid,
  .service-failed-job__meta,
  .promo-create-panel__fields,
  .promo-card__fields,
  .site-page-row,
  .site-pages-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .site-page-actions {
    grid-column: 1 / -1;
    justify-items: start;
  }

  .site-page-actions .page-seo-flags {
    justify-content: flex-start;
  }

  .site-page-card-grid {
    grid-template-columns: 1fr;
  }

  .site-pages-legend {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .admin-shell {
    width: min(100% - (var(--page-gutter) * 2), 100%);
    padding-top: 14px;
  }

  .admin-sidebar__nav,
  .admin-overview-grid,
  .admin-stats,
  .payment-setup-grid,
  .payment-switch-row,
  .payment-setup-actions,
  .payment-credentials-grid,
  .maintenance-form,
  .database-import-form,
  .service-check-grid,
  .service-failed-job__meta,
  .promo-create-panel,
  .promo-create-panel__head,
  .promo-create-panel__fields,
  .promo-card__head,
  .promo-card__identity,
  .promo-card__fields,
  .promo-card__bottom,
  .promo-redemption-item,
  .promo-redemption-item__main,
  .promo-redemption-item dl,
  .site-page-row,
  .site-page-links,
  .site-pages-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-page-title,
  .admin-head,
  .admin-shell .table-card {
    border-radius: 14px;
    padding: 16px;
  }

  .site-page-link {
    width: 100%;
  }

  .site-page-actions {
    justify-items: start;
  }

  .site-page-card-head,
  .site-page-card-grid {
    grid-template-columns: 1fr;
  }

  .site-page-title-cell--pro {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .site-page-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .site-page-info-block--links .site-page-links,
  .site-page-info-block--action {
    grid-template-columns: 1fr;
  }

  .site-page-info-block--action .site-page-open,
  .site-page-info-block--action > .status-pill {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .site-page-card {
    padding: 14px;
  }

  .site-page-card-head > .status-pill {
    justify-self: start;
  }

  .service-failed-job__head,
  .service-failed-job__actions {
    grid-template-columns: 1fr;
  }

  .service-failed-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-failed-job__actions {
    justify-content: flex-start;
  }

  .service-failed-job__actions .ghost-button,
  .service-failed-job__actions .apply-button {
    width: 100%;
  }

  .promo-redeem-card,
  .promo-redeem-card form {
    grid-template-columns: 1fr;
  }

  .promo-create-panel__footer,
  .promo-card__status,
  .promo-card__bottom {
    justify-content: flex-start;
  }

  .promo-create-panel__footer,
  .promo-card__status {
    align-items: flex-start;
    flex-direction: column;
  }

  .promo-create-panel__footer .apply-button,
  .promo-card__bottom .ghost-button {
    width: 100%;
  }

  .promo-create-switch {
    justify-self: start;
  }

  .promo-card__usage {
    min-width: 0;
  }

  .promo-redeem-card button {
    width: 100%;
  }

  .admin-stats article {
    min-height: 96px;
  }
}

/* Account panel refinement */
.account-shell {
  width: min(1320px, calc(100% - (var(--page-gutter) * 2)));
  gap: 18px;
  padding-top: 24px;
}

.account-shell .table-card {
  border-color: rgba(255,255,255,.085);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(143, 92, 255, .07), transparent 28%),
    rgba(9, 12, 25, .80);
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
}

.account-hero {
  border-color: rgba(255,255,255,.08);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0,0,0,.22);
  padding: 18px;
}

.account-hero h1 {
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.08;
}

.account-identity .eyebrow,
.account-section-head .eyebrow {
  margin-bottom: 8px;
}

.account-badges {
  margin-top: 0;
}

.account-badges span {
  min-height: 26px;
  font-size: 11px;
  padding: 0 10px;
}

.account-hero-panel {
  min-width: min(330px, 100%);
  border-radius: 14px;
}

.account-hero-panel strong {
  font-size: 22px;
}

.account-shell .table-card > h2,
.account-section-head h2 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1.15;
}

.account-shell .table-card > h2 {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.account-shell .table-card > h2::after,
.account-section-head::after {
  content: "";
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(143, 92, 255, .46), rgba(255,255,255,.08), transparent);
}

.account-section-head {
  align-items: flex-start;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding-bottom: 14px;
}

.account-section-head::after {
  display: none;
}

.account-card {
  padding: 20px;
}

.account-key-item {
  border-color: rgba(255,255,255,.075);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}

.account-key-row {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.account-token-line {
  grid-column: auto;
  grid-template-columns: minmax(0, auto) auto;
  justify-content: start;
}

.token-chip .account-key-delete {
  grid-column: auto;
  grid-row: auto;
  display: inline-grid;
  place-items: center;
  width: 26px;
  min-height: 26px;
  height: 26px;
  justify-self: auto;
  padding: 0;
}

.token-chip .account-key-delete i {
  font-size: 12px;
}

.account-key-item dl {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.payment-plan,
.payment-item {
  border-color: rgba(255,255,255,.075);
}

.history-card__body strong:not(.history-card__title) {
  font-size: 15px;
}

@media (max-width: 760px) {
  .account-shell {
    width: min(100% - (var(--page-gutter) * 2), 100%);
    gap: 16px;
    padding-top: 16px;
  }

  .account-shell .table-card,
  .account-hero {
    border-radius: 14px;
    padding: 16px;
  }

  .account-hero {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .account-identity {
    gap: 10px;
    padding-right: 0;
  }

  .account-profile-top {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
  }

  .account-avatar {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    font-size: 19px;
  }

  .account-hero h1 {
    font-size: clamp(22px, 8vw, 28px);
  }

  .account-email {
    width: 100%;
    min-height: 32px;
    font-size: 12px;
    padding: 0 10px;
  }

  .account-badges {
    gap: 6px;
    width: 100%;
  }

  .account-badges--grid {
    grid-template-columns: 1fr;
  }

  .account-badges span {
    justify-content: flex-start;
    min-height: 24px;
    font-size: 10px;
    padding: 0 8px;
  }

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

  .account-token-line {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .token-background-badge {
    width: fit-content;
    max-width: 100%;
  }

  .account-key-delete {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .account-history-card .account-section-head {
    display: grid;
    gap: 12px;
  }

  .history-head-summary {
    justify-content: flex-start;
  }

  .history-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .history-file-panel {
    grid-template-columns: 1fr;
  }

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

  .history-file-panel__actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  .history-file-panel__actions button,
  .history-file-panel__actions span {
    width: auto;
  }

  .history-delete-trigger {
    width: 30px;
    height: 30px;
    min-height: 30px;
  }

  .support-panel {
    overflow: hidden;
  }

  .support-panel .account-section-head {
    gap: 12px;
    padding-bottom: 12px;
  }

  .support-panel .account-section-head h2 {
    font-size: 19px;
  }

  .support-head-actions {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .support-head-actions span,
  .support-head-actions a {
    min-height: 30px;
    border-radius: 10px;
    font-size: 11px;
    padding: 0 10px;
  }

  .support-create-form--pro {
    gap: 10px;
    border-radius: 14px;
    padding: 12px;
  }

  .support-create-form--pro textarea {
    min-height: 92px;
  }

  .support-create-form--pro .apply-button {
    width: auto;
    min-width: 0;
    min-height: 40px;
    justify-self: end;
    padding: 0 16px;
  }

  .support-inbox {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .support-thread-list {
    width: 100%;
    min-width: 0;
  }

  .support-ticket-list {
    position: relative;
    top: 0;
    margin: 0 -4px;
    min-height: 148px;
    border: 0;
    border-radius: 0;
    background: transparent;
    scroll-padding: 4px;
    scroll-snap-type: x mandatory;
    overflow-y: visible;
    padding: 38px 4px 10px;
  }

  .support-ticket-list__head {
    position: absolute;
    top: 0;
    left: 4px;
    right: 4px;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    scroll-snap-align: none;
  }

  .support-ticket-list__head strong {
    font-size: 12px;
    line-height: 1.2;
  }

  .support-ticket-list__head strong::before {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    font-size: 10px;
  }

  .support-ticket-list__head span {
    justify-self: start;
    min-width: 24px;
    min-height: 24px;
    font-size: 11px;
  }

  .support-ticket-tab,
  .support-empty-state {
    flex: 0 0 min(252px, 78vw);
    max-width: min(252px, 78vw);
    min-height: 104px;
    border-radius: 13px;
    scroll-snap-align: start;
  }

  .support-ticket-tab {
    padding: 11px;
  }

  .support-ticket-tab {
    gap: 6px;
    padding: 10px;
  }

  .support-ticket-tab.is-active {
    box-shadow: inset 0 -3px 0 rgba(143, 92, 255, .86);
  }

  .support-ticket-tab .status-pill {
    min-height: 23px;
    border-radius: 8px;
    font-size: 10px;
    padding: 0 8px;
  }

  .support-ticket-tab strong {
    font-size: 12px;
    white-space: normal;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .support-ticket-tab__top {
    gap: 7px;
  }

  .support-ticket-tab-meta {
    display: flex;
    width: 100%;
    gap: 6px;
  }

  .support-ticket-tab .id-chip {
    max-width: 120px;
  }

  .support-ticket-tab .id-chip code {
    max-width: 84px;
  }

  .support-ticket-tab .id-copy-button {
    display: inline-grid;
  }

  .support-ticket-tab-date {
    display: inline-block;
    max-width: 96px;
    font-size: 10px;
  }

  .support-thread-meta {
    display: grid;
    gap: 5px;
    justify-items: start;
  }

  .support-thread-meta .id-copy-button {
    display: inline-grid;
  }

  .support-thread-list {
    margin-top: 2px;
  }

  .support-thread {
    gap: 12px;
    border-radius: 15px;
    padding: 12px;
  }

  .support-thread__head {
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .support-thread__head h3 {
    margin: 7px 0 5px;
    font-size: 16px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .support-thread__head small {
    display: block;
    font-size: 11px;
    line-height: 1.45;
  }

  .support-thread__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  .support-thread__actions form,
  .support-thread__actions button {
    width: 100%;
  }

  .support-thread__actions form:only-child {
    grid-column: 1 / -1;
  }

  .support-thread__actions .support-hide-form,
  .support-thread__actions .support-unhide-form {
    width: auto;
    justify-self: end;
  }

  .support-thread__actions .support-hide-form:only-child,
  .support-thread__actions .support-unhide-form:only-child {
    grid-column: 1 / -1;
  }

  .support-thread__actions .support-icon-button {
    width: 38px;
    min-width: 38px;
    min-height: 36px;
    justify-self: end;
  }

  .support-thread__actions button {
    min-height: 34px;
    font-size: 11px;
    padding: 0 10px;
  }

  .support-thread__actions .support-icon-button {
    padding: 0;
  }

  .support-messages {
    gap: 9px;
  }

  .support-message {
    width: min(100%, 92%);
    border-radius: 13px;
    padding: 10px;
  }

  .support-message p {
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .support-message small {
    font-size: 11px;
  }

  .support-reply-form {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .support-reply-form textarea {
    min-height: 78px;
  }

  .support-reply-form button {
    width: auto;
    min-height: 38px;
    justify-self: end;
    padding: 0 16px;
  }
}

@media (max-width: 760px) {
  .account-balance-card {
    width: 100%;
    gap: 8px;
    padding: 10px;
  }

  .account-balance-card__head {
    gap: 8px;
  }

  .account-balance-card__head > span {
    min-height: 22px;
    font-size: 9px;
    padding: 0 9px;
  }

  .account-balance-card__head a {
    font-size: 11px;
  }

  .account-balance-card__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .account-balance-card__main {
    grid-column: 1 / -1;
  }

  .account-balance-card__top > div {
    min-height: 62px;
    border-radius: 10px;
    padding: 9px;
  }

  .account-balance-card__main strong {
    font-size: clamp(34px, 12vw, 44px);
  }

  .account-balance-card__top > div:not(.account-balance-card__main) strong {
    font-size: 22px;
  }

  .account-balance-card__rates {
    gap: 6px;
  }

  .account-balance-card__rates span {
    flex: 1 1 120px;
    justify-content: center;
    min-height: 23px;
    font-size: 9px;
    text-align: center;
    padding: 0 7px;
  }

  .account-cta {
    min-height: 38px;
  }
}

.apply-button,
.download-button,
.auth-panel .admin-login-button,
.home-page .apply-button.process-submit-button,
.home-page .result-actions-compact .download-button,
button.apply-button,
a.download-button {
  border: 0 !important;
  background: #5b5cff !important;
  background-color: #5b5cff !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

button,
.apply-button,
.download-button,
.copy-button,
.mask-button,
.ghost-button,
.clear-file-button,
.code-copy-button,
.copy-token-button,
.id-copy-button,
.history-file-panel__actions button,
.history-delete-trigger,
.admin-page button,
.account-shell button,
.auth-panel .admin-login-button,
.support-create-form button,
.support-admin-form button,
.blog-editor__footer button,
.promo-create-panel__footer button,
.service-failed-job__actions button {
  box-shadow: none !important;
  text-shadow: none !important;
}

.apply-button::before,
.download-button::before,
.copy-button::before,
.mask-button::before,
.ghost-button::before,
.auth-panel::before,
.auth-panel .admin-login-button::before,
.admin-sidebar::before,
.admin-sidebar__nav a::before,
.admin-sidebar__nav a::after,
.history-file-panel__actions button::before,
.history-delete-trigger::before,
.code-copy-button::before,
.copy-token-button::before,
.id-copy-button::before {
  display: none !important;
  opacity: 0 !important;
}

.code-block__toolbar .code-copy-button {
  justify-self: end !important;
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
}

.history-file-panel__actions .history-delete-trigger {
  flex: 0 0 30px !important;
  width: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #2a1020 !important;
  color: #ff8fa8 !important;
  display: inline-grid !important;
  place-items: center !important;
  line-height: 1 !important;
}

.history-file-panel__actions .history-delete-trigger i {
  display: block !important;
  width: auto !important;
  height: auto !important;
  font-size: 12px !important;
  line-height: 1 !important;
  transform: none !important;
}

.history-file-panel__actions .history-delete-trigger:hover {
  background: #d93662 !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* 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;
}

.account-stats {
  gap: 12px !important;
}

.account-stats article {
  min-width: 0;
  border-color: rgba(255,255,255,.09);
}

.account-token-line {
  grid-template-columns: minmax(0, max-content) minmax(120px, max-content);
  max-width: 100%;
}

.token-chip {
  min-width: 0;
}

.token-chip code {
  max-width: min(230px, 48vw);
}

.account-key-item {
  transition: border-color .18s ease, background .18s ease;
}

.account-key-item:hover {
  border-color: rgba(143, 92, 255, .24);
  background: rgba(255,255,255,.04);
}

.token-background-badge {
  min-height: 30px;
  max-width: min(260px, 100%);
}

.webhook-mini-form input {
  min-height: 40px;
}

.webhook-mini-form button {
  min-height: 40px;
  border-color: rgba(143, 92, 255, .32);
  background: rgba(143, 92, 255, .12);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 0 12px;
}

.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-thread-meta {
  flex-wrap: wrap;
}

.support-message {
  max-width: 760px;
}

.support-reply-form button {
  min-height: 42px;
  border-color: rgba(143, 92, 255, .34);
  background: rgba(143, 92, 255, .12);
  color: #fff;
  font-weight: 800;
  padding: 0 14px;
}

.history-file-panel {
  transition: border-color .18s ease, background .18s ease;
}

.history-file-panel:hover {
  border-color: rgba(143, 92, 255, .22);
}

.history-file-panel__info {
  gap: 6px 10px;
}

.history-file-panel__actions button[data-open-image] {
  font-weight: 760;
}

.history-file-panel__actions button[data-open-image] i {
  background: transparent;
  font-size: 11px;
}

.payment-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.payment-item > div {
  min-width: 0;
}

.payment-item strong,
.payment-item span {
  overflow-wrap: anywhere;
}

.promo-redeem-card input {
  min-width: 0;
}

.pagination a:hover {
  border-color: rgba(143, 92, 255, .48);
  background: rgba(143, 92, 255, .12);
}

.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: 980px) {
  .payment-item,
  .promo-redeem-card {
    grid-template-columns: 1fr;
  }

  .payment-item > :last-child {
    justify-self: start;
  }

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

  .webhook-mini-form button {
    justify-self: start;
    width: fit-content;
  }
}

@media (max-width: 760px) {
  .account-token-line {
    grid-template-columns: 1fr;
  }

  .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%;
  }

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

  .support-reply-form button {
    justify-self: end;
    width: fit-content;
  }

  .history-file-panel__actions {
    flex-wrap: wrap;
    gap: 6px;
  }

  .history-file-panel__actions button[data-open-image] {
    min-width: 0;
  }

  .promo-redeem-card form {
    grid-template-columns: 1fr;
  }

  .promo-redeem-card button {
    justify-self: end;
  }
}

/* Account copy icon normalization */
.account-shell .id-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  line-height: 1;
}

.account-shell .id-chip code {
  display: inline-grid;
  align-items: center;
  min-height: 28px;
  line-height: 1;
}

.account-shell .copy-token-button.id-copy-button {
  display: inline-grid !important;
  place-items: center !important;
  flex: 0 0 28px !important;
  width: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: rgba(143, 92, 255, .14) !important;
  color: #d8ccff !important;
  line-height: 1 !important;
  vertical-align: middle;
}

.account-shell .copy-token-button.id-copy-button i {
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1 !important;
  transform: none !important;
}

.account-shell .copy-token-button.id-copy-button .check-icon {
  display: none !important;
}

.account-shell .copy-token-button.id-copy-button.is-copied .copy-icon,
.account-shell .copy-token-button.id-copy-button.is-error .copy-icon {
  display: none !important;
}

.account-shell .copy-token-button.id-copy-button.is-copied .check-icon {
  display: block !important;
}

.account-shell .copy-token-button.id-copy-button:hover,
.account-shell .copy-token-button.id-copy-button.is-copied {
  background: rgba(97, 243, 179, .16) !important;
  color: #c6ffe8 !important;
}

.account-shell .copy-token-button.id-copy-button.is-error {
  background: rgba(255, 93, 125, .14) !important;
  color: #ffd7df !important;
}

.account-shell .id-delete-button {
  background: rgba(255, 93, 125, .12) !important;
  color: #ff9fb0 !important;
}

.account-shell .id-delete-button:hover {
  background: rgba(255, 93, 125, .22) !important;
  color: #fff !important;
}

.account-shell .token-background-badge {
  min-height: 30px;
  border-radius: 9px;
  font-weight: 780;
}

.account-shell .token-background-badge.is-empty,
.account-shell .token-background-badge.is-empty:disabled {
  border: 0;
  background: rgba(255,255,255,.055);
  color: rgba(231,231,231,.62);
  min-height: 0;
  opacity: 1;
  cursor: default;
  padding: 6px 9px;
}

.account-shell .token-background-badge.is-empty i {
  color: rgba(231,231,231,.46);
  font-size: 11px;
}

.account-shell .token-background-badge.is-empty span {
  font-weight: 500;
}

.account-shell .support-create-form--pro .apply-button {
  width: fit-content !important;
  max-width: 100%;
  min-width: 0;
  justify-self: end;
  padding-inline: 18px;
}

.account-shell .support-create-form--pro .apply-button b {
  white-space: nowrap;
}

/* Clean support inbox */
.account-shell .support-ticket-list {
  gap: 10px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.018)),
    rgba(5, 8, 18, .62);
  padding: 12px;
}

.account-shell .support-ticket-list__head {
  min-height: 36px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 2px;
  padding: 2px 4px 10px;
}

.account-shell .support-ticket-list__head strong {
  gap: 7px;
  font-size: 13px;
  line-height: 1.2;
}

.account-shell .support-ticket-list__head strong::before {
  display: none;
}

.account-shell .support-ticket-list__head span {
  min-width: 26px;
  min-height: 24px;
  border-radius: 8px;
  background: rgba(255,255,255,.055);
  color: rgba(231,231,231,.74);
  font-size: 11px;
}

.account-shell .support-ticket-tab {
  display: grid;
  gap: 0;
  min-height: 0;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018)),
    rgba(255,255,255,.024);
  box-shadow: none;
  padding: 16px 13px 14px 22px;
  appearance: none;
  user-select: none;
}

.account-shell .support-ticket-tab::before {
  inset: 16px auto 14px 9px;
  width: 3px;
  border-radius: 999px;
  background: rgba(143, 92, 255, .22);
}

.account-shell .support-ticket-tab:hover,
.account-shell .support-ticket-tab.is-active {
  border-color: rgba(143, 92, 255, .30);
  background:
    radial-gradient(circle at 0 0, rgba(143, 92, 255, .14), transparent 45%),
    linear-gradient(180deg, rgba(143, 92, 255, .075), rgba(255,255,255,.025)),
    rgba(8, 11, 24, .74);
  box-shadow: none;
  transform: translateY(-1px);
}

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

.account-shell .support-ticket-tab.is-active {
  border-color: rgba(151, 112, 255, .40);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}

.account-shell .support-ticket-tab__top {
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-bottom: 9px;
  padding-top: 1px;
}

.account-shell .support-ticket-tab__top .status-pill {
  min-height: 22px;
  border-radius: 7px;
  font-size: 10px;
  padding: 0 7px;
}

.account-shell .support-ticket-tab-date {
  margin-left: auto;
  color: rgba(167, 162, 188, .66);
  font-size: 10px;
  font-weight: 700;
  max-width: 104px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-shell .support-ticket-tab strong {
  color: rgba(246,243,255,.94);
  font-size: 13px;
  font-weight: 820;
  line-height: 1.3;
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin-bottom: 10px;
}

.account-shell .support-ticket-tab-meta {
  display: flex;
  gap: 8px;
  width: 100%;
  padding-top: 9px;
  border-top: 1px solid rgba(255,255,255,.055);
}

.account-shell .support-ticket-tab-updated,
.account-shell .support-ticket-tab-hidden {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  border-radius: 7px;
  background: rgba(255,255,255,.035);
  color: rgba(231,231,231,.54);
  font-size: 10px;
  font-weight: 560;
  line-height: 1;
  padding: 0 7px;
}

.account-shell .support-ticket-tab-hidden {
  gap: 5px;
}

@media (max-width: 760px) {
  .account-shell .support-ticket-list {
    position: relative;
    display: grid;
    gap: 10px;
    width: 100%;
    max-height: none;
    min-height: 0;
    margin: 0;
    overflow: visible;
    border: 1px solid rgba(143, 92, 255, .14);
    border-radius: 13px;
    background: rgba(5, 8, 18, .52);
    scroll-snap-type: none;
    padding: 11px;
  }

  .account-shell .support-ticket-list__head {
    position: static;
    min-height: 30px;
    margin-bottom: 2px;
    padding: 0 2px 9px;
  }

  .account-shell .support-ticket-tab,
  .account-shell .support-empty-state {
    flex: none;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    scroll-snap-align: none;
  }

  .account-shell .support-ticket-tab {
    padding: 15px 12px 13px 21px;
  }

  .account-shell .support-ticket-tab__top {
    margin-bottom: 8px;
  }

  .account-shell .support-ticket-tab strong {
    margin-bottom: 9px;
  }

  .account-shell .support-ticket-tab-meta {
    padding-top: 8px;
  }

  .account-shell .support-ticket-tab strong {
    display: -webkit-box;
    white-space: normal;
    -webkit-line-clamp: 2;
  }

  .account-shell .support-ticket-tab-meta {
    flex-wrap: wrap;
  }
}

/* Final button system overrides */
.apply-button,
.download-button,
.auth-panel .admin-login-button,
button.apply-button,
a.download-button {
  border: 0 !important;
  background: #5f4dff !important;
  background-image: none !important;
  color: #fff !important;
  box-shadow: none !important;
  font-weight: 650 !important;
}

.apply-button:hover,
.download-button:hover,
.auth-panel .admin-login-button:hover,
button.apply-button:hover,
a.download-button:hover {
  background: #705eff !important;
}

.copy-button,
.mask-button,
.ghost-button,
.webhook-mini-form button {
  border: 0 !important;
  background: rgba(255, 255, 255, .08) !important;
  color: rgba(246, 244, 255, .9) !important;
  box-shadow: none !important;
  font-weight: 520 !important;
}

.copy-button:hover,
.mask-button:hover,
.ghost-button:hover,
.webhook-mini-form button:hover {
  background: rgba(255, 255, 255, .13) !important;
}

.account-empty-state {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.history-empty--wide .ghost-button {
  justify-self: start;
  margin-top: 8px;
}

/* Account API keys polish */
.account-grid--keys {
  grid-template-columns: minmax(380px, .95fr) minmax(0, 1.05fr);
  gap: 18px;
}

.account-grid--keys .account-card {
  gap: 14px;
  padding: 18px;
}

.account-grid--keys .account-card > h2 {
  margin: 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 19px;
  padding-bottom: 13px;
}

.account-grid--keys .admin-form {
  gap: 12px;
}

.account-grid--keys .admin-form > .field,
.account-grid--keys .account-background-panel,
.account-grid--keys .account-plate-color-control {
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  padding: 11px;
}

.account-grid--keys .account-plate-color-control {
  grid-template-columns: minmax(0, 1fr) 48px;
  min-height: 0;
}

.account-grid--keys .account-plate-color-control input[type="color"] {
  width: 48px;
  height: 40px;
}

.account-grid--keys .account-custom-bg {
  min-height: 0 !important;
  border-radius: 12px;
}

.account-grid--keys .apply-button {
  min-height: 44px;
}

.account-key-list {
  gap: 10px;
}

.account-key-item {
  gap: 11px;
  border-color: rgba(255,255,255,.085);
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(102, 53, 239, .075), transparent 44%),
    rgba(255,255,255,.028);
  padding: 13px;
}

.account-key-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.account-token-line {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.account-key-item dl {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.account-key-item dl div {
  border-radius: 10px;
  padding: 8px;
}

.token-background-badge,
.token-color-badge,
.token-smoothing-badge,
.token-mask-only-badge {
  min-height: 28px;
  border: 0;
  background: rgba(255,255,255,.055);
  font-weight: 500;
}

.token-smoothing-badge:not(.is-off) {
  background: rgba(97, 243, 179, .09);
  color: #bfffe3;
}

.token-mask-only-badge:not(.is-off) {
  background: rgba(102, 53, 239, .12);
  color: #ded4ff;
}

.key-color-mini-form {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 8px;
  border-color: rgba(255,255,255,.075);
  background: rgba(255,255,255,.024);
  padding: 8px;
}

.key-color-mini-form label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.key-color-mini-form input[type="color"] {
  width: 42px;
  height: 34px;
  min-height: 34px;
}

.key-color-mini-form button {
  width: 38px !important;
  min-width: 38px !important;
  min-height: 34px !important;
  border-radius: 10px !important;
  background: #6635ef !important;
  padding: 0 !important;
  font-size: 0 !important;
}

.key-color-mini-form button span {
  display: none !important;
}

.key-color-mini-form button i {
  font-size: 13px !important;
}

.account-shell .token-background-badge,
.account-shell .token-color-badge,
.account-shell .token-smoothing-badge,
.account-shell .token-mask-only-badge {
  align-self: start;
  justify-self: start;
  width: fit-content !important;
  max-width: min(100%, 260px) !important;
}

@media (max-width: 920px) {
  .account-grid--keys {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .account-key-row,
  .account-token-line {
    display: grid;
    justify-content: stretch;
  }

  .account-key-item dl {
    grid-template-columns: 1fr 1fr;
  }

  .key-color-mini-form {
    grid-template-columns: 1fr auto;
  }

  .key-smoothing-toggle {
    grid-column: 1 / -1;
  }
}
