/* ── RAAJYOG App — Light parchment Sabha ──────────────────────── */

:root {
  --bg: #fbf3e7;
  --bg-deep: #f3e6d2;
  --card: #ffffff;
  --card-soft: #f7edd9;
  --charcoal: #2a2118;
  --ink: #3a2f24;
  --muted: #9a8670;
  --gold: #b8892e;
  --gold-lit: #c9a24a;
  --gold-deep: #8a6a28;
  --line: rgba(184, 137, 46, 0.22);
  --line-soft: rgba(184, 137, 46, 0.14);
  --green: #2e7d4f;
  --amber: #c4922e;
  --warn: #b4602a;
  --shell-max: 430px;
  --nav-h: 68px;
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  background: #e8d7bc;
  -webkit-font-smoothing: antialiased;
}

.app-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--shell-max);
  height: 100dvh;
  margin: 0 auto;
  background: linear-gradient(180deg, #f0e0c8 0%, var(--bg) 28%, #fdf8f0 100%);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(90, 64, 36, 0.08), 0 20px 50px rgba(60, 40, 15, 0.15);
}

.app-main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0.85rem 1rem calc(var(--nav-h) + 1.25rem);
}

.app-main::-webkit-scrollbar {
  width: 3px;
}

.app-main::-webkit-scrollbar-thumb {
  background: rgba(184, 137, 46, 0.35);
  border-radius: 4px;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.22s ease;
}

.tab-panel.is-active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Header ───────────────────────────────────────────────────── */

.apphead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.25rem 0.1rem 0.85rem;
}

.greet {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.hi {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
  line-height: 1.25;
  word-break: break-word;
}

.swar {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  max-width: 100%;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gold-deep);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 999px;
  line-height: 1.2;
}

.swar b {
  color: var(--charcoal);
  font-weight: 700;
}

.swar-arch {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pranam-avatar {
  flex: 0 0 auto;
  width: 78px;
  height: 86px;
  background-image: url("../assets/pranam.png");
  background-size: contain;
  background-position: bottom center;
  background-repeat: no-repeat;
}

/* ── Yogring ──────────────────────────────────────────────────── */

.ring-wrap {
  display: block;
  width: 100%;
  margin: 0 auto 0.35rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: center;
}

.yogring {
  position: relative;
  width: 248px;
  height: 248px;
  margin: 0 auto;
}

.yogring svg {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding: 0 1.5rem;
  text-align: center;
}

.ring-center .glyph {
  font-size: 1.55rem;
  line-height: 1;
  margin-bottom: 0.25rem;
  color: var(--gold-deep);
}

.ring-center .glyph i {
  color: var(--gold-deep);
}

.ring-center .arch {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--charcoal);
  line-height: 1.15;
}

.ring-center .dev {
  margin-top: 0.25rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1.3;
}

