/* ─────────────────────────────────────────────────────────────
   Carmona Club — Dental
   PWA mobile-first. Estilo limpio, Pantone 376C verde + grises.
   ───────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }
a { color: inherit; text-decoration: none; }

:root {
  /* Paleta Pantone Carmona */
  --green: #84BD00;          /* 376C 100% */
  --green-dark: #5C8400;     /* 376C 60% */
  --green-deep: #2F4A00;     /* 376C 100% más oscuro */
  --green-light: #C7E175;    /* 376C 50% */
  --green-soft: #E8F2C9;     /* 376C 20% */

  --bg: #F7F7F5;             /* cream gris muy claro */
  --bg-card: #FFFFFF;
  --bg-card-soft: #FAFAF8;
  --bg-card-tinted: #F1F5E6;

  --ink: #2B2B2B;            /* 433C 100% */
  --ink-soft: #6B6B6B;       /* 433C 45% */
  --ink-mute: #9A9A9A;
  --ink-faint: #C9C9C9;

  --line: #E5E5E2;
  --line-strong: #D5D5D2;
  --hairline: rgba(43, 43, 43, 0.06);

  --gold: #B8860B;
  --sage: var(--green-dark);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  --r-card: 16px;
  --r-card-sm: 12px;
  --r-pill: 999px;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  background-image:
    radial-gradient(circle at 20% -10%, rgba(132, 189, 0, 0.06), transparent 40%),
    radial-gradient(circle at 110% 110%, rgba(132, 189, 0, 0.04), transparent 50%);
  background-attachment: fixed;
}

.screen {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  position: relative;
  padding-top: var(--safe-top);
}

.screen-body {
  flex: 1;
  padding: 8px 24px 100px;
}

/* ─────────────────────────────────────────────────────────────
   Topbar
   ───────────────────────────────────────────────────────────── */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 22px;
}
.topbar-mark {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(132, 189, 0, 0.25);
}
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink);
  position: relative;
  transition: background 0.2s;
}
.icon-btn:hover { background: var(--green-soft); }
.icon-btn svg { width: 20px; height: 20px; stroke-width: 1.5; }
.notif-dot {
  position: absolute;
  top: 10px; right: 11px;
  width: 8px; height: 8px;
  background: var(--green);
  border: 2px solid var(--bg);
  border-radius: 50%;
}

/* ─────────────────────────────────────────────────────────────
   Greeting
   ───────────────────────────────────────────────────────────── */
