/* ============================================================
   Jyotishe � Royal Vedic Wedding theme
   Maroon � Gold � Cream | Cormorant Garamond + Rozha One + Mulish
   ============================================================ */

:root {
  --maroon: #7b1e3c;
  --maroon-deep: #5c1129;
  --maroon-ink: #43091c;
  --gold: #c9a24b;
  --gold-deep: #ab8534;
  --gold-soft: #e8d5a6;
  --gold-pale: #f7ecd2;
  --bg: #fff9f0;
  --bg-soft: #fdf3e0;
  --card: #fffdf7;
  --text: #2b1b12;
  --text-muted: #7a6a5c;
  --border: #ecdfc6;
  --border-strong: #c9a24b;
  --danger: #a8232e;
  --danger-soft: #fbe9ea;
  --success: #2e6b3f;
  --success-soft: #e4efe2;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 28px rgba(123, 30, 60, 0.09);
  --shadow-soft: 0 3px 14px rgba(123, 30, 60, 0.06);
  --font-body: "Mulish", "Segoe UI", system-ui, sans-serif;
  --font-head: "Cormorant Garamond", Georgia, serif;
  --font-brand: "Rozha One", Georgia, serif;
  --max: 720px;
  --max-wide: 1100px;

  /* aliases kept for older inline styles */
  --accent: var(--gold);
  --accent-hover: var(--gold-deep);
  --accent-soft: var(--gold-pale);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  background:
    radial-gradient(circle at 12% -4%, rgba(201, 162, 75, 0.12), transparent 34%),
    radial-gradient(circle at 92% 2%, rgba(123, 30, 60, 0.07), transparent 30%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--maroon-ink);
  line-height: 1.2;
}

a {
  color: var(--maroon);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

svg {
  vertical-align: middle;
}

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
.site-header {
  border-bottom: 1px solid var(--gold-soft);
  background: rgba(255, 253, 247, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(201, 162, 75, 0.25);
}

.jy-header-shell {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  width: min(100% - 2.5rem, var(--max-wide));
  margin-inline: auto;
  padding: 0.85rem 0;
  box-sizing: border-box;
  position: relative;
}

.logo {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--maroon);
  flex-shrink: 0;
}

.logo span {
  color: var(--gold-deep);
}

.logo:hover {
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.jy-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--gold-soft);
  border-radius: 10px;
  background: var(--card);
  color: var(--maroon);
  cursor: pointer;
  flex-shrink: 0;
}

.jy-nav-toggle:hover {
  border-color: var(--gold);
  background: var(--gold-pale);
}

.jy-nav-toggle__bars,
.jy-nav-toggle__bars::before,
.jy-nav-toggle__bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.jy-nav-toggle__bars {
  position: relative;
}

.jy-nav-toggle__bars::before,
.jy-nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.jy-nav-toggle__bars::before {
  top: -6px;
}

.jy-nav-toggle__bars::after {
  top: 6px;
}

.jy-site-header.is-menu-open .jy-nav-toggle__bars {
  background: transparent;
}

.jy-site-header.is-menu-open .jy-nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}

.jy-site-header.is-menu-open .jy-nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.jy-nav-backdrop {
  display: none;
}

.lang-select {
  border: 1px solid var(--gold);
  background: var(--card);
  color: var(--text);
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: var(--font-body);
  cursor: pointer;
}

/* ------------------------------------------------------------
   Layout
   ------------------------------------------------------------ */
.main {
  flex: 1;
  width: 100%;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding: 1.75rem 0 3rem;
}

.container-wide {
  width: min(100% - 2rem, var(--max-wide));
  margin-inline: auto;
  padding: 1.75rem 0 3rem;
}

/* ------------------------------------------------------------
   Ornaments
   ------------------------------------------------------------ */
.page-title {
  font-size: 2rem;
  margin: 0 0 0.4rem;
  position: relative;
}

.page-title::after {
  content: "";
  display: block;
  width: 74px;
  height: 3px;
  margin-top: 0.5rem;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft) 70%, transparent);
  border-radius: 2px;
}

.page-sub {
  color: var(--text-muted);
  margin: 0.6rem 0 1.6rem;
  font-size: 0.98rem;
}

.gold-divider {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.5rem 0;
  color: var(--gold);
}

.gold-divider::before,
.gold-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
}

/* ------------------------------------------------------------
   Hero (landing)
   ------------------------------------------------------------ */
.hero {
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 1.25rem 3.5rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 118%, rgba(201, 162, 75, 0.22), transparent 52%),
    radial-gradient(circle at 8% 12%, rgba(123, 30, 60, 0.06), transparent 32%),
    radial-gradient(circle at 94% 16%, rgba(201, 162, 75, 0.12), transparent 30%),
    linear-gradient(180deg, #fffdf7 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--gold-soft);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 75, 0.28);
  pointer-events: none;
}

.hero::before {
  width: 420px;
  height: 420px;
  top: -190px;
  right: -150px;
  box-shadow: 0 0 0 28px rgba(201, 162, 75, 0.07), 0 0 0 60px rgba(201, 162, 75, 0.04);
}

.hero::after {
  width: 330px;
  height: 330px;
  bottom: -160px;
  left: -120px;
  box-shadow: 0 0 0 24px rgba(123, 30, 60, 0.05), 0 0 0 52px rgba(123, 30, 60, 0.03);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}

.hero-kicker svg {
  width: 15px;
  height: 15px;
}

.hero-brand {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(3rem, 11vw, 5rem);
  letter-spacing: 0.01em;
  margin: 0 0 0.9rem;
  line-height: 1.04;
  color: var(--maroon);
}

.hero-brand em {
  font-style: normal;
  color: var(--gold-deep);
}

.hero-tagline {
  font-family: var(--font-head);
  font-size: clamp(1.45rem, 4.5vw, 2rem);
  font-weight: 600;
  font-style: italic;
  margin: 0 0 0.65rem;
  max-width: 26ch;
  color: var(--maroon-ink);
}

.hero-sub {
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 44ch;
  font-size: 1.02rem;
}

.hero-cta {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  padding: 1rem 2.2rem;
}

.hero-unlock {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  width: min(100%, 22rem);
  margin: 0 auto 0.35rem;
}

.hero-phone-row {
  width: 100%;
}

.hero-phone-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--card);
  color: var(--maroon-ink);
}

.hero-phone-row input:focus {
  outline: 2px solid var(--maroon);
  outline-offset: 1px;
  border-color: var(--maroon);
}

.hero-unlock .hero-cta {
  width: 100%;
  margin-bottom: 0;
}

.hero-unlock-error {
  color: var(--danger);
  margin: 0;
  text-align: center;
  font-weight: 700;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ------------------------------------------------------------
   Landing sections
   ------------------------------------------------------------ */
.landing-page {
  padding-bottom: 6rem;
}

.offer-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, var(--maroon-deep), var(--maroon), var(--maroon-deep));
  color: var(--gold-pale);
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.offer-strip .cut {
  text-decoration: line-through;
  opacity: 0.65;
  font-weight: 600;
}

.offer-strip .now {
  background: var(--gold);
  color: var(--maroon-ink);
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-weight: 800;
}

.landing-section {
  padding: 3.25rem 1.25rem;
  border-bottom: 1px solid var(--gold-soft);
}

.landing-section h2 {
  text-align: center;
  margin: 0 0 0.5rem;
  font-size: 2rem;
}

.landing-section .lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 auto 2rem;
}

.trust {
  padding: 3.25rem 1.25rem;
  border-bottom: 1px solid var(--gold-soft);
  background: var(--card);
}

.trust h2 {
  text-align: center;
  margin: 0 0 2rem;
  font-size: 2rem;
}

.trust-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
  width: min(100%, var(--max-wide));
  margin-inline: auto;
}

@media (min-width: 700px) {
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trust-item {
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.trust-item::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(201, 162, 75, 0.25);
  border-radius: calc(var(--radius) - 5px);
  pointer-events: none;
}

.trust-item strong {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--maroon);
}

.trust-item strong svg {
  width: 19px;
  height: 19px;
  color: var(--gold-deep);
  flex-shrink: 0;
}

.trust-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.how-steps {
  display: grid;
  gap: 1.1rem;
  width: min(100%, var(--max-wide));
  margin-inline: auto;
}

@media (min-width: 800px) {
  .how-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.how-step {
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 1.3rem 1.15rem;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.how-step .num {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-deep));
  color: var(--gold-pale);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
  box-shadow: 0 0 0 3px var(--gold-pale), 0 0 0 4px var(--gold-soft);
}

.how-step strong {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--maroon-ink);
}

.price-compare {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  justify-content: center;
  align-items: stretch;
  width: min(100%, 680px);
  margin-inline: auto;
}

.price-box {
  flex: 1 1 240px;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.price-box.hot {
  background: linear-gradient(160deg, var(--maroon), var(--maroon-deep));
  color: var(--gold-pale);
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.price-box.hot .hint {
  color: rgba(247, 236, 210, 0.75);
}

.price-box .old {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 1.15rem;
}

.price-box.hot .old {
  color: rgba(247, 236, 210, 0.6);
}

.price-box .new {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  margin: 0.3rem 0;
  color: var(--gold);
}

.faq details {
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.15rem;
  margin: 0 auto 0.7rem;
  background: var(--card);
  width: min(100%, 660px);
  box-shadow: var(--shadow-soft);
}

.faq summary {
  font-weight: 700;
  cursor: pointer;
  font-size: 0.98rem;
  color: var(--maroon-ink);
}

.sticky-offer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: linear-gradient(90deg, var(--maroon-deep), var(--maroon));
  color: var(--gold-pale);
  border-top: 2px solid var(--gold);
  padding: 0.7rem 1.25rem;
  box-shadow: 0 -6px 24px rgba(67, 9, 28, 0.25);
}

.sticky-offer-inner {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.sticky-offer-info {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1.1rem;
  min-width: 0;
  flex: 1;
}

.sticky-offer-label {
  font-size: 0.82rem;
  opacity: 0.88;
  white-space: nowrap;
}

.sticky-offer .timer {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  line-height: 1;
}

.sticky-offer-deal {
  font-size: 0.9rem;
  white-space: nowrap;
}

.sticky-offer-deal .cut {
  text-decoration: line-through;
  opacity: 0.7;
}

.sticky-offer-deal strong {
  color: var(--gold);
  font-weight: 800;
}

.sticky-offer-btn {
  flex-shrink: 0;
  white-space: nowrap;
  background: linear-gradient(160deg, var(--gold), var(--gold-deep));
  border-color: var(--gold-deep);
  color: var(--maroon-ink);
  padding: 0.75rem 1.45rem;
}

.sticky-offer.is-login-mode .sticky-offer-btn {
  background: linear-gradient(160deg, var(--gold-pale), var(--gold));
}

@media (max-width: 720px) {
  .landing-page {
    padding-bottom: 4.25rem;
  }

  .sticky-offer {
    padding: 0.45rem 0.7rem;
  }

  .sticky-offer-inner {
    gap: 0.55rem;
  }

  .sticky-offer-info {
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 0.05rem;
  }

  .sticky-offer-label {
    font-size: 0.68rem;
    opacity: 0.85;
  }

  .sticky-offer .timer {
    font-size: 1.05rem;
  }

  .sticky-offer-deal {
    font-size: 0.72rem;
    white-space: normal;
    line-height: 1.25;
  }

  .sticky-offer-btn {
    padding: 0.48rem 0.85rem;
    font-size: 0.8rem;
    letter-spacing: 0.01em;
    align-self: center;
  }
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid var(--maroon-deep);
  background: linear-gradient(160deg, var(--maroon), var(--maroon-deep));
  color: var(--gold-pale);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.97rem;
  letter-spacing: 0.015em;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 3px 12px rgba(123, 30, 60, 0.25);
}

.btn:hover {
  text-decoration: none;
  box-shadow: 0 5px 18px rgba(123, 30, 60, 0.32);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(0.985);
}

.btn svg {
  width: 17px;
  height: 17px;
}

.btn-block {
  width: 100%;
}

.btn-outline {
  background: var(--card);
  color: var(--maroon);
  border: 1.5px solid var(--gold);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--gold-pale);
  box-shadow: var(--shadow-soft);
}

.btn-sm {
  padding: 0.48rem 0.95rem;
  font-size: 0.83rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.danger-btn {
  background: var(--card);
  color: var(--danger);
  border-color: var(--danger);
  box-shadow: none;
}

.danger-btn:hover {
  background: var(--danger-soft);
}

/* ------------------------------------------------------------
   Forms & cards
   ------------------------------------------------------------ */
.form-card {
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  background: var(--card);
  box-shadow: var(--shadow);
  position: relative;
}

.field {
  margin-bottom: 1.05rem;
}

.field label {
  display: block;
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
  color: var(--maroon-ink);
}

.field-label {
  display: block;
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
  color: var(--maroon-ink);
}

/* Box-style gender / choice radios (no circular radio glyph) */
.choice-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.choice-box {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.choice-box input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.choice-box span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.55rem 0.4rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--maroon-ink);
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.choice-box:hover span {
  border-color: var(--maroon);
}

.choice-box input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.choice-box input:checked + span {
  border-color: var(--maroon);
  background: var(--maroon);
  color: #fff;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem;
  font: inherit;
  font-size: 0.96rem;
  color: var(--text);
  background: #fffefb;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.22);
}

.field input[type="date"],
.field input[type="time"] {
  min-height: 2.9rem;
  color-scheme: light;
}

.field input[type="date"]::-webkit-calendar-picker-indicator,
.field input[type="time"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.75;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.phone-row {
  display: flex;
  gap: 0.5rem;
}

.phone-row .prefix {
  flex: 0 0 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-sm);
  font-weight: 800;
  background: var(--gold-pale);
  color: var(--maroon-ink);
}

.section-card {
  background: var(--card);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 1.3rem 1.25rem;
  box-shadow: var(--shadow-soft);
}

.section-card h2,
.section-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1.35rem;
}

/* ------------------------------------------------------------
   Progress steps
   ------------------------------------------------------------ */
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.6rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.step {
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--card);
}

