:root {
  color-scheme: dark;
  font-family: "DM Sans", sans-serif;
  color: #f5f4f8;
  background: #0c0c11;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --muted: #91909e;
  --line: #292831;
  --accent: #bcff68;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding-right: env(safe-area-inset-right);
  padding-left: env(safe-area-inset-left);
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 16% 42%, rgba(117, 89, 207, 0.12), transparent 34%),
    radial-gradient(ellipse at 88% 90%, rgba(90, 123, 55, 0.08), transparent 28%),
    #0c0c11;
}

button,
input {
  font: inherit;
}

.topbar,
.footer {
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar {
  height: 84px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font: 700 20px "Space Grotesk", sans-serif;
  letter-spacing: -1px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: #12140e;
  font-size: 17px;
}

.brand-light {
  color: #a9a8b2;
  font-weight: 500;
}

.topbar-note {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #aaa9b4;
  font-size: 12px;
}

.status-dot,
.eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(188, 255, 104, 0.65);
}

.layout {
  position: relative;
  display: grid;
  width: min(1120px, calc(100% - 64px));
  min-height: 760px;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 70px;
  margin: 0 auto;
  padding: 54px 0 66px;
}

.intro {
  position: relative;
  align-self: center;
  padding-bottom: 32px;
}

.eyebrow,
.step-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b7b6c0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
}

.intro h1 {
  position: relative;
  z-index: 1;
  margin: 25px 0 19px;
  font: 600 clamp(46px, 5vw, 68px)/1.05 "Space Grotesk", sans-serif;
  letter-spacing: -3.8px;
}

.intro h1 span {
  color: var(--accent);
}

.intro-copy {
  position: relative;
  z-index: 1;
  max-width: 400px;
  margin: 0;
  color: #a8a7b2;
  font-size: 15px;
  line-height: 1.8;
}

.proof-points {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 17px;
  margin-top: 39px;
  color: #d2d1da;
  font-size: 13px;
}

.proof-points > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.proof-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(188, 255, 104, 0.24);
  border-radius: 8px;
  color: var(--accent);
}

.decorative-orb {
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 50%;
  pointer-events: none;
}

.orb-one {
  top: -132px;
  left: -260px;
  width: 580px;
  height: 580px;
}

.orb-two {
  top: -86px;
  left: -212px;
  width: 484px;
  height: 484px;
}

.form-card {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 31px 33px 27px;
  border: 1px solid #302f38;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(29, 28, 37, 0.98), rgba(20, 20, 26, 0.98));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.completion-layout {
  min-height: calc(100vh - 139px);
}

.completion-layout .intro h1 {
  margin-bottom: 19px;
}

.success-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(188, 255, 104, 0.4);
  border-radius: 50%;
  background: rgba(188, 255, 104, 0.09);
  color: var(--accent);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 23px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.admin-main {
  width: min(1120px, calc(100% - 64px));
  min-height: calc(100vh - 139px);
  margin: 0 auto;
  padding: 64px 0;
}

.admin-login {
  width: min(100%, 450px);
  margin: 30px auto;
}

.admin-login h1,
.admin-heading h1 {
  margin: 0;
  font: 600 24px "Space Grotesk", sans-serif;
}

.admin-content {
  width: 100%;
}

.admin-content[hidden],
.admin-login[hidden] {
  display: none;
}

.admin-heading,
.admin-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-heading {
  margin-bottom: 20px;
}

.admin-actions {
  justify-content: flex-end;
}

.secondary-button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #393842;
  border-radius: 8px;
  background: #19181f;
  color: #e7e6ed;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.secondary-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.inquiry-table-wrap {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #302f38;
  border-radius: 12px;
  background: rgba(20, 20, 26, 0.85);
}

.inquiry-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}

.inquiry-table th,
.inquiry-table td {
  padding: 13px 15px;
  border-bottom: 1px solid #302f38;
  font-size: 11px;
}

.inquiry-table th {
  color: #a5a4af;
  font-weight: 600;
}

.inquiry-table td {
  color: #e7e6ed;
}

.inquiry-table tbody tr:last-child td {
  border-bottom: 0;
}

.empty-state {
  margin: 0;
  padding: 24px;
  color: #a5a4af;
  font-size: 12px;
  text-align: center;
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.step-label {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 9px;
}

.card-heading h2 {
  margin: 0;
  font: 600 23px "Space Grotesk", sans-serif;
  letter-spacing: -0.6px;
}

.step-count {
  padding-top: 3px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.step-count span {
  color: #777681;
  font-weight: 500;
}

.field-label,
.option-group legend {
  display: block;
  margin-bottom: 10px;
  color: #d4d3dc;
  font-size: 12px;
  font-weight: 600;
}

.username-input {
  display: flex;
  height: 46px;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid #393842;
  border-radius: 9px;
  background: #14141a;
  color: #92919c;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.username-input:focus-within {
  border-color: rgba(188, 255, 104, 0.75);
  box-shadow: 0 0 0 3px rgba(188, 255, 104, 0.08);
}

.username-input input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f5f4f8;
  font-size: 13px;
}

.username-input input::placeholder {
  color: #696873;
}

.profile-preview {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 11px;
  margin-top: 9px;
  padding: 7px 10px;
  border: 1px solid #34333d;
  border-radius: 9px;
  background: rgba(12, 12, 17, 0.6);
  color: #e9e8ee;
  font-size: 12px;
}

.profile-preview[hidden] {
  display: none;
}

.profile-preview img {
  width: 36px;
  height: 36px;
  border: 1px solid #45434e;
  border-radius: 50%;
  background: #24232c;
  object-fit: cover;
}

#profile-status {
  color: #85848f;
  font-size: 10px;
}

