.fde-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #111827;
  border: 1px solid #e5e7eb;
  min-height: 600px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.fde-step-indicator {
  padding: 1.5rem 2.5rem;
  background: #fdf2f8;
  border-bottom: 1px solid #fbcfe8;
  display: flex;
  justify-content: center;
  gap: 3rem;
}

.fde-step-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #9d174d;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.fde-step-item.fde-step-active {
  opacity: 1;
}

.fde-step-number {
  width: 28px;
  height: 28px;
  background: #db2777;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.fde-step-first {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  gap: 3rem;
  background: radial-gradient(circle at top right, #fff1f2, transparent),
    radial-gradient(circle at bottom left, #fdf2f8, transparent);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fde-step-first.fde-hidden {
  display: none;
}

.theme-dark .fde-step-first {
  background: radial-gradient(circle at top right, rgba(88, 28, 135, 0.15), transparent),
    radial-gradient(circle at bottom left, rgba(124, 58, 202, 0.1), transparent);
}

.fde-step-header h2 {
  font-size: 2.5rem;
  font-weight: 950;
  letter-spacing: -0.04em;
  color: #9d174d;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.fde-step-header p {
  font-size: 1.15rem;
  color: #64748b;
  max-width: 400px;
  margin: 0 auto;
}

.fde-calendar-card {
  max-width: 500px;
  width: 100%;
  background: #fff;
  padding: 2.5rem;
  border-radius: 32px;
  border: 1px solid rgba(251, 207, 232, 0.5);
  box-shadow: 0 30px 60px -12px rgba(219, 39, 119, 0.15),
    0 18px 36px -18px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.fde-calendar-card:hover {
  transform: translateY(-5px);
}

.fde-pulse-hint {
  font-size: 0.95rem;
  font-weight: 800;
  color: #db2777;
  background: #fdf2f8;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  border: 1px solid #fbcfe8;
  animation: fde-pulse 2s infinite;
}

@keyframes fde-pulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

.fde-layout {
  display: none;
  grid-template-columns: 350px 1fr;
  flex: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.fde-layout.fde-active {
  display: grid;
  opacity: 1;
}

.fde-sidebar {
  background: #fdf2f8;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  border-right: 1px solid #fbcfe8;
}

.fde-sidebar-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #9d174d;
  margin: 0 0 0.5rem;
}

.fde-sidebar-header p {
  font-size: 0.85rem;
  color: #be123c;
  opacity: 0.8;
  margin: 0;
}

.fde-input-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid #fbcfe8;
  box-shadow: 0 4px 15px rgba(219, 39, 119, 0.05);
}

.fde-input-card label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #9d174d;
  margin-bottom: 1rem;
}

.fde-input-card label svg,
.fde-input-card label [data-icon] {
  width: 1.25rem;
  height: 1.25rem;
}

.fde-range-control {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fde-range-control input[type='range'] {
  width: 100%;
  accent-color: #db2777;
  cursor: pointer;
}

.fde-range-value {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: #db2777;
}

.fde-range-value span {
  font-size: 0.9rem;
  font-weight: 600;
  color: #be123c;
}

.fde-results {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fde-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #fce7f3;
}

.fde-stat svg,
.fde-stat [data-icon] {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  padding: 0.4rem;
  flex-shrink: 0;
}

.fde-stat-ovulation svg,
.fde-stat-ovulation [data-icon] {
  background: #db2777;
  color: #fff;
}

.fde-stat-fertile svg,
.fde-stat-fertile [data-icon] {
  background: #fdf2f8;
  color: #db2777;
  border: 1px solid #f9a8d4;
}

.fde-stat-period svg,
.fde-stat-period [data-icon] {
  background: #ffe4e6;
  color: #be123c;
  border: 1px solid #fca5a5;
}

.fde-stat-info {
  display: flex;
  flex-direction: column;
}

.fde-stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
}

.fde-stat-value {
  font-size: 1.1rem;
  font-weight: 900;
  color: #1e293b;
}

.fde-main {
  background: #fff;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.fde-calendar-wrapper {
  background: #fff;
}

.fde-cal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.fde-cal-nav h3 {
  font-size: 1.5rem;
  font-weight: 900;
  color: #111827;
  margin: 0;
  text-transform: capitalize;
}

.fde-nav-buttons {
  display: flex;
  gap: 0.5rem;
}

.fde-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s all ease;
  color: #374151;
}