.ring-center .el {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.ring-hint {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

/* ── Kingdom Pulse (Saptanga) ─────────────────────────────────── */

.kp-wrap {
  width: 100%;
  margin: 0.35rem 0 0.5rem;
  display: flex;
  justify-content: center;
}

.kp-wrap svg {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
}

/* ── Daily Dharma Dilemma (Sabha, below chakra) ───────────────── */

.dd-wrap,
.rq-wrap {
  width: 100%;
  margin: 0.85rem 0 0.25rem;
  display: block !important;
  visibility: visible !important;
  opacity: 1;
}

.dd-wrap.is-loading,
.rq-wrap.is-loading {
  opacity: 0.72;
}

.dd-wrap .sec-title,
.rq-wrap .sec-title {
  margin-top: 0.25rem;
  margin-bottom: 0.55rem;
}

.dd-card,
.rq-card {
  background: #fffdf8;
  border: 1px solid rgba(184, 137, 46, 0.22);
  border-radius: 16px;
  padding: 1rem 1.05rem 1.1rem;
  box-shadow: 0 6px 20px rgba(42, 33, 24, 0.06);
}

.dd-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a6a28;
}

.dd-title,
.rq-title {
  margin: 0.45rem 0 0;
  font-family: Cinzel, "Times New Roman", serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: #2a2118;
  letter-spacing: 0.02em;
}

.dd-context,
.rq-desc {
  margin: 0.45rem 0 0.9rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #3a2f24;
}

.dd-choices {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.dd-btn {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  color: #3a2f24;
  background: #f7f1e6;
  border: 1.5px solid rgba(42, 33, 24, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.dd-btn:hover:not(:disabled) {
  border-color: rgba(184, 137, 46, 0.45);
  background: #fff;
}

.dd-btn .dd-delta {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #8a6a28;
}

.dd-btn.is-picked {
  color: #2a2118;
  background: rgba(184, 137, 46, 0.14);
  border-color: #b8892e;
  font-weight: 600;
}

.dd-btn:disabled {
  cursor: default;
  opacity: 0.72;
}

.dd-card.is-resolved .dd-btn:not(.is-picked) {
  opacity: 0.45;
}

.dd-note,
.rq-note {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.8rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #8a6a28;
  background: rgba(184, 137, 46, 0.1);
  border-radius: 10px;
}

.dd-note.is-error,
.rq-note.is-error {
  color: #8a3a1a;
  background: rgba(180, 96, 42, 0.1);
}

/* ── Royal Quest (Sabha, below Dharma) ────────────────────────── */

.rq-wrap {
  margin-top: 1rem;
  margin-bottom: 0.85rem;
}

.rq-card.is-completed {
  border-color: rgba(46, 125, 79, 0.35);
  background: linear-gradient(165deg, #fffdf8 0%, rgba(46, 125, 79, 0.07) 100%);
}

.rq-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a6a28;
  background: rgba(184, 137, 46, 0.14);
  border: 1px solid rgba(184, 137, 46, 0.32);
  border-radius: 999px;
}

.rq-card.is-completed .rq-tag {
  color: #2e7d4f;
  background: rgba(46, 125, 79, 0.12);
  border-color: rgba(46, 125, 79, 0.3);
}

.rq-btn {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, #b8892e, #8a6a28);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.12s ease;
}

.rq-btn:hover:not(:disabled) {
  opacity: 0.94;
}

.rq-btn:disabled {
  cursor: default;
  opacity: 0.7;
  background: #7a8578;
}

.rq-note {
  color: #2e7d4f;
  background: rgba(46, 125, 79, 0.1);
  font-weight: 600;
}

/* ── Section titles & carousels ───────────────────────────────── */

.sec-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.35rem 0.65rem;
  margin: 1.1rem 0 0.75rem;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-align: left;
}

.sec-title::before {
  content: "—";
  margin-right: 0.15rem;
  color: var(--gold);
  letter-spacing: 0;
  flex: 0 0 auto;
}

.sec-title > span:first-of-type {
  flex: 0 1 auto;
  text-align: left;
}

.sec-title .hint {
  display: block;
  width: 100%;
  margin: 0.15rem 0 0 1.1rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
  text-align: left;
}

#panel-sabha .sec-title,
#panel-sabha .dd-wrap .sec-title,
#panel-sabha .rq-wrap .sec-title {
  justify-content: flex-start;
  text-align: left;
}

.carousel {
  display: flex;
  gap: 0.7rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.report-tab {
  flex: 0 0 auto;
  width: 92px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 1rem 0.4rem;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(90, 64, 36, 0.05);
  cursor: pointer;
  text-align: center;
}

.report-tab .rt-ic {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  font-size: 1.55rem;
  line-height: 1;
  color: var(--gold-deep);
}

.report-tab .rt-ic.ic-sun {
  color: #d4a017;
}

.report-tab .rt-ic.ic-crown {
  color: #c4922e;
}

.report-tab .rt-ic.ic-palette {
  color: #9a5b8a;
}

.report-tab .rt-ic.ic-cal {
  color: #6a7d8a;
}

.report-tab .rt-ic.ic-year {
  color: #5a7a6a;
}

.report-tab .rt-ic.ic-hourglass {
  color: #b4602a;
}

.report-tab .rt-ic.ic-bolt {
  color: #c4922e;
}

.report-tab .rt-ic.ic-num {
  color: #6a7d9a;
}

.report-tab .rt-ic.ic-sangam {
  color: #8a6a28;
}

.report-tab .rt-ic.ic-compass {
  color: #4a8a7a;
}

.report-tab .rt-ic.ic-hand {
  color: #a07050;
}

.report-tab .rt-lb {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}

.tradition-card {
  flex: 0 0 auto;
  width: 210px;
  scroll-snap-align: start;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0;
  padding: 1rem 0.95rem;
  font: inherit;
  color: inherit;
  text-align: left;
  background: linear-gradient(160deg, #fbf6ec, #f3e4cc);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(90, 64, 36, 0.05);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tradition-card:hover {
  border-color: var(--line);
  box-shadow: 0 4px 14px rgba(90, 64, 36, 0.1);
}

.tr-ic {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.45rem;
  line-height: 1;
  color: var(--gold-deep);
}

.tr-ic.ic-tarot {
  color: #7a5a9a;
}

.tr-ic.ic-grid {
  color: #5a7a6a;
}

.tr-ic.ic-chinese {
  color: #b4602a;
}

.tr-ic.ic-western {
  color: #4a7a9a;
}

.tr-ic.ic-moon {
  color: #4a6a9a;
}

.tr-ic.ic-bazi {
  color: #a05a2a;
}

.tr-ic.ic-desh {
  color: #3d7a5a;
}

.tr-ic.ic-ayur {
  color: #5a8a3a;
}

.tr-ic.ic-panchang {
  color: #8a6a28;
}

.tr-ic.ic-samhita {
  color: #5a7a9a;
}

.tr-ic.ic-kul {
  color: #8a4a5a;
}

.tr-ic.ic-feng {
  color: #2a7a7a;
}

.tr-ic.ic-analysis {
  color: #6a5a8a;
}

.tr-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.tr-sub {
  margin-top: 0.3rem;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--muted);
}

/* ── Rituals ──────────────────────────────────────────────────── */

.ritual-row {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.ritual-btn {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: var(--gold-deep);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(90, 64, 36, 0.06);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ritual-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(90, 64, 36, 0.12);
}

.ritual-btn .fa-heart {
  color: #b45a5a;
}

.ritual-btn .fa-fire {
  color: #c4722e;
}

.ritual-btn .fa-gem {
  color: #5a8ab4;
}

.ritual-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(90, 64, 36, 0.05);
}

.ritual-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--card-soft);
  border-radius: 12px;
  font-size: 1.35rem;
  color: var(--gold-deep);
}

.ritual-body {
  flex: 1;
  min-width: 0;
}

.ritual-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
}

.ritual-sub {
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.35;
}

.ritual-action {
  flex: 0 0 auto;
  padding: 0.35rem 0.15rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-deep);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

/* ── Placeholders ─────────────────────────────────────────────── */

.placeholder-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 2rem 1.25rem;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
}

.placeholder-label {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
}

.placeholder-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── Chanakya FAB ─────────────────────────────────────────────── */

.chanakya-fab {
  position: absolute;
  right: 0.9rem;
  bottom: calc(var(--nav-h) + 0.75rem);
  z-index: 40;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(90, 64, 36, 0.18);
  cursor: pointer;
}

.fab-face {
  display: block;
  width: 100%;
  height: 100%;
  background-image: url("../assets/chanakya.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* ── Chanakya FAB quick sheet ─────────────────────────────────── */

.ck-quick-sheet {
  max-height: 72%;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0));
}

.ck-quick-head {
  padding: 0.15rem 2.4rem 0.85rem 0.1rem;
}

.ck-quick-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  line-height: 1.2;
}

.ck-quick-sub {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.35;
}

.ck-quick-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ck-quick-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  margin: 0;
  padding: 0.85rem 0.7rem;
  text-align: left;
  color: inherit;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ck-quick-item:hover,
.ck-quick-item:focus-visible {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--line);
  outline: none;
}

.ck-quick-ic {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-size: 1.05rem;
  color: var(--gold-deep);
  background: linear-gradient(160deg, #fbe7ce, #f6d9ae);
  border: 1px solid var(--line-soft);
  border-radius: 50%;
}

.ck-quick-txt {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.ck-quick-txt b {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--charcoal);
}

.ck-quick-txt small {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.3;
}

.ck-quick-go {
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gold-deep);
  white-space: nowrap;
}

/* ── Bottom nav ───────────────────────────────────────────────── */

