/* హస్త రేఖ — deep indigo & gold, mobile-first */

:root {
  --indigo: #1A237E;
  --deep: #283593;
  --violet: #5E35B1;
  --gold: #C9971C;
  --saffron: #E65100;
  --cream: #FBF7EF;
  --card: #FFFFFF;
  --ink: #26243A;
  --muted: #7A7490;
  --line: #E8E1F0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Noto Sans Telugu", "Gautami", Georgia, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
}

header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: linear-gradient(120deg, var(--indigo), var(--violet));
  color: #fff; position: sticky; top: 0; z-index: 20;
}
.brand { font-size: 20px; font-weight: 700; cursor: default; }
.auth-area { display: flex; align-items: center; gap: 8px; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }

main { max-width: 760px; margin: 0 auto; padding: 16px 12px 48px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px; margin-bottom: 16px; box-shadow: 0 2px 10px rgba(26,35,126,.06);
}
.card h2 { color: var(--indigo); font-size: 20px; margin-bottom: 10px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

.hero { text-align: center; background: linear-gradient(180deg, #F1EEFC, #FBF7EF); }
.hero h1 { color: var(--indigo); font-size: 26px; margin: 6px 0 10px; }
.om-mark { font-size: 34px; }

button {
  font-family: inherit; font-size: 15px; border: none; border-radius: 10px;
  padding: 10px 16px; cursor: pointer; background: var(--violet); color: #fff;
}
button:disabled { opacity: .45; cursor: not-allowed; }
button.ghost { background: transparent; color: inherit; border: 1px solid currentColor; }
button.gold { background: var(--gold); color: #2B1B00; font-weight: 700; }
button.small { padding: 6px 12px; font-size: 13px; }
button.big-btn { width: 100%; padding: 14px; font-size: 17px; margin-top: 8px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

input {
  font-family: inherit; font-size: 15px; padding: 10px 12px; width: 100%;
  border: 1px solid var(--line); border-radius: 10px; margin: 6px 0; background: #fff;
}
.muted { color: var(--muted); font-size: 13px; }
.error { color: #B3261E; font-size: 14px; min-height: 1em; margin-top: 6px; }
.small-note { margin-top: 10px; text-align: center; }

/* Upload */
.hand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.hand-slot { text-align: center; }
.hand-label { font-size: 13px; color: var(--muted); display: block; margin-bottom: 6px; }
.hand-preview {
  aspect-ratio: 3/4; border: 2px dashed var(--line); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 44px;
  margin-bottom: 8px; background: #FAF8FF; overflow: hidden;
}
.hand-preview img { width: 100%; height: 100%; object-fit: cover; }
.hand-preview.filled { border-style: solid; border-color: var(--gold); }

/* Reading */
.pending-note { font-size: 17px; color: var(--saffron); padding: 14px 0; }
.spin { display: inline-block; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.25); } }
.sig-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.sig-item {
  background: #F1EEFC; border-left: 4px solid var(--violet);
  border-radius: 8px; padding: 8px 12px; font-size: 14px;
}
.teaser-text {
  font-size: 17px; color: var(--indigo); white-space: pre-line;
  border-left: 4px solid var(--gold); padding: 10px 14px; margin: 10px 0;
  font-weight: 600; background: #FFFDF6;
}

/* Report offer */
.report-offer { border: 2px solid var(--gold); border-radius: 12px; padding: 16px; margin-top: 14px; background: linear-gradient(180deg,#FFFDF6,#FBF7EF); }
.report-offer h3 { color: var(--indigo); margin-bottom: 6px; }
.price-line { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 10px; }
.price { font-size: 32px; font-weight: 800; color: var(--indigo); }
.benefit-list { list-style: none; margin: 8px 0; max-height: 190px; overflow-y: auto; }
.benefit-list li { padding: 3px 0; font-size: 14px; }

/* Report reader */
.report-progress { display: flex; align-items: center; gap: 10px; margin: 8px 0 14px; }
.bar { flex: 1; height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--violet), var(--gold)); transition: width .6s; }
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 14px; }
.subtab {
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px; font-size: 13px;
}
.subtab.active { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.subtab:disabled { opacity: .4; }
.chapter-body { font-size: 16px; white-space: pre-wrap; }
.chapter-body h3 { color: var(--indigo); margin: 14px 0 8px; }

/* History */
.archive-list { display: flex; flex-direction: column; gap: 8px; }
.archive-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.archive-item .muted { display: block; }

/* How it works */
.routine { display: flex; flex-direction: column; gap: 8px; }
.routine-item {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.ri-icon { font-size: 22px; line-height: 1.4; }
.routine-item p { font-size: 14px; color: var(--ink); }

/* Disclaimer */
.disclaimer { background: #FDF3F3; border-color: #F2D7D7; }
.disclaimer h3 { color: #8C2F39; margin-bottom: 6px; }
.disclaimer p { font-size: 14px; }

/* Modal */
.modal {
  position: fixed; inset: 0; background: rgba(20,15,50,.55);
  display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px;
}
.modal[hidden] { display: none; }
.modal-box { max-width: 380px; width: 100%; text-align: center; position: relative; }
.modal-close {
  position: absolute; top: 8px; right: 8px; background: transparent;
  color: var(--muted); font-size: 16px; padding: 6px;
}
.google-wrap { display: flex; justify-content: center; margin: 10px 0; }
.divider {
  display: flex; align-items: center; gap: 10px; color: var(--muted);
  font-size: 12px; margin: 10px 0;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

footer { text-align: center; padding: 20px; color: var(--muted); font-size: 13px; }
footer a { color: var(--violet); }

@media (max-width: 520px) {
  .hero h1 { font-size: 22px; }
  .price { font-size: 26px; }
}