.step.active {
  background: linear-gradient(160deg, var(--maroon), var(--maroon-deep));
  border-color: var(--maroon-deep);
  color: var(--gold-pale);
}

.step.done {
  background: var(--gold-pale);
  border-color: var(--gold-soft);
  color: var(--gold-deep);
}

/* ------------------------------------------------------------
   OTP
   ------------------------------------------------------------ */
.otp-inputs {
  display: flex;
  gap: 0.55rem;
  justify-content: center;
  margin: 1.1rem 0 1.3rem;
}

.otp-inputs input {
  width: 2.9rem;
  height: 3.3rem;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 800;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fffefb;
  color: var(--maroon-ink);
}

.otp-inputs input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.22);
}

.otp-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.otp-modal[hidden] {
  display: none !important;
}

.otp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 12, 22, 0.55);
  backdrop-filter: blur(2px);
}

.otp-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 24rem);
  background: var(--card, #fffefb);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(67, 9, 28, 0.28);
  padding: 1.5rem 1.35rem 1.4rem;
  text-align: center;
}

.otp-modal-panel h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  color: var(--maroon);
  font-size: 1.65rem;
}

.otp-modal-x {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.45rem;
}

.otp-modal-error {
  color: var(--danger);
  font-weight: 700;
  margin: 0 0 0.75rem;
}

body.otp-modal-open {
  overflow: hidden;
}

/* ------------------------------------------------------------
   Ask unlock (first consult paywall)
   ------------------------------------------------------------ */
.ask-unlock-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.ask-unlock-modal[hidden] {
  display: none !important;
}

.ask-unlock-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 12, 22, 0.62);
  backdrop-filter: blur(3px);
}

.ask-unlock-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 22rem);
  background: var(--card, #fffefb);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(67, 9, 28, 0.28);
  padding: 1.65rem 1.35rem 1.45rem;
  text-align: center;
}

.ask-unlock-lock {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(201, 162, 75, 0.14);
  color: var(--maroon);
}

.ask-unlock-lock .lucide,
.ask-unlock-lock svg {
  width: 1.35rem;
  height: 1.35rem;
}

.ask-unlock-panel h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  color: var(--maroon);
  font-size: 1.55rem;
  line-height: 1.2;
}

.ask-unlock-panel .hint {
  margin: 0 0 1rem;
}

.ask-unlock-error {
  color: var(--danger);
  font-weight: 700;
  margin: 0 0 0.75rem !important;
}

body.ask-unlock-open {
  overflow: hidden;
}

body.ask-unlock-open .ask-chat-composer {
  pointer-events: none;
  opacity: 0.45;
}

/* ------------------------------------------------------------
   Categories
   ------------------------------------------------------------ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}

@media (min-width: 560px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.category-tile {
  display: block;
  text-align: center;
  padding: 1.05rem 0.7rem;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-sm);
  background: var(--card);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  color: var(--maroon-ink);
  box-shadow: var(--shadow-soft);
  transition: background 0.15s ease, transform 0.12s ease, border-color 0.15s ease;
}

.category-tile:hover,
.category-tile.selected {
  background: var(--gold-pale);
  border-color: var(--gold);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ------------------------------------------------------------
   Suggestions
   ------------------------------------------------------------ */
.suggestions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.suggestion {
  border: 1px dashed var(--gold);
  background: var(--gold-pale);
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-sm);
  text-align: left;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  color: var(--maroon-ink);
  transition: background 0.15s ease;
}

.suggestion:hover {
  background: var(--gold-soft);
}

/* ------------------------------------------------------------
   Analyzing timer
   ------------------------------------------------------------ */
.analyzing {
  text-align: center;
  padding: 2.5rem 0;
}

.timer-wrap {
  width: 150px;
  height: 150px;
  margin: 0 auto 1.6rem;
  position: relative;
}

.timer-ring {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 5px solid var(--gold-soft);
  border-top-color: var(--maroon);
  animation: spin 1.25s linear infinite;
}

.timer-wrap .seconds {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--maroon-ink);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.status-line {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 600;
  font-style: italic;
  min-height: 1.6em;
  margin: 0 0 0.5rem;
  color: var(--maroon);
}

.status-hint {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ------------------------------------------------------------
   Chat / answer
   ------------------------------------------------------------ */
.chat {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.bubble {
  max-width: 92%;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--gold-soft);
  font-size: 0.96rem;
  box-shadow: var(--shadow-soft);
}

.bubble.user {
  align-self: flex-end;
  background: var(--gold-pale);
  border-color: var(--gold-soft);
  border-bottom-right-radius: 4px;
}

.bubble.astro {
  align-self: flex-start;
  background: var(--card);
  border-bottom-left-radius: 4px;
}

.bubble .meta {
  font-size: 0.7rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--maroon);
  opacity: 0.85;
}

.answer-prose {
  color: var(--text);
  line-height: 1.65;
  font-size: 0.98rem;
}

.answer-prose h3,
.answer-prose h4 {
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  color: var(--maroon);
  font-weight: 700;
  margin: 1.1rem 0 0.45rem;
  line-height: 1.25;
  font-size: 1.2rem;
}

.answer-prose h3:first-child,
.answer-prose h4:first-child {
  margin-top: 0.15rem;
}

.answer-prose h4 {
  font-size: 1.08rem;
}

.answer-prose p {
  margin: 0 0 0.75rem;
}

.answer-prose p:last-child {
  margin-bottom: 0;
}

.answer-prose ul {
  margin: 0.35rem 0 0.9rem;
  padding-left: 1.15rem;
}

.answer-prose li {
  margin: 0.28rem 0;
  padding-left: 0.15rem;
}

.answer-prose strong {
  color: var(--maroon-ink);
  font-weight: 800;
}

.answer-prose a {
  color: var(--maroon);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.answer-prose a:hover {
  color: var(--maroon-ink);
}

.bubble.astro {
  max-width: 100%;
}

.kundali-card {
  align-self: stretch;
  background: var(--card);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1rem;
  margin: 0.35rem 0 1rem;
  box-shadow: var(--shadow-soft);
}

.kundali-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.75rem;
}

.kundali-card-head h2 {
  margin: 0;
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-size: 1.45rem;
  color: var(--maroon);
}

.kundali-lagna {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.85rem;
  line-height: 1.45;
}

.kundali-table-wrap {
  margin: 0;
  border: none;
  box-shadow: none;
}

.kundali-table {
  font-size: 0.88rem;
}

.kundali-dasha {
  margin: 0.75rem 0 0;
  line-height: 1.55;
}

.kundali-block {
  margin-top: 1rem;
}

.kundali-block h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-size: 1.15rem;
  color: var(--maroon);
}

.kundali-dasha-block {
  margin-top: 1.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--gold-soft);
}

.kundali-table th:nth-child(3),
.kundali-table td:nth-child(3) {
  white-space: nowrap;
}

tr.kundali-dasha-active td {
  background: var(--gold-pale);
  font-weight: 700;
}

.admin-member-charts {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.admin-kundali-card {
  margin: 0;
}

.admin-body .kundali-table {
  font-size: 0.86rem;
}

.wallet-box {
  background: var(--card);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 0.9rem 1rem 1rem;
  box-shadow: var(--shadow-soft);
  margin: 0.5rem 0 0.75rem;
}

.wallet-box-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.wallet-box-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.wallet-box-balance {
  margin: 0.15rem 0 0;
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--maroon);
  line-height: 1.15;
}

.wallet-box-hint {
  margin: 0.35rem 0 0.75rem;
}

.wallet-recharge-label {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--maroon);
}

.wallet-pack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.wallet-pack {
  appearance: none;
  border: 1px solid var(--gold-soft);
  background: var(--bg);
  border-radius: 12px;
  padding: 0.55rem 0.5rem;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.wallet-pack.featured {
  background: var(--maroon);
  border-color: var(--maroon);
}

.wallet-pack.featured .wp-pay,
.wallet-pack.featured .wp-coins {
  color: #fff;
}

.wallet-pack.featured .wp-coins {
  color: var(--gold-soft, #e8d5a3);
}

.wallet-pack .wp-pay {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--maroon);
}

.wallet-pack .wp-coins {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.wallet-pack .wp-once {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--maroon);
}

.wallet-pack.featured .wp-once {
  color: var(--gold-soft, #e8d5a3);
}

.wallet-pack.selected {
  outline: 2px solid var(--maroon);
  outline-offset: 1px;
}

.wallet-coupon {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gold-soft);
}

.wallet-coupon-collapsed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.wallet-coupon-toggle {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--maroon);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.wallet-coupon-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.wallet-coupon-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--maroon);
}

.wallet-offers-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--maroon);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wallet-coupon-apply {
  display: flex;
  gap: 0.4rem;
}

.wallet-coupon-apply input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--gold-soft);
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--bg);
}

.wallet-pay-btn {
  width: 100%;
  margin-top: 0.75rem;
}

.wallet-pay-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.offers-page {
  padding-bottom: 2.5rem;
}

.offers-section-title {
  margin: 1.75rem 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--maroon);
}

.offers-campaigns {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1rem 0 0.25rem;
}

.offers-redeem {
  margin: 1.75rem 0 0.5rem;
}

.offers-login-hint {
  margin: 0 0 0.75rem;
}

.offers-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0 0 0.5rem;
}

.offers-card {
  padding: 1rem 1.05rem;
  background: var(--card, #fffdf8);
  border: 1px solid var(--gold-soft);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(80, 30, 20, 0.06);
}

.offers-card-campaign {
  background:
    linear-gradient(135deg, rgba(128, 36, 29, 0.06), transparent 55%),
    var(--card, #fffdf8);
}

.offers-item-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.offers-card h2,
.offers-item h2 {
  margin: 0;
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-size: 1.35rem;
  color: var(--maroon);
}

.offers-badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--maroon);
  background: rgba(128, 36, 29, 0.08);
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
}

.offers-card p,
.offers-item p {
  margin: 0.2rem 0;
}

.offers-meta {
  margin-top: 0.15rem !important;
}

.offers-code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.offers-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.55rem;
  background: var(--bg);
  border: 1px dashed var(--gold-soft);
  border-radius: 8px;
  color: var(--maroon);
}

.wallet-activity-open {
  margin: 0.5rem 0 1.25rem;
}

.wallet-activity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.85rem;
  margin-bottom: 0.35rem;
}

.wallet-activity-all {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--maroon);
  text-decoration: none;
  white-space: nowrap;
}

.wallet-activity-all:hover {
  text-decoration: underline;
}

.wallet-activity-open .wallet-ledger-list {
  background: var(--card);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 0.35rem 0.75rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0.15rem 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--maroon);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--gold-deep);
  opacity: 0.8;
}

.breadcrumb-current {
  color: var(--maroon-ink);
}

.wallet-activity {
  margin: 0.35rem 0 1rem;
  font-size: 0.9rem;
}

.wallet-activity summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--maroon);
  list-style: none;
}

.wallet-activity summary::-webkit-details-marker {
  display: none;
}

.wallet-ledger-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.wallet-ledger-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--gold-soft);
  font-size: 0.85rem;
}

.wallet-ledger-list li strong {
  color: var(--maroon);
  white-space: nowrap;
}

.wallet-hero {
  text-align: center;
  margin-bottom: 0.5rem;
}

.wallet-balance {
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--maroon);
  margin: 0.35rem 0 0.5rem;
  line-height: 1.1;
}

.wallet-topup-card label {
  font-weight: 700;
  display: block;
  margin-bottom: 0.45rem;
}

.wallet-amount-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  background: var(--card);
  padding: 0.35rem 0.75rem;
  margin-bottom: 0.75rem;
}