.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: var(--nav-h);
  padding: 0 0.2rem env(safe-area-inset-bottom, 0);
  background: linear-gradient(180deg, #f0e4d0 0%, #e8d7bc 55%, #dfc9a8 100%);
  border-top: 1px solid rgba(90, 64, 36, 0.18);
  border-radius: 18px 18px 0 0;
  backdrop-filter: blur(12px);
  box-shadow:
    0 -8px 24px rgba(40, 28, 12, 0.18),
    0 -2px 8px rgba(40, 28, 12, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.3rem 0.2rem;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-ic {
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.nav-tab.is-active .nav-ic {
  transform: translateY(-1px) scale(1.08);
  color: var(--gold-deep);
}

.nav-tab span:last-child {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-tab.is-active {
  color: var(--gold-deep);
}

.nav-tab:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: -4px;
  border-radius: 8px;
}

/* ── Front detail sheet ───────────────────────────────────────── */

.sheet-bd {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(40, 28, 12, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.sheet-bd.show {
  opacity: 1;
  pointer-events: auto;
}

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 51;
  max-height: 88%;
  padding: 0.7rem 1.15rem 2.25rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(180deg, #fffaf2 0%, #fbf3e7 40%, #f7edd9 100%);
  border-top: 1px solid var(--line);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -12px 36px rgba(40, 28, 12, 0.18);
  transform: translateY(105%);
  transition: transform 0.32s cubic-bezier(0.2, 0.85, 0.25, 1);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.sheet::-webkit-scrollbar {
  display: none;
}

.sheet.show {
  transform: translateY(0);
}

.grip {
  width: 40px;
  height: 4px;
  margin: 0.15rem auto 1rem;
  border-radius: 999px;
  background: rgba(184, 137, 46, 0.35);
}

.sheet-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  font-size: 1.05rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.sheet-close:hover {
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--line);
}

.sh-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-right: 2.4rem;
}

.sh-head .icb {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 1.15rem;
  color: var(--gold-deep);
  background: linear-gradient(160deg, #fbe7ce, #f6d9ae);
  border: 1px solid rgba(184, 137, 46, 0.28);
  border-radius: 13px;
}

.sh-head .nm {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.2;
}

.sh-head .dv {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: var(--gold);
  line-height: 1.35;
}

.sh-head .scp {
  margin-left: auto;
  text-align: right;
}

.sh-head .scp .b {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.sh-head .scp .s {
  margin-top: 0.15rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.elbar {
  display: flex;
  height: 10px;
  margin-top: 0.9rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(184, 137, 46, 0.1);
}

.elbar span {
  display: block;
  height: 100%;
}

.ellegend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  margin-top: 0.55rem;
  font-size: 0.7rem;
  color: var(--muted);
}

.ellegend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.3rem;
  border-radius: 2px;
  vertical-align: middle;
}

.sh-block {
  margin-top: 1rem;
}

.sh-block .lb {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.35rem;
}

.sh-block .tx {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink);
}

.sh-block .trend-note {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.sv-who i {
  margin-right: 0.2rem;
  color: var(--gold-deep);
}

/* ── Report sheet extras ──────────────────────────────────────── */
.ank-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.65rem;
}

.ank-num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gold-deep);
  background: radial-gradient(circle at 32% 28%, #fff6e6, #f0d4a8 70%);
  border: 1px solid rgba(184, 137, 46, 0.4);
  box-shadow: 0 4px 14px rgba(184, 137, 46, 0.18);
}

.ank-num.sm {
  width: 40px;
  height: 40px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.chart-row {
  margin-top: 0.75rem;
}

.chart-row:first-child {
  margin-top: 0;
}

.chart-row .rn span {
  color: var(--gold);
}

.chart-sec-note {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.45;
}

.yoga-item {
  margin-top: 0.55rem;
  font-size: 0.88rem;
  color: var(--ink);
}

.yoga-item b {
  color: var(--gold);
}

.yoga-item span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

.gem-card {
  margin-top: 0.45rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 2px 10px rgba(90, 64, 36, 0.05);
}

.gem-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gem-sw {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(160deg, #f5f7fa, #dfe6ee);
  border: 1px solid var(--line-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.gem-sw.is-pearl {
  background: radial-gradient(circle at 35% 30%, #ffffff, #e8eef4 70%);
}

.gem-sw.is-ruby {
  background: radial-gradient(circle at 35% 30%, #f6a090, #b22222 75%);
}

.gem-sw.is-emerald {
  background: radial-gradient(circle at 35% 30%, #a8e0c0, #2e7d52 75%);
}

.gem-sw.is-diamond {
  background: radial-gradient(circle at 35% 30%, #ffffff, #c8d0dc 75%);
}

.ank-meta .rn {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
}

.ank-avoid {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: var(--warn);
  line-height: 1.45;
}

.dina-list {
  margin-top: 0.25rem;
}

.dina-row {
  display: flex;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line-soft);
}

.dina-row:first-child {
  border-top: none;
}

.dina-time {
  flex: 0 0 auto;
  width: 6.2rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1.35;
}

.dina-body .dl {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
}

.dina-body .ds {
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

.peak-time {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
}

.rang-row {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.55rem;
}

.rang-cell {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.55);
}

.rang-cell .sw {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.rang-cell .sw.dircomp {
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-deep);
  background: rgba(184, 137, 46, 0.12);
}

.rang-cell.bad .sw.dircomp {
  color: #b4602a;
  background: rgba(224, 160, 111, 0.14);
}

.rang-cell .rl {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.rang-cell .rn {
  margin-top: 0.15rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
}

.rang-cell.bad .rn {
  color: var(--warn);
}

.rang-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.55rem;
}

.rang-swatch {
  text-align: center;
}

.rang-swatch span {
  display: block;
  width: 34px;
  height: 34px;
  margin: 0 auto;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.rang-swatch em {
  display: block;
  margin-top: 0.3rem;
  font-style: normal;
  font-size: 0.65rem;
  color: var(--muted);
}

.karma-title {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold);
}

.rpt-note {
  margin-top: 0.45rem;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.45;
}

.gem-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
}

.gem-for {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--gold);
}

.cycle-pick {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.55rem;
}

.jd-input {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.jd-save,
.vastu-chip {
  padding: 0.45rem 0.7rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-deep);
  background: rgba(184, 137, 46, 0.1);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}

.vastu-chip.is-on,
.vastu-chip.on {
  color: #fff8ee;
  background: var(--gold-lit);
  border-color: var(--gold-lit);
}

.jd-input-full {
  display: block;
  width: 100%;
  margin-top: 0.15rem;
}

.vastu-face-lbl {
  margin: 0.85rem 0 0.45rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.vastu-compass {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0.4rem auto 0.75rem;
}

.vastu-compass-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(184, 137, 46, 0.35);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), rgba(247, 232, 212, 0.35));
}

.vastu-dir-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(184, 137, 46, 0.3);
  border-radius: 50%;
  cursor: pointer;
}

.vastu-dir-btn.is-on {
  color: #fff8ee;
  background: var(--gold-lit);
  border-color: var(--gold-lit);
}

.loop {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  margin: 0 0 0.65rem;
  padding: 0.8rem 0.9rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line-soft);
  border-radius: 15px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.loop:hover {
  border-color: var(--line);
}

.loop .ic {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font-size: 1rem;
  color: var(--gold-deep);
  background: linear-gradient(160deg, #fbe7ce, #f6d9ae);
  border: 1px solid rgba(184, 137, 46, 0.25);
  border-radius: 11px;
}

.loop .txt {
  flex: 1;
  min-width: 0;
}

.loop .txt .t {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--charcoal);
}

.loop .txt .s {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
}

.loop .tag {
  flex: 0 0 auto;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.palm-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  margin: 0;
  padding: 0.95rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
}

.palm-hand {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 1.25rem;
  color: var(--gold-deep);
  background: linear-gradient(160deg, #fbe7ce, #f6d9ae);
  border-radius: 12px;
}

.palm-txt {
  flex: 1;
  min-width: 0;
}

.palm-t {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--charcoal);
}

.palm-s {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

.palm-go {
  color: var(--gold);
}

/* ── Hast Rekha full-screen overlay ───────────────────────────── */
.gov {
  position: absolute;
  inset: 0;
  z-index: 72;
  display: none;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 0;
  background: radial-gradient(620px 420px at 50% -4%, rgba(201, 123, 74, 0.32), transparent 58%),
    linear-gradient(180deg, #efd9b8 0%, #f7ebda 22%, #fbf3e7 55%, #fdf8f0 100%);
}

.gov.show {
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.3s ease;
}

.gov::-webkit-scrollbar {
  display: none;
}

.gov .gclose {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  font-size: 1.2rem;
  color: #8a7a68;
  background: transparent;
  border: none;
  cursor: pointer;
}

#palmBody {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 52px 24px 32px;
}

.palm-stage {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gm-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
}

.gm-head .gm-ic {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 1.45rem;
  line-height: 1;
  background: linear-gradient(160deg, #fff1db, #f6d9ae);
  border: 1px solid rgba(184, 137, 46, 0.3);
  border-radius: 13px;
  box-shadow: 0 2px 8px rgba(184, 137, 46, 0.12);
}

.gm-head .gm-t {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2a2118;
}

.gm-head .gm-d {
  margin-top: 0.18rem;
  font-size: 0.74rem;
  color: #8a7a68;
}

.palm-scan {
  position: relative;
  display: grid;
  place-items: center;
  width: 168px;
  height: 168px;
  margin: 1.75rem auto 0.35rem;
  border-radius: 24px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.72), rgba(255, 246, 232, 0.55));
  border: 1px solid rgba(184, 137, 46, 0.2);
  box-shadow: 0 10px 28px rgba(90, 64, 36, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.palm-scan .bighand {
  font-size: 5.1rem;
  line-height: 1;
  filter: sepia(0.35) saturate(1.15);
  transform: translateY(2px);
}

.palm-scan .scanline {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #c9a24a, transparent);
  box-shadow: 0 0 12px rgba(201, 162, 74, 0.75);
  animation: palmScan 1.4s ease-in-out infinite;
}

@keyframes palmScan {
  0% {
    top: 14%;
  }
  50% {
    top: 84%;
  }
  100% {
    top: 14%;
  }
}

.gm-status {
  min-height: 1.25rem;
  margin: 1.15rem 0 0;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  color: #ad7d1e;
}

.gov .gbtn,
#palmBody .gbtn {
  display: block;
  width: 100%;
  margin-top: 1.15rem;
  padding: 0.95rem 1.15rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  color: #2a1d02;
  background: linear-gradient(180deg, #c9a24a, #b8892e 55%, #8a6a28);
  border: none;
  border-radius: 14px;
  box-shadow: 0 8px 22px -10px rgba(184, 137, 46, 0.7);
  cursor: pointer;
}

.gov .gbtn:active,
#palmBody .gbtn:active {
  transform: translateY(1px);
}

.palm-line {
  margin-top: 0.85rem;
  padding: 0.15rem 0 0.15rem 0.8rem;
  border-left: 2px solid var(--gold);
  transition: opacity 0.35s ease;
}

.palm-line .pl-n {
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
  color: #ad7d1e;
}

.palm-line .pl-r {
  margin-top: 0.28rem;
  font-size: 0.82rem;
  color: var(--charcoal);
  line-height: 1.55;
}

.palm-note {
  margin-top: 1.15rem;
  font-size: 0.74rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.55;
}

.ghost-btn {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 13px;
  cursor: pointer;
}

.rpt-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  cursor: pointer;
}

.rpt-link i {
  color: var(--gold-deep);
}

.gate {
  margin-top: 1.1rem;
  padding: 0.95rem 1rem;
  text-align: center;
  border: 1.5px dashed rgba(184, 137, 46, 0.4);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.45);
}

.gate .gt {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.gate .gs {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.gbtn,
.gate .gbtn {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.55rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff8ec;
  background: linear-gradient(180deg, #c9a24a, #8a6a28);
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.gbtn i {
  margin-left: 0.35rem;
  font-size: 0.75em;
}

.gem-order {
  margin-top: 0.75rem;
  padding: 1rem 0.15rem 0.25rem;
  border-top: 1px solid var(--line-soft);
}

.gem-order .kick {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.gem-order-title {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.gem-order .lead {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.ord-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.7rem;
  padding: 0.8rem 0.85rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ord-item:hover {
  border-color: var(--gold);
}

.ord-item.sel {
  background: #f5e4c3;
  border-color: var(--gold);
}

.ord-sw {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.ord-txt {
  flex: 1;
  min-width: 0;
}

.ord-nm {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--charcoal);
}

.ord-meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.7rem;
  color: var(--muted);
}

.ord-price {
  flex: 0 0 auto;
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gold);
}

.gem-order-note {
  margin-top: 0.75rem;
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.5;
}

.expand-chev {
  display: inline-block;
  margin-left: 0.35rem;
  transition: transform 0.2s ease;
}

.expand-chev.open {
  transform: rotate(180deg);
}

.gem-order .gbtn {
  color: #2a1d02;
  background: linear-gradient(180deg, #c9a24a, #b8892e 55%, #8a6a28);
}

/* ── Other Traditions sheets ──────────────────────────────────── */
.tarot-sub {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

.tarot-cards {
  display: flex;
  gap: 0.55rem;
  justify-content: center;
  margin-top: 0.9rem;
}

.tcard {
  flex: 1;
  max-width: 92px;
  aspect-ratio: 2 / 3;
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border-radius: 11px;
  cursor: pointer;
}

.tcard.back {
  background: linear-gradient(150deg, #f3c48a, #fbe8ce);
  border: 1px solid rgba(184, 137, 46, 0.3);
}

.tcard.back span {
  font-size: 1.35rem;
  color: var(--gold-deep);
  opacity: 0.65;
}

.tcard.face {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  padding: 0.55rem 0.45rem;
  text-align: center;
  cursor: default;
  background: linear-gradient(160deg, #fcefdd, #f6dca8);
  border: 1px solid var(--gold);
}

.tcard.face .tc-slot {
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.tcard.face .tc-glyph {
  font-size: 1.55rem;
  line-height: 1;
}

.tcard.face .tc-name {
  font-size: 0.62rem;
  color: var(--charcoal);
  line-height: 1.25;
}

.tarot-read {
  margin-top: 0.9rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--gold);
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--charcoal);
}

.tarot-read .tq {
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-style: italic;
  color: var(--gold);
}

.loshu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.loshu-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.55);
  font-family: var(--font-display);
}

.loshu-cell .ln {
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: var(--gold);
}

.loshu-cell.empty .ln {
  color: var(--muted);
  opacity: 0.4;
}

.loshu-cell .lc {
  margin-top: 0.15rem;
  font-family: var(--font-body);
  font-size: 0.55rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Rituals / Akhara ─────────────────────────────────────────── */
.rang-h {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal);
}

.kevent {
  border-color: rgba(180, 96, 42, 0.35);
}

.kevent-ic {
  margin-right: 0.25rem;
}

.kevent-dismiss {
  display: block;
  width: 100%;
  margin-top: 0.85rem;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
}

.kevent-dismiss:hover {
  color: var(--gold);
}

.games {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.55rem;
}

.gtile {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0.75rem 0.45rem;
  text-align: center;
  font: inherit;
  color: inherit;
  background: linear-gradient(160deg, #fffaf2, #f3e4cc);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.gtile:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.gtile .gt-ic {
  font-size: 1.4rem;
  line-height: 1;
}

.gtile .gt-t {
  margin-top: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--charcoal);
}

.gtile .gt-s {
  margin-top: 0.25rem;
  font-size: 0.58rem;
  color: var(--muted);
  line-height: 1.35;
}

.gtile .gt-tag {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.15rem 0.4rem;
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
}

.sm-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  max-width: 230px;
  margin: 1rem auto;
}

.sm-tile {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  font-size: 1.7rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  cursor: pointer;
  opacity: 0.55;
  transition: transform 0.1s ease, opacity 0.1s ease, box-shadow 0.12s ease;
}

.sm-tile.lit {
  opacity: 1;
  transform: scale(1.04);
  box-shadow: 0 0 0 2px var(--gold);
}

.gm-score {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.gm-score b {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--gold);
}

.opt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 1rem;
}

.opt-btn {
  margin: 0;
  padding: 0.75rem 0.7rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--charcoal);
  text-align: left;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  cursor: pointer;
}

.opt-btn.is-on,
.opt-btn:hover {
  border-color: var(--gold);
  background: #f5e4c3;
}

.opt-btn.right {
  border-color: #4fb477;
  background: rgba(79, 180, 119, 0.14);
  color: #2e7d4f;
}

.opt-btn.wrong {
  border-color: #b45309;
  background: rgba(180, 83, 9, 0.14);
  color: #b4602a;
}

.seq-line {
  margin: 1.1rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--charcoal);
}

.gm-why {
  display: none;
  margin-top: 1rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--gold);
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--charcoal);
}

.gm-why.show {
  display: block;
  animation: fadeIn 0.35s ease;
}

.gm-why .wq {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
}

.ritual-card.is-done {
  opacity: 0.75;
}

.ritual-card.is-done .ritual-action {
  color: var(--gold-deep);
}

.front-hit {
  cursor: pointer;
}

/* ── Chanakya Console ─────────────────────────────────────────── */

.ck-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.ck-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.ck-sub {
  margin-top: 0.2rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--gold);
}

.ck-ticket {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gold-deep);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}

.ck-ticket i {
  color: var(--gold);
}

.gochar-bar {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  margin-bottom: 0.75rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gochar-bar::-webkit-scrollbar {
  display: none;
}

.gochar-card {
  flex: 0 0 auto;
  width: 68px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.65rem 0.35rem;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(90, 64, 36, 0.04);
  text-align: center;
}

.gochar-card i {
  font-size: 0.95rem;
}

.gochar-card .gc-pct {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
}

.gochar-card .gc-name {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--ink);
}

.ck-drop {
  margin-bottom: 0.75rem;
}

.ck-drop-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1rem;
  text-align: left;
  background: linear-gradient(160deg, #f7edd9, #f0e0c8);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
}

.ck-drop-lbl {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.ck-drop-lbl > i {
  margin-right: 0.35rem;
  color: var(--gold-deep);
}

.ck-drop-d {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.ck-car {
  color: var(--muted);
  transition: transform 0.2s ease;
}

.ck-drop.is-open .ck-car {
  transform: rotate(180deg);
}

.ck-drop-list {
  margin-top: 0.4rem;
  padding: 0.35rem;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(90, 64, 36, 0.08);
}

.ck-drop-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  width: 100%;
  padding: 0.7rem 0.65rem;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
}

.ck-drop-item:hover,
.ck-drop-item.is-active {
  background: var(--card-soft);
}

.ck-drop-item > i {
  margin-top: 0.15rem;
  color: var(--gold-deep);
}

.ck-drop-item b {
  display: block;
  font-size: 0.85rem;
}

.ck-drop-item small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
}

.lockchip {
  margin-left: auto;
  padding: 0.15rem 0.4rem;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 600;
  color: var(--gold-deep);
  background: rgba(184, 137, 46, 0.15);
  border-radius: 999px;
  white-space: nowrap;
}

.ck-ai-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.75rem;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
}

.ck-ai-avatar {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background:
    url("../assets/chanakya.png") center top / cover no-repeat,
    linear-gradient(160deg, #e0c878, #b8892e);
}

.ck-ai-meta {
  flex: 1;
  min-width: 0;
}

.ck-ai-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.ck-ai-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.1rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2e7d4f;
  box-shadow: 0 0 0 0 rgba(46, 125, 79, 0.5);
}

.ck-prashna-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-deep);
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.ck-chat {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}