.greeting { padding: 4px 0 22px; }
.greeting .date-line {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.greeting .date-line::after {
  content: ''; height: 1px; flex: 1;
  background: var(--line);
}
.greeting h1 {
  font-weight: 500;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.greeting h1 strong {
  font-weight: 700;
  color: var(--green-dark);
}

.overline {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ─────────────────────────────────────────────────────────────
   Push activation CTA
   ───────────────────────────────────────────────────────────── */
.push-cta {
  margin-top: 4px; margin-bottom: 22px;
  background: var(--bg-card-tinted);
  border: 1px solid var(--green-light);
  border-radius: var(--r-card);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.push-cta-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.push-cta-text strong {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.push-cta-text span {
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.push-cta-btn {
  background: var(--green-dark);
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.2s;
}
.push-cta-btn:hover { background: var(--green-deep); transform: translateY(-1px); }
.push-cta-btn:disabled { opacity: 0.6; cursor: progress; }

/* ─────────────────────────────────────────────────────────────
   Carmona Club hero card
   ───────────────────────────────────────────────────────────── */
.club-card-link { display: block; transition: transform 0.2s; }
.club-card-link:hover { transform: translateY(-1px); }

.club-card {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.18), transparent 50%),
    linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  border-radius: var(--r-card);
  padding: 20px 22px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 32px -10px rgba(92, 132, 0, 0.40);
}
.club-card::after {
  content: '✓';
  position: absolute;
  top: 18px; right: 22px;
  font-size: 20px;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
}
.club-card-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px;
}
.club-card .overline { color: rgba(255, 255, 255, 0.85); }
.club-card .tier {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.95);
  margin-right: 26px;
  text-transform: uppercase;
}
.club-balance {
  display: flex; align-items: baseline; gap: 10px;
  margin: 6px 0 18px;
}
.club-balance .num {
  font-weight: 300;
  font-size: 56px;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: #fff;
}
.club-balance .unit {
  font-weight: 500;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
}
.club-progress {
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.20);
}
.club-progress-bar {
  height: 3px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
}
.club-progress-fill {
  height: 100%;
  width: var(--p, 0%);
  background: #fff;
  border-radius: 2px;
  transition: width 0.6s ease;
}
.club-progress-label {
  font-size: 11.5px;
  font-weight: 400;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.01em;
}
.club-progress-label strong {
  font-weight: 700;
  color: #fff;
}

/* ─────────────────────────────────────────────────────────────
   Próxima cita teaser
   ───────────────────────────────────────────────────────────── */
.appt-teaser {
  margin-top: 18px;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.appt-teaser:hover { transform: translateY(-1px); box-shadow: 0 4px 12px -4px rgba(43,43,43,0.08); }
.appt-teaser .date-block {
  display: flex; flex-direction: column; align-items: center;
  padding-right: 14px;
  border-right: 1px solid var(--line);
  min-width: 56px;
}
.appt-teaser .date-block .day {
  font-weight: 600;
  font-size: 28px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.appt-teaser .date-block .month {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-top: 4px;
}
.appt-teaser .info { flex: 1; }
.appt-teaser .info .label {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 5px;
  font-weight: 600;
}
.appt-teaser .info .title {
  font-weight: 600;
  font-size: 17px;
  line-height: 1.2;
  color: var(--ink);
}
.appt-teaser .info .meta {
  font-size: 12.5px;
  color: var(--ink-mute);
  margin-top: 3px;
}
.appt-teaser .chev {
  color: var(--ink-mute);
  font-size: 22px;
}

/* ─────────────────────────────────────────────────────────────
   Quick access
   ───────────────────────────────────────────────────────────── */
.quick-access {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.qa {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  padding: 16px 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card-sm);
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.qa:hover {
  background: var(--bg-card-tinted);
  border-color: var(--green-light);
  transform: translateY(-2px);
}
.qa-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--green-soft);
  border-radius: 10px;
  color: var(--green-dark);
}
.qa-icon svg { width: 18px; height: 18px; stroke-width: 1.5; }
.qa-label {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────────────────────────
   Para ti (offers carousel)
   ───────────────────────────────────────────────────────────── */
.for-you { margin-top: 24px; }

.section-label {
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-label small {
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--green-dark);
}

.offer-cards {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  margin: 0 -24px;
  padding: 0 24px 6px;
  scrollbar-width: none;
}
.offer-cards::-webkit-scrollbar { display: none; }
.offer-mini {
  flex-shrink: 0;
  width: 180px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  transition: transform 0.2s;
}
.offer-mini:hover { transform: translateY(-2px); }
.offer-mini-img {
  height: 100px;
  position: relative;
  display: grid; place-items: center;
}
.offer-mini-img.var-1 { background: linear-gradient(160deg, var(--green-soft), var(--green-light)); }
.offer-mini-img.var-2 { background: linear-gradient(160deg, var(--green-light), var(--green)); }
.offer-mini-img.var-3 { background: linear-gradient(160deg, var(--green), var(--green-dark)); }
.offer-mini-img.var-4 { background: linear-gradient(160deg, var(--green-dark), var(--green-deep)); }
.offer-mini-img .badge {
  position: absolute;
  top: 8px; left: 8px;
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(43,43,43,0.85);
  color: var(--green-light);
  padding: 4px 9px;
  border-radius: 999px;
  font-weight: 700;
}
.offer-mini-img svg {
  width: 38px; height: 38px;
  color: rgba(255,255,255,0.75);
}
.offer-mini-body { padding: 11px 13px 13px; }
.offer-mini-body .name {
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.25;
  color: var(--ink);
}
.offer-mini-body .price {
  margin-top: 7px;
  display: flex; align-items: baseline; gap: 6px;
}
.offer-mini-body .price .new {
  font-weight: 700;
  font-size: 15px;
  color: var(--green-dark);
}
.offer-mini-body .price .old {
  text-decoration: line-through;
  color: var(--ink-faint);
  font-size: 11px;
}

.empty-inline {
  font-size: 13px;
  color: var(--ink-mute);
  padding: 8px 4px;
  line-height: 1.5;
}

/* ─────────────────────────────────────────────────────────────
   Bottom navigation
   ───────────────────────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(70px + var(--safe-bottom));
  padding: 8px 12px calc(8px + var(--safe-bottom));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  background: linear-gradient(to top, var(--bg) 70%, rgba(247,247,245,0.6) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 50;
}
.bottom-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px; right: 24px;
  height: 1px;
  background: var(--line);
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px 2px;
  color: var(--ink-mute);
  position: relative;
  transition: color 0.2s;
}
.nav-item svg { width: 22px; height: 22px; stroke-width: 1.5; }
.nav-item span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.nav-item.active { color: var(--green-dark); }
.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--green-dark);
}

/* ─────────────────────────────────────────────────────────────
   PWA install banner
   ───────────────────────────────────────────────────────────── */
.install-banner {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 440px;
  background: var(--ink);
  color: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  display: none;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 28px -10px rgba(43,43,43,0.5);
  z-index: 60;
  font-size: 12.5px;
}
.install-banner.visible { display: flex; }
.install-banner .text { flex: 1; }
.install-banner .text strong {
  font-weight: 600;
  font-size: 14px;
  display: block;
  margin-bottom: 2px;
}
.install-banner button {
  background: var(--green);
  color: var(--green-deep);
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.install-banner .dismiss {
  background: transparent;
  color: rgba(255,255,255,0.5);
  padding: 4px;
  font-size: 18px;
}

/* ─────────────────────────────────────────────────────────────
   Header común (back + título + acción)
   ───────────────────────────────────────────────────────────── */
.s-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 18px;
}
.s-header .back-btn,
.s-header .s-header-right {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--ink);
  transition: background 0.2s;
}
.s-header .back-btn:hover { background: var(--green-soft); }
.s-header .back-btn svg { width: 18px; height: 18px; stroke-width: 1.6; }
.s-header h1 {
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ─────────────────────────────────────────────────────────────
   Filter chips
   ───────────────────────────────────────────────────────────── */
.filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -24px 18px;
  padding: 0 24px 4px;
  scrollbar-width: none;
}
.filter-chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line-strong);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 0.2s;
}
.chip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.chip:hover:not(.active) { background: var(--green-soft); border-color: var(--green-light); }

