/* Coloring The World — Summer Camp Inscription
   Playful, kid-friendly "sticker book" aesthetic
   ------------------------------------------------ */
:root {
  /* Brighter, kid-friendly palette */
  --sky-50: oklch(0.97 0.03 230);
  --sky-100: oklch(0.93 0.07 225);
  --sky-200: oklch(0.85 0.11 225);
  --sky-300: oklch(0.75 0.14 230);
  --sea-500: #4f52b8;
  --sea-700: #393cab;
  --sea-900: #2e3192; /* exact navy from logo */

  /* Brand colors — sampled directly from logo */
  --ctw-green: #098c40;
  --ctw-navy: #2e3192;
  --ctw-purple: #9f4197;
  --ctw-yellow: #d8df20;
  --ctw-blue: #2e3192;
  --ctw-pink: #ee008c;
  --ctw-red: #eb1c24;

  --sun-400: #fbe54d;
  --sun-500: var(--ctw-yellow);
  --coral-400: #ff4554;
  --coral-500: var(--ctw-red);
  --mint-400: #4ec97a;
  --mint-500: var(--ctw-green);
  --berry-500: var(--ctw-pink);
  --grape-500: var(--ctw-purple);

  --paper: #fffefa;
  --paper-warm: #fff9eb;
  --ink: #2e3192;
  --ink-soft: #5b5fb5;
  --line: #2e3192;

  /* Type */
  --font-display: 'Fredoka', 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, sans-serif;

  /* Big chunky radii */
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;

  /* Sticker-style offset shadows (no blur, hard edge) */
  --stk-1: 0 3px 0 0 var(--ink);
  --stk-2: 0 5px 0 0 var(--ink);
  --stk-3: 0 6px 0 0 var(--ink);
  --stk-4: 0 8px 0 0 var(--ink);
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 80% 0%, oklch(0.92 0.13 92 / 0.6), transparent 50%),
    radial-gradient(ellipse 70% 40% at 10% 30%, oklch(0.88 0.1 165 / 0.4), transparent 50%),
    radial-gradient(ellipse 60% 50% at 90% 90%, oklch(0.85 0.13 28 / 0.4), transparent 50%),
    var(--sky-200);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* App shell */
.app-shell {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  z-index: 2;
}
@media (min-width: 700px) {
  .app-shell {
    margin-top: 28px;
    margin-bottom: 28px;
    border-radius: var(--r-xl);
    border: 3px solid var(--ink);
    box-shadow: 0 10px 0 0 var(--ink);
    overflow: hidden;
    min-height: calc(100vh - 80px);
  }
}

/* Background decorations */
.bg-deco {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.bg-deco svg {
  position: absolute;
}
.bg-sun {
  top: -20px;
  left: -30px;
  width: 180px;
  animation: spin 60s linear infinite;
}
.bg-cloud-1 {
  top: 60px;
  right: 4%;
  width: 200px;
  animation: drift 14s ease-in-out infinite alternate;
}
.bg-cloud-2 {
  bottom: 24%;
  left: 2%;
  width: 170px;
  animation: drift 18s ease-in-out infinite alternate-reverse;
}
.bg-ball {
  bottom: 80px;
  right: 6%;
  width: 130px;
  animation: bob 4s ease-in-out infinite;
}
.bg-wave {
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  opacity: 0.55;
}
@keyframes drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(20px);
  }
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(-6deg);
  }
  50% {
    transform: translateY(-12px) rotate(6deg);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 699px) {
  .bg-deco {
    display: none;
  }
}

/* ─────────── Header ─────────── */
.app-header {
  position: relative;
  padding: 20px 20px 16px;
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
  overflow: hidden;
  text-align: center;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  position: relative;
}
.brand-logo {
  width: auto;
  height: 64px;
  max-width: 240px;
  object-fit: contain;
  display: block;
}
.brand-sub {
  font-size: 11px;
  color: var(--ctw-navy);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sun-400);
  padding: 4px 12px;
  border-radius: 99px;
  border: 2px solid var(--ink);
  box-shadow: 0 2px 0 0 var(--ink);
}
.brand-dots {
  display: inline-flex;
  gap: 4px;
}
.brand-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--ink);
}

