/* RepRecord — Main Stylesheet */

/* === BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
input, select, textarea { font: inherit; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 {
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { max-width: 68ch; }
p + p { margin-top: 1em; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
  display: block;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header p {
  margin-top: 1rem;
  color: var(--text-muted);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-text);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--btn-hover-bg);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--btn-outline-text);
  border: 2px solid var(--btn-outline-border);
}

.btn-outline:hover {
  background: var(--surface);
}

.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; border-radius: 12px; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.875rem; border-radius: 8px; }
.btn-block { width: 100%; justify-content: center; }

.play-badge {
  display: inline-flex;
  height: 44px;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, opacity 0.15s;
  vertical-align: middle;
}

.play-badge:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.play-badge img {
  height: 100%;
  max-height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* === CARDS === */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface-variant);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--primary);
}

.card-icon svg { width: 24px; height: 24px; }

/* === NAVIGATION === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s, border-color 0.3s;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 64px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--primary);
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-link {
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.nav-link:hover, .nav-link.active {
  background: var(--surface);
  color: var(--primary);
}

/* Dropdown Styles */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}

.nav-dropdown:hover .nav-dropdown-trigger {
  background: var(--surface);
  color: var(--primary);
}

.nav-dropdown-content {
  position: absolute;
  top: calc(100% - 2px); /* Slight overlap to prevent hover gap */
  right: 0;
  min-width: 190px;
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  border-radius: 12px;
  padding: 0.6rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-content,
.nav-dropdown:focus-within .nav-dropdown-content {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.nav-dropdown-content .nav-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.7rem 1rem;
  color: var(--text); /* Higher contrast */
  font-weight: 600;
}

.nav-dropdown-content .nav-link:hover {
  background: var(--surface-variant);
  color: var(--primary);
}

.nav-cta {
  margin-left: 0.5rem;
}

.nav-mobile-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text);
  margin-left: auto;
}

.nav-mobile-btn:hover { background: var(--surface); }

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--nav-bg);
  gap: 0.25rem;
}

.nav-mobile-menu.open { display: flex; }

.nav-mobile-menu .nav-link {
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
}

/* === THEME PICKER === */
.theme-picker {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
}

.theme-picker-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--btn-bg);
  color: var(--btn-text);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.theme-picker-btn:hover { transform: scale(1.08); }
.theme-picker-btn svg { width: 22px; height: 22px; }

