:root {
  --bg: #080810;
  --bg2: #0e0e1c;
  --card: #12121f;
  --card2: #1a1a2e;
  --border: #23233a;
  --border2: #2e2e4a;
  --accent: #7c6fff;
  --accent2: #a78bfa;
  --hot: #f97316;
  --red: #ff6b6b;
  --green: #22c55e;
  --gold: #fbbf24;
  --text: #f0f0f8;
  --muted: #7070a0;
  --muted2: #9090b8;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── NAV ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,8,16,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1040px; margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-size: 1.15rem; font-weight: 800; color: var(--accent); letter-spacing: -.5px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: .9rem; }
.nav-links a { color: var(--muted2); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .85rem;
  transition: opacity .2s;
}
.nav-cta:hover { opacity: .85; }

/* ── HERO ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 100px 24px 90px;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124,111,255,.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(167,139,250,.08) 0%, transparent 60%);
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }

.hero-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(124,111,255,.12);
  border: 1px solid rgba(124,111,255,.3);
  color: var(--accent2);
  padding: 6px 16px;
  border-radius: 99px;
  font-size: .82rem;
  font-weight: 500;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #7c6fff, #f97316, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted2);
  line-height: 1.8;
  margin-bottom: 36px;
}
.hero-sub strong { color: var(--text); }

.hero-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-meta {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  font-size: .82rem;
  color: var(--muted);
}

/* ── BUTTONS ──────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #7c6fff, #9b59ff);
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 700;
  border: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 20px rgba(124,111,255,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(124,111,255,.5); }
.btn-primary .arrow { transition: transform .15s; }
.btn-primary:hover .arrow { transform: translateX(3px); }

.btn-ghost {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border2);
  color: var(--text);
  padding: 14px 28px;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--accent); }

.btn-outline {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border2);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: .88rem;
  cursor: pointer;
  background: transparent;
  transition: border-color .15s, color .15s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* service buttons */
.btn-svc-primary {
  display: block; width: 100%; text-align: center;
  background: linear-gradient(135deg, #7c6fff, #9b59ff);
  color: #fff;
  padding: 13px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .92rem;
  border: none; cursor: pointer;
  transition: opacity .15s, transform .15s;
  box-shadow: 0 4px 20px rgba(124,111,255,.3);
  margin-top: auto;
}
.btn-svc-primary:hover { opacity: .88; transform: translateY(-1px); }

.btn-svc-ghost {
  display: block; width: 100%; text-align: center;
  border: 1px solid var(--border2);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .92rem;
  background: transparent;
  cursor: pointer;
  transition: border-color .15s, color .15s;
  margin-top: auto;
}
.btn-svc-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* form button */
.btn-main {
  display: inline-block;
  background: linear-gradient(135deg, #7c6fff, #9b59ff);
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 700;
  border: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 20px rgba(124,111,255,.35);
}
.btn-main:hover { transform: translateY(-2px); }
.btn-main.full { width: 100%; text-align: center; padding: 15px; font-size: 1rem; }

/* ── SECTION BASE ─────────────────────────────────────────────────── */
.section { padding: 80px 24px; }
.section-dark { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.container { max-width: 1040px; margin: 0 auto; }

.section-label {
  display: inline-block;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.3;
  margin-bottom: 40px;
  text-align: center;
}

/* ── ITEMS GRID ───────────────────────────────────────────────────── */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.item-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 16px;
  position: relative;
  transition: border-color .2s;
}
.item-card:hover { border-color: var(--border2); }
.item-card-hot {
  border-color: rgba(249,115,22,.4);
  background: linear-gradient(145deg, rgba(249,115,22,.06), var(--card));
}
.item-card-plus {
  border-style: dashed;
  border-color: var(--border2);
}
.item-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.item-text { display: flex; flex-direction: column; gap: 3px; }
.item-text strong { font-size: .92rem; color: var(--text); }
.item-text span { font-size: .78rem; color: var(--muted); line-height: 1.5; }
.item-badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(249,115,22,.2);
  color: var(--hot);
  border: 1px solid rgba(249,115,22,.3);
  padding: 2px 8px;
  border-radius: 99px;
  font-size: .68rem;
  font-weight: 700;
}

/* ── SERVICE CARDS ────────────────────────────────────────────────── */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.svc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.svc-card-featured {
  border-color: rgba(124,111,255,.5);
  background: linear-gradient(160deg, rgba(124,111,255,.1), var(--card));
  box-shadow: 0 0 40px rgba(124,111,255,.12);
}
.svc-card h3 { font-size: 1.1rem; font-weight: 800; }
.svc-card p { font-size: .85rem; color: var(--muted2); line-height: 1.7; }
.svc-tag {
  display: inline-block; width: fit-content;
  padding: 3px 12px;
  border-radius: 99px;
  font-size: .73rem;
  font-weight: 700;
}
.free-tag { background: rgba(34,197,94,.15); color: var(--green); border: 1px solid rgba(34,197,94,.3); }
.best-tag { background: rgba(124,111,255,.2); color: var(--accent2); border: 1px solid rgba(124,111,255,.4); }
.couple-tag { background: rgba(255,107,107,.15); color: var(--red); border: 1px solid rgba(255,107,107,.3); }

.svc-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
}
.svc-list li {
  font-size: .83rem;
  color: var(--muted2);
  padding-left: 18px;
  position: relative;
}
.svc-list li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ── DIFF SECTION ─────────────────────────────────────────────────── */
.diff-wrap {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: center;
}
.diff-list { display: flex; flex-direction: column; gap: 24px; margin-top: 8px; }
.diff-item { display: flex; gap: 14px; align-items: flex-start; }
.diff-check {
  width: 24px; height: 24px; flex-shrink: 0;
  background: rgba(124,111,255,.2);
  color: var(--accent);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700;
  margin-top: 2px;
}
.diff-item strong { display: block; font-size: .95rem; margin-bottom: 3px; }
.diff-item p { font-size: .82rem; color: var(--muted2); line-height: 1.6; }

.cta-card {
  background: var(--card2);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
}
.cta-price span { font-size: 2.4rem; font-weight: 900; color: var(--text); }
.cta-price { font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.cta-price span::after { content: '원'; font-size: 1.2rem; font-weight: 600; }
.cta-desc { font-size: .82rem; color: var(--muted); margin-bottom: 20px; }

/* ── FORM PAGES ───────────────────────────────────────────────────── */
.page-wrap { max-width: 540px; margin: 0 auto; padding: 48px 24px; }
.page-title { font-size: 1.8rem; font-weight: 900; letter-spacing: -.5px; margin-bottom: 8px; }
.page-sub { color: var(--muted2); margin-bottom: 32px; font-size: .9rem; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); margin-bottom: 28px; font-size: .88rem; transition: color .15s; }
.back:hover { color: var(--text); }

.form-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 32px; }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; color: var(--muted2); margin-bottom: 8px; letter-spacing: .3px; }
.form-group input[type=text],
.form-group input[type=date],
.form-group input[type=time],
.form-group input[type=email],
.form-group input[type=number],
.form-group input[type=password] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-size: .95rem;
  transition: border-color .15s;
}
.form-group input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,111,255,.1); }

