:root {
  --lime: #8fff38;
  --lime-light: #c9ff9f;
  --ink: #111a16;
  --muted: #667069;
  --cream: #f6f8f3;
  --line: #dce3da;
  --white: #ffffff;
  --error: #c43d31;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(20, 39, 27, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(17, 26, 22, 0.07);
  display: flex;
  height: 76px;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 80px);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(17, 26, 22, 0.04);
}

.brand {
  align-items: center;
  display: inline-flex;
  font-family: "Manrope", sans-serif;
  font-size: 21px;
  font-weight: 800;
  gap: 10px;
  letter-spacing: -0.7px;
}

.brand-mark,
.mini-logo {
  align-items: center;
  background: var(--lime);
  border-radius: 9px;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.brand-mark svg,
.mini-logo svg {
  height: 23px;
  stroke: var(--ink);
  width: 23px;
}

.primary-nav {
  align-items: center;
  display: flex;
  gap: 8px;
}

.nav-link {
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 11px 15px;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  background: var(--cream);
  color: var(--ink);
}

.primary-nav .button {
  margin-left: 6px;
}

.nav-toggle {
  align-items: center;
  background: var(--ink);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 4px;
  height: 42px;
  justify-content: center;
  padding: 0;
  width: 42px;
}

.nav-toggle span {
  background: var(--white);
  border-radius: 999px;
  display: block;
  height: 2px;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
  width: 18px;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

.button {
  align-items: center;
  background: var(--lime);
  border: 1px solid var(--lime);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  gap: 16px;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  background: #80ee2f;
  box-shadow: 0 10px 24px rgba(92, 178, 28, 0.23);
  transform: translateY(-2px);
}

.button svg {
  height: 20px;
  width: 20px;
}

.button-small {
  min-height: 42px;
  padding: 0 19px;
}

.button-secondary {
  background: transparent;
  border-color: var(--line);
}

.button-secondary:hover {
  background: var(--white);
  box-shadow: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: calc(100vh - 80px);
  overflow: hidden;
}

.hero-copy {
  align-self: center;
  padding: 90px 8vw;
}

.eyebrow {
  align-items: center;
  color: #4a5a50;
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 9px;
  letter-spacing: 1.5px;
  margin: 0 0 24px;
  text-transform: uppercase;
}

.eyebrow span {
  background: var(--lime);
  border-radius: 999px;
  height: 8px;
  width: 8px;
}

h1,
h2,
h3 {
  font-family: "Manrope", sans-serif;
  letter-spacing: -0.045em;
  margin: 0;
}

h1 {
  font-size: clamp(54px, 6vw, 88px);
  line-height: 0.98;
  max-width: 760px;
}

h1 em {
  color: #4d5a51;
  font-style: normal;
  font-weight: 600;
}

.hero-text {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  margin: 30px 0 32px;
  max-width: 560px;
}

.hero-actions {
  align-items: center;
  display: flex;
  gap: 30px;
}

.hero-actions p {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.hero-actions strong {
  font-family: "Manrope", sans-serif;
  font-size: 20px;
}

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

.trust-row {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 30px;
  margin-top: 65px;
  padding-top: 24px;
}

.trust-row div {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  font-weight: 600;
  gap: 8px;
}

.trust-row svg {
  color: #3b5b44;
  height: 18px;
  width: 18px;
}

.hero-visual {
  background: var(--ink);
  min-height: 680px;
  overflow: hidden;
  position: relative;
}

.visual-grid {
  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: 60px 60px;
  inset: 0;
  position: absolute;
}

.hero-visual::before {
  background: var(--lime);
  border-radius: 50%;
  content: "";
  filter: blur(2px);
  height: 430px;
  left: 50%;
  opacity: 0.9;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 430px;
}

.hero-visual::after {
  background: rgba(143, 255, 56, 0.22);
  border-radius: 50%;
  content: "";
  filter: blur(60px);
  height: 650px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 650px;
}

.orbit {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.orbit-one {
  height: 520px;
  width: 520px;
}

.orbit-two {
  height: 650px;
  width: 650px;
}

.loan-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(10, 30, 15, 0.28);
  left: 50%;
  padding: 28px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-3deg);
  width: min(400px, 72%);
  z-index: 5;
}

.loan-card-top {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 45px;
}

.mini-logo {
  height: 32px;
  margin-right: auto;
  width: 32px;
}

.approved-dot {
  background: #48a34a;
  border-radius: 50%;
  height: 7px;
  margin-right: 7px;
  width: 7px;
}

.loan-card p {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 5px;
}

.loan-card > strong {
  font-family: "Manrope", sans-serif;
  font-size: clamp(36px, 5vw, 54px);
  letter-spacing: -3px;
}

.card-line {
  background: var(--line);
  height: 1px;
  margin: 32px 0 20px;
}

.card-meta {
  color: var(--muted);
  display: flex;
  font-size: 11px;
  justify-content: space-between;
}

.floating-pill {
  backdrop-filter: blur(10px);
  background: rgba(17, 26, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 12px 18px;
  position: absolute;
  z-index: 6;
}

.pill-one {
  left: 10%;
  top: 25%;
}

.pill-two {
  bottom: 22%;
  right: 8%;
}

.application-section {
  background: var(--white);
  display: grid;
  gap: clamp(50px, 8vw, 120px);
  grid-template-columns: 0.75fr 1.25fr;
  padding: 120px max(5vw, 24px);
}

.apply-page .application-section {
  min-height: calc(100vh - 80px);
}

.application-intro {
  padding-top: 20px;
}

.application-intro h1,
.application-intro h2 {
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.08;
  max-width: 500px;
}

.application-intro > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
  max-width: 450px;
}

.steps {
  list-style: none;
  margin: 50px 0 0;
  padding: 0;
}

.steps li {
  align-items: center;
  color: #9aa39d;
  display: flex;
  gap: 17px;
  margin-bottom: 25px;
}

.steps li > span {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  font-size: 11px;
  font-weight: 700;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.steps li div {
  display: flex;
  flex-direction: column;
}

.steps strong {
  font-size: 14px;
}

.steps small {
  font-size: 11px;
  margin-top: 3px;
}

.steps li.active {
  color: var(--ink);
}

.steps li.active > span {
  background: var(--lime);
  border-color: var(--lime);
}

.form-card {
  background: var(--cream);
  border: 1px solid #e8ece5;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.form-progress {
  align-items: center;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  font-size: 11px;
  font-weight: 700;
  gap: 20px;
  letter-spacing: 0.5px;
  padding: 17px 38px;
  text-transform: uppercase;
}

.form-progress > div {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 99px;
  flex: 1;
  height: 4px;
  overflow: hidden;
}

.form-progress i {
  background: var(--lime);
  display: block;
  height: 100%;
  transition: width 300ms ease;
  width: 25%;
}

.form-step {
  display: none;
  padding: clamp(30px, 5vw, 55px);
}

.form-step.active {
  animation: reveal 300ms ease;
  display: block;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.form-heading {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  margin-bottom: 34px;
}

.form-heading > span {
  align-items: center;
  background: var(--lime);
  border-radius: 8px;
  display: flex;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.form-heading h3 {
  font-size: 26px;
}

.form-heading p {
  color: var(--muted);
  font-size: 13px;
  margin: 5px 0 0;
}

.field-grid {
  display: grid;
  gap: 22px 18px;
  grid-template-columns: 1fr 1fr;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field > span {
  font-size: 12px;
  font-weight: 700;
}

.field input,
.field textarea {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  outline: none;
  padding: 15px 16px;
  resize: vertical;
  transition:
    border 180ms ease,
    box-shadow 180ms ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a5aca7;
}

.field input:focus,
.field textarea:focus {
  border-color: #66ba26;
  box-shadow: 0 0 0 3px rgba(143, 255, 56, 0.2);
}

.field.invalid input,
.field.invalid textarea {
  border-color: var(--error);
}

.error,
.upload-error,
.consent-error {
  color: var(--error);
  display: none;
  font-size: 11px;
  font-style: normal;
  margin: 0;
}

.field.invalid .error,
.upload-error.visible,
.consent-error.visible {
  display: block;
}

.form-step > .form-next {
  margin-left: auto;
  margin-top: 32px;
}

.upload-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.upload-field {
  align-items: center;
  background: var(--white);
  border: 1px dashed #bdc7bf;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  min-height: 205px;
  padding: 24px 15px 18px;
  position: relative;
  text-align: center;
  transition:
    border 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.upload-field:hover {
  background: #fbfff8;
  border-color: #65b92a;
  transform: translateY(-2px);
}

.upload-field.selfie {
  grid-column: 1 / -1;
  min-height: 190px;
}

.upload-field input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.upload-icon {
  align-items: center;
  background: #eff6e9;
  border-radius: 50%;
  display: flex;
  height: 46px;
  justify-content: center;
  margin-bottom: 13px;
  width: 46px;
}

.upload-icon svg {
  height: 22px;
  width: 22px;
}

.upload-field strong {
  font-size: 13px;
}

.upload-field small {
  color: var(--muted);
  font-size: 10px;
  margin: 5px 0 12px;
}

.upload-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.upload-actions label {
  background: var(--lime);
  border: 1px solid var(--lime);
  border-radius: 7px;
  color: var(--ink);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  padding: 8px 11px;
  transition:
    background 180ms ease,
    border-color 180ms ease;
}

.upload-actions label:last-child {
  background: transparent;
  border-color: var(--line);
}

.upload-actions label:hover {
  background: #80ee2f;
  border-color: #80ee2f;
}

.upload-actions label:last-child:hover {
  background: #eff6e9;
  border-color: #b8c7b5;
}

.upload-field.has-file {
  border-color: #59a82d;
  border-style: solid;
}

.upload-field.has-file .upload-icon {
  display: none;
}

.image-preview {
  border-radius: 9px;
  height: 120px;
  margin-bottom: 13px;
  object-fit: cover;
  width: min(100%, 190px);
}

.file-name {
  color: var(--muted);
  display: block;
  font-size: 10px;
  margin-top: 7px;
  max-width: 95%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
}

.review-list {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.review-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 15px 18px;
}

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

.review-row span {
  color: var(--muted);
  font-size: 11px;
}

.review-row strong {
  font-size: 12px;
  max-width: 65%;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-thumbnail {
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 72px;
  object-fit: cover;
  width: 96px;
}

.consent {
  align-items: flex-start;
  cursor: pointer;
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.consent input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.consent > span {
  background: var(--white);
  border: 1px solid #aeb8b0;
  border-radius: 5px;
  flex: 0 0 auto;
  height: 20px;
  margin-top: 2px;
  position: relative;
  width: 20px;
}

.consent input:checked + span {
  background: var(--lime);
  border-color: var(--lime);
}

.consent input:checked + span::after {
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  content: "";
  height: 8px;
  left: 7px;
  position: absolute;
  top: 3px;
  transform: rotate(45deg);
  width: 4px;
}

.consent p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  margin: 0;
}

.consent a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
}

.success-state {
  display: none;
  padding: 80px 50px;
  text-align: center;
}

.success-state.visible {
  animation: reveal 400ms ease;
  display: block;
}

.success-icon {
  align-items: center;
  background: var(--lime);
  border-radius: 50%;
  display: flex;
  height: 74px;
  justify-content: center;
  margin: 0 auto 30px;
  width: 74px;
}

.success-icon svg {
  height: 35px;
  stroke-width: 2.3;
  width: 35px;
}

.success-state .eyebrow {
  justify-content: center;
}

.success-state h3 {
  font-size: 40px;
}

.success-message {
  color: var(--muted);
  line-height: 1.6;
  margin: 16px auto 25px;
  max-width: 430px;
}

.reference {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 7px;
  grid-template-columns: 1fr auto;
  margin: 0 auto;
  max-width: 430px;
  padding: 16px 18px;
  text-align: left;
}

.reference span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  grid-column: 1 / -1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.reference strong {
  color: var(--ink);
  font-family: monospace;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.copy-reference {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 11px;
}

.copy-reference:hover {
  border-color: #8fcf60;
}

.copy-status {
  color: #3d7820;
  font-size: 11px;
  margin: 7px auto 0;
  min-height: 17px;
}

.tracking-help {
  background: #eff8e9;
  border-radius: 12px;
  margin: 8px auto 0;
  max-width: 430px;
  padding: 17px 18px;
  text-align: left;
}

.tracking-help > strong {
  font-size: 13px;
}

.tracking-help p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  margin: 5px 0 0;
}

footer {
  align-items: center;
  background: var(--ink);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  padding: 34px max(5vw, 24px);
}

footer p,
footer a:not(.brand) {
  color: rgba(255, 255, 255, 0.53);
  font-size: 11px;
}

footer > div {
  display: flex;
  gap: 22px;
}

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 100px 8vw;
  }

  .hero-visual {
    min-height: 650px;
  }

  .application-section {
    grid-template-columns: 1fr;
  }

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

  .application-intro .eyebrow,
  .application-intro h1,
  .application-intro h2 {
    grid-column: 1;
  }

  .application-intro > p:not(.eyebrow) {
    grid-column: 1;
  }

  .steps {
    grid-column: 2;
    grid-row: 1 / span 3;
    margin: 0 0 0 50px;
  }
}

@media (max-width: 650px) {
  .site-header {
    height: 66px;
    padding: 0 18px;
  }

  .site-header .brand {
    font-size: 18px;
  }

  .site-header .brand-mark {
    height: 32px;
    width: 32px;
  }

  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    align-items: stretch;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(17, 26, 22, 0.16);
    display: none;
    flex-direction: column;
    gap: 5px;
    left: 16px;
    padding: 10px;
    position: absolute;
    right: 16px;
    top: calc(100% + 8px);
  }

  .primary-nav.open {
    animation: reveal 180ms ease;
    display: flex;
  }

  .nav-link {
    font-size: 14px;
    padding: 13px 14px;
  }

  .primary-nav .button {
    margin: 3px 0 0;
    width: 100%;
  }

  .button-small {
    min-height: 44px;
    padding: 0 16px;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    padding: 75px 24px 65px;
  }

  h1 {
    font-size: clamp(46px, 15vw, 64px);
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .trust-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    margin-top: 45px;
  }

  .hero-visual {
    min-height: 520px;
  }

  .hero-visual::before {
    height: 300px;
    width: 300px;
  }

  .orbit-one {
    height: 380px;
    width: 380px;
  }

  .orbit-two {
    height: 470px;
    width: 470px;
  }

  .loan-card {
    padding: 22px;
    width: 78%;
  }

  .floating-pill {
    font-size: 10px;
  }

  .application-section {
    padding-bottom: 75px;
    padding-top: 75px;
  }

  .application-intro {
    display: block;
  }

  .steps {
    display: none;
  }

  .field-grid,
  .upload-grid {
    grid-template-columns: 1fr;
  }

  .upload-field.selfie {
    grid-column: auto;
  }

  .form-progress {
    padding: 15px 24px;
  }

  .form-step {
    padding: 28px 22px;
  }

  .success-state {
    padding: 58px 22px;
  }

  .reference {
    grid-template-columns: 1fr;
  }

  .copy-reference {
    justify-self: start;
  }

  .form-buttons {
    gap: 10px;
  }

  .form-buttons .button {
    flex: 1;
    padding: 0 14px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }
}

.upload-state {
  display: none;
  padding: 80px 50px;
  text-align: center;
}

.upload-state.visible {
  animation: reveal 300ms ease;
  display: block;
}

.upload-state h3 {
  font-size: 30px;
  margin-top: 22px;
}

.upload-state > p {
  color: var(--muted);
  font-size: 13px;
}

.upload-spinner {
  animation: spin 900ms linear infinite;
  border: 4px solid #dfe6db;
  border-radius: 50%;
  border-top-color: var(--lime);
  height: 58px;
  margin: auto;
  width: 58px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.upload-progress-track {
  background: #dfe6db;
  border-radius: 99px;
  height: 9px;
  margin: 28px auto 10px;
  max-width: 380px;
  overflow: hidden;
}

.upload-progress-track i {
  background: var(--lime);
  display: block;
  height: 100%;
  transition: width 150ms ease;
  width: 0;
}

.upload-state > strong {
  font-family: "Manrope", sans-serif;
  font-size: 13px;
}

.upload-state .submit-error {
  color: var(--error);
  margin: 20px auto 0;
  max-width: 420px;
}

#retrySubmit {
  display: none;
  margin: 20px auto 0;
}

#retrySubmit.visible {
  display: inline-flex;
}

.success-track-link {
  display: flex;
  margin: 24px auto 0;
  width: fit-content;
}

.tracking-main {
  margin: 0 auto;
  max-width: 1080px;
  min-height: calc(100vh - 80px);
  padding: 90px 24px 120px;
}

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

.tracking-hero .eyebrow {
  justify-content: center;
}

.tracking-hero h1 {
  font-size: clamp(44px, 7vw, 72px);
}

.tracking-hero > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
}

.tracking-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin-top: 38px;
  padding: 24px;
  text-align: left;
}

.tracking-form > label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 9px;
}