/* ─────────────────────────────────────────────────────────────
   s-club — pantalla Carmona Club
   ───────────────────────────────────────────────────────────── */
.s-club .club-hero {
  margin: 4px -24px 0;
  padding: 30px 24px 34px;
  background:
    radial-gradient(ellipse at top, rgba(132, 189, 0, 0.10) 0%, transparent 60%),
    var(--bg);
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.s-club .club-hero::before {
  content: '✓';
  font-size: 22px;
  color: var(--green-dark);
  display: block;
  margin-bottom: 8px;
  opacity: 0.75;
  font-weight: 700;
}
.s-club .tier-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 14px;
}
.s-club .big-balance {
  font-weight: 300;
  font-size: 84px;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.s-club .big-unit {
  font-weight: 500;
  font-size: 18px;
  color: var(--ink-mute);
  margin-top: 6px;
  letter-spacing: 0.02em;
}
.s-club .ornament {
  margin: 18px auto 0;
  width: 70px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.s-club .ornament::before, .s-club .ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}
.s-club .ornament-dot {
  width: 6px; height: 6px;
  background: var(--green-dark);
  border-radius: 50%;
}
.s-club .progress-block { margin-top: 18px; padding: 0 4px; }
.s-club .progress-text {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.s-club .progress-text .right { color: var(--green-dark); }
.s-club .progress-bar {
  height: 3px;
  background: var(--line-strong);
  border-radius: 2px;
  overflow: hidden;
}
.s-club .progress-fill {
  height: 100%;
  width: var(--p, 0%);
  background: linear-gradient(to right, var(--green-light), var(--green-dark));
  border-radius: 2px;
  transition: width 0.6s ease;
}

.section-block { margin-top: 26px; }

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.benefit {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card-sm);
}
.benefit-icon {
  width: 34px; height: 34px;
  background: var(--green-soft);
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--green-dark);
  flex-shrink: 0;
}
.benefit-icon svg { width: 16px; height: 16px; stroke-width: 1.6; }
.benefit-text { flex: 1; }
.benefit-text .name {
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.2;
  color: var(--ink);
}
.benefit-text .desc {
  font-size: 11.5px;
  color: var(--ink-mute);
  margin-top: 2px;
}
.benefit-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid; place-items: center;
}
.benefit-check svg { width: 12px; height: 12px; stroke-width: 2.4; }

