/* ══════════════════════════════════════════════════
   पैशाचं झाड — आर्थिक कुंडली (Financial Kundali quiz)
   Loads with site.css; uses the shared tokens from
   assets/css/shared.css (sage/cream palette, fonts)
   plus a cosmic night accent for the kundali vibe.
   ══════════════════════════════════════════════════ */

#checkup-wrap {
  position: fixed; inset: 0; z-index: 2000;
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--accent-bg) 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 110%, var(--beige) 0%, transparent 55%),
    var(--bg);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.ck-inner { min-height: 100%; display: flex; flex-direction: column; max-width: 720px; margin: 0 auto; padding: 0 18px 40px; }

/* ── top bar ── */
.ck-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 10px; }
.ck-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: var(--text-base); color: var(--text); }
.ck-brand img { width: 26px; height: auto; }
.ck-top-right { display: flex; gap: 8px; align-items: center; }
.ck-lang {
  border: 1px solid var(--border); background: white; border-radius: var(--radius-pill);
  padding: 7px 14px; font-size: var(--text-xs); font-weight: 700; color: var(--muted);
  cursor: pointer; font-family: var(--font-mr);
  display: inline-flex; align-items: center; min-height: 44px;
}
.ck-lang:hover { border-color: var(--accent); color: var(--accent-text); }
.ck-close {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
  background: white; font-size: var(--text-sm); cursor: pointer; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
}
.ck-close:hover { background: var(--border); }

