/* Fan calendar — self-contained split-panel layout */

:root {
  --nbl-orange: #f26522;
  --panel-width: 440px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --cal-bg-scroll: 330px;
  --cal-bg-scroll-duration: 110s;
  --cal-bg-tile: 132px;
  /* Glass: strong blur so logos read through the panel */
  --glass-blur: 44px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  font-family: var(--font);
  background: #fff;
  overflow: hidden;
}

/* ── Page shell ──────────────────────────────────────────────────────────── */

.cal-page {
  position: relative;
  min-height: 100vh;
  isolation: isolate; /* predictable stacking for backdrop-filter */
}

/* ── Left panel — glassmorphic ───────────────────────────────────────────── */

.cal-panel {
  position: relative;
  z-index: 1;
  width: var(--panel-width);
  height: 100vh;
  display: flex;
  flex-direction: column;
  /* Tint sits on top of blur; keep tint low so frosted logos stay visible */
  /* background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.34) 0%,
    rgba(255, 255, 255, 0.14) 45%,
    rgba(248, 250, 252, 0.12) 100%
  ); */
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border-right: 1px solid rgba(255, 255, 255, 0.55);
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    8px 0 48px rgba(0, 0, 0, 0.06);
  /* Promote compositing — helps Safari/WebKit render blur over fixed backdrop */
  transform: translateZ(0);
}

/* ── Panel regions ───────────────────────────────────────────────────────── */

.cal-step-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  animation: calStepIn 0.26s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cal-panel-hd {
  flex-shrink: 0;
  padding: 36px 36px 24px;
  position: relative;
}

.cal-panel-bd {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 0 36px 12px;
}

/* Fade hint at the bottom of the scrollable area — keep translucent so glass stays visible */
.cal-panel-bd::after {
  content: '';
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  height: 36px;
  display: block;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.22));
  pointer-events: none;
  margin-top: -36px;
}

.cal-panel-ft {
  flex-shrink: 0;
  padding: 16px 36px 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
}

/* ── Right backdrop — full bleed behind the glass panel ──────────────────── */

.cal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #ffffff;
}

/* No left-edge blend — glass panel blurs the same full-bleed mosaic */

/* ── Backdrop scroll animation ───────────────────────────────────────────── */

@keyframes calColScrollUp {
  from { transform: translateY(0); }
  to   { transform: translateY(calc(-1 * var(--cal-bg-scroll))); }
}
@keyframes calColScrollDown {
  from { transform: translateY(calc(-1 * var(--cal-bg-scroll))); }
  to   { transform: translateY(0); }
}

.cal-scroll-bg-track {
  display: flex;
  width: 100%;
  height: 100%;
}

.cal-scroll-bg-col {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

.cal-scroll-bg-col-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  will-change: transform;
  animation-duration: var(--cal-bg-scroll-duration);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.cal-scroll-bg-col--up   .cal-scroll-bg-col-inner { animation-name: calColScrollUp; }
.cal-scroll-bg-col--down .cal-scroll-bg-col-inner { animation-name: calColScrollDown; }

/* Stagger every other column for a more organic feel */
.cal-scroll-bg-col:nth-child(odd)  .cal-scroll-bg-col-inner { animation-delay: -8s; }
.cal-scroll-bg-col:nth-child(even) .cal-scroll-bg-col-inner { animation-delay: -24s; }

.cal-bg-logo-cell {
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-bg-logo-cell img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  opacity: 0.68;
}

@media (prefers-reduced-motion: reduce) {
  .cal-scroll-bg-col-inner { animation: none; }
  .cal-step-wrap { animation: none; }
}

/* Header with search gets a bottom divider to separate from scrollable grid */
.cal-panel-hd--sticky {
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  padding-bottom: 20px;
}

.cal-panel-bd--flush { padding-top: 16px; }

.cal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.cal-badge {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.cal-badge-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.cal-badge-text {
  font-size: 11px;
  font-weight: 800;
  color: #222;
  letter-spacing: 0.05em;
}

.cal-league-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cal-panel-hd h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0a0a0a;
  margin: 0;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

/* ── Back button ─────────────────────────────────────────────────────────── */

.cal-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.7);
  color: rgba(0, 0, 0, 0.65);
  border-radius: 8px;
  cursor: pointer;
  font-size: 17px;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.12s, color 0.12s;
}
.cal-back:hover { background: rgba(255, 255, 255, 0.95); color: #000; }

.cal-topbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.cal-topbar .cal-back {
  margin-bottom: 0;
  flex-shrink: 0;
}

.cal-topbar .cal-brand {
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
}

/* ── Subtitle ────────────────────────────────────────────────────────────── */

.cal-sub {
  font-size: 0.88rem;
  color: rgba(0, 0, 0, 0.45);
  margin: 0 0 20px;
  line-height: 1.55;
  font-weight: 400;
}

/* Selected calendar — steps 2 & 3 */
.cal-selection-summary {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin: -4px 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.cal-selection-logos {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: 132px;
}

.cal-selection-logo {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.cal-selection-logo img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  display: block;
}

.cal-selection-logo-more {
  flex-shrink: 0;
  min-width: 38px;
  height: 38px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.45);
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed rgba(0, 0, 0, 0.14);
  border-radius: 8px;
}

.cal-selection-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.cal-selection-kicker {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.36);
}