.wallet-inr-prefix {
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--maroon);
  line-height: 1;
}

.wallet-amount-row input {
  border: none;
  background: transparent;
  box-shadow: none;
  font-size: 1.5rem;
  font-weight: 800;
  width: 100%;
  padding: 0.55rem 0;
  color: var(--text);
}

.wallet-amount-row input:focus {
  outline: none;
}

.wallet-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--maroon);
  border: 1px solid var(--gold-soft);
  background: var(--gold-pale);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  text-decoration: none;
  margin-right: 0.35rem;
}

.ask-mode-tabs {
  flex-shrink: 0;
  padding: 0.55rem 0 0.35rem;
}

.ask-mode-tabs-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0.22rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--gold-soft);
  box-shadow: inset 0 1px 2px rgba(67, 9, 28, 0.04);
}

.ask-mode-tabs-slider {
  position: absolute;
  top: 0.22rem;
  left: 0.22rem;
  width: calc((100% - 0.44rem) / 3);
  height: calc(100% - 0.44rem);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--maroon) 0%, var(--maroon-deep) 100%);
  box-shadow: 0 2px 8px rgba(92, 17, 41, 0.28);
  transform: translateX(0);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
  pointer-events: none;
}

.ask-mode-tab {
  appearance: none;
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  padding: 0.52rem 0.3rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.ask-mode-tab .lucide,
.ask-mode-tab svg {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  stroke-width: 2.25;
}

.ask-mode-tab.active {
  color: #fff;
}

.ask-mode-tab:focus-visible {
  outline: 2px solid var(--maroon);
  outline-offset: 2px;
}

.ask-composer-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  align-self: flex-end;
}

.ask-filter-btn {
  appearance: none;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--maroon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.ask-filter-btn[aria-expanded="true"] {
  background: var(--gold-pale);
  color: var(--maroon);
}

.ask-filter-btn .lucide {
  width: 1.1rem;
  height: 1.1rem;
}

.ask-filter-tray {
  margin-bottom: 0.55rem;
  padding: 0.55rem 0.35rem 0.35rem;
  border: 1px solid var(--gold-soft);
  border-radius: 14px;
  background: var(--card);
}

.ask-mode-circles {
  display: flex;
  justify-content: space-around;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

.ask-circle {
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-family: inherit;
  min-width: 4.2rem;
}

.ask-circle-ico {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 50%;
  border: 1.5px solid var(--gold-soft);
  background: var(--bg);
  color: var(--maroon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ask-circle-ico.sm {
  width: 2.4rem;
  height: 2.4rem;
}

.ask-circle.active .ask-circle-ico {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #fff;
}

.ask-circle-lbl {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.ask-circle.active .ask-circle-lbl {
  color: var(--maroon);
}

.ask-filter-actions {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  padding-top: 0.35rem;
  border-top: 1px dashed var(--gold-soft);
}

.ask-filter-action {
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-decoration: none;
  font-family: inherit;
  color: inherit;
}

.ask-profile-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(40, 10, 10, 0.4);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
}

.ask-profile-sheet[hidden] {
  display: none !important;
}

.ask-profile-card {
  width: min(100%, 420px);
  background: var(--card);
  border-radius: 16px 16px 12px 12px;
  padding: 1rem;
  max-height: 70vh;
  overflow-y: auto;
}

.ask-profile-card input[type="search"] {
  width: 100%;
  margin: 0.5rem 0;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--gold-soft);
}

.ask-profile-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 10rem;
  overflow-y: auto;
}

.ask-profile-item {
  width: 100%;
  text-align: left;
  appearance: none;
  border: 1px solid transparent;
  background: var(--bg);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.3rem;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
}

.ask-profile-item.active {
  border-color: var(--maroon);
  background: var(--gold-pale);
  color: var(--maroon);
}

.ask-history-btn {
  appearance: none;
  border: 1px solid var(--gold-soft);
  background: var(--card);
  border-radius: 10px;
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.35rem;
  color: var(--maroon);
  cursor: pointer;
}

.ask-new-btn {
  margin-right: 0.35rem;
  white-space: nowrap;
}

.ask-thread-title {
  margin: 0.25rem 0 0.5rem;
  font-weight: 700;
  color: var(--maroon);
  text-align: center;
}

.ask-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(40, 10, 10, 0.35);
  z-index: 40;
}

.ask-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(86vw, 300px);
  background: var(--card);
  z-index: 50;
  padding: 0.85rem 0.75rem 5.5rem;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  overflow-y: auto;
}

.ask-sidebar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
  color: var(--maroon);
}

.ask-sidebar-close {
  appearance: none;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
}

.ask-thread-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ask-thread-list li {
  margin: 0 0 0.35rem;
}

.ask-thread-item {
  width: 100%;
  text-align: left;
  appearance: none;
  border: 1px solid transparent;
  background: var(--bg);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  font-family: inherit;
}

.ask-thread-item.active,
.ask-thread-item:hover {
  border-color: var(--gold-soft);
  background: var(--gold-pale);
}

.ask-thread-item .att {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--maroon);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ask-thread-item .ath {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.ask-chat-body .main.ask-chat-main {
  padding-bottom: 0;
}

.ask-chat-shell {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 7.5rem);
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 0 0.85rem;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .ask-chat-body .site-header .jy-header-shell {
    width: min(100% - 3rem, 980px);
    padding-left: 0;
    padding-right: 0;
  }

  .ask-chat-shell {
    max-width: 880px;
    height: calc(100dvh - 8.25rem);
    padding: 0.35rem 1.5rem 0;
  }

  .ask-chat-composer {
    bottom: 4.75rem;
    padding-bottom: 0.85rem;
  }

  .ask-chat-messages {
    padding-top: 1rem;
  }

  .ask-chat-body .app-tabbar {
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
  }
}

.tw-cursor {
  display: inline-block;
  width: 0.55ch;
  height: 1.05em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: var(--maroon);
  animation: tw-blink 0.85s step-end infinite;
}

@keyframes tw-blink {
  50% {
    opacity: 0;
  }
}

.typewriter-live {
  white-space: pre-wrap;
  word-break: break-word;
}

.app-tab-wallet .tab-lbl {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.ask-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0 1rem;
  margin-bottom: 0;
  -webkit-overflow-scrolling: touch;
}

.ask-welcome p {
  margin: 0;
}

.ask-chat-composer {
  position: sticky;
  bottom: 4.35rem;
  background: linear-gradient(180deg, transparent, var(--bg) 28%);
  padding: 0.5rem 0 0.65rem;
  z-index: 5;
}

.ask-chat-toolbar {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 0.45rem;
  flex-wrap: wrap;
}

.ask-member-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
}

.ask-member-select,
.ask-category-select {
  flex: 1;
  min-width: 7rem;
  font-size: 0.85rem;
  padding: 0.4rem 0.55rem;
  border-radius: 10px;
  border: 1px solid var(--gold-soft);
  background: var(--card);
}

.ask-composer-row {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  background: var(--card);
  border: 1px solid var(--gold-soft);
  border-radius: 1.15rem;
  padding: 0.45rem 0.45rem 0.45rem 0.85rem;
  box-shadow: var(--shadow-soft);
}

.ask-composer-row textarea {
  flex: 1;
  border: none;
  resize: none;
  background: transparent;
  box-shadow: none;
  min-height: 1.5rem;
  max-height: 140px;
  padding: 0.55rem 0;
  font-size: 0.98rem;
  line-height: 1.4;
  font-family: inherit;
}

.ask-composer-row textarea:focus {
  outline: none;
}

.ask-send-btn {
  width: 2.65rem;
  height: 2.65rem;
  border: none;
  border-radius: 50%;
  background: var(--maroon);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.ask-send-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ask-send-btn .lucide {
  width: 1.1rem;
  height: 1.1rem;
}

.ask-composer-hint {
  margin: 0.4rem 0 0;
  text-align: center;
}

.ask-ai-disclaimer {
  margin: 0 0 0.45rem;
  padding: 0 0.15rem;
  font-size: 0.65rem;
  line-height: 1.35;
  color: var(--text-muted, #8a7a72);
  text-align: center;
  opacity: 0.9;
}

.ask-suggest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding-top: 0.15rem;
}

.ask-suggest-chip {
  appearance: none;
  border: 1px solid rgba(90, 40, 40, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: var(--maroon, #5a2828);
  font: inherit;
  font-size: 0.78rem;
  line-height: 1.3;
  text-align: left;
  padding: 0.4rem 0.65rem;
  border-radius: 0.55rem;
  cursor: pointer;
  max-width: 100%;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ask-suggest-chip:hover,
.ask-suggest-chip:focus-visible {
  background: rgba(90, 40, 40, 0.08);
  border-color: rgba(90, 40, 40, 0.4);
  outline: none;
}

.lang-combobox {
  position: relative;
}

.lang-combobox-input {
  width: 100%;
}

.lang-combobox-list {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 220px;
  overflow-y: auto;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(90, 40, 40, 0.18);
  border-radius: 0.55rem;
  box-shadow: 0 8px 24px rgba(40, 20, 10, 0.12);
}

.lang-combobox-list[hidden] {
  display: none !important;
}

.lang-combobox-option {
  display: block;
  width: 100%;
  appearance: none;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.55rem 0.85rem;
  color: inherit;
  cursor: pointer;
}

.lang-combobox-option:hover,
.lang-combobox-option.is-active,
.lang-combobox-option[aria-selected="true"] {
  background: rgba(90, 40, 40, 0.08);
  color: var(--maroon, #5a2828);
}

.disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 1.2rem;
}

.upsell-wait {
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--gold-pale);
  margin-bottom: 0.85rem;
}

[hidden] {
  display: none !important;
}

/* ------------------------------------------------------------
   Plans � compact horizontal rows
   ------------------------------------------------------------ */
.plans {
  display: grid;
  gap: 0.55rem;
}

.plan-card {
  border: 1px solid var(--gold-soft);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  background: var(--card);
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
  min-height: 0;
}

.plan-card:hover {
  text-decoration: none;
  transform: translateY(-1px);
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.plan-card.featured {
  background: linear-gradient(160deg, var(--maroon), var(--maroon-deep));
  color: var(--gold-pale);
  border-color: var(--gold);
}

.plan-card-ico {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-pale);
  color: var(--maroon);
  flex-shrink: 0;
}

.plan-card.featured .plan-card-ico {
  background: rgba(247, 236, 210, 0.18);
  color: var(--gold);
}

.plan-card-ico .lucide,
.plan-card-ico svg {
  width: 1rem;
  height: 1rem;
}

.plan-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.plan-card .duration {
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--maroon-ink);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  line-height: 1.2;
}

.plan-card .duration em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(247, 236, 210, 0.2);
  border: 1px solid rgba(212, 175, 105, 0.45);
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
}

.plan-card.featured .duration {
  color: var(--gold-pale);
}

.plan-card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plan-card.featured .plan-card-meta {
  color: rgba(247, 236, 210, 0.78);
}

.plan-card .price {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
  color: var(--maroon-ink);
  white-space: nowrap;
  line-height: 1;
}

.plan-card.featured .price {
  color: var(--gold);
}

.plan-card p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.plan-card.featured p {
  color: rgba(247, 236, 210, 0.82);
}

/* ------------------------------------------------------------
   Slots
   ------------------------------------------------------------ */
.slot-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-bottom: 1.3rem;
}

@media (min-width: 500px) {
  .slot-group {
    grid-template-columns: repeat(3, 1fr);
  }
}

.slot-btn {
  border: 1px solid var(--gold-soft);
  background: var(--card);
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  cursor: pointer;
  font: inherit;
  font-size: 0.94rem;
  color: var(--maroon-ink);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.slot-btn.selected,
.slot-btn:hover {
  background: var(--gold-pale);
  border-color: var(--gold);
}

.slot-btn.selected {
  box-shadow: inset 0 0 0 2px var(--gold);
}

/* ------------------------------------------------------------
   Confirmation
   ------------------------------------------------------------ */
.confirm-box {
  text-align: center;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 2.4rem 1.4rem;
  background: var(--card);
  box-shadow: var(--shadow);
  position: relative;
}

.confirm-box::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(201, 162, 75, 0.3);
  border-radius: calc(var(--radius) - 6px);
  pointer-events: none;
}

.confirm-box h1 {
  margin: 0 0 0.5rem;
  font-size: 1.9rem;
}

.check {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-deep));
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  box-shadow: 0 0 0 4px var(--gold-pale), 0 0 0 5px var(--gold-soft);
}

.check svg {
  width: 32px;
  height: 32px;
}

/* ------------------------------------------------------------
   Payment
   ------------------------------------------------------------ */
.pay-summary {
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  margin-bottom: 1.3rem;
  background: linear-gradient(160deg, var(--gold-pale), #fdf6e6);
  box-shadow: var(--shadow-soft);
}

.pay-summary .amount {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--maroon);
}

