/* Retirement Countdown Calculator — pastel suite styling (RC calculators) */

.rcc-app,
.rcc-app * {
  box-sizing: border-box;
}

.rcc-app {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #111827;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 1.0625rem;
  line-height: 1.52;
}

:root {
  --rcc-ink: #0f172a;
  --rcc-muted: #475569;
  --rcc-navy: #083141;
  --rcc-accent: #d97706;
  --rcc-teal: #0e7490;
}

.rcc-loading,
.rcc-load-error {
  display: block;
  width: 100%;
  max-width: 1180px;
  margin: 2rem auto;
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--rcc-muted);
  box-sizing: border-box;
}

.rcc-load-error {
  color: #991b1b;
  font-weight: 700;
}

#rcc-root.rcc-app,
.rcc-root.rcc-app {
  width: auto;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0 14px;
  box-sizing: border-box;
  overflow-x: hidden;
}

.rcc-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 18px 30px;
  border: 2px solid rgba(8, 49, 65, 0.18);
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.1);
  background: #fff;
  color: var(--rcc-ink);
}

.rcc-head {
  border: 1px solid rgba(8, 49, 65, 0.2);
  border-radius: 18px;
  padding: 22px;
  margin: 0 0 4px;
  background: linear-gradient(135deg, #fff 0%, #f0f9ff 48%, #e0f2fe 100%);
}

.rcc-eyebrow {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rcc-teal);
}

.rcc-title {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 3.6vw, 2.15rem);
  font-weight: 950;
  color: var(--rcc-navy);
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.rcc-sub {
  margin: 0;
  color: var(--rcc-muted);
  font-weight: 650;
  line-height: 1.55;
  max-width: 44rem;
}

.rcc-head-note {
  margin: 12px 0 0;
  color: #64748b;
  font-weight: 650;
  font-size: 0.76rem;
  line-height: 1.45;
}

.rcc-section-panel {
  margin: 0 0 20px;
  border: 2px solid rgba(8, 49, 65, 0.2);
  border-left: 5px solid var(--rcc-navy);
  border-radius: 16px;
  padding: 22px 20px 24px;
  background: linear-gradient(165deg, #f8fafc 0%, #fff 42%);
  box-shadow: 0 6px 22px rgba(8, 49, 65, 0.07);
}

.rcc-section-panel--inputs {
  margin-top: 28px;
  border-left-color: var(--rcc-navy);
}

.rcc-section-head {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 3vw, 1.45rem);
  font-weight: 950;
  color: var(--rcc-navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.rcc-method {
  margin: 20px 0 0;
  padding-bottom: 4px;
}

.rcc-method-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 720px) {
  .rcc-method-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.rcc-method-card {
  padding: 14px 14px 16px;
  border-radius: 14px;
  border: 1px solid #bae6fd;
  background: linear-gradient(165deg, #fff 0%, #f0f9ff 100%);
  text-align: center;
}

.rcc-method-emoji {
  font-size: 1.5rem;
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}

.rcc-method-k {
  margin: 0 0 4px;
  font-size: 0.88rem;
  font-weight: 900;
  color: var(--rcc-navy);
}

.rcc-method-v {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--rcc-muted);
  line-height: 1.5;
}

.rcc-card {
  margin-top: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px;
  background: #fff;
}

.rcc-card--inputs {
  border: 2px solid rgba(8, 49, 65, 0.2);
  border-left: 5px solid var(--rcc-navy);
  background: linear-gradient(165deg, #f8fafc 0%, #fff 42%);
  box-shadow: 0 6px 22px rgba(8, 49, 65, 0.07);
}

.rcc-card--results {
  border: 2px solid rgba(217, 119, 6, 0.22);
  border-left: 5px solid var(--rcc-accent);
  background: linear-gradient(165deg, #fffbeb 0%, #fff 45%);
  box-shadow: 0 8px 28px rgba(217, 119, 6, 0.08);
}

.rcc-h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  font-weight: 950;
  color: var(--rcc-navy);
  letter-spacing: -0.02em;
}

.rcc-results-heading {
  margin-top: 0;
}

.rcc-card-lead {
  margin: -4px 0 14px;
  color: var(--rcc-muted);
  font-weight: 650;
  font-size: 0.92rem;
  line-height: 1.55;
}

.rcc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .rcc-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.rcc-field {
  display: grid;
  gap: 6px;
}

.rcc-field--full {
  grid-column: 1 / -1;
}

.rcc-label {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--rcc-navy);
}

.rcc-hint {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 650;
  color: #64748b;
  line-height: 1.45;
}

.rcc-input {
  width: 100%;
  padding: 12px;
  border: 2px solid rgba(8, 49, 65, 0.2);
  border-radius: 12px;
  box-sizing: border-box;
  font-size: max(16px, 1rem);
}

.rcc-input:focus {
  outline: none;
  border-color: rgba(14, 116, 144, 0.55);
  box-shadow: 0 0 0 5px rgba(14, 116, 144, 0.12);
}

.rcc-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 650;
  color: #334155;
  line-height: 1.45;
  cursor: pointer;
}

.rcc-check-input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--rcc-teal);
}