.tracking-form > div {
  display: flex;
  gap: 10px;
}

.tracking-form input {
  border: 1px solid var(--line);
  border-radius: 9px;
  flex: 1;
  min-width: 0;
  outline: none;
  padding: 0 16px;
}

.tracking-form input:focus {
  border-color: #66ba26;
  box-shadow: 0 0 0 3px rgba(143, 255, 56, 0.2);
}

.tracking-form.loading .button {
  opacity: 0.6;
  pointer-events: none;
}

.tracking-error {
  color: var(--error);
  font-size: 12px;
  margin: 12px 0 0;
}

.tracking-result {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
  margin-top: 65px;
  padding: clamp(28px, 5vw, 55px);
}

.tracking-result.visible {
  animation: reveal 350ms ease;
  display: block;
}

.result-heading {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
}

.result-heading h2 {
  font-size: clamp(30px, 4vw, 45px);
}

.reference-chip {
  background: var(--cream);
  border-radius: 8px;
  color: var(--muted);
  font-size: 10px;
  padding: 12px 14px;
}

.reference-chip strong {
  color: var(--ink);
  display: block;
  font-size: 12px;
  margin-top: 4px;
}

.verification-notice {
  background: #fff5d9;
  border: 1px solid #e9cd78;
  border-radius: 11px;
  display: none;
  margin: 30px 0;
  padding: 18px 20px;
}