.ck-bubble {
  max-width: 92%;
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  border-radius: 14px;
}

.ck-bubble.bot {
  align-self: flex-start;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-soft);
}

.ck-bubble.user {
  align-self: flex-end;
  color: var(--charcoal);
  background: #f2e5d1;
  border: 1px solid rgba(184, 137, 46, 0.18);
}

.ck-emphasis {
  display: block;
  margin: 0.55rem 0;
  font-style: italic;
  color: var(--gold-deep);
}

.ck-composer {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.ck-input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--charcoal);
  background: #f2e5d1;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  outline: none;
}

.ck-input:focus {
  border-color: rgba(184, 137, 46, 0.45);
}

.ck-send {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #2a2118;
  background: linear-gradient(180deg, #e0c878, #b8892e);
  border: none;
  border-radius: 12px;
  cursor: pointer;
}

.ck-foot {
  margin: 0.75rem 0 0.25rem;
  text-align: center;
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--muted);
}

.panel-chanakya-active .chanakya-fab {
  display: none;
}

/* ── Raja / Your Reign ────────────────────────────────────────── */

#panel-raja {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.rj-head {
  padding: 0.25rem 0.1rem 1rem;
}

.rj-card {
  width: 100%;
  box-sizing: border-box;
  padding: 0.95rem 1rem;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(90, 64, 36, 0.05);
}

