/* La Junta · app styles. Mobile first; brand from lajuntaescalada.cl */

@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/SpaceGrotesk-VariableFont_wght.ttf') format('truetype');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --dark: #2E2E2E;
  --darker: #1A1A1A;
  --ink: #121212;
  --card: #262626;
  --card-2: #303030;
  --line: rgba(234, 229, 220, 0.12);
  --cream: #EAE5DC;
  --muted: rgba(234, 229, 220, 0.62);
  --orange: #C97C2A;
  --orange-2: #E08F37;
  --teal: #2EAD82;
  --blue: #3A8FB5;
  --red: #E07070;
  --wa: #25D366;
  --radius: 18px;
  --tabbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --app-w: 520px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--ink);
  color: var(--cream);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------ shell */

.app {
  position: relative;
  max-width: var(--app-w);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--darker);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 40px 120px rgba(0,0,0,0.6);
}

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: calc(12px + var(--safe-t)) 18px 12px;
  background: linear-gradient(to bottom, rgba(26,26,26,0.96), rgba(26,26,26,0.86));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: 0.04em; font-size: 15px; }
.topbar-logo img { height: 22px; width: auto; }
.demo-pill {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  padding: 3px 7px; border-radius: 99px; background: rgba(201,124,42,0.18); color: var(--orange-2);
}
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang-btn {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  height: 32px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted);
}
.avatar-btn {
  height: 32px; min-width: 32px; padding: 0 12px; border-radius: 99px;
  background: var(--wa); color: #072b15; font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
}
.avatar-btn.logged {
  padding: 0; width: 32px; background: var(--orange); color: var(--darker); justify-content: center;
}
.avatar-btn.logged.socio { box-shadow: 0 0 0 2px var(--darker), 0 0 0 3.5px var(--orange-2); }

.view { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 24px); outline: none; }
.view.fullbleed { padding-bottom: 0; }

.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--app-w); z-index: 40;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(18,18,18,0.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 11px; font-weight: 500; color: rgba(234,229,220,0.5); transition: color 160ms;
}
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a.active { color: var(--cream); }
.tabbar a.active svg { stroke: var(--orange-2); }
.tabbar a[data-tab="socios"].active svg { fill: rgba(224,143,55,0.25); }