.pay-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
  font-size: 0.82rem;
  font-weight: 700;
}

.pay-methods span {
  border: 1px solid var(--gold-soft);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--card);
  color: var(--text-muted);
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--gold-soft);
  padding: 1.75rem 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--card);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.1rem;
  margin-bottom: 0.85rem;
}

.site-footer a {
  font-weight: 700;
  color: var(--maroon);
}

/* ---- Multi-column site footer ---- */
.jy-site-footer {
  text-align: left;
  padding: 2.75rem 1.25rem 1.75rem;
  background:
    linear-gradient(180deg, rgba(247, 236, 210, 0.35), transparent 42%),
    var(--bg);
  border-top: 1px solid var(--gold-soft);
  margin-top: auto;
}

.jy-footer-shell {
  width: min(100%, var(--max-wide));
  margin-inline: auto;
}

.jy-footer-brand-row {
  margin-bottom: 1.75rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--gold-soft);
}

.jy-footer-logo {
  font-family: var(--font-brand);
  font-size: 1.85rem;
  color: var(--maroon);
  text-decoration: none;
  line-height: 1.1;
}

.jy-footer-logo span {
  color: var(--gold-deep);
}

.jy-footer-tagline {
  margin: 0.55rem 0 0;
  max-width: 40rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.jy-footer-grid {
  display: grid;
  gap: 1.75rem 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .jy-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .jy-footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem 1.75rem;
  }
}

.jy-footer-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-brand);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--maroon);
  letter-spacing: 0.01em;
}

.jy-footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.jy-footer-list li {
  margin: 0 0 0.55rem;
}

.jy-footer-list a {
  color: var(--maroon);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}

.jy-footer-list a:hover {
  color: var(--maroon-deep);
  text-decoration: underline;
}

.jy-footer-note {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 18rem;
}

.jy-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.jy-footer-social__btn {
  width: 2.55rem;
  height: 2.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--gold-soft);
  background: var(--card);
  color: var(--maroon);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.jy-footer-social__btn:hover {
  transform: translateY(-2px);
  background: var(--gold-pale);
  border-color: var(--gold);
  color: var(--maroon-deep);
}

.jy-footer-policies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gold-soft);
}

.jy-footer-policies a {
  color: var(--maroon);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
}

.jy-footer-policies a:hover {
  text-decoration: underline;
}

.jy-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.jy-footer-bottom p {
  margin: 0;
}

.jy-footer-powered a {
  color: var(--maroon);
  font-weight: 800;
  text-decoration: none;
}

.jy-footer-powered a:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------
   Legal
   ------------------------------------------------------------ */
.legal h1 {
  font-size: 2.1rem;
  margin: 0 0 0.5rem;
}

.legal h2 {
  font-size: 1.3rem;
  margin: 1.9rem 0 0.5rem;
}

.legal p,
.legal li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal ul {
  padding-left: 1.2rem;
}

/* ------------------------------------------------------------
   Portal tab bar (mobile app style)
   ------------------------------------------------------------ */
.app-body {
  padding-bottom: 6rem;
  background:
    radial-gradient(circle at 90% -5%, rgba(201, 162, 75, 0.1), transparent 30%),
    var(--bg);
}

.app-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: block;
  width: 100%;
  background: transparent;
  border-top: none;
  box-shadow: none;
  padding: 0;
  pointer-events: none;
}

.app-tabbar-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.3rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
  border-radius: 12px 12px 0 0;
  background: rgba(255, 253, 247, 0.98);
  border: 1px solid var(--gold-soft);
  border-bottom: none;
  box-shadow: 0 -4px 18px rgba(123, 30, 60, 0.1);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.app-tabbar-slider {
  position: absolute;
  top: 0.28rem;
  left: 0.2rem;
  width: calc((100% - 0.4rem) / 5);
  height: calc(100% - 0.56rem - env(safe-area-inset-bottom, 0px));
  border-radius: 8px;
  background: linear-gradient(180deg, var(--maroon) 0%, var(--maroon-deep) 100%);
  box-shadow: 0 2px 8px rgba(92, 17, 41, 0.22);
  transform: translateX(0);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
  pointer-events: none;
}

.app-tab {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  padding: 0.42rem 0.1rem 0.35rem;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  border-radius: 8px;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.app-tab:hover {
  text-decoration: none;
  color: var(--maroon);
}

.app-tab.active {
  color: #fff;
}

.app-tab.active:hover {
  color: #fff;
}

.app-tab .ico {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: inherit;
  box-shadow: none;
}

.app-tab .ico svg,
.app-tab .ico .lucide {
  width: 1.1rem;
  height: 1.1rem;
  stroke-width: 2.25;
}

.app-tab.active .ico {
  background: transparent;
  color: inherit;
  box-shadow: none;
}

.app-tab-ask,
.app-tab-ask .ico,
.app-tab-ask.active .ico,
.app-tab-ask:hover .ico {
  top: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
}

.app-tab-ask .ico {
  width: 1.35rem;
  height: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-tab-ask .ico svg,
.app-tab-ask .ico .lucide {
  width: 1.1rem;
  height: 1.1rem;
}

.app-tab-ask span:last-child,
.app-tab-ask {
  font-size: 0.6rem;
}

/* ------------------------------------------------------------
   Portal misc
   ------------------------------------------------------------ */
.portal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.portal-nav a {
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--maroon-ink);
  background: var(--card);
}

.portal-nav a.active,
.portal-nav a:hover {
  background: var(--gold-pale);
  border-color: var(--gold);
  text-decoration: none;
}

.profile-boxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 0.35rem 0 1.25rem;
}

@media (min-width: 720px) {
  .profile-boxes {
    grid-template-columns: repeat(3, 1fr);
  }
}

.profile-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-height: 7.5rem;
  padding: 1rem 0.9rem;
  border: 1px solid var(--gold-soft);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.profile-box:hover {
  border-color: var(--gold);
  text-decoration: none;
  color: inherit;
  transform: translateY(-1px);
}

.profile-box-add {
  border-style: dashed;
  background: var(--bg-soft);
  align-items: center;
  justify-content: center;
  text-align: center;
}

.profile-box-ico {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-pale);
  color: var(--maroon);
  margin-bottom: 0.15rem;
}

.profile-box-ico .lucide,
.profile-box-ico svg {
  width: 1.15rem;
  height: 1.15rem;
}

.profile-box-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--maroon-ink);
  line-height: 1.3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

.profile-box-add .profile-box-name {
  color: var(--maroon);
}

.profile-box-meta {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
}

.profile-box-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.45rem;
  width: 100%;
}

.profile-box-actions .btn {
  flex: 1;
  min-width: 0;
  justify-content: center;
  text-align: center;
  padding: 0.4rem 0.5rem;
  font-size: 0.75rem;
}

.profile-actions {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

/* ------------------------------------------------------------
   Profile kundali viewer
   ------------------------------------------------------------ */
.kc-style-toggle {
  display: inline-flex;
  padding: 0.18rem;
  border-radius: 10px;
  border: 1px solid var(--gold-soft);
  background: var(--bg-soft);
  gap: 0.15rem;
}

.kc-style-under {
  display: flex;
  justify-content: center;
  margin: 0.65rem auto 0.85rem;
  width: fit-content;
}

.kc-style-btn {
  appearance: none;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  padding: 0.42rem 1rem;
  border-radius: 8px;
  cursor: pointer;
}

.kc-style-btn.active {
  background: var(--maroon);
  color: #fff;
}

.kc-tabs-scroll {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.15rem 0 0.75rem;
  margin-bottom: 0.35rem;
  scrollbar-width: thin;
}

.kc-tab {
  appearance: none;
  flex: 0 0 auto;
  border: 1px solid var(--gold-soft);
  background: var(--card);
  color: var(--maroon-ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.kc-tab.active {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #fff;
}

.kc-panel {
  margin-bottom: 1.5rem;
}

.kc-chart-block {
  width: 100%;
}

.kc-chart-svg-wrap {
  width: min(100%, 600px);
  max-width: 600px;
  margin: 0.85rem auto 0.7rem;
  border: 1px solid var(--gold-soft);
  border-radius: 14px;
  background: var(--card);
  padding: 0.85rem;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.kc-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  overflow: visible;
}

@media (max-width: 640px) {
  .kc-chart-svg-wrap {
    width: 100%;
    max-width: none;
    margin: 0.6rem 0 0.5rem;
    padding: 0.55rem;
    border-radius: 12px;
  }
}

.kc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.95rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  align-items: center;
}

.kc-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.kc-legend-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--maroon);
  color: var(--maroon);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
  box-sizing: border-box;
}

.kc-legend strong {
  color: var(--maroon);
  margin-right: 0.2rem;
}

.kc-subhead {
  margin: 1rem 0 0.45rem;
  font-size: 1.05rem;
  color: var(--maroon-ink);
}

.kc-bav-title {
  margin: 0.65rem 0 0.25rem;
  font-size: 0.9rem;
}

.kc-dasha-current p {
  margin: 0.35rem 0;
}

.kc-pdf-preview {
  margin-top: 1rem;
  max-height: 28rem;
  overflow: auto;
  border: 1px solid var(--gold-soft);
  border-radius: 12px;
  background: var(--card);
  padding: 0.75rem;
}

.kc-pdf-root {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 190mm;
  background: #fff;
  color: #43091c;
  font-family: "Noto Sans Devanagari", Mulish, Segoe UI, sans-serif;
  z-index: -1;
  pointer-events: none;
}

.kc-pdf-page {
  width: 190mm;
  min-height: 260mm;
  padding: 8mm 6mm;
  box-sizing: border-box;
  page-break-before: always;
  break-before: page;
}

.kc-pdf-page:first-child {
  page-break-before: auto;
  break-before: auto;
}

.kc-pdf-brand {
  font-family: "Rozha One", Georgia, serif;
  font-size: 1.4rem;
  color: #7b1e3c;
  margin-bottom: 0.35rem;
}

.kc-pdf-page h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  margin: 0 0 0.4rem;
  color: #43091c;
}

.kc-pdf-page h2 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  color: #7b1e3c;
}

.kc-pdf-page .kc-svg {
  max-width: 160mm;
  margin: 0 auto;
}

.kc-pdf-foot {
  margin-top: 1.5rem;
}

.kc-pdf-page-preview {
  min-height: 0;
  width: 100%;
  border-bottom: 1px dashed var(--gold-soft);
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
}

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }
  .site-header,
  .app-tabbar,
  .kc-tabs-scroll,
  .kc-style-toggle,
  #kc-pdf-download,
  .breadcrumb {
    display: none !important;
  }
}

.profile-card {
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 1.2rem 1.15rem;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.profile-card .name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--maroon-ink);
}

.profile-card .nick {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-deep);
}

.last-answer-card {
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem;
  background: linear-gradient(160deg, var(--card), var(--gold-pale));
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow-soft);
}

.gochar-chart-page {
  margin-top: 0.35rem;
}

.gochar-chart-page .kc-chart-svg-wrap {
  max-width: 440px;
  margin: 0.35rem auto 0;
}

.gochar-box {
  background: var(--card);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 0.85rem 1rem 1rem;
  box-shadow: var(--shadow-soft);
  margin: 0.65rem 0 0.35rem;
}

.gochar-box-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
  flex-wrap: wrap;
}

.gochar-box-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--maroon);
}

.gochar-box-meta {
  margin: 0;
  font-size: 0.8rem;
}

.gochar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem 0.55rem;
}

@media (max-width: 480px) {
  .gochar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.gochar-item {
  border: 1px solid var(--gold-soft);
  border-radius: 10px;
  padding: 0.4rem 0.45rem;
  background: var(--bg);
}

.gochar-planet {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--maroon);
  letter-spacing: 0.02em;
}

.gochar-pos {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}

.quick-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 0.35rem 0 1.25rem;
}

@media (min-width: 560px) {
  .quick-tiles {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
  }
}

.quick-tile {
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 1.15rem 0.65rem 1rem;
  text-align: center;
  text-decoration: none;
  color: var(--maroon-ink);
  background: var(--card);
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.25;
  box-shadow: var(--shadow-soft);
  transition: background 0.15s ease, transform 0.12s ease, border-color 0.15s ease;
}

.quick-tile:hover {
  background: var(--gold-pale);
  border-color: var(--gold);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--maroon);
}

.quick-tile .qi {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin: 0 auto 0.55rem;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--gold-pale), var(--card));
  color: var(--maroon);
}

.quick-tile .qi svg {
  width: 26px;
  height: 26px;
}

/* Daily horoscope */
.dh-rashi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin: 0.25rem 0 1rem;
}

@media (min-width: 560px) {
  .dh-rashi-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.65rem;
  }
}