/* Movements */
.movements { display: flex; flex-direction: column; }
.move {
  display: flex; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  gap: 14px;
}
.move:last-child { border-bottom: 0; }
.move-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 15px;
}
.move.plus .move-icon { background: var(--green-soft); color: var(--green-deep); }
.move.minus .move-icon { background: #FBE9E9; color: #993333; }
.move.expired .move-icon { background: #F0EFEC; color: var(--ink-mute); }
.move-text { flex: 1; }
.move-text .desc { font-size: 13px; color: var(--ink); font-weight: 500; }
.move-text .date {
  font-size: 10.5px;
  color: var(--ink-mute);
  margin-top: 2px;
}
.move-amount {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.005em;
}
.move.plus .move-amount { color: var(--green-deep); }
.move.minus .move-amount { color: #993333; }
.move.expired .move-amount { color: var(--ink-mute); text-decoration: line-through; }

.alert-card {
  margin-top: 18px;
  background: #FFF8E1;
  border-left: 3px solid var(--gold);
  border-radius: 4px 12px 12px 4px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.alert-card svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }
.alert-card .text {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.alert-card .text strong {
  font-weight: 700;
  color: var(--ink);
  font-size: 13px;
}

.empty-line {
  font-size: 13px;
  color: var(--ink-mute);
  padding: 16px 4px;
  line-height: 1.5;
}
.empty-line.full-span { grid-column: 1 / -1; text-align: center; }

/* ─────────────────────────────────────────────────────────────
   s-offers — listado de ofertas
   ───────────────────────────────────────────────────────────── */
.promo-hero-link { display: block; margin-bottom: 18px; }
.promo-hero {
  height: 200px;
  border-radius: var(--r-card);
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 18px 20px 20px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15), transparent 50%),
    linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
}
.promo-hero .badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(43,43,43,0.85);
  color: var(--green-light);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.promo-hero h2 {
  font-weight: 500;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 240px;
}
.promo-hero .price-row {
  display: flex; align-items: baseline; gap: 10px;
  margin-top: 10px;
}
.promo-hero .new-price {
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
}
.promo-hero .old-price {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  text-decoration: line-through;
}

.offers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.offer-card {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card-sm);
  overflow: hidden;
  transition: transform 0.2s;
}
.offer-card:hover { transform: translateY(-2px); }
.offer-card .image {
  height: 110px;
  position: relative;
  display: grid; place-items: center;
  overflow: hidden;
}
.offer-card .image.var-1 { background: linear-gradient(160deg, var(--green-soft), var(--green-light)); }
.offer-card .image.var-2 { background: linear-gradient(160deg, var(--green-light), var(--green)); }
.offer-card .image.var-3 { background: linear-gradient(160deg, var(--green), var(--green-dark)); }
.offer-card .image.var-4 { background: linear-gradient(160deg, var(--green-dark), var(--green-deep)); }
.offer-card .image svg { width: 28px; height: 28px; color: rgba(255,255,255,0.75); }
.offer-card .club-only {
  position: absolute;
  top: 8px; left: 8px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(43,43,43,0.85);
  color: var(--green-light);
  padding: 3px 8px;
  border-radius: 999px;
  z-index: 2;
}
.offer-card .body { padding: 11px 13px 13px; }
.offer-card .name {
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.25;
  color: var(--ink);
}
.offer-card .price-row {
  margin-top: 7px;
  display: flex; align-items: baseline; gap: 6px;
}
.offer-card .price-row .new {
  font-weight: 700;
  font-size: 15px;
  color: var(--green-dark);
}
.offer-card .price-row .old {
  font-size: 11px;
  color: var(--ink-faint);
  text-decoration: line-through;
}

/* ─────────────────────────────────────────────────────────────
   s-offer-detail
   ───────────────────────────────────────────────────────────── */
.s-offer-detail-body { padding: 0; }
.s-offer-detail .hero-image {
  height: 240px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(132,189,0,0.30), transparent 50%),
    linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
}
.s-offer-detail .back-overlay {
  position: absolute; top: 18px; left: 20px;
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  display: grid; place-items: center;
  backdrop-filter: blur(8px);
  z-index: 2;
}
.s-offer-detail .back-overlay svg { width: 16px; height: 16px; color: var(--ink); }
.s-offer-detail .club-tag {
  position: absolute; bottom: 18px; left: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(43, 43, 43, 0.85);
  color: var(--green-light);
  padding: 5px 12px;
  border-radius: 999px;
}