.verification-notice.visible {
  display: block;
}

.verification-notice strong {
  font-size: 14px;
}

.verification-notice p {
  color: #6c5b31;
  font-size: 13px;
  line-height: 1.6;
  margin: 5px 0 0;
}

.status-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
  margin: 50px 0 35px;
  padding: 0;
}

.status-timeline li {
  color: #9ca49f;
  position: relative;
  text-align: center;
}

.status-timeline li::before {
  background: var(--line);
  content: "";
  height: 2px;
  left: -50%;
  position: absolute;
  top: 18px;
  width: 100%;
}

.status-timeline li:first-child::before {
  display: none;
}

.status-timeline li > span {
  align-items: center;
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: 50%;
  display: flex;
  font-size: 11px;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  margin: 0 auto 14px;
  position: relative;
  width: 38px;
  z-index: 2;
}

.status-timeline li.complete,
.status-timeline li.current {
  color: var(--ink);
}

.status-timeline li.complete::before,
.status-timeline li.current::before {
  background: var(--lime);
}

.status-timeline li.complete > span,
.status-timeline li.current > span {
  background: var(--lime);
  border-color: var(--lime);
}

.status-timeline li.current > span {
  box-shadow: 0 0 0 6px rgba(143, 255, 56, 0.2);
}

.status-timeline div {
  display: flex;
  flex-direction: column;
}