/* Progress — chunky bubbles */
.progress {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  position: relative;
}
.progress-step {
  flex: 1;
  height: 10px;
  border-radius: 99px;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  position: relative;
  overflow: hidden;
}
.progress-step.done {
  background: var(--mint-500);
}
.progress-step.current::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--coral-500);
  border-radius: 99px;
  animation: prog 1.4s ease-in-out infinite alternate;
  transform-origin: left;
}
@keyframes prog {
  0% {
    transform: scaleX(0.2);
  }
  100% {
    transform: scaleX(0.92);
  }
}
.progress-label {
  font-size: 11px;
  color: var(--sea-900);
  margin-top: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ─────────── Step container ─────────── */
.step {
  flex: 1;
  padding: 22px 20px 160px;
  animation: stepIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.step h1 {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  color: var(--sea-900);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.step h1 .accent {
  color: var(--coral-500);
  display: inline-block;
  position: relative;
}
.step h1 .accent::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 2px;
  height: 8px;
  background: var(--sun-400);
  z-index: -1;
  border-radius: 4px;
  transform: skew(-2deg, -1deg);
}
.step .lede {
  font-size: 15px;
  color: var(--sea-900);
  margin: 0 0 22px;
  font-weight: 600;
  text-wrap: pretty;
}

/* ─────────── Choice cards (sticker-style) ─────────── */
.choice-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.choice {
  position: relative;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 16px;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    background 0.15s;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  box-shadow: var(--stk-2);
}
.choice:hover {
  transform: translateY(-2px) rotate(-0.4deg);
  box-shadow: var(--stk-3);
}
.choice:active {
  transform: translateY(2px);
  box-shadow: var(--stk-1);
}
.choice.selected,
.choice:has(input:checked) {
  background: var(--sun-400);
  transform: rotate(-0.4deg);
  box-shadow: var(--stk-3);
}
/* Visually hide selection inputs but keep them in the layout so :has() works.
   .checkbox-row keeps its native checkbox visible (per design). */
.choice input[type='radio'],
.choice input[type='checkbox'],
.plan-card input[type='radio'],
.week input[type='checkbox'] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.choice-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  border: 3px solid var(--ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--sky-100);
  box-shadow: 0 3px 0 0 var(--ink);
  transform: rotate(-4deg);
}
.choice.selected .choice-icon,
.choice:has(input:checked) .choice-icon {
  background: var(--paper);
  transform: rotate(4deg);
  animation: wiggle 0.5s ease-in-out;
}
@keyframes wiggle {
  0%,
  100% {
    transform: rotate(4deg);
  }
  25% {
    transform: rotate(-6deg);
  }
  75% {
    transform: rotate(8deg);
  }
}
.choice-icon.coral {
  background: oklch(0.88 0.1 28);
}
.choice-icon.sun {
  background: oklch(0.92 0.14 92);
}
.choice-icon.mint {
  background: oklch(0.88 0.1 165);
}
.choice-icon.berry {
  background: oklch(0.88 0.1 340);
}

.choice-body {
  flex: 1;
  min-width: 0;
}
.choice-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--sea-900);
  margin: 0 0 2px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.choice-meta {
  font-size: 13px;
  color: var(--sea-900);
  font-weight: 700;
}
.choice-radio {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--paper);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 0 0 var(--ink);
}
.choice.selected .choice-radio,
.choice:has(input:checked) .choice-radio {
  background: var(--coral-500);
}
.choice.selected .choice-radio::after,
.choice:has(input:checked) .choice-radio::after {
  content: '✓';
  color: var(--paper);
  font-weight: 900;
  font-size: 16px;
  font-family: var(--font-display);
}