.offer-content { padding: 22px 24px 0; }

.offer-title-block { margin-bottom: 14px; }
.offer-title-block .cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 8px;
}
.offer-title-block h1 {
  font-weight: 600;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.offer-title-block .dek {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 10px;
  line-height: 1.5;
}

.price-display {
  margin: 16px 0;
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  display: flex; align-items: baseline; gap: 16px;
}
.price-display .new {
  font-weight: 500;
  font-size: 36px;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.price-display .new strong { font-weight: 700; color: var(--green-dark); }
.price-display .old {
  text-decoration: line-through;
  font-size: 17px;
  color: var(--ink-faint);
}
.price-display .save {
  margin-left: auto;
  background: var(--green-dark);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 4px;
}

.cost-points {
  font-size: 12px;
  color: var(--ink-mute);
  margin-bottom: 16px;
}
.cost-points strong { color: var(--green-dark); font-weight: 700; }

.offer-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.includes-block {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card-sm);
  padding: 16px 18px;
  margin-bottom: 18px;
}
.includes-block h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 12px;
}
.includes-block ul {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 7px;
  padding: 0;
}
.includes-block li {
  display: flex; gap: 10px; align-items: baseline;
  font-size: 13px;
  color: var(--ink);
}
.includes-block li::before {
  content: '✓';
  color: var(--green-dark);
  font-weight: 700;
}

.cant-redeem {
  margin-top: 8px;
  padding: 12px 14px;
  background: var(--bg-card-tinted);
  border-radius: 12px;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.cant-redeem strong { color: var(--green-dark); font-weight: 600; }

.cta-fixed {
  position: fixed;
  bottom: calc(82px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 432px;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-deep) 100%);
  color: #fff;
  border-radius: 999px;
  padding: 16px 22px;
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 36px -10px rgba(92,132,0,0.45);
  z-index: 40;
  transition: transform 0.2s;
}
.cta-fixed:hover { transform: translateX(-50%) translateY(-2px); }
.cta-fixed svg { width: 16px; height: 16px; }

/* ─────────────────────────────────────────────────────────────
   s-profile
   ───────────────────────────────────────────────────────────── */
.s-profile .profile-hero {
  margin-top: 6px;
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 0 24px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.s-profile .avatar-big {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-soft) 0%, var(--green-light) 100%);
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 34px;
  color: var(--green-deep);
  margin-bottom: 14px;
  border: 1px solid var(--green-light);
  letter-spacing: -0.02em;
}
.s-profile h2 {
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.s-profile .meta-line {
  font-size: 11.5px;
  color: var(--ink-mute);
  margin-top: 6px;
  line-height: 1.4;
}
.s-profile .level-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 5px 14px;
  background: var(--green-soft);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-deep);
}

.profile-section { margin-top: 26px; }
.profile-section .section-label { margin-bottom: 12px; }