/* Desktop: keep the phone-sized app centered, with a QR to open it on a phone. */
.desk-side { display: none; }
@media (min-width: 1040px) {
  body { background: radial-gradient(1200px 700px at 15% 20%, #2a2219 0%, var(--ink) 60%); }
  .desk-side {
    display: flex; flex-direction: column; gap: 22px;
    position: fixed; left: max(32px, calc(50% - var(--app-w) / 2 - 360px)); top: 50%; transform: translateY(-50%);
    width: 280px;
  }
  .desk-logo { width: 220px; }
  .desk-claim { font-size: 44px; line-height: 1; font-weight: 700; letter-spacing: -0.02em; }
  .desk-qr { width: 168px; padding: 12px; background: var(--cream); border-radius: 16px; }
  .desk-qr svg { width: 100%; height: auto; }
  .desk-hint { color: var(--muted); font-size: 14px; }
}

/* ------------------------------------------------------------ type + building blocks */

.section { padding: 22px 18px 6px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.h1 { font-size: 34px; line-height: 1.02; font-weight: 700; letter-spacing: -0.02em; text-transform: uppercase; }
.h2 { font-size: 22px; line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; }
.h3 { font-size: 17px; line-height: 1.2; font-weight: 600; }
.lead { font-size: 16px; line-height: 1.45; color: var(--muted); }
.small { font-size: 13px; line-height: 1.45; color: var(--muted); }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.row { display: flex; align-items: center; gap: 10px; }
.spacer { flex: 1; }

/* Angled label, like the banners on their Instagram posts. */
.tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 14px 5px 10px; color: #fff; background: var(--blue);
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.tag.orange { background: var(--orange); }
.tag.teal { background: var(--teal); }
.tag.cream { background: var(--cream); color: var(--darker); }
.tag.red { background: var(--red); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; position: relative;
}
.card-pad { padding: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 22px; border-radius: 14px;
  font-size: 16px; font-weight: 700; letter-spacing: 0.01em;
  background: var(--orange); color: #1a1208;
  transition: transform 120ms, filter 160ms, opacity 160ms;
  user-select: none; -webkit-user-select: none;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn.block { width: 100%; }
.btn.wa { background: var(--wa); color: #062b14; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--cream); }
.btn.cream { background: var(--cream); color: var(--darker); }
.btn.teal { background: var(--teal); color: #04281a; }
.btn.sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 11px; }
.btn svg { width: 22px; height: 22px; flex: none; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 18px 4px; margin: 0 -18px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line);
  font-size: 14px; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.chip.active { background: var(--cream); color: var(--darker); border-color: var(--cream); font-weight: 700; }

.avatar {
  line-height: 1; letter-spacing: 0;
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--darker);
  background: var(--cream);
}
.avatar.sm { width: 26px; height: 26px; font-size: 11px; }
.avatar.lg { width: 56px; height: 56px; font-size: 20px; }
.avatars { display: flex; }
.avatars .avatar { box-shadow: 0 0 0 2px var(--card); }
.avatars .avatar + .avatar { margin-left: -8px; }

.skeleton { background: linear-gradient(90deg, #262626 0%, #313131 50%, #262626 100%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); }
@keyframes sk { to { background-position: -200% 0; } }

.fade-in { animation: fadeIn 380ms cubic-bezier(.2,.7,.2,1) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ home */

.hero {
  position: relative; height: min(64vh, 520px); min-height: 400px; overflow: hidden; background: #111;
}
.hero video, .hero img.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(18,18,18,0.15) 0%, rgba(18,18,18,0) 30%, rgba(26,26,26,0.7) 72%, var(--darker) 100%);
}
.hero-content { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2; }
.hero-title { font-size: 46px; line-height: 0.95; font-weight: 700; letter-spacing: -0.025em; text-transform: uppercase; }
.hero-title span { display: block; }
.hero-title span:nth-child(2) { color: var(--orange-2); }
.hero-sub { margin-top: 12px; font-size: 16px; line-height: 1.4; color: rgba(234,229,220,0.82); max-width: 360px; }
.hero-cta { margin-top: 18px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 18px; margin-top: 4px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.stat b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.stat span { font-size: 12px; color: var(--muted); line-height: 1.25; display: block; margin-top: 2px; }

/* The three pillars: ESCALA / COMPARTE / SÉ PARTE */
.pillars { display: grid; gap: 12px; padding: 0 18px; }
.pillar { display: block; min-height: 168px; }
.pillar-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; transition: transform 600ms; }
.pillar:active .pillar-bg { transform: scale(1.03); }
.pillar::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,20,20,0.92) 0%, rgba(20,20,20,0.55) 60%, rgba(20,20,20,0.2) 100%); }
.pillar-content { position: relative; z-index: 1; padding: 16px; display: flex; flex-direction: column; min-height: 168px; }
.pillar-word { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; text-transform: uppercase; margin-top: 10px; }
.pillar-text { font-size: 14px; color: rgba(234,229,220,0.8); margin-top: 4px; max-width: 280px; line-height: 1.4; }
.pillar-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.pillar-foot .arrow { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; background: var(--cream); color: var(--darker); display: grid; place-items: center; font-size: 18px; }
.bar { height: 6px; border-radius: 99px; background: rgba(234,229,220,0.14); overflow: hidden; flex: 1; max-width: 150px; }
.bar i { display: block; height: 100%; background: var(--orange-2); border-radius: 99px; transition: width 900ms cubic-bezier(.2,.7,.2,1); }

.founders { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.founder img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 14px; filter: grayscale(0.2); }
.founder b { display: block; margin-top: 8px; font-size: 15px; }
.founder span { font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------------ juntas */

.page-head { padding: 22px 18px 10px; }
.junta { padding: 16px; }
.junta + .junta { margin-top: 12px; }
.junta-top { display: flex; align-items: flex-start; gap: 12px; }
.junta-date { flex: none; width: 58px; text-align: center; background: var(--card-2); border-radius: 12px; padding: 8px 4px; }
.junta-date .d { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--orange-2); text-transform: uppercase; }
.junta-date .n { font-size: 24px; font-weight: 700; line-height: 1.05; }
.junta-date .t { font-size: 12px; color: var(--muted); }
.junta-place { font-size: 19px; font-weight: 700; line-height: 1.15; margin-top: 6px; }
.junta-meet { font-size: 13px; color: var(--muted); margin-top: 3px; }
.junta-note { font-size: 14px; line-height: 1.45; color: rgba(234,229,220,0.86); margin-top: 12px; }
.junta-org { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.junta-org b { font-size: 14px; }
.junta-org div span { font-size: 12px; color: var(--muted); display: block; }
.junta-foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.seats { display: flex; gap: 4px; align-items: center; }
.seat { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid rgba(234,229,220,0.35); }
.seat.taken { background: var(--orange-2); border-color: var(--orange-2); }
.seats-label { font-size: 12px; color: var(--muted); margin-left: 6px; }
.wx-warn { margin-top: 10px; font-size: 12px; color: #9fd0e6; display: flex; gap: 6px; align-items: center; }

.fab {
  position: fixed; z-index: 35; right: max(18px, calc(50% - var(--app-w) / 2 + 18px));
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px);
  height: 54px; padding: 0 20px; border-radius: 99px; background: var(--orange); color: #1a1208;
  font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}
.fab b { font-size: 24px; line-height: 1; margin-top: -2px; }

.visit {
  background: linear-gradient(135deg, #1e3440 0%, #262626 70%);
  border-color: rgba(58,143,181,0.35);
}
.hostel { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.hostel:first-of-type { border-top: 0; }
.hostel .ico { width: 40px; height: 40px; border-radius: 10px; background: rgba(234,229,220,0.08); display: grid; place-items: center; font-size: 20px; flex: none; }

.empty { text-align: center; padding: 40px 24px; color: var(--muted); }
.empty .big { font-size: 40px; }

/* ------------------------------------------------------------ socios */

.socios-hero { position: relative; padding: 26px 18px 22px; overflow: hidden; }
.socios-hero .forma { position: absolute; right: -40px; top: -20px; width: 180px; opacity: 0.13; transform: rotate(12deg); pointer-events: none; }
.socios-big { font-size: 84px; line-height: 0.85; font-weight: 700; letter-spacing: -0.04em; color: var(--orange-2); }
.socios-title { font-size: 30px; line-height: 1; font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; margin-top: 6px; }
.price-row { display: flex; align-items: baseline; gap: 10px; margin-top: 16px; }
.price-row b { font-size: 30px; font-weight: 700; }
.price-row span { color: var(--muted); font-size: 14px; }

.grid100 { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.cell {
  aspect-ratio: 1; border-radius: 6px; background: rgba(234,229,220,0.07);
  display: grid; place-items: center; font-size: 10px; font-weight: 700; color: rgba(234,229,220,0.28);
  transition: transform 200ms;
}
.cell.taken { background: var(--orange); color: rgba(26,18,8,0.75); }
.cell.mine { background: var(--cream); color: var(--darker); box-shadow: 0 0 0 2px var(--orange-2); transform: scale(1.08); }
.cell.next { outline: 1.5px dashed var(--orange-2); color: var(--orange-2); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { outline-color: transparent; } }
.wall-names { columns: 2; column-gap: 16px; font-size: 13px; margin-top: 14px; }
.wall-names div { break-inside: avoid; padding: 4px 0; color: rgba(234,229,220,0.85); }
.wall-names i { font-style: normal; color: var(--orange-2); font-weight: 700; margin-right: 6px; font-variant-numeric: tabular-nums; }

.perks { list-style: none; display: grid; gap: 2px; }
.perks li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.35; }
.perks li:first-child { border-top: 0; }
.perks .k { width: 30px; height: 30px; border-radius: 9px; background: rgba(201,124,42,0.18); display: grid; place-items: center; flex: none; font-size: 16px; }

.sticky-cta {
  position: sticky; bottom: calc(var(--tabbar-h) + var(--safe-b)); z-index: 20;
  padding: 12px 18px; background: linear-gradient(to top, var(--darker) 70%, rgba(26,26,26,0));
}

/* The member card (carnet) */
.carnet {
  position: relative; border-radius: 22px; padding: 20px; aspect-ratio: 1.586; overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(224,143,55,0.55) 0%, rgba(224,143,55,0) 55%),
    linear-gradient(140deg, #3b2a17 0%, #1b1712 55%, #121212 100%);
  border: 1px solid rgba(224,143,55,0.45);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
  display: flex; flex-direction: column;
}
.carnet::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.10) 45%, transparent 60%);
  transform: translateX(-100%); animation: shine 3.2s 0.6s ease-in-out infinite;
}
@keyframes shine { 60%, 100% { transform: translateX(100%); } }
.carnet .logo { height: 22px; width: auto; align-self: flex-start; }
.carnet .kind { font-size: 11px; letter-spacing: 0.2em; font-weight: 700; color: var(--orange-2); margin-top: 10px; }
.carnet .num { font-size: 56px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin-top: auto; }
.carnet .name { padding-right: 84px; font-size: 18px; font-weight: 600; margin-top: 6px; }
.carnet .since { padding-right: 84px; font-size: 11px; color: var(--muted); letter-spacing: 0.08em; margin-top: 2px; text-transform: uppercase; }
.carnet .qr { position: absolute; right: 18px; bottom: 18px; width: 64px; height: 64px; background: var(--cream); border-radius: 10px; padding: 5px; }
.carnet .qr svg { width: 100%; height: 100%; }
.carnet .iso { position: absolute; right: -30px; top: 30px; width: 190px; opacity: 0.08; }

/* ------------------------------------------------------------ gym (3D) */

.gym-wrap { position: fixed; inset: 0; z-index: 25; background: #0d0d0d; max-width: var(--app-w); margin: 0 auto; }
.gym-canvas { position: absolute; inset: 0; --g3d-bottom: calc(var(--tabbar-h) + var(--safe-b) + 20px); }
.gym-top {
  position: absolute; left: 0; right: 0; top: 0; z-index: 5; pointer-events: none;
  padding: calc(12px + var(--safe-t)) 14px 12px;
  background: linear-gradient(to bottom, rgba(10,10,10,0.75), rgba(10,10,10,0));
}
.gym-top > * { pointer-events: auto; }
.gym-title { display: flex; align-items: center; gap: 10px; }
.gym-title .back { width: 38px; height: 38px; border-radius: 50%; background: rgba(26,26,26,0.7); display: grid; place-items: center; font-size: 20px; backdrop-filter: blur(8px); }
.gym-title b { font-size: 15px; font-weight: 700; letter-spacing: 0.02em; }
.gym-title span { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.gym-pois { margin-top: 10px; }
.gym-pois .chips { padding-left: 14px; padding-right: 14px; margin: 0 -14px; }
.gym-pois .chip { background: rgba(26,26,26,0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--cream); }
.gym-pois .chip.active { background: var(--cream); color: var(--darker); }
.gym-pois .chip.star { border-color: var(--orange-2); }
.gym-info {
  position: absolute; left: 12px; right: 12px; z-index: 5;
  top: calc(var(--safe-t) + 118px);
  background: rgba(22,22,22,0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px;
  transition: opacity 250ms, transform 250ms;
}
.gym-info.hide { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.gym-info b { font-size: 15px; display: block; }
.gym-info span { font-size: 13px; color: var(--muted); line-height: 1.4; display: block; margin-top: 3px; }
.gym-hint { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); z-index: 4; text-align: center; font-size: 13px; color: rgba(234,229,220,0.85); background: rgba(20,20,20,0.6); padding: 10px 14px; border-radius: 12px; pointer-events: none; transition: opacity 600ms; }
.gym-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; text-align: center; }
.gym-loading { position: absolute; inset: 0; display: grid; place-items: center; z-index: 3; color: var(--muted); font-size: 13px; letter-spacing: 0.1em; }

/* ------------------------------------------------------------ sheets (bottom modals) */

.sheet-root { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.55); opacity: 0; transition: opacity 260ms; pointer-events: auto; }
.sheet {
  position: absolute; left: 50%; bottom: 0; width: 100%; max-width: var(--app-w);
  transform: translate(-50%, 100%); transition: transform 340ms cubic-bezier(.2,.8,.2,1);
  background: #1f1f1f; border-radius: 24px 24px 0 0; border-top: 1px solid var(--line);
  max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; pointer-events: auto;
  padding: 10px 20px calc(24px + var(--safe-b));
}
.sheet.open { transform: translate(-50%, 0); }
.sheet-backdrop.open { opacity: 1; }
.sheet-grip { width: 40px; height: 5px; border-radius: 99px; background: rgba(234,229,220,0.25); margin: 0 auto 14px; }
.sheet-close { position: absolute; right: 14px; top: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(234,229,220,0.08); display: grid; place-items: center; font-size: 18px; color: var(--muted); }

.steps { display: grid; gap: 12px; margin-top: 18px; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; background: rgba(37,211,102,0.16); color: var(--wa); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.step p { font-size: 15px; line-height: 1.4; padding-top: 3px; }

.codebox {
  font-family: 'Space Grotesk', monospace; font-size: 28px; font-weight: 700; letter-spacing: 0.08em;
  text-align: center; padding: 14px; border-radius: 14px; background: var(--card-2); border: 1px dashed rgba(234,229,220,0.25);
}
.waiting { display: flex; align-items: center; gap: 10px; justify-content: center; color: var(--muted); font-size: 14px; }
.dots i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--wa); margin: 0 2px; animation: dot 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

.otp-input {
  width: 100%; height: 72px; text-align: center; font-size: 38px; font-weight: 700; letter-spacing: 0.4em;
  padding-left: 0.4em; border-radius: 16px; border: 1.5px solid rgba(234,229,220,0.2); background: var(--card-2);
  outline: none; font-variant-numeric: tabular-nums;
}
.otp-input:focus { border-color: var(--wa); box-shadow: 0 0 0 4px rgba(37,211,102,0.15); }
.otp-input.err { border-color: var(--red); animation: shake 380ms; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.err-text { color: var(--red); font-size: 13px; margin-top: 8px; min-height: 18px; text-align: center; }

.qrbox { width: 200px; margin: 16px auto 0; padding: 12px; background: var(--cream); border-radius: 16px; }
.qrbox svg { width: 100%; height: auto; }

.field { display: block; margin-top: 16px; }
.field > span { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.input, .textarea {
  width: 100%; border-radius: 12px; border: 1.5px solid rgba(234,229,220,0.16); background: var(--card-2);
  padding: 0 14px; height: 50px; font-size: 16px; outline: none;
}
.textarea { height: auto; min-height: 92px; padding: 12px 14px; resize: vertical; line-height: 1.4; }
.input:focus, .textarea:focus { border-color: var(--orange-2); }
.input[type="date"], .input[type="time"] { color-scheme: dark; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; background: var(--card-2); padding: 5px; border-radius: 14px; }
.seg button { height: 44px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.seg button.active { background: var(--cream); color: var(--darker); }
.choice { display: grid; gap: 8px; }
.choice button { text-align: left; padding: 14px; border-radius: 14px; border: 1.5px solid rgba(234,229,220,0.14); background: var(--card-2); font-size: 15px; display: flex; gap: 12px; align-items: center; }
.choice button.active { border-color: var(--orange-2); background: rgba(201,124,42,0.12); }
.choice button .e { font-size: 22px; }
.stepper { display: flex; align-items: center; gap: 14px; height: 50px; }
.stepper button { width: 44px; height: 44px; border-radius: 12px; background: var(--card-2); font-size: 22px; }
.stepper b { font-size: 22px; min-width: 24px; text-align: center; }

/* ------------------------------------------------------------ toast, confetti */

.toast {
  position: fixed; left: 50%; top: calc(14px + var(--safe-t)); transform: translate(-50%, calc(-100% - 40px)); z-index: 300; visibility: hidden;
  background: var(--cream); color: var(--darker); padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4); transition: transform 320ms cubic-bezier(.2,.8,.2,1), visibility 0s linear 320ms; max-width: 90vw; text-align: center;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform 320ms cubic-bezier(.2,.8,.2,1), visibility 0s; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 250; }

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

.head-row { display: flex; align-items: flex-end; gap: 12px; }
.head-row .btn { flex: none; }