/* Week grid */
.week-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.week {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all 0.12s;
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
  box-shadow: 0 3px 0 0 var(--ink);
}
.week:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 0 0 var(--ink);
}
.week:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 0 var(--ink);
}
.week.selected,
.week:has(input:checked) {
  background: var(--mint-400);
}
.week-num {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 2.5px solid var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  background: var(--sun-400);
  color: var(--sea-900);
  flex-shrink: 0;
  transform: rotate(-4deg);
  box-shadow: 0 2px 0 0 var(--ink);
}
.week.selected .week-num,
.week:has(input:checked) .week-num {
  background: var(--coral-500);
  color: var(--paper);
  transform: rotate(4deg);
}
.week-info {
  flex: 1;
  min-width: 0;
}
.week-info .label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--sea-900);
}
.week-info .dates {
  font-size: 12.5px;
  color: var(--sea-900);
  font-weight: 700;
}
.week-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--sea-900);
}
.week-check {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 2.5px solid var(--ink);
  background: var(--paper);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 2px 0 0 var(--ink);
}
.week.selected .week-check,
.week:has(input:checked) .week-check {
  background: var(--coral-500);
  color: var(--paper);
}
.week-check svg {
  visibility: hidden;
}
.week:has(input:checked) .week-check svg {
  visibility: visible;
}

/* Form */
.field {
  margin-bottom: 14px;
}
.field label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--sea-900);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  border: 2.5px solid var(--ink);
  border-radius: var(--r-md);
  background: var(--paper);
  font: 600 15px var(--font-body);
  color: var(--ink);
  outline: none;
  transition:
    transform 0.1s,
    box-shadow 0.1s;
  box-shadow: 0 3px 0 0 var(--ink);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 0 0 var(--ink);
  background: oklch(0.98 0.04 92);
}
.field textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.field-row .field {
  margin: 0;
}

/* Pills — sticker chips */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--sky-100);
  color: var(--sea-900);
  font-size: 12.5px;
  font-weight: 800;
  border-radius: 99px;
  border: 2px solid var(--ink);
  font-family: var(--font-display);
  box-shadow: 0 2px 0 0 var(--ink);
  transform: rotate(-1deg);
}
.pill:nth-child(2) {
  transform: rotate(1deg);
  background: oklch(0.92 0.1 28);
}
.pill:nth-child(3) {
  transform: rotate(-1.5deg);
  background: oklch(0.88 0.12 165);
}

/* Sticky bottom bar */
.bottom-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--paper);
  border-top: 3px solid var(--ink);
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}
.bottom-summary {
  flex: 1;
  min-width: 0;
}
.bottom-summary .small {
  font-size: 11px;
  color: var(--sea-900);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.bottom-summary .total {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--sea-900);
  line-height: 1;
}

/* Buttons */
.btn {
  appearance: none;
  border: 3px solid var(--ink);
  background: var(--coral-500);
  color: var(--paper);
  font: 700 16px var(--font-display);
  padding: 13px 22px;
  border-radius: 99px;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition:
    transform 0.12s,
    box-shadow 0.12s,
    background 0.18s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--stk-2);
}
.btn:hover:not(:disabled) {
  transform: translateY(-2px) rotate(-1deg);
  box-shadow: var(--stk-3);
}
.btn:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: var(--stk-1);
}
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.btn.ghost {
  background: var(--paper);
  color: var(--sea-900);
  box-shadow: 0 3px 0 0 var(--ink);
}
.btn.full {
  width: 100%;
  justify-content: center;
}
.btn.coral {
  background: var(--coral-500);
}
.btn.mint {
  background: var(--mint-500);
  color: var(--sea-900);
}

/* Back link */
.back-link {
  appearance: none;
  border: 2.5px solid var(--ink);
  background: var(--paper);
  color: var(--sea-900);
  font: 800 13px var(--font-display);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px 12px 6px 10px;
  margin-bottom: 14px;
  border-radius: 99px;
  box-shadow: 0 2px 0 0 var(--ink);
  text-decoration: none;
}
.back-link:hover {
  background: var(--sun-400);
  transform: translateY(-1px);
}

