/* ============================================================
   Zuloro Numerology — single stylesheet
   Mobile-first. Zuloro palette. Indian-theme marquee. Print-ready.
   ============================================================ */

:root {
  --bg:       #f6f1e8;
  --panel:    #fffaf2;
  --panel-2:  #f2eadb;
  --text:     #1f2320;
  --muted:    #64685f;
  --line:     #d7cbb6;
  --primary:  #0f6b66;
  --primary-2:#0a5450;
  --gold:     #b8862b;
  --gold-2:   #8c6519;
  --saffron:  #e07b2b;
  --green-in: #138b4c;
  --danger:   #b32929;
  --ok:       #0f8a4a;

  --shadow:   0 20px 55px rgba(31,35,32,.08);
  --shadow-sm:0 6px 14px rgba(31,35,32,.06);
  --radius:   20px;
  --radius-sm:12px;
  --max:      1180px;

  --serif: "Playfair Display", Georgia, "Tiro Devanagari Hindi", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --hi:    "Tiro Devanagari Hindi", "Noto Sans Devanagari", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(circle at top left,  #d7bf8f33, transparent 24%),
    radial-gradient(circle at top right, #0f6b661c, transparent 22%),
    var(--bg);
  line-height: 1.55;
}

body.lang-hi,
body.lang-hi input,
body.lang-hi textarea,
body.lang-hi select,
body.lang-hi button { font-family: var(--hi); }

a { color: inherit; text-decoration: none; }

.wrap { width: min(calc(100% - 28px), var(--max)); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.hide-sm { display: none; }
@media (min-width: 720px) { .hide-sm { display: inline; } }

h1, h2, h3 { margin: 0; font-family: var(--serif); letter-spacing: -.015em; }
body.lang-hi h1, body.lang-hi h2, body.lang-hi h3 { font-family: var(--hi); letter-spacing: 0; }

/* =========== Indian-theme running marquee =========== */
.marquee {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg,
    var(--saffron) 0%, var(--saffron) 33%,
    #ffffff 33%, #ffffff 66%,
    var(--green-in) 66%, var(--green-in) 100%);
  color: #1f2320;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .03em;
  border-bottom: 1px solid #00000018;
}
.marquee::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.85), rgba(255,255,255,.55) 50%, rgba(255,255,255,.85));
  pointer-events: none;
}
.marquee-track {
  display: flex; gap: 48px;
  white-space: nowrap;
  padding: 8px 0;
  position: relative; z-index: 1;
  animation: scroll-marquee 38s linear infinite;
  will-change: transform;
}
.marquee-track span::before { content: "✦"; color: var(--gold); margin-right: 12px; }
@keyframes scroll-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; justify-content: center; }
}