.fde-nav-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.fde-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.fde-day-header {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #9ca3af;
  text-transform: uppercase;
  padding-bottom: 1rem;
}

.fde-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 14px;
  background: #fff;
  color: #374151;
  cursor: pointer;
  transition: 0.2s all ease;
  border: 1px solid #f3f4f6;
}

.fde-day:hover:not(.fde-day-empty) {
  border-color: #db2777;
  background: #fdf2f8;
}

.fde-day-empty {
  background: transparent;
  border: none;
  cursor: default;
}

.fde-day-selected {
  background: #be123c;
  color: #fff;
  border: none;
  box-shadow: 0 8px 20px rgba(190, 18, 60, 0.3);
}

.fde-day-period {
  background: #ffe4e6;
  color: #be123c;
  border: none;
}

.fde-day-fertile {
  background: #fdf2f8;
  color: #db2777;
  border: none;
}

.fde-day-ovulation {
  background: #db2777;
  color: #fff;
  box-shadow: 0 8px 20px rgba(219, 39, 119, 0.3);
  border: none;
}

.fde-day-today {
  border: 2px solid #111827;
}

.fde-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  padding: 1.25rem;
  background: #f9fafb;
  border-radius: 20px;
}

.fde-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #4b5563;
}

.fde-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
}

.fde-dot-period { background: #ffe4e6; }
.fde-dot-fertile { background: #fdf2f8; }
.fde-dot-ovulation { background: #db2777; }
.fde-dot-selected { background: #be123c; }

.theme-dark .fde-container {
  background: #18181b;
  border-color: #27272a;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
  color: #fff;
}

.theme-dark .fde-sidebar {
  background: #111113;
  border-right-color: #27272a;
}

.theme-dark .fde-main { background: #18181b; }

.theme-dark .fde-sidebar-header h2 { color: #f472b6; }
.theme-dark .fde-sidebar-header p { color: #f9a8d4; }

.theme-dark .fde-input-card {
  background: #1e1e21;
  border-color: #27272a;
}

.theme-dark .fde-stat {
  background: #1e1e21;
  border-color: #27272a;
}

.theme-dark .fde-stat-value { color: #fff; }
.theme-dark .fde-cal-nav h3 { color: #fff; }

.theme-dark .fde-day {
  background: #1e1e21;
  border-color: #27272a;
  color: #e5e7eb;
}

.theme-dark .fde-day:hover:not(.fde-day-empty) { background: #27272a; }
.theme-dark .fde-legend { background: #111113; }
.theme-dark .fde-legend-item { color: #9ca3af; }

@media (max-width: 900px) {
  .fde-layout { grid-template-columns: 1fr; }
  .fde-sidebar {
    border-right: none;
    border-bottom: 1px solid #fbcfe8;
  }
}

@media (max-width: 768px) {
  .fde-container { border-radius: 1.5rem; }

  .fde-step-indicator {
    padding: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .fde-step-first {
    padding: 2rem 1rem;
    gap: 1.5rem;
  }

  .fde-calendar-card {
    padding: 1rem;
    border-radius: 1.5rem;
  }

  .fde-step-header h2 { font-size: 1.75rem; }
  .fde-step-header p { font-size: 0.95rem; }

  .fde-sidebar {
    padding: 1.25rem;
    gap: 1.5rem;
  }

  .fde-sidebar-header h2 { font-size: 1.25rem; }

  .fde-main {
    padding: 1.25rem;
    gap: 1.25rem;
  }

  .fde-input-card {
    padding: 1rem;
    border-radius: 1rem;
  }

  .fde-cal-nav { margin-bottom: 1rem; }
  .fde-cal-nav h3 { font-size: 1.2rem; }
  .fde-nav-btn {
    width: 32px;
    height: 32px;
  }

  .fde-grid { gap: 4px; }

  .fde-day-header {
    padding-bottom: 0.5rem;
    font-size: 0.7rem;
  }

  .fde-day {
    font-size: 0.85rem;
    border-radius: 8px;
  }

  .fde-legend {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    align-items: flex-start;
    border-radius: 1rem;
  }

  .fde-stat {
    padding: 1rem;
    gap: 0.75rem;
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .fde-stat-info { align-items: center; }
}