.dh-rashi-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.65rem 0.35rem 0.55rem;
  border: 1px solid var(--gold-soft);
  border-radius: calc(var(--radius) - 4px);
  background: var(--card);
  color: var(--maroon-ink);
  cursor: pointer;
  font: inherit;
  box-shadow: var(--shadow-soft);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.dh-rashi-chip:hover {
  background: var(--gold-pale);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.dh-rashi-chip.active {
  background: linear-gradient(160deg, var(--maroon), #5c1630);
  border-color: var(--maroon);
  color: #fff;
  box-shadow: 0 6px 16px rgba(123, 30, 60, 0.22);
}

.dh-rashi-chip .dh-glyph {
  font-size: 1.15rem;
  line-height: 1;
}

.dh-rashi-chip .dh-chip-name {
  font-weight: 800;
  font-size: 0.78rem;
}

.dh-rashi-chip .dh-chip-en {
  font-size: 0.68rem;
  opacity: 0.75;
  font-weight: 600;
}

.dh-card {
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem;
  background: linear-gradient(160deg, var(--card), var(--gold-pale));
  box-shadow: var(--shadow-soft);
  margin-bottom: 1rem;
}

.dh-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  align-items: baseline;
  margin: 0 0 0.85rem;
}

.dh-rashi {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--maroon);
  margin: 0;
}

.dh-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.dh-nak {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dh-sections {
  display: grid;
  gap: 0.85rem;
}

.dh-section h3 {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--maroon);
  margin: 0 0 0.25rem;
  font-weight: 800;
  font-family: Mulish, system-ui, sans-serif;
}

.dh-section p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
}

.dh-tip {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--gold-soft);
}

.dh-tip strong {
  color: var(--maroon);
}

/* Option cards on Ask chooser */
.option-cards {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .option-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.option-card {
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.5rem 1.3rem;
  text-decoration: none;
  color: var(--text);
  display: block;
  box-shadow: var(--shadow-soft);
  transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
}

.option-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.option-card .opt-ico {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: var(--gold-pale);
  color: var(--maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  box-shadow: inset 0 0 0 1px var(--gold-soft);
}

.option-card .opt-ico svg {
  width: 24px;
  height: 24px;
}

.option-card h2 {
  margin: 0 0 0.3rem;
  font-size: 1.4rem;
}

.option-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.option-card .opt-price {
  margin-top: 0.7rem;
  font-weight: 800;
  color: var(--gold-deep);
  font-size: 0.9rem;
}

/* ------------------------------------------------------------
   Grids & bars
   ------------------------------------------------------------ */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 760px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
}

.inline-fields {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .inline-fields {
    grid-template-columns: repeat(2, 1fr);
  }
}

.masked-key {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  background: var(--gold-pale);
  border: 1px solid var(--gold-soft);
  border-radius: 6px;
  padding: 0.2rem 0.45rem;
  display: inline-block;
  font-size: 0.8rem;
}

/* ------------------------------------------------------------
   Admin shell
   ------------------------------------------------------------ */
.admin-body {
  background:
    radial-gradient(circle at 95% -5%, rgba(201, 162, 75, 0.1), transparent 28%),
    var(--bg-soft);
}

.admin-answer-dialog {
  width: min(720px, calc(100vw - 2rem));
  max-height: 80vh;
  padding: 1.1rem 1.25rem 1.25rem;
  border: 1px solid rgba(90, 24, 42, 0.18);
  border-radius: 10px;
  background: var(--bg, #faf7f2);
  color: inherit;
  box-shadow: 0 18px 48px rgba(40, 10, 20, 0.22);
}
.admin-answer-dialog::backdrop {
  background: rgba(40, 10, 20, 0.45);
}
.admin-answer-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.admin-answer-dialog__title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
}
.admin-answer-dialog__meta {
  margin: 0 0 0.85rem;
}
.admin-answer-dialog__section {
  margin-bottom: 0.85rem;
}
.admin-answer-dialog__label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--maroon, #5a182a);
}
.admin-answer-dialog__question {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.45;
}
.admin-answer-dialog__answer-wrap {
  margin-bottom: 0;
}
.admin-answer-dialog__answer {
  max-height: min(48vh, 420px);
  overflow: auto;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(90, 24, 42, 0.1);
  line-height: 1.5;
  white-space: normal;
}

.admin-shell {
  display: grid;
  grid-template-columns: 236px 1fr;
  min-height: 100vh;
}

.admin-nav {
  background: linear-gradient(180deg, var(--maroon-ink), var(--maroon-deep) 55%, var(--maroon));
  color: var(--gold-pale);
  padding: 1.4rem 1rem;
}

.admin-nav .logo {
  color: var(--gold-pale);
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1.55rem;
}

.admin-nav .logo span {
  color: var(--gold);
}

.admin-nav .eyebrow {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(232, 213, 166, 0.6);
  margin-bottom: 1.3rem;
  font-weight: 800;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(247, 236, 210, 0.85);
  padding: 0.58rem 0.7rem;
  border-radius: 9px;
  margin-bottom: 0.2rem;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.admin-nav a svg {
  width: 17px;
  height: 17px;
  opacity: 0.85;
}

.admin-nav a:hover,
.admin-nav a.active {
  background: rgba(201, 162, 75, 0.2);
  color: var(--gold-pale);
  text-decoration: none;
}

.admin-nav a.active {
  background: var(--gold);
  color: var(--maroon-ink);
}

.admin-nav-group {
  margin-bottom: 0.2rem;
}

.admin-nav-group__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.6rem;
  color: rgba(247, 236, 210, 0.85);
  padding: 0.58rem 0.7rem;
  border-radius: 9px;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
}

.admin-nav-group__toggle:hover,
.admin-nav-group__toggle.active {
  background: rgba(201, 162, 75, 0.2);
  color: var(--gold-pale);
}

.admin-nav-group__label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.admin-nav-group__label svg,
.admin-nav-group__chevron {
  width: 17px;
  height: 17px;
  opacity: 0.85;
  flex-shrink: 0;
}

.admin-nav-group__chevron {
  transition: transform 0.2s ease;
}

.admin-nav-group.open .admin-nav-group__chevron {
  transform: rotate(180deg);
}

.admin-nav-group__panel {
  display: none;
  padding: 0.15rem 0 0.35rem 0.55rem;
  margin-left: 0.35rem;
  border-left: 1px solid rgba(201, 162, 75, 0.35);
}

.admin-nav-group.open .admin-nav-group__panel {
  display: block;
}

.admin-nav-group__panel a {
  font-size: 0.84rem;
  padding: 0.45rem 0.65rem;
  font-weight: 600;
}

.admin-main {
  padding: 1.6rem;
  min-width: 0;
}

.admin-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.3rem;
}

.admin-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.admin-tab {
  appearance: none;
  border: 1px solid var(--gold-soft);
  background: var(--card);
  color: var(--maroon);
  font-family: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}

.admin-tab.active {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #fff;
}

.admin-tab-panel {
  min-width: 0;
}

.admin-topbar {
  display: none;
}

.admin-overlay {
  display: none;
}

/* Admin stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.stat {
  background: var(--card);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 1.05rem 1rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
}

.stat .label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.stat .value {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 700;
  margin-top: 0.2rem;
  color: var(--maroon-ink);
}

.stats-pnl-row {
  grid-template-columns: minmax(0, 2.4fr) minmax(140px, 1fr);
  align-items: stretch;
}

.stat-pnl {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.stat-pnl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.stat-pnl-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.stat-pnl-controls select,
.stat-pnl-custom input[type="date"] {
  border: 1px solid var(--gold-soft);
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--gold-pale);
  color: var(--maroon-ink);
  max-width: 100%;
}

.stat-pnl-controls select:focus,
.stat-pnl-custom input[type="date"]:focus {
  outline: 2px solid var(--gold-soft);
  outline-offset: 1px;
}

.stat-pnl-custom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.stat-pnl-custom[hidden] {
  display: none !important;
}

.stat-pnl-custom-sep {
  color: var(--text-muted);
  font-weight: 700;
}

.stat-pnl-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.stat-pnl-metric {
  min-width: 0;
  padding: 0.35rem 0.55rem 0.15rem;
  border-left: 1px solid var(--gold-soft);
}

.stat-pnl-metric:first-child {
  border-left: none;
  padding-left: 0;
}

.stat-pnl-metric .label {
  margin: 0;
}

.stat-pnl-metric .value {
  font-size: 1.65rem;
  margin-top: 0.1rem;
  line-height: 1.15;
  word-break: break-word;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table.data th,
table.data td {
  text-align: left;
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

table.data tr:last-child td {
  border-bottom: none;
}

table.data th {
  background: var(--gold-pale);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--maroon-ink);
  font-weight: 800;
}

table.data input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--maroon);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.badge.pending {
  background: var(--gold-pale);
  color: var(--gold-deep);
  border-color: var(--gold-soft);
}

.badge.sent,
.badge.confirmed {
  background: var(--success-soft);
  color: var(--success);
  border-color: #cfe3cc;
}

.badge.paid {
  background: var(--gold-pale);
  color: var(--maroon);
  border-color: var(--gold-soft);
}

/* Toggle */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.toggle {
  position: relative;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle .slider {
  position: absolute;
  inset: 0;
  background: var(--gold-soft);
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--gold);
  transition: background 0.2s ease;
}

.toggle .slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: var(--card);
  border-radius: 50%;
  transition: 0.2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.toggle input:checked + .slider {
  background: var(--maroon);
  border-color: var(--maroon-deep);
}

.toggle input:checked + .slider::before {
  transform: translateX(20px);
}

/* Login */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 20% 10%, rgba(201, 162, 75, 0.16), transparent 34%),
    radial-gradient(circle at 85% 90%, rgba(123, 30, 60, 0.1), transparent 36%),
    var(--bg);
}

.login-card {
  width: min(100%, 410px);
  background: var(--card);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
  position: relative;
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(201, 162, 75, 0.3);
  border-radius: calc(var(--radius) - 5px);
  pointer-events: none;
}

.login-card h1 {
  margin: 0.4rem 0 0.25rem;
  font-size: 1.7rem;
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filters select,
.filters input,
.action-bar select,
.action-bar input {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  font: inherit;
  font-size: 0.88rem;
  background: var(--card);
  color: var(--text);
}

.prompt-box textarea {
  min-height: 200px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  font: inherit;
  font-size: 0.92rem;
  background: #fffefb;
  line-height: 1.55;
}

.prompt-card {
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.prompt-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--gold-soft);
}

.prompt-card-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.prompt-card-title svg {
  width: 18px;
  height: 18px;
  color: var(--gold-deep);
  flex-shrink: 0;
}

.prompt-card.is-disabled {
  opacity: 0.58;
  border-style: dashed;
}

.prompt-card.is-disabled textarea {
  background: var(--bg-soft);
  pointer-events: none;
}

/* Icon action buttons (admin) */
.icon-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.6rem;
}

.icon-action {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  text-decoration: none;
  color: var(--text);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  min-width: 3.1rem;
}

.icon-action .box {
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--gold-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  color: var(--maroon);
  transition: background 0.15s ease, border-color 0.15s ease;
  box-shadow: var(--shadow-soft);
}

.icon-action .box svg {
  width: 16px;
  height: 16px;
}

.icon-action:hover .box {
  background: var(--gold-pale);
  border-color: var(--gold);
}

.icon-action:hover {
  text-decoration: none;
}

.icon-action.danger .box {
  border-color: #ecc9cc;
  color: var(--danger);
}

.icon-action.danger:hover .box {
  background: var(--danger-soft);
  border-color: var(--danger);
}

