        /* ============================================================
   Jyotish Matchmaking Plugin — WordPress Stylesheet v2.3
   Theme palette:
     --cosmic-black  #0b0b0f   background
     --section-dark  #14141c   card background
     --solar-gold    #f4c430   headings / buttons
     --lunar-white   #f2f2f2   body text
     --agni-orange   #ff6b00   hover / glow
     --divine-red    #e63946   icons / highlights
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
.jm-wrap {
  --cosmic-black: #0b0b0f;
  --section-dark: #14141c;
  --solar-gold:   #f4c430;
  --lunar-white:  #f2f2f2;
  --agni-orange:  #ff6b00;
  --divine-red:   #e63946;
  --gold-dim:     rgba(244,196,48,0.15);
  --gold-glow:    rgba(244,196,48,0.35);
  --orange-glow:  rgba(255,107,0,0.25);
  --border:       rgba(244,196,48,0.18);
  --border-hover: rgba(244,196,48,0.55);
  --radius:       10px;
  --radius-lg:    16px;
  --jm-gold:      var(--solar-gold);

  box-sizing: border-box;
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--lunar-white);
  background: var(--cosmic-black);
  border-radius: var(--radius-lg);
  padding: 0 0 40px;
  overflow: hidden;
}
.jm-wrap *, .jm-wrap *::before, .jm-wrap *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Plugin Header ─────────────────────────────────────────── */
.jm-header {
  background: var(--section-dark);
  border-bottom: 2px solid var(--solar-gold);
  padding: 32px 24px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.jm-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(244,196,48,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.jm-header .jm-om {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  color: var(--solar-gold);
  margin-bottom: 6px;
  text-shadow: 0 0 18px var(--gold-glow);
}
.jm-header h2 {
  font-family: 'Cinzel', serif !important;
  font-size: clamp(1.2rem, 3vw, 1.7rem) !important;
  font-weight: 700 !important;
  color: var(--solar-gold) !important;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-shadow: 0 0 12px var(--gold-glow);
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.jm-header p {
  color: rgba(242,242,242,0.65);
  font-size: 0.85rem;
  margin-top: 6px;
  letter-spacing: 0.04em;
}
.jm-header-divider {
  width: 120px;
  height: 1.5px;
  background: linear-gradient(to right, transparent, var(--solar-gold), transparent);
  margin: 14px auto 0;
}

/* ── Inner Container ───────────────────────────────────────── */
.jm-inner { padding: 28px 20px 0; max-width: 1100px; margin: 0 auto; }

/* ── Card ──────────────────────────────────────────────────── */
.jm-card {
  background: var(--section-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  transition: border-color 0.3s;
}
.jm-card:hover { border-color: var(--border-hover); }

.jm-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(244,196,48,0.07);
  border-bottom: 1px solid var(--border);
}
.jm-card-head .jm-icon { color: var(--divine-red); font-size: 1rem; flex-shrink: 0; }
.jm-card-head h3 {
  font-family: 'Cinzel', serif !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: var(--solar-gold) !important;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.jm-card-body { padding: 22px 20px; }

/* ── Two-column person grid (form) ─────────────────────────── */
.jm-persons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 600px) { .jm-persons-grid { grid-template-columns: 1fr; } }

.jm-person-block {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.jm-person-block:hover {
  border-color: rgba(244,196,48,0.4);
  box-shadow: 0 0 20px rgba(244,196,48,0.05);
}
.jm-person-label {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--solar-gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.jm-person-label .jm-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--agni-orange);
  box-shadow: 0 0 6px var(--agni-orange);
  flex-shrink: 0;
}

/* ── Form Fields ───────────────────────────────────────────── */
.jm-field { margin-bottom: 13px; }
.jm-field label {
  display: block;
  font-size: 0.73rem;
  font-weight: 700;
  color: rgba(242,242,242,0.55);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.jm-field input[type="text"],
.jm-field input[type="date"],
.jm-field input[type="time"] {
  width: 100%;
  padding: 9px 13px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(244,196,48,0.2);
  border-radius: 7px;
  color: var(--lunar-white);
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  -webkit-appearance: none;
  color-scheme: dark;
}
.jm-field input:focus {
  border-color: var(--solar-gold);
  background: rgba(244,196,48,0.06);
  box-shadow: 0 0 0 3px rgba(244,196,48,0.12);
}
.jm-field input.jm-error {
  border-color: var(--divine-red) !important;
  box-shadow: 0 0 0 3px rgba(230,57,70,0.15) !important;
}
.jm-field input::placeholder { color: rgba(242,242,242,0.25); }

/* ── Place Autocomplete ────────────────────────────────────── */
.jm-place-wrap { position: relative; }
.jm-ac-list {
  position: absolute;
  top: calc(100% + 5px);
  left: 0; right: 0;
  background: #1e1e2a;
  border: 1.5px solid var(--solar-gold);
  border-radius: 8px;
  z-index: 9999;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  display: none;
}
.jm-ac-list.open { display: block; }
.jm-ac-item {
  padding: 9px 13px;
  font-size: 0.86rem;
  color: var(--lunar-white);
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.15s, color 0.15s;
}
.jm-ac-item:last-child { border-bottom: none; }
.jm-ac-item:hover, .jm-ac-item.jm-active {
  background: rgba(244,196,48,0.1);
  color: var(--solar-gold);
}

/* ── Submit Button ─────────────────────────────────────────── */
.jm-btn-wrap { text-align: center; margin-top: 22px; }
.jm-btn-submit {
  display: inline-block;
  padding: 13px 40px;
  background: var(--solar-gold);
  color: var(--cosmic-black) !important;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(244,196,48,0.35);
  transition: background 0.2s, box-shadow 0.2s, transform 0.18s;
  position: relative;
  overflow: hidden;
}
.jm-btn-submit:hover:not(:disabled) {
  background: var(--agni-orange);
  box-shadow: 0 6px 28px rgba(255,107,0,0.5);
  transform: translateY(-2px);
}
.jm-btn-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ── Error Banner ──────────────────────────────────────────── */
.jm-error-banner {
  display: none;
  background: rgba(230,57,70,0.12);
  border: 1px solid rgba(230,57,70,0.4);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: #ff8a93;
  font-size: 0.88rem;
  margin-top: 14px;
}
.jm-error-banner.show { display: block; }

/* ── Loader ────────────────────────────────────────────────── */
.jm-loader { display: none; text-align: center; padding: 36px 20px; }
.jm-loader.show { display: block; }
.jm-spinner {
  width: 46px; height: 46px;
  border: 4px solid rgba(244,196,48,0.15);
  border-top-color: var(--solar-gold);
  border-radius: 50%;
  animation: jm-spin 0.75s linear infinite;
  margin: 0 auto 14px;
}
@keyframes jm-spin { to { transform: rotate(360deg); } }
.jm-loader p { color: rgba(242,242,242,0.5); font-size: 0.88rem; }

/* ── Results ───────────────────────────────────────────────── */
#jm-results { display: none; }
#jm-results.show { display: block; }

/* ── Score Banner ──────────────────────────────────────────── */
.jm-score-banner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  background: linear-gradient(135deg, var(--section-dark) 0%, #1c1c28 100%);
  border: 1.5px solid var(--solar-gold);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin-bottom: 24px;
  box-shadow: 0 0 40px rgba(244,196,48,0.08);
}
.jm-score-box { text-align: center; }
.jm-score-num {
  font-family: 'Cinzel', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--solar-gold);
  line-height: 1;
  text-shadow: 0 0 16px var(--gold-glow);
}
.jm-score-max { font-size: 0.8rem; color: rgba(242,242,242,0.4); margin-top: 2px; }
.jm-score-lbl { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(242,242,242,0.65); margin-top: 7px; }
.jm-score-div { width: 1px; height: 60px; background: var(--border); }
@media (max-width: 420px) { .jm-score-div { display: none; } }

/* ── Birth Details ─────────────────────────────────────────── */
.jm-birth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 540px) { .jm-birth-grid { grid-template-columns: 1fr; } }

.jm-birth-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.jm-birth-card h4 {
  font-family: 'Cinzel', serif !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  color: var(--solar-gold) !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px !important;
  padding: 0 !important;
  border: none !important;
  display: flex; align-items: center; gap: 7px;
}
.jm-birth-card h4 .jm-ri { color: var(--divine-red); }
.jm-birth-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.82rem;
}
.jm-birth-row:last-child { border-bottom: none; }
.jm-birth-row .jm-lbl { color: rgba(242,242,242,0.45); font-weight: 700; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em; flex-shrink: 0; }
.jm-birth-row .jm-val { color: var(--lunar-white); text-align: right; }

/* Birth details info rows (Tab 0) */
.jm-birth-info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.83rem;
}
.jm-birth-info-row:last-child { border-bottom: none; }
.jm-birth-info-row .jm-lbl {
  color: rgba(242,242,242,0.45);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.jm-birth-info-row .jm-val { color: var(--lunar-white); text-align: right; }

/* Divider between Rajju and diagnostic fields */
.jm-birth-divider {
  height: 1px;
  background: rgba(244,196,48,0.15);
  margin: 10px 0;
}

/* ── Guna Table ────────────────────────────────────────────── */
.jm-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.jm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
  min-width: 560px;
}
.jm-table thead tr {
  background: rgba(244,196,48,0.1);
  border-bottom: 1.5px solid var(--solar-gold);
}
.jm-table thead th {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--solar-gold);
  padding: 10px 13px;
  text-align: left;
  white-space: nowrap;
}
.jm-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.15s;
}
.jm-table tbody tr:last-child { border-bottom: none; }
.jm-table tbody tr:hover { background: rgba(244,196,48,0.04); }
.jm-table td { padding: 9px 13px; color: var(--lunar-white); vertical-align: middle; }
.jm-table .jm-col-koot {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--solar-gold);
}
.jm-table tfoot tr { background: rgba(244,196,48,0.07); border-top: 1.5px solid var(--solar-gold); }
.jm-table tfoot td {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: var(--solar-gold);
  font-size: 0.85rem;
  padding: 10px 13px;
}

