:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-strong: #000000;
  --surface: rgba(11, 11, 14, 0.82);
  --surface-strong: rgba(18, 18, 23, 0.94);
  --surface-soft: rgba(255, 255, 255, 0.055);
  --surface-hover: rgba(255, 255, 255, 0.085);
  --text: #f7f7f8;
  --text-strong: #ffffff;
  --muted: #a3a3ad;
  --muted-strong: #d2d2d7;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --accent: #ffffff;
  --accent-ink: #050505;
  --danger: #ff9a8c;
  --danger-bg: rgba(255, 74, 51, 0.12);
  --success: #83f3a3;
  --success-bg: rgba(29, 185, 84, 0.12);
  --focus: rgba(255, 255, 255, 0.86);
  --glow-blue: rgba(56, 189, 248, 0.28);
  --glow-violet: rgba(168, 85, 247, 0.24);
  --glow-lime: rgba(190, 242, 100, 0.16);
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 16px 60px rgba(0, 0, 0, 0.34);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1220px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--bg-strong);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.06), transparent 32rem),
    radial-gradient(circle at 86% 18%, rgba(99, 102, 241, 0.12), transparent 28rem),
    linear-gradient(180deg, #09090a 0%, #040405 50%, #000 100%);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body::selection {
  background: rgba(255, 255, 255, 0.22);
  color: var(--text-strong);
}

a {
  color: inherit;
  text-decoration-color: rgba(255, 255, 255, 0.38);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: rgba(255, 255, 255, 0.82);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 34rem);
}

.ambient-grid {
  position: absolute;
  inset: -1px;
  opacity: 0.55;
  mask-image: radial-gradient(circle at 50% 22%, #000 0%, rgba(0, 0, 0, 0.74) 28%, transparent 70%);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.075) 1px, transparent 1px);
  background-size: 54px 54px;
}

.ambient-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 9px 9px;
  opacity: 0.24;
}

.ambient-orb {
  position: absolute;
  width: min(44vw, 620px);
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(52px);
  opacity: 0.82;
  transform: translate3d(0, 0, 0);
}

.ambient-orb-one {
  top: -14%;
  right: -10%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.38), transparent 0 12%, transparent 13%),
    radial-gradient(circle at 50% 50%, var(--glow-blue), transparent 68%);
  animation: float-one 16s ease-in-out infinite alternate;
}

.ambient-orb-two {
  left: -16%;
  bottom: -20%;
  background:
    radial-gradient(circle at 58% 42%, var(--glow-violet), transparent 68%),
    radial-gradient(circle at 42% 52%, var(--glow-lime), transparent 62%);
  animation: float-two 20s ease-in-out infinite alternate;
}

.ambient-line {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 17%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: rotate(-4deg);
  opacity: 0.44;
}

.spotlight {
  position: absolute;
  inset: 0;
  opacity: 0.36;
  background: radial-gradient(
    600px circle at var(--pointer-x, 54%) var(--pointer-y, 28%),
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0.03) 26%,
    transparent 60%
  );
  mix-blend-mode: screen;
}

@keyframes float-one {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-48px, 36px, 0) scale(1.08);
  }
}

@keyframes float-two {
  from {
    transform: translate3d(0, 0, 0) scale(1.08);
  }
  to {
    transform: translate3d(62px, -42px, 0) scale(0.98);
  }
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-bottom: 30px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  min-width: 80px;
}

.brand-logo {
  display: block;
  width: 80px;
  max-width: 42vw;
  height: auto;
  filter: invert(1) brightness(1.24);
}

.brand-fallback {
  color: var(--text-strong);
  font-size: 1rem;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: lowercase;
}

.topbar-meta,
.trust-pill,
.hero-kicker,
.hero-actions span,
.link-meta span,
.info-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted-strong);
  backdrop-filter: blur(18px);
}

.topbar-meta {
  padding: 10px 13px;
  font-size: 0.86rem;
  white-space: nowrap;
}

.status-dot,
.kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 18px rgba(131, 243, 163, 0.72);
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(560px, 1.28fr);
  gap: 28px;
  align-items: stretch;
}