.status-timeline strong {
  font-size: 12px;
}

.status-timeline small {
  font-size: 10px;
  line-height: 1.4;
  margin: 5px auto 0;
  max-width: 140px;
}

.last-updated {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  margin: 0;
  padding-top: 20px;
  text-align: right;
}

@media (max-width: 700px) {
  .tracking-main {
    padding-top: 65px;
  }

  .tracking-form > div,
  .result-heading {
    flex-direction: column;
  }

  .tracking-form input {
    min-height: 52px;
  }

  .reference-chip {
    margin-top: 20px;
    width: fit-content;
  }

  .status-timeline {
    display: block;
    margin-left: 2px;
  }

  .status-timeline li {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    min-height: 95px;
    text-align: left;
  }

  .status-timeline li::before {
    height: 100%;
    left: 18px;
    top: -78px;
    width: 2px;
  }

  .status-timeline li > span {
    flex: 0 0 auto;
    margin: 0;
  }

  .status-timeline small {
    margin-left: 0;
  }
}

.admin-page {
  background: #f1f4ef;
}

.admin-login {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 30px 20px;
}

.admin-login.hidden {
  display: none;
}

.login-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 42px;
  width: min(450px, 100%);
}

.login-card > .brand {
  margin-bottom: 55px;
}

.login-card .eyebrow {
  margin-bottom: 14px;
}

