
/* ── Design Tokens ─────────────────────────────── */
:root {
  --c-red:       #c8102e;
  --c-red-ink:   #9e0c25;
  --c-red-soft:  rgba(200,16,46,.10);
  --c-red-softer:rgba(200,16,46,.05);
  --c-green:     #22b463;
  --c-amber:     #e59500;
  --c-blue:      #0a84ff;
  --bg-app:      #f4f3f0;
  --bg-card:     #ffffff;
  --bg-subtle:   #faf9f6;
  --ink-1:       #0a0a0a;
  --ink-2:       rgba(10,10,10,.66);
  --ink-3:       rgba(10,10,10,.42);
  --ink-4:       rgba(10,10,10,.22);
  --ink-5:       rgba(10,10,10,.10);
  --fill-1:      rgba(60,60,67,.16);
  --fill-2:      rgba(60,60,67,.10);
  --fill-3:      rgba(60,60,67,.06);
  --sep:         rgba(60,60,67,.18);
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 26px;
  --sh-1: 0 1px 2px rgba(10,10,10,.04);
  --sh-2: 0 4px 14px rgba(10,10,10,.06), 0 1px 2px rgba(10,10,10,.04);
  --sh-3: 0 16px 40px rgba(10,10,10,.12), 0 2px 8px rgba(10,10,10,.06);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --ease-out:    cubic-bezier(.2,.8,.2,1);
  --ease-ios:    cubic-bezier(.4,0,.2,1);
  --d-fast: 160ms;
  --d-mid:  280ms;
  --d-slow: 420ms;
  --c-ink-deep: #12305a;
}
body[data-theme="warm"] {
  --c-red:       #b83a2b;
  --c-red-ink:   #8a2a1f;
  --c-red-soft:  rgba(184,58,43,.10);
  --c-red-softer:rgba(184,58,43,.05);
  --bg-app:      #f5efe6;
  --bg-card:     #fffdf9;
  --bg-subtle:   #faf5ea;
  --c-ink-deep:  #2a1d10;
}
body[data-theme="slate"] {
  --c-red:       #1f2937;
  --c-red-ink:   #111827;
  --c-red-soft:  rgba(31,41,55,.10);
  --c-red-softer:rgba(31,41,55,.05);
  --bg-app:      #f3f4f6;
  --bg-card:     #ffffff;
  --bg-subtle:   #f9fafb;
  --c-ink-deep:  #1d2633;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  background: var(--bg-app);
  min-height: 100vh;
  color: var(--ink-1);
  overflow-x: hidden;
}

/* ── App shell ──────────────────────────────── */
.r-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-app);
}
.r-login-app {
  align-items: stretch;
  justify-content: stretch;
}

/* ── Header ─────────────────────────────────── */
.r-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--sep);
  position: sticky; top: 0; z-index: 30;
}
.r-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.r-brand {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
}
.r-brand-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--c-red);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-red) 18%, transparent);
  animation: brandping 2.6s ease-out infinite;
}
.r-brand-head { display: flex; align-items: center; line-height: 0; }
@keyframes brandping {
  0%   { box-shadow: 0 0 0 0 rgba(200,16,46,.6); }
  65%  { box-shadow: 0 0 0 10px rgba(200,16,46,0); }
  100% { box-shadow: 0 0 0 0 rgba(200,16,46,0); }
}
.r-brand-name {
  font-weight: 700; font-size: 15px;
  color: var(--ink-1); letter-spacing: -.3px;
}
.r-header-nav {
  display: flex; align-items: center; gap: 18px;
}
.r-header-link {
  background: none; border: none;
  color: var(--ink-1); font-weight: 500;
  font-size: 13.5px; cursor: pointer;
  font-family: inherit; padding: 8px 10px;
  border-radius: 6px;
  transition: background .15s; letter-spacing: -.1px;
}
.r-header-link:hover { background: var(--fill-3); }
.r-header-link-muted { color: var(--ink-3); }

/* ── Main layout ─────────────────────────────── */
.r-main { flex: 1; padding: 20px; }
.r-layout {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
.r-left { min-width: 0; }
.r-right { display: none; }
.r-stepper-mobile { display: block; }
.r-stepper-desktop { display: none; }
.r-stepper-wrap {
  background: var(--bg-card);
  border-radius: 14px;
  border: 1px solid var(--sep);
  padding: 16px 18px;
  margin-bottom: 16px;
}
.r-content {
  background: var(--bg-card);
  border-radius: 14px;
  border: 1px solid var(--sep);
  padding: 24px 22px 28px;
}
.r-content .content { padding: 0; background: transparent; }
.r-content .app { background: transparent; }
.r-content .content::before { display: none; }

/* ── Desktop stepper ─────────────────────────── */
.d-stepper {
  display: flex; align-items: flex-start;
  justify-content: center; gap: 0;
  padding: 10px 0 4px;
  max-width: 520px; margin: 0 auto; width: 100%;
}
.d-step {
  background: none; border: none; padding: 0;
  cursor: pointer; font-family: inherit;
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  position: relative; flex: 0 0 auto;
}
.d-step-circle {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--sep);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px; color: var(--ink-3);
  background: var(--bg-card);
  transition: all .28s cubic-bezier(.2,.7,.3,1);
  position: relative; z-index: 2;
  font-variant-numeric: tabular-nums;
}
.d-step-label {
  font-size: 11.5px; font-weight: 500; color: var(--ink-3);
  letter-spacing: -.05px; text-align: center;
  transition: color .2s; white-space: nowrap;
}
.d-step.is-done .d-step-circle { border-color: var(--c-red); background: var(--bg-card); color: var(--c-red); }
.d-step.is-done .d-step-label { color: var(--ink-2); }
.d-step.is-current .d-step-circle {
  border-color: var(--c-red); background: var(--c-red); color: #fff;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--c-red) 12%, transparent);
}
.d-step.is-current .d-step-label { color: var(--c-red); font-weight: 600; }
.d-step-check { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.d-step-line {
  flex: 1 1 auto; width: auto; min-width: 60px;
  height: 2px; margin: 15px 4px 0;
  background: var(--sep); position: relative; overflow: hidden; border-radius: 1px;
}
.d-step-line::after {
  content: ''; position: absolute; inset: 0;
  background: var(--c-red); transform-origin: left;
  transform: scaleX(0); transition: transform .45s cubic-bezier(.6,.2,.2,1);
}
.d-step-line.is-done::after { transform: scaleX(1); }

/* ── Info panel ──────────────────────────────── */
.info-panel {
  background: var(--bg-card); border-radius: 14px;
  border: 1px solid var(--sep); padding: 28px 26px;
  position: sticky; top: 80px;
}
.info-logos {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 18px; border-bottom: 1px solid var(--sep); margin-bottom: 20px;
}
.info-logos img { height: 36px; width: auto; object-fit: contain; max-width: 120px; }
.info-logos-sep { width: 1px; height: 28px; background: var(--sep); flex-shrink: 0; }
.info-title {
  font-size: 16px; font-weight: 700; color: var(--ink-1);
  margin: 0 0 14px; letter-spacing: -.3px; text-align: center;
}
.info-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.info-list li {
  font-size: 13px; line-height: 1.55; color: var(--ink-2);
  position: relative; padding-left: 16px;
}
.info-list li::before {
  content: ''; position: absolute; left: 2px; top: 7px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--c-red);
}
.info-list li strong { color: var(--ink-1); font-weight: 600; }
.info-faq {
  display: block; text-align: center; margin-top: 24px;
  padding-top: 20px; border-top: 1px solid var(--sep);
  color: var(--c-red); text-decoration: none; font-size: 13px; font-weight: 500;
}
.info-faq:hover { text-decoration: underline; }