.icon-action .lbl {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.icon-action:not(:has(.lbl)) {
  min-width: 0;
}

/* Charts */
.chart-card {
  background: var(--card);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 1.15rem 1.1rem;
  box-shadow: var(--shadow-soft);
}

.chart-card h3 {
  margin: 0 0 0.9rem;
  font-size: 1.2rem;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
  height: 160px;
  padding-top: 0.5rem;
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  height: 100%;
  justify-content: flex-end;
}

.bar-col .bar {
  width: 100%;
  max-width: 44px;
  border-radius: 7px 7px 3px 3px;
  border: 1px solid rgba(123, 30, 60, 0.25);
  min-height: 8px;
}

.bar-col .bar.ads { background: var(--gold); }
.bar-col .bar.ai { background: var(--maroon); }
.bar-col .bar.profit { background: var(--success-soft); border-color: #b9d3b5; }
.bar-col .bar.rev { background: var(--gold-pale); }

.bar-col span {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.legend i {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border: 1px solid rgba(123, 30, 60, 0.3);
  border-radius: 3px;
  margin-right: 0.3rem;
  vertical-align: -1px;
}

/* Mode banner */
.mode-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.05rem 1.2rem;
  background: linear-gradient(160deg, var(--gold-pale), #fdf6e6);
  margin-bottom: 1rem;
}

.mode-banner .mode-label {
  font-weight: 800;
}

.mode-banner .mode-label.on {
  color: var(--success);
}

.mode-banner .mode-label.off {
  color: var(--text-muted);
}

/* P&L table */
.pnl-table .pnl-total td {
  background: var(--gold-pale);
  border-top: 2px solid var(--gold);
}

/* ------------------------------------------------------------
   Mobile card tables (no horizontal scroll)
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .table-wrap.cards-mobile {
    overflow: visible;
    border: none;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }

  .cards-mobile table.data {
    min-width: 0;
    display: block;
    font-size: 0.88rem;
  }

  .cards-mobile thead {
    display: none;
  }

  .cards-mobile tbody {
    display: grid;
    gap: 0.8rem;
  }

  .cards-mobile tr {
    display: block;
    background: var(--card);
    border: 1px solid var(--gold-soft);
    border-radius: var(--radius);
    padding: 0.4rem 1rem;
    box-shadow: var(--shadow-soft);
  }

  .cards-mobile td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.85rem;
    border-bottom: 1px dashed var(--border);
    padding: 0.55rem 0;
    text-align: right;
  }

  .cards-mobile tr:last-child td {
    border-bottom: 1px dashed var(--border);
  }

  .cards-mobile td:last-child {
    border-bottom: none;
  }

  .cards-mobile td::before {
    content: attr(data-label);
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    flex-shrink: 0;
    text-align: left;
  }

  .cards-mobile td:not([data-label])::before {
    content: none;
  }

  .cards-mobile .icon-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 0.5rem;
  }
}

/* ------------------------------------------------------------
   Admin mobile
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 253, 247, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--gold-soft);
    padding: 0.7rem 0.9rem;
  }

  .admin-topbar .brand {
    font-family: var(--font-brand);
    font-weight: 400;
    font-size: 1.15rem;
    text-decoration: none;
    color: var(--maroon);
  }

  .admin-topbar .brand span {
    color: var(--gold-deep);
  }

  .admin-menu-btn {
    border: 1px solid var(--maroon-deep);
    background: linear-gradient(160deg, var(--maroon), var(--maroon-deep));
    color: var(--gold-pale);
    font-weight: 800;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    cursor: pointer;
    font: inherit;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
  }

  .admin-menu-btn svg {
    width: 16px;
    height: 16px;
  }

  .admin-nav {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(82vw, 290px);
    z-index: 80;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    overflow-y: auto;
    box-shadow: 6px 0 28px rgba(67, 9, 28, 0.35);
  }

  .admin-shell.nav-open .admin-nav {
    transform: translateX(0);
  }

  .admin-overlay {
    position: fixed;
    inset: 0;
    background: rgba(43, 27, 18, 0.5);
    z-index: 70;
  }

  .admin-shell.nav-open .admin-overlay {
    display: block;
  }

  .admin-main {
    padding: 1rem 0.9rem 2rem;
  }

  .admin-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-pnl-row {
    grid-template-columns: 1fr;
  }

  .stat-pnl-metrics {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .stat-pnl-metric {
    border-left: none;
    border-top: 1px solid var(--gold-soft);
    padding: 0.55rem 0 0;
  }

  .stat-pnl-metric:first-child {
    border-top: none;
    padding-top: 0;
  }

  table.data {
    font-size: 0.82rem;
    min-width: 640px;
  }

  table.data th,
  table.data td {
    padding: 0.55rem 0.55rem;
  }

  .action-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .action-bar .btn,
  .action-bar select,
  .action-bar input {
    width: 100%;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .mode-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .bar-chart {
    height: 130px;
  }
}

/* ------------------------------------------------------------
   Home page (main site)
   ------------------------------------------------------------ */
.home-page .site-header {
  position: relative;
  z-index: 5;
  background: rgba(255, 253, 247, 0.96);
  backdrop-filter: blur(8px);
}

.home-nav,
.jy-header-nav {
  display: none;
  gap: 0.35rem 1.1rem;
  margin-left: auto;
  flex: 0 1 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.home-nav a,
.jy-header-nav a {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--maroon);
  text-decoration: none;
  padding: 0.25rem 0;
}

.home-nav a:hover,
.jy-header-nav a:hover {
  color: var(--gold-deep);
}

.jy-site-header {
  width: 100%;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 50;
}

@media (min-width: 860px) {
  .home-nav,
  .jy-header-nav {
    display: flex;
  }

  .jy-nav-toggle,
  .jy-nav-backdrop {
    display: none !important;
  }
}

@media (max-width: 859px) {
  .jy-nav-toggle {
    display: inline-flex;
    order: 3;
    margin-left: 0;
  }

  .jy-header-shell .logo {
    order: 1;
  }

  .header-actions {
    order: 2;
    margin-left: auto;
  }

  .home-nav,
  .jy-header-nav {
    display: none;
    order: 4;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    padding: 0.65rem 0 0.85rem;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.15rem;
    background: rgba(255, 253, 247, 0.98);
    border: 1px solid var(--gold-soft);
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(67, 9, 28, 0.12);
    z-index: 60;
  }

  .jy-site-header.is-menu-open .home-nav,
  .jy-site-header.is-menu-open .jy-header-nav {
    display: flex;
  }

  .home-nav a,
  .jy-header-nav a {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.98rem;
  }

  .home-nav a:hover,
  .jy-header-nav a:hover {
    background: var(--gold-pale);
  }

  .jy-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(43, 8, 18, 0.28);
    border: 0;
  }

  .jy-nav-backdrop[hidden] {
    display: none !important;
  }

  body.jy-nav-open {
    overflow: hidden;
  }

  .header-actions .btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.82rem;
  }
}

.home-hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--gold-pale);
  background: linear-gradient(160deg, var(--maroon-deep), var(--maroon) 55%, #2b0812);
}

.home-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.06);
  animation: home-ken 18s ease-in-out infinite alternate;
}

@keyframes home-ken {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

.home-hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(67, 9, 28, 0.35) 0%, rgba(67, 9, 28, 0.55) 42%, rgba(43, 8, 18, 0.88) 100%),
    radial-gradient(circle at 70% 20%, rgba(201, 162, 75, 0.22), transparent 45%);
}

.home-hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max-wide));
  margin: 0 auto;
  padding: 4.5rem 1.25rem 3.5rem;
  animation: home-rise 0.9s ease-out both;
}

@keyframes home-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.home-eyebrow svg {
  width: 14px;
  height: 14px;
}

.home-brand {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(3.2rem, 12vw, 5.4rem);
  line-height: 1.02;
  margin: 0 0 1rem;
  color: #fffdf7;
  letter-spacing: 0.01em;
}

.home-brand em {
  font-style: normal;
  color: var(--gold);
}

.home-lead {
  max-width: 38ch;
  margin: 0 0 1.75rem;
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 3.2vw, 1.55rem);
  font-style: italic;
  line-height: 1.35;
  color: rgba(247, 236, 210, 0.92);
}

.home-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-cta-ghost {
  background: transparent;
  color: var(--gold-pale);
  border-color: rgba(247, 236, 210, 0.45);
}

.home-cta-ghost:hover {
  background: rgba(247, 236, 210, 0.1);
  color: #fff;
}

.home-section {
  padding: 3.5rem 1.25rem;
  border-bottom: 1px solid var(--gold-soft);
}

.home-section h2 {
  margin: 0 0 0.55rem;
  text-align: center;
  font-size: clamp(1.85rem, 4vw, 2.35rem);
}

.home-section-lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 auto 2rem;
}

.home-split {
  display: grid;
  gap: 2rem;
  align-items: center;
  width: min(100%, var(--max-wide));
  margin-inline: auto;
}

@media (min-width: 860px) {
  .home-split {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3rem;
  }
  .home-split-rev {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .home-split-rev .home-figure {
    order: 2;
  }
}

.home-figure {
  margin: 0;
}

.home-figure img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center top;
  border-radius: 2px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gold-soft);
}

.home-figure figcaption {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.home-copy h2 {
  text-align: left;
  margin-bottom: 0.85rem;
}

.home-copy p {
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 1rem;
}

.home-service-grid {
  display: grid;
  gap: 1.25rem;
  width: min(100%, var(--max-wide));
  margin-inline: auto;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .home-service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.home-service {
  background: var(--card);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.home-service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.home-service figure {
  margin: 0;
  height: 200px;
  overflow: hidden;
  background: var(--maroon-ink);
}

.home-service figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.92;
  transition: transform 0.6s ease;
}

.home-service:hover figure img {
  transform: scale(1.05);
}

.home-service h3 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 1.1rem 1.2rem 0.45rem;
  font-size: 1.25rem;
  color: var(--maroon);
}

.home-service h3 svg {
  width: 18px;
  height: 18px;
  color: var(--gold-deep);
}

.home-service p {
  margin: 0 1.2rem 1rem;
  color: var(--text-muted);
  flex: 1;
}

.home-service a {
  margin: 0 1.2rem 1.25rem;
  font-weight: 800;
  color: var(--maroon);
}

.home-steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: min(100%, 640px);
  display: grid;
  gap: 1rem;
}

.home-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
}

.home-steps .n {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--maroon);
  color: var(--gold-pale);
  font-weight: 800;
}

.home-steps strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--maroon-ink);
}

.home-steps p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.home-price-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.home-price-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--gold-soft);
  color: var(--text-muted);
}

.home-price-list strong {
  color: var(--maroon);
  font-size: 1.05rem;
}

.home-portal-links {
  display: grid;
  gap: 0.75rem;
  width: min(100%, 720px);
  margin: 0 auto;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .home-portal-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

.home-portal-links a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  background: var(--card);
  font-weight: 800;
  color: var(--maroon);
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.home-portal-links a:hover {
  background: var(--bg-soft);
  border-color: var(--gold);
}

.home-portal-links svg {
  width: 18px;
  height: 18px;
  color: var(--gold-deep);
}

.home-campaign-band {
  background:
    radial-gradient(circle at 18% 30%, rgba(201, 162, 75, 0.18), transparent 40%),
    linear-gradient(135deg, var(--maroon-deep), var(--maroon));
  color: var(--gold-pale);
  padding: 3.25rem 1.25rem;
}

.home-campaign-inner {
  width: min(100%, 640px);
  margin: 0 auto;
  text-align: center;
}

.home-campaign-inner h2 {
  margin: 0 0 0.65rem;
  color: #fffdf7;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
}

.home-campaign-inner p {
  margin: 0 0 1.4rem;
  color: rgba(247, 236, 210, 0.88);
}

.home-campaign-btn {
  background: var(--gold);
  color: var(--maroon-ink);
}

.home-campaign-btn:hover {
  background: var(--gold-pale);
}

.home-blog-grid {
  display: grid;
  gap: 1.15rem;
  width: min(100%, var(--max-wide));
  margin-inline: auto;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .home-blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home-blog-card {
  display: grid;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.home-blog-card figure,
.blog-cover {
  margin: 0;
  height: 160px;
  background: linear-gradient(135deg, var(--maroon-deep), var(--maroon));
  overflow: hidden;
}

.blog-cover {
  height: auto;
  max-height: 360px;
  margin: 1.25rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--gold-soft);
}

.home-blog-card img,
.blog-cover img,
.jy-blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-cover img {
  max-height: 360px;
}

.home-blog-fallback {
  width: 100%;
  height: 100%;
  min-height: 120px;
  background:
    radial-gradient(circle at 30% 30%, rgba(201, 162, 75, 0.35), transparent 50%),
    linear-gradient(135deg, var(--maroon-deep), var(--maroon));
}

.home-blog-card h3 {
  margin: 0 1rem 0.35rem;
  font-size: 1.2rem;
  color: var(--maroon);
}

.home-blog-card p {
  margin: 0 1rem 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---- Public blog list / detail (CPD layout, Jyotishe brand) ---- */
.jy-blog-page .jy-blog-shell,
.jy-blog-page .jy-blog-detail-wrap {
  width: min(100% - 2.5rem, var(--max-wide));
  max-width: none;
  margin-inline: auto;
  padding-bottom: 3rem;
  box-sizing: border-box;
}

/* Detail articles: use the full content column (equal left/right margins via wrap) */
.jy-blog-page article.jy-blog-detail-wrap.container {
  width: min(100% - 2.5rem, var(--max-wide));
  max-width: none;
  margin-inline: auto;
  padding-left: 0;
  padding-right: 0;
}

.jy-blog-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.jy-blog-breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}

.jy-blog-breadcrumbs a:hover {
  color: var(--maroon);
}

.jy-blog-breadcrumbs [aria-current="page"] {
  color: var(--maroon-ink);
  font-weight: 700;
}

.jy-blog-eyebrow {
  display: inline-block;
  margin: 0 0 0.65rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--maroon-ink);
  background: var(--gold-pale);
  border: 1px solid var(--gold-soft);
}

.jy-blog-list-header .page-title {
  margin-bottom: 0.35rem;
}

.jy-blog-search {
  margin: 1.25rem 0 1.5rem;
}

.jy-blog-search input[type="search"] {
  width: 100%;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-sm, 10px);
  padding: 0.8rem 0.95rem;
  font: inherit;
  background: var(--card);
  color: var(--text);
}