/* Score bar */
.jm-bar-wrap { display: flex; align-items: center; gap: 7px; min-width: 90px; }
.jm-bar { flex: 1; height: 5px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.jm-bar-fill { height: 100%; border-radius: 3px; transition: width 1s ease; }
.jm-bar-fill.jm-high  { background: #4ade80; }
.jm-bar-fill.jm-mid   { background: var(--agni-orange); }
.jm-bar-fill.jm-low   { background: var(--divine-red); }
.jm-score-val { font-weight: 700; font-size: 0.8rem; color: var(--lunar-white); min-width: 22px; text-align: right; }

/* Badge */
.jm-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.jm-badge-good  { background: rgba(74,222,128,0.12);  color: #4ade80;             border: 1px solid rgba(74,222,128,0.3); }
.jm-badge-avg   { background: rgba(255,107,0,0.12);   color: var(--agni-orange);  border: 1px solid rgba(255,107,0,0.3); }
.jm-badge-bad   { background: rgba(230,57,70,0.12);   color: #ff8a93;             border: 1px solid rgba(230,57,70,0.3); }
.jm-badge-dosha { background: rgba(230,57,70,0.18);   color: #ff8a93;             border: 1px solid var(--divine-red); }

/* ── Remarks ───────────────────────────────────────────────── */
.jm-remarks { list-style: none; }
.jm-remarks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.88rem;
  color: rgba(242,242,242,0.85);
}
.jm-remarks li:last-child { border-bottom: none; }
.jm-remarks li::before { content: '✦'; color: var(--solar-gold); flex-shrink: 0; margin-top: 2px; font-size: 0.68rem; }

/* ── Actions / Print ───────────────────────────────────────── */
.jm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 0 8px;
  margin-bottom: 18px;
}
.jm-btn-print {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 20px;
  background: transparent;
  border: 1.5px solid var(--solar-gold);
  border-radius: 50px;
  color: var(--solar-gold);
  font-family: 'Cinzel', serif;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s;
}
.jm-btn-print:hover { background: rgba(244,196,48,0.1); box-shadow: 0 0 14px var(--gold-glow); }
.jm-generated { text-align: center; font-size: 0.75rem; color: rgba(242,242,242,0.3); margin-top: 8px; }

/* ── Animations ────────────────────────────────────────────── */
@keyframes jm-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.jm-fade  { animation: jm-fade-up 0.45s ease both; }
.jm-fade2 { animation: jm-fade-up 0.45s 0.1s ease both; }
.jm-fade3 { animation: jm-fade-up 0.45s 0.2s ease both; }
.jm-fade4 { animation: jm-fade-up 0.45s 0.3s ease both; }

/* ══════════════════════════════════════════════════════════
   5-TAB REPORT STYLES
   ══════════════════════════════════════════════════════════ */

/* ── Tabs ────────────────────────────────────────────────── */
.jm-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 18px 16px 0;
  border-bottom: 1px solid var(--border);
}
.jm-tab {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 15px;
  cursor: pointer;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 7px 7px 0 0;
  color: rgba(242,242,242,0.5);
  background: transparent;
  transition: all 0.2s;
  position: relative;
  bottom: -1px;
}
.jm-tab:hover { color: var(--solar-gold); border-color: var(--border); }
.jm-tab.active {
  color: var(--solar-gold);
  background: var(--section-dark);
  border-color: var(--border);
  border-bottom-color: var(--section-dark);
  text-shadow: 0 0 12px var(--gold-glow);
}

/* ── Tab Panels ──────────────────────────────────────────── */
.jm-panel { display: none; padding-top: 22px; animation: jm-fade-up 0.3s ease both; }
.jm-panel.active { display: block; }

/* ── Planet table ────────────────────────────────────────── */
.jm-tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.jm-ptbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  min-width: 420px;
}
table.jm-ptbl thead tr {
  background: rgba(244,196,48,0.08);
  border-bottom: 1.5px solid var(--solar-gold);
}
table.jm-ptbl thead th {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--solar-gold);
  padding: 9px 10px;
  text-align: left;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
table.jm-ptbl tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s;
}
table.jm-ptbl tbody tr:hover { background: rgba(244,196,48,0.04); }
table.jm-ptbl td { padding: 7px 10px; color: var(--lunar-white); vertical-align: middle; }
table.jm-ptbl td.jm-planet-name {
  font-family: 'Cinzel', serif;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--solar-gold);
}
table.jm-ptbl td.jm-degree { font-variant-numeric: tabular-nums; font-size: 0.78rem; }
.jm-retro   { color: var(--divine-red);   font-weight: 700; font-size: 0.72rem; }
.jm-combust { color: var(--agni-orange);  font-weight: 700; font-size: 0.72rem; }
.jm-rc-cell { white-space: nowrap; }