.rj-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  line-height: 1.2;
}

.rj-handle {
  margin-top: 0.3rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gold);
}

.rj-sec-label {
  margin: 1.15rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.rj-sec-label::before {
  content: "— ";
  color: var(--gold);
}

.rj-card + .rj-card,
.rj-sec-label + .rj-card {
  margin-top: 0;
}

.rj-card-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.rj-card-sub {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted);
}

/* Profile completion */
.rj-profile-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.rj-profile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.rj-profile-main {
  flex: 1;
  min-width: 0;
}

.rj-profile-main .rj-card-sub {
  margin-bottom: 0;
}

.rj-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

.rj-check-item {
  display: grid;
  grid-template-columns: 1.35rem 1fr auto;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.7rem 0.8rem;
  font-size: 0.84rem;
  line-height: 1.35;
  color: var(--ink);
  background: #fcf8f0;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.rj-check-item:not(.is-done):hover {
  background: rgba(184, 137, 46, 0.08);
  border-color: rgba(184, 137, 46, 0.28);
}

.rj-check-item.is-done {
  color: var(--muted);
  cursor: default;
  background: rgba(184, 137, 46, 0.08);
}

.rj-check-item.is-done .rj-check-txt {
  text-decoration: line-through;
}

.rj-check-ic {
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.rj-check-item.is-done .rj-check-ic {
  width: 1.25rem;
  height: 1.25rem;
  color: #fff;
  background: var(--gold);
  border-radius: 50%;
  font-size: 0.65rem;
}

.rj-check-txt {
  min-width: 0;
}

.rj-check-pct {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  text-align: right;
}

.rj-check-item.is-done .rj-check-pct {
  visibility: hidden;
}

.rj-progress-ring {
  position: relative;
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
}

.rj-progress-ring svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.rj-ring-bg {
  fill: none;
  stroke: rgba(184, 137, 46, 0.14);
  stroke-width: 6;
}

.rj-ring-fill {
  fill: none;
  stroke: var(--gold);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 188.5;
  stroke-dashoffset: 113.1;
  transition: stroke-dashoffset 0.35s ease;
}

.rj-ring-pct {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-deep);
}