.theme-panel {
  position: absolute;
  bottom: 64px;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  width: 220px;
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.theme-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.theme-panel-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.theme-options {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.theme-option-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1.5px solid transparent;
  width: 100%;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  transition: background 0.15s, border-color 0.15s;
  cursor: pointer;
  background: none;
}

.theme-option-btn:hover { background: var(--surface-variant); }

.theme-option-btn.selected {
  border-color: var(--primary);
  background: var(--surface-variant);
}

.theme-swatch {
  display: flex;
  width: 32px;
  height: 22px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.theme-swatch span {
  flex: 1;
  display: block;
}

/* === HERO === */
.hero {
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.hero-content {
  max-width: 640px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-carousel {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-item {
  position: absolute;
  width: 220px;
  aspect-ratio: 9/19;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease, z-index 0.5s ease;
  will-change: transform, opacity;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-item.active {
  transform: translateX(0) scale(1);
  z-index: 3;
  opacity: 1;
  box-shadow: var(--shadow-lg);
}

.carousel-item.prev {
  transform: translateX(-55%) scale(0.85);
  z-index: 2;
  opacity: 0.6;
  cursor: pointer;
}

.carousel-item.next {
  transform: translateX(55%) scale(0.85);
  z-index: 2;
  opacity: 0.6;
  cursor: pointer;
}

.carousel-item.hidden {
  transform: translateX(0) scale(0.8);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  color: var(--primary);
  z-index: 10;
  transition: transform 0.2s, background 0.2s;
}

.carousel-btn:hover {
  background: var(--surface);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-indicators {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
  background: rgba(0,0,0,0.4);
  padding: 0.4rem 0.6rem;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.indicator.active {
  background: #FFFFFF;
  transform: scale(1.2);
}

.hero h1 {
  color: var(--text);
  margin-bottom: 1.25rem;
}

.hero h1 .accent { color: var(--primary); }

.hero .lead {
  margin-bottom: 2rem;
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.35rem 0.85rem 0.35rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

/* === FEATURE CARDS === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.feature-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-variant);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: none;
}

/* === SCIENCE SECTION === */
.science-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.science-block:first-child { border-top: none; padding-top: 0; }

.science-block.reverse { direction: rtl; }
.science-block.reverse > * { direction: ltr; }

.science-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* === VOLUME LANDMARK CHARTS === */
.vlc-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.vlc-item {
  width: 100%;
}

.vlc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 0.5rem;
}

.vlc-muscle-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vlc-current-val {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.vlc-track {
  height: 32px;
  background: var(--surface-variant);
  border-radius: 8px;
  display: flex;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
}

.vlc-zone {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  transition: opacity 0.2s;
}

.vlc-zone.low { background: var(--alert); opacity: 0.6; }
.vlc-zone.mev { background: var(--chart-bar-ok); opacity: 0.7; }
.vlc-zone.mav { background: var(--primary); color: var(--on-primary); }
.vlc-zone.mrv { background: var(--chart-bar-high); opacity: 0.8; }
.vlc-zone.over { background: var(--alert); opacity: 0.8; }


.vlc-pointer {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--text);
  box-shadow: 0 0 0 2px var(--bg), 0 4px 12px rgba(0,0,0,0.2);
  z-index: 10;
  border-radius: 2px;
  transform: translateX(-50%);
  transition: left 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vlc-pointer::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--text);
}

.vlc-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  padding: 0 2px;
}

.vlc-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
}


/* === STATS ROW === */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 3rem 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  display: block;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* === CTA SECTION === */
.cta-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 0;
  text-align: center;
}

.cta-section h2 { margin-bottom: 1rem; }
.cta-section p {
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* === PLAN BUILDER PAGE === */
.plan-builder-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.day-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.day-card:hover {
  border-color: var(--primary);
  background: var(--surface);
  transform: translateY(-2px);
}

.day-card.rest-day {
  opacity: 0.65;
}

.day-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.day-emoji {
  font-size: 1.5rem;
  line-height: 1;
}

.day-workout-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}

/* Workout selector modal */
.workout-modal {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.workout-modal.open {
  opacity: 1;
  pointer-events: all;
}

.workout-modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.2s;
}

.workout-modal.open .workout-modal-box { transform: translateY(0); }

.workout-modal-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.workout-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.workout-option {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--card-bg);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}

.workout-option:hover {
  border-color: var(--primary);
  background: var(--surface-variant);
}

.workout-option.selected {
  border-color: var(--primary);
  background: var(--surface-variant);
}

.workout-option-emoji { font-size: 1.25rem; display: block; margin-bottom: 0.3rem; }
.workout-option-name { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.workout-option-desc { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.1rem; line-height: 1.4; }

/* Score panel */
.score-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem;
  position: sticky;
  top: 80px;
}

.score-ring-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.75rem;
}

.score-ring-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 0.5rem;
}

.score-ring-svg {
  width: 140px;
  height: 140px;
  transform: rotate(-90deg);
}

.score-ring-track {
  fill: none;
  stroke: var(--score-track);
  stroke-width: 10;
}

.score-ring-fill {
  fill: none;
  stroke: var(--score-fill);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 326.73;
  transition: stroke-dashoffset 0.5s ease;
}

.score-number-display {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-number-display .score-num {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}

.score-number-display .score-max {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.score-grade {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.score-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.score-breakdown-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.score-breakdown-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
}

.score-breakdown-label span:last-child { color: var(--primary); }

.score-bar-track {
  height: 6px;
  background: var(--score-track);
  border-radius: 3px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  background: var(--score-fill);
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* Muscle volume chart in plan builder */
.muscle-chart {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.muscle-chart-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.muscle-row {
  display: grid;
  grid-template-columns: 90px 1fr 30px;
  align-items: center;
  gap: 0.5rem;
}

.muscle-row-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: right;
}

.muscle-bar-track {
  height: 10px;
  background: var(--surface-variant);
  border-radius: 5px;
  position: relative;
  overflow: visible;
}

.muscle-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.35s ease, background 0.3s;
  max-width: 100%;
}

.muscle-bar-fill.status-none { background: transparent; }
.muscle-bar-fill.status-low { background: var(--chart-bar-low); opacity: 0.75; }
.muscle-bar-fill.status-ok { background: var(--chart-bar-ok); }
.muscle-bar-fill.status-high { background: var(--chart-bar-high); }

.muscle-mev-marker, .muscle-mrv-marker {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  border-radius: 1px;
}

.muscle-mev-marker { background: var(--text-muted); opacity: 0.4; }
.muscle-mrv-marker { background: var(--alert); opacity: 0.5; }

.muscle-row-sets {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Preset buttons */
.presets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.preset-btn {
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--card-bg);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.preset-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--surface);
}

/* Export section */
.export-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.export-url {
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  word-break: break-all;
  margin: 0.75rem 0;
  font-family: 'Courier New', monospace;
}

/* === SCIENCE PAGE SPECIFIC === */
.landmark-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
}

.landmark-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.landmark-abbr {
  display: inline-block;
  background: var(--surface-variant);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 5px;
  margin-bottom: 0.6rem;
}

.reference-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.reference-item {
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.reference-item cite {
  font-style: normal;
  color: var(--text);
  font-weight: 600;
}

/* === LEGAL PAGES === */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 0;
}

.legal-content h1 { margin-bottom: 0.5rem; }
.legal-content .legal-date { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 3rem; }
.legal-content h2 { font-size: 1.3rem; margin: 2.5rem 0 0.75rem; }
.legal-content h3 { font-size: 1rem; margin: 1.5rem 0 0.5rem; }
.legal-content p { color: var(--text-muted); line-height: 1.75; margin-bottom: 0.75rem; max-width: none; }
.legal-content ul { list-style: disc; padding-left: 1.5rem; color: var(--text-muted); line-height: 1.75; }
.legal-content ul li { margin-bottom: 0.25rem; }
.legal-content a { color: var(--primary); text-decoration: underline; }

/* === FOOTER === */
.footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 26ch;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-subtle);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* === ANIMATIONS === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fadeUp 0.5s ease both;
}