.login-card h1 {
  font-size: 43px;
}

.login-card > p:not(.eyebrow, .admin-error) {
  color: var(--muted);
  line-height: 1.6;
  margin: 12px 0 28px;
}

.login-card .field {
  margin-bottom: 18px;
}

.login-card > .button {
  margin-top: 8px;
  width: 100%;
}

.admin-error {
  color: var(--error);
  font-size: 12px;
}

.admin-dashboard {
  display: none;
  min-height: 100vh;
}

.admin-dashboard.visible {
  display: block;
}

.admin-topbar {
  align-items: center;
  background: var(--ink);
  color: var(--white);
  display: flex;
  height: 72px;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 60px);
}

.admin-topbar > div {
  align-items: center;
  display: flex;
  gap: 18px;
}

.admin-topbar > div > span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.text-button {
  background: transparent;
  border: 0;
  color: var(--white);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 0;
}

.dashboard-content {
  margin: 0 auto;
  max-width: 1440px;
  padding: 55px clamp(20px, 4vw, 60px) 90px;
}

.dashboard-heading {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
}

.dashboard-heading h1 {
  font-size: clamp(40px, 5vw, 62px);
}

.dashboard-actions {
  display: flex;
  gap: 10px;
}

.stats-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, 1fr);
  margin: 38px 0 25px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 13px;
  cursor: pointer;
  padding: 20px;
  text-align: left;
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