.jy-blog-search input[type="search"]:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.jy-blog-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .jy-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .jy-blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.jy-blog-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--gold-soft);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.jy-blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.jy-blog-card__media-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.jy-blog-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--maroon-deep), var(--maroon));
}

.jy-blog-card__title-link {
  color: inherit;
  text-decoration: none;
}

.jy-blog-card__title-link:hover {
  color: var(--maroon-deep);
}

.jy-blog-author-link {
  color: var(--maroon);
  font-weight: 700;
  text-decoration: none;
}

.jy-blog-author-link:hover {
  text-decoration: underline;
  color: var(--maroon-deep);
}

.jy-author-hero {
  display: grid;
  gap: 1.35rem;
  align-items: start;
  padding: 1.25rem 0 0.5rem;
}

@media (min-width: 720px) {
  .jy-author-hero {
    grid-template-columns: 160px 1fr;
    gap: 1.75rem;
  }
}

.jy-author-hero__media {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold-soft);
  background: linear-gradient(135deg, var(--maroon-deep), var(--maroon));
}

.jy-author-hero__media img,
.jy-author-hero__media .home-blog-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.jy-author-meta-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.jy-author-meta-list li {
  margin: 0.25rem 0;
}

.jy-author-bio {
  margin: 0;
  line-height: 1.7;
  color: var(--text);
  max-width: 62ch;
}

.jy-blog-card__media .home-blog-fallback {
  min-height: 100%;
}

.jy-blog-card__body {
  padding: 1.15rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.jy-blog-card__meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0 0 0.45rem;
}

.jy-blog-card__title {
  font-family: var(--font-brand);
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0 0 0.5rem;
  line-height: 1.3;
  color: var(--maroon);
}

.jy-blog-card__summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
  line-height: 1.5;
}

.jy-blog-status {
  margin: 1rem 0 0;
}

.jy-blog-load-more-wrap {
  margin-top: 1.35rem;
  text-align: center;
}

.jy-blog-page .jy-blog-detail-summary,
.jy-blog-page .jy-blog-body,
.jy-blog-page .blog-body,
.jy-blog-page .jy-blog-toc,
.jy-blog-page .jy-blog-silo-cta,
.jy-blog-page .jy-blog-crosslinks,
.jy-blog-page .jy-blog-series-nav,
.jy-blog-page .jy-blog-related {
  max-width: none;
  width: 100%;
}

.jy-blog-page .jy-blog-body p,
.jy-blog-page .blog-body p {
  max-width: none;
}

.jy-blog-detail-meta {
  color: var(--text-muted);
  margin: 0.5rem 0 1.25rem;
  font-size: 0.95rem;
}

.jy-blog-detail-summary {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 1.35rem;
  line-height: 1.65;
}

.blog-body,
.jy-blog-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
}

.blog-body p,
.jy-blog-body p {
  margin: 0 0 1rem;
}

.jy-blog-body h2,
.jy-blog-body h3 {
  color: var(--maroon);
  margin: 1.5rem 0 0.65rem;
  font-family: var(--font-brand);
  font-weight: 400;
}

.jy-blog-body ul,
.jy-blog-body ol {
  padding-left: 1.35rem;
  margin: 0 0 1rem;
}

.jy-blog-body blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--gold);
  background: var(--gold-pale);
  color: var(--maroon-ink);
}

.jy-blog-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm, 10px);
}

.jy-blog-silo-cta {
  margin: 2rem 0 1.5rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--gold-soft);
  background: linear-gradient(135deg, var(--gold-pale), var(--card));
}

.jy-blog-silo-cta h2 {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
  color: var(--maroon);
  font-family: var(--font-brand);
  font-weight: 400;
}

.jy-blog-silo-cta p {
  margin: 0;
  color: var(--text-muted);
}

.jy-blog-silo-cta a {
  color: var(--maroon);
  font-weight: 700;
}

.jy-blog-related {
  margin-top: 2.25rem;
}

.jy-blog-related > h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-brand);
  color: var(--maroon);
  font-weight: 400;
}

.jy-blog-related .jy-blog-card--related .jy-blog-card__body {
  padding: 0.85rem 1rem 1rem;
}

.jy-blog-related .jy-blog-card--related .jy-blog-card__title {
  font-size: 0.95rem;
  line-height: 1.35;
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.blog-article {
  max-width: 720px;
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-media img,
  .home-hero-copy,
  .home-service,
  .home-service figure img {
    animation: none !important;
    transition: none !important;
  }
}

/* ------------------------------------------------------------
   Utilities
   ------------------------------------------------------------ */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Blog category nav, TOC, series, FAQ tables */
.jy-blog-cat-nav {
  margin: 0 0 1.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.jy-blog-cat-nav ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0.2rem;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  width: max-content;
  min-width: 100%;
}
@media (min-width: 720px) {
  .jy-blog-cat-nav ul {
    flex-wrap: wrap;
    width: auto;
    min-width: 0;
  }
}
.jy-blog-cat-nav a {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  text-decoration: none;
  color: var(--maroon-ink);
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--card);
}
.jy-blog-cat-nav a:hover,
.jy-blog-cat-nav a.is-active {
  background: var(--gold-pale);
  border-color: var(--gold);
  color: var(--maroon);
}
.jy-blog-category-intro {
  margin-top: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.jy-blog-toc {
  margin: 0 0 1.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-sm, 10px);
  background: var(--card);
}
.jy-blog-toc__title {
  margin: 0 0 0.5rem;
  font-weight: 800;
  color: var(--maroon);
  font-size: 0.95rem;
}
.jy-blog-toc ol {
  margin: 0;
  padding-left: 1.2rem;
}
.jy-blog-toc a {
  color: var(--maroon-ink);
  text-decoration: none;
}
.jy-blog-toc a:hover {
  color: var(--maroon);
  text-decoration: underline;
}
.jy-blog-series-nav {
  margin: 2rem 0 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gold-soft);
}
.jy-blog-series-nav__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.jy-blog-series-nav a {
  text-decoration: none;
  color: var(--maroon-ink);
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--gold-soft);
  border-radius: 10px;
  background: var(--card);
}
.jy-blog-series-nav a span {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.jy-blog-series-nav a strong {
  font-weight: 700;
  color: var(--maroon);
}
.jy-blog-series-nav__next {
  text-align: right;
}
.jy-blog-crosslinks {
  margin: 1.75rem 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--gold-soft);
  border-radius: 10px;
}
.jy-blog-crosslinks h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-family: var(--font-brand);
  font-weight: 400;
  color: var(--maroon);
}
.jy-blog-crosslinks ul {
  margin: 0;
  padding-left: 1.2rem;
}
.jy-blog-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}
.jy-blog-body th,
.jy-blog-body td {
  border: 1px solid var(--gold-soft);
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}
.jy-blog-body th {
  background: var(--gold-pale);
  color: var(--maroon);
}
.jy-blog-faq {
  margin: 1.5rem 0;
}
@media (max-width: 640px) {
  .jy-blog-series-nav__inner {
    grid-template-columns: 1fr;
  }
  .jy-blog-series-nav__next {
    text-align: left;
  }
}

/* ---- Mobile polish: blog, author, shared chrome ---- */
@media (max-width: 719px) {
  .page-title {
    font-size: 1.65rem;
  }

  .container,
  .container-wide {
    width: min(100% - 1.5rem, var(--max-wide));
    padding-top: 1.25rem;
  }

  .jy-blog-page .jy-blog-shell,
  .jy-blog-page .jy-blog-detail-wrap {
    width: min(100% - 1.5rem, var(--max-wide));
  }

  .jy-author-hero {
    justify-items: center;
    text-align: center;
  }

  .jy-author-hero__media {
    width: 132px;
    height: 132px;
  }

  .jy-author-hero__body {
    width: 100%;
  }

  .jy-author-meta-list {
    text-align: left;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
  }

  .jy-author-bio {
    text-align: left;
    max-width: none;
  }

  .jy-author-hero__body > .mt-2 {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    align-items: stretch;
  }

  .jy-author-hero__body > .mt-2 .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .jy-blog-related .jy-blog-card--related .jy-blog-card__title {
    font-size: 0.92rem;
  }

  .jy-blog-silo-cta {
    padding: 1.1rem 1rem;
  }

  .jy-footer-shell {
    width: min(100%, var(--max-wide));
  }

  .jy-site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.35rem;
  }

  .jy-header-shell {
    width: min(100% - 1.5rem, var(--max-wide));
    gap: 0.5rem;
  }

  .header-actions .btn-outline {
    display: none;
  }
}

/* �� Services browse page �� */
.jy-svc-page {
  padding-bottom: 3rem;
}

.jy-svc-intro {
  margin-bottom: 2rem;
}

.jy-svc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.jy-svc-eyebrow svg {
  width: 15px;
  height: 15px;
  color: var(--maroon);
}

.jy-svc-lead {
  max-width: 42rem;
  margin-top: 0.35rem;
}

.jy-svc-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 720px) {
  .jy-svc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .jy-svc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.jy-svc-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.jy-svc-card-link:hover {
  text-decoration: none;
}

.jy-svc-card {
  background: var(--card);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.25s ease;
}

.jy-svc-card-link:hover .jy-svc-card {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

.jy-svc-card__media {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--maroon-ink), var(--maroon-deep) 55%, #2a0f18);
}

.jy-svc-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  opacity: 0.94;
  transition: transform 0.6s ease;
}

.jy-svc-card-link:hover .jy-svc-card__media img {
  transform: scale(1.05);
}

.jy-svc-card__media--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(201, 162, 75, 0.28), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(123, 30, 60, 0.45), transparent 50%),
    linear-gradient(145deg, var(--maroon-ink), var(--maroon-deep) 60%, #1a0a10);
}

.jy-svc-card__media--icon svg {
  width: 48px;
  height: 48px;
  color: var(--gold);
  stroke-width: 1.5;
}

.jy-svc-card__body {
  padding: 1.15rem 1.2rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.45rem;
}

.jy-svc-card__body h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--maroon);
  line-height: 1.2;
}

.jy-svc-card__body p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.jy-svc-cta {
  margin-top: 2.75rem;
  padding: 2rem 1.75rem;
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(ellipse at 15% 0%, rgba(201, 162, 75, 0.22), transparent 50%),
    linear-gradient(145deg, var(--maroon-ink), var(--maroon-deep) 55%, #2a0f18);
  color: #fff;
  display: grid;
  gap: 1.35rem;
  align-items: center;
  box-shadow: var(--shadow);
}

@media (min-width: 880px) {
  .jy-svc-cta {
    grid-template-columns: 1.2fr auto;
    padding: 2.25rem 2.5rem;
  }
}

.jy-svc-cta__copy h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-head);
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.15;
}

.jy-svc-cta__copy p {
  margin: 0;
  color: rgba(255, 249, 240, 0.88);
  max-width: 36rem;
  line-height: 1.55;
}

.jy-svc-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.jy-svc-cta__ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.jy-svc-cta__ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: var(--gold-soft);
}

@media (max-width: 600px) {
  .jy-svc-cta__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .jy-svc-cta__actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* �� Service detail page �� */
.jy-svc-detail {
  padding-bottom: 3rem;
}

.jy-svc-detail .breadcrumb {
  margin-bottom: 1.15rem;
}

.jy-svc-detail__media {
  margin: 1.5rem 0 1.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gold-soft);
  box-shadow: var(--shadow-soft);
  background: var(--maroon-ink);
  aspect-ratio: 16 / 9;
}

.jy-svc-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.jy-svc-detail__body {
  max-width: 42rem;
}

.jy-svc-detail__body p {
  margin: 0 0 1rem;
  color: var(--text);
  line-height: 1.65;
  font-size: 1.05rem;
}

.jy-svc-detail__cta {
  margin-top: 2.5rem;
  padding: 1.75rem 1.5rem;
  border-radius: calc(var(--radius) + 4px);
  background: var(--bg-soft);
  border: 1px solid var(--gold-soft);
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 800px) {
  .jy-svc-detail__cta {
    grid-template-columns: 1.2fr auto;
    padding: 2rem 2.25rem;
  }
}

.jy-svc-detail__cta-copy h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-head);
  font-size: 1.55rem;
  color: var(--maroon);
}

.jy-svc-detail__cta-copy p {
  margin: 0;
  color: var(--text-muted);
  max-width: 34rem;
}

