:root {
  color-scheme: light;
  --green-900: #0b2c21;
  --green-850: #123526;
  --green-800: #1e4c38;
  --green-700: #2f6f4b;
  --green-650: #2b6a47;
  --green-600: #4aa77b;
  --green-500: #65c496;
  --cream: #f7f7f2;
  --white: #ffffff;
  --text-dark: #1b1b1b;
  --text-muted: #6d717a;
  --text-soft: #c6d4c9;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  --card-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--cream);
  background: radial-gradient(circle at top, #1c4a37 0%, #0f2f24 60%, #0a2018 100%);
  min-height: 100vh;
}

.page-dark {
  background: radial-gradient(circle at top, #1f503c 0%, #0f2f24 60%, #0a2018 100%);
}

.shell {
  max-width: 420px;
  margin: 0 auto;
  padding: 24px 18px 36px;
}

.center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
  justify-content: center;
}

.brand .dot {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(52, 124, 85, 0.9);
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.logo-text .accent {
  color: #f2c96b;
  font-size: 18px;
  transform: translateY(-6px);
}

.avatar {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: var(--green-600);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 26px;
  margin: 4px auto 12px;
}

h1,
h2,
h3 {
  margin: 0 0 10px;
  color: var(--cream);
}

h1 {
  font-size: 30px;
  text-align: center;
  line-height: 1.2;
}

p {
  margin: 0 0 16px;
}

.muted {
  color: #9fb3a8;
  line-height: 1.5;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-style: italic;
  text-align: center;
}

.card {
  background: var(--cream);
  color: var(--text-dark);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--card-shadow);
  margin-top: 18px;
}

.card.glass {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--cream);
}

.section-title {
  font-weight: 700;
  margin: 10px 0 14px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.option {
  border-radius: 16px;
  padding: 14px;
  border: 2px solid #e3e5ea;
  background: var(--white);
  font-family: "Helvetica Neue", Arial, sans-serif;
  cursor: pointer;
  text-align: center;
}

.option.active {
  border-color: var(--green-700);
  background: #e6f3ea;
  box-shadow: inset 0 0 0 1px rgba(47, 111, 75, 0.12);
}

.option small {
  color: var(--text-muted);
}

.pill {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--green-700);
  color: var(--white);
  font-size: 10px;
}

.input {
  width: 100%;
  border-radius: 16px;
  border: 1.5px solid #dfe3e8;
  padding: 12px 14px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  margin: 8px 0 14px;
}

.input-row {
  position: relative;
}

.input-row .suffix {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  color: var(--text-dark);
}

.btn {
  width: 100%;
  border: none;
  border-radius: 28px;
  padding: 14px 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn.loading {
  opacity: 0.75;
  cursor: not-allowed;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn.loading::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  animation: spin 0.75s linear infinite;
  flex-shrink: 0;
}

.error {
  margin-top: 16px;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.error-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 16px;
  color: #f7f7f2;
  text-align: center;
  box-shadow: var(--shadow);
}

.error-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.error-card p {
  margin: 0;
  color: #d3e3db;
  line-height: 1.4;
}

.error-card .chip {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.spinner {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ffffff;
  animation: spin 1s linear infinite;
  margin: 12px auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn.primary {
  background: var(--green-650);
  color: var(--white);
}

.btn.secondary {
  background: var(--green-700);
  color: var(--white);
}

.footnote {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 12px;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.check-circle {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  color: var(--green-500);
  font-size: 30px;
}

.message-box {
  border-radius: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  padding: 12px;
  margin: 16px 0;
}

.message-box textarea {
  width: 100%;
  min-height: 80px;
  border: none;
  background: transparent;
  color: var(--cream);
  resize: vertical;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.message-label {
  font-size: 12px;
  color: #9fb3a8;
  margin-bottom: 6px;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.promo {
  background: var(--cream);
  border-radius: 18px;
  padding: 16px;
  color: var(--text-dark);
  margin-top: 18px;
}

.promo p {
  color: var(--text-muted);
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1.2px;
  margin-bottom: 12px;
}