.stat-card:hover {
  border-color: #80c94e;
  transform: translateY(-2px);
}

.stat-card span {
  color: var(--muted);
  display: block;
  font-size: 10px;
  min-height: 28px;
}

.stat-card strong {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 31px;
  margin-top: 10px;
}

.applications-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.visits-card {
  margin-top: 25px;
}

.section-heading {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 22px 18px;
}

.section-heading h2 {
  font-size: 25px;
}

.table-toolbar {
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  padding: 18px;
}

.table-search {
  flex: 1;
}

.table-search label {
  color: var(--muted);
  display: block;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.table-search > div {
  display: flex;
  position: relative;
}

.table-search button {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 20px;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.table-toolbar input,
.table-toolbar select,
.admin-control select,
.verification-control textarea {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  outline: none;
  padding: 12px 14px;
}

.table-toolbar input {
  padding-right: 42px;
  width: 100%;
}

.table-toolbar select {
  min-width: 210px;
}

.table-toolbar input:focus,
.table-toolbar select:focus {
  border-color: #66ba26;
  box-shadow: 0 0 0 3px rgba(143, 255, 56, 0.2);
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.8px;
  padding: 14px 18px;
  text-align: left;
  text-transform: uppercase;
}

td {
  border-top: 1px solid #edf0eb;
  font-size: 12px;
  padding: 17px 18px;
  vertical-align: middle;
}

td > strong,
td > small {
  display: block;
}

td > small {
  color: var(--muted);
  margin-top: 3px;
}

td code {
  background: var(--cream);
  border-radius: 5px;
  font-size: 10px;
  padding: 6px 8px;
}

.status-badge {
  background: var(--cream);
  border-radius: 99px;
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 7px 10px;
}

.status-under_review,
.status-compliance {
  background: #fff1cb;
  color: #755b12;
}

.status-offer_generated {
  background: #e3f3ff;
  color: #245f86;
}

.status-disbursement {
  background: #dff8d0;
  color: #356c19;
}

.verification-flag {
  color: #a26513;
  font-size: 9px;
  margin-top: 6px;
}

.row-action {
  background: transparent;
  border: 0;
  color: #3f7621;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.empty-state {
  color: var(--muted);
  display: none;
  padding: 60px;
  text-align: center;
}

.empty-state.visible {
  display: block;
}

.table-pagination {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 16px 18px;
}

.table-pagination p,
.table-pagination span {
  color: var(--muted);
  font-size: 11px;
  margin: 0;
}

.table-pagination > div {
  align-items: center;
  display: flex;
  gap: 12px;
}

.table-pagination .button {
  min-height: 36px;
}

.button-danger {
  background: var(--error);
  border-color: var(--error);
  color: var(--white);
}

.button-danger:hover {
  background: #a92e25;
  box-shadow: 0 10px 24px rgba(196, 61, 49, 0.2);
}

.danger-zone {
  border-color: rgba(196, 61, 49, 0.3);
}

.danger-zone p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  margin: -8px 0 16px;
}

.detail-backdrop {
  background: rgba(10, 18, 13, 0.55);
  display: flex;
  inset: 0;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 200ms ease;
  z-index: 50;
}

.detail-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.detail-panel {
  background: var(--cream);
  height: 100%;
  max-width: 680px;
  overflow-y: auto;
  padding: 48px;
  position: relative;
  transform: translateX(100%);
  transition: transform 250ms ease;
  width: 100%;
}

.detail-backdrop.visible .detail-panel {
  transform: translateX(0);
}

.panel-close {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  height: 38px;
  position: absolute;
  right: 25px;
  top: 25px;
  width: 38px;
}

.panel-heading {
  margin-bottom: 32px;
  padding-right: 45px;
}

.panel-heading h2 {
  font-size: 37px;
}

.panel-heading > p:last-child {
  color: var(--muted);
  font-size: 11px;
}

.detail-section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 13px;
  margin-bottom: 14px;
  padding: 22px;
}