.rcc-quick-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
}

.rcc-quick-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--rcc-navy);
  margin-right: 4px;
}

.rcc-quick-btn {
  border: 1px solid rgba(8, 49, 65, 0.25);
  background: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--rcc-navy);
  cursor: pointer;
}

.rcc-quick-btn:hover {
  border-color: var(--rcc-navy);
  background: #f1f5f9;
}

.rcc-quick-btn--active {
  border: 2px solid var(--rcc-accent);
  background: linear-gradient(180deg, #fffbeb 0%, #ffedd5 100%);
  color: #9a3412;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.22);
}

.rcc-quick-btn--active:hover {
  border-color: var(--rcc-accent);
  background: linear-gradient(180deg, #fffbeb 0%, #ffedd5 100%);
}

.rcc-results-host {
  min-height: 80px;
  margin-top: 20px;
}

.rcc-results-title {
  margin: 0 0 16px;
  font-size: clamp(1.55rem, 4vw, 2rem);
  font-weight: 950;
  color: var(--rcc-navy);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* Results — countdown hero */
.rcc-kpi-shell {
  margin: 0 0 20px;
  padding: 22px 20px 24px;
  border-radius: 18px;
  border: 2px solid rgba(8, 49, 65, 0.22);
  border-left: 6px solid var(--rcc-navy);
  background: linear-gradient(165deg, #fffbeb 0%, #fff 50%);
  box-shadow: 0 12px 36px rgba(8, 49, 65, 0.1);
}

@keyframes rcc-confetti-fall {
  0% {
    transform: translate3d(0, -120%, 0) rotate(-8deg);
    opacity: 0;
  }
  12% {
    opacity: 0.95;
  }
  88% {
    opacity: 0.75;
  }
  100% {
    transform: translate3d(12px, 220%, 0) rotate(18deg);
    opacity: 0;
  }
}

.rcc-celebration {
  position: relative;
  border-radius: 16px;
  border: 2px solid rgba(8, 49, 65, 0.18);
  background: linear-gradient(135deg, #fff 0%, #e0f2fe 100%);
  color: var(--rcc-ink);
  padding: 22px 20px 24px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(8, 49, 65, 0.1);
  margin-bottom: 18px;
}

.rcc-celebration__rain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.rcc-celebration__drop {
  position: absolute;
  top: -15%;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  line-height: 1;
  animation: rcc-confetti-fall linear infinite;
  will-change: transform, opacity;
  opacity: 0.85;
}

.rcc-celebration__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px 22px;
  flex-wrap: wrap;
}

.rcc-celebration__gifCell {
  flex: 0 0 auto;
  position: relative;
  max-width: min(200px, 42vw);
}

.rcc-celebration__gif {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 2px solid rgba(8, 49, 65, 0.12);
  box-shadow: 0 8px 20px rgba(8, 49, 65, 0.12);
  object-fit: cover;
  aspect-ratio: 1;
  background: #f8fafc;
}

.rcc-celebration__emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(200px, 42vw);
  aspect-ratio: 1;
  font-size: clamp(3rem, 12vw, 4.5rem);
  border-radius: 14px;
  border: 2px solid rgba(8, 49, 65, 0.1);
  background: linear-gradient(145deg, #f8fafc, #e2e8f0);
}

.rcc-celebration__words {
  flex: 1 1 220px;
  min-width: min(100%, 220px);
}

.rcc-celebration__label {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #0369a1;
  line-height: 1.35;
}

.rcc-celebration__figure {
  margin: 0 0 6px;
  font-size: clamp(3rem, 10vw, 4.5rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--rcc-navy);
  font-variant-numeric: tabular-nums;
}

.rcc-celebration__unit {
  margin: 0 0 14px;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 900;
  color: #b45309;
}

.rcc-celebration__plan {
  margin: 0 0 12px;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--rcc-muted);
}

.rcc-celebration__badge {
  margin: 0 0 8px;
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  font-weight: 900;
  color: var(--rcc-navy);
  line-height: 1.35;
}

.rcc-celebration__pitch {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  color: #1e293b;
  max-width: 36em;
}

.rcc-celebration--retired {
  border-color: rgba(22, 163, 74, 0.28);
  background: linear-gradient(135deg, #fff 0%, #ecfdf5 100%);
}

.rcc-impact-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 560px) {
  .rcc-impact-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.rcc-impact-stat {
  padding: 16px 14px 18px;
  border-radius: 14px;
  border: 2px solid rgba(8, 49, 65, 0.14);
  background: #fff;
  text-align: center;
  box-shadow: 0 6px 18px rgba(8, 49, 65, 0.07);
}

.rcc-impact-stat--calendar {
  border-top: 4px solid var(--rcc-navy);
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.rcc-impact-stat--years {
  border-top: 4px solid var(--rcc-accent);
  background: linear-gradient(180deg, #fff7ed 0%, #fff 100%);
}

.rcc-impact-stat--pattern {
  border-top: 4px solid var(--rcc-teal);
  background: linear-gradient(180deg, #f0f9ff 0%, #fff 100%);
}

.rcc-impact-stat-val {
  display: block;
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  font-weight: 950;
  color: var(--rcc-navy);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.rcc-impact-stat--years .rcc-impact-stat-val {
  color: #9a3412;
}

.rcc-impact-stat--pattern .rcc-impact-stat-val {
  color: #0e7490;
}

.rcc-impact-stat-lbl {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #475569;
  line-height: 1.35;
}

/* What this means */
.rcc-plain {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.rcc-plain-title {
  margin: 0 0 12px;
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  font-weight: 950;
  color: var(--rcc-navy);
  letter-spacing: -0.02em;
}

.rcc-plain-compare {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.rcc-plain-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.rcc-plain-line-lbl {
  font-size: 0.88rem;
  font-weight: 750;
  color: #475569;
}

.rcc-plain-line-val {
  font-size: 1.35rem;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  color: #475569;
}

.rcc-plain-line-val--work {
  color: var(--rcc-accent);
  font-size: 1.5rem;
}

.rcc-plain-p {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 650;
  color: #334155;
  line-height: 1.55;
}

.rcc-plain-p--tip {
  padding: 10px 12px;
  border-radius: 10px;
  border-left: 4px solid var(--rcc-accent);
  background: #fffbeb;
}

.rcc-plain-legal {
  margin: 12px 0 0;
  font-size: 0.76rem;
  font-weight: 650;
  color: #64748b;
  line-height: 1.45;
}

.rcc-compare-block {
  margin: 0 0 20px;
  padding: 18px 18px 20px;
  border-radius: 16px;
  border: 2px solid rgba(8, 49, 65, 0.2);
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  box-shadow: 0 8px 24px rgba(8, 49, 65, 0.08);
}

.rcc-compare-title {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 950;
  color: var(--rcc-navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.rcc-compare-hint {
  margin: 0 0 14px;
  font-size: 0.92rem;
  font-weight: 650;
  color: #334155;
  line-height: 1.5;
  max-width: 42rem;
}

.rcc-compare-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rcc-compare-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 76px;
  padding: 12px 10px;
  border: 2px solid rgba(8, 49, 65, 0.25);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
  box-shadow: 0 4px 12px rgba(8, 49, 65, 0.06);
}

.rcc-compare-btn:hover {
  border-color: var(--rcc-navy);
  background: #f8fafc;
}

.rcc-compare-btn--active {
  border-color: var(--rcc-accent);
  background: linear-gradient(180deg, #fffbeb 0%, #ffedd5 100%);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.28);
  color: var(--rcc-navy);
}

.rcc-compare-age {
  font-size: 1.2rem;
  font-weight: 950;
  line-height: 1.1;
  color: var(--rcc-navy);
}

.rcc-compare-days {
  font-size: 0.92rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
  color: #334155;
}

.rcc-compare-diff {
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0.85;
  margin-top: 2px;
  color: #64748b;
}

.rcc-compare-btn--active .rcc-compare-age {
  color: #9a3412;
}

.rcc-compare-btn--active .rcc-compare-days {
  color: var(--rcc-navy);
}

.rcc-compare-btn--active .rcc-compare-diff {
  color: #b45309;
  opacity: 1;
}

/* Behind the numbers — extra breakdown */
.rcc-detail-section {
  margin: 0 0 20px;
  padding: 22px 20px 24px;
  border-radius: 18px;
  border: 2px solid rgba(8, 49, 65, 0.16);
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  box-shadow: 0 10px 28px rgba(8, 49, 65, 0.07);
}

.rcc-detail-title {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 950;
  color: var(--rcc-navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.rcc-detail-lead {
  margin: 0 0 18px;
  font-size: 0.92rem;
  font-weight: 650;
  color: #475569;
  line-height: 1.5;
  max-width: 40rem;
}

.rcc-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 520px) {
  .rcc-detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .rcc-detail-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.rcc-detail-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 14px;
  border-radius: 14px;
  border: 2px solid #e2e8f0;
  background: #fff;
  border-top-width: 4px;
  box-shadow: 0 4px 14px rgba(8, 49, 65, 0.05);
}

.rcc-detail-stat--weeks {
  border-top-color: var(--rcc-navy);
}

.rcc-detail-stat--months {
  border-top-color: #0369a1;
}

.rcc-detail-stat--weekends {
  border-top-color: #64748b;
}

.rcc-detail-stat--gross {
  border-top-color: #0e7490;
}

.rcc-detail-stat--leave {
  border-top-color: #7c3aed;
}

.rcc-detail-stat--bank {
  border-top-color: #059669;
}

.rcc-detail-stat--off {
  border-top-color: var(--rcc-accent);
  background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
}

.rcc-detail-stat--done {
  border-top-color: #16a34a;
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
}

.rcc-detail-stat--career {
  border-top-color: #b45309;
}

.rcc-detail-stat-lbl {
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  line-height: 1.35;
}

.rcc-detail-stat-val {
  font-size: clamp(1.35rem, 3.5vw, 1.65rem);
  font-weight: 950;
  color: var(--rcc-navy);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.rcc-detail-stat--off .rcc-detail-stat-val,
.rcc-detail-stat--done .rcc-detail-stat-val {
  color: #9a3412;
}

.rcc-detail-stat--done .rcc-detail-stat-val {
  color: #15803d;
}

.rcc-detail-stat-note {
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 650;
  color: #64748b;
  line-height: 1.4;
}

.rcc-warning {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid rgba(217, 119, 6, 0.4);
  background: #fffbeb;
  color: #92400e;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.45;
}

/* Export CTA (aligned with business-sale-retirement-calculator) */
.rcc-export {
  margin-top: 22px;
  padding: 22px 20px 24px;
  border-radius: 16px;
  border: 2px solid rgba(8, 49, 65, 0.28);
  background: linear-gradient(135deg, #fff 0%, #ecfeff 100%);
  text-align: center;
  box-shadow: 0 12px 32px rgba(8, 49, 65, 0.1);
}

.rcc-export-title {
  margin: 0 0 8px;
  color: var(--rcc-navy);
  font-size: clamp(1.25rem, 3.25vw, 1.58rem);
  font-weight: 950;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.rcc-export-sub {
  margin: 0 auto 16px;
  max-width: 36rem;
  color: var(--rcc-muted);
  font-weight: 650;
  font-size: 0.92rem;
  line-height: 1.5;
}

.rcc-snapshot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 480px) {
  .rcc-snapshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 720px) {
  .rcc-snapshot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.rcc-snapshot-item {
  border: 2px solid #e2e8f0;
  border-top: 3px solid var(--rcc-teal);
  background: #fff;
  border-radius: 12px;
  padding: 12px 12px 14px;
  box-shadow: 0 4px 12px rgba(8, 49, 65, 0.05);
}

.rcc-snapshot-item:nth-child(1) {
  border-top-color: var(--rcc-navy);
}

.rcc-snapshot-item:nth-child(2) {
  border-top-color: #0369a1;
}

.rcc-snapshot-item:nth-child(3) {
  border-top-color: var(--rcc-accent);
}

.rcc-snapshot-key {
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 4px;
  line-height: 1.3;
}

.rcc-snapshot-val {
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  font-weight: 950;
  color: var(--rcc-navy);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.rcc-snapshot-title {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rcc-teal);
  text-align: left;
}

.rcc-export-btn {
  width: 100%;
  max-width: 420px;
  padding: 17px 18px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 950;
  font-family: inherit;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #0e7490 0%, var(--rcc-navy) 55%, #062a38 100%);
  box-shadow: 0 6px 0 #062a38, 0 16px 34px rgba(8, 49, 65, 0.32);
  transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.rcc-export-btn:hover:not(:disabled) {
  filter: brightness(1.04);
}

.rcc-export-btn:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 3px 0 #062a38, 0 8px 20px rgba(8, 49, 65, 0.26);
}

.rcc-export-btn:focus-visible {
  outline: 3px solid #38bdf8;
  outline-offset: 3px;
}

.rcc-export-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  filter: grayscale(0.15);
}

.rcc-methodology-details {
  margin-top: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
}

.rcc-methodology-summary {
  padding: 14px 18px;
  font-weight: 850;
  color: var(--rcc-navy);
  cursor: pointer;
  background: #f8fafc;
  list-style: none;
}

.rcc-methodology-summary::-webkit-details-marker {
  display: none;
}

.rcc-methodology-body {
  padding: 0 18px 16px;
}

.rcc-methodology-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.88rem;
  font-weight: 650;
  color: #334155;
  line-height: 1.55;
}

.rcc-methodology-list li {
  margin-bottom: 8px;
}

body.rcc-modal-open {
  overflow: hidden;
}

.rcc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  box-sizing: border-box;
  overflow-y: auto;
}

.rcc-modal {
  width: 100%;
  max-width: 520px;
  max-height: min(92vh, calc(100dvh - 32px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  border: 3px solid var(--rcc-navy);
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.35);
  box-sizing: border-box;
}

.rcc-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 22px;
  background: linear-gradient(135deg, var(--rcc-navy), #0a4a5f);
  color: #fff;
}

.rcc-modal-header-text {
  min-width: 0;
  flex: 1;
}

.rcc-modal-header h3 {
  margin: 0;
  font-size: clamp(1.15rem, 4vw, 1.45rem);
  font-weight: 950;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.rcc-modal-header-sub {
  margin: 10px 0 0;
  font-size: 0.875rem;
  font-weight: 550;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
}

.rcc-modal-close {
  flex-shrink: 0;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.rcc-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.rcc-modal-body {
  padding: 22px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.rcc-modal-body .rcc-snapshot-grid {
  margin: 0 0 16px;
}

.rcc-modal-lead {
  margin: 0 0 12px;
  font-size: 0.9rem;
  font-weight: 650;
  color: #334155;
  line-height: 1.5;
}

.rcc-modal-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--rcc-navy);
}

.rcc-modal-input {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: 2px solid rgba(8, 49, 65, 0.2);
  border-radius: 10px;
  box-sizing: border-box;
  font-size: max(16px, 1rem);
  font-family: inherit;
}

.rcc-modal-input:focus {
  outline: none;
  border-color: var(--rcc-teal);
  box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.15);
}

.rcc-modal-error {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.4;
}

.rcc-modal-success {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  font-weight: 750;
  line-height: 1.45;
}

.rcc-modal-trust {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 100%);
  border: 1px solid rgba(16, 185, 129, 0.28);
  font-size: 0.84rem;
  font-weight: 700;
  color: #065f46;
  line-height: 1.45;
}

.rcc-modal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 22px 22px;
  border-top: 1px solid #e2e8f0;
}

.rcc-modal-submit {
  padding: 14px 22px;
  font-size: 1rem;
  font-weight: 950;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(180deg, #0e7490 0%, var(--rcc-navy) 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(8, 49, 65, 0.25);
}

.rcc-modal-submit:hover:not(:disabled) {
  filter: brightness(1.05);
}

.rcc-modal-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.rcc-modal-secondary {
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 800;
  font-family: inherit;
  background: #fff;
  border: 2px solid rgba(8, 49, 65, 0.2);
  border-radius: 10px;
  cursor: pointer;
  color: var(--rcc-navy);
}

@media (max-width: 520px) {
  #rcc-root.rcc-app,
  .rcc-root.rcc-app {
    padding: 0 10px;
  }

  .rcc-wrap {
    padding: 16px 12px 22px;
    border-radius: 16px;
  }

  .rcc-head {
    padding: 16px;
  }

  .rcc-celebration__inner {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .rcc-celebration__gifCell {
    align-self: center;
    max-width: 180px;
  }

  .rcc-compare-btn {
    min-width: calc(33% - 8px);
    flex: 1 1 auto;
  }

  .rcc-modal-footer {
    flex-direction: column;
  }

  .rcc-modal-submit,
  .rcc-modal-secondary {
    width: 100%;
  }

  .rcc-modal-body .rcc-snapshot-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rcc-celebration__drop {
    animation: none !important;
    opacity: 0.3;
    transform: translate3d(0, 40%, 0);
  }
}
