/* ChordFinding — light, modern shell (Songscription-inspired) */
:root {
  --cf-bg: #f7f8fb;
  --cf-surface: #ffffff;
  --cf-ink: #0f172a;
  --cf-muted: #64748b;
  --cf-line: #e8ecf2;
  --cf-accent: #F57C00;
  --cf-accent-soft: #FFE0B2;
  --cf-accent-hover: #EF6C00;
  --cf-max: 1120px;
  --cf-radius: 16px;
  --cf-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
  --cf-font: "Plus Jakarta Sans", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.cf-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--cf-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cf-ink);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(15, 118, 110, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(14, 165, 233, 0.05), transparent 45%),
    var(--cf-bg);
}

.cf-skip {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  background: var(--cf-ink);
  color: #fff;
  padding: 8px 12px;
}
.cf-skip:focus { left: 12px; top: 12px; }

.cf-container {
  width: min(100% - 32px, var(--cf-max));
  margin-inline: auto;
}

/* Header */
.cf-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(247, 248, 251, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.cf-header:hover { border-bottom-color: var(--cf-line); }

.cf-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  min-height: 64px;
}

.cf-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--cf-ink);
  text-decoration: none;
}
.cf-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.18);
  background: transparent;
}
.cf-logo-text {
  line-height: 1.1;
}
.cf-footer .cf-logo-text { color: #fff; }

.cf-nav {
  display: flex;
  align-items: center;
  gap: 6px 18px;
  flex-wrap: wrap;
}
.cf-nav a {
  color: var(--cf-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.cf-nav a:hover,
.cf-nav a.is-active { color: var(--cf-ink); }

.cf-lang-switch {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
}
.cf-lang-select {
  appearance: none;
  -webkit-appearance: none;
  max-width: 9.5rem;
  padding: 6px 28px 6px 10px;
  border: 1px solid var(--cf-line);
  border-radius: 8px;
  background: var(--cf-surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.4 0.6L6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E")
    no-repeat right 10px center;
  color: var(--cf-ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}
.cf-lang-select:hover,
.cf-lang-select:focus {
  border-color: #cbd5e1;
  outline: none;
}

.cf-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--cf-line);
  border-radius: 10px;
  background: var(--cf-surface);
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.cf-nav-toggle span {
  display: block;
  height: 2px;
  background: var(--cf-ink);
  border-radius: 2px;
}

/* Buttons */
.cf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.cf-btn:hover { transform: translateY(-1px); }
.cf-btn-sm { padding: 8px 14px; font-size: 0.88rem; }
.cf-btn-primary {
  background: var(--cf-accent);
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.25);
}
.cf-btn-primary:hover { background: var(--cf-accent-hover); }
.cf-btn-ghost {
  background: var(--cf-surface);
  color: var(--cf-ink);
  border-color: var(--cf-line);
}
.cf-btn-ghost:hover { border-color: #cbd5e1; }

/* Hero */
.cf-hero {
  padding: 48px 0 28px;
  text-align: center;
}
.cf-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--cf-accent-soft);
  color: var(--cf-accent);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.cf-hero h1 {
  margin: 0 auto 14px;
  max-width: none;
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--cf-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.cf-hero-subline {
  display: block;
  font-size: clamp(1.15rem, 2.8vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--cf-muted);
}
.cf-hero-subline .cf-rotator,
.cf-hero-subline .cf-rotator-wrap > span {
  color: var(--cf-accent);
  font-weight: 800;
}
.cf-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.cf-hero-lead {
  margin: 0 auto 22px;
  max-width: 48rem;
  color: var(--cf-muted);
  font-size: 1.08rem;
  text-wrap: balance;
}
@media (min-width: 900px) {
  .cf-hero:not(.cf-hero--locale) .cf-hero-lead {
    white-space: nowrap;
    max-width: none;
    font-size: clamp(0.92rem, 1.2vw, 1.08rem);
  }
}

.cf-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 8px;
}

/* WP-style keyword hero — full-bleed width, avoid forced line splits */
.cf-hero--locale {
  padding: 20px 0 8px;
  text-align: center;
  overflow-x: visible;
}
.cf-hero.cf-hero--locale.cf-container {
  width: min(100% - 12px, 100%);
  max-width: none;
}
.cf-hero--locale h1 {
  font-size: clamp(0.95rem, 1.85vw, 1.35rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 auto 10px;
  max-width: 100%;
  width: 100%;
  display: block;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: unset;
  text-transform: uppercase;
  font-weight: 800;
  color: #111;
}
@media (min-width: 1100px) {
  .cf-hero--locale h1 {
    white-space: nowrap;
    font-size: clamp(1rem, 1.55vw, 1.28rem);
  }
}
.cf-hero-demo {
  margin: 0 auto 10px;
  max-width: 100%;
  width: 100%;
  font-size: clamp(0.9rem, 1.5vw, 1.12rem);
  font-weight: 700;
  line-height: 1.3;
  color: #111;
  white-space: normal;
  text-wrap: unset;
  text-transform: uppercase;
}
@media (min-width: 1100px) {
  .cf-hero-demo {
    white-space: nowrap;
  }
}
.cf-hero-start {
  margin: 0 auto 4px;
  max-width: 100%;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  font-weight: 500;
  line-height: 1.4;
  color: #222;
}
.cf-hero--locale + .cf-tool-section {
  padding-top: 4px;
}

/* Tool area — flush with page, not an embedded iframe card */
.cf-tool-section {
  padding: 8px 0 56px;
  border-top: 1px solid var(--cf-line);
  background: transparent;
}
.cf-tool-section > .cf-container {
  width: min(100% - 12px, 100%);
  max-width: none;
}
body.cf-members-app .cf-members-tool > .cf-container {
  width: min(100% - 8px, 100%);
  max-width: none;
}
body.cf-members-app .cf-members-main {
  padding: 12px 0 32px;
}
.cf-tool-panel {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin: 0 auto;
}
.cf-tool-panel-label {
  display: none;
}

/* Sections */
.cf-section {
  padding: 56px 0;
}
.cf-section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 36px;
}
.cf-section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  font-weight: 800;
}
.cf-section-head p {
  margin: 0;
  color: var(--cf-muted);
}

.cf-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cf-card {
  background: var(--cf-surface);
  border: 1px solid var(--cf-line);
  border-radius: var(--cf-radius);
  padding: 22px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cf-card:hover {
  border-color: #c7d2de;
  box-shadow: var(--cf-shadow);
}
.cf-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--cf-accent-soft);
  color: var(--cf-accent);
  margin-bottom: 14px;
  font-size: 1.1rem;
}
.cf-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.cf-card p {
  margin: 0;
  color: var(--cf-muted);
  font-size: 0.95rem;
}
.cf-card a.cf-card-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--cf-accent);
  text-decoration: none;
}
.cf-card a.cf-card-link:hover { text-decoration: underline; }