/* ── Moon notes ──────────────────────────────────────────── */
.jm-moon-notes { list-style: none; font-size: 0.87rem; line-height: 1.7; }
.jm-moon-notes li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: rgba(242,242,242,0.85);
}
.jm-moon-notes li:last-child { border-bottom: none; }
.jm-moon-notes li::before { content: '• '; color: var(--solar-gold); }

/* ══════════════════════════════════════════════════════════
   CHARTS — Tab 2
   Groom and Bride sit side by side.
   Each person column shows D1 chart then D9 chart BELOW it.
   NO side-by-side D1/D9 columns.
   ══════════════════════════════════════════════════════════ */

/* ── Charts layout ─────────────────────────────────────────
   .jm-charts-row contains two .jm-chart-block divs from PHP:
     Block 1: "Birth Chart (Rashi)"  + #jm-gc-birth / #jm-bc-birth
     Block 2: "Navamsha (D9)"        + #jm-gc-nav   / #jm-bc-nav
   JS hides Block 2 entirely and puts D9 inside Block 1.
   Both Groom and Bride sections stack vertically (one per row).
───────────────────────────────────────────────────────── */

/* Each charts-row: full width, no columns */
.jm-charts-row {
  display: block !important;
  width: 100%;
  margin-bottom: 28px;
}