/* Samrat Pass */
.rj-samrat-card {
  margin-top: 0.85rem;
  background: linear-gradient(155deg, #d49a6a 0%, #c48a5a 45%, #b07848 100%);
  border-color: rgba(120, 70, 40, 0.35);
  color: #fff8f0;
}

.rj-samrat-badge {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.88;
}

.rj-samrat-title {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rj-samrat-title i {
  color: #ffe8b8;
}

.rj-samrat-list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.rj-samrat-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  font-size: 0.84rem;
  line-height: 1.35;
}

.rj-samrat-list i {
  font-size: 0.72rem;
  color: #ffe8b8;
}

.rj-samrat-btn {
  display: block;
  width: 100%;
  margin-top: 0.85rem;
  padding: 0.6rem 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: #6a4028;
  background: rgba(255, 248, 240, 0.92);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.rj-samrat-btn:hover {
  background: #fff;
}

/* Grah-Dosha */
.rj-dosha-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(184, 137, 46, 0.12);
}

.rj-dosha-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-lit));
}

.rj-dosha-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-top: 0.65rem;
}

.rj-dosha-pct {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.rj-dosha-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.rj-remedy {
  margin: 0.85rem 0 0;
  padding: 0.65rem 0 0.65rem 0.75rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink);
  border-left: 3px solid var(--gold);
  background: rgba(184, 137, 46, 0.06);
  border-radius: 0 8px 8px 0;
}

.rj-ck-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.rj-ck-btn {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-body, Outfit, sans-serif);
  font-size: 0.82rem;
  font-weight: 650;
  color: #fff;
  background: linear-gradient(135deg, #b8892e, #8a6a28);
  border: none;
  border-radius: 11px;
  cursor: pointer;
}

.rj-ck-btn-alt {
  color: #8a6a28;
  background: rgba(184, 137, 46, 0.12);
  border: 1px solid rgba(184, 137, 46, 0.35);
}

.ck-bubble.bot {
  white-space: pre-wrap;
}

/* Name unlock */
.rj-name-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.rj-name-ic {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
  color: var(--gold-deep);
  background: var(--card-soft);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}

.rj-name-title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.rj-name-sub {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
}

/* Archetype */
.rj-arch-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.rj-arch-ic {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  font-size: 1.35rem;
  color: var(--gold-deep);
  background: linear-gradient(160deg, #fbe7ce, #f6d9ae);
  border: 1px solid rgba(184, 137, 46, 0.28);
  border-radius: 13px;
}

.rj-arch-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.rj-arch-sub {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gold);
}

.rj-arch-strength {
  margin: 0.75rem 0 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--ink);
}

/* Council */
.rj-council-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.rj-council-row:last-of-type {
  border-bottom: none;
}

.rj-council-sys {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink);
}

.rj-council-val {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-deep);
  text-align: right;
}

.rj-council-val.is-muted {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.rj-council-synth {
  margin: 0.85rem 0 0;
  padding-top: 0.75rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink);
  border-top: 1px solid var(--line-soft);
}

.rj-council-synth strong {
  color: var(--gold-deep);
}

