/* DigiKundali. Mobile first. Night indigo, temple gold, ivory. */

:root {
  --ink: #14110e;
  --night: #12151f;
  --ivory: #f4efe6;
  --paper: #fbf7f1;
  --card: #fffdf9;
  --gold: #b6893f;
  --gold-2: #e4c27a;
  --saffron: #c24e2a;
  --maroon: #7c2f38;
  --muted: #6d645b;
  --line: rgba(182, 137, 63, 0.32);
  --shadow: 0 12px 32px rgba(20, 17, 14, 0.08);
  --radius: 18px;
  --max: 760px;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: 16px; }

.wrap { width: min(var(--max), calc(100% - 28px)); margin: 0 auto; }
.kicker {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 560;
  color: var(--gold);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 12vw, 68px); line-height: 0.92; margin: 8px 0 12px; }
h2 { font-size: clamp(30px, 8vw, 46px); line-height: 1; margin: 6px 0 10px; }
h3 { font-size: 24px; line-height: 1.15; margin: 0 0 8px; }

.topbar {
  background: var(--night);
  color: #efe6d6;
  font-size: 13px;
  text-align: center;
  padding: 8px 12px;
}
.topbar strong { color: var(--gold-2); font-weight: 560; }

header.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 239, 230, 0.94);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 8px 0; }
.brand { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.brand span { font-family: var(--serif); font-size: 24px; }


.mark {
  background: rgba(198, 189, 176, 0.94);
  border-radius: 50%;
  padding: 6px;
  width: 80px;
  height: 80px;
  box-shadow: 0 0 0 1px var(--gold);
}

.nav-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 14px; font-size: 14px; }
.nav-links a { padding: 6px 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--saffron);
  color: #fffaf4;
  font-weight: 560;
}
.btn.gold { background: linear-gradient(180deg, #e7c98a, #b6893f); color: #2a2114; margin-top: 0.5lh; margin-bottom: 0.5lh;}
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); margin-top: 0.5lh; margin-bottom: 0.5lh;}
.btn.small { min-height: 40px; padding: 8px 12px; font-size: 14px; margin-top: 0.5lh; margin-bottom: 0.5lh;}
a.btn:not(.gold):not(.ghost) {
  width: 9rem;
  height: 40px;
  min-height: 40px;
  padding: 8px 12px;
  font-size: 14px;
  flex: 0 0 6.5rem;
  white-space: nowrap;
}