/* ── progress ── */
.ck-progress { height: 7px; background: #EAE5D8; border-radius: var(--radius-sm); overflow: hidden; }
.ck-progress-fill { height: 100%; background: #E0B84C; border-radius: var(--radius-sm); transition: width .45s cubic-bezier(.5,1.4,.4,1); }
.ck-qcount { font-size: var(--text-2xs); font-weight: 700; color: var(--muted); letter-spacing: .06em; margin-top: 6px; text-align: right; font-family: var(--font-en); }

/* ── screen card ── */
.ck-stage-area { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding-top: 14px; }
.ck-card {
  width: 100%; background: white; border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 26px 26px 30px; box-shadow: 0 18px 50px rgba(var(--shadow-rgb),.08);
  animation: ckIn .3s ease; position: relative; overflow: hidden;
}
@keyframes ckIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.ck-card h1 { font-size: clamp(24px, 4.5vw, 34px); font-weight: 700; line-height: 1.3; color: var(--text); margin: 14px 0 12px; }
.ck-card h1 em { color: var(--accent-text); font-style: normal; }
.ck-card h2 { font-size: clamp(19px, 3.4vw, 24px); font-weight: 700; line-height: 1.45; color: var(--text); margin: 6px 0 10px; }
.ck-sub { font-size: var(--text-sm); color: var(--muted); line-height: 1.65; margin-bottom: 12px; }

/* ── cosmic band + starfield ── */
.ck-cosmic-band {
  position: relative; margin: -26px -26px 18px; padding: 26px 26px 22px;
  background: linear-gradient(160deg, #221E33 0%, #2E2847 70%, #3A3157 100%);
  overflow: hidden;
}
.ck-stars, .ck-stars::before, .ck-stars::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 24%, rgba(255,255,255,.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 34% 68%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1.7px 1.7px at 58% 18%, rgba(255,255,255,.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 73% 52%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 88% 30%, rgba(255,255,255,.85) 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 84%, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 46% 40%, rgba(255,255,255,.75) 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 76%, rgba(255,255,255,.6) 50%, transparent 51%);
}
.ck-stars::before { transform: translate(30px, 12px) scale(1.15); opacity: .6; }
.ck-stars::after  { transform: translate(-24px, 24px) scale(.9);  opacity: .45; }

/* ── the forming-kundali orbit visual ── */
.ck-orbit { width: 128px; margin: 0 auto 4px; position: relative; }
.ck-orbit svg { width: 100%; display: block; }
.ck-orbit-hero { width: 168px; }
.ck-orbit-spin svg { animation: ckSpin 7s linear infinite; transform-origin: 50% 50%; }
@keyframes ckSpin { to { transform: rotate(360deg); } }
.ck-orbdot { fill: #E0B84C; opacity: 0; transform-origin: center; transition: opacity .4s ease; transition-delay: var(--d, 0ms); }
.ck-orbdot.on { opacity: 1; }
.ck-card > .ck-orbit svg circle[stroke] { stroke: #D8D2C2; } /* rings on light cards */
.ck-card > .ck-orbit .ck-orbdot { fill: var(--accent); }
.ck-card > .ck-orbit .ck-orbdot.on { opacity: 1; }

/* sparkle micro-reward on answering */
.ck-leaf {
  position: absolute; left: 50%; top: 45%; font-size: 26px; pointer-events: none;
  animation: ckLeaf .8s ease forwards; z-index: 5;
}
@keyframes ckLeaf { from { opacity: 1; transform: translate(-50%, 0) rotate(0); } to { opacity: 0; transform: translate(-10%, -90px) rotate(60deg); } }

/* ── welcome ── */
.ck-welcome { text-align: center; }
.ck-welcome p { font-size: var(--text-sm); color: var(--muted); line-height: 1.7; max-width: 460px; margin: 0 auto 14px; }
.ck-privacy {
  display: inline-block; background: var(--accent-bg); color: var(--accent-text);
  font-size: var(--text-xs); font-weight: 600; border-radius: var(--r); padding: 9px 16px; margin-bottom: 18px;
  line-height: 1.55; max-width: 440px;
}

/* ── buttons ── */
.ck-btn-big {
  display: block; width: 100%; padding: 15px 20px; margin-top: 14px;
  background: var(--text); color: white; border: none; border-radius: var(--r);
  font-size: var(--text-base); font-weight: 700; font-family: var(--font-mr); cursor: pointer;
  transition: transform .15s, background .2s;
}
.ck-btn-big:hover { background: #2a2a2a; transform: translateY(-1px); }
.ck-btn-ghost {
  display: block; width: 100%; padding: 13px 20px; margin-top: 10px;
  background: white; color: var(--text); border: 1px solid var(--border); border-radius: var(--r);
  font-size: var(--text-sm); font-weight: 700; font-family: var(--font-mr); cursor: pointer; transition: border-color .2s;
}
.ck-btn-ghost:hover { border-color: var(--text); }
.ck-btn-text {
  display: block; width: 100%; text-align: center; margin-top: 6px; padding: 13px 10px;
  background: none; border: none; color: var(--muted); font-size: var(--text-xs); font-weight: 600;
  font-family: var(--font-mr); cursor: pointer;
}
.ck-btn-text:hover { color: var(--text); text-decoration: underline; }
.ck-back {
  background: none; border: none; color: var(--muted); font-size: var(--text-xs); font-weight: 600;
  font-family: var(--font-mr); cursor: pointer; margin-top: 14px; padding: 13px 0;
  display: inline-flex; align-items: center;
}
.ck-back:hover { color: var(--text); }

/* ── info (ℹ️ learn-more) ── */
.ck-info-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  background: var(--accent-bg); border: 1px solid rgba(81,122,75,.25); border-radius: var(--radius-pill);
  padding: 7px 14px; font-size: var(--text-xs); font-weight: 700; color: var(--accent-text);
  font-family: var(--font-mr); cursor: pointer; margin-bottom: 12px;
}
.ck-info-btn.on, .ck-info-btn:hover { background: #E4EFE1; }
.ck-info {
  background: var(--bg); border: 1px dashed var(--accent); border-radius: var(--r);
  padding: 12px 15px; font-size: var(--text-xs); color: var(--muted); line-height: 1.7; margin-bottom: 14px;
  animation: ckIn .25s ease;
}

/* ── inputs ── */
.ck-lbl { display: block; font-size: var(--text-xs); font-weight: 600; color: var(--text); margin: 14px 0 7px; }
.ck-text {
  width: 100%; height: 48px; border: 1px solid var(--border); border-radius: var(--r);
  padding: 0 14px; font-size: var(--text-base); font-family: var(--font-mr); outline: none; background: white;
}
.ck-text:focus { border-color: var(--accent); }
.ck-text.ck-field-bad { border-color: var(--err-text); }
.ck-field-err { color: var(--err-text); font-size: var(--text-xs); font-weight: 600; margin: 6px 0 0; }

.ck-slider-val {
  text-align: center; font-size: clamp(28px, 6vw, 40px); font-weight: 700;
  color: var(--accent-text); font-family: var(--font-en); margin: 10px 0 4px;
  font-variant-numeric: tabular-nums;
}
.ck-range { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; cursor: pointer; margin: 2px 0; }
.ck-range::-webkit-slider-runnable-track { height: 10px; border-radius: var(--radius-sm); background: #E0B84C; }
.ck-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%;
  background: white; border: 4px solid #E0B84C; margin-top: -10px;
  box-shadow: 0 3px 10px rgba(var(--shadow-rgb),.25); transition: transform .12s;
}
.ck-range:active::-webkit-slider-thumb { transform: scale(1.15); }
.ck-range::-moz-range-track { height: 10px; border-radius: var(--radius-sm); background: #E0B84C; }
.ck-range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: white; border: 4px solid #E0B84C; box-shadow: 0 3px 10px rgba(var(--shadow-rgb),.25); }
.ck-range:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: var(--radius-sm); }
.ck-range-ends { display: flex; justify-content: space-between; font-size: var(--text-2xs); color: var(--muted); font-family: var(--font-en); margin-top: -2px; }
.ck-live {
  margin-top: 12px; background: var(--accent-bg); border-radius: var(--r); padding: 10px 14px;
  font-size: var(--text-sm); color: var(--accent-text); text-align: center; min-height: 20px;
}

/* ── MCQ options ── */
.ck-opts { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.ck-opt {
  display: flex; align-items: center; gap: 13px; text-align: left; width: 100%;
  background: white; border: 1.5px solid var(--border); border-radius: var(--r);
  padding: 14px 16px; font-size: var(--text-sm); font-weight: 600; color: var(--text);
  font-family: var(--font-mr); cursor: pointer; line-height: 1.5;
  transition: border-color .15s, background .15s, transform .12s;
}
.ck-opt:hover { border-color: var(--accent); transform: translateY(-1px); }
.ck-opt.on { border-color: var(--accent); background: var(--accent-bg); }
.ck-opt-e { font-size: 24px; flex-shrink: 0; }

/* ── the three doors ── */
.ck-doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 10px; }
.ck-door {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  background: linear-gradient(180deg, #FDFCF8 0%, #F4EFE3 100%);
  border: 1.5px solid var(--border); border-radius: var(--r) 16px 12px 12px;
  padding: 18px 12px 16px; cursor: pointer; font-family: var(--font-mr);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.ck-door:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(var(--shadow-rgb),.12); }
.ck-door.on { border-color: var(--accent); background: var(--accent-bg); }
.ck-door-frame { font-size: 44px; line-height: 1; }
.ck-door-letter {
  width: 28px; height: 28px; border-radius: 50%; background: var(--text); color: white;
  font-size: var(--text-sm); font-weight: 700; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en);
}
.ck-door-t { font-size: var(--text-xs); font-weight: 600; color: var(--text); line-height: 1.5; }

/* ── fact interstitial ── */
.ck-fact { text-align: center; }
.ck-fact .ck-sub { max-width: 460px; margin: 0 auto 8px; }
.ck-fact-tag {
  display: inline-block; background: var(--beige); color: #7A5610;
  font-size: var(--text-2xs); font-weight: 700; letter-spacing: .05em; border-radius: var(--radius-pill);
  padding: 6px 14px; margin-bottom: 8px;
}
.ck-tag-dark { background: rgba(224,184,76,.18); color: #E0B84C; position: relative; }

/* ── building ── */
.ck-building { text-align: center; padding-bottom: 44px; }
.ck-building h2 { margin-top: 18px; }
.ck-dots { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.ck-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: ckDot 1s infinite ease-in-out; }
.ck-dots span:nth-child(2) { animation-delay: .18s; }
.ck-dots span:nth-child(3) { animation-delay: .36s; }
@keyframes ckDot { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-8px); opacity: 1; } }

/* ── report ── */
.ck-report { --ck-report-pad-b: 26px; padding-bottom: var(--ck-report-pad-b); }
.ck-shared-note {
  background: var(--beige); border: 1px solid #E3D6B8; color: #6B5A2E;
  border-radius: var(--r); padding: 10px 14px; font-size: var(--text-xs); margin: -6px 0 16px; text-align: center;
}
.ck-report-band { text-align: center; border-radius: 0; }
.ck-report-name { color: white !important; margin-top: 4px !important; position: relative; }
.ck-planet-duo { display: flex; align-items: flex-end; justify-content: center; gap: 18px; margin: 8px 0 4px; position: relative; }
.ck-planet-main, .ck-planet-sup { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ck-planet-main span, .ck-planet-sup span { color: rgba(255,255,255,.9); font-size: var(--text-xs); font-weight: 700; }
.ck-planet-sup span { font-size: var(--text-2xs); font-weight: 600; opacity: .85; }
.ck-planet-line { color: rgba(255,255,255,.85); font-size: var(--text-sm); line-height: 1.6; position: relative; max-width: 460px; margin: 6px auto 0; }
.ck-planet-line b { color: #E0B84C; }

.ck-persona-desc { padding: 4px 2px 0; margin-bottom: 16px; }
.ck-persona-desc p { font-size: var(--text-sm); color: var(--text); line-height: 1.7; margin: 0 0 8px; }
.ck-persona-desc .ck-sup-desc { font-size: var(--text-xs); color: var(--muted); }

.ck-bhakit {
  background: linear-gradient(160deg, #FBF6E8 0%, #F6EEDA 100%);
  border: 1px solid #E9DCBB; border-radius: var(--r); padding: 16px 18px; margin-bottom: 18px;
}
.ck-bhakit-line { font-size: var(--text-sm); color: #5C4A1E; line-height: 1.7; font-style: italic; margin: 8px 0; }
.ck-bhakit-note { font-size: var(--text-2xs); color: #6E561E; }

.ck-steps-title { font-size: var(--text-base); font-weight: 700; color: var(--text); margin-bottom: 10px; }

.ck-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ck-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: #F0EDE4; color: #706A60; border: 1px solid #E3DFD2;
  border-radius: var(--radius-pill); padding: 8px 14px; font-size: var(--text-xs); font-weight: 600; line-height: 1.4;
}
.ck-tag.on { background: var(--accent-bg); color: var(--accent-text); border-color: rgba(81,122,75,.35); }
.ck-tag.on.gold { background: #F7EFD8; color: #7A5610; border-color: #E3D6A8; }
.ck-tags-hint { font-size: var(--text-2xs); color: var(--muted); margin: 8px 0 18px; }

.ck-steps { margin-bottom: 16px; }
.ck-step { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--border); border-radius: var(--r); padding: 13px 15px; margin-bottom: 8px; }
.ck-step-n {
  width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: white;
  font-size: var(--text-xs); font-weight: 700; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-family: var(--font-en);
}
.ck-step p { font-size: var(--text-sm); color: var(--text); line-height: 1.55; margin: 0 0 6px; }
.ck-step-act {
  background: none; border: none; padding: 12px 0 0; font-size: var(--text-xs); font-weight: 700;
  color: var(--accent-text); font-family: var(--font-mr); cursor: pointer;
  display: inline-flex; align-items: center; min-height: 44px;
}
.ck-step-act:hover { text-decoration: underline; }

.ck-explain { border: 1px solid var(--border); border-radius: var(--r); padding: 0; margin-bottom: 16px; background: var(--bg); }
.ck-explain summary {
  list-style: none; cursor: pointer; padding: 13px 16px; font-size: var(--text-sm); font-weight: 700; color: var(--text);
}
.ck-explain summary::-webkit-details-marker { display: none; }
.ck-explain ul { padding: 0 18px 14px 34px; margin: 0; }
.ck-explain li { font-size: var(--text-xs); color: var(--muted); line-height: 1.7; margin-bottom: 8px; }
.ck-explain b { color: var(--text); }

.ck-actions { display: flex; flex-direction: column; margin-bottom: 4px; }

.ck-cta {
  display: flex; align-items: center; gap: 14px; background: var(--text); color: white;
  border-radius: var(--r); padding: 16px 18px; margin: 4px 0 10px; text-decoration: none;
  transition: transform .15s;
}
.ck-cta:hover { transform: translateY(-1px); }
.ck-cta span:first-child { font-size: 26px; }
.ck-cta b { font-size: var(--text-sm); display: block; margin-bottom: 2px; }
.ck-cta p { font-size: var(--text-xs); opacity: .8; margin: 0; }
.ck-cta-arrow { margin-left: auto; font-size: var(--text-lg); }

.ck-disclaimer { font-size: var(--text-2xs); color: var(--muted); text-align: center; line-height: 1.6; margin-top: 14px; }
.ck-disclaimer a { color: var(--accent-text); text-decoration: underline; }

/* ── entry cards on the normal site ── */
.checkup-hero {
  display: flex; gap: 20px; align-items: center;
  background: linear-gradient(115deg, #221E33 0%, #3A3157 55%, #3D3259 100%);
  border: 1.5px solid #3A3157; border-radius: var(--r);
  padding: 24px 26px; margin-bottom: 30px; cursor: pointer;
  transition: transform .2s, box-shadow .2s; text-decoration: none; position: relative; overflow: hidden;
}
.checkup-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 15% 30%, rgba(255,255,255,.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 65% 20%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 85% 60%, rgba(255,255,255,.5) 50%, transparent 51%);
}
.checkup-hero:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(34,30,51,.35); }
.ch-hero-art { font-size: 54px; flex-shrink: 0; position: relative; z-index: 1; }
.checkup-hero > div:last-child { position: relative; z-index: 1; }
.ch-hero-tag {
  display: inline-block; background: #E0B84C; color: #221E33; font-size: var(--text-2xs);
  font-weight: 700; letter-spacing: .07em; border-radius: var(--radius-xl); padding: 4px 11px; margin-bottom: 8px;
}
.ch-hero-title { font-size: clamp(17px, 2.6vw, 22px); font-weight: 700; color: white; margin-bottom: 6px; }
.checkup-hero p { font-size: var(--text-sm); color: rgba(255,255,255,.75); line-height: 1.6; margin: 0 0 10px; }
.ch-hero-btn { font-size: var(--text-sm); font-weight: 700; color: #E0B84C; }

.checkup-promo {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  background: #221E33; color: white; padding: 18px 6%; text-align: center;
}
.checkup-promo b { font-size: var(--text-base); }
.checkup-promo .ch-promo-btn {
  background: #E0B84C; color: #221E33; border: none; border-radius: var(--radius-pill);
  padding: 13px 22px; font-size: var(--text-sm); font-weight: 700; font-family: var(--font-mr);
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
  min-height: 44px;
}
.checkup-promo .ch-promo-btn:hover { background: #EBC768; }

/* ── mobile ── */
@media (max-width: 700px) {
  .ck-inner { padding: 0 12px 30px; }
  .ck-card { padding: 20px 18px 24px; border-radius: var(--radius-xl); }
  .ck-cosmic-band { margin: -20px -18px 16px; padding: 20px 18px 18px; }
  .ck-orbit { width: 104px; }
  .ck-orbit-hero { width: 140px; }
  .ck-doors { grid-template-columns: 1fr; }
  .ck-door { flex-direction: row; text-align: left; padding: 12px 14px; }
  .ck-door-frame { font-size: 32px; }
  .ck-door-t { flex: 1; }
  .checkup-hero { flex-direction: column; text-align: center; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .ck-card, .ck-leaf, .ck-orbit-spin svg { animation: none !important; }
}