/* Persona vector */
.rj-vector-row {
  display: grid;
  grid-template-columns: minmax(0, 7.5rem) 1fr 2.4rem;
  gap: 0.55rem 0.65rem;
  align-items: center;
  padding: 0.45rem 0;
}

.rj-vector-lbl {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
}

.rj-vector-bar {
  height: 7px;
  min-width: 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(184, 137, 46, 0.12);
}

.rj-vector-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-lit));
}

.rj-vector-pct {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.rj-vector-warn {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--warn);
  background: rgba(180, 96, 42, 0.08);
  border-radius: 10px;
}

.rj-vector-warn i {
  margin-top: 0.1rem;
  flex-shrink: 0;
}

/* Share button */
.rj-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff8ec;
  background: linear-gradient(180deg, #d4b05a, #9a7428);
  border: none;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(138, 106, 40, 0.28);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rj-share-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(138, 106, 40, 0.35);
}

.rj-share-btn i {
  font-size: 0.9rem;
}

/* Action rows */
.rj-actions {
  margin-top: 0.85rem;
}

.rj-action-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 0.85rem;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(90, 64, 36, 0.04);
  cursor: pointer;
  transition: background 0.15s ease;
}

.rj-action-row + .rj-action-row {
  margin-top: 0.55rem;
}

.rj-action-row:hover {
  background: var(--card-soft);
}

.rj-action-ic {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  font-size: 1rem;
  color: var(--gold-deep);
  background: var(--card-soft);
  border-radius: 11px;
}

.rj-action-txt {
  flex: 1;
  min-width: 0;
}

.rj-action-txt b {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--charcoal);
}

.rj-action-txt small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.35;
}

.rj-action-link {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-deep);
  white-space: nowrap;
}

/* Gift */
.rj-gift-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.rj-gift-card:hover {
  background: var(--card-soft);
}

.rj-gift-ic {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  font-size: 1rem;
  color: var(--gold-deep);
  background: var(--card-soft);
  border-radius: 11px;
}

.rj-gift-txt {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--charcoal);
}

.rj-gift-car {
  flex: 0 0 auto;
  font-size: 0.72rem;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.rj-gift-card[aria-expanded="true"] .rj-gift-car {
  transform: rotate(180deg);
}

.rj-gift-body {
  margin-top: 0.5rem;
  padding: 0.85rem 1rem;
  background: var(--card-soft);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
}

.rj-gift-body[hidden] {
  display: none !important;
}

.rj-gift-body.is-open {
  display: block !important;
}

.rj-gift-body p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.rj-gift-send {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-deep);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.rj-gift-match-lbl {
  margin: 0.35rem 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.rj-gift-match-card {
  padding: 0.85rem 0.9rem;
  margin-bottom: 0.65rem;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}

.rj-gift-match-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.rj-gift-match-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
}

.rj-gift-match-meta {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.rj-gift-match-price {
  flex: 0 0 auto;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-deep);
  white-space: nowrap;
}

.rj-gift-match-why {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink);
}

.rj-gift-note-lbl {
  display: block;
  margin: 0.15rem 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

/* Dharma dilemma */
.rj-dharma-time {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.rj-dharma-prompt {
  margin: 0.65rem 0 0.85rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink);
}

.rj-dharma-choices {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.rj-dharma-btn {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  color: var(--ink);
  background: var(--card-soft);
  border: 1.5px solid var(--line-soft);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.rj-dharma-btn:hover {
  border-color: rgba(184, 137, 46, 0.35);
}

.rj-dharma-btn.is-picked {
  color: var(--charcoal);
  background: rgba(184, 137, 46, 0.12);
  border-color: var(--gold);
  font-weight: 600;
}

.rj-dharma-note {
  margin: 0.75rem 0 0;
  padding: 0.6rem 0.75rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--gold-deep);
  background: rgba(184, 137, 46, 0.08);
  border-radius: 10px;
}

/* ── Sangam & Vivaah ──────────────────────────────────────────── */

#panel-sangam {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.sg-head {
  padding: 0.25rem 0.1rem 1rem;
}

.sg-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  line-height: 1.2;
}