.hero-panel {
  position: sticky;
  top: 28px;
  display: grid;
  align-content: start;
  gap: 20px;
  height: 100%;
  min-height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03) 36%, rgba(255, 255, 255, 0.065)),
    rgba(7, 7, 9, 0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(26px);
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-panel::before {
  inset: 0;
  background:
    radial-gradient(circle at 78% 9%, rgba(255, 255, 255, 0.22), transparent 0 1px, transparent 2px),
    radial-gradient(circle at 52% 74%, rgba(255, 255, 255, 0.18), transparent 0 1px, transparent 2px),
    linear-gradient(115deg, transparent 0 46%, rgba(255, 255, 255, 0.08) 46.2%, transparent 46.6% 100%);
  opacity: 0.64;
}

.hero-panel::after {
  right: -160px;
  bottom: -165px;
  width: 440px;
  height: 440px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 60%),
    repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.12) 0deg 5deg, transparent 5deg 14deg);
  mask-image: radial-gradient(circle, transparent 0 44%, #000 44.4% 100%);
  opacity: 0.45;
}

.hero-kicker {
  width: fit-content;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-panel h1 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  color: var(--text-strong);
  font-size: 2.8rem;
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 1rem;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions span {
  padding: 8px 11px;
  color: var(--muted-strong);
  font-size: 0.86rem;
}

.info-strip,
.form-hints {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.info-strip {
  align-self: end;
  margin-top: auto;
}

.form-hints {
  z-index: 50;
  margin: 0;
}

.info-chip {
  position: relative;
  min-height: 34px;
  padding: 6px 7px 6px 11px;
  color: var(--muted-strong);
  font-size: 0.84rem;
  font-weight: 620;
  white-space: nowrap;
}

.info-popover {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.info-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted-strong);
  font-size: 0.75rem;
  font-weight: 780;
  line-height: 1;
}

.info-trigger:hover,
.info-trigger:focus-visible {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.13);
  color: var(--text-strong);
}

.info-trigger:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.18);
  outline-offset: 2px;
}

.tooltip-card {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 80;
  width: min(280px, calc(100vw - 48px));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 12px 13px;
  background: rgba(10, 10, 12, 0.96);
  box-shadow: var(--shadow-soft);
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 520;
  line-height: 1.42;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-2px);
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.tooltip-card::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 18px;
  width: 10px;
  height: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 10, 12, 0.96);
  transform: rotate(45deg);
}

.info-popover:hover .tooltip-card,
.info-popover:focus-within .tooltip-card {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.info-chip:nth-child(n + 2) .tooltip-card {
  right: 0;
  left: auto;
}

.info-chip:nth-child(n + 2) .tooltip-card::before {
  right: 18px;
  left: auto;
}

.info-strip .info-chip:nth-child(3) .tooltip-card {
  right: auto;
  left: 0;
}

.info-strip .info-chip:nth-child(3) .tooltip-card::before {
  right: auto;
  left: 18px;
}

.info-strip .tooltip-card {
  top: auto;
  bottom: calc(100% + 10px);
  transform: translateY(2px);
}

.info-strip .tooltip-card::before {
  top: auto;
  bottom: -6px;
  border-top: 0;
  border-left: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.info-strip .info-popover:hover .tooltip-card,
.info-strip .info-popover:focus-within .tooltip-card {
  transform: translateY(0);
}

.form-panel {
  min-width: 0;
  display: flex;
}

.form-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.035)),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px);
}

.form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.form-header h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 1.86rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.form-header h1 {
  margin: 0;
  color: var(--text-strong);
  font-size: 1.86rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.trust-pill {
  flex: 0 0 auto;
  padding: 9px 12px;
  color: var(--text-strong);
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro {
  color: var(--muted-strong);
}

.intro p {
  max-width: 68ch;
  margin: 0 0 12px;
}

.notice,
.review-box,
.form-message,
.success {
  border-radius: var(--radius-md);
}

.notice,
.review-box,
.form-message {
  padding: 16px 18px;
}

.link-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 26px;
}

.link-meta span {
  padding: 8px 10px;
  color: var(--text-strong);
  font-size: 0.86rem;
}

.link-meta:not([hidden]) + .form-hints {
  margin-top: 12px;
}

.notice-error,
.form-message.error {
  border: 1px solid rgba(255, 154, 140, 0.28);
  background: var(--danger-bg);
  color: var(--danger);
}

.form-message.success {
  border: 1px solid rgba(131, 243, 163, 0.22);
  background: var(--success-bg);
  color: var(--success);
}

.admin-page {
  width: min(920px, calc(100% - 40px));
}

.admin-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 34px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.035)),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px);
}