/* Summary panel */
.summary-card {
  background: var(--paper-warm);
  border: 3px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: var(--stk-2);
  position: relative;
}
.summary-card::before {
  /* hand-drawn dotted border feel */
  content: '';
  position: absolute;
  inset: 6px;
  border: 2px dashed oklch(0.3 0.14 255 / 0.2);
  border-radius: calc(var(--r-lg) - 8px);
  pointer-events: none;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 2px dotted oklch(0.3 0.14 255 / 0.25);
  gap: 12px;
}
.summary-row:last-child {
  border-bottom: 0;
}
.summary-row .k {
  font-size: 13px;
  color: var(--sea-900);
  font-weight: 700;
}
.summary-row .v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--sea-900);
  text-align: right;
}
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 14px;
  margin-top: 10px;
  border-top: 3px solid var(--ink);
}
.summary-total .v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--coral-500);
}

/* Terms */
.terms-list {
  background: oklch(0.96 0.06 92);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-md);
  padding: 14px 14px 14px 30px;
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.55;
  font-weight: 600;
  box-shadow: 0 3px 0 0 var(--ink);
}
.terms-list li {
  margin-bottom: 8px;
}
.terms-list li:last-child {
  margin-bottom: 0;
}
.terms-list li::marker {
  color: var(--coral-500);
  font-weight: 900;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 2.5px solid var(--ink);
  border-radius: var(--r-md);
  cursor: pointer;
  margin-bottom: 14px;
  background: var(--paper);
  box-shadow: 0 3px 0 0 var(--ink);
  transition: background 0.15s;
}
.checkbox-row:hover {
  background: var(--paper-warm);
}
.checkbox-row.checked {
  background: oklch(0.92 0.12 165);
}
.checkbox-row input {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--coral-500);
  width: 18px;
  height: 18px;
}
.checkbox-row span {
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 600;
}

/* Confirmation */
.confirm-hero {
  text-align: center;
  padding: 24px 0 8px;
}
.confirm-icon {
  width: 110px;
  height: 110px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--mint-400);
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: var(--stk-3);
  animation: pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pop {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
.confirm-icon::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 3px dashed var(--coral-500);
  animation: spin 18s linear infinite;
}
.confirm-icon svg {
  width: 56px;
  height: 56px;
  color: var(--sea-900);
  position: relative;
  z-index: 1;
}

/* Section tag */
.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--coral-500);
  border: 2px solid var(--ink);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 10px;
  box-shadow: 0 2px 0 0 var(--ink);
  transform: rotate(-2deg);
}

/* Plan card */
.plan-card {
  position: relative;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 18px;
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    background 0.15s;
  text-align: left;
  font: inherit;
  color: inherit;
  width: 100%;
  overflow: hidden;
  box-shadow: var(--stk-2);
}
.plan-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--stk-3);
}
.plan-card:active {
  transform: translateY(2px);
  box-shadow: var(--stk-1);
}
.plan-card.selected,
.plan-card:has(input:checked) {
  background: var(--sun-400);
}
.plan-card .ribbon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--coral-500);
  color: var(--paper);
  border: 2.5px solid var(--ink);
  padding: 5px 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 99px;
  box-shadow: 0 2px 0 0 var(--ink);
  margin-bottom: 12px;
  transform: rotate(-2deg);
}
.plan-card .ribbon::before {
  content: '★';
  font-size: 12px;
}
.plan-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.plan-head > div:first-child {
  flex: 1;
  min-width: 0;
}
.plan-card .choice-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex-shrink: 0;
}
.plan-card .choice-icon svg {
  width: 30px;
  height: 30px;
}
.plan-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--sea-900);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.02em;
}
.plan-sub {
  font-size: 13px;
  color: var(--sea-900);
  font-weight: 700;
  margin-top: 4px;
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 12px 0 14px;
  font-size: 14px;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 0;
  color: var(--sea-900);
  font-weight: 700;
}
.plan-features svg {
  color: var(--mint-500);
  flex-shrink: 0;
  margin-top: 3px;
}
.plan-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 2.5px dashed var(--ink);
}
.plan-bottom .price-big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--coral-500);
  line-height: 1;
  white-space: nowrap;
}
.plan-bottom .price-cur {
  font-size: 13px;
  color: var(--sea-900);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Helper */
.helper {
  font-size: 13px;
  color: var(--sea-900);
  background: oklch(0.94 0.08 165);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin-bottom: 14px;
  font-weight: 700;
  box-shadow: 0 3px 0 0 var(--ink);
  line-height: 1.45;
}

/* Chip row */
.chip-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.chip {
  appearance: none;
  border: 2.5px solid var(--ink);
  background: var(--paper);
  font: 800 12px var(--font-display);
  color: var(--sea-900);
  padding: 6px 14px;
  border-radius: 99px;
  cursor: pointer;
  box-shadow: 0 2px 0 0 var(--ink);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 0 0 var(--ink);
}
.chip.active {
  background: var(--sea-700);
  color: var(--paper);
}

.muted {
  color: var(--sea-900);
  opacity: 0.7;
}

.err {
  color: oklch(0.55 0.2 25);
  font-size: 12px;
  font-weight: 800;
  margin-top: 4px;
}

/* Hero dots — colorful row inspired by logo */
.hero-dots {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.hero-dots span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  box-shadow: 0 2px 0 0 var(--ink);
  animation: hop 2s ease-in-out infinite;
}
.hero-dots span:nth-child(1) {
  animation-delay: 0s;
}
.hero-dots span:nth-child(2) {
  animation-delay: 0.1s;
}
.hero-dots span:nth-child(3) {
  animation-delay: 0.2s;
}
.hero-dots span:nth-child(4) {
  animation-delay: 0.3s;
}
.hero-dots span:nth-child(5) {
  animation-delay: 0.4s;
}
@keyframes hop {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-4px);
  }
}