/* ── Tablet ≥720px ──────────────────────────── */
@media (min-width: 720px) {
  .r-main { padding: 32px 24px; }
  .r-layout { max-width: 680px; }
  .r-content { padding: 32px 36px 40px; }
}

/* ── Desktop ≥1024px ─────────────────────────── */
@media (min-width: 1024px) {
  .r-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    max-width: 1180px; gap: 32px;
  }
  .r-right { display: block; }
  .r-stepper-mobile { display: none; }
  .r-stepper-desktop { display: block; }
  .r-main { padding: 40px 32px 60px; }
  .r-content { padding: 40px 48px 48px; min-height: 520px; }
  .r-stepper-wrap { padding: 20px 48px; }
  .r-content .title { font-size: 32px; }
  .r-content .subtitle { font-size: 15px; }
  .r-content .type-card { padding: 20px; }
  .r-content .nav-row { justify-content: flex-end; position: static; box-shadow: none; padding: 0; background: transparent; }
  .r-content .nav-row .btn,
  .r-content .nav-row .btn-secondary { width: auto; min-width: 140px; flex: 0 0 auto; }
  .r-content > .btn { width: auto; min-width: 200px; margin-left: auto; display: flex; }
  .r-content .privacy { display: none; }
}

/* ── Login desktop ────────────────────────────── */
@media (min-width: 1024px) {
  .r-login-app .login {
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
  }
}

/* ── In-content responsive adjustments ─────────── */
.r-content .code-card { margin: 8px 0 12px; }
.r-content .track-cta { margin: 6px 0 16px; }
.r-content .support-card { margin: 0 0 14px; }
.r-content .nextup-card { margin: 0 0 12px; }
.r-content .reported-card { margin: 0 0 10px; }
.r-content .tagline { margin: 10px 0 4px; }

/* Drawer fixed in responsive context */
.r-app .drawer-overlay { position: fixed; z-index: 200; }

/* ── Confirm hero responsive ─────────────────── */
.r-content .confirm-hero {
  padding: 44px 20px 28px; text-align: center; position: relative;
}
.confirm-halo {
  position: relative; width: 110px; height: 110px;
  margin: 0 auto 22px;
}
.confirm-halo::before, .confirm-halo::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--c-red) 22%, transparent);
  animation: haloPulse 2.4s cubic-bezier(.4,0,.4,1) infinite;
}
.confirm-halo::after { animation-delay: 1.1s; }
@keyframes haloPulse {
  0% { transform: scale(.55); opacity: 0; }
  25% { opacity: .9; }
  100% { transform: scale(1.25); opacity: 0; }
}
.r-content .confirm-check {
  position: absolute; top: 50%; left: 50%;
  width: 72px; height: 72px; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%,
    color-mix(in srgb, var(--c-red) 14%, #fff) 0%,
    color-mix(in srgb, var(--c-red) 6%, #fff) 55%, #fff 100%);
  border: 1.5px solid color-mix(in srgb, var(--c-red) 22%, transparent);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--c-red) 18%, transparent) inset,
    0 8px 24px -10px color-mix(in srgb, var(--c-red) 30%, transparent);
  color: var(--c-red); z-index: 1;
  display: flex; align-items: center; justify-content: center;
  transform: translate(-50%, -50%);
  animation: checkIn 700ms cubic-bezier(.2,.9,.2,1) both;
  margin: 0 !important;
}
@keyframes checkIn {
  0% { transform: translate(-50%, -50%) scale(.7); opacity: 0; }
  60% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
.confirm-check-svg { width: 30px; height: 30px; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.confirm-check-svg path { stroke-dasharray: 28; stroke-dashoffset: 28; animation: drawCheck 520ms cubic-bezier(.4,0,.3,1) 400ms forwards; }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
.confirm-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 1.4px;
  color: var(--c-red); text-transform: uppercase; margin-bottom: 10px;
  opacity: 0; animation: fadeUp .5s ease-out 600ms forwards;
}
.r-content .confirm-title {
  font-size: 26px; font-weight: 700; color: var(--ink-1);
  letter-spacing: -.6px; margin: 0 auto 12px;
  text-wrap: balance; max-width: 22ch; line-height: 1.2;
  opacity: 0; animation: fadeUp .5s ease-out 700ms forwards;
}
.r-content .confirm-sub {
  font-size: 14.5px; color: var(--ink-2); line-height: 1.55;
  letter-spacing: -.1px; max-width: 38ch; margin: 0 auto;
  text-wrap: pretty; opacity: 0; animation: fadeUp .5s ease-out 820ms forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (min-width: 1024px) {
  .r-content .confirm-hero {
    background: radial-gradient(ellipse 380px 220px at 50% 32%,
      color-mix(in srgb, var(--c-red) 8%, transparent) 0%, transparent 70%);
    border-radius: 12px; padding: 52px 24px 36px;
  }
}

/* ── Component styles ────────────────────────── */
.nav {
  background: color-mix(in srgb, var(--bg-app) 80%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: .5px solid var(--ink-5);
  padding: 0 20px; height: 52px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50; flex-shrink: 0;
}
.nav-brand { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.nav-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--c-red);
  animation: brandping 2.6s ease-out infinite;
}
.nav-title { font-size: 16px; font-weight: 700; color: var(--ink-1); letter-spacing: -.3px; }
.nav-link {
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 3px;
  color: var(--c-red); font-size: 14px; font-weight: 500;
  font-family: inherit; padding: 6px 0; letter-spacing: -.1px;
}
.nav-link:hover { opacity: .8; }

.partner {
  background: var(--bg-card); padding: 10px 20px;
  display: flex; align-items: center; justify-content: center;
  border-bottom: .5px solid var(--ink-5);
}

.stepper { padding: 16px 20px 14px; background: var(--bg-card); border-bottom: .5px solid var(--ink-5); }
.stepper-meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.stepper-meta-l { font-size: 11px; font-weight: 600; letter-spacing: .6px; color: var(--ink-3); text-transform: uppercase; }
.stepper-meta-r { font-size: 13px; font-weight: 600; color: var(--c-red); letter-spacing: -.1px; }
.seg-track { display: flex; gap: 6px; }
.seg-bar { flex: 1; height: 4px; border-radius: 2px; background: var(--fill-2); overflow: hidden; position: relative; }
.seg-bar-fill { position: absolute; inset: 0; background: var(--c-red); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform var(--d-slow) var(--ease-out); }
.seg-bar-fill.done { transform: scaleX(1); }
.seg-bar-fill.active { transform: scaleX(1); opacity: .55; }

.content { padding: 22px 20px 32px; }
.title-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--c-red); text-transform: uppercase; margin-bottom: 6px; }
.title { font-size: 26px; font-weight: 700; color: var(--ink-1); line-height: 1.15; letter-spacing: -.6px; margin-bottom: 6px; text-wrap: balance; }
.subtitle { font-size: 15px; color: var(--ink-2); line-height: 1.5; margin-bottom: 22px; letter-spacing: -.1px; text-wrap: pretty; }

