.egfr-calc {
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(241, 245, 249, 0.4));
  backdrop-filter: blur(20px);
  color: #0f172a;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.theme-dark .egfr-calc {
  border-color: rgba(255, 255, 255, 0.05);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
  color: #f8fafc;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.egfr-calc__warning {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.25rem;
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 16px;
  background: rgba(239, 68, 68, 0.03);
  backdrop-filter: blur(8px);
}

.egfr-calc__warning-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.egfr-calc__warning-text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #475569;
}

.theme-dark .egfr-calc__warning-text {
  color: #cbd5e1;
}

.egfr-calc__warning-title {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #0f172a;
}

.theme-dark .egfr-calc__warning-title {
  color: #f8fafc;
}

.egfr-calc__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .egfr-calc__layout {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.egfr-calc__chart-card {
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.theme-dark .egfr-calc__chart-card {
  border-color: rgba(255, 255, 255, 0.03);
  background: rgba(15, 23, 42, 0.3);
  box-shadow: none;
}

.egfr-calc__chart-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.egfr-calc__stages-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.egfr-calc__stage-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-dark .egfr-calc__stage-item {
  background: rgba(15, 23, 42, 0.4);
}

.egfr-calc__stage-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 2.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.egfr-calc__stage-badge--g1 { background-color: hsl(170deg, 75%, 40%); }
.egfr-calc__stage-badge--g2 { background-color: hsl(120deg, 65%, 40%); }
.egfr-calc__stage-badge--g3a { background-color: hsl(55deg, 80%, 42%); color: #000; text-shadow: none; }
.egfr-calc__stage-badge--g3b { background-color: hsl(35deg, 90%, 45%); }
.egfr-calc__stage-badge--g4 { background-color: hsl(15deg, 90%, 45%); }
.egfr-calc__stage-badge--g5 { background-color: hsl(0deg, 85%, 45%); }

.egfr-calc__stage-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.egfr-calc__stage-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.egfr-calc__stage-desc {
  font-size: 0.75rem;
  color: #64748b;
}

.theme-dark .egfr-calc__stage-desc {
  color: #94a3b8;
}

.egfr-calc__stage-item--active {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  transform: translateX(4px);
}

.theme-dark .egfr-calc__stage-item--active {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.egfr-calc__stage-item--inactive {
  opacity: 0.4;
}

.egfr-calc__form-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.egfr-calc__fields {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.egfr-calc__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.egfr-calc__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
}

.theme-dark .egfr-calc__label {
  color: #cbd5e1;
}

.egfr-calc__input-wrapper {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 0.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.theme-dark .egfr-calc__input-wrapper {
  background: rgba(15, 23, 42, 0.3);
  border-color: rgba(255, 255, 255, 0.08);
}

.egfr-calc__input-wrapper:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.egfr-calc__input {
  flex-grow: 1;
  background: transparent;
  border: none;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  color: inherit;
  outline: none;
}

.egfr-calc__toggle-group {
  display: flex;
  background: rgba(15, 23, 42, 0.04);
  border-radius: 10px;
  padding: 0.125rem;
}

.theme-dark .egfr-calc__toggle-group {
  background: rgba(255, 255, 255, 0.04);
}

.egfr-calc__toggle-btn {
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
}

.theme-dark .egfr-calc__toggle-btn {
  color: #94a3b8;
}

.egfr-calc__toggle-btn--active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.theme-dark .egfr-calc__toggle-btn--active {
  background: #1e293b;
  color: #f8fafc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.egfr-calc__gender-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.egfr-calc__gender-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 0.875rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}

.theme-dark .egfr-calc__gender-btn {
  background: rgba(15, 23, 42, 0.2);
  border-color: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}

.egfr-calc__gender-btn:hover {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(15, 23, 42, 0.15);
}

.theme-dark .egfr-calc__gender-btn:hover {
  background: rgba(255, 255, 255, 0.04);
}

.egfr-calc__gender-btn--active {
  background: #fff;
  border-color: #3b82f6;
  color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.theme-dark .egfr-calc__gender-btn--active {
  background: rgba(59, 130, 246, 0.1);
  border-color: #3b82f6;
  color: #60a5fa;
}

.egfr-calc__results-card {
  padding: 1.5rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.theme-dark .egfr-calc__results-card {
  background: rgba(15, 23, 42, 0.3);
  border-color: rgba(255, 255, 255, 0.03);
  box-shadow: none;
}

.egfr-calc__result-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.theme-dark .egfr-calc__result-label {
  color: #94a3b8;
}

.egfr-calc__result-value {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #0f172a;
  transition: color 0.3s;
}

.theme-dark .egfr-calc__result-value {
  color: #f8fafc;
}

.egfr-calc__result-value--g1 { color: hsl(170deg, 75%, 35%); }
.theme-dark .egfr-calc__result-value--g1 { color: hsl(170deg, 75%, 45%); }

.egfr-calc__result-value--g2 { color: hsl(120deg, 65%, 35%); }
.theme-dark .egfr-calc__result-value--g2 { color: hsl(120deg, 65%, 45%); }

.egfr-calc__result-value--g3a { color: hsl(45deg, 85%, 35%); }
.theme-dark .egfr-calc__result-value--g3a { color: hsl(45deg, 85%, 45%); }

.egfr-calc__result-value--g3b { color: hsl(35deg, 90%, 40%); }
.theme-dark .egfr-calc__result-value--g3b { color: hsl(35deg, 90%, 48%); }

.egfr-calc__result-value--g4 { color: hsl(15deg, 90%, 40%); }
.theme-dark .egfr-calc__result-value--g4 { color: hsl(15deg, 90%, 48%); }

.egfr-calc__result-value--g5 { color: hsl(0deg, 85%, 40%); }
.theme-dark .egfr-calc__result-value--g5 { color: hsl(0deg, 85%, 48%); }

.egfr-calc__result-unit {
  font-size: 0.95rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 0.5rem;
}

.theme-dark .egfr-calc__result-unit {
  color: #94a3b8;
}