.detail-section h3 {
  font-size: 17px;
  margin-bottom: 18px;
}

.detail-list {
  margin: 0;
}

.detail-list > div {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 20px;
  grid-template-columns: 90px 1fr;
  padding: 12px 0;
}

.detail-list > div:last-child {
  border: 0;
}

.detail-list dt {
  color: var(--muted);
  font-size: 10px;
}

.detail-list dd {
  font-size: 12px;
  margin: 0;
}

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

.document-grid a {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}

.document-grid img {
  display: block;
  height: 110px;
  object-fit: cover;
  width: 100%;
}

.document-grid span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  padding: 9px;
}

.admin-control {
  display: flex;
  gap: 10px;
}

.admin-control select {
  flex: 1;
}

.toggle-row {
  align-items: center;
  display: flex;
  gap: 10px;
}

.toggle-row input {
  accent-color: var(--lime);
  height: 18px;
  width: 18px;
}

.toggle-row strong {
  font-size: 12px;
}

.telegram-fields .field {
  display: grid;
  margin-bottom: 18px;
}

.telegram-fields .field small,
.settings-note {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  margin: 6px 0 0;
}

.settings-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.settings-actions .text-button {
  color: var(--muted);
  margin-left: auto;
}

.settings-actions .text-button.danger {
  color: var(--error);
}

.verification-control textarea {
  display: block;
  margin: 16px 0 12px;
  resize: vertical;
  width: 100%;
}

.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.history-list li {
  display: flex;
  gap: 12px;
  padding: 8px 0;
}

.history-list li > span {
  background: var(--lime);
  border-radius: 50%;
  height: 9px;
  margin-top: 5px;
  width: 9px;
}

.history-list div {
  display: flex;
  flex-direction: column;
}

.history-list strong {
  font-size: 11px;
}

.history-list small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 3px;
}

.panel-loading {
  color: var(--muted);
  padding: 80px 0;
  text-align: center;
}

.toast {
  background: var(--ink);
  border-radius: 9px;
  bottom: 24px;
  color: var(--white);
  font-size: 12px;
  opacity: 0;
  padding: 14px 18px;
  pointer-events: none;
  position: fixed;
  right: 24px;
  transform: translateY(10px);
  transition: 200ms ease;
  z-index: 80;
}

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

.toast.error {
  background: var(--error);
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .admin-topbar > div > span {
    display: none;
  }

  .dashboard-content {
    padding-top: 35px;
  }

  .dashboard-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .dashboard-actions {
    width: 100%;
  }

  .dashboard-actions .button {
    flex: 1;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .table-toolbar,
  .admin-control {
    flex-direction: column;
  }

  .table-search,
  .table-toolbar > select,
  .table-toolbar > .button {
    width: 100%;
  }

  .table-toolbar select {
    min-width: 0;
  }

  .table-pagination {
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .table-pagination > div {
    justify-content: space-between;
  }

  .detail-panel {
    padding: 55px 20px 30px;
  }

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

  .settings-actions .text-button {
    margin: 8px 0 0;
  }

  .document-grid {
    grid-template-columns: 1fr;
  }

  .document-grid img {
    height: 180px;
  }
}