.radio-group { display: flex; gap: 10px; }
.radio-label {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--border2);
  border-radius: 8px; padding: 11px; cursor: pointer;
  font-size: .9rem; transition: border-color .15s;
}
.radio-label:has(input:checked) { border-color: var(--accent); background: rgba(124,111,255,.08); color: var(--accent); }
.radio-label input { display: none; }

.check-group { display: flex; flex-wrap: wrap; gap: 8px; }
.check-label {
  display: flex; align-items: center; gap: 7px;
  background: var(--bg); border: 1px solid var(--border2);
  padding: 9px 14px; border-radius: 8px;
  font-size: .85rem; cursor: pointer; transition: border-color .15s, color .15s;
}
.check-label:has(input:checked) { border-color: var(--accent); color: var(--accent); background: rgba(124,111,255,.08); }
.check-label input { display: none; }

.optional { font-weight: 400; color: var(--muted); }

.price-summary {
  background: rgba(124,111,255,.08);
  border: 1px solid rgba(124,111,255,.25);
  border-radius: 10px; padding: 16px;
  text-align: center; margin-bottom: 20px; font-size: .9rem;
}
.price-summary strong { color: var(--accent); font-size: 1.3rem; font-weight: 900; }

.error-msg { color: var(--red); font-size: .88rem; margin-bottom: 12px; }