.type-card {
  background: var(--bg-card); border-radius: var(--r-md);
  padding: 16px; cursor: pointer;
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 10px; box-shadow: var(--sh-1);
  transition: transform var(--d-fast) var(--ease-spring), box-shadow var(--d-fast);
  position: relative; border: 1.5px solid transparent;
}
.type-card:hover { box-shadow: var(--sh-2); }
.type-card:active { transform: scale(.985); }
.type-card.is-selected { border-color: var(--c-red); box-shadow: 0 0 0 3px var(--c-red-soft), var(--sh-2); }
.type-card-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--fill-3); display: flex; align-items: center; justify-content: center; color: var(--c-red); flex-shrink: 0; transition: background var(--d-fast); }
.type-card.is-selected .type-card-icon { background: var(--c-red-soft); }
.type-card-text { flex: 1; min-width: 0; }
.type-card-label { font-size: 15px; font-weight: 600; color: var(--ink-1); letter-spacing: -.15px; margin-bottom: 2px; text-wrap: balance; }
.type-card-sub { font-size: 13px; color: var(--ink-2); line-height: 1.4; letter-spacing: -.05px; }
.type-card-chevron { color: var(--ink-4); flex-shrink: 0; align-self: center; transition: transform var(--d-fast); }
.type-card:hover .type-card-chevron { transform: translateX(2px); color: var(--c-red); }

.privacy {
  background: var(--c-red-softer); border: 1px solid var(--c-red-soft);
  border-radius: var(--r-md); padding: 14px 16px;
  margin-top: 18px; margin-bottom: 16px;
  display: flex; gap: 12px; align-items: flex-start;
}
.privacy-icon { width: 32px; height: 32px; border-radius: 9px; background: var(--c-red-soft); color: var(--c-red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.privacy-body { flex: 1; }
.privacy-title { font-size: 13px; font-weight: 700; color: var(--c-red); margin-bottom: 6px; letter-spacing: -.1px; }
.privacy-list { font-size: 12px; color: var(--ink-2); line-height: 1.55; list-style: none; }
.privacy-list li { padding-left: 14px; position: relative; }
.privacy-list li::before { content:'·'; position: absolute; left: 4px; font-weight: 700; color: var(--c-red); }

.btn {
  width: 100%; padding: 15px 18px;
  background: var(--c-red); color: #fff; border: none;
  border-radius: var(--r-sm); font-size: 16px; font-weight: 600;
  cursor: pointer; letter-spacing: -.15px; font-family: inherit;
  transition: background var(--d-fast), transform var(--d-fast) var(--ease-spring), opacity var(--d-fast);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 1px 2px rgba(200,16,46,.18);
  white-space: nowrap;
}
.btn:disabled { opacity: .3; cursor: not-allowed; box-shadow: none; }
.btn:not(:disabled):hover { background: var(--c-red-ink); }
.btn:not(:disabled):active { transform: scale(.98); }

.btn-ghost {
  width: 100%; padding: 13px; background: transparent; color: var(--c-red);
  border: none; border-radius: var(--r-sm); font-size: 15px; font-weight: 500;
  cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background var(--d-fast);
}
.btn-ghost:hover { background: var(--c-red-softer); }

.btn-secondary {
  padding: 13px 20px; background: var(--fill-3); color: var(--ink-1);
  border: none; border-radius: var(--r-sm); font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: background var(--d-fast), transform var(--d-fast) var(--ease-spring);
  display: flex; align-items: center; gap: 6px; letter-spacing: -.1px;
}
.btn-secondary:hover { background: var(--fill-2); }
.btn-secondary:active { transform: scale(.98); }

.url-group {
  background: var(--bg-card); border-radius: var(--r-md); overflow: hidden;
  margin-bottom: 10px; box-shadow: var(--sh-1); transition: box-shadow var(--d-fast);
}
.url-group:focus-within { box-shadow: 0 0 0 3px var(--c-red-soft), var(--sh-1); }
.url-row {
  display: flex; align-items: center;
  padding: 0 14px; height: 54px; position: relative; gap: 12px;
}
.url-row:not(:last-child)::after {
  content: ''; position: absolute; bottom: 0; left: 46px; right: 0;
  height: .5px; background: var(--sep);
}
.url-icon { color: var(--c-red); flex-shrink: 0; display: flex; align-items: center; }
.url-input {
  flex: 1; border: none; outline: none; font-size: 15px; color: var(--ink-1);
  background: transparent; font-family: inherit; height: 100%;
  letter-spacing: -.1px; min-width: 0;
}
.url-input::placeholder { color: var(--ink-4); }
.url-valid-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--c-green); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; }
.url-clear { width: 20px; height: 20px; border-radius: 50%; background: var(--fill-1); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; font-family: inherit; }
.url-clear:hover { background: var(--ink-3); }
.url-add { background: none; border: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 12px 4px; font-family: inherit; color: var(--c-red); font-size: 14px; font-weight: 600; letter-spacing: -.1px; }
.url-add:hover { opacity: .8; }
.no-url-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; margin: 8px 0 6px; cursor: pointer; background: var(--bg-card); border-radius: var(--r-md); box-shadow: var(--sh-1); border: none; width: 100%; font-family: inherit; transition: box-shadow var(--d-fast); }
.no-url-toggle:hover { box-shadow: var(--sh-2); }
.no-url-toggle-text { font-size: 13.5px; color: var(--ink-2); text-align: left; }
.no-url-toggle input[type=checkbox] { display: none; }
.no-url-switch { width: 38px; height: 22px; border-radius: 11px; background: var(--fill-1); flex-shrink: 0; position: relative; transition: background .2s; }
.no-url-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.no-url-toggle.is-active .no-url-switch { background: var(--c-red); }
.no-url-toggle.is-active .no-url-switch::after { transform: translateX(16px); }
.no-url-desc-wrap { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.no-url-desc-label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.no-url-desc-label .required { color: var(--c-red); margin-left: 2px; }
.no-url-desc { width: 100%; padding: 12px 14px; border-radius: var(--r-md); border: 1.5px solid var(--sep); background: var(--bg-card); font-family: inherit; font-size: 14px; color: var(--ink-1); resize: vertical; min-height: 96px; box-sizing: border-box; transition: border-color .15s; }
.no-url-desc:focus { outline: none; border-color: var(--c-red); }
.no-url-hint { font-size: 12px; color: var(--ink-4); }
.img-upload-label { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-top: 4px; }
.img-upload-opt { font-weight: 400; color: var(--ink-4); }
.img-dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px 16px; border: 1.5px dashed var(--sep); border-radius: var(--r-md); cursor: pointer; color: var(--ink-3); font-size: 13px; text-align: center; transition: border-color .15s, background .15s; }
.img-dropzone:hover { border-color: var(--c-red); background: var(--c-red-soft); color: var(--ink-2); }
.img-dropzone u { color: var(--c-red); }
.img-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.img-thumb { position: relative; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; border: 1.5px solid var(--sep); flex-shrink: 0; }
.img-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-thumb-del { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: rgba(0,0,0,.55); border: none; cursor: pointer; color: #fff; display: flex; align-items: center; justify-content: center; }
.reported-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.reported-img-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid var(--sep); cursor: pointer; }
.reported-img-thumb:hover { opacity: .85; }