/* Decorative floating doodles inside steps */
.step-doodle {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.step {
  position: relative;
}
.step > * {
  position: relative;
  z-index: 1;
}

/* Full-screen loading overlay (used by /pago while waiting for Azul) */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: oklch(0.2 0.05 230 / 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  cursor: wait;
}
.loading-overlay.is-active {
  display: flex;
}
.loading-card {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--stk-3);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 320px;
  text-align: center;
}
.loading-spinner {
  width: 52px;
  height: 52px;
  border: 5px solid var(--sky-200);
  border-top-color: var(--coral-500);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
.loading-card .title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--sea-900);
}
.loading-card .sub {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 600;
  line-height: 1.4;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ─────────── Admin panel ─────────── */
body.admin {
  background: oklch(0.97 0.01 230);
}
.admin-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 60px;
}
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--ink);
}
.admin-topbar .brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin: 0;
}
.admin-topbar .brand-logo {
  height: 36px;
  width: auto;
  max-width: 140px;
}
.admin-topbar .crumb {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--sea-900);
}
.admin-topbar .crumb .sep {
  color: var(--ink-soft);
  margin: 0 8px;
  font-weight: 500;
}
.admin-topbar form {
  margin: 0;
}
.admin-h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--sea-900);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.admin-sub {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 600;
  margin: 0 0 20px;
}
.admin-card {
  background: var(--paper);
  border: 1.5px solid oklch(0.85 0.02 230);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
}
.admin-card h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--sea-900);
  margin: 0 0 14px;
}