.hero {
  background:
    radial-gradient(420px 220px at 90% 0%, rgba(228, 194, 122, 0.18), transparent 60%),
    linear-gradient(180deg, #171b28 0%, #12151f 80%);
  color: #f7f1e7;
  padding: 36px 0 32px;
}
.hero p { color: #d9d0c3; margin: 0; }
.hero-actions { display: flex; margin: 18px 0 14px; }
.hero-actions .btn { width: 100%; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; flex: 0 0 10rem; margin-top: 0.5lh; margin-bottom: 0.5lh;}

.pill { border: 1px solid rgba(228, 194, 122, 0.35); border-radius: 999px; padding: 6px 10px; font-size: 13px; color: #efe4cf; }


.trust { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border-bottom: 1px solid var(--line); }
.trust div { padding: 14px 8px; text-align: center; }
.trust strong { display: block; font-family: var(--serif); font-size: 22px; font-weight: 560; }
.trust span { color: var(--muted); font-size: 13px; }

section { padding: 36px 0; }
.section-head { margin-bottom: 16px; }
.section-head p { color: var(--muted); margin: 0 0 8px; }
.band {
  background: var(--night);
  color: #f6efe4;
  border-radius: 22px;
  padding: 20px;
}
.band p { color: #d8cec0; }
.checklist { list-style: none; padding: 0; margin: 12px 0 0; }
.checklist li { padding: 7px 0 7px 22px; position: relative; }
.checklist li:before { content: "✦"; position: absolute; left: 0; color: var(--gold-2); }

#category-filter, #report-pick {
  display: block;
  width: 100%;
  min-height: 46px;
  margin: 6px 0 12px;
  background: #fffdf9;
}
.catalog { display: grid; gap: 12px; }
.report {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.report[hidden], .report-detail[hidden], .person[hidden], .suggest-list[hidden] { display: none !important; }
.cat-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e4c27a;
}
.report .tag { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--maroon); }
.report p { margin: 0; color: #4d453d; }
.price-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.price { font-family: var(--serif); font-size: 30px; margin-right: auto; }

.detail-band, .buy-band { display: block; }
.prose1 h2 { color: var(--gold-2); font-size: clamp(26px, 7vw, 36px); margin: 16px 0 8px; }
.prose1 p, .prose1 li { color: #fff; }
.prose1 ul { margin: 0 0 12px; padding-left: 18px; }
.detail-actions { display: flex; gap: 8px; margin-top: 16px; }

.detail-actions .btn { flex: 1; margin-top: 0; margin-bottom: 0; align-self: center; }

label { display: block; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; margin: 12px 0 6px; color: #4a433c; }
.buy-band label, .buy-band h3 { color: #e7d7b4; }
input, select, textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 12px;
}
textarea { min-height: 120px; resize: vertical; }
.buy-band input, .buy-band select, .buy-band textarea { border-color: rgba(228, 194, 122, 0.35); }
.help, .buy-band .help { color: #cbbfaa; font-size: 13px; margin: 6px 0 0; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; text-transform: none; letter-spacing: 0; font-size: 15px; color: #f6efe4; }
.check input { width: 22px; min-height: 22px; margin-top: 2px; }
.buy-band .btn { width: 100%; }
.person { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 6px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.errorlist { color: #c24e2a; margin: 4px 0 0; padding-left: 16px; font-size: 14px; }
.suggest { position: relative; }
.suggest-list {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.suggest-list button {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px;
}

.steps { display: grid; gap: 12px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.num { font-family: var(--serif); color: var(--gold); font-size: 26px; }

footer {
  margin-top: auto;
  background: #0e1118;
  color: #d9d0c3;
  padding: 32px 0 20px;
  font-size: 14px;
}
.foot-grid { display: grid; gap: 18px; }
footer a { color: #e7d7b4; }
.legal { margin-top: 18px; color: #9c9388; font-size: 12px; }

.page {
  flex: 1 0 auto;
  padding: 24px 0 48px;
}
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
.panel h1 { font-size: clamp(32px, 9vw, 52px); }
.notice { background: #f8f1e4; border-radius: 12px; padding: 12px; font-size: 14px; }
.account-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.account-nav a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; font-size: 14px; }
.account-nav a.on { background: var(--night); color: #f6efe4; }

@media (min-width: 800px) {
  .wrap { width: min(1100px, calc(100% - 40px)); }
  .hero { padding: 64px 0; }
  .hero-actions .btn, .buy-band .btn, .detail-actions .btn { width: auto; flex: 0 0 auto; }
  .trust { grid-template-columns: repeat(4, 1fr); }
  section { padding: 64px 0; }
  .band { padding: 32px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; }
}

/* Birth-date spinner — Year | Month | Date on one line */
.date-spinner {
  display: flex;
  gap: 8px;
  align-items: stretch;
  width: 100%;
  margin: 6px 0 4px;
}
.spinner {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}
.spin-up,
.spin-down {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--gold);
  font-size: 18px;
  line-height: 1;
  padding: 8px 0;
  cursor: pointer;
  touch-action: none;
}
.spin-up:active,
.spin-down:active {
  background: rgba(182, 137, 63, 0.18);
  color: var(--night);
}
.spin-value {
  font-family: var(--serif);
  font-size: clamp(22px, 6vw, 30px);
  font-weight: 500;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.spin-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 2px 0 8px;
}
.buy-band .date-spinner .spinner {
  border-color: rgba(228, 194, 122, 0.35);
}

/* Time spinner — Hours | Minutes | AM/PM */
.time-spinner {
  display: flex;
  gap: 8px;
  align-items: stretch;
  width: 100%;
  margin: 6px 0 4px;
}
.time-spinner .spinner {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}
.buy-band .time-spinner .spinner {
  border-color: rgba(228, 194, 122, 0.35);
}
/* Re-uses the existing .spin-up, .spin-down, .spin-value, .spin-label rules */

/* Confirmation / status pages — no forced height */
.panel.confirm {
  min-height: auto;
  padding: 32px 20px;
  margin: 24px auto;
  max-width: 640px;
}