.rpp-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.02) 100%), var(--bg-surface, #fff);
  border: 1px solid var(--border-base, #e2e8f0);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 20px 40px -15px rgba(37, 99, 235, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-dark .rpp-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(37, 99, 235, 0.1) 100%), var(--bg-surface, #0f172a);
  border-color: var(--border-base, #1e293b);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.rpp-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.rpp-unit-switch-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
}

.rpp-btn-unit {
  background: var(--bg-surface-elevated, #fff);
  border: 1px solid var(--border-base, #94a3b8);
  color: var(--text-base, #1e293b);
  padding: 0.45rem 1rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-dark .rpp-btn-unit {
  background: var(--bg-surface-elevated, #1e293b);
  border-color: var(--border-base, #475569);
  color: var(--text-base, #f8fafc);
}

.rpp-btn-unit:hover {
  border-color: var(--color-primary, #2563eb);
  color: var(--color-primary, #2563eb);
}

.rpp-btn-unit.active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: #2563eb;
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.rpp-calculator-card {
  background: var(--bg-surface-elevated, #f8fafc);
  border: 1px solid var(--border-base, #e2e8f0);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.theme-dark .rpp-calculator-card {
  background: var(--bg-surface-elevated, #1e293b);
  border-color: var(--border-base, #334155);
}

.rpp-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-base, #0f172a);
}

.theme-dark .rpp-card-title {
  color: var(--text-base, #f8fafc);
}

.rpp-presets-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.rpp-presets-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted, #64748b);
}

.rpp-btn-preset {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--border-base, #cbd5e1);
  border-radius: 10px;
  background: var(--bg-surface, #fff);
  color: var(--text-base, #0f172a);
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-dark .rpp-btn-preset {
  background: var(--bg-surface, #0f172a);
  border-color: var(--border-base, #334155);
  color: var(--text-base, #f8fafc);
}

.rpp-btn-preset.active,
.rpp-btn-preset:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.rpp-inputs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.rpp-custom-dist-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-surface, #fff);
  border: 1px solid var(--border-base, #cbd5e1);
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

.theme-dark .rpp-custom-dist-container {
  background: var(--bg-surface, #0f172a);
  border-color: var(--border-base, #334155);
}

.rpp-custom-dist-input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--color-primary, #2563eb);
  font-size: 1.4rem;
  font-weight: 900;
  outline: none;
}

.theme-dark .rpp-custom-dist-input {
  color: #60a5fa;
}

.rpp-custom-dist-unit {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted, #64748b);
}

.rpp-stepper-card {
  background: var(--bg-surface, #fff);
  border: 1px solid var(--border-base, #cbd5e1);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.theme-dark .rpp-stepper-card {
  background: var(--bg-surface, #0f172a);
  border-color: var(--border-base, #334155);
}

.rpp-stepper-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rpp-stepper-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted, #64748b);
}

.rpp-stepper-value {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-base, #0f172a);
}

.theme-dark .rpp-stepper-value {
  color: var(--text-base, #f8fafc);
}

.rpp-stepper-controls {
  display: flex;
  gap: 0.4rem;
}

.rpp-btn-step {
  flex: 1;
  padding: 0.4rem;
  font-size: 0.8rem;
  font-weight: 800;
  border: 1px solid var(--border-base, #cbd5e1);
  border-radius: 8px;
  background: var(--bg-surface-elevated, #f1f5f9);
  color: var(--text-base, #334155);
  cursor: pointer;
  transition: all 0.15s ease;
}

.theme-dark .rpp-btn-step {
  background: var(--bg-surface-elevated, #1e293b);
  border-color: var(--border-base, #334155);
  color: var(--text-base, #f8fafc);
}

.rpp-btn-step:hover {
  background: var(--color-primary, #2563eb);
  color: #fff;
  border-color: #2563eb;
}

.rpp-hero-pace-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(59, 130, 246, 0.03) 100%);
  border: 2px solid var(--color-primary, #2563eb);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
}

.rpp-hero-pace-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-primary, #2563eb);
}

.rpp-hero-pace-value {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-base, #0f172a);
  line-height: 1.1;
  margin-top: 0.2rem;
}

.theme-dark .rpp-hero-pace-value {
  color: var(--text-base, #f8fafc);
}

.rpp-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-base, #0f172a);
  margin-bottom: 0.25rem;
}

.theme-dark .rpp-section-title {
  color: var(--text-base, #f8fafc);
}

.rpp-section-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted, #64748b);
  margin-bottom: 1rem;
}

.rpp-pred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.rpp-pred-card {
  padding: 1rem 1.25rem;
  background: var(--bg-surface-elevated, #f8fafc);
  border: 1px solid var(--border-base, #e2e8f0);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.theme-dark .rpp-pred-card {
  background: var(--bg-surface-elevated, #1e293b);
  border-color: var(--border-base, #334155);
}

.rpp-pred-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rpp-pred-dist {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-base, #0f172a);
}

.theme-dark .rpp-pred-dist {
  color: var(--text-base, #f8fafc);
}

.rpp-pred-time {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--color-primary, #2563eb);
}

.rpp-pred-bar-bg {
  width: 100%;
  height: 6px;
  background: var(--border-base, #e2e8f0);
  border-radius: 4px;
  overflow: hidden;
}

.theme-dark .rpp-pred-bar-bg {
  background: #334155;
}

.rpp-pred-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.rpp-zones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.rpp-zone-card {
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  background: var(--bg-surface-elevated, #f8fafc);
  border: 1px solid var(--border-base, #e2e8f0);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.theme-dark .rpp-zone-card {
  background: var(--bg-surface-elevated, #1e293b);
  border-color: var(--border-base, #334155);
}

.rpp-zone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rpp-zone-pill {
  padding: 0.3rem 0.65rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 800;
}

.rpp-zone-pill-easy {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}

.rpp-zone-pill-tempo {
  background: rgba(234, 179, 8, 0.15);
  color: #ca8a04;
}

.rpp-zone-pill-intervals {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}

.rpp-zone-range {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-base, #0f172a);
}

.theme-dark .rpp-zone-range {
  color: var(--text-base, #f8fafc);
}

.rpp-zone-bar-bg {
  width: 100%;
  height: 6px;
  background: var(--border-base, #e2e8f0);
  border-radius: 4px;
  overflow: hidden;
}

.theme-dark .rpp-zone-bar-bg {
  background: #334155;
}

.rpp-zone-bar-easy {
  width: 50%;
  height: 100%;
  background: #22c55e;
}

.rpp-zone-bar-tempo {
  width: 75%;
  height: 100%;
  background: #eab308;
}

.rpp-zone-bar-intervals {
  width: 95%;
  height: 100%;
  background: #ef4444;
}