.sg-sub {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.sg-noon-card {
  padding: 1rem 1.05rem 0.85rem;
  background: linear-gradient(135deg, #6b4428 0%, #a86a38 55%, #c4823e 100%);
  border: 1px solid rgba(90, 50, 20, 0.35);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(90, 50, 20, 0.22);
  color: #fff8f0;
}

.sg-noon-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.sg-noon-lbl {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.88;
}

.sg-noon-count {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  color: #fff;
}

.sg-noon-crown {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 1.25rem;
  color: #ffe8b8;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

.sg-noon-foot {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.85;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.sg-compat-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  margin-top: 0.85rem;
  padding: 0.95rem 1rem;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(90, 64, 36, 0.05);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.sg-compat-card:hover {
  background: var(--card-soft);
  border-color: rgba(184, 137, 46, 0.28);
}

.sg-compat-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: rgba(184, 137, 46, 0.12);
  border: 1px solid rgba(184, 137, 46, 0.25);
  border-radius: 999px;
}

.sg-compat-body {
  flex: 1;
  min-width: 0;
  padding-right: 2.5rem;
}

.sg-compat-title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.sg-compat-txt {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
}

.sg-compat-plus {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(184, 137, 46, 0.12);
  color: var(--gold-deep);
}

.sg-milan-panel {
  margin-top: 0.85rem;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(90, 64, 36, 0.05);
}

.sg-milan-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.sg-milan-hint {
  margin: 0.35rem 0 0.85rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
}

.sg-milan-form {
  display: grid;
  gap: 0.65rem;
}

.sg-milan-field {
  display: grid;
  gap: 0.28rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.sg-milan-field em {
  font-style: normal;
  font-weight: 500;
  opacity: 0.75;
}

.sg-milan-field input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--card-soft, #fff);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
}

.sg-milan-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.sg-milan-check input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--gold-deep);
}

.sg-ctx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sg-ctx-chip {
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid rgba(184, 137, 46, 0.28);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.48rem 0.95rem;
  min-height: 2.25rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(90, 64, 36, 0.04);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.sg-ctx-chip:hover {
  border-color: rgba(184, 137, 46, 0.5);
  color: var(--charcoal);
  background: #fffdf8;
}

.sg-ctx-chip.is-on {
  border-color: #9a7428;
  background: linear-gradient(180deg, #d4b05a, #b8892e);
  color: #fff8ec;
  box-shadow: 0 2px 8px rgba(138, 106, 40, 0.28);
}

.sg-prefs-card {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  margin-bottom: 0.85rem;
  background: var(--card);
}

.sg-prefs-hint {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.sg-match-reveal {
  margin: 0.45rem 0 0.55rem;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
}

.sg-match-card.is-offered {
  outline: 1px solid rgba(201, 162, 74, 0.45);
}

.sg-claim-box {
  margin-top: 0.85rem;
  padding: 0.85rem;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(184, 137, 46, 0.06);
}

.sg-claim-url {
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  font-size: 0.72rem;
  background: var(--card);
  color: var(--ink);
  box-sizing: border-box;
}

.sg-claim-box .sg-btn-offer,
.sg-milan-result > .sg-btn-offer,
.sg-milan-result > .sg-btn-chanakya,
a.sg-btn-offer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.65rem;
  text-decoration: none;
  box-sizing: border-box;
}

.sg-milan-actions {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.45rem;
}

.sg-milan-actions .sg-btn-pass,
.sg-milan-actions .sg-btn-offer {
  flex: 1;
  min-height: 2.65rem;
}

.sg-milan-result {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line-soft);
}

.sg-milan-score-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.sg-milan-score {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--gold-deep);
}

.sg-milan-score span {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.7;
}

.sg-milan-band {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

.sg-milan-rec {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.sg-milan-guns {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.4rem;
}

.sg-milan-gun {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  background: rgba(184, 137, 46, 0.06);
}

.sg-milan-gun b {
  color: var(--gold-deep);
}

.sg-milan-meta {
  margin-top: 0.65rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.sg-sec-label {
  margin: 1.15rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.sg-sec-label::before {
  content: "— ";
  color: var(--gold);
}

.sg-karma-card {
  padding: 0.95rem 1rem;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(90, 64, 36, 0.05);
}

.sg-karma-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.sg-karma-ic {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 1.15rem;
  color: var(--gold-deep);
  background: linear-gradient(160deg, #fbe7ce, #f6d9ae);
  border: 1px solid rgba(184, 137, 46, 0.28);
  border-radius: 12px;
}

.sg-karma-title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--charcoal);
  line-height: 1.35;
}

.sg-karma-desc {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
}

.sg-karma-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  margin-top: 0.85rem;
  padding: 0.65rem 1rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff8ec;
  background: linear-gradient(180deg, #d4b05a, #9a7428);
  border: none;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(138, 106, 40, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sg-karma-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(138, 106, 40, 0.32);
}

.sg-karma-btn i {
  font-size: 0.65rem;
  opacity: 0.85;
}

.sg-matches {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sg-match-card {
  padding: 0.95rem 1rem;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(90, 64, 36, 0.05);
  transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.3s ease;
}

.sg-match-card.is-passed {
  opacity: 0;
  transform: translateX(12px);
  pointer-events: none;
  max-height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  border: none;
}

.sg-match-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.sg-match-handle {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
}

.sg-match-sub {
  margin-top: 0.15rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.sg-match-score {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.sg-match-score span {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  line-height: 1.1;
}

.sg-match-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.65rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 8px;
  line-height: 1.35;
}

.sg-match-badge.is-gold {
  color: var(--gold-deep);
  background: rgba(184, 137, 46, 0.14);
  border: 1px solid rgba(184, 137, 46, 0.28);
}

.sg-match-badge.is-green {
  color: var(--green);
  background: rgba(46, 125, 79, 0.1);
  border: 1px solid rgba(46, 125, 79, 0.22);
}

.sg-match-badge.is-orange {
  color: var(--warn);
  background: rgba(180, 96, 42, 0.1);
  border: 1px solid rgba(180, 96, 42, 0.22);
}

.sg-match-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.sg-match-tags span {
  padding: 0.25rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--card-soft);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
}

.sg-match-warn {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0.65rem 0 0;
  padding: 0.55rem 0.65rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--warn);
  background: rgba(180, 96, 42, 0.08);
  border-radius: 10px;
}

.sg-match-warn i {
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.sg-match-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.sg-btn-pass,
.sg-btn-offer,
.sg-btn-chanakya {
  appearance: none;
  -webkit-appearance: none;
  flex: 1 1 calc(50% - 0.25rem);
  min-width: 0;
  min-height: 2.55rem;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.sg-match-actions .sg-btn-pass,
.sg-match-actions .sg-btn-offer,
.sg-match-actions .sg-btn-chanakya {
  flex: 1 1 100%;
}

@media (min-width: 380px) {
  .sg-match-actions .sg-btn-pass,
  .sg-match-actions .sg-btn-offer {
    flex: 1 1 calc(50% - 0.25rem);
  }
  .sg-match-actions .sg-btn-chanakya {
    flex: 1 1 100%;
    order: 3;
  }
}

.sg-btn-pass {
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line-soft);
}

.sg-btn-pass:hover {
  border-color: rgba(184, 137, 46, 0.4);
  background: var(--card-soft);
}

.sg-btn-offer {
  color: #fff8ec;
  background: linear-gradient(180deg, #d4b05a, #9a7428);
  border: 1px solid rgba(138, 106, 40, 0.35);
  box-shadow: 0 2px 8px rgba(138, 106, 40, 0.22);
}

.sg-btn-offer:hover {
  box-shadow: 0 4px 14px rgba(138, 106, 40, 0.32);
  transform: translateY(-1px);
}

.sg-btn-offer:active,
.sg-btn-pass:active,
.sg-btn-chanakya:active,
.sg-ctx-chip:active {
  transform: translateY(0);
}

.sg-btn-chanakya {
  color: var(--gold-deep);
  background: rgba(184, 137, 46, 0.1);
  border: 1.5px solid rgba(184, 137, 46, 0.35);
}

.sg-btn-chanakya:hover {
  background: rgba(184, 137, 46, 0.18);
  border-color: rgba(184, 137, 46, 0.5);
}

.sg-footnote {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 1.15rem 0 0.25rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--muted);
  background: rgba(184, 137, 46, 0.06);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}

.sg-footnote i {
  margin-top: 0.1rem;
  flex-shrink: 0;
  color: var(--gold);
}

/* Profile photo / goal preview (Phase 5) */
.rj-profile-photo-row{display:flex;align-items:center;gap:.75rem;margin:.75rem 0 .35rem}
.rj-profile-photo{width:52px;height:52px;border-radius:50%;object-fit:cover;border:2px solid rgba(184,137,46,.45)}
.rj-profile-goal{font-size:.82rem;color:var(--ink-soft,#6b5a3e);line-height:1.35}