.help-tile {
  width: 100%; background: var(--bg-card); border: none; border-radius: var(--r-md);
  padding: 14px 16px; margin: 8px 0 18px; cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  font-family: inherit; text-align: left; box-shadow: var(--sh-1);
  transition: box-shadow var(--d-fast), transform var(--d-fast);
}
.help-tile:hover { box-shadow: var(--sh-2); transform: translateY(-1px); }
.help-tile-icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(229,149,0,.12); color: var(--c-amber); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.help-tile-text { flex: 1; min-width: 0; }
.help-tile-title { font-size: 14px; font-weight: 600; color: var(--ink-1); letter-spacing: -.1px; }
.help-tile-sub { font-size: 12px; color: var(--ink-3); margin-top: 1px; }

.nav-row {
  display: flex; gap: 10px; margin-top: 20px;
  /* barra d'acció fixa a baix (eina 80% mòbil): el botó principal sempre visible */
  position: sticky; bottom: 0; z-index: 20;
  background: var(--bg-card);
  padding: 12px 0 4px;
  box-shadow: 0 -14px 18px -14px rgba(0,0,0,.20);
}
.nav-row .btn { flex: 1; }

.drawer-overlay {
  inset: 0; background: rgba(0,0,0,.38);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  z-index: 200; display: flex; align-items: flex-end;
  animation: overlayIn 200ms var(--ease-out);
}
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
.drawer {
  background: var(--bg-app); border-radius: 24px 24px 0 0;
  width: 100%; max-width: 640px; margin: 0 auto;
  max-height: 90vh; overflow-y: auto; overflow-x: hidden;
  padding-bottom: 14px; box-shadow: var(--sh-3);
  animation: drawerIn 360ms var(--ease-out);
}
.drawer::-webkit-scrollbar { display: none; }
@keyframes drawerIn { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes modalIn { from { opacity:0; transform: scale(.96) translateY(6px); } to { opacity:1; transform: scale(1) translateY(0); } }
.drawer-handle-bar { display: flex; justify-content: center; padding: 10px 0 4px; }
.drawer-handle { width: 36px; height: 4px; background: var(--fill-1); border-radius: 2px; }
@media (min-width: 720px) {
  .drawer-overlay { align-items: center; justify-content: center; padding: 24px; }
  .drawer {
    border-radius: 20px; max-width: 560px; width: 100%;
    margin: 0; max-height: 82vh;
    animation: modalIn 280ms var(--ease-out);
  }
  .drawer-handle-bar { display: none; }
}
.drawer-header { padding: 8px 20px 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: .5px solid var(--sep); }
.drawer-title { font-size: 17px; font-weight: 700; color: var(--ink-1); letter-spacing: -.25px; }
.drawer-close { width: 30px; height: 30px; border-radius: 50%; background: var(--fill-2); border: none; cursor: pointer; color: var(--ink-2); display: flex; align-items: center; justify-content: center; font-family: inherit; }
.drawer-close:hover { background: var(--fill-1); }

.platform-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 20px 4px; }
.platform-chip { border: 1.5px solid var(--sep); border-radius: 20px; padding: 6px 11px; background: var(--bg-card); cursor: pointer; font-size: 12px; font-weight: 600; color: var(--ink-1); display: flex; align-items: center; gap: 5px; font-family: inherit; transition: all var(--d-fast); letter-spacing: -.1px; white-space: nowrap; }
.platform-chip:hover { background: var(--bg-subtle); }
.platform-chip.is-active { color: #fff; border-color: transparent; }
.platform-icon { width: 18px; height: 18px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; flex-shrink: 0; }
.plat-body { padding: 0 20px; }
.plat-steps { background: var(--bg-card); border-radius: var(--r-md); padding: 8px 16px; margin-bottom: 10px; box-shadow: var(--sh-1); }
.plat-step { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: .5px solid var(--sep); }
.plat-step:last-child { border-bottom: none; }
.plat-step-num { width: 24px; height: 24px; border-radius: 50%; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; }
.plat-step-text { font-size: 14px; color: var(--ink-1); line-height: 1.5; padding-top: 2px; letter-spacing: -.1px; }
.plat-example { background: var(--bg-card); border-radius: var(--r-sm); padding: 12px 14px; box-shadow: var(--sh-1); }
.plat-example-l { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--ink-3); letter-spacing: .6px; margin-bottom: 5px; }
.plat-example-u { font-size: 12px; color: var(--ink-1); font-family: 'JetBrains Mono','SF Mono','Menlo',monospace; word-break: break-all; line-height: 1.5; }
.warn { background: rgba(229,149,0,.12); border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 10px; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #7a4f00; line-height: 1.5; }

.confirm-hero { padding: 36px 20px 20px; text-align: center; }
.confirm-check { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--bg-card); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-green) 15%, transparent), var(--sh-2); margin-bottom: 18px; color: var(--c-green); animation: popIn 520ms var(--ease-spring); }
@keyframes popIn { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.confirm-title { font-size: 24px; font-weight: 700; color: var(--ink-1); letter-spacing: -.5px; margin-bottom: 8px; text-wrap: balance; }
.confirm-sub { font-size: 15px; color: var(--ink-2); line-height: 1.5; letter-spacing: -.1px; max-width: 32ch; margin: 0 auto; text-wrap: pretty; }

.code-card { background: var(--bg-card); border-radius: var(--r-md); padding: 20px 18px; margin: 8px 20px 12px; box-shadow: var(--sh-1); text-align: center; position: relative; overflow: hidden; }
.code-card::before { content:''; position: absolute; inset: 0; background: radial-gradient(400px 100px at 50% 0%, var(--c-red-soft), transparent); pointer-events: none; }
.code-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--ink-3); margin-bottom: 10px; }
.code-value { font-family: 'JetBrains Mono', 'SF Mono', monospace; font-size: 30px; font-weight: 700; color: var(--c-red); letter-spacing: 6px; margin-bottom: 10px; }
.code-copy { display: inline-flex; align-items: center; gap: 6px; background: var(--c-red-soft); color: var(--c-red); border: none; border-radius: 20px; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all var(--d-fast); }
.code-copy:hover { background: color-mix(in srgb, var(--c-red-soft) 60%, var(--c-red) 15%); }
.code-copy.copied { background: color-mix(in srgb, var(--c-green) 15%, transparent); color: var(--c-green); }
.code-hint { font-size: 12px; color: var(--ink-3); margin-top: 12px; line-height: 1.4; }
.code-date { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 12px; background: color-mix(in srgb, var(--ink-1) 4%, transparent); border-radius: 20px; font-size: 12px; color: var(--ink-2); font-weight: 500; letter-spacing: -.05px; font-variant-numeric: tabular-nums; }
.code-date svg { opacity: .6; }