.doctor-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card-sm);
}
.doctor-card .doc-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-deep) 100%);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 17px;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}
.doctor-card .info { flex: 1; }
.doctor-card .name {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.doctor-card .role {
  font-weight: 500;
  font-size: 12px;
  color: var(--green-dark);
  margin-top: 1px;
}
.doctor-card .since {
  font-size: 11px;
  color: var(--ink-mute);
  margin-top: 5px;
}
.doctor-card .arrow {
  color: var(--ink-mute);
  font-size: 20px;
}

.referral-card {
  background: linear-gradient(160deg, var(--green-soft) 0%, var(--bg-card-tinted) 100%);
  border-radius: var(--r-card);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}
.referral-card::after {
  content: '✓';
  position: absolute;
  top: 14px; right: 18px;
  font-size: 22px;
  color: var(--green-dark);
  opacity: 0.5;
  font-weight: 700;
}
.referral-card .label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 10px;
}
.referral-card h3 {
  font-weight: 600;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 10px;
}
.referral-card .desc {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 16px;
}
.referral-card .desc strong {
  color: var(--green-dark);
  font-weight: 700;
}
.referral-card .code-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-card);
  padding: 10px 12px 10px 16px;
  border-radius: 999px;
  border: 1px dashed var(--green-dark);
}
.referral-card .code-row .code {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.06em;
}
.referral-card .copy-btn {
  width: 32px; height: 32px;
  background: var(--green-dark);
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  transition: background 0.2s, transform 0.2s;
}
.referral-card .copy-btn:hover { transform: scale(1.05); }
.referral-card .copy-btn svg { width: 14px; height: 14px; stroke-width: 1.8; }
.referral-card .copy-btn.copied { background: var(--green-deep); }
.referral-card .copy-btn.copied svg { display: none; }
.referral-card .copy-btn.copied::after { content: '✓'; font-weight: 700; }

.settings-list {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card-sm);
  overflow: hidden;
}
.setting-row,
.setting-row-form button.setting-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  background: transparent;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: background 0.15s;
}
.setting-row:last-child, .setting-row-form:last-child button { border-bottom: 0; }
.setting-row:hover { background: var(--bg-card-tinted); }
.setting-row .ico {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--green-soft);
  display: grid; place-items: center;
  color: var(--green-dark);
  flex-shrink: 0;
}
.setting-row .ico svg { width: 16px; height: 16px; stroke-width: 1.6; }
.setting-row .label,
.setting-row .label-stack { flex: 1; font-size: 13px; color: var(--ink); font-weight: 500; }
.setting-row .label-stack { display: flex; flex-direction: column; gap: 2px; }
.setting-row .label-stack .label { flex: initial; }
.setting-row .label-stack .sub {
  font-size: 11px;
  color: var(--ink-mute);
  font-weight: 400;
}
.setting-row .chev { color: var(--ink-faint); font-size: 20px; }
.setting-row .switch {
  width: 38px; height: 22px;
  background: var(--line-strong);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background 0.25s;
  flex-shrink: 0;
  padding: 0;
}
.setting-row .switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  transition: transform 0.25s;
}
.setting-row .switch.on { background: var(--green); }
.setting-row .switch.on::after { transform: translateX(16px); }
.setting-row.danger .label { color: #993333; }
.setting-row.danger .ico { background: #FBE9E9; color: #993333; }
.setting-row-form { margin: 0; }

.footer-tag {
  margin-top: 28px;
  text-align: center;
  font-weight: 600;
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ─────────────────────────────────────────────────────────────
   s-notifs-full
   ───────────────────────────────────────────────────────────── */
.notif-group { margin-top: 18px; }
.notif-group-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}
.notif-group-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.notif {
  display: flex; gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  position: relative;
}
.notif:last-child { border-bottom: 0; }
.notif.unread::before {
  content: '';
  position: absolute;
  left: -10px; top: 22px;
  width: 6px; height: 6px;
  background: var(--green-dark);
  border-radius: 50%;
}
.notif-icon {
  width: 36px; height: 36px;
  border-radius: 11px;
  display: grid; place-items: center;
  flex-shrink: 0;
  background: var(--green-soft);
  color: var(--green-dark);
}
.notif-icon svg { width: 16px; height: 16px; stroke-width: 1.6; }
.notif-body { flex: 1; }
.notif-body .ti {
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.25;
  color: var(--ink);
}
.notif-body .preview {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.45;
  margin-top: 3px;
}
.notif-body .time {
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  margin-top: 5px;
}

.notifs-empty {
  text-align: center;
  padding: 60px 24px 40px;
}
.notifs-empty .empty-mark {
  font-size: 44px;
  color: var(--green);
  margin-bottom: 16px;
  font-weight: 700;
}
.notifs-empty h2 {
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 10px;
}
.notifs-empty p {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.55;
  max-width: 320px;
  margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────────
   s-history-empty
   ───────────────────────────────────────────────────────────── */
.history-empty {
  padding: 30px 4px 40px;
  text-align: center;
}
.empty-illustration {
  margin: 0 auto 20px;
  width: 120px; height: 120px;
}
.empty-illustration svg { width: 100%; height: 100%; }
.history-empty h2 {
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 12px;
}
.history-empty h2 strong {
  font-weight: 700;
  color: var(--green-dark);
}
.history-empty .lede {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.55;
  max-width: 340px;
  margin: 0 auto 28px;
}

.history-roadmap {
  max-width: 360px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.roadmap-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card-sm);
}
.roadmap-step .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--ink-faint);
  margin-top: 4px;
  flex-shrink: 0;
}
.roadmap-step.done .dot { background: var(--green); border-color: var(--green); }
.roadmap-step.pending .dot { border-color: var(--green-dark); position: relative; }
.roadmap-step.pending .dot::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--green-dark);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.6); opacity: 0.5; }
}
.roadmap-step div { flex: 1; }
.roadmap-step strong {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}
.roadmap-step small {
  font-size: 11.5px;
  color: var(--ink-mute);
  line-height: 1.35;
  display: block;
}