.admin-header {
  margin-bottom: 26px;
}

.admin-section {
  animation: fade-in 240ms ease both;
}

.admin-session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.session-pill {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted-strong);
  font-size: 0.86rem;
  font-weight: 680;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-actions {
  margin-top: 10px;
}

.link-result {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  background: rgba(0, 0, 0, 0.24);
}

.link-result textarea {
  min-height: 96px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.result-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

#secretForm {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 28px;
}

.progress {
  --progress-fill: 0%;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0 0 28px;
  padding: 0;
}

.progress::before,
.progress::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 12.5%;
  height: 2px;
  border-radius: 999px;
}

.progress::before {
  right: 12.5%;
  background: rgba(255, 255, 255, 0.12);
}

.progress::after {
  width: var(--progress-fill);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.55));
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.18);
}

.progress-step {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 7px;
  border: 0;
  padding: 0 6px;
  background: transparent;
  color: var(--muted);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 650;
}

.progress-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035)),
    #09090a;
  color: var(--muted-strong);
  font-size: 0.76rem;
  font-weight: 760;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.progress-label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-step.is-active,
.progress-step.is-complete {
  color: var(--text-strong);
}

.progress-step.is-active .progress-dot,
.progress-step.is-complete .progress-dot {
  border-color: rgba(255, 255, 255, 0.9);
  background: var(--accent);
  color: var(--accent-ink);
}

.progress-step.is-active .progress-dot {
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.08),
    0 12px 34px rgba(255, 255, 255, 0.16);
}

form[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

legend {
  margin-bottom: 16px;
  color: var(--text-strong);
  font-size: 1.18rem;
  font-weight: 780;
  letter-spacing: 0;
}

.step {
  display: none;
  animation: fade-in 190ms ease-out;
}

.step.is-active {
  display: block;
}

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

.grid {
  display: grid;
  gap: 16px;
}

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

label {
  display: block;
  margin-bottom: 16px;
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 680;
}

.field-block {
  margin-bottom: 16px;
}

.field-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.field-head .info-popover {
  position: relative;
}

.field-head .tooltip-card {
  top: calc(100% + 12px);
  right: auto;
  left: 50%;
  transform: translate(-50%, -2px);
}

.field-head .tooltip-card::before {
  right: auto;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
}

.field-head .info-popover:hover .tooltip-card,
.field-head .info-popover:focus-within .tooltip-card {
  transform: translate(-50%, 0);
}

.field-head label {
  margin: 0;
}

.field-head + input,
.field-head + select,
.field-head + textarea {
  margin-top: 0;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.22);
  color: var(--text-strong);
  outline: none;
  padding: 12px 13px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(210, 210, 215, 0.45);
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: var(--surface-hover);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--focus);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.11),
    0 10px 32px rgba(0, 0, 0, 0.24);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: rgba(255, 154, 140, 0.78);
}

select {
  color: var(--text-strong);
}

select option {
  background: #111114;
  color: var(--text-strong);
}

textarea {
  min-height: 104px;
  resize: vertical;
}

.password-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
  margin-top: 8px;
}

.password-wrap input {
  margin-top: 0;
}

.field-hint,
.field-error {
  display: block;
  margin-top: 8px;
  font-size: 0.84rem;
  line-height: 1.4;
}

.field-hint {
  color: var(--muted);
  font-weight: 520;
}

.field-error {
  min-height: 1.1em;
  color: var(--danger);
  font-weight: 650;
}

.checkbox-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 4px;
  color: var(--muted-strong);
  font-weight: 560;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: #ffffff;
}

.consent-row {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}

.review-box {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.review-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.5fr) minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.review-row strong {
  color: var(--muted);
  font-size: 0.88rem;
}

.review-row span {
  min-width: 0;
  color: var(--text-strong);
  overflow-wrap: anywhere;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
}

.form-footer .actions {
  flex: 0 0 auto;
  margin-top: 0;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 740;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease;
}

.primary-button {
  border: 1px solid rgba(255, 255, 255, 0.94);
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.42) inset,
    0 18px 48px rgba(255, 255, 255, 0.12);
}

.secondary-button,
.ghost-button {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-strong);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.primary-button:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 22px 58px rgba(255, 255, 255, 0.16);
}