.track-cta { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px 20px 16px; padding: 14px; background: var(--c-red-soft); color: var(--c-red); border: none; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background var(--d-fast); }
.track-cta:hover { background: color-mix(in srgb, var(--c-red-soft) 60%, var(--c-red) 15%); }

.support-card { background: var(--bg-card); border-radius: var(--r-md); padding: 18px 18px 14px; margin: 0 20px 14px; box-shadow: var(--sh-1); }
.support-title { font-size: 15px; font-weight: 700; color: var(--ink-1); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; letter-spacing: -.15px; }
.support-heart { width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--c-red) 12%, transparent); display: flex; align-items: center; justify-content: center; color: var(--c-red); flex-shrink: 0; }
.support-lede { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; margin: 2px 0 14px; letter-spacing: -.05px; }
.entity-list { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
.entity-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; text-decoration: none; color: inherit; border-top: .5px solid var(--sep); transition: background .15s; }
.entity-row:first-child { border-top: none; }
.entity-row:hover { background: color-mix(in srgb, var(--fill-3) 50%, transparent); }
.entity-row-icon { width: 100px; height: 100px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.entity-icon--phone  { background: transparent; color: #0a8a3a; }
.entity-icon--bubble { background: transparent; color: #3f3dbf; }
.entity-icon--shield { background: transparent; color: var(--c-red); }
.entity-icon--school { background: transparent; color: #b35d00; }
.entity-row-body { flex: 1; min-width: 0; }
.entity-row-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.entity-row-name { font-size: 14px; font-weight: 600; color: var(--ink-1); letter-spacing: -.2px; }
.entity-row-tag { font-size: 11px; color: var(--ink-3); font-weight: 500; }
.entity-row-ref { font-size: 12.5px; color: var(--c-red); font-weight: 600; margin-top: 2px; letter-spacing: -.1px; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entity-row-chev { color: var(--ink-4); flex-shrink: 0; }

.nextup-card { background: var(--bg-card); border-radius: var(--r-md); margin: 0 20px 12px; padding: 16px 18px 14px; }
.nextup-title { font-size: 14px; font-weight: 700; color: var(--ink-1); letter-spacing: -.2px; margin-bottom: 14px; }
.nextup-rail { position: relative; padding-left: 4px; }
.nextup-rail::before { content: ''; position: absolute; left: 15px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(to bottom, var(--c-red) 0%, var(--c-red) 40%, color-mix(in srgb, var(--c-red) 30%, transparent) 70%, var(--sep) 100%); border-radius: 2px; }
.nextup-step { position: relative; display: flex; gap: 14px; padding-bottom: 16px; }
.nextup-step:last-child { padding-bottom: 0; }
.nextup-dot { position: relative; z-index: 1; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-card); border: 2px solid var(--sep); display: grid; place-items: center; flex-shrink: 0; color: var(--ink-3); }
.nextup-step.is-done .nextup-dot { background: var(--c-red); border-color: var(--c-red); color: #fff; }
.nextup-step.is-active .nextup-dot { background: var(--bg-card); border-color: var(--c-red); }
.nextup-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--c-red); box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-red) 50%, transparent); animation: nextupPulse 1.6s ease-out infinite; }
@keyframes nextupPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-red) 55%, transparent); } 100% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--c-red) 0%, transparent); } }
.nextup-body { flex: 1; min-width: 0; padding-top: 2px; }
.nextup-name { font-size: 13.5px; font-weight: 700; color: var(--ink-1); letter-spacing: -.15px; display: inline-flex; align-items: center; gap: 8px; }
.nextup-when { display: inline-block; font-size: 10.5px; font-weight: 600; color: var(--c-red); background: color-mix(in srgb, var(--c-red) 10%, transparent); padding: 2px 7px; border-radius: 8px; margin-left: 8px; letter-spacing: -.05px; vertical-align: baseline; }
.nextup-step:not(.is-done):not(.is-active) .nextup-when { color: var(--ink-3); background: var(--fill-3); }
.nextup-desc { font-size: 11.5px; color: var(--ink-2); line-height: 1.5; margin-top: 4px; letter-spacing: -.05px; }
.nextup-url { font-family: 'JetBrains Mono','SF Mono',monospace; font-size: 10.5px; color: var(--c-red); background: color-mix(in srgb, var(--c-red) 6%, transparent); padding: 1px 5px; border-radius: 4px; word-break: break-all; }
.nextup-foot { font-size: 10.5px; color: var(--ink-3); line-height: 1.5; padding-top: 10px; border-top: .5px dashed var(--sep); letter-spacing: -.05px; }

.reported-card { background: var(--bg-card); border-radius: var(--r-md); margin: 0 20px 10px; padding: 14px 16px 12px; }
.reported-title { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); font-weight: 600; letter-spacing: -.1px; padding-bottom: 8px; border-bottom: .5px solid var(--sep); margin-bottom: 8px; }
.reported-title svg { color: var(--ink-3); }
.reported-list { display: flex; flex-direction: column; gap: 6px; }
.reported-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 11.5px; color: var(--ink-1); min-width: 0; }
.reported-idx { flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--c-red) 12%, transparent); color: var(--c-red); font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.reported-url { font-family: 'JetBrains Mono','SF Mono',monospace; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; color: var(--ink-2); }
.reported-desc-text { font-size: 13px; color: var(--ink-2); line-height: 1.55; padding: 4px 0 2px; white-space: pre-wrap; }

