/* ── Kundli Milan page ──────────────────────────────────────────────────── */

.milan-form-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: start;
}

.milan-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.milan-panel-title {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
}

.milan-boy-title  { color: #1d4ed8; border-color: #bfdbfe; }
.milan-girl-title { color: #be185d; border-color: #fbcfe8; }

.milan-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 44px;
}

.milan-heart { font-size: 26px; color: var(--brand); }

.milan-submit {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

/* ── Result header ───────────────────────────────────────────────────────── */

.milan-result-header {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.milan-score-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.milan-score-num   { font-size: 30px; font-weight: 700; line-height: 1; }
.milan-score-denom { font-size: 13px; opacity: .65; }

.milan-score-excellent  { border-color: #16a34a; background: #f0fdf4; color: #16a34a; }
.milan-score-good       { border-color: #d97706; background: #fffbeb; color: #d97706; }
.milan-score-neutral    { border-color: #64748b; background: #f8fafc; color: #64748b; }
.milan-score-bad        { border-color: #dc2626; background: #fff1f2; color: #dc2626; }

.milan-result-info { flex: 1; min-width: 200px; }

.milan-names {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
}

.milan-rating-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.milan-badge-excellent { background: #d1fae5; color: #065f46; }
.milan-badge-good      { background: #fef3c7; color: #92400e; }
.milan-badge-neutral   { background: #f1f5f9; color: #475569; }
.milan-badge-bad       { background: #fff1f2; color: #9f1239; }

.milan-summary { font-size: 14px; color: var(--muted); margin: 0; }

/* Score bar */
.milan-score-bar-wrap { margin-top: 8px; }

.milan-score-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.milan-score-bar {
  width: 100%;
  height: 8px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.milan-fill-excellent { background: #22c55e; }
.milan-fill-very-good { background: #10b981; }
.milan-fill-good      { background: #f59e0b; }
.milan-fill-average   { background: #94a3b8; }
.milan-fill-bad       { background: #ef4444; }

/* ── Moon details row ────────────────────────────────────────────────────── */

.milan-moon-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.milan-moon-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}

.milan-moon-person {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}

.milan-moon-boy  { color: #1d4ed8; }
.milan-moon-girl { color: #be185d; }

.milan-moon-nak   { font-size: 15px; font-weight: 700; color: var(--text); }
.milan-moon-rashi { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ── Koota grid ──────────────────────────────────────────────────────────── */

.milan-koota-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.milan-koota-card {
  border-radius: 12px;
  padding: 14px 12px;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.milan-koota-good    { background: #f0fdf4; border-color: #bbf7d0; }
.milan-koota-bad     { background: #fff1f2; border-color: #fecdd3; }
.milan-koota-neutral { background: var(--soft); border-color: var(--line); }

.milan-koota-name {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
}

.milan-koota-score      { font-size: 20px; font-weight: 700; line-height: 1.1; }
.milan-koota-max        { font-size: 11px; color: var(--muted); font-weight: 600; }
.milan-koota-good  .milan-koota-score { color: #16a34a; }
.milan-koota-bad   .milan-koota-score { color: #dc2626; }
.milan-koota-neutral .milan-koota-score { color: var(--text); }

.milan-koota-values {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.4;
}

.milan-koota-detail {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
  margin-top: 2px;
  line-height: 1.3;
}

/* ── Dosha section ───────────────────────────────────────────────────────── */

.milan-doshas-heading {
  font-size: 14px;
  font-weight: 700;
  color: #9f1239;
  margin: 0 0 10px;
}

.milan-dosha-card {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.milan-dosha-name { font-size: 13px; font-weight: 700; color: #be123c; margin: 0 0 4px; }
.milan-dosha-text { font-size: 13px; color: #9f1239; margin: 0; }

.milan-no-dosha {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: #166534;
  font-weight: 600;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .milan-form-grid      { grid-template-columns: 1fr; }
  .milan-divider        { flex-direction: row; padding: 4px 0; }
  .milan-koota-grid     { grid-template-columns: repeat(2, 1fr); }
  .milan-moon-row       { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .milan-result-header  { flex-direction: column; align-items: flex-start; }
  .milan-score-circle   { width: 80px; height: 80px; }
  .milan-score-num      { font-size: 24px; }
}
