:root {
  --bg: #080b14;
  --panel: #111625;
  --panel-2: #171c2d;
  --line: #30374b;
  --text: #f4f1ff;
  --muted: #a3a7ba;
  --faint: #70778f;
  --violet: #8b5cf6;
  --violet-light: #a78bfa;
}

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body {
  margin: 0;
  background: radial-gradient(circle at 50% -20%, rgba(98,73,173,.14), transparent 38%), var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid rgba(167,139,250,.35); outline-offset: 3px; }
.hidden { display: none !important; }

.shell { min-height: 100svh; padding: 30px clamp(20px, 5vw, 78px) 36px; }
header, .hero, .workspace, footer { width: min(1248px, 100%); margin-inline: auto; }
header { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); font-size: 14px; font-weight: 800; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; }
.brand-mark { display: grid; width: 22px; height: 22px; grid-template-columns: 1fr 1fr; gap: 3px; }
.brand-mark i { border: 3px solid currentColor; border-radius: 2px; }
.brand-mark i:nth-child(3) { grid-column: 2; }
.status { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #5ddb8c; box-shadow: 0 0 12px rgba(93,219,140,.75); }

.hero { padding: clamp(60px, 8vh, 88px) 0 34px; text-align: center; }
.hero p { margin: 0 0 18px; color: var(--violet-light); font-size: 11px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(40px, 5vw, 62px); letter-spacing: -.045em; line-height: 1.05; }
.hero span { display: block; margin-top: 20px; color: var(--muted); font-size: clamp(16px, 2vw, 20px); }

.workspace { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(310px, .92fr); gap: 30px; padding: 16px; border: 1px solid rgba(112,123,157,.45); border-radius: 23px; background: rgba(11,15,27,.78); box-shadow: 0 24px 70px rgba(0,0,0,.32); }
form { min-width: 0; padding: 24px 20px 22px; }
.tabs { display: grid; width: fit-content; grid-template-columns: 1fr 1fr; gap: 3px; margin-bottom: 22px; padding: 3px; border: 1px solid rgba(111,121,153,.2); border-radius: 10px; background: rgba(8,11,20,.55); }
.tabs button { min-width: 112px; padding: 8px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--faint); cursor: pointer; font-size: 11px; font-weight: 700; }
.tabs button.active { background: rgba(139,92,246,.15); color: #d9ccff; box-shadow: inset 0 0 0 1px rgba(167,139,250,.17); }
label, .label-row { color: #c5c7d3; font-size: 13px; font-weight: 650; }
label { display: block; margin: 0 0 9px; }
label small { margin-left: 5px; color: var(--faint); font-weight: 500; }
.label-row { display: flex; align-items: center; justify-content: space-between; margin-top: 21px; }
.label-row label { margin: 0 0 9px; }
.link-button { border: 0; background: transparent; color: var(--violet-light); cursor: pointer; font-size: 12px; font-weight: 700; }

.input, .fake-input, .short-result > div { display: flex; height: 58px; align-items: center; border: 1px solid var(--line); border-radius: 13px; background: rgba(8,11,20,.55); transition: border-color .16s, box-shadow .16s; }
.input.large { height: 76px; border-radius: 16px; }
.input:focus-within { border-color: var(--violet-light); box-shadow: 0 0 0 3px rgba(167,139,250,.16), 0 0 24px rgba(139,92,246,.2); }
.input > span, .fake-input > span { display: flex; height: 100%; align-items: center; padding: 0 15px; border-right: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.input.large > span { border: 0; color: var(--violet-light); }
.input input { min-width: 0; height: 100%; flex: 1; padding: 0 16px; border: 0; outline: 0; background: transparent; color: var(--text); }
.input.large input { padding-left: 0; font-size: clamp(17px, 2vw, 22px); }
.input input::placeholder { color: #696f83; }
.fake-input em { min-width: 0; flex: 1; padding: 0 18px; color: #777d91; font-size: 13px; font-style: normal; }
.fake-input b { padding-right: 18px; color: var(--violet-light); }
#manage-fields > label:not(:first-child) { margin-top: 16px; }
.two-columns { display: grid; grid-template-columns: 1.2fr .8fr; gap: 12px; margin-top: 16px; }

.error { min-height: 18px; margin: 11px 0 0; color: #ff8e9f; font-size: 12px; }
.primary { display: flex; width: 100%; height: 62px; align-items: center; justify-content: center; gap: 14px; margin-top: 8px; border: 1px solid rgba(196,173,255,.42); border-radius: 14px; background: linear-gradient(135deg,#9b6cff,#6d37f0); box-shadow: 0 8px 26px rgba(103,55,225,.26); color: white; cursor: pointer; font-weight: 750; transition: transform .16s, filter .16s; }
.primary:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.07); }
.primary:disabled { cursor: wait; opacity: .7; }
.hint { display: flex; gap: 9px; margin: 15px 6px 0; color: var(--faint); font-size: 11px; line-height: 1.5; }
.hint b { color: var(--violet-light); }
.secret { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 17px; padding: 13px 14px; border: 1px solid rgba(167,139,250,.34); border-radius: 12px; background: rgba(139,92,246,.08); }
.secret div { min-width: 0; }
.secret span { display: block; margin-bottom: 5px; color: var(--violet-light); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.secret code { display: block; overflow: hidden; color: #ded6ff; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.secret button, .short-result button { border: 1px solid rgba(167,139,250,.24); border-radius: 9px; background: rgba(167,139,250,.08); color: #cdbfff; cursor: pointer; }
.secret button { padding: 9px 11px; font-size: 11px; font-weight: 700; }

aside { display: flex; min-width: 0; flex-direction: column; padding: 24px; border: 1px solid rgba(80,89,116,.32); border-radius: 18px; background: linear-gradient(145deg,rgba(23,28,45,.95),rgba(16,20,34,.92)); }
.result-title { display: flex; align-items: flex-start; justify-content: space-between; }
.result-title small { color: var(--violet-light); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.result-title h2 { margin: 4px 0 0; font-size: 15px; }
.ready { padding: 5px 8px; border: 1px solid rgba(93,219,140,.24); border-radius: 999px; background: rgba(93,219,140,.08); color: #7ee2a3; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.qr { display: grid; width: min(220px,80%); aspect-ratio: 1; place-items: center; align-self: center; margin: 18px 0; border-radius: 15px; background: #fff; box-shadow: 0 14px 30px rgba(0,0,0,.28); overflow: hidden; }
.qr img { width: 100%; height: 100%; }
#qr-placeholder { color: #c6c8d0; font-size: 18px; font-weight: 800; letter-spacing: .18em; }
.short-result { margin-top: auto; padding-top: 15px; border-top: 1px solid rgba(111,121,153,.2); }
.short-result > div { height: 52px; margin-top: 9px; padding-left: 14px; border-radius: 11px; }
.short-result strong { min-width: 0; flex: 1; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.short-result button { display: grid; width: 34px; height: 34px; place-items: center; margin-right: 8px; }
.short-result button:disabled { cursor: default; opacity: .3; }
.download { margin-top: 12px; color: var(--violet-light); font-size: 11px; font-weight: 700; text-align: center; text-decoration: none; }
#empty { margin: 12px 0 0; color: var(--faint); font-size: 10px; text-align: center; }

footer { display: flex; align-items: center; justify-content: center; gap: 16px; padding-top: 24px; color: #83889d; font-size: 13px; }
footer i { width: 3px; height: 3px; border-radius: 50%; background: #62677a; }
.toast { position: fixed; right: 24px; bottom: 24px; padding: 12px 16px; border: 1px solid rgba(167,139,250,.28); border-radius: 12px; background: var(--panel-2); box-shadow: 0 16px 36px rgba(0,0,0,.38); font-size: 12px; }

@media (max-width: 850px) {
  .workspace { grid-template-columns: 1fr; }
  aside { min-height: 445px; }
}
@media (max-width: 540px) {
  .shell { padding: 20px 14px 32px; }
  .status { font-size: 0; }
  .hero { padding: 48px 4px 26px; }
  .hero h1 { font-size: 39px; }
  .workspace { padding: 8px; border-radius: 18px; }
  form, aside { padding: 18px 14px; }
  .tabs { width: 100%; }
  .tabs button { min-width: 0; }
  .two-columns { grid-template-columns: 1fr; }
  .domain { max-width: 44%; overflow: hidden; text-overflow: ellipsis; }
  footer { flex-wrap: wrap; gap: 10px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
