/* TestingVim engine: landing, results, cards, dashboard, plans. Uses theme tokens when present. */
.tv-landing, .tv-result, .tv-dash, .tv-plans {
  --tv-ink: var(--tvt-ink, #16202f); --tv-muted: var(--tvt-muted, #5a6577); --tv-line: var(--tvt-line, #dfe3ea);
  --tv-brand: var(--tvt-navy, #14284b); --tv-accent: var(--tvt-saffron, #ff7a1a); --tv-ok: #2f9e44; --tv-bad: #e5484d;
  color: var(--tv-ink);
}
.tv-btn { display: inline-block; padding: 11px 20px; border-radius: 10px; border: 1.5px solid var(--tv-line, #dfe3ea); background: #fff; color: var(--tv-ink, #16202f); font-weight: 600; text-decoration: none; cursor: pointer; }
.tv-btn:hover { border-color: var(--tv-brand, #14284b); }
.tv-btn-primary { background: var(--tv-accent, #ff7a1a); border-color: var(--tv-accent, #ff7a1a); color: #fff; }
.tv-btn-primary:hover { background: #ec6400; border-color: #ec6400; color: #fff; }
.tv-note { color: var(--tv-muted, #5a6577); font-size: 14px; }
.tv-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }

.tv-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 0 0 20px; }
.tv-facts > div { background: #f5f7fb; border: 1px solid var(--tv-line); border-radius: 12px; padding: 14px; font-size: 13px; color: var(--tv-muted); }
.tv-facts span { display: block; font-size: 22px; font-weight: 700; color: var(--tv-ink); line-height: 1.2; }
.tv-facts .ok span { color: var(--tv-ok); }
.tv-facts .bad span { color: var(--tv-bad); }

.tv-table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 14px; }
.tv-table th, .tv-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--tv-line); }
.tv-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--tv-muted); }
.tv-instructions { background: #fff8f0; border-left: 4px solid var(--tv-accent); padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; }
.tv-bar { display: inline-block; width: 90px; height: 8px; background: #edf0f5; border-radius: 6px; vertical-align: middle; overflow: hidden; }
.tv-bar i { display: block; height: 100%; background: var(--tv-ok); }

/* Results */
.tv-score-hero { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.tv-score-hero > div { border-radius: 14px; padding: 18px 20px; background: #f5f7fb; border: 1px solid var(--tv-line); }
.tv-score-main { background: var(--tv-brand) !important; color: #fff; border: 0 !important; }
.tv-score-hero strong { font-size: 40px; line-height: 1.1; }
.tv-score-hero em { font-style: normal; opacity: .7; margin-left: 4px; font-size: 18px; }
.tv-score-hero small { display: block; font-size: 12px; opacity: .75; margin-top: 4px; }
.tv-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .75; margin-bottom: 4px; }
.tv-sol-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.tv-sol-head h2 { margin: 0 auto 0 0; }
.tv-filters { display: inline-flex; border: 1px solid var(--tv-line); border-radius: 10px; overflow: hidden; }
.tv-filters button { border: 0; background: #fff; padding: 7px 12px; cursor: pointer; font: inherit; font-size: 13px; color: var(--tv-muted); }
.tv-filters button.is-on { background: var(--tv-brand); color: #fff; }
.tv-solutions { list-style: none; padding: 0; margin: 16px 0; }
.tv-sol { border: 1px solid var(--tv-line); border-left-width: 4px; border-radius: 10px; padding: 14px 18px; margin-bottom: 12px; background: #fff; }
.tv-sol.is-correct { border-left-color: var(--tv-ok); }
.tv-sol.is-wrong { border-left-color: var(--tv-bad); }
.tv-sol.is-partial { border-left-color: #e0a100; }
.tv-sol-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; color: var(--tv-muted); margin-bottom: 8px; }
.tv-qno { font-weight: 700; color: var(--tv-ink); }
.tv-pill { padding: 2px 8px; border-radius: 20px; font-weight: 600; font-size: 12px; background: #edf0f5; }
.tv-pill.is-correct { background: #e6f4ea; color: var(--tv-ok); }
.tv-pill.is-wrong { background: #fdecec; color: var(--tv-bad); }
.tv-pill.is-partial { background: #fff4e0; color: #9a5b00; }
.lang-en .only-hi, .lang-hi .only-en { display: none; }
.only-hi { font-family: "Noto Sans Devanagari", sans-serif; }
.tv-opts { margin: 8px 0; padding-left: 24px; }
.tv-opts li { padding: 4px 8px; border-radius: 6px; margin-bottom: 2px; }
.tv-opts li.is-right { background: #e6f4ea; font-weight: 600; }
.tv-opts li.is-picked-wrong { background: #fdecec; }
.tv-explain { background: #f5f7fb; border-radius: 8px; padding: 10px 14px; font-size: 14px; }

/* Cards */
.tv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.tv-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--tv-line, #dfe3ea); border-radius: 14px; background: #fff; text-decoration: none; color: var(--tvt-ink, #16202f); transition: transform .15s, box-shadow .15s; }
.tv-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20,40,75,.08); }
.tv-card h3 { margin: 0; font-size: 17px; line-height: 1.35; }
.tv-card-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.tv-card-exam { color: var(--tvt-muted, #5a6577); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.tv-card-meta { margin: 0; font-size: 13px; color: var(--tvt-muted, #5a6577); }
.tv-card-go { margin-top: auto; font-weight: 700; color: var(--tvt-saffron, #ff7a1a); font-size: 14px; }
.tv-badge { padding: 3px 9px; border-radius: 20px; background: #eef1f7; font-weight: 700; color: var(--tvt-navy, #14284b); }
.tv-badge.is-free { background: #e6f4ea; color: #2f9e44; }

/* Dashboard + plans */
.tv-pass-status { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-radius: 14px; background: #f5f7fb; border: 1px solid var(--tv-line); margin-bottom: 20px; }
.tv-pass-status.is-active { background: #eef8f0; border-color: #c6e6cd; }
.tv-plan-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tv-plan { border: 1.5px solid var(--tv-line); border-radius: 16px; padding: 24px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.tv-plan h3 { margin: 0; }
.tv-plan.is-best { border-color: var(--tv-accent); box-shadow: 0 12px 30px rgba(255,122,26,.12); }
.tv-price { font-size: 30px; font-weight: 800; }
.tv-price small { font-size: 14px; font-weight: 500; color: var(--tv-muted); }
.tv-plan .tv-btn { margin-top: auto; text-align: center; }

@media (max-width: 700px) {
  .tv-score-hero { grid-template-columns: 1fr 1fr; }
  .tv-score-main { grid-column: 1 / -1; }
  .tv-table { display: block; overflow-x: auto; white-space: nowrap; }
}

.tv-welcome { background: #fff1e6; border: 1px solid #ffd2b0; border-radius: 14px; padding: 14px 18px; margin-bottom: 16px; }
.tv-welcome a { font-weight: 700; color: #b8500b; }

.tvt-content a.tv-btn, .tv-plans a.tv-btn { text-decoration: none; }
.tvt-content a.tv-btn-primary, .tv-plans a.tv-btn-primary, .tv-landing a.tv-btn-primary { color: #fff; }
.tv-price .woocommerce-Price-amount { color: inherit; }

.tv-private { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 24px; padding: 12px 14px; border-radius: 10px; background: #eef7f1; border: 1px solid #cfe8d7; color: #1f5f33; font-size: 14px; line-height: 1.5; }
.tv-private svg { flex: none; margin-top: 2px; }
.tv-private [lang="hi"] { display: block; margin-top: 2px; font-family: 'Noto Sans Devanagari', 'Noto Sans', sans-serif; }