.tagline { margin: 10px 20px 28px; text-align: center; padding: 16px; border-top: .5px solid var(--sep); }
.tagline p { font-size: 13px; color: var(--ink-3); line-height: 1.55; text-wrap: balance; }
.tagline strong { color: var(--ink-1); font-weight: 600; }

.back-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; color: var(--c-red); font-size: 15px; font-weight: 500; cursor: pointer; padding: 4px 0 16px; font-family: inherit; letter-spacing: -.1px; }
.back-btn:hover { opacity: .75; }
.track-input-wrap { background: var(--bg-card); border-radius: var(--r-md); box-shadow: var(--sh-1); overflow: hidden; transition: box-shadow var(--d-fast); margin-bottom: 10px; }
.track-input-wrap:focus-within { box-shadow: 0 0 0 3px var(--c-red-soft), var(--sh-1); }
.track-input { width: 100%; padding: 22px 18px; border: none; outline: none; background: transparent; font-family: 'JetBrains Mono', 'SF Mono', monospace; font-size: 28px; font-weight: 700; color: var(--ink-1); letter-spacing: 8px; text-transform: uppercase; text-align: center; }
.track-input::placeholder { color: var(--ink-4); letter-spacing: 6px; }
.track-error { font-size: 13px; color: var(--c-red); font-weight: 500; text-align: center; padding: 4px 0 10px; display: flex; align-items: center; justify-content: center; gap: 4px; }

.status-sheet { background: var(--bg-app); border-radius: 24px 24px 0 0; width: 100%; max-width: 640px; margin: 0 auto; padding-bottom: 28px; box-shadow: var(--sh-3); animation: drawerIn 360ms var(--ease-out); }
.status-body { padding: 14px 20px 0; }
.status-current { background: var(--bg-card); border-radius: var(--r-sm); padding: 14px 16px; margin-bottom: 12px; box-shadow: var(--sh-1); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.status-current-l { font-size: 11px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 2px; }
.status-current-v { font-size: 16px; font-weight: 700; color: var(--c-red); letter-spacing: -.15px; display: flex; align-items: center; gap: 6px; }
.status-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--c-amber); animation: pulsepoint 1.6s ease-in-out infinite; }
@keyframes pulsepoint { 0%,100% { opacity: .3; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }
.status-eta { font-size: 11px; color: var(--ink-3); text-align: right; }
.status-eta strong { color: var(--ink-1); font-weight: 600; display: block; margin-top: 2px; }
.status-list { position: relative; padding-left: 14px; }
.status-list::before { content: ''; position: absolute; left: 24px; top: 12px; bottom: 12px; width: 2px; background: var(--fill-2); }
.status-row { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px 12px 0; position: relative; background: var(--bg-card); border-radius: var(--r-sm); margin: 0 -14px 8px 8px; box-shadow: var(--sh-1); }
.status-row-pad { padding: 14px 16px; flex: 1; min-width: 0; }
.status-dot { position: absolute; left: -14px; top: 18px; width: 24px; height: 24px; border-radius: 50%; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--bg-card); border: 2px solid var(--fill-1); color: var(--ink-3); }
.status-dot.is-done { background: var(--c-red); border-color: var(--c-red); color: #fff; }
.status-dot.is-active { background: var(--bg-card); border-color: var(--c-red); color: var(--c-red); box-shadow: 0 0 0 4px var(--c-red-soft); }
.status-step-label { font-size: 15px; font-weight: 600; color: var(--ink-1); letter-spacing: -.1px; }
.status-step-desc { font-size: 12px; color: var(--ink-2); margin-top: 3px; line-height: 1.5; }
.status-step-time { font-size: 11px; color: var(--ink-3); margin-top: 4px; font-variant-numeric: tabular-nums; }

/* ── Login ───────────────────────────────────── */
.login {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 100vh; padding: 28px 28px 48px;
  background:
    radial-gradient(1200px 420px at 50% -120px, color-mix(in srgb, var(--c-red) 8%, transparent) 0%, transparent 70%),
    var(--bg-app);
}
.login-inner { display: flex; flex-direction: column; gap: 22px; align-items: stretch; }
.login-brand { text-align: center; margin-top: 8px; }
.login-brand-sub { margin-top: 10px; font-size: 14px; color: var(--ink-2); letter-spacing: -.15px; font-weight: 500; }
.login-partners { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 14px 0; }
.login-partners img { height: 40px; width: auto; object-fit: contain; max-width: 140px; }
.login-partners-sep { width: 1px; height: 32px; background: var(--sep); flex-shrink: 0; }
.login-form { display: flex; flex-direction: column; gap: 10px; }
.login-label { text-align: center; font-size: 13px; color: var(--ink-2); font-weight: 500; letter-spacing: -.1px; margin-bottom: 2px; }
.login-field { position: relative; background: var(--bg-card); border-radius: 12px; border: 1.5px solid var(--sep); transition: border-color .15s, box-shadow .15s; overflow: hidden; }
.login-field:focus-within { border-color: var(--c-red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-red) 14%, transparent); }
.login-field.is-shake { animation: loginShake 420ms var(--ease-out); border-color: var(--c-red); }
@keyframes loginShake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.login-input { width: 100%; border: none; background: transparent; padding: 14px 44px 14px 16px; font-size: 15px; font-weight: 500; color: var(--ink-1); letter-spacing: -.2px; font-family: inherit; outline: none; }
.login-input::placeholder { color: var(--ink-4); }
.login-field-icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.login-cta { margin-top: 6px; background: var(--c-red); color: #fff; border: none; border-radius: var(--r-sm); padding: 15px 18px; font-size: 16px; font-weight: 600; letter-spacing: -.15px; cursor: pointer; font-family: inherit; transition: background var(--d-fast), transform var(--d-fast) var(--ease-spring), opacity var(--d-fast); display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 1px 2px rgba(200,16,46,.18); }
.login-cta:hover { background: var(--c-red-ink); }
.login-cta:active { transform: scale(.98); }
.login-cta:disabled { opacity: .7; cursor: default; }
.login-spin { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: loginSpin .8s linear infinite; }
@keyframes loginSpin { to { transform: rotate(360deg); } }
.login-foot { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 10.5px; color: var(--ink-3); letter-spacing: -.05px; }
.login-foot-dot { width: 6px; height: 6px; border-radius: 50%; background: #34C759; box-shadow: 0 0 0 3px color-mix(in srgb, #34C759 25%, transparent); }

/* ── Footer ──────────────────────────────────── */
.r-footer {
  background: transparent;
  padding: 14px 20px 20px;
}
.r-footer-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.r-footer-copy {
  font-size: 11px; color: var(--ink-4); letter-spacing: -.05px;
}
.r-footer-links {
  display: flex; align-items: center; gap: 16px;
}
.r-footer-link {
  background: none; border: none; cursor: pointer;
  font-size: 11px; color: var(--ink-4); font-family: inherit;
  padding: 0; letter-spacing: -.05px;
  transition: color .15s;
}
.r-footer-link:hover { color: var(--c-red); }

/* ── Legal modal ─────────────────────────────── */
.legal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.45);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; align-items: flex-end;
  animation: overlayIn 200ms var(--ease-out);
}
@media (min-width: 720px) {
  .legal-overlay { align-items: center; justify-content: center; padding: 24px; }
}
.legal-sheet {
  background: var(--bg-card);
  border-radius: 24px 24px 0 0;
  width: 100%; max-height: 92vh;
  overflow-y: auto; overflow-x: hidden;
  animation: drawerIn 360ms var(--ease-out);
}
@media (min-width: 720px) {
  .legal-sheet {
    border-radius: 20px;
    max-width: 680px; max-height: 85vh;
    animation: none;
  }
}
.legal-sheet::-webkit-scrollbar { display: none; }
.legal-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg-card);
  border-bottom: 1px solid var(--sep);
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.legal-header-title {
  font-size: 16px; font-weight: 700; color: var(--ink-1); letter-spacing: -.3px;
}
.legal-close {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--fill-2); border: none; cursor: pointer;
  color: var(--ink-2); display: flex; align-items: center; justify-content: center;
  font-family: inherit; flex-shrink: 0;
}
.legal-close:hover { background: var(--fill-1); }
.legal-body {
  padding: 24px 24px 40px;
  font-size: 13.5px; color: var(--ink-2); line-height: 1.7;
}
.legal-body h2 {
  font-size: 14px; font-weight: 700; color: var(--ink-1);
  margin: 24px 0 8px; letter-spacing: -.2px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin-bottom: 10px; }
