/* my_transits.css v10 */

/* ── Form card ───────────────────────────────────────────────── */
.mt-form-card {
  background: #fff;
  border: 1.5px solid #fed7aa;
  border-radius: 14px;
  padding: 24px 24px 20px;
  margin-bottom: 28px;
  box-shadow: 0 2px 10px rgba(154,52,18,0.08);
}
.mt-form-card h2 {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 700;
  color: #9a3412;
  margin: 0 0 18px;
  letter-spacing: 0.3px;
}

.mt-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.mt-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #44403c;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.mt-form-grid input {
  padding: 10px 13px;
  border: 2px solid #d6d3d1;
  border-radius: 8px;
  background: #fff;
  color: #292524;
  font-size: 14px;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.mt-form-grid input:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}
.mt-form-grid input::placeholder { color: #a8a29e; }

.mt-loc-wrap { grid-column: 1 / -1; }
.mt-loc-wrap label { width: 100%; }

.mt-transit-date-row {
  margin-top: 12px;
  display: flex;
}
.mt-transit-date-row label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #44403c;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.mt-transit-date-row input {
  padding: 10px 13px;
  border: 2px solid #d6d3d1;
  border-radius: 8px;
  background: #fff;
  color: #292524;
  font-size: 14px;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  width: 200px;
}
.mt-transit-date-row input:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}
.mt-transit-date-hint {
  font-size: 11px;
  color: #a8a29e;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 4px;
}
.mt-report-date {
  font-size: 12px;
  color: #9a3412;
  font-weight: 600;
  margin: 0 0 4px;
}