/* === RESPONSIVE === */
@media (max-width: 960px) {
  .plan-builder-layout {
    grid-template-columns: 1fr;
  }

  .score-panel {
    position: static;
    order: -1;
  }

  .features-grid { grid-template-columns: repeat(2, 1fr); }

  .science-block {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .science-block.reverse { direction: ltr; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-mobile-btn { display: flex; }

  .hero { padding: 4rem 0 3rem; }

  .section { padding: 3.5rem 0; }

  .features-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .stats-row { grid-template-columns: 1fr; gap: 1.5rem; }

  .week-grid { grid-template-columns: repeat(4, 1fr); }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .week-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .workout-options-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

/* === PLAN BUILDER APP-LIKE THEME OVERRIDES === */
.app-builder-page {
  background: #06070d;
  color: #f0f2f8;
}

.app-builder-page .nav,
.app-builder-page .footer,
.app-builder-page section[style*='background: var(--surface)'] {
  background: #10121c !important;
  border-color: rgba(255, 255, 255, 0.08);
}

.app-builder-page .plan-builder-layout,
.app-builder-page .day-editor-card,
.app-builder-page .score-panel,
.app-builder-page .muscle-chart,
.app-builder-page .workout-modal-box {
  color: #f0f2f8;
}

.app-builder-page .week-grid {
  gap: 0.9rem;
}

.app-builder-page .day-card {
  background: linear-gradient(155deg, #151826, #0e1018);
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  min-height: 124px;
}

.app-builder-page .day-card.active {
  border-color: #d845ff;
  box-shadow: 0 0 0 1px rgba(216, 69, 255, 0.3), inset 0 0 14px rgba(216, 69, 255, 0.15);
}

.app-builder-page .day-count {
  font-size: 0.68rem;
  color: #9aa0b6;
}

.day-editor-card {
  margin-top: 0.7rem;
  background: linear-gradient(160deg, #151826, #0f111a);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 1rem;
}

.day-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.day-editor-actions { display: flex; gap: 0.5rem; }

#dayExerciseList { display: flex; flex-direction: column; gap: 0.6rem; }

.selected-exercise-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03);
}

.selected-exercise-name { font-weight: 700; font-size: 0.92rem; }
.selected-exercise-meta { font-size: 0.78rem; color: #9aa0b6; }

.set-controls { display: flex; align-items: center; gap: 0.45rem; font-size: 0.82rem; }
.set-btn, .remove-btn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  color: #f0f2f8;
  background: rgba(255,255,255,0.03);
}

.empty-state {
  border: 1px dashed rgba(255,255,255,0.24);
  border-radius: 12px;
  padding: 1rem;
  color: #9aa0b6;
  text-align: center;
}

.app-builder-page .score-panel,
.app-builder-page .workout-modal-box,
.app-builder-page .workout-option,
.app-builder-page .export-url,
.app-builder-page .card,
.app-builder-page .muscle-row,
.app-builder-page .muscle-bar-track,
.app-builder-page div[style*='background: var(--card-bg)'],
.app-builder-page div[style*='background: var(--surface)'] {
  background-color: #111421 !important;
}

.exercise-search {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #f0f2f8;
  padding: 0.7rem 0.8rem;
  margin-bottom: 0.7rem;
}

.app-builder-page .workout-options-grid {
  grid-template-columns: 1fr;
  max-height: 58vh;
  overflow: auto;
}

.app-builder-page .workout-option {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.13);
}

.app-builder-page .workout-option-desc,
.app-builder-page .lead,
.app-builder-page .text-muted,
.app-builder-page p,
.app-builder-page span[style*='color: var(--text-muted)'] {
  color: #a2a7b8 !important;
}

@media (max-width: 720px) {
  .day-editor-header { flex-direction: column; align-items: flex-start; }
  .day-editor-actions { width: 100%; }
  .day-editor-actions .btn { flex: 1; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PLAN BUILDER v2 — New Components
   ═══════════════════════════════════════════════════════════════════════════ */

/* Top layout: day planner + donut side by side */
.planner-top-layout {
  display: grid;
  grid-template-columns: 1fr 248px;
  gap: 1.25rem;
  align-items: start;
}

/* Planner panel */
.planner-panel {
  background: linear-gradient(160deg, #151826, #0f111a);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 1.5rem;
}

.planner-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Week navigation controls */
.week-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.week-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #f0f2f8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

.week-nav-btn:disabled { opacity: 0.3; cursor: default; }
.week-nav-btn:not(:disabled):hover { background: rgba(255, 255, 255, 0.1); }

.week-nav-label {
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 58px;
  text-align: center;
  color: #f0f2f8;
}

.week-nav-of { color: #9aa0b6; font-size: 0.8rem; }

.week-count-input {
  width: 42px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #f0f2f8;
  padding: 0.3rem 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}

.week-count-input::-webkit-inner-spin-button,
.week-count-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.week-grid.pb2 { margin-bottom: 1rem; }

.planner-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Donut panel */
.donut-panel {
  background: linear-gradient(160deg, #151826, #0f111a);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.donut-panel-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9aa0b6;
  align-self: flex-start;
}

.donut-chart-wrap { position: relative; }

.donut-legend {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.donut-legend-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
}

.donut-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.donut-legend-name {
  flex: 1;
  color: #c8ccd8;
}

.donut-legend-val {
  font-size: 0.74rem;
  font-weight: 700;
  color: #f0f2f8;
  min-width: 28px;
  text-align: right;
}

/* Day assignment popup */
.day-picker {
  position: absolute;
  z-index: 500;
}

.day-picker-box {
  background: #1a1d2e;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 1rem;
  min-width: 220px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.day-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #f0f2f8;
  gap: 0.5rem;
}

.icon-close-btn {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #9aa0b6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

.icon-close-btn:hover { background: rgba(255, 255, 255, 0.1); color: #f0f2f8; }

.day-picker-options {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 280px;
  overflow-y: auto;
}

.day-picker-opt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #c8ccd8;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background 0.15s, border-color 0.15s;
}

.day-picker-opt:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.2); }
.day-picker-opt.selected { border-color: #d845ff; background: rgba(216, 69, 255, 0.12); color: #f0f2f8; }

.day-picker-opt-icon { font-size: 1rem; flex-shrink: 0; }
.day-picker-opt-count { margin-left: auto; font-size: 0.7rem; color: #9aa0b6; }

/* Workout builder section header */
.workout-builder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.export-placeholder-btn {
  opacity: 0.55;
  cursor: not-allowed !important;
}

/* Workout cards grid */
.workout-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
}

/* Individual workout card */
.workout-card {
  background: linear-gradient(155deg, #151826, #0e1018);
  border: 1.5px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.workout-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.workout-name-input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: #f0f2f8;
  padding: 0.45rem 0.7rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.workout-name-input:focus { outline: none; border-color: rgba(216, 69, 255, 0.55); }

.workout-card-delete {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.03);
  color: #9aa0b6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.workout-card-delete:hover {
  background: rgba(255, 80, 80, 0.12);
  color: #ff7875;
  border-color: rgba(255, 80, 80, 0.3);
}

.workout-exercise-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 36px;
}

.workout-ex-empty {
  color: #6b7080;
  font-size: 0.78rem;
  text-align: center;
  padding: 0.65rem 0;
  border: 1px dashed rgba(255, 255, 255, 0.13);
  border-radius: 9px;
}

.workout-ex-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.02);
}

.workout-ex-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f0f2f8;
  line-height: 1.3;
}

.workout-ex-meta {
  font-size: 0.69rem;
  color: #9aa0b6;
  margin-top: 0.1rem;
}

.workout-ex-controls {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.workout-ex-sets {
  font-size: 0.8rem;
  font-weight: 700;
  color: #f0f2f8;
  min-width: 22px;
  text-align: center;
}

.workout-add-exercise-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.02);
  color: #9aa0b6;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.workout-add-exercise-btn:hover {
  background: rgba(216, 69, 255, 0.08);
  border-color: rgba(216, 69, 255, 0.4);
  color: #d845ff;
}

/* Add new workout card */
.workout-add-card {
  background: rgba(255, 255, 255, 0.02);
  border: 2px dashed rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  cursor: pointer;
  color: #6b7080;
  min-height: 130px;
  width: 100%;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.workout-add-card:hover {
  background: rgba(216, 69, 255, 0.06);
  border-color: rgba(216, 69, 255, 0.4);
  color: #d845ff;
}

.workout-add-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
}

.workout-add-card span {
  font-size: 0.83rem;
  font-weight: 700;
}

/* Responsive overrides for new layout */
@media (max-width: 1100px) {
  .workout-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .planner-top-layout { grid-template-columns: 1fr; }
  .donut-panel { flex-direction: row; align-items: flex-start; flex-wrap: wrap; }
  .donut-panel-title { width: 100%; }
}

@media (max-width: 640px) {
  .workout-cards-grid { grid-template-columns: 1fr; }
  .planner-panel-header { flex-direction: column; align-items: flex-start; }
}

/* === COOKIE / PRIVACY NOTICE BANNER === */
#rr-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--surface);
  border-top: 1px solid var(--border-strong);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
  padding: 1rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#rr-cookie-banner.rr-banner-visible {
  transform: translateY(0);
}

#rr-cookie-banner.rr-banner-hiding {
  transform: translateY(100%);
  pointer-events: none;
}

.rr-banner-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.rr-banner-text {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  flex: 1;
  min-width: 260px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.rr-banner-icon {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 1px;
}

.rr-banner-text strong {
  color: var(--text);
}

.rr-banner-text code {
  font-size: 0.8rem;
  background: var(--surface-variant);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.05em 0.35em;
  color: var(--primary);
}

.rr-banner-text a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.rr-banner-text a:hover {
  opacity: 0.8;
}

.rr-banner-btn {
  flex-shrink: 0;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 0.875rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.rr-banner-btn:hover {
  background: var(--btn-hover-bg);
  box-shadow: var(--shadow);
}

.rr-banner-btn:active {
  transform: scale(0.97);
}

@media (max-width: 640px) {
  .rr-banner-inner {
    gap: 0.85rem;
  }
  .rr-banner-text {
    font-size: 0.82rem;
  }
  .rr-banner-btn {
    width: 100%;
    text-align: center;
  }
}