.secondary-button:hover,
.ghost-button:hover {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.ghost-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.22);
  outline-offset: 3px;
}

.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
  box-shadow: none;
}

.ghost-button.compact {
  min-height: auto;
  padding: 0 14px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.form-message {
  min-height: 0;
  margin-top: 16px;
}

.form-message:empty {
  display: none;
}

.turnstile-widget {
  margin-top: 18px;
}

.success {
  border: 1px solid rgba(131, 243, 163, 0.24);
  background:
    radial-gradient(circle at 18% 10%, rgba(131, 243, 163, 0.14), transparent 40%),
    rgba(255, 255, 255, 0.045);
  padding: clamp(26px, 5vw, 40px);
  text-align: center;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border: 1px solid rgba(131, 243, 163, 0.34);
  border-radius: 999px;
  background: rgba(131, 243, 163, 0.14);
  color: var(--success);
  font-size: 1.6rem;
  font-weight: 800;
}

.success h2 {
  margin: 0 0 10px;
  color: var(--text-strong);
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: 0;
}

.success p {
  max-width: 60ch;
  margin: 0 auto;
  color: var(--muted-strong);
}

.request-id {
  margin-top: 16px !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--text-strong) !important;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

@media (max-width: 1040px) {
  .layout-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-panel {
    position: relative;
    top: auto;
    height: auto;
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100% - 24px, var(--container));
    padding: 14px 0 34px;
  }

  .layout-grid {
    gap: 14px;
  }

  .topbar {
    margin-bottom: 18px;
  }

  .brand-logo-wrap {
    min-width: 0;
  }

  .brand-logo {
    width: 80px;
  }

  .hero-panel,
  .form-shell,
  .admin-card {
    border-radius: 24px;
  }

  .hero-panel,
  .form-shell,
  .admin-card {
    padding: 26px;
  }

  .form-panel {
    order: 1;
  }

  .hero-panel {
    order: 2;
    gap: 14px;
  }

  .hero-actions,
  .info-strip {
    display: none;
  }

  .hero-panel h1 {
    font-size: 2.28rem;
  }

  .form-header h1,
  .form-header h2 {
    font-size: 1.64rem;
  }

  .form-header {
    display: grid;
  }

  .trust-pill {
    width: fit-content;
  }

  .grid-two,
  .review-row {
    grid-template-columns: 1fr;
  }

  .review-row {
    gap: 3px;
  }

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

  .form-footer {
    display: grid;
    gap: 18px;
    padding-top: 24px;
  }

  .form-footer .actions {
    display: grid;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .admin-session-row,
  .result-actions {
    display: grid;
  }

  .session-pill {
    width: 100%;
  }

  .password-wrap {
    grid-template-columns: 1fr;
  }

  .ghost-button.compact {
    min-height: 44px;
  }
}

@media (max-width: 430px) {
  .hero-panel,
  .form-shell,
  .admin-card {
    padding: 22px;
  }

  .hero-panel h1 {
    font-size: 2.08rem;
  }

  .hero-actions span,
  .link-meta span,
  .info-chip {
    width: 100%;
    justify-content: space-between;
  }

  .progress {
    margin-bottom: 24px;
  }

  .progress-step {
    font-size: 0.72rem;
    padding: 0 3px;
  }

  .tooltip-card {
    right: 0;
    left: auto;
    transform: translateY(-2px);
  }

  .tooltip-card::before {
    left: auto;
    right: 12px;
    transform: rotate(45deg);
  }

  .info-popover:hover .tooltip-card,
  .info-popover:focus-within .tooltip-card {
    transform: translateY(0);
  }

  .info-strip .tooltip-card {
    transform: translateY(2px);
  }

  .info-strip .info-popover:hover .tooltip-card,
  .info-strip .info-popover:focus-within .tooltip-card {
    transform: translateY(0);
  }

  .field-head .tooltip-card {
    right: auto;
    left: 0;
    width: min(260px, calc(100vw - 48px));
    transform: translateY(-2px);
  }

  .field-head .tooltip-card::before {
    right: auto;
    left: 12px;
    transform: rotate(45deg);
  }

  .field-head .info-popover:hover .tooltip-card,
  .field-head .info-popover:focus-within .tooltip-card {
    transform: translateY(0);
  }
}

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

  .spotlight {
    display: none;
  }
}