/* Each chart block: full width */
.jm-chart-block {
  display: block;
  width: 100%;
  max-width: 100%;
}

/* D1 containers: full width */
#jm-gc-birth,
#jm-bc-birth {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
}

/* D9 placeholder containers: fully hidden (JS also hides parent block) */
#jm-gc-nav,
#jm-bc-nav {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Chart section label — D1 / D9 heading */
.jm-chart-label {
  font-family: 'Cinzel', serif;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--solar-gold);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin: 0 0 10px;
  display: block;
}
.jm-chart-label strong {
  font-family: inherit;
  color: inherit;
  font-weight: inherit;
}

/* Spacing between D1 and D9 charts stacked in same block */
.jm-chart-label + table.jm-si-table {
  margin-bottom: 0;
}

/* ── South Indian Chart table ────────────────────────────── */
table.jm-si-table {
  width: 100%;
  max-width: 480px;    /* comfortable size — not edge-to-edge on wide screens */
  border-collapse: collapse;
  border: 2px solid var(--solar-gold);
  border-radius: 6px;
  overflow: hidden;
  table-layout: fixed;
  aspect-ratio: 1 / 1;
}
table.jm-si-table td {
  border: 1px solid rgba(244,196,48,0.22);
  padding: 5px 4px;
  vertical-align: top;
  width: 25%;
  aspect-ratio: 1 / 1;
}
td.jm-si-center {
  background: rgba(0,0,0,0.35);
}
td.jm-si-cell {
  background: var(--section-dark);
}
td.jm-si-cell:hover {
  background: rgba(244,196,48,0.05);
}
.jm-si-rashi {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.60rem;
  color: rgba(242,242,242,0.38);
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.jm-si-planets {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--lunar-white);
  line-height: 1.4;
  word-break: break-word;
  margin-top: 2px;
}