.jy-svc-detail__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 600px) {
  .jy-svc-detail__cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .jy-svc-detail__cta-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* Kundali Milan report (chat + PDF) */
.milan-report { font-size: 0.92rem; color: var(--text); }
.milan-report-full[hidden],
.milan-report-full {
  display: none !important;
}
.milan-chat-card {
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, #faf6f0, #f3e8dc);
  border: 1px solid rgba(128, 0, 32, 0.12);
}
.milan-chat-card .milan-hero {
  background: transparent;
  border: 0;
  padding: 0;
  margin-bottom: 0.5rem;
}
.milan-chat-card .milan-ashtakoot { background: #fff; }
.milan-chat-card .milan-pdf-actions { margin-top: 0.85rem; }
.milan-hero {
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
  padding: 0.85rem 1rem; margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #faf6f0, #f3e8dc);
  border: 1px solid rgba(128, 0, 32, 0.12);
}
.milan-names { margin: 0 0 1rem; font-size: 1.05rem; }
.milan-score {
  font-family: var(--font-display, 'Rozha One', serif);
  font-size: 2.4rem; line-height: 1; color: var(--maroon);
}
.milan-score span { font-size: 1rem; opacity: 0.7; }
.milan-verdict { flex: 1; min-width: 12rem; }
.milan-verdict p { margin: 0.25rem 0 0; color: var(--text-muted); }
.milan-badge { font-weight: 700; color: var(--maroon); }
.milan-partners {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1rem;
}
@media (max-width: 640px) {
  .milan-partners { grid-template-columns: 1fr; }
}
.milan-partner {
  padding: 0.75rem; background: rgba(255,255,255,0.55);
  border: 1px solid rgba(128, 0, 32, 0.1);
}
.milan-partner h3 { margin: 0 0 0.35rem; font-size: 1.05rem; color: var(--maroon); }
.milan-partner p { margin: 0.2rem 0; font-size: 0.88rem; }
.milan-partner-table { width: 100%; border-collapse: collapse; }
.milan-partner-table th,
.milan-partner-table td {
  text-align: left; padding: 0.2rem 0.35rem; font-size: 0.8rem;
  border-bottom: 1px solid rgba(128,0,32,0.08); vertical-align: top;
}
.milan-partner-table th { width: 42%; color: var(--text-muted); font-weight: 600; }
.milan-section { margin: 1.25rem 0; page-break-inside: avoid; }
.milan-section h2 {
  font-family: var(--font-head); font-size: 1.15rem; color: var(--maroon);
  margin: 0 0 0.5rem; border-bottom: 1px solid rgba(128,0,32,0.15); padding-bottom: 0.25rem;
}
.milan-section h3 { font-size: 1rem; margin: 0.75rem 0 0.35rem; }
.milan-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; margin: 0.4rem 0 0.75rem; }
.milan-table th, .milan-table td {
  border: 1px solid rgba(128,0,32,0.12); padding: 0.35rem 0.45rem; text-align: left;
}
.milan-table thead th { background: rgba(128,0,32,0.06); color: var(--maroon); }
.milan-total-row td { background: rgba(128,0,32,0.04); }
.milan-banner {
  margin: 0.75rem 0 0.25rem; padding: 0.75rem 1rem; font-weight: 700; text-align: center;
  border: 1px solid rgba(128,0,32,0.15);
}
.milan-banner-ok { background: #eef7ef; color: #1b5e20; }
.milan-banner-warn { background: #fff6e8; color: #8a4b00; }
.milan-interpretations .milan-interp-item { margin: 0.65rem 0; }
.milan-interpretations h3 span { font-weight: 500; color: var(--text-muted); font-size: 0.9em; }
.milan-calc-note {
  margin-top: 0.75rem; padding: 0.75rem 0.9rem;
  background: rgba(128,0,32,0.04); border-left: 3px solid var(--maroon);
}
.milan-calc-note p { margin: 0 0 0.5rem; }
.milan-chart-grid { display: flex; flex-direction: column; gap: 1rem; }
.milan-chart-person h3 { margin: 0 0 0.4rem; }
.milan-chart-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem;
}
@media (max-width: 720px) {
  .milan-chart-row { grid-template-columns: 1fr; }
}
.milan-chart-cell {
  border: 1px solid rgba(128,0,32,0.1); padding: 0.35rem; background: #fffdf7;
}
.milan-chart-title {
  font-size: 0.78rem; font-weight: 700; color: var(--maroon); margin-bottom: 0.25rem; text-align: center;
}
.milan-chart-svg .kc-svg,
.milan-chart-img { width: 100%; height: auto; display: block; max-width: 280px; margin: 0 auto; }
.milan-muted { color: #666; font-size: 0.85em; }
.milan-marriage-table td { vertical-align: top; font-size: 0.8rem; }
.milan-conclusion-label { font-size: 1.05rem; margin-bottom: 0.5rem; }
.milan-disclaimer p { font-size: 0.85rem; color: var(--text-muted); }
.milan-last-page {
  text-align: center; padding: 1.5rem 1rem;
  background: linear-gradient(180deg, #faf6f0, #fff);
  border: 1px solid rgba(128,0,32,0.1);
}
.milan-last-logo {
  font-family: var(--font-display, 'Rozha One', serif);
  font-size: 2rem; color: var(--maroon);
}
.milan-last-mantra { font-size: 1.1rem; margin: 0.35rem 0 1rem; }
.milan-list { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.milan-invite {
  margin-top: 1.25rem; padding: 0.85rem 1rem;
  background: rgba(128, 0, 32, 0.06); font-weight: 600;
}
.milan-pdf-actions { margin-top: 0.75rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.milan-pdf-export {
  width: 794px;
  max-width: 100%;
  background: #fff !important;
  color: #222 !important;
  font-family: "Noto Sans Devanagari", Mulish, "Segoe UI", sans-serif !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
}
.milan-pdf-export,
.milan-pdf-export * {
  font-family: "Noto Sans Devanagari", Mulish, "Segoe UI", sans-serif !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
}
.milan-pdf-page {
  width: 794px;
  min-height: 1040px;
  max-height: none;
  padding: 18px 22px 28px;
  background: #fff;
  color: #222;
  box-sizing: border-box;
  position: relative;
  page-break-before: always;
  break-before: page;
  page-break-after: always;
  break-after: page;
  page-break-inside: avoid;
  break-inside: avoid;
  display: flex;
  flex-direction: column;
  overflow: visible;
}
.milan-pdf-page.milan-pdf-page-first,
.milan-pdf-page:first-child {
  page-break-before: auto;
  break-before: auto;
}
.milan-pdf-body { flex: 1 1 auto; }
.milan-pdf-header {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 0.35rem; margin-bottom: 0.65rem;
  border-bottom: 1px solid rgba(123,30,60,0.25); padding-bottom: 0.35rem;
  flex: 0 0 auto;
}
.milan-pdf-brand {
  font-family: "Rozha One", Georgia, serif !important;
  font-size: 1.15rem; color: #7b1e3c;
}
.milan-pdf-mantra {
  text-align: center; font-size: 0.95rem; color: #43091c; font-weight: 600;
  font-family: "Noto Sans Devanagari", sans-serif !important;
}
.milan-pdf-pageno { text-align: right; font-size: 0.75rem; color: #666; }
.milan-pdf-footer {
  margin-top: auto;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(123,30,60,0.18);
  font-size: 0.72rem; color: #666; text-align: center;
  flex: 0 0 auto;
}
.milan-pdf-body .milan-pdf-actions,
.milan-pdf-body .milan-invite { display: none !important; }
/* Discrete pages own the breaks � do not avoid inside (causes blank pages) */
.milan-pdf-body .milan-section,
.milan-pdf-body .milan-pdf-block {
  page-break-inside: auto;
  break-inside: auto;
  margin: 0.55rem 0;
}
.milan-pdf-page-break { page-break-before: always; break-before: page; }
.milan-pdf-export .milan-chart-img,
.milan-pdf-export .milan-chart-svg img {
  width: 100%;
  max-width: 240px;
  height: auto;
  display: block;
  margin: 0 auto;
}
/* Force solid colors in PDF (CSS variables can fail in off-DOM / canvas snapshot) */
.milan-pdf-export .milan-report,
.milan-pdf-export .milan-section h2,
.milan-pdf-export .milan-partner h3,
.milan-pdf-export .milan-score,
.milan-pdf-export .milan-badge { color: #7b1e3c; }
.milan-pdf-export .milan-verdict,
.milan-pdf-export .milan-pdf-body { color: #222; }
.milan-pdf-export .milan-table th,
.milan-pdf-export .milan-table td {
  border: 1px solid #d4c4b0;
  color: #222;
  background: #fff;
}
.milan-pdf-export .milan-table thead th { background: #f7efe6; color: #7b1e3c; }

/* �� Astrology Course LMS �� */
.course-page .card-soft {
  background: linear-gradient(165deg, #fff9f4 0%, #f3e8dc 100%);
  border: 1px solid #e4d4c4;
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  margin: 1rem 0 1.5rem;
}
.course-meta { margin: 0.75rem 0 1rem; padding-left: 1.1rem; }
.course-meta li { margin: 0.35rem 0; }
.course-section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  margin: 1.5rem 0 0.75rem;
}
.course-syllabus { list-style: none; padding: 0; margin: 0; }
.course-syllabus li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #eadfD3;
}
.course-syllabus .syl-no {
  flex: 0 0 1.75rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #7b1e3c;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.course-syllabus .syl-title { flex: 1; font-weight: 600; }
.course-progress-bar {
  height: 8px;
  background: #e8ddd2;
  border-radius: 99px;
  overflow: hidden;
  margin: 0.75rem 0;
}
.course-progress-bar > div {
  height: 100%;
  background: linear-gradient(90deg, #7b1e3c, #b8452a);
  border-radius: 99px;
}
.course-chapter-cards { display: flex; flex-direction: column; gap: 0.65rem; margin-top: 1rem; }
.course-chapter-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border: 1px solid #e4d4c4;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: #fffaf6;
}
.course-chapter-card:hover { border-color: #7b1e3c; }
.course-chapter-card.is-locked { opacity: 0.55; pointer-events: none; }
.course-chapter-card.is-done { border-color: #8a9a6a; background: #f7faf2; }
.course-chapter-card .cc-num {
  flex: 0 0 2rem;
  font-family: "Rozha One", serif;
  color: #7b1e3c;
  font-size: 1.25rem;
}
.course-chapter-card .cc-body { display: flex; flex-direction: column; gap: 0.2rem; }
.course-lesson-content {
  line-height: 1.65;
  font-size: 0.98rem;
}
.course-lesson-content h1,
.course-lesson-content h2,
.course-lesson-content h3 {
  font-family: "Cormorant Garamond", serif;
  color: #5c1830;
  margin: 1.25rem 0 0.5rem;
}
.course-lesson-content .course-diagram {
  margin: 1.25rem 0;
  overflow-x: auto;
  text-align: center;
}
.course-lesson-content .course-diagram svg { max-width: 100%; height: auto; }
.course-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.85rem 0 1.1rem;
  font-size: 0.92rem;
}
.course-table th,
.course-table td {
  border: 1px solid #e0d2c2;
  padding: 0.45rem 0.55rem;
  text-align: left;
}
.course-table thead th { background: #f7efe6; color: #7b1e3c; }
.course-quiz-form .course-q {
  border: 1px solid #e4d4c4;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin: 0 0 0.85rem;
  background: #fff;
}
.course-quiz-form legend { font-weight: 700; padding: 0 0.25rem; margin-bottom: 0.5rem; }
.course-opt {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.35rem 0;
  cursor: pointer;
}
.course-quiz-result {
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid #e4d4c4;
}
.course-quiz-result.is-pass { background: #f4faf0; border-color: #8a9a6a; }
.course-quiz-result.is-fail { background: #fff5f3; border-color: #d4a090; }
.course-exam-panel .field-label { display: block; margin: 0.75rem 0 0.35rem; font-weight: 600; }
.course-exam-panel .input { width: 100%; margin-bottom: 0.35rem; }
.course-cert-pdf {
  width: 190mm;
  padding: 18mm 16mm;
  font-family: Georgia, "Times New Roman", serif;
  color: #222;
  background: #fff;
}
.course-cert-pdf .ccp-brand {
  font-family: "Rozha One", serif;
  font-size: 28px;
  color: #7b1e3c;
  text-align: center;
}
.course-cert-pdf .ccp-mantra { text-align: center; color: #8a6a4a; margin-bottom: 12px; }
.course-cert-pdf h1 { text-align: center; color: #7b1e3c; font-size: 26px; }
.course-cert-pdf .ccp-name {
  text-align: center;
  font-size: 28px;
  color: #5c1830;
  margin: 10px 0;
}
.course-cert-pdf .ccp-foot { text-align: center; margin-top: 24px; color: #888; font-size: 12px; }
.ccp-preview-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.75rem;
  color: #7b1e3c;
  margin: 0 0 0.35rem;
}
