/* ─────────────────────────────────────────────
   profile.css — numiVeda Reports
   Mobile-first. Base = 320px. Enhancements via min-width.
───────────────────────────────────────────── */

/* ── Wrapper ── */
.profile-wrap {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 16px 100px;
  box-sizing: border-box;
  overflow-x: hidden;
}
@media (min-width: 640px) {
  .profile-wrap { padding: 32px 24px 100px; }
}

.profile-section-title {
  font-size: 9px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--nv-gold); display: block; margin-bottom: 14px;
}

/* ── Lagna banner ── */
.lagna-banner {
  background: var(--nv-dark-mid);
  border: 1px solid rgba(201,168,76,.25);
  border-radius: var(--rlg);
  padding: 16px; margin-bottom: 14px;
}
.lagna-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 3px;
}
.lagna-sub { font-size: .8rem; color: rgba(255,255,255,.4); line-height: 1.5; }

/* ── NI Chart ── */
.ni-chart-wrap {
  background: var(--nv-dark-mid);
  border: 1px solid rgba(201,168,76,.18);
  border-radius: var(--rlg);
  padding: 12px; margin-bottom: 12px;
  overflow: hidden;
}
.ni-chart-label {
  font-size: 9px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--nv-gold); margin-bottom: 10px; display: block;
}
.ni-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 4px;
  overflow: hidden;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}
.ni-cell {
  border: 1px solid rgba(201,168,76,.12);
  min-height: 46px;
  padding: 3px 4px;
  font-size: .58rem; color: rgba(255,255,255,.5);
  position: relative;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-start;
  overflow: hidden;
  word-break: break-word;
  box-sizing: border-box;
}
.ni-cell.lagna  { background: rgba(201,168,76,.08); }
.ni-cell.empty  { background: rgba(0,0,0,.2); }
.ni-cell.empty svg { stroke: rgba(201,168,76,.15); }
.ni-house-num {
  font-size: .52rem; color: rgba(255,255,255,.22);
  line-height: 1; margin-bottom: 1px; flex-shrink: 0;
}
.ni-planets {
  font-size: .58rem; color: var(--nv-gold-light);
  line-height: 1.2; font-weight: 600;
}
.ni-lagna-mark {
  font-size: .48rem; color: var(--nv-gold); font-weight: 700;
  position: absolute; bottom: 2px; right: 2px;
}

/* ── Planet table — horizontal scroll on mobile ── */
.chart-table-wrap {
  background: var(--nv-dark-mid);
  border: 1px solid rgba(201,168,76,.15);
  border-radius: var(--rlg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 12px;
}
.chart-table-label {
  font-size: 9px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--nv-gold); padding: 10px 14px 8px;
  border-bottom: 1px solid rgba(201,168,76,.1);
  background: rgba(255,255,255,.02);
  white-space: nowrap;
}
.chart-table {
  width: 100%; border-collapse: collapse;
  font-size: .75rem;
  min-width: 300px;
}
.chart-table th {
  font-size: .6rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.3); padding: 7px 10px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  text-align: left; white-space: nowrap;
}
.chart-table td {
  padding: 5px 10px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  color: rgba(255,255,255,.65); vertical-align: middle;
  white-space: nowrap;
}
.chart-table tr.lagna-row td { color: var(--nv-gold-light); font-weight: 600; }
.chart-retro { font-size: .68rem; color: var(--nv-red); margin-left: 3px; }