.cf-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.cf-step {
  position: relative;
  padding: 8px 8px 8px 0;
}
.cf-step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--cf-ink);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.cf-step h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.cf-step p {
  margin: 0;
  color: var(--cf-muted);
  font-size: 0.95rem;
}

.cf-faq details {
  background: var(--cf-surface);
  border: 1px solid var(--cf-line);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.cf-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--cf-ink);
}
.cf-faq details[open] summary { margin-bottom: 8px; }
.cf-faq p {
  margin: 0;
  color: var(--cf-muted);
  font-size: 0.95rem;
}

.cf-cta-band {
  margin: 24px 0 48px;
  padding: 40px 28px;
  border-radius: calc(var(--cf-radius) + 4px);
  background: linear-gradient(135deg, #F57C00 0%, #FF8C00 100%);
  color: #fff;
  text-align: center;
  box-shadow: 0 16px 40px rgba(15, 118, 110, 0.25);
}
.cf-cta-band h2 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -0.03em;
}
.cf-cta-band p {
  margin: 0 auto 18px;
  max-width: 32rem;
  opacity: 0.9;
}
.cf-cta-band .cf-btn-primary {
  background: #fff;
  color: var(--cf-accent) !important;
  box-shadow: none;
}
.cf-cta-band .cf-btn-primary:hover {
  background: #f0fdfa;
}