/* ── RESULT ───────────────────────────────────────────────────────── */
.result-wrap { max-width: 740px; margin: 0 auto; padding: 48px 24px 80px; }
.result-header {
  text-align: center; padding: 40px 20px 32px;
  margin-bottom: 32px; border-bottom: 1px solid var(--border);
}
.result-badge {
  display: inline-block;
  background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.3);
  color: var(--gold); padding: 5px 16px; border-radius: 99px;
  font-size: .8rem; font-weight: 600; margin-bottom: 16px;
}
.result-header h1 { font-size: 1.9rem; font-weight: 900; margin-bottom: 8px; letter-spacing: -.5px; }
.result-header p { color: var(--muted2); font-size: .9rem; }

.result-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px; margin-bottom: 16px;
}
.result-card-hot {
  border-color: rgba(249,115,22,.4);
  background: linear-gradient(145deg, rgba(249,115,22,.05), var(--card));
}
.result-card h2 { font-size: 1rem; font-weight: 800; margin-bottom: 14px; }
.result-card-hot h2 { color: var(--hot); }
.result-content { color: var(--muted2); font-size: .9rem; line-height: 2; }

.result-footer { text-align: center; margin-top: 40px; color: var(--muted); font-size: .85rem; }
.result-footer p { margin-bottom: 16px; }

/* ── FREE / GUNG-HAP PAGE ─────────────────────────────────────────── */
.free-result { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 28px; margin-top: 24px; }
.free-result .result-content { color: var(--muted2); font-size: .9rem; line-height: 2; }
.upsell { text-align: center; margin-top: 32px; padding: 24px; background: rgba(124,111,255,.06); border: 1px solid rgba(124,111,255,.2); border-radius: 14px; }
.upsell p { color: var(--muted2); margin-bottom: 16px; font-size: .9rem; }

/* ── ADMIN ────────────────────────────────────────────────────────── */
.admin-wrap { max-width: 1040px; margin: 0 auto; padding: 48px 24px; }
.admin-wrap h1 { font-size: 1.8rem; font-weight: 900; margin-bottom: 32px; }
.admin-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 28px; margin-bottom: 20px; }
.admin-card h2 { font-size: 1rem; font-weight: 700; margin-bottom: 20px; color: var(--muted2); }
.form-inline .form-group { max-width: 380px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: .78rem; letter-spacing: .5px; text-transform: uppercase; }
.badge-ok { background: rgba(34,197,94,.12); color: var(--green); padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 600; }
.badge-no { background: rgba(255,107,107,.12); color: var(--red); padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 600; }

/* ── MARKDOWN CONTENT ────────────────────────────────────────────── */
.md-content h1, .md-content h2 {
  font-size: 1.05rem; font-weight: 800;
  color: var(--text); margin: 28px 0 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.md-content h3 { font-size: .95rem; font-weight: 700; color: var(--accent2); margin: 18px 0 8px; }
.md-content p { color: var(--muted2); font-size: .9rem; line-height: 1.9; margin-bottom: 12px; }
.md-content strong { color: var(--text); font-weight: 700; }
.md-content ul, .md-content ol { padding-left: 20px; margin-bottom: 12px; }
.md-content li { color: var(--muted2); font-size: .9rem; line-height: 1.9; }
.md-content blockquote { border-left: 3px solid var(--accent); padding-left: 14px; color: var(--muted); font-style: italic; margin: 12px 0; }
.md-content hr { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* ── SHARE ────────────────────────────────────────────────────────── */
.share-section {
  position: relative;
  background: linear-gradient(135deg, #13132a 0%, #1a1030 100%);
  border: 1px solid rgba(124,111,255,.3);
  border-radius: 24px; padding: 36px 28px; margin: 32px 0;
  text-align: center;
  overflow: hidden;
}
.share-section::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(124,111,255,.18) 0%, transparent 70%);
  pointer-events: none;
}
.share-section::after {
  content: '';
  position: absolute; bottom: -40px; left: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(251,191,36,.1) 0%, transparent 70%);
  pointer-events: none;
}
.share-icon { font-size: 2rem; margin-bottom: 10px; }
.share-title {
  font-size: 1.2rem; font-weight: 900; margin-bottom: 6px;
  background: linear-gradient(90deg, #fff 0%, #c4b5fd 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.share-desc { color: var(--muted2); font-size: .88rem; margin-bottom: 28px; line-height: 1.6; }
.share-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.share-btn {
  display: flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 50px;
  font-size: .92rem; font-weight: 700; cursor: pointer;
  border: none; transition: all .2s cubic-bezier(.34,1.56,.64,1);
  font-family: inherit; letter-spacing: -.01em;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.share-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.share-btn:active { transform: translateY(0); }
.kakao-btn {
  background: linear-gradient(135deg, #FEE500 0%, #FFCD00 100%);
  color: #3A1D1D;
  box-shadow: 0 4px 14px rgba(254,229,0,.25);
}
.kakao-btn:hover { box-shadow: 0 8px 24px rgba(254,229,0,.4); }
.link-btn {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15) !important;
  color: var(--text);
  backdrop-filter: blur(8px);
}
.link-btn:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25) !important; }
.print-btn {
  background: rgba(124,111,255,.15);
  border: 1px solid rgba(124,111,255,.3) !important;
  color: var(--accent2);
}
.print-btn:hover { background: rgba(124,111,255,.25); }
#copy-msg {
  display: none; color: var(--green); font-size: .85rem;
  margin-top: 14px; font-weight: 600; letter-spacing: .02em;
}