.cal-selection-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(15, 15, 15, 0.92);
  line-height: 1.35;
}

.cal-selection-detail {
  font-size: 0.78rem;
  color: rgba(0, 0, 0, 0.42);
  line-height: 1.45;
}

.cal-selection-summary--warn {
  border-color: rgba(242, 101, 34, 0.35);
  background: rgba(252, 240, 234, 0.55);
}

/* ── Team search ─────────────────────────────────────────────────────────── */

.cal-team-search-wrap { margin: 0 0 14px; }

.cal-team-search-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.38);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 6px;
}

.cal-team-search {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #111;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.cal-team-search::placeholder { color: rgba(0, 0, 0, 0.28); }
.cal-team-search:focus {
  border-color: rgba(242, 101, 34, 0.55);
  background: rgba(255, 255, 255, 0.92);
}

.cal-search-empty {
  font-size: 0.78rem;
  color: rgba(0, 0, 0, 0.38);
  margin: 8px 0 0;
  line-height: 1.4;
}

/* ── Team grid ───────────────────────────────────────────────────────────── */

.cal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.cal-tile-wrap {
  position: relative;
  display: flex;
  min-height: 0;
}

.cal-tile {
  flex: 1;
  min-height: 90px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 10px 6px 8px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  transition: border-color 0.14s, background 0.14s, box-shadow 0.14s;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
.cal-tile:hover {
  border-color: rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.cal-tile.selected {
  border: 2px solid var(--nbl-orange);
  background: rgba(242, 101, 34, 0.06);
  box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.12);
}

.cal-tile-media {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.cal-tile-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.cal-tile-media--empty {
  background: rgba(0, 0, 0, 0.06);
  border-radius: 8px;
}

.cal-tile-label {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-height: 0;
  justify-content: flex-start;
}
.cal-tile-name {
  width: 100%;
  font-size: 0.7rem;
  font-weight: 700;
  color: #0d0d0d;
  line-height: 1.22;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.cal-tile-division {
  width: 100%;
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.42);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.cal-tile-wrap .cal-check {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 2;
  pointer-events: none;
  width: 16px;
  height: 16px;
  background: var(--nbl-orange);
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── CTA button ──────────────────────────────────────────────────────────── */

.cal-cta {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, #f26522 0%, #dd5010 100%);
  color: #fff;
  font-family: inherit;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(242, 101, 34, 0.32);
  transition: filter 0.14s, box-shadow 0.14s;
}
.cal-cta:hover { filter: brightness(1.06); box-shadow: 0 6px 28px rgba(242, 101, 34, 0.42); }
.cal-cta:disabled {
  background: rgba(0, 0, 0, 0.08);
  color: rgba(0, 0, 0, 0.28);
  box-shadow: none;
  cursor: not-allowed;
  filter: none;
}

/* ── Legal ───────────────────────────────────────────────────────────────── */

.cal-legal {
  font-size: 0.7rem;
  color: rgba(0, 0, 0, 0.32);
  line-height: 1.55;
  margin: 10px 0 0;
  font-weight: 400;
}
.cal-legal a {
  color: rgba(0, 0, 0, 0.5);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Form fields ─────────────────────────────────────────────────────────── */

.cal-field { margin-bottom: 14px; }
.cal-field label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(0, 0, 0, 0.38);
  margin-bottom: 6px;
}
.cal-field input[type="text"],
.cal-field input[type="email"] {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #111;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.cal-field input:focus {
  border-color: rgba(242, 101, 34, 0.6);
  background: rgba(255, 255, 255, 0.95);
}
.cal-field input::placeholder { color: rgba(0, 0, 0, 0.22); }

.cal-check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.82rem;
  line-height: 1.48;
  color: rgba(0, 0, 0, 0.5);
  font-weight: 400;
  margin-bottom: 6px;
}
.cal-check-row input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; accent-color: var(--nbl-orange); }
.cal-check-row a { color: rgba(0, 0, 0, 0.65); text-decoration: underline; text-underline-offset: 2px; }

.cal-optin-html-label {
  flex: 1;
  min-width: 0;
  cursor: pointer;
  font-weight: 400;
}

.cal-optin-html {
  display: block;
  color: rgba(0, 0, 0, 0.74);
  font-size: 0.85rem;
  line-height: 1.5;
}

.cal-optin-html p { margin: 0 0 0.55em 0; }
.cal-optin-html p:last-child { margin-bottom: 0; }
.cal-optin-html a { color: var(--nbl-orange); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.cal-optin-html ul { margin: 0 0 0.5em 1.1em; padding: 0; }
.cal-optin-html li { margin: 0.2em 0; }

/* ── Calendar providers ──────────────────────────────────────────────────── */

.cal-providers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.cal-prov {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 18px 12px 16px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-height: 108px;
  justify-content: flex-start;
  transition: border-color 0.14s, background 0.14s, box-shadow 0.14s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
.cal-prov:hover {
  border-color: rgba(242, 101, 34, 0.45);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.cal-prov-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.cal-prov-icon img { width: 36px; height: 36px; object-fit: contain; display: block; }
.cal-prov-body { display: flex; flex-direction: column; gap: 3px; align-items: center; }
.cal-prov-title { font-size: 0.78rem; font-weight: 800; color: #0d0d0d; line-height: 1.2; }
.cal-prov-sub   { font-size: 0.64rem; font-weight: 600; color: rgba(0, 0, 0, 0.4); }

.cal-prov--primary {
  border-color: rgba(242, 101, 34, 0.65);
  background: rgba(255, 248, 242, 0.92);
}

.cal-hint {
  font-size: 0.72rem;
  color: rgba(0, 0, 0, 0.42);
  margin: -4px 0 10px;
  line-height: 1.4;
}

.cal-details {
  margin-top: 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.55);
}
.cal-details summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.82rem;
}
.cal-details-body {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cal-subscribe-paste-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: rgba(0, 0, 0, 0.55);
}
.cal-subscribe-paste-field {
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 10px 11px;
  font-size: 0.72rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(255, 255, 255, 0.9);
}

.cal-providers-compact {
  grid-template-columns: 1fr;
}
.cal-providers-compact .cal-prov {
  min-height: 86px;
}

/* ── Step 3: subscribe grid (ECAL-style) ─────────────────────────────────── */

.cal-subscribe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 4px;
}

.cal-sub-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 102px;
  padding: 14px 6px 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: border-color 0.14s, background 0.14s, box-shadow 0.14s;
}

.cal-sub-tile:hover {
  border-color: rgba(242, 101, 34, 0.45);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

.cal-sub-tile:focus-visible {
  outline: 2px solid var(--nbl-orange);
  outline-offset: 2px;
}

.cal-sub-tile-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cal-sub-tile-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}

.cal-sub-tile-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  color: #111;
  word-break: break-word;
}

.cal-sub--step3 {
  margin-top: 0;
  margin-bottom: 14px;
}

.cal-step3-rule {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 20px 0 14px;
}

.cal-fallback-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.48);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 10px;
}