.admin-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.admin-filters label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.admin-filters select,
.admin-filters input[type='date'],
.admin-filters input[type='text'],
.admin-filters input[type='search'] {
  padding: 9px 10px;
  border: 1.5px solid oklch(0.82 0.02 230);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  background: var(--paper);
  color: var(--ink);
}
.admin-filters select:focus,
.admin-filters input:focus {
  outline: none;
  border-color: var(--sea-700);
  box-shadow: 0 0 0 3px oklch(0.85 0.11 225 / 0.4);
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.admin-actions .spacer {
  flex: 1;
}
.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid oklch(0.82 0.02 230);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition:
    background 0.12s,
    border-color 0.12s;
}
.admin-btn:hover {
  background: oklch(0.96 0.01 230);
  border-color: var(--sea-700);
}
.admin-btn.primary {
  background: var(--sea-900);
  color: var(--paper);
  border-color: var(--sea-900);
}
.admin-btn.primary:hover {
  background: var(--sea-700);
  border-color: var(--sea-700);
}
.admin-btn.link {
  background: transparent;
  border-color: transparent;
  color: var(--sea-700);
  padding: 6px 8px;
  text-decoration: underline;
}
.admin-btn.link:hover {
  background: transparent;
  color: var(--coral-500);
}

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
}
.admin-table thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  padding: 10px 12px;
  background: oklch(0.97 0.01 230);
  border-bottom: 1.5px solid oklch(0.85 0.02 230);
  white-space: nowrap;
}
.admin-table thead th:first-child {
  border-top-left-radius: 10px;
}
.admin-table thead th:last-child {
  border-top-right-radius: 10px;
}
.admin-table tbody td {
  padding: 12px;
  border-bottom: 1px solid oklch(0.92 0.01 230);
  vertical-align: top;
}
.admin-table tbody tr:hover td {
  background: oklch(0.98 0.01 230);
}
.admin-table tbody tr:last-child td {
  border-bottom: none;
}
.admin-table .muted {
  display: block;
  font-size: 11.5px;
  color: var(--ink-soft);
  font-weight: 600;
  margin-top: 2px;
}
.admin-table .nowrap {
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1.5px solid currentColor;
}
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge.paid {
  color: oklch(0.4 0.13 165);
  background: oklch(0.95 0.06 165);
}
.badge.failed {
  color: oklch(0.45 0.18 28);
  background: oklch(0.96 0.07 28);
}
.badge.pending {
  color: oklch(0.5 0.15 75);
  background: oklch(0.95 0.07 75);
}

.admin-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
  font-weight: 600;
}

.admin-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--sea-700);
  text-decoration: none;
  margin-bottom: 8px;
}
.admin-back:hover {
  color: var(--coral-500);
}
.admin-detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 24px;
}
.admin-dl {
  display: grid;
  grid-template-columns: minmax(140px, max-content) 1fr;
  gap: 8px 24px;
  margin: 0;
  font-size: 14px;
}
.admin-dl dt {
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  align-self: center;
}
.admin-dl dd {
  margin: 0;
  color: var(--ink);
}
.admin-dl dd ul {
  margin: 0;
  padding-left: 18px;
}
.admin-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  word-break: break-all;
}
.admin-payment {
  border: 1px solid oklch(0.9 0.01 230);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: oklch(0.99 0.005 230);
}
.admin-payment-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.admin-payment pre {
  margin: 8px 0 0;
  padding: 10px;
  background: oklch(0.97 0.01 230);
  border-radius: 8px;
  font-size: 11.5px;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 260px;
  overflow-y: auto;
}

.admin-login {
  max-width: 380px;
  margin: 80px auto 0;
  padding: 28px;
  background: var(--paper);
  border: 1.5px solid oklch(0.85 0.02 230);
  border-radius: 16px;
  box-shadow: 0 8px 24px oklch(0.5 0.05 230 / 0.08);
}
.admin-login .brand {
  text-align: center;
  margin-bottom: 18px;
}
.admin-login .brand img {
  height: 48px;
}
.admin-login h1 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--sea-900);
  text-align: center;
  margin: 0 0 18px;
}
.admin-login label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.admin-login input[type='password'] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid oklch(0.82 0.02 230);
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  background: var(--paper);
}
.admin-login input[type='password']:focus {
  outline: none;
  border-color: var(--sea-700);
  box-shadow: 0 0 0 3px oklch(0.85 0.11 225 / 0.4);
}
.admin-login .error {
  margin: 12px 0 0;
  padding: 10px 12px;
  background: oklch(0.96 0.07 28);
  color: oklch(0.45 0.18 28);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}
.admin-login button {
  width: 100%;
  margin-top: 16px;
  padding: 13px;
  border: none;
  background: var(--sea-900);
  color: var(--paper);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.12s;
}
.admin-login button:hover {
  background: var(--sea-700);
}

@media (max-width: 700px) {
  .admin-table thead {
    display: none;
  }
  .admin-table tbody td {
    display: block;
    border: none;
    padding: 4px 0;
  }
  .admin-table tbody tr {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid oklch(0.9 0.01 230);
  }
  .admin-dl {
    grid-template-columns: 1fr;
    gap: 12px 0;
  }
  .admin-dl dt {
    margin-bottom: -4px;
  }
}