/* =========== Top bar / nav =========== */
.top {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(246,241,232,.82);
  border-bottom: 1px solid #00000010;
}
.nav {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand b { display: block; font-family: var(--serif); font-size: 1.15rem; letter-spacing: -.01em; }
.brand span { color: var(--muted); font-size: .82rem; }
.logo-text {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  color: #fff; font-family: var(--serif); font-weight: 800; font-size: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.logo-text.big { width: 64px; height: 64px; font-size: 2rem; }

.nav-right { display: flex; align-items: center; gap: 10px; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
  background: var(--panel);
}
.lang-switch a {
  padding: 7px 12px; font-weight: 700; font-size: .85rem; color: var(--muted);
}
.lang-switch a.on { background: var(--primary); color: #fff; }

.subnav {
  display: flex; gap: 6px; padding: 10px 0;
  border-top: 1px dashed #00000015;
  overflow-x: auto; scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a {
  padding: 8px 14px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line);
  font-weight: 700; font-size: .88rem; white-space: nowrap;
}
.subnav a:hover { background: var(--panel-2); }

/* =========== Main =========== */
.main-area { padding: 24px 0 60px; }

.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.head h1 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.05; margin-top: 8px; }
.head p  { max-width: 64ch; margin: 8px 0 0; color: var(--muted); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(15,107,102,.1); color: var(--primary);
  font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
body.lang-hi .badge { letter-spacing: .02em; }

/* =========== Cards =========== */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.card h2 { font-size: 1.35rem; margin-bottom: 10px; }

/* =========== Hero login =========== */
.hero-login { padding-top: 12px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: stretch; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }

.display { font-size: clamp(2rem, 5.2vw, 4rem); line-height: 1; letter-spacing: -.03em; margin: 14px 0 14px; max-width: 14ch; }
body.lang-hi .display { max-width: 22ch; line-height: 1.2; }

.orb {
  margin-top: 18px;
  display: grid; grid-template-columns: 86px 1fr; gap: 14px; align-items: center;
  padding: 14px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), #fff4df);
  box-shadow: var(--shadow-sm);
}
.wheel {
  width: 86px; height: 86px; border-radius: 50%;
  border: 1px dashed rgba(184,134,43,.5);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 2.2rem; color: var(--gold);
  background: radial-gradient(circle, rgba(15,107,102,.08) 0 24%, transparent 25%);
}

/* =========== Forms =========== */
.form-card { max-width: 560px; }
.form-card.wide { max-width: 900px; }
.grid-form { display: grid; gap: 12px; }
.row { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 680px) { .row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .92rem; }
.hint { font-size: .78rem; color: var(--muted); }

input, select, textarea {
  width: 100%; min-height: 48px;
  padding: 10px 14px;
  border-radius: 14px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text);
  font: inherit;
}
textarea { min-height: 130px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(15,107,102,.3); outline-offset: 2px; }
.time { display: grid; grid-template-columns: 1fr 96px; gap: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text);
  font-weight: 700; font-size: .95rem; cursor: pointer;
  text-decoration: none; gap: 8px; transition: background .15s, transform .05s;
}
.btn:hover { background: var(--panel-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--primary); color: #fff; border-color: transparent; }
.btn.primary:hover { background: var(--primary-2); }
.btn.ghost { background: transparent; }
.btn.danger { background: var(--danger); color: #fff; border-color: transparent; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: .82rem; }
.btn.lg { min-height: 54px; padding: 0 26px; font-size: 1.02rem; }

.note {
  padding: 14px; border-radius: var(--radius-sm);
  background: rgba(184,134,43,.10);
  border: 1px solid rgba(184,134,43,.35);
  font-size: .92rem;
}
.alert { padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 12px; font-weight: 600; }
.alert.err { background: rgba(179,41,41,.08); border: 1px solid rgba(179,41,41,.3); color: var(--danger); }
.alert.ok  { background: rgba(15,138,74,.08); border: 1px solid rgba(15,138,74,.35); color: var(--ok); }

.inline-form { display: flex; gap: 8px; margin-bottom: 12px; }
.inline-form input { max-width: 400px; }

/* =========== Admin tables =========== */
.table-wrap { overflow-x: auto; padding: 0; }
.data-table {
  width: 100%; border-collapse: collapse; font-size: .92rem;
  min-width: 800px;
}
.data-table th, .data-table td {
  padding: 10px 12px; text-align: left;
  border-bottom: 1px solid #00000010; vertical-align: middle;
}
.data-table thead th {
  background: var(--panel-2); font-weight: 800; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
  position: sticky; top: 0;
}
.data-table tbody tr:hover { background: rgba(15,107,102,.04); }
.pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 700;
}
.pill.ok  { background: rgba(15,138,74,.12); color: var(--ok); }
.pill.off { background: rgba(179,41,41,.1); color: var(--danger); }

.row-form { display: inline-flex; gap: 6px; margin-right: 4px; }
.row-form.stack { flex-direction: column; margin-top: 6px; }
.row-form.stack input { min-height: 36px; }
.row-details { display: inline-block; vertical-align: middle; margin-right: 4px; }
.row-details > summary { list-style: none; display: inline-block; }
.row-details[open] > summary { display: inline-block; }

.stat-row { display: flex; gap: 10px; flex-wrap: wrap; }
.stat {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px 14px; min-width: 110px;
  box-shadow: var(--shadow-sm);
}
.stat b { display: block; font-family: var(--serif); font-size: 1.4rem; color: var(--primary); }
.stat span { color: var(--muted); font-size: .82rem; }

/* =========== Data bank tabs =========== */
.num-tabs {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px;
}
.num-tabs a {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; background: var(--panel); border: 1px solid var(--line);
  font-family: var(--serif); font-weight: 800; font-size: 1.2rem; color: var(--text);
}
.num-tabs a.on {
  background: linear-gradient(135deg, var(--primary), var(--gold));
  color: #fff; border-color: transparent;
}

.stack { display: grid; gap: 14px; }

/* =========== Report =========== */
.report-wrap { max-width: 920px; margin-inline: auto; }
.report-actions { display: flex; gap: 10px; justify-content: flex-end; margin-bottom: 14px; flex-wrap: wrap; }

.report-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  position: relative; overflow: hidden;
}
.report-card::before {
  content: ""; position: absolute; inset: -80px auto auto -80px;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(184,134,43,.10); filter: blur(8px); z-index: 0;
}
.report-card > * { position: relative; z-index: 1; }