/* Page hero (inner pages) */
.cf-page-hero {
  padding: 40px 0 20px;
  text-align: center;
}
.cf-page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.035em;
  font-weight: 800;
}
.cf-page-hero p {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--cf-muted);
}
.cf-page-hero .cf-tool-hint {
  margin: 14px auto 0;
  max-width: 32rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cf-accent);
}

.cf-prose {
  max-width: 40rem;
  margin: 0 auto;
  color: var(--cf-muted);
}
.cf-prose-wide {
  max-width: 46rem;
}
.cf-prose h2 {
  color: var(--cf-ink);
  letter-spacing: -0.02em;
  margin: 28px 0 10px;
}
.cf-prose p { margin: 0 0 14px; line-height: 1.65; }
.cf-prose p:last-child { margin-bottom: 0; }
.cf-prose strong { color: var(--cf-ink); font-weight: 700; }
.cf-prose ul { padding-left: 1.2rem; }

.cf-pricing {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}
.cf-price-card {
  background: var(--cf-surface);
  border: 1px solid var(--cf-line);
  border-radius: var(--cf-radius);
  padding: 28px 24px;
}
.cf-price-card.is-featured {
  border-color: var(--cf-accent);
  box-shadow: 0 0 0 1px var(--cf-accent), var(--cf-shadow);
}
.cf-price-card h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}
.cf-price-amount {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 12px 0;
}
.cf-price-card ul {
  margin: 0 0 20px;
  padding-left: 1.1rem;
  color: var(--cf-muted);
  font-size: 0.95rem;
}
.cf-price-card li { margin-bottom: 6px; }

/* Plan cards (pricing + upgrade modals) */
.cf-plans-section {
  padding-bottom: 48px;
}
.cf-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
  align-items: stretch;
}
.cf-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8ecf2;
  border-radius: 18px;
  padding: 28px 24px 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}