/* ── Dasha table ─────────────────────────────────────────── */
.jm-dasha-head {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--solar-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 0 8px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
table.jm-dtbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  min-width: 340px;
}
table.jm-dtbl thead tr {
  background: rgba(244,196,48,0.08);
  border-bottom: 1.5px solid var(--solar-gold);
}
table.jm-dtbl thead th {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--solar-gold);
  padding: 8px 10px;
  text-align: left;
  letter-spacing: 0.06em;
}
table.jm-dtbl tbody tr { border-bottom: 1px solid rgba(255,255,255,0.05); transition: background 0.15s; }
table.jm-dtbl tbody tr:hover { background: rgba(244,196,48,0.04); }
table.jm-dtbl td { padding: 7px 10px; color: var(--lunar-white); }
table.jm-dtbl td.jm-maha {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  color: var(--solar-gold);
  font-size: 0.76rem;
}
tr.jm-dasha-current {
  background: rgba(244,196,48,0.08) !important;
  border-left: 3px solid var(--solar-gold);
}
tr.jm-dasha-current td { font-weight: 700; }

/* ── Dosha note ──────────────────────────────────────────── */
.jm-dosha-note {
  background: rgba(230,57,70,0.08);
  border: 1px solid rgba(230,57,70,0.35);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.85rem;
  color: #ffaaaa;
  margin-top: 14px;
  line-height: 1.6;
}
.jm-dosha-note strong { color: #ff8a93; }
.jm-dosha-note ul { margin: 8px 0 0 16px; }
.jm-dosha-note li { margin-bottom: 4px; }

/* ── Print ─────────────────────────────────────────────────── */
@media print {
  .jm-header::before, .jm-btn-print, .jm-btn-submit,
  #jm-form-section, .jm-loader, .jm-tabs, .jm-tab,
  .jm-actions { display: none !important; }
  .jm-panel { display: block !important; page-break-inside: avoid; }
  .jm-wrap { background: #fff; color: #111; }
  .jm-card { border: 1px solid #ccc; box-shadow: none; }
  .jm-score-banner { border: 1px solid #ccc; box-shadow: none; }
  .jm-score-num, .jm-card-head h3, .jm-birth-card h4 { color: #8B0000 !important; text-shadow: none !important; }
  .jm-table thead tr { background: #f5f0e0 !important; }
  .jm-table thead th { color: #8B0000 !important; }
  .jm-table tfoot tr { background: #f5f0e0 !important; }
  .jm-birth-row .jm-val, .jm-table td, .jm-remarks li { color: #111 !important; }
  .jm-bar-fill { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}    


/*
 * Jyotish Matchmaking — Profile Widget CSS
 * Add this to your plugin stylesheet (jm-style.css or equivalent).
 * Uses your existing :root tokens — no overrides needed.
 * Version: 2.5.0
 */

/* ═══════════════════════════════════════════════════════════
   SAVED PROFILE BAR
   Rendered inside #groom_profile_wrap / #bride_profile_wrap
   by buildProfileWidget() in matchmaking.js
   ═══════════════════════════════════════════════════════════ */

.jm-profile-row {
  display        : flex;
  align-items    : center;
  gap            : 8px;
  flex-wrap      : wrap;
  margin-bottom  : 14px;
  padding        : 9px 12px;
  background     : var(--gold-dim);
  border         : 1px solid var(--gold-border);
  border-radius  : 6px;
}

/* ── Dropdown ─────────────────────────────────────────────── */
.jm-profile-select {
  flex           : 1 1 170px;
  min-width      : 150px;
  max-width      : 260px;
  background     : var(--section-dark);
  color          : var(--solar-gold);
  border         : 1px solid var(--gold-border);
  border-radius  : 4px;
  padding        : 6px 10px;
  font-size      : 13px;
  line-height    : 1.4;
  cursor         : pointer;
  appearance     : auto;
  -webkit-appearance: auto;
}
.jm-profile-select:focus {
  outline        : 2px solid var(--focus-ring);
  border-color   : var(--solar-gold);
}
/* Option text inside the dropdown */
.jm-profile-select option {
  background     : var(--section-dark);
  color          : var(--lunar-white);
}
/* Placeholder option (first, empty value) */
.jm-profile-select option[value=""] {
  color          : rgba(244,196,48,0.45);
}

/* ── Shared button base ───────────────────────────────────── */
.jm-btn-profile {
  padding        : 6px 13px;
  font-size      : 13px;
  font-weight    : 500;
  line-height    : 1.4;
  border-radius  : 4px;
  cursor         : pointer;
  border         : 1px solid transparent;
  transition     : background 0.15s, border-color 0.15s, color 0.15s;
  white-space    : nowrap;
  letter-spacing : 0.02em;
  font-family    : inherit;
}
.jm-btn-profile:disabled {
  opacity        : 0.45;
  cursor         : not-allowed;
}

/* Load — lunar-white solid fill (matches screenshot) */
.jm-btn-load {
  background     : var(--lunar-white);
  color          : var(--cosmic-black);
  border-color   : var(--lunar-white);
}
.jm-btn-load:hover:not(:disabled) {
  background     : #d6d6d6;
  border-color   : #d6d6d6;
}

/* Save Profile — solar-gold outline */
.jm-btn-save {
  background     : transparent;
  color          : var(--solar-gold);
  border-color   : var(--solar-gold);
}
.jm-btn-save:hover:not(:disabled) {
  background     : var(--gold-dim);
}

/* Delete — divine-red outline */
.jm-btn-delete {
  background     : transparent;
  color          : var(--divine-red);
  border-color   : var(--divine-red);
}
.jm-btn-delete:hover:not(:disabled) {
  background     : var(--red-row-bg);
}

/* Counter "3 / 10 saved" */
.jm-profile-count {
  font-size      : 12px;
  color          : rgba(244,196,48,0.50);
  white-space    : nowrap;
  margin-left    : 2px;
  flex-shrink    : 0;
}

/* ── Responsive collapse ──────────────────────────────────── */
@media (max-width: 480px) {
  .jm-profile-row {
    flex-direction : column;
    align-items    : stretch;
  }
  .jm-profile-select {
    max-width      : 100%;
  }
  .jm-btn-profile {
    width          : 100%;
    text-align     : center;
  }
  .jm-profile-count {
    text-align     : right;
    margin-left    : 0;
  }
}