.cal-fallback-ics {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
  color: inherit;
  margin-bottom: 8px;
  transition: border-color 0.14s, background 0.14s;
}

.cal-fallback-ics:hover {
  border-color: rgba(242, 101, 34, 0.5);
  background: rgba(255, 252, 248, 0.95);
}

.cal-fallback-ics-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-fallback-ics-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cal-fallback-ics-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: #0d0d0d;
}

.cal-fallback-ics-sub {
  font-size: 0.66rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.42);
  line-height: 1.35;
}

.cal-details-muted {
  margin-top: 4px;
}

.cal-details-muted > summary {
  font-weight: 600;
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.48);
}

.cal-ios-help--compact {
  margin: 0;
  padding: 0;
  background: transparent;
  white-space: pre-wrap;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.5);
}

.cal-panel-bd-step3 .cal-details {
  margin-top: 12px;
}

.cal-sub-club-heading { margin-top: 8px; }
.cal-club-links {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.8rem;
  line-height: 1.55;
}
.cal-club-links a {
  color: var(--nbl-orange);
  font-weight: 700;
}
.cal-ios-help {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.04);
  font-size: 0.76rem;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.55);
  white-space: pre-wrap;
}

/* ── Messages ────────────────────────────────────────────────────────────── */

.cal-msg { color: #c0392b; font-size: 0.83rem; margin: 10px 0 0; font-weight: 600; }

/* ── Step transition ─────────────────────────────────────────────────────── */

@keyframes calStepIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Skeleton loader ─────────────────────────────────────────────────────── */

@keyframes calPulse {
  0%, 100% { opacity: 0.2; }
  50%       { opacity: 0.55; }
}
.cal-skel {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  animation: calPulse 1.5s ease-in-out infinite;
}
.cal-skel--badge     { width: 40px; height: 40px; border-radius: 10px; }
.cal-skel--heading   { width: 72%; height: 30px; border-radius: 6px; display: block; margin-bottom: 8px; }
.cal-skel--sub       { width: 85%; height: 12px; border-radius: 6px; display: block; margin-bottom: 24px; }
.cal-skel--tile      { min-height: 90px; border-radius: 10px; }

/* ── Mobile ──────────────────────────────────────────────────────────────── */

@media (max-width: 720px) {
  .cal-page {
    min-height: 100dvh;
    height: 100dvh;
    overflow-x: hidden;
  }

  /*
   * Viewport-fixed CTA: keep .cal-panel at exactly 100dvh so the footer's positioning
   * (fixed; containing block may be this panel due to backdrop-filter) still sits on the
   * visible bottom — same as the viewport.
   *
   * Glass: translucent panel + blur (logos bleed through).
   */
  html, body { height: 100%; overflow: hidden; }

  .cal-panel {
    /* Room to scroll past the last field under the fixed bar (tallest: step 1–2 CTA + legal) */
    --cal-mobile-ft-slot: clamp(168px, 36svh, 260px);
    width: 100%;
    box-sizing: border-box;
    min-height: 0;
    max-height: 100vh;
    max-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    border-right: none;
    transform: none;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.4),
      0 -1px 0 rgba(255, 255, 255, 0.2);
    overflow-x: hidden;
    overflow-y: hidden;
  }

  .cal-step-wrap {
    overflow: hidden;
    flex: 1;
    min-height: 0;
  }

  .cal-panel-bd {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 0 24px 16px;
    padding-bottom: calc(16px + var(--cal-mobile-ft-slot));
  }
  .cal-panel-bd::after { display: none; }

  .cal-panel-ft {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 50;
    box-sizing: border-box;
    padding: 14px 24px max(14px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.55),
      0 -10px 40px rgba(0, 0, 0, 0.08);
  }

  .cal-panel-hd { padding: 28px 24px 20px; flex-shrink: 0; }
}

/* Users who disable transparency / blur still get a readable solid panel */
@media (prefers-reduced-transparency: reduce) {
  .cal-panel {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  }
  .cal-panel-ft {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