.cf-plan-card.is-featured {
  border: 2px solid var(--cf-accent);
  box-shadow: 0 14px 36px rgba(15, 118, 110, 0.14);
}
.cf-plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cf-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.cf-plan-name {
  margin: 4px 0 6px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cf-ink);
}
.cf-plan-tagline {
  margin: 0;
  color: var(--cf-muted);
  font-size: 0.95rem;
  line-height: 1.4;
}
.cf-plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 18px 0 6px;
}
.cf-plan-price-main {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--cf-ink);
  line-height: 1;
}
.cf-plan-price-unit {
  font-size: 1rem;
  font-weight: 600;
  color: var(--cf-muted);
}
.cf-plan-billing {
  margin: 0 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eef2f7;
  color: var(--cf-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}
.cf-plan-features {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  flex: 1;
}
.cf-plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.4;
}
.cf-plan-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--cf-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.cf-plan-cta {
  width: 100%;
  margin-top: auto;
}
.cf-plans-free-note {
  max-width: 640px;
  margin: 28px auto 0;
  text-align: center;
  color: var(--cf-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.cf-plans-free-note a {
  color: var(--cf-accent);
  font-weight: 700;
}

/* Footer */
.cf-footer {
  margin-top: 40px;
  padding: 48px 0 28px;
  background: #0b1220;
  color: #94a3b8;
}
.cf-footer .cf-logo { color: #fff; }
.cf-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 28px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}
.cf-footer-brand p {
  margin: 12px 0 16px;
  font-size: 0.92rem;
  max-width: 28ch;
  line-height: 1.55;
}
.cf-footer-heading {
  margin: 0 0 12px;
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.cf-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cf-footer-links li { margin-bottom: 8px; }
.cf-footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
}
.cf-footer-links a:hover { color: #fff; }
.cf-footer-bottom {
  padding-top: 20px;
  font-size: 0.85rem;
}
.cf-footer-bottom p { margin: 0 0 6px; }
.cf-footer-note a { color: #FFB74D; }

.cf-404 {
  text-align: center;
  padding: 80px 0;
}
.cf-404 h1 {
  font-size: 3rem;
  margin: 0 0 8px;
  letter-spacing: -0.04em;
}

@media (max-width: 900px) {
  .cf-grid-3,
  .cf-steps,
  .cf-footer-grid,
  .cf-pricing,
  .cf-plan-grid {
    grid-template-columns: 1fr;
  }
  .cf-nav-toggle { display: flex; }
  .cf-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    background: var(--cf-surface);
    border: 1px solid var(--cf-line);
    border-radius: 14px;
    padding: 12px;
    box-shadow: var(--cf-shadow);
  }
  .cf-nav.is-open { display: flex; }
  .cf-nav a { padding: 10px 12px; border-radius: 8px; }
  .cf-nav a:hover { background: var(--cf-bg); }
  .cf-lang-switch { margin: 4px 0 0; width: 100%; }
  .cf-lang-select { width: 100%; max-width: none; }
  .cf-header { position: relative; }
  .cf-header-inner { position: static; }
}

@keyframes cf-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes cf-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cf-hero {
  animation: cf-fade-up 0.55s ease both;
}
.cf-tool-section {
  /* no transform — keeps position:fixed modals viewport-scoped */
  animation: cf-fade-in 0.45s ease both;
  animation-delay: 0.08s;
}

@keyframes cf-swap {
  0%, 20% { opacity: 1; transform: translateY(0); }
  25%, 95% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 0; }
}
.cf-rotator-wrap {
  display: inline-grid;
  vertical-align: bottom;
}
.cf-rotator-wrap > span {
  grid-area: 1 / 1;
  opacity: 0;
  animation: cf-word 12s infinite;
}
.cf-rotator-wrap > span:nth-child(1) { animation-delay: 0s; }
.cf-rotator-wrap > span:nth-child(2) { animation-delay: 3s; }
.cf-rotator-wrap > span:nth-child(3) { animation-delay: 6s; }
.cf-rotator-wrap > span:nth-child(4) { animation-delay: 9s; }

@keyframes cf-word {
  0% { opacity: 0; transform: translateY(8px); }
  4% { opacity: 1; transform: translateY(0); }
  22% { opacity: 1; transform: translateY(0); }
  28% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 0; }
}

/* Members dark header */
.cf-header--members {
  background: #0b1220;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: none;
}
.cf-header--members:hover {
  border-bottom-color: rgba(148, 163, 184, 0.28);
}
.cf-header--members .cf-logo-text {
  color: #f8fafc;
}
.cf-members-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 2px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #042f2e;
  background: linear-gradient(135deg, #ffb74d, #F57C00);
}
.cf-nav--members a {
  color: #cbd5e1;
}
.cf-nav--members a:hover,
.cf-nav--members a.is-active {
  color: #fff;
}
.cf-btn-members-out {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
}
.cf-btn-members-out:hover {
  background: rgba(255, 255, 255, 0.14) !important;
}
.cf-header--members .cf-nav-toggle span {
  background: #e2e8f0;
}
.cf-members-main {
  padding: 18px 0 40px;
  min-height: calc(100vh - 140px);
}
.cf-members-tool {
  margin-top: 0;
}
.cf-members-footer {
  background: #0b1220;
  color: #94a3b8;
  padding: 18px 0 28px;
  font-size: 0.92rem;
}
.cf-members-footer a {
  color: #FFB74D;
  text-decoration: none;
}
.cf-members-footer a:hover {
  text-decoration: underline;
}
.cf-members-footer p {
  margin: 0;
  text-align: center;
}
body.cf-members-app {
  background: #f1f5f9;
}

/* Members area: no upgrade / unlock CTAs (user already has PRO access) */
body.cf-members-app #message_upgrade,
body.cf-members-app .cf-upgrade-banner,
body.cf-members-app .ci-unlock-full-song-wavesurfer,
body.cf-members-app .ci-unlock-marker-row {
  display: none !important;
}

/* Login loading overlay */
.cf-login-loading {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
}
.cf-login-loading[hidden] {
  display: none !important;
}
.cf-login-loading-card {
  width: min(92vw, 320px);
  background: #fff;
  border-radius: 18px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.cf-login-spinner {
  display: inline-block;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid #FFE0B2;
  border-top-color: #F57C00;
  animation: cf-spin 0.75s linear infinite;
  margin-bottom: 14px;
}
.cf-login-loading-title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}
.cf-login-loading-sub {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
}
@keyframes cf-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 860px) {
  .cf-header--members .cf-nav {
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.2);
  }
  .cf-header--members .cf-nav a:hover {
    background: rgba(255, 255, 255, 0.06);
  }
}