/* ── FOOTER ───────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 40px 24px; text-align: center; }
.footer-logo { font-size: 1.1rem; font-weight: 800; color: var(--accent); margin-bottom: 10px; }
.footer p { color: var(--muted); font-size: .82rem; line-height: 2; }

/* ── RESPONSIVE ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .svc-grid { grid-template-columns: 1fr; }
  .diff-wrap { grid-template-columns: 1fr; gap: 40px; }
  .items-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2rem; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .items-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ── LOADING PAGE ─────────────────────────────────────────────────── */
.loading-wrap {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 24px; text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 20%, rgba(124,111,255,.15) 0%, transparent 60%);
}
.loading-orb {
  width: 90px; height: 90px; border-radius: 50%;
  background: linear-gradient(135deg, #7c6fff 0%, #a78bfa 50%, #fbbf24 100%);
  margin-bottom: 36px;
  box-shadow: 0 0 40px rgba(124,111,255,.5), 0 0 80px rgba(124,111,255,.2);
  animation: orb-pulse 2.4s ease-in-out infinite;
  position: relative;
}
.loading-orb::after {
  content: '✨';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  animation: orb-spin 8s linear infinite;
}
@keyframes orb-pulse {
  0%, 100% { transform: scale(1);   box-shadow: 0 0 40px rgba(124,111,255,.5), 0 0 80px rgba(124,111,255,.2); }
  50%       { transform: scale(1.1); box-shadow: 0 0 60px rgba(124,111,255,.7), 0 0 120px rgba(124,111,255,.3); }
}
@keyframes orb-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.loading-title {
  font-size: 1.6rem; font-weight: 900; margin-bottom: 12px;
  background: linear-gradient(90deg, #fff 0%, #c4b5fd 60%, #fbbf24 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.loading-msg {
  font-size: 1rem; color: var(--muted2); margin-bottom: 28px;
  min-height: 1.5em;
  transition: opacity .4s ease;
  font-weight: 500;
}
.loading-msg.fade { opacity: 0; }
.loading-dots {
  display: flex; gap: 8px; justify-content: center; margin-bottom: 40px;
}
.loading-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); opacity: .3;
  animation: dot-bounce 1.4s ease-in-out infinite;
}
.loading-dots span:nth-child(2) { animation-delay: .2s; background: var(--accent2); }
.loading-dots span:nth-child(3) { animation-delay: .4s; background: var(--gold); }
@keyframes dot-bounce {
  0%, 80%, 100% { transform: translateY(0);    opacity: .3; }
  40%            { transform: translateY(-10px); opacity: 1; }
}
.loading-sub {
  color: var(--muted); font-size: .82rem; line-height: 1.8;
  border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 20px; background: var(--card);
  max-width: 320px;
}
.loading-progress {
  width: 260px; height: 3px;
  background: var(--border2); border-radius: 99px;
  margin-bottom: 40px; overflow: hidden;
}
.loading-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #7c6fff, #fbbf24);
  border-radius: 99px;
  animation: progress-fill 60s linear forwards;
}
@keyframes progress-fill {
  from { width: 0%; }
  to   { width: 90%; }
}

/* ── TEST LOADING OVERLAY ──────────────────────────────────────────── */
.test-loading-overlay {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 9999;
  background: rgba(8,8,16,.95);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px;
}
.test-loading-overlay.active { display: flex; }

@media print {
  body { background: white; color: black; }
  .result-card { border: 1px solid #ddd !important; background: white !important; }
  nav, .result-footer { display: none; }
}