.mt-btn-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.mt-submit-btn {
  padding: 11px 28px;
  background: linear-gradient(135deg, #ea580c, #9a3412);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(154,52,18,0.3);
}
.mt-submit-btn:hover {
  background: linear-gradient(135deg, #f97316, #b45309);
  box-shadow: 0 4px 14px rgba(154,52,18,0.4);
  transform: translateY(-1px);
}
.mt-submit-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.mt-hint {
  font-size: 12px;
  color: #78716c;
  line-height: 1.6;
}

/* ── Results area ────────────────────────────────────────────── */
#mt-results { display: none; }

.mt-report-header {
  background: #fff;
  border: 1.5px solid #fed7aa;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 2px 10px rgba(154,52,18,0.08);
}
.mt-score-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 3px solid var(--score-color, #f97316);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #fff7ed;
}
.mt-score-pct {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--score-color, #f97316);
  line-height: 1;
}
.mt-score-label {
  font-size: 9px;
  color: #78716c;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 2px;
}
.mt-report-meta h3 {
  font-family: 'Cinzel', serif;
  font-size: 17px;
  color: #292524;
  margin: 0 0 4px;
}
.mt-report-meta p {
  font-size: 13px;
  color: #44403c;
  margin: 0 0 8px;
  line-height: 1.5;
}
.mt-overall-badge {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  border: 2px solid var(--score-color, #f97316);
  color: var(--score-color, #f97316);
  background: #fff7ed;
}

/* Key notes */
.mt-key-notes {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
}
.mt-key-notes h4 {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  color: #166534;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.mt-key-notes ul { margin: 0; padding: 0 0 0 16px; }
.mt-key-notes li {
  font-size: 13px;
  color: #292524;
  line-height: 1.7;
  margin-bottom: 6px;
}

/* Planet cards */
.mt-planets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.mt-planet-card {
  background: #fff;
  border: 1.5px solid #fed7aa;
  border-radius: 12px;
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(154,52,18,0.06);
}
.mt-planet-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--planet-color, #f97316);
  border-radius: 12px 0 0 12px;
}
.mt-planet-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.mt-planet-symbol {
  font-size: 22px;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}
.mt-planet-info { flex: 1; }
.mt-planet-name {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  color: #292524;
  margin-bottom: 2px;
}
.mt-planet-pos {
  font-size: 11px;
  color: #78716c;
  font-weight: 600;
}
/* quality badge replaces old dot+area row */
.mt-quality-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}
.mt-quality-badge.good        { background:#dcfce7; color:#166534; border:1px solid #86efac; }
.mt-quality-badge.neutral     { background:#f5f5f4; color:#57534e; border:1px solid #d6d3d1; }
.mt-quality-badge.challenging { background:#fee2e2; color:#991b1b; border:1px solid #fca5a5; }

/* two-column house row */
.mt-house-row {
  display: flex;
  gap: 0;
  margin: 10px 0 8px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  overflow: hidden;
}
.mt-house-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 10px;
  gap: 2px;
}
.mt-house-sep {
  width: 1px;
  background: #fed7aa;
  flex-shrink: 0;
}
.mt-house-num {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  color: #9a3412;
}
.mt-house-from {
  font-size: 10px;
  color: #a8a29e;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.mt-house-meaning {
  font-size: 11px;
  color: #44403c;
  font-weight: 600;
  margin-top: 2px;
}

.mt-area-label {
  font-size: 11px;
  font-weight: 700;
  color: #9a3412;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}

/* tip box */
.mt-tip {
  margin-top: 8px;
  padding: 8px 12px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 7px;
  font-size: 12px;
  color: #0369a1;
  line-height: 1.55;
}
.mt-desc {
  font-size: 13px;
  color: #44403c;
  line-height: 1.65;
  margin: 0;
}
.mt-retro {
  display: inline-block;
  font-size: 9px;
  padding: 1px 5px;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 4px;
  color: #991b1b;
  font-weight: 700;
  margin-left: 4px;
  vertical-align: middle;
}

.mt-kundli-link {
  text-align: center;
  padding: 14px;
  font-size: 13px;
  color: #78716c;
}
.mt-kundli-link a { color: #9a3412; font-weight: 600; text-decoration: none; }
.mt-kundli-link a:hover { text-decoration: underline; }

.mt-error {
  background: #fee2e2;
  border: 1.5px solid #fca5a5;
  border-radius: 10px;
  padding: 14px 18px;
  color: #991b1b;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.mt-loading {
  text-align: center;
  padding: 40px;
  color: #78716c;
  font-size: 14px;
}
.mt-spinner {
  width: 28px; height: 28px;
  border: 3px solid #fed7aa;
  border-top-color: #f97316;
  border-radius: 50%;
  animation: mt-spin .8s linear infinite;
  margin: 0 auto 12px;
}
@keyframes mt-spin { to { transform: rotate(360deg); } }

/* ── Day's Summary box ───────────────────────────────────────── */
.mt-day-summary {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
}
.mt-day-summary-loading .mt-summary-text {
  color: #a8a29e;
  font-style: italic;
  font-size: 13px;
}
.mt-summary-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #92400e;
  margin-bottom: 7px;
}
.mt-summary-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #292524;
}

.mt-motiv-msg {
  margin: 10px 0 0;
  font-size: 13px;
  color: #44403c;
  line-height: 1.65;
  font-style: italic;
  border-left: 3px solid #fca5a5;
  padding-left: 10px;
  max-width: 360px;
}

/* ── Cosmic Environment panel ────────────────────────────────────── */
.mt-cosmic-env {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3e2 100%);
  border: 1.5px solid #fcd34d;
  border-radius: 14px;
  margin: 20px 0;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(154,52,18,0.07);
}

.mt-cosmic-env-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px 14px;
  border-bottom: 1px solid #fde68a;
  background: rgba(254,243,226,0.6);
}

.mt-cosmic-env-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.mt-cosmic-env-title {
  font-size: 15px;
  font-weight: 800;
  color: #92400e;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.3px;
}

.mt-cosmic-env-sub {
  font-size: 12px;
  color: #a16207;
  margin-top: 2px;
  line-height: 1.5;
}

.mt-cosmic-env-body {
  padding: 18px 20px 20px;
}

.mt-cosmic-section-label {
  font-size: 12px;
  font-weight: 800;
  color: #92400e;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ensure inner dj-nak-box looks right inside the panel */
.mt-cosmic-env .dj-nak-box {
  background: rgba(255,251,235,0.5);
  border-color: #fde68a;
}

/* ── Personal house context chips inside yoga blocks ─────────────── */
.mt-yoga-personal {
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(251,191,36,0.08);
  border-left: 3px solid #f59e0b;
  border-radius: 0 6px 6px 0;
  font-size: 12px;
  color: #92400e;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.mt-yoga-personal::before {
  content: "Your Chart:";
  font-weight: 700;
  color: #78350f;
  white-space: nowrap;
}

.mt-yoga-house-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(251,191,36,0.18);
  border: 1px solid #fcd34d;
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 11.5px;
  color: #78350f;
  white-space: nowrap;
}
.mt-yoga-house-domain {
  color: #a16207;
  font-weight: 400;
}

/* ── Personalized summary paragraph ─────────────────────────────── */
.mt-personal-summary {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text, #1c1917);
  background: rgba(251,191,36,0.07);
  border-left: 3px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.mt-personal-summary strong { color: #92400e; }

/* ── Retrograde note ─────────────────────────────────────────────── */
.mt-retro-note {
  font-size: 12.5px;
  color: #78350f;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 9px 13px;
  margin-bottom: 14px;
  line-height: 1.6;
}

/* ── Score breakdown line ────────────────────────────────────────── */
.mt-score-breakdown {
  font-size: 11px;
  color: var(--muted, #78716c);
  margin-top: 4px;
  font-style: italic;
}

/* ── Dasha Panel ─────────────────────────────────────────────────── */
.mt-dasha-panel {
  background: linear-gradient(135deg, #1e1b4b 0%, #2e1065 100%);
  border: 1.5px solid #6366f1;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 24px;
  color: #e0e7ff;
}
.mt-dasha-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.mt-dasha-icon { font-size: 22px; flex-shrink: 0; }
.mt-dasha-title {
  font-family: 'Cinzel', serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #c7d2fe;
  letter-spacing: 0.3px;
}
.mt-dasha-sub { font-size: 11.5px; color: #a5b4fc; margin-top: 2px; line-height: 1.4; }
.mt-dasha-mod-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  align-self: flex-start;
}
.mt-dasha-mod-badge.mod-severe  { background: #dc2626; }
.mt-dasha-mod-badge.mod-caution { background: #d97706; }
.mt-dasha-mod-badge.mod-good    { background: #16a34a; }

.mt-dasha-maha {
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.mt-dasha-maha.malefic { border-left: 3px solid #ef4444; }
.mt-dasha-maha.benefic { border-left: 3px solid #22c55e; }
.mt-dasha-maha.neutral { border-left: 3px solid #f59e0b; }
.mt-dasha-maha-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #a5b4fc;
  margin-bottom: 5px;
}
.mt-dasha-maha-lord {
  font-size: 19px;
  font-weight: 700;
  color: #e0e7ff;
  margin-bottom: 3px;
}
.mt-dasha-en { font-size: 13px; color: #a5b4fc; font-weight: 400; }
.mt-dasha-dates { font-size: 12px; color: #c7d2fe; margin-bottom: 10px; }
.mt-dasha-bar {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  height: 5px;
  margin-bottom: 12px;
  overflow: hidden;
}
.mt-dasha-bar-fill { height: 100%; border-radius: 4px; }
.mt-dasha-bar-fill.malefic { background: #ef4444; }
.mt-dasha-bar-fill.benefic { background: #22c55e; }
.mt-dasha-bar-fill.neutral { background: #f59e0b; }
.mt-dasha-desc {
  font-size: 12.5px;
  color: #c7d2fe;
  line-height: 1.65;
  margin: 0;
}
.mt-dasha-antar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 10px 14px;
}
.mt-dasha-antar-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #a5b4fc;
}
.mt-dasha-antar-lord { font-weight: 700; color: #e0e7ff; font-size: 13px; }
.mt-dasha-sep { color: #6366f1; }
.mt-dasha-antar-dates { font-size: 11.5px; color: #a5b4fc; }
.mt-dasha-antar-maraka {
  font-size: 10.5px;
  font-weight: 700;
  color: #fca5a5;
  background: #7f1d1d;
  border-radius: 4px;
  padding: 2px 7px;
}
.mt-dasha-maraka-warn {
  font-size: 11.5px;
  color: #fca5a5;
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.4);
  border-radius: 6px;
  padding: 7px 11px;
  margin-top: 10px;
  line-height: 1.5;
}

/* ── Maraka badges ───────────────────────────────────────────────── */
.mt-maraka-badge {
  background: #450a0a;
  color: #fca5a5;
  border: 1px solid #ef4444;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 7px 11px;
  margin: 8px 0 4px;
  line-height: 1.5;
}
.mt-maraka-note {
  background: #431407;
  color: #fdba74;
  border: 1px solid #f97316;
  border-radius: 7px;
  font-size: 11px;
  padding: 5px 10px;
  margin: 6px 0 4px;
}

@media (max-width: 600px) {
  .mt-form-grid { grid-template-columns: 1fr 1fr; }
  .mt-planets-grid { grid-template-columns: 1fr; }
  .mt-report-header { flex-direction: column; align-items: flex-start; }
  .mt-cosmic-env-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .mt-dasha-header { flex-direction: column; }
}