.report-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px dashed #00000020; }
.report-brand { display: flex; align-items: center; gap: 14px; }
.brand-name { font-family: var(--serif); font-size: 1.6rem; letter-spacing: -.02em; }
.report-meta { font-size: .92rem; text-align: right; }
.report-meta div { margin-bottom: 2px; }
@media (max-width: 640px) { .report-meta { text-align: left; } }

.disclaimer { margin: 14px 0 22px; }

.report-section { margin-top: 28px; }
.report-section h2 {
  font-size: 1.55rem; margin-bottom: 12px; color: var(--primary);
  padding-bottom: 8px; border-bottom: 2px solid var(--gold); display: inline-block;
}
.report-section h3 { font-size: 1.1rem; margin: 8px 0 10px; color: var(--gold-2); }

.core-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  margin-bottom: 18px;
}
@media (min-width: 680px) { .core-grid { grid-template-columns: repeat(5, 1fr); } }
.core {
  padding: 14px; border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--panel), #fff4df);
  border: 1px solid var(--line); text-align: center;
}
.core .num {
  font-family: var(--serif); font-weight: 800;
  font-size: 2.4rem; line-height: 1; color: var(--primary);
}
.core .lbl { font-weight: 800; font-size: .85rem; margin: 4px 0 2px; }
.core .muted { font-size: .74rem; }

.narrative { margin-top: 10px; background: var(--panel-2); padding: 14px 16px; border-radius: var(--radius-sm); border-left: 4px solid var(--gold); }
.narrative p { margin: 4px 0 0; line-height: 1.65; }

.fit-list { display: grid; gap: 10px; }
.fit-row {
  display: grid; grid-template-columns: 28px 1fr 50px;
  gap: 10px; align-items: center;
  padding: 10px 12px;
  background: var(--panel-2); border-radius: var(--radius-sm);
}
@media (min-width: 640px) {
  .fit-row { grid-template-columns: 28px 1.4fr 2fr 80px; }
}
.fit-rank {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-weight: 800; display: grid; place-items: center; font-size: .82rem;
}
.fit-name { font-weight: 700; }
.fit-bar { display: none; height: 10px; background: #00000012; border-radius: 999px; overflow: hidden; }
@media (min-width: 640px) { .fit-bar { display: block; } }
.fit-bar span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  border-radius: 999px;
}
.fit-pct { font-weight: 800; text-align: right; color: var(--primary); }

.two-col { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .two-col { grid-template-columns: 1fr 1fr; } }

.clean-list { margin: 0; padding-left: 18px; }
.clean-list li { margin-bottom: 6px; line-height: 1.55; }
.clean-list.strong li::marker { color: var(--ok); }
.clean-list.weak   li::marker { color: var(--danger); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 12px; border-radius: 999px;
  background: rgba(15,107,102,.1); color: var(--primary);
  font-weight: 700; font-size: .85rem;
}

.report-foot {
  margin-top: 28px; padding-top: 14px;
  border-top: 1px dashed #00000020; color: var(--muted);
}

/* =========== Footer =========== */
.site-foot {
  margin-top: 40px; padding: 22px 0;
  border-top: 1px solid #00000010; color: var(--muted);
  text-align: center; font-size: .86rem;
}

/* =========== Print (PDF export) =========== */
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  body { background: #fff; }
  .marquee, .top, .subnav, .site-foot,
  .no-print, .report-actions { display: none !important; }
  .main-area { padding: 0; }
  .report-wrap { max-width: 100%; }
  .report-card {
    box-shadow: none; border: none; padding: 0; background: #fff;
  }
  .report-card::before { display: none; }
  .core-grid { grid-template-columns: repeat(5, 1fr) !important; gap: 6px; }
  .two-col   { grid-template-columns: 1fr 1fr !important; gap: 10px; }
  .fit-row   { grid-template-columns: 24px 1fr 2fr 60px !important; }
  .fit-bar   { display: block !important; }
  .report-section { break-inside: avoid; page-break-inside: avoid; }
  .clean-list li { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
  .chip, .badge, .pill { border: 1px solid #aaa; background: transparent !important; color: inherit !important; }
  h1, h2, h3 { color: #1f2320 !important; }
  .report-section h2 { border-bottom-color: #999; }
}