.preview-badge {
  margin-left: auto;
  color: #85848f;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
}

.option-group {
  min-width: 0;
  margin: 21px 0 0;
  padding: 0;
  border: 0;
}

.option-group legend {
  padding: 0;
}

.goal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.choice-card {
  position: relative;
  display: flex;
  min-height: 106px;
  flex-direction: column;
  justify-content: center;
  padding: 11px 10px;
  border: 1px solid #373640;
  border-radius: 9px;
  background: rgba(18, 18, 24, 0.7);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.choice-card:has(input:checked) {
  border-color: rgba(188, 255, 104, 0.7);
  background: rgba(188, 255, 104, 0.055);
}

.choice-card input,
.target-grid input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.choice-card:focus-within,
.target-grid label:focus-within span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.choice-icon {
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 16px;
}

.choice-title {
  color: #e7e6ed;
  font-size: 11px;
  font-weight: 700;
}

.choice-caption {
  margin-top: 4px;
  color: #92919d;
  font-size: 9px;
  line-height: 1.4;
}

.target-group {
  margin-top: 20px;
}

.target-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.target-grid label {
  position: relative;
  cursor: pointer;
}

.target-grid label span {
  display: grid;
  height: 37px;
  place-items: center;
  border: 1px solid #393842;
  border-radius: 8px;
  background: rgba(18, 18, 24, 0.7);
  color: #bab9c3;
  font-size: 11px;
  font-weight: 600;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.target-grid input:checked + span {
  border-color: rgba(188, 255, 104, 0.75);
  background: rgba(188, 255, 104, 0.09);
  color: var(--accent);
}

.helper-text {
  margin: 8px 0 0;
  color: #898893;
  font-size: 10px;
  line-height: 1.5;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 18px;
  color: #a5a4af;
  font-size: 10px;
  line-height: 1.55;
  cursor: pointer;
}

.consent-row input {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.continue-button {
  display: flex;
  width: 100%;
  height: 47px;
  align-items: center;
  justify-content: space-between;
  margin-top: 17px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: var(--accent);
  color: #15180f;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 150ms ease, transform 150ms ease;
}

.continue-button:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.continue-button:disabled {
  cursor: wait;
  filter: grayscale(0.3);
  transform: none;
}

.continue-button > span:last-child {
  font-size: 20px;
}

.form-message {
  min-height: 0;
  margin: 0;
  color: #ffaaa8;
  font-size: 11px;
  line-height: 1.5;
}

.form-message:not(:empty) {
  margin-top: 10px;
}

.form-message.success {
  color: var(--accent);
}

.privacy-note {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 9px 0 0;
  color: #7f7e89;
  font-size: 9px;
}

.privacy-note span {
  color: var(--accent);
}

.footer {
  min-height: 55px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #777681;
  font-size: 10px;
}

@media (max-width: 850px) {
  .layout {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 56px 0;
  }

  .intro {
    padding-bottom: 0;
  }

  .intro h1 {
    margin-top: 19px;
    font-size: clamp(46px, 10vw, 62px);
  }

  .proof-points {
    grid-template-columns: repeat(2, max-content);
    gap: 16px 24px;
    margin-top: 25px;
  }

  .decorative-orb {
    display: none;
  }

  .form-card {
    max-width: 620px;
    margin: 0 auto;
  }

  .completion-layout {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .topbar,
  .footer,
  .layout {
    width: min(100% - 28px, 460px);
  }

  .topbar {
    height: 68px;
  }

  .topbar-note {
    font-size: 10px;
  }

  .layout {
    padding: 34px 0 40px;
    gap: 24px;
  }

  .intro h1 {
    font-size: 49px;
    letter-spacing: -2.7px;
  }

  .intro-copy {
    font-size: 13px;
  }

  .proof-points {
    grid-template-columns: 1fr;
    gap: 11px;
    margin-top: 21px;
  }

  .form-card {
    padding: 22px 16px 20px;
  }

  .admin-main {
    width: min(100% - 28px, 460px);
    padding: 42px 0;
  }

  .admin-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-actions {
    justify-content: flex-start;
  }

  .card-heading h2 {
    font-size: 20px;
  }

  .goal-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .choice-card {
    display: grid;
    min-height: 60px;
    grid-template-columns: 24px 1fr;
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: 8px;
    padding: 9px 12px;
  }

  .choice-icon {
    grid-row: 1 / span 2;
    justify-self: center;
    margin: 0;
  }

  .choice-title {
    font-size: 12px;
  }

  .choice-caption {
    margin-top: 2px;
    font-size: 10px;
  }

  .target-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .target-grid label span {
    min-height: 44px;
    font-size: 11px;
  }

  .username-input {
    height: 48px;
  }

  .username-input input {
    font-size: 16px;
  }

  .consent-row input {
    width: 18px;
    height: 18px;
  }

  .continue-button {
    min-height: 48px;
  }

  .footer {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .secondary-button {
    min-height: 44px;
  }

  .inquiry-table th,
  .inquiry-table td {
    padding: 13px 12px;
  }
}