.legal-body ul { padding-left: 18px; margin-bottom: 10px; }
.legal-body ul li { margin-bottom: 4px; }
.legal-placeholder {
  display: inline-block;
  background: color-mix(in srgb, var(--c-red) 12%, transparent);
  color: var(--c-red); font-weight: 600; font-size: 12px;
  padding: 1px 6px; border-radius: 4px;
  letter-spacing: -.05px;
}

/* ══════════════════════════════════════════════════════════
   V3 — Revisió XARXANETA (canvis independents A + B + edat)
   ══════════════════════════════════════════════════════════ */

/* B8 · Exemples de què es pot reportar (Step 1) */
.type-card-examples { margin: 7px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 3px; }
.type-ex-item { position: relative; padding-left: 14px; font-size: 12px; line-height: 1.35; color: var(--ink-3); letter-spacing: -.1px; }
.type-ex-item::before {
  content: ''; position: absolute; left: 3px; top: 7px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--c-red); opacity: .55;
}

/* A2 · Avís "necessites ajuda?" i comentari opcional (Step 2) */
.help-prompt { font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 18px 0 8px; letter-spacing: -.1px; }
.comment-block { margin-top: 18px; }
.comment-label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-1); margin-bottom: 8px; }
.comment-opt { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.comment-input {
  width: 100%; padding: 12px 14px; border-radius: var(--r-md);
  border: 1.5px solid var(--sep); background: var(--bg-card);
  font-family: inherit; font-size: 14px; color: var(--ink-1);
  resize: vertical; min-height: 76px; box-sizing: border-box; transition: border-color .15s;
}
.comment-input:focus { outline: none; border-color: var(--c-red); }

/* A3 · Obrir plataforma directament (drawer, Step 2) */
.plat-open {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 14px; padding: 12px 16px; border-radius: var(--r-md);
  font-size: 14px; font-weight: 700; text-decoration: none;
  box-shadow: var(--sh-1); transition: transform .12s, filter .12s;
}
.plat-open:hover { filter: brightness(.95); transform: translateY(-1px); }

/* A4 · Codi de cas més gran (Step 3) */
.code-label { font-size: 13.5px; }
.code-value { font-size: 34px; }

/* B7 · Aclariment entitats de suport (Step 4) */
.support-clarify { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; margin: 0 0 14px; font-weight: 600; }
.entity-row-reftype {
  display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .4px; color: var(--ink-3); background: var(--fill-3);
  border-radius: 4px; padding: 1px 5px; margin-right: 6px; vertical-align: middle;
}

/* A5 · Text del resultat més gran (StatusSheet, pantalla 6) */
.status-step-label { font-size: 16px; }
.status-current-v { font-size: 16px; }

/* A6 · Animació check marks vermell → verd (pantalles 4/6) */
.r-content .confirm-check {
  animation: checkIn 700ms cubic-bezier(.2,.9,.2,1) both,
             checkRedGreen 720ms ease 900ms both;
}
@keyframes checkRedGreen {
  0%   { color: var(--c-red);
         border-color: color-mix(in srgb, var(--c-red) 22%, transparent);
         box-shadow: 0 1px 0 color-mix(in srgb, var(--c-red) 18%, transparent) inset,
                     0 8px 24px -10px color-mix(in srgb, var(--c-red) 30%, transparent); }
  100% { color: var(--c-green);
         border-color: color-mix(in srgb, var(--c-green) 30%, transparent);
         box-shadow: 0 1px 0 color-mix(in srgb, var(--c-green) 20%, transparent) inset,
                     0 8px 24px -10px color-mix(in srgb, var(--c-green) 34%, transparent); }
}
.status-dot.is-done { animation: dotRedGreen 640ms ease 250ms both; }
@keyframes dotRedGreen {
  0%   { background: var(--c-red);   border-color: var(--c-red);   color: #fff; }
  100% { background: var(--c-green); border-color: var(--c-green); color: #fff; }
}
/* Dot "fet" de la llista "Què passarà a continuació" (Step 3) → verd */
.nextup-step.is-done .nextup-dot {
  background: var(--c-green); border-color: var(--c-green); color: #fff;
  animation: dotRedGreen 640ms ease 250ms both;
}

/* B9 · Pantalla 7 — Agraïment / Tolerància 0 */
.gratitude-hero { text-align: center; padding: 8px 0 4px; }
.gratitude-heart {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--c-red-soft); color: var(--c-red);
  margin-bottom: 16px; animation: popIn 520ms var(--ease-spring);
}
.gratitude-title { font-size: 26px; font-weight: 700; color: var(--ink-1); line-height: 1.15; letter-spacing: -.6px; margin: 4px 0 8px; text-wrap: balance; }
.gratitude-sub { font-size: 14px; color: var(--ink-2); line-height: 1.55; max-width: 40ch; margin: 0 auto; }
.tolerance-card {
  margin: 22px 0; padding: 20px; border-radius: var(--r-lg, 16px);
  background: var(--bg-subtle); border: 1px solid var(--sep); text-align: center;
}
.tolerance-badge {
  display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1px; color: #fff; background: var(--c-red);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 12px;
}
.tolerance-text { font-size: 14px; color: var(--ink-1); line-height: 1.6; margin: 0; }

/* ══════════════════════════════════════════════════════════
   V4 — Ajudant Xarxaneta estil "Clippy" (avatar PROVISIONAL)
   ══════════════════════════════════════════════════════════ */
.enx-assistant {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  pointer-events: none;
}
.enx-assistant > * { pointer-events: auto; }

.enx-avatar-btn {
  border: none; background: transparent; padding: 0; cursor: pointer;
  line-height: 0; animation: enxBob 3.2s ease-in-out infinite;
  transition: transform .15s;
}
.enx-avatar-btn:hover { transform: scale(1.06); }
.enx { filter: drop-shadow(0 6px 14px rgba(0,0,0,.22)); display: block; }
@keyframes enxBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* braç: repòs (només es mou en els gestos wave/celebrate) */
.enx-arm { transform-origin: 72px 60px; }
/* parpelleig sempre actiu */
.enx-eyes { transform-origin: 50px 39px; animation: enxBlink 5.5s ease-in-out infinite; }
@keyframes enxBlink { 0%, 92%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }

/* bombolla de diàleg */
.enx-bubble {
  position: relative; max-width: 258px;
  background: var(--bg-card, #fff); color: var(--ink-1);
  border: 1px solid var(--sep); border-radius: 16px;
  padding: 12px 14px 13px; box-shadow: 0 12px 30px -12px rgba(0,0,0,.30);
  animation: enxPop 260ms cubic-bezier(.2,.9,.3,1) both;
}
.enx-bubble::after {
  content: ''; position: absolute; right: 26px; bottom: -8px;
  width: 16px; height: 16px; background: var(--bg-card, #fff);
  border-right: 1px solid var(--sep); border-bottom: 1px solid var(--sep);
  transform: rotate(45deg);
}
@keyframes enxPop { 0% { opacity: 0; transform: translateY(10px) scale(.9); } 60% { transform: translateY(-2px) scale(1.03); } 100% { opacity: 1; transform: translateY(0) scale(1); } }

/* ── Gestos de l'enxaneta ─────────────────────────────── */
.enx-stage { display: inline-block; line-height: 0; transform-origin: 50% 100%; }
.enx-head { transform-box: fill-box; transform-origin: 50% 92%; }

/* moviments de cos sencer */
.enx-stage.move-hop      { animation: enxHop 720ms cubic-bezier(.3,1.5,.4,1); }
.enx-stage.move-wiggle   { animation: enxWiggle 900ms ease-in-out; }
.enx-stage.move-jump     { animation: enxJump 820ms cubic-bezier(.3,1.4,.4,1); }
.enx-stage.move-spin     { animation: enxSpin 860ms cubic-bezier(.34,.7,.3,1); transform-origin: 50% 58%; }
.enx-stage.move-celebrate{ animation: enxHop 560ms ease-in-out 2; }

/* moviments de cap */
.enx-stage.move-tilt .enx-head { animation: enxTilt 1100ms ease-in-out; }
.enx-stage.move-look .enx-head { animation: enxLook 1400ms ease-in-out; }

/* moviments de braç */
.enx-stage.move-wave .enx-arm      { animation: enxWaveOnce 1000ms ease; }
.enx-stage.move-celebrate .enx-arm { animation: enxWaveOnce 560ms ease 2; }

@keyframes enxHop {
  0% { transform: translateY(0) scaleY(1); }
  30% { transform: translateY(-13px) scaleY(1.04); }
  55% { transform: translateY(0) scaleY(.93); }
  72% { transform: translateY(-4px) scaleY(1); }
  100% { transform: translateY(0) scaleY(1); }
}
@keyframes enxJump {
  0% { transform: translateY(0) scale(1); }
  18% { transform: translateY(2px) scaleY(.88) scaleX(1.1); }
  50% { transform: translateY(-26px) scaleY(1.1) scaleX(.94); }
  80% { transform: translateY(0) scaleY(.9) scaleX(1.08); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes enxSpin {
  0% { transform: translateY(0) rotate(0); }
  25% { transform: translateY(-16px) rotate(0); }
  60% { transform: translateY(-16px) rotate(360deg); }
  100% { transform: translateY(0) rotate(360deg); }
}
@keyframes enxWiggle {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-8deg); }
  45% { transform: rotate(7deg); }
  70% { transform: rotate(-4deg); }
  88% { transform: rotate(2deg); }
}
@keyframes enxTilt {
  0%, 100% { transform: rotate(0); }
  32% { transform: rotate(-12deg); }
  66% { transform: rotate(9deg); }
}
@keyframes enxLook {
  0%, 100% { transform: translateX(0) rotate(0); }
  30% { transform: translateX(-3px) rotate(-6deg); }
  65% { transform: translateX(3px) rotate(6deg); }
}
@keyframes enxWaveOnce {
  0% { transform: rotate(0); }
  15% { transform: rotate(-26deg); }
  32% { transform: rotate(6deg); }
  50% { transform: rotate(-22deg); }
  68% { transform: rotate(4deg); }
  85% { transform: rotate(-12deg); }
  100% { transform: rotate(0); }
}
.enx-bubble-name {
  font-size: 11px; font-weight: 800; letter-spacing: .3px; color: var(--c-red);
  text-transform: uppercase; margin-bottom: 4px; padding-right: 16px;
  display: flex; align-items: center; gap: 6px;
}
.enx-prov {
  font-size: 9px; font-weight: 700; letter-spacing: .2px; text-transform: uppercase;
  color: var(--ink-3); background: var(--fill-3); border-radius: 4px; padding: 1px 5px;
}
.enx-bubble-text { font-size: 13px; line-height: 1.5; color: var(--ink-1); letter-spacing: -.1px; }
.enx-bubble-close {
  position: absolute; top: 8px; right: 8px; width: 20px; height: 20px;
  border: none; background: var(--fill-3); border-radius: 50%; cursor: pointer;
  color: var(--ink-2); display: grid; place-items: center; padding: 0;
}
.enx-bubble-close:hover { background: var(--fill-1); }

@media (max-width: 560px) {
  .enx-assistant { right: 12px; left: auto; bottom: 82px; align-items: flex-end; }
  .enx-avatar-btn .enx { width: 50px; height: 50px; }
  .enx-bubble { max-width: min(70vw, 228px); }
  .enx-bubble::after { right: 20px; left: auto; }
  /* zona segura perquè l'avatar no trepitgi peu de pàgina ni botons */
  .r-main { padding-bottom: 84px; }
  .r-footer { padding-bottom: 78px; }
  .r-login-app .login { padding-bottom: 84px; }
}
/* tauleta: la barra també és sticky → apuja l'ajudant perquè no la tapi */
@media (min-width: 561px) and (max-width: 1023px) {
  .enx-assistant { bottom: 84px; }
}