/* ─────────────────────────────────────────────────────────────
   Auth screens
   ───────────────────────────────────────────────────────────── */
.auth-screen {
  justify-content: center;
  padding: 0 24px;
}
.auth-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 0 80px;
  max-width: 380px;
  margin: 0 auto;
  width: 100%;
}
.auth-brand {
  text-align: center;
  margin-bottom: 36px;
}
.auth-mark {
  display: inline-grid;
  place-items: center;
  width: 60px; height: 60px;
  margin-bottom: 22px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 24px;
  box-shadow: 0 8px 24px rgba(132, 189, 0, 0.30);
}
.auth-mark--sent { background: linear-gradient(135deg, var(--green-light), var(--green)); }
.auth-mark--sent svg { width: 28px; height: 28px; stroke-width: 2.4; color: #fff; }
.auth-mark--error {
  background: #FBE9E9;
  color: #993333;
  font-weight: 700;
  font-size: 28px;
  box-shadow: none;
}
.auth-title {
  font-weight: 500;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 10px;
}
.auth-title strong {
  font-weight: 700;
  color: var(--green-dark);
}
.auth-sub {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.55;
}
.auth-mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.auth-form { margin-bottom: 24px; }
.auth-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.auth-input {
  width: 100%;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: 0.005em;
  transition: border-color 0.2s;
}
.auth-input::placeholder { color: var(--ink-faint); }
.auth-input:focus {
  outline: none;
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(132, 189, 0, 0.15);
}
.auth-help {
  margin: 8px 4px 18px;
  font-size: 11.5px;
  color: var(--ink-mute);
  line-height: 1.4;
}
.auth-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-deep) 100%);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 26px -10px rgba(92, 132, 0, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.auth-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(92, 132, 0, 0.55); }
.auth-cta--center { text-align: center; }

.auth-steps {
  list-style: none;
  margin: 28px 0 24px;
  padding: 0;
}
.auth-steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  font-size: 13px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--hairline);
}
.auth-steps li:last-child { border-bottom: 0; }
.auth-steps li span {
  flex-shrink: 0;
  width: 24px; height: 24px;
  background: var(--green-soft);
  color: var(--green-dark);
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 12px;
}

.auth-footnote {
  margin-top: 22px;
  font-size: 11.5px;
  color: var(--ink-mute);
  text-align: center;
  line-height: 1.5;
}
.auth-footnote strong { color: var(--ink); font-weight: 600; }
.auth-footnote a { color: var(--green-dark); border-bottom: 1px solid currentColor; }