/* ── Dasha table ── */
.dasha-wrap {
  background: rgba(201,168,76,.05);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: var(--rlg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 12px;
}
.dasha-label {
  font-size: 9px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--nv-gold); padding: 10px 14px 8px;
  border-bottom: 1px solid rgba(201,168,76,.12);
  white-space: nowrap;
}
.dasha-table {
  width: 100%; border-collapse: collapse;
  font-size: .75rem; min-width: 260px;
}
.dasha-table th {
  font-size: .6rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  color: rgba(255,255,255,.3); padding: 6px 10px;
  border-bottom: 1px solid rgba(255,255,255,.06); text-align: left;
}
.dasha-table td {
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  color: rgba(255,255,255,.6);
}
.dasha-table tr.dasha-md td    { color: var(--nv-gold-light); font-weight: 600; }
.dasha-table tr.dasha-current td { color: #fff; background: rgba(201,168,76,.06); }

/* ── Dosha pills ── */
.dosha-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.dosha-pill {
  font-size: .68rem; font-weight: 700;
  padding: 4px 10px; border-radius: 50px; letter-spacing: .04em;
}
.dosha-present { background: rgba(192,57,43,.15); border: 1px solid rgba(192,57,43,.3); color: var(--nv-red); }
.dosha-clear   { background: rgba(39,174,96,.1);  border: 1px solid rgba(39,174,96,.25); color: var(--nv-green); }

/* ── Section card ── */
.section-card {
  background: var(--nv-dark-mid);
  border: 1px solid rgba(201,168,76,.12);
  border-radius: var(--rlg);
  padding: 14px 16px; margin-bottom: 10px;
}
.section-label {
  font-size: 9px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.3); margin-bottom: 4px; display: block;
}
.section-head {
  font-family: 'Playfair Display', serif;
  font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: 6px;
}
.section-text { font-size: .8rem; color: rgba(255,255,255,.5); line-height: 1.7; }

/* ── Numerology divider ── */
.num-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0 16px;
}
.num-divider-line { flex: 1; height: 1px; background: rgba(201,168,76,.15); }
.num-divider-text {
  font-family: 'Playfair Display', serif;
  font-size: .85rem; font-style: italic;
  color: var(--nv-gold-light); white-space: nowrap;
}

/* ── Numbers grid — 2 cols mobile → 3 cols 400px+ ── */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px; margin-bottom: 12px;
}
@media (min-width: 400px) {
  .numbers-grid { grid-template-columns: repeat(3, 1fr); }
}
.number-card {
  background: var(--nv-dark-mid);
  border: 1px solid rgba(201,168,76,.12);
  border-radius: var(--rlg);
  padding: 12px 8px; text-align: center;
}
.num-big {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; font-weight: 700;
  color: var(--nv-gold); line-height: 1;
  display: block; margin-bottom: 3px;
}
.num-lbl {
  font-size: .6rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.3); display: block; margin-bottom: 3px;
}
.num-title   { font-size: .68rem; color: rgba(255,255,255,.45); }
.num-summary { font-size: .65rem; color: rgba(255,255,255,.28); line-height: 1.5; margin-top: 3px; }

/* ── Lo Shu Grid ── */
.loshu-card {
  background: var(--nv-dark-mid);
  border: 1px solid rgba(201,168,76,.12);
  border-radius: var(--rlg);
  padding: 14px 16px; margin-bottom: 12px;
}
.loshu-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: .9rem; font-weight: 700; color: #fff; margin-bottom: 10px;
}
.loshu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px; max-width: 150px; margin: 0 auto 10px;
}
.loshu-cell {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.07);
  color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.02);
}
.loshu-cell.present {
  color: var(--nv-gold);
  background: rgba(201,168,76,.1);
  border-color: rgba(201,168,76,.25);
}
.loshu-cell.missing {
  color: rgba(255,255,255,.1);
  background: transparent;
  text-decoration: line-through;
}
.loshu-summary {
  font-size: .74rem; color: rgba(255,255,255,.4);
  line-height: 1.6; text-align: center;
}

/* ── Sticky CTA bar ── */
.profile-cta-bar {
  position: sticky; bottom: 0;
  background: var(--nv-dark-mid);
  border-top: 2px solid var(--nv-gold);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
}
.profile-cta-btn {
  background: linear-gradient(90deg, var(--nv-gold), var(--nv-gold-amber));
  color: var(--nv-dark); border: none; border-radius: var(--r);
  padding: 13px 24px; font-size: .88rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  width: 100%; max-width: 360px;
}
