/* =========================================================
   ResumeNest Theme adaptation for ResumeNest Blueprint
   - Embedded Google Fonts: Inter + Space Grotesk
   - Color palette & animations
   - Dynamic Aurora & Grid Overlays
   - Frosty White Glassmorphism Card System (overrides)
   - Step Stage (scenes 1-5) Homepage Animation
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Brand palette */
  --emerald: #10b981;
  --emerald-2: #34d399;
  --emerald-3: #6ee7b7;
  --emerald-glow: rgba(16,185,129,.35);

  --orange: #f97316;
  --orange-2: #fb923c;
  --orange-glow: rgba(249,115,22,.35);

  --purple: #8b5cf6;
  --purple-2: #a78bfa;
  --purple-glow: rgba(139,92,246,.35);

  --sky: #0ea5e9;
  --sky-2: #38bdf8;
  --sky-glow: rgba(14,165,233,.30);

  /* Surfaces — light mirror */
  --bg: #eaf7f1;            /* soft emerald-tinted white base */
  --bg-2: #ffffff;
  --ink: #0f2a26;            /* deep emerald-ink for text */
  --ink-soft: #2f4e49;
  --ink-mute: #5f7a75;
  --line: rgba(12, 60, 50, .10);
  --line-2: rgba(12, 60, 50, .18);

  /* Mirror / glass — frosty white */
  --glass: rgba(255,255,255,0.45);
  --glass-2: rgba(255,255,255,0.65);
  --mirror-grad: linear-gradient(135deg, rgba(255,255,255,0.78) 0%, rgba(255,255,255,0.40) 35%, rgba(255,255,255,0.62) 70%, rgba(255,255,255,0.30) 100%);

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;

  --shadow-1: 0 10px 30px rgba(15, 80, 65, .10);
  --shadow-2: 0 22px 60px rgba(15, 80, 65, .16);
  --shadow-soft: 0 6px 18px rgba(15, 80, 65, .08);

  --grad-brand: linear-gradient(120deg, var(--emerald) 0%, var(--sky) 35%, var(--purple) 70%, var(--orange) 100%);

  /* Override blueprint defaults with Space Grotesk + Inter */
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* =========================================================
   AURORA BACKGROUND & OVERLAYS
   ========================================================= */
.aurora {
  position: fixed; 
  top: 0; 
  left: 0; 
  right: 0;
  bottom: 0;
  height: 100vh;
  z-index: -1;
  overflow: hidden; 
  pointer-events: none;
  background:
    radial-gradient(1100px 700px at 85% 0%,   rgba(110, 231, 183, .55), transparent 60%),
    radial-gradient(1000px 700px at 10% 18%,  rgba(167, 139, 250, .35), transparent 62%),
    radial-gradient(1100px 700px at 90% 55%,  rgba(251, 146, 60, .28),  transparent 60%),
    radial-gradient(1100px 800px at 15% 80%,  rgba(56, 189, 248, .30),  transparent 62%),
    radial-gradient(900px 700px at 60% 110%,  rgba(52, 211, 153, .35),  transparent 65%),
    linear-gradient(180deg, #ecfdf5 0%, #f3fbff 35%, #f8f5ff 65%, #ecfdf5 100%);
}
.aurora__blob {
  position: absolute; 
  width: 520px; 
  height: 520px; 
  border-radius: 50%;
  filter: blur(90px); 
  opacity: .55; 
  mix-blend-mode: multiply;
  animation: floatBlob 18s ease-in-out infinite;
}
.aurora__blob--emerald { background: var(--emerald-3); top: 6%; left: -8%; }
.aurora__blob--orange { background: #fdba74; top: 32%; right: -6%; animation-delay: -4s; }
.aurora__blob--purple { background: #c4b5fd; top: 60%; left: 18%; animation-delay: -8s; }
.aurora__blob--blue { background: #7dd3fc; top: 88%; right: 14%; animation-delay: -12s; }

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
}

.grid-overlay {
  position: absolute; 
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 80, 65, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 80, 65, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  pointer-events: none;
}

/* =========================================================
   MIRROR GLASSMORPHISM CARD OVERRIDES
   ========================================================= */
.mirror, 
.card, 
.cat-card, 
.template-card, 
.admin-card, 
.stat, 
.feature-list li,
.blog-card,
.blog-cta,
.blog-article .wrap.narrow,
.legal-card,
.login-card,
.item-box,
.manager-panel,
.modal-card,
.price-card {
  background: var(--mirror-grad), rgba(255, 255, 255, 0.40) !important;
  backdrop-filter: blur(22px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(160%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.75) !important;
  border-radius: var(--radius) !important;
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  box-shadow:
    var(--shadow-1),
    inset 0 1px 0 rgba(255, 255, 255, .85),
    inset 0 -1px 0 rgba(15, 80, 65, .06) !important;
}

.mirror::before,
.card::before,
.cat-card::before,
.template-card::before,
.admin-card::before,
.stat::before,
.feature-list li::before,
.blog-card::before,
.blog-cta::before,
.blog-article .wrap.narrow::before,
.legal-card::before,
.login-card::before,
.item-box::before,
.manager-panel::before,
.modal-card::before,
.price-card::before {
  content: "" !important; 
  position: absolute !important; 
  inset: 0 !important; 
  pointer-events: none !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .6), transparent 35%) !important;
  opacity: .85 !important;
  border-radius: inherit !important;
  z-index: -1 !important;
}

/* Glass outer tinted glowing frame */
.mirror::after,
.card::after,
.cat-card::after,
.template-card::after,
.admin-card::after,
.stat::after,
.feature-list li::after,
.blog-card::after,
.blog-cta::after,
.blog-article .wrap.narrow::after,
.legal-card::after,
.login-card::after,
.item-box::after,
.manager-panel::after,
.modal-card::after,
.price-card::after {
  content: "" !important; 
  position: absolute !important; 
  inset: -1.5px !important; 
  pointer-events: none !important; 
  border-radius: inherit !important;
  background: linear-gradient(135deg, rgba(16, 185, 129, .50), rgba(255, 255, 255, 0) 30%, rgba(139, 92, 246, .30) 70%, rgba(255, 255, 255, 0) 100%) !important;
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000) !important;
  -webkit-mask-composite: xor !important; 
  mask-composite: exclude !important;
  padding: 1.5px !important;
  z-index: 5 !important;
}

/* 3D tilt hover classes override */
.tilt, .cat-card, .template-card, .stat, .blog-card, .legal-card, .price-card, .item-box {
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s ease, border-color .4s ease !important;
  will-change: transform !important;
}
.tilt:hover, .cat-card:hover, .template-card:hover, .stat:hover, .blog-card:hover, .legal-card:hover, .price-card:hover, .item-box:hover {
  transform: translateY(-6px) rotateX(2deg) rotateY(-2deg) scale(1.01) !important;
  box-shadow: var(--shadow-2) !important;
  border-color: rgba(255, 255, 255, .98) !important;
  z-index: 10 !important;
}

/* =========================================================
   TEXTS, HEADERS, EYEBROWS & CHIPS
   ========================================================= */
.text-gradient,
h1 em,
.section-title em {
  background: var(--grad-brand) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  background-size: 200% 200% !important;
  animation: shimmer 6s ease-in-out infinite !important;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Eyebrows override */
.eyebrow, .kicker {
  display: inline-flex !important;
  align-items: center !important;
  font-size: .8rem !important; 
  font-weight: 700 !important; 
  letter-spacing: .18em !important; 
  text-transform: uppercase !important;
  color: var(--emerald) !important;
  padding: 6px 14px !important; 
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .65) !important; 
  border: 1px solid rgba(255, 255, 255, .9) !important;
  margin-bottom: 16px !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: var(--shadow-soft) !important;
}
.eyebrow::before, .kicker::before {
  display: none !important; /* Hide old dots */
}

/* Chips & Badges override */
.chip, .badge {
  display: inline-flex !important;
  align-items: center !important;
  font-size: .75rem !important; 
  padding: 5px 10px !important; 
  border-radius: 999px !important;
  border: 1px solid var(--line-2) !important; 
  background: rgba(255, 255, 255, .7) !important;
  font-weight: 600 !important;
  color: var(--ink-soft) !important;
}

/* Color chip variations */
.chip--emerald { color: #047857 !important; border-color: rgba(16, 185, 129, .4) !important; background: rgba(16, 185, 129, .12) !important; }
.chip--orange { color: #c2410c !important; border-color: rgba(249, 115, 22, .4) !important; background: rgba(249, 115, 22, .12) !important; }
.chip--purple { color: #6d28d9 !important; border-color: rgba(139, 92, 246, .4) !important; background: rgba(139, 92, 246, .12) !important; }
.chip--blue { color: #0369a1 !important; border-color: rgba(14, 165, 233, .4) !important; background: rgba(14, 165, 233, .12) !important; }

/* Badge dot */
.badge__dot {
  width: 8px; 
  height: 8px; 
  border-radius: 50%; 
  background: var(--emerald); 
  box-shadow: 0 0 14px var(--emerald-glow); 
  animation: pulse 1.8s ease-in-out infinite;
  display: inline-block;
  margin-right: 8px;
}
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: .55; } }

/* =========================================================
   BUTTON OVERRIDES
   ========================================================= */
.btn {
  border-radius: 12px !important;
  font-weight: 600 !important;
  font-size: .94rem !important;
}
.btn::after {
  display: none !important;
}

.btn.primary {
  color: #fff !important;
  background: linear-gradient(120deg, var(--emerald) 0%, var(--sky) 50%, var(--purple) 100%) !important;
  background-size: 200% 200% !important;
  box-shadow: 0 10px 28px rgba(16, 185, 129, .35), 0 6px 18px rgba(139, 92, 246, .25), inset 0 1px 0 rgba(255, 255, 255, .45) !important;
  border: 1px solid transparent !important;
}
.btn.primary:hover {
  transform: translateY(-2px) !important;
  background-position: 100% 0% !important;
  box-shadow: 0 16px 36px rgba(16, 185, 129, .45), 0 10px 28px rgba(139, 92, 246, .35), inset 0 1px 0 rgba(255, 255, 255, .6) !important;
}

.btn.ghost {
  color: var(--ink-soft) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
}
.btn.ghost:hover {
  color: var(--emerald) !important;
  background: rgba(16, 185, 129, .08) !important;
}
.topbar .btn.ghost,
.topbar #live-preview-btn,
.topbar #share-btn {
  color: rgba(255, 255, 255, .92) !important;
  background: rgba(255, 255, 255, .08) !important;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  backdrop-filter: blur(8px) !important;
}
.topbar .btn.ghost:hover,
.topbar #live-preview-btn:hover,
.topbar #share-btn:hover {
  color: #ffffff !important;
  background: rgba(16, 185, 129, .22) !important;
  border-color: rgba(16, 185, 129, .55) !important;
}

.btn.secondary, .btn--mirror {
  color: var(--ink) !important;
  background: rgba(255, 255, 255, .55) !important;
  border: 1.5px solid rgba(255, 255, 255, .85) !important;
  backdrop-filter: blur(14px) !important;
  box-shadow: 0 6px 18px rgba(15, 80, 65, .08), inset 0 1px 0 rgba(255, 255, 255, .85) !important;
}
.btn.secondary:hover, .btn--mirror:hover {
  transform: translateY(-2px) !important;
  border-color: var(--emerald-2) !important;
  background: rgba(255, 255, 255, .75) !important;
  box-shadow: 0 12px 28px rgba(16, 185, 129, .18) !important;
}

/* =========================================================
   STAGE & SCENE SYSTEM (5-step interactive animation)
   ========================================================= */
.stage { 
  max-width: 1080px; 
  margin: 40px auto 0; 
}

.steps {
  display: grid; 
  grid-template-columns: repeat(5, 1fr);
  gap: 14px; 
  margin-bottom: 26px;
  background: var(--mirror-grad), rgba(255, 255, 255, .45);
  border: 1.5px solid rgba(255, 255, 255, .85);
  padding: 14px; 
  border-radius: 18px;
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, .85);
  transform-style: flat;
}
.step {
  display: flex; 
  align-items: center; 
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  transition: background .35s ease, transform .35s ease;
  position: relative;
  cursor: pointer;
  border: 1px solid transparent;
}
.step__num {
  width: 30px; 
  height: 30px; 
  border-radius: 50%;
  display: grid; 
  place-items: center;
  font-weight: 700; 
  font-size: .9rem;
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(15, 80, 65, .12);
  color: var(--ink-soft);
  transition: all .35s ease;
}
.step__label { 
  font-size: .92rem; 
  color: var(--ink-soft); 
  font-weight: 600; 
}
.step.is-active {
  background: linear-gradient(120deg, rgba(16, 185, 129, .18), rgba(139, 92, 246, .15));
  border: 1px solid rgba(255, 255, 255, .85);
}
.step.is-active .step__num {
  background: linear-gradient(135deg, var(--emerald), var(--sky));
  color: #fff;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .18), 0 8px 20px var(--emerald-glow);
  border-color: transparent;
}
.step.is-active .step__label { 
  color: var(--ink); 
}

/* Device browser window mockup */
.device {
  border-radius: 22px; 
  padding: 0;
  overflow: hidden; 
  position: relative;
  background: var(--mirror-grad), rgba(255, 255, 255, .4);
  border: 1.5px solid rgba(255, 255, 255, .85);
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, .85);
  backdrop-filter: blur(22px) saturate(160%);
  transform-style: flat;
}
.device__bar {
  display: flex; 
  align-items: center; 
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(15, 80, 65, .08);
  background: rgba(255, 255, 255, .55);
}
.device__url {
  margin-left: auto; 
  font-family: 'Space Grotesk', sans-serif;
  color: var(--ink-mute); 
  font-size: .85rem;
  background: rgba(255, 255, 255, .7); 
  padding: 5px 12px; 
  border-radius: 8px;
  border: 1px solid rgba(15, 80, 65, .08);
}

.device__screen {
  position: relative;
  height: 480px;
  background:
    radial-gradient(800px 400px at 30% 0%, rgba(16, 185, 129, .18), transparent 60%),
    radial-gradient(800px 400px at 80% 100%, rgba(139, 92, 246, .16), transparent 60%),
    linear-gradient(180deg, #f0fdf9 0%, #f5f3ff 100%);
  overflow: hidden;
}

.scene {
  position: absolute; 
  inset: 0;
  padding: 28px;
  opacity: 0; 
  transform: translateY(14px) scale(.98);
  transition: opacity .45s ease, transform .55s ease;
  pointer-events: none;
}
.scene.is-active { 
  opacity: 1; 
  transform: translateY(0) scale(1); 
  pointer-events: auto; 
}

/* Scene 1 — Pick Template */
.scene__title {
  font-family: 'Space Grotesk', sans-serif; 
  font-weight: 700;
  font-size: 1.1rem; 
  margin-bottom: 22px; 
  color: var(--ink);
  text-align: left;
}
.template-row {
  display: grid; 
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.tpl {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, .7);
  border: 1.5px solid rgba(255, 255, 255, .95);
  box-shadow: var(--shadow-1);
  transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}
.tpl:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.tpl__head { width: 100%; height: 36%; border-radius: 8px; margin-bottom: 10px; }
.tpl__line { height: 6px; border-radius: 3px; background: rgba(15, 80, 65, .16); margin-bottom: 6px; }
.tpl__line--sm { width: 70%; }
.tpl--emerald .tpl__head { background: linear-gradient(135deg, var(--emerald), var(--emerald-2)); box-shadow: 0 8px 18px var(--emerald-glow); }
.tpl--orange .tpl__head { background: linear-gradient(135deg, var(--orange), var(--orange-2)); box-shadow: 0 8px 18px var(--orange-glow); }
.tpl--purple .tpl__head { background: linear-gradient(135deg, var(--purple), var(--purple-2)); box-shadow: 0 8px 18px var(--purple-glow); }
.tpl--blue .tpl__head { background: linear-gradient(135deg, var(--sky), var(--sky-2)); box-shadow: 0 8px 18px var(--sky-glow); }

.tpl.picked {
  border-color: var(--orange) !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, .25), 0 14px 36px rgba(249, 115, 22, .35) !important;
  transform: translateY(-6px);
}
.tpl__check {
  position: absolute; 
  top: 10px; 
  right: 10px;
  width: 30px; 
  height: 30px; 
  border-radius: 50%;
  display: grid; 
  place-items: center;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #fff;
  opacity: 0; 
  transform: scale(.4);
  transition: opacity .4s ease, transform .4s cubic-bezier(.2, 1.2, .4, 1);
}
.scene--1.is-active .tpl.picked .tpl__check { 
  opacity: 1; 
  transform: scale(1); 
  transition-delay: .9s; 
}

.cursor {
  position: absolute; 
  width: 22px; 
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, rgba(255, 255, 255, .4));
  box-shadow: 0 0 18px rgba(15, 80, 65, .4), 0 0 0 4px rgba(15, 80, 65, .08);
  pointer-events: none;
  opacity: 0;
}
.scene--1.is-active .cursor--1 { animation: cursorFly 1.2s ease forwards; }
@keyframes cursorFly {
  0% { opacity: 0; left: 5%; top: 80%; }
  20% { opacity: 1; }
  100% { opacity: 1; left: 36%; top: 38%; }
}

/* Scene 2 — Edit Details */
.editor {
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 22px; 
  height: 100%;
}
.editor__panel {
  padding: 4px; 
  display: flex; 
  flex-direction: column; 
  gap: 12px;
}
.editor__panel .field {
  text-align: left;
}
.editor__panel .field label {
  display: block; 
  font-size: .78rem; 
  font-weight: 700;
  color: var(--ink-mute); 
  margin-bottom: 6px;
  text-transform: uppercase; 
  letter-spacing: .12em;
}
.editor__panel .input {
  background: rgba(255, 255, 255, .85);
  border: 1.5px solid rgba(15, 80, 65, .12);
  border-radius: 10px; 
  padding: 10px 12px;
  font-size: .92rem; 
  color: var(--ink); 
  min-height: 38px;
  display: flex; 
  align-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
}
.editor__panel .input--lg { 
  min-height: 64px; 
  align-items: flex-start; 
  padding-top: 10px; 
}
.editor__panel .field-row { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 12px; 
}
.caret { 
  color: var(--emerald); 
  margin-left: 1px; 
  animation: blink 1s steps(2) infinite; 
}
@keyframes blink { 50% { opacity: 0; } }

.editor__preview {
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f0fdf9);
  color: var(--ink);
  padding: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 80, 65, .18);
  border: 1px solid rgba(15, 80, 65, .08);
  text-align: left;
}
.cv-doc {
  display: flex; 
  flex-direction: column; 
  gap: 14px;
  font-size: .85rem;
}
.cv-doc__head { 
  display: flex; 
  gap: 12px; 
  align-items: center; 
  padding-bottom: 12px; 
  border-bottom: 2px solid rgba(15, 80, 65, .08); 
}
.cv-doc__avatar {
  width: 50px; 
  height: 50px; 
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--purple));
}
.cv-doc__name { font-weight: 800; font-size: 1.05rem; color: var(--ink); min-height: 1.2em; }
.cv-doc__role { color: var(--ink-soft); font-size: .85rem; min-height: 1.1em; }
.cv-doc__sec h4 {
  margin: 0 0 6px; 
  font-size: .8rem; 
  text-transform: uppercase; 
  letter-spacing: .12em;
  color: var(--purple);
}
.cv-doc__sec p { margin: 0 0 4px; color: var(--ink-soft); font-size: .82rem; }
.cv-doc__chips { display: flex; gap: 6px; flex-wrap: wrap; }

/* Scene 3 — Live Preview zoom */
.preview-wrap {
  position: relative; 
  height: 100%;
  display: flex; 
  align-items: center; 
  justify-content: center;
}
.cv-doc--full {
  width: min(560px, 90%);
  background: #fff !important;
  color: var(--ink) !important;
  padding: 28px !important;
  border-radius: 14px !important;
  box-shadow: 0 30px 60px rgba(15, 80, 65, .22) !important;
  border: 1px solid rgba(15, 80, 65, .08) !important;
  font-size: .85rem !important;
  text-align: left;
  transform-style: flat;
}
.scene--3.is-active .cv-doc--full { animation: zoomIn 1.2s cubic-bezier(.2, 1, .3, 1) forwards; }
@keyframes zoomIn { 0% { transform: scale(.85); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.zoom-ring {
  position: absolute; 
  width: 120px; 
  height: 120px; 
  border-radius: 50%;
  border: 2px solid var(--sky);
  box-shadow: 0 0 30px var(--sky-glow), inset 0 0 30px rgba(14, 165, 233, .18);
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(14, 165, 233, .10), transparent 70%);
}
.scene--3.is-active .zoom-ring { animation: ringMove 3s ease-in-out infinite; }
@keyframes ringMove {
  0% { opacity: 0; transform: translate(-180px, -120px) scale(.8); }
  20% { opacity: 1; }
  50% { transform: translate(160px, 60px) scale(1); opacity: 1; }
  100% { opacity: 0; transform: translate(-180px, 80px) scale(.8); }
}

/* Scene 4 — Download PDF */
.download-stage {
  height: 100%;
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 38px;
  position: relative;
}
.cv-doc--mini {
  width: 220px; 
  padding: 16px; 
  background: #fff !important; 
  color: var(--ink) !important;
  border-radius: 12px !important; 
  box-shadow: 0 18px 40px rgba(15, 80, 65, .18) !important;
  border: 1px solid rgba(15, 80, 65, .08) !important;
  text-align: left;
}
.cv-doc--mini .cv-doc__avatar { width: 36px; height: 36px; }
.cv-doc--mini .cv-doc__name { font-size: .82rem; }
.cv-doc--mini .cv-doc__role { font-size: .72rem; }
.cv-doc--mini .ln { background: linear-gradient(90deg, rgba(15, 80, 65, .18), rgba(15, 80, 65, .06)); margin-bottom: 5px; height: 8px; border-radius: 4px; display: block; }

.dl-arrow {
  color: var(--emerald);
  filter: drop-shadow(0 0 14px var(--emerald-glow));
}
.scene--4.is-active .dl-arrow { animation: arrowBob 1.5s ease-in-out infinite; }
@keyframes arrowBob {
  0%, 100% { transform: translateY(0); opacity: .85; }
  50% { transform: translateY(8px); opacity: 1; }
}

.dl-file {
  width: 240px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .75);
  border: 1.5px solid rgba(255, 255, 255, .95);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(14px);
  text-align: left;
}
.dl-file__icon {
  display: inline-block; 
  padding: 4px 10px; 
  border-radius: 6px;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #fff; 
  font-weight: 800; 
  font-size: .7rem; 
  margin-bottom: 10px;
  letter-spacing: .12em;
}
.dl-file__name { font-size: .9rem; font-weight: 700; margin-bottom: 12px; color: var(--ink); }
.dl-file__bar { height: 6px; background: rgba(15, 80, 65, .10); border-radius: 4px; overflow: hidden; }
.dl-file__fill {
  height: 100%; 
  width: 0%;
  background: linear-gradient(90deg, var(--emerald), var(--sky), var(--purple));
  border-radius: 4px;
  box-shadow: 0 0 14px var(--sky-glow);
}
.scene--4.is-active .dl-file__fill { animation: fillBar 2.4s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes fillBar { 0% { width: 0%; } 100% { width: 100%; } }

/* Scene 5 — Print CV */
.printer-stage {
  height: 100%;
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 32px;
  position: relative;
}
.printer {
  position: relative;
  width: 240px; 
  height: 200px;
}
.printer__top {
  position: absolute; 
  top: 0; 
  left: 12px; 
  right: 12px; 
  height: 26px;
  background: linear-gradient(135deg, #d1d5db, #9ca3af);
  border-radius: 10px 10px 4px 4px;
  border: 1px solid rgba(15, 80, 65, .12);
}
.printer__body {
  position: absolute; 
  top: 22px; 
  left: 0; 
  right: 0; 
  height: 110px;
  background: linear-gradient(135deg, #e5e7eb, #b8c0cc);
  border-radius: 12px;
  border: 1px solid rgba(15, 80, 65, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
  display: flex; 
  flex-direction: column; 
  justify-content: space-between; 
  padding: 12px;
}
.printer__screen {
  align-self: flex-end;
  width: 56px; 
  height: 16px; 
  border-radius: 3px;
  background: linear-gradient(90deg, var(--emerald), var(--sky));
  box-shadow: 0 0 14px var(--emerald-glow);
}
.printer__slot {
  height: 8px; 
  background: #4b5563; 
  border-radius: 4px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35);
}
.printer__base {
  position: absolute; 
  bottom: 0; 
  left: 8px; 
  right: 8px; 
  height: 30px;
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
  border-radius: 4px 4px 12px 12px;
  border: 1px solid rgba(15, 80, 65, .12);
}
.paper {
  position: absolute; 
  top: 130px; 
  left: 50%; 
  transform: translateX(-50%);
  width: 130px; 
  height: 0px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 12px 28px rgba(15, 80, 65, .22);
  border: 1px solid rgba(15, 80, 65, .08);
  overflow: hidden;
  display: flex; 
  flex-direction: column; 
  gap: 7px; 
  padding: 0 10px;
  box-sizing: border-box;
}
.paper__line {
  width: 100%; 
  height: 5px; 
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(15, 80, 65, .22), rgba(15, 80, 65, .08));
  flex-shrink: 0;
}
.paper__line--sm { width: 60%; }
.scene--5.is-active .paper { animation: paperOut 2.4s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes paperOut {
  0% { height: 0; padding-top: 0; padding-bottom: 0; }
  60% { height: 130px; padding-top: 14px; padding-bottom: 14px; }
  100% { height: 150px; transform: translate(-50%, 12px); padding-top: 14px; padding-bottom: 14px; }
}

.success {
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 14px;
  opacity: 0; 
  transform: translateY(8px);
}
.scene--5.is-active .success { animation: showSuccess .6s ease forwards; animation-delay: 1.6s; }
@keyframes showSuccess { to { opacity: 1; transform: translateY(0); } }
.success__check {
  width: 60px; 
  height: 60px; 
  border-radius: 50%;
  display: grid; 
  place-items: center;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-2));
  color: #fff;
  box-shadow: 0 0 0 6px rgba(16, 185, 129, .18), 0 14px 30px var(--emerald-glow);
}
.success__text {
  font-family: 'Space Grotesk', sans-serif; 
  font-weight: 700;
  font-size: 1.05rem; 
  color: var(--ink);
}

/* Replay button */
.replay {
  margin: 26px auto 0;
  display: inline-flex; 
  align-items: center; 
  gap: 8px;
  padding: 10px 16px; 
  border-radius: 12px;
  background: rgba(255, 255, 255, .65);
  border: 1.5px solid rgba(255, 255, 255, .95);
  color: var(--ink-soft); 
  cursor: pointer;
  font-weight: 600; 
  font-size: .9rem;
  transition: all .25s ease;
  box-shadow: var(--shadow-soft);
}
.replay:hover { color: var(--emerald); border-color: var(--emerald-2); transform: translateY(-2px); }

/* =========================================================
   ADDITIONAL POLISH & OVERRIDES FOR BLUEPRINT SPECIFICS
   ========================================================= */
/* Clean background overlay across pages */
body {
  background: var(--bg) !important;
  color: var(--ink) !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
  font-feature-settings: "kern", "liga", "calt" !important;
  font-optical-sizing: auto !important;
}

h1, h2, h3, h4, h5, h6, .brand, .section-title, .logo__text, .hero h1 {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif !important;
  font-weight: 800 !important;
  color: var(--ink) !important;
  letter-spacing: -0.022em !important;
  text-wrap: balance !important;
}

h1, .hero h1 { letter-spacing: -0.03em !important; }
h2, .section-title { letter-spacing: -0.025em !important; }
h4, h5, h6 { letter-spacing: -0.015em !important; }

body, p, span, a, input, textarea, button, select, .lead, .hero p {
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
}

body::before {
  display: none !important; /* Hide old grid */
}

/* Hero elements Overrides to match exactly ResumeNest typography and spacing */
.hero h1, .hero__title {
  font-size: clamp(2.4rem, 5.2vw, 4.4rem) !important;
  line-height: 1.04 !important;
  letter-spacing: -.03em !important;
  font-weight: 800 !important;
  color: var(--ink) !important;
}

.hero p, .hero .lead, .hero__sub {
  font-size: 1.1rem !important;
  color: var(--ink-soft) !important;
  max-width: 540px !important;
  line-height: 1.6 !important;
}

/* Hero Floating Preview positioning and details */
.hero__preview {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.float-card {
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  background: var(--mirror-grad), rgba(255,255,255,.5) !important;
  border: 1.5px solid rgba(255,255,255,.85) !important;
  border-radius: 20px !important;
  padding: 0 !important;
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255,255,255,.85) !important;
  backdrop-filter: blur(20px) saturate(160%) !important;
  overflow: hidden !important;
  animation: floatY 6s ease-in-out infinite;
  position: relative;
  text-align: left;
}
.float-card::after {
  content: "" !important;
  position: absolute !important;
  inset: -1.5px !important;
  pointer-events: none !important;
  border-radius: inherit !important;
  background: linear-gradient(135deg, rgba(16,185,129,.55), rgba(255,255,255,0) 35%, rgba(139,92,246,.4) 70%, rgba(255,255,255,0) 100%) !important;
  -webkit-mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000) !important;
  -webkit-mask-composite: xor !important;
  mask-composite: exclude !important;
  padding: 1.5px !important;
}
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.float-card__head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15,80,65,.08);
  background: rgba(255,255,255,.4);
}
.float-card__title { margin-left: auto; font-size: .8rem; color: var(--ink-mute); font-family: 'Space Grotesk', sans-serif; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot--green { background: var(--emerald); box-shadow: 0 0 6px var(--emerald-glow); }
.dot--orange { background: var(--orange); box-shadow: 0 0 6px var(--orange-glow); }
.dot--purple { background: var(--purple); box-shadow: 0 0 6px var(--purple-glow); }

.float-card__body { padding: 20px !important; }
.cv-mini { display: flex; gap: 14px; align-items: center; }
.cv-mini__avatar {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--emerald), var(--sky));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 8px 18px rgba(16,185,129,.35);
}
.cv-mini__lines { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ln { height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgba(15,80,65,.16), rgba(15,80,65,.06)); display: block; }
.ln--lg { width: 70%; height: 11px; }
.ln--md { width: 50%; }
.ln--xl { width: 35%; height: 12px; background: linear-gradient(90deg, var(--purple), var(--sky)); margin-bottom: 6px; }
.ln--full { width: 100%; }

.cv-mini__section { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.cv-mini__chips { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; }

.float-tag {
  position: absolute;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.7);
  border: 1.5px solid rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  font-weight: 700;
  font-size: .85rem;
  box-shadow: var(--shadow-1);
  animation: floatY 5s ease-in-out infinite;
  z-index: 10;
}
.float-tag--blue { top: 8%; left: -2%; color: var(--sky); animation-delay: -1s; }
.float-tag--orange { bottom: 18%; left: 6%; color: var(--orange); animation-delay: -2.5s; }
.float-tag--purple { top: 62%; right: -4%; color: var(--purple); animation-delay: -3.8s; }

/* Ensure navbar matches ResumeNest style */
.site-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, .80), rgba(255, 255, 255, .60)) !important;
  backdrop-filter: blur(20px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .6) !important;
  box-shadow: 0 1px 0 rgba(15, 80, 65, .06), 0 8px 24px rgba(15, 80, 65, .04) !important;
}
.brand {
  font-family: 'Space Grotesk', system-ui, sans-serif !important;
  background: linear-gradient(120deg, var(--emerald) 0%, var(--sky) 40%, var(--purple) 80%, var(--orange) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  font-weight: 800 !important;
  letter-spacing: -.02em !important;
}

/* Footer styling overrides to match ResumeNest light mirror */
.footer {
  border-top: 1px solid rgba(15, 80, 65, .10) !important;
  background: var(--mirror-grad), rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(20px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
  color: var(--ink-soft) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 -1px 0 rgba(15,80,65,.06) !important;
  padding: 58px clamp(18px, 5vw, 72px) !important;
}
.footer strong {
  color: var(--ink) !important;
}
.footer a {
  color: var(--ink-soft) !important;
  transition: color 0.2s ease !important;
}
.footer a:hover {
  color: var(--emerald) !important;
}

/* Hero elements */
.hero-preview-shell {
  background: var(--mirror-grad), rgba(255, 255, 255, .4) !important;
  border: 1.5px solid rgba(255, 255, 255, .85) !important;
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, .85) !important;
  backdrop-filter: blur(22px) saturate(160%) !important;
}

.hero-preview-slide {
  border: 1.5px solid rgba(255, 255, 255, .85) !important;
  border-radius: 20px !important;
  box-shadow: var(--shadow-1) !important;
  background: var(--mirror-grad), rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(18px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
  overflow: hidden !important;
  transition: transform .32s cubic-bezier(.23,1,.32,1), box-shadow .32s ease, border-color .32s ease !important;
}
.hero-preview-slide:hover {
  transform: translateY(-8px) rotateY(-3deg) !important;
  box-shadow: var(--shadow-2) !important;
  border-color: rgba(255, 255, 255, .98) !important;
}
.hero-preview-slide span {
  background: rgba(255, 255, 255, .82) !important;
  border: 1px solid rgba(255, 255, 255, .85) !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: var(--shadow-soft) !important;
  color: var(--ink) !important;
  font-weight: 700 !important;
}

.hero-carousel-btn {
  border: 1.5px solid rgba(255, 255, 255, .85) !important;
  background: rgba(255, 255, 255, .80) !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: var(--shadow-soft) !important;
  color: var(--ink) !important;
}
.hero-carousel-btn:hover {
  background: #fff !important;
  transform: translateY(calc(-50% - 2px)) !important;
  box-shadow: var(--shadow-1) !important;
}

.mock-chip {
  background: rgba(255, 255, 255, .80) !important;
  border: 1.5px solid rgba(255, 255, 255, .90) !important;
  backdrop-filter: blur(14px) !important;
  box-shadow: var(--shadow-soft) !important;
  color: var(--ink) !important;
  font-weight: 700 !important;
  border-radius: 16px !important;
}

/* Hero trust badges */
.trust span {
  background: rgba(255, 255, 255, .65) !important;
  border: 1px solid rgba(255, 255, 255, .85) !important;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  color: var(--ink-soft);
}

/* Global categories band background overlay */
.band {
  background: transparent !important;
  color: var(--ink) !important;
}
.band::before {
  display: none !important;
}
.band p, .band .lead {
  color: var(--ink-soft) !important;
}
.band .eyebrow {
  color: var(--emerald) !important;
}
.band .section-title {
  color: var(--ink) !important;
}

.band .stat {
  background: var(--mirror-grad), rgba(255, 255, 255, 0.40) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.75) !important;
  color: var(--ink) !important;
}
.band .stat p {
  color: var(--ink-soft) !important;
}
.band .stat strong {
  background: var(--grad-brand) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}
.band .stat:hover {
  background: var(--mirror-grad), rgba(255, 255, 255, 0.55) !important;
  border-color: rgba(255, 255, 255, 0.90) !important;
}
.band .stat:hover p {
  color: var(--ink) !important;
}

/* PREMIUM stat strip — frosted gradient cards with icon, hairline border,
   soft inner glow, and a measured lift on hover. Beats all glass-card rules. */
.stats-strip {
  gap: 16px !important;
}
.stats-strip .stat {
  overflow: hidden !important;
  height: auto !important;
  min-height: 118px !important;
  padding: 22px 22px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(244, 254, 249, 0.88)) !important;
  border: 1px solid rgba(7, 65, 53, .09) !important;
  border-radius: 18px !important;
  position: relative !important;
  isolation: isolate !important;
  box-shadow:
    0 1px 2px rgba(7, 65, 53, .04),
    0 10px 30px rgba(7, 65, 53, .07) !important;
  transition: transform .35s cubic-bezier(.2,.8,.2,1),
              box-shadow .35s cubic-bezier(.2,.8,.2,1),
              border-color .35s ease !important;
}
/* Premium hairline accent running along the top edge of each card. */
.stats-strip .stat::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 0 auto 0 !important;
  height: 2px !important;
  background: linear-gradient(90deg, var(--emerald), var(--blue), var(--purple)) !important;
  opacity: .55 !important;
  z-index: 5 !important;
}
/* Subtle radial glow anchored top-right for depth. */
.stats-strip .stat::after {
  content: "" !important;
  position: absolute !important;
  top: -40px !important;
  right: -40px !important;
  width: 140px !important;
  height: 140px !important;
  background: radial-gradient(circle, rgba(5, 150, 105, .10), transparent 70%) !important;
  z-index: 1 !important;
  pointer-events: none !important;
}
.stats-strip .stat strong,
.stats-strip .stat p {
  position: relative;
  z-index: 6 !important;
}
.stats-strip .stat .stat__icon {
  position: relative;
  z-index: 6;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  margin-bottom: 6px;
  color: #fff;
  box-shadow: 0 8px 18px rgba(7, 65, 53, .16);
}
.stats-strip .stat .stat__icon svg {
  width: 20px;
  height: 20px;
}
.stats-strip .stat:nth-child(1) .stat__icon { background: linear-gradient(135deg, var(--emerald), var(--emerald-2)); }
.stats-strip .stat:nth-child(2) .stat__icon { background: linear-gradient(135deg, var(--blue), var(--blue-2)); }
.stats-strip .stat:nth-child(3) .stat__icon { background: linear-gradient(135deg, var(--orange), var(--orange-2)); }
.stats-strip .stat:nth-child(4) .stat__icon { background: linear-gradient(135deg, var(--purple), var(--purple-2)); }
.stats-strip .stat p {
  font-size: .82rem !important;
  line-height: 1.4 !important;
}
.stats-strip .stat:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(5, 150, 105, .28) !important;
  box-shadow:
    0 1px 2px rgba(7, 65, 53, .05),
    0 22px 48px rgba(5, 150, 105, .16) !important;
}

/* Ads elements */
.ad {
  background: var(--mirror-grad), rgba(255, 255, 255, 0.45) !important;
  border: 1px dashed rgba(16, 185, 129, .40) !important;
  box-shadow: var(--shadow-soft) !important;
}

/* Blog hero custom layout alignment */
.blog-hero .blog-cover {
  border: 1.5px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: var(--shadow-2) !important;
}
.blog-cta {
  padding: 30px !important;
}

/* Custom blog list container alignment */
.blog-grid {
  gap: 24px !important;
}

/* =========================================================
   LEGAL CARD & MISC CARD PREMIUM OVERRIDES
   ========================================================= */
.legal-card {
  padding: 28px 26px !important;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s ease, border-color .4s ease !important;
}
.legal-card h2 {
  font-family: 'Space Grotesk', system-ui, sans-serif !important;
  font-weight: 800 !important;
  color: var(--ink) !important;
  font-size: clamp(22px, 3vw, 30px) !important;
  margin-bottom: 14px !important;
  letter-spacing: -.02em !important;
}
.legal-card p,
.legal-card li {
  color: var(--ink-soft) !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  line-height: 1.7 !important;
}
.legal-card ul {
  color: var(--ink-soft) !important;
}

/* Price card featured override */
.price-card--featured {
  border: 1.5px solid var(--purple-2) !important;
  box-shadow: 0 30px 60px rgba(139, 92, 246, .18), inset 0 1px 0 rgba(255, 255, 255, .85) !important;
}
.price-card--featured:hover {
  box-shadow: 0 36px 70px rgba(139, 92, 246, .28), inset 0 1px 0 rgba(255, 255, 255, .90) !important;
}
.price-card__ribbon {
  background: linear-gradient(120deg, var(--orange), var(--purple)) !important;
  color: #fff !important;
}

/* Pagination buttons override */
.pagination a,
.pagination-current,
.page-btn {
  background: var(--mirror-grad), rgba(255, 255, 255, .55) !important;
  backdrop-filter: blur(14px) !important;
  border: 1.5px solid rgba(255, 255, 255, .80) !important;
  box-shadow: var(--shadow-soft) !important;
  color: var(--ink) !important;
  font-weight: 800 !important;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
}
.pagination a:hover,
.page-btn:hover {
  transform: translateY(-3px) !important;
  box-shadow: var(--shadow-1) !important;
  border-color: var(--emerald-2) !important;
}
.pagination-current,
.page-btn.active {
  background: linear-gradient(120deg, var(--emerald), var(--sky), var(--purple)) !important;
  background-size: 200% 200% !important;
  color: #fff !important;
  border-color: transparent !important;
}

/* Builder item boxes */
.item-box {
  padding: 14px !important;
}

/* Login card */
.login-card {
  padding: 34px !important;
}

/* Modal card */
.modal-card {
  padding: 26px !important;
}

/* Manager panel */
.manager-panel {
  padding: 22px !important;
}
.manager-panel h2 {
  color: var(--ink) !important;
  font-family: 'Space Grotesk', system-ui, sans-serif !important;
}

/* Admin table override */
.admin-table {
  background: rgba(255, 255, 255, .75) !important;
  border: 1.5px solid rgba(255, 255, 255, .80) !important;
  border-radius: var(--radius) !important;
  overflow: hidden !important;
  box-shadow: var(--shadow-1) !important;
  backdrop-filter: blur(16px) !important;
}
.admin-table th {
  background: rgba(16, 185, 129, .08) !important;
  color: var(--ink-mute) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .6) !important;
}
.admin-table td {
  border-bottom: 1px solid rgba(15, 80, 65, .06) !important;
}

/* Score ring override */
.score-ring {
  background: conic-gradient(var(--emerald) calc(var(--score) * 1%), rgba(15, 80, 65, .10) 0) !important;
}

/* Toast override */
.toast {
  background: linear-gradient(135deg, var(--emerald), var(--sky)) !important;
  box-shadow: var(--shadow-2) !important;
  border-radius: 999px !important;
}

/* Filter bar override */
.filter-bar {
  background: linear-gradient(180deg, rgba(255, 255, 255, .80), rgba(255, 255, 255, .60)) !important;
  backdrop-filter: blur(20px) saturate(160%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .6) !important;
}

/* Filter buttons override */
.filter-btn {
  background: rgba(255, 255, 255, .65) !important;
  border: 1.5px solid rgba(255, 255, 255, .85) !important;
  box-shadow: var(--shadow-soft) !important;
  color: var(--ink) !important;
  font-weight: 700 !important;
  transition: all .25s ease !important;
  backdrop-filter: blur(10px) !important;
}
.filter-btn:hover {
  border-color: var(--emerald-2) !important;
  background: rgba(255, 255, 255, .85) !important;
  transform: translateY(-2px) !important;
}
.filter-btn.active {
  background: linear-gradient(120deg, var(--emerald), var(--sky)) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 8px 20px var(--emerald-glow) !important;
}

/* Sort pill override */
.sort-pill {
  background: rgba(255, 255, 255, .65) !important;
  border: 1.5px solid rgba(255, 255, 255, .85) !important;
  backdrop-filter: blur(14px) !important;
  box-shadow: var(--shadow-soft) !important;
}
.sort-pill span {
  color: var(--emerald) !important;
}
.sort-pill:hover {
  border-color: var(--emerald-2) !important;
  background: rgba(255, 255, 255, .85) !important;
}

/* Search input override */
.search-input, .admin-input, .field input, .field textarea, .field select {
  background: rgba(255, 255, 255, .75) !important;
  border: 1.5px solid rgba(255, 255, 255, .85) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5) !important;
  color: var(--ink) !important;
}
.search-input:focus, .admin-input:focus, .field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--emerald-2) !important;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .12), inset 0 1px 0 rgba(255, 255, 255, .5) !important;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(5, 1fr) !important; gap: 6px !important; padding: 8px !important; }
  .step { flex-direction: column !important; text-align: center !important; gap: 6px !important; padding: 8px 4px !important; }
  .step__label { font-size: .72rem !important; }
  .editor { grid-template-columns: 1fr !important; gap: 12px !important; }
  .device__screen { height: 600px !important; }
}

@media (max-width: 820px) {
  /* Stage animation: make device mock smaller */
  .device { border-radius: 16px !important; }
  .device__screen { height: 480px !important; }
  .stage { margin-top: 0 !important; }

  /* Steps: horizontal scroll on narrow */
  .steps {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 4px !important;
    padding: 6px !important;
  }
  .steps::-webkit-scrollbar { display: none; }
  .step { min-width: 60px !important; padding: 6px 4px !important; }
  .step__num { width: 28px !important; height: 28px !important; font-size: .75rem !important; }
  .step__label { font-size: .65rem !important; }

  /* Scene content scaling */
  .template-row { gap: 8px !important; }
  .tpl { width: 60px !important; }
  .cv-doc--full { width: min(420px, 85%) !important; padding: 20px !important; font-size: .8rem !important; }
  .cv-doc--mini { width: 160px !important; padding: 12px !important; }
  .dl-file { width: 180px !important; }

  /* Float card: reduce for mobile */
  .float-card { max-width: 100% !important; }
  .float-tag { display: none !important; }

  /* Footer override for theme */
  .footer { padding: 42px clamp(14px, 4vw, 48px) !important; }
}

@media (max-width: 640px) {
  .printer-stage { flex-direction: column !important; gap: 10px !important; }
  .download-stage { flex-direction: column !important; gap: 14px !important; }
  .dl-arrow svg { transform: rotate(90deg) !important; }

  /* Device screen: shorter */
  .device__screen { height: 400px !important; }

  /* Scene elements: compact */
  .editor__panel { padding: 12px !important; }
  .field-row { flex-direction: column !important; }
  .cv-doc__chips { gap: 4px !important; }
  .cv-doc__chips .chip { font-size: 10px !important; padding: 3px 7px !important; }
}

@media (max-width: 480px) {
  /* Steps: very compact */
  .steps { grid-template-columns: repeat(5, 1fr) !important; gap: 2px !important; }
  .step__num { width: 24px !important; height: 24px !important; font-size: .7rem !important; }
  .step__label { font-size: .58rem !important; display: none !important; }

  /* Device screen: minimal */
  .device__screen { height: 340px !important; }
  .device__bar { padding: 6px 8px !important; }
  .device__url { font-size: .65rem !important; }

  /* Printer: scale down */
  .printer { width: 180px !important; height: 160px !important; }

  /* Replay button */
  .replay { font-size: .8rem !important; padding: 8px 12px !important; }
}

/* Reading spotlight overlay for blog posts */
.blog-article .wrap.narrow {
  position: relative !important;
  overflow: hidden !important;
}
.blog-article .wrap.narrow * {
  position: relative !important;
  z-index: 2 !important;
}
.blog-article .wrap.narrow .reading-spotlight {
  position: absolute !important;
  width: 220px !important;
  height: 220px !important;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.26) 0%, rgba(255, 255, 255, 0.38) 50%, rgba(52, 211, 153, 0.12) 80%, transparent 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.30) !important;
  border-radius: 50% !important;
  pointer-events: none !important;
  transform: translate(-50%, -50%) !important;
  opacity: 0;
  backdrop-filter: blur(1.5px) !important;
  -webkit-backdrop-filter: blur(1.5px) !important;
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
  transition: opacity 0.35s ease !important;
  z-index: 1 !important;
}

/* Force variables overrides at the end of the cascade */
html, html:root, :root:root {
  /* Colors */
  --emerald: #10b981 !important;
  --emerald-2: #34d399 !important;
  --emerald-3: #6ee7b7 !important;
  --emerald-glow: rgba(16, 185, 129, .35) !important;

  --orange: #f97316 !important;
  --orange-2: #fb923c !important;
  --orange-glow: rgba(249, 115, 22, .35) !important;

  --purple: #8b5cf6 !important;
  --purple-2: #a78bfa !important;
  --purple-glow: rgba(139, 92, 246, .35) !important;

  --sky: #0ea5e9 !important;
  --sky-2: #38bdf8 !important;
  --sky-glow: rgba(14, 165, 233, .30) !important;
  
  --bg: #eaf7f1 !important;
  --bg-2: #ffffff !important;
  --ink: #0f2a26 !important;
  --ink-soft: #2f4e49 !important;
  --ink-mute: #5f7a75 !important;
  --line: rgba(12, 60, 50, .10) !important;
  --line-2: rgba(12, 60, 50, .18) !important;
  
  --shadow-1: 0 10px 30px rgba(15, 80, 65, .10) !important;
  --shadow-2: 0 22px 60px rgba(15, 80, 65, .16) !important;
  --shadow-soft: 0 6px 18px rgba(15, 80, 65, .08) !important;
  
  --radius: 18px !important;
  --radius-sm: 12px !important;
  --radius-lg: 26px !important;
  
  --mirror-grad: linear-gradient(135deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.40) 35%, rgba(255, 255, 255, 0.62) 70%, rgba(255, 255, 255, 0.30) 100%) !important;
  
  /* Fonts */
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif !important;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif !important;
}

/* =========================================================
   PREMIUM FEATURE GRID — Resume Quality section
   Frosted cards, gradient icon tile, accent top-hairline,
   measured hover lift. Shares the stats-strip visual language.
   ========================================================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.feature-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 26px 24px;
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.97), rgba(244, 254, 249, 0.86));
  border: 1px solid rgba(7, 65, 53, .09);
  box-shadow: 0 1px 2px rgba(7, 65, 53, .04), 0 12px 32px rgba(7, 65, 53, .07);
  transition: transform .4s cubic-bezier(.2,.8,.2,1),
              box-shadow .4s cubic-bezier(.2,.8,.2,1),
              border-color .4s ease;
}
/* Accent hairline along the top edge. */
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-a, var(--emerald)), var(--accent-b, var(--blue)));
  opacity: .6;
  z-index: 5;
}
/* Soft radial glow in the top-right corner. */
.feature-card::after {
  content: "";
  position: absolute;
  top: -46px;
  right: -46px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--accent-glow, rgba(5, 150, 105, .12)), transparent 70%);
  z-index: 1;
  pointer-events: none;
}
.feature-card__icon {
  position: relative;
  z-index: 6;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  margin-bottom: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-a, var(--emerald)), var(--accent-b, var(--emerald-2)));
  box-shadow: 0 10px 22px rgba(7, 65, 53, .18);
}
.feature-card__icon svg {
  width: 24px;
  height: 24px;
}
.feature-card h3 {
  position: relative;
  z-index: 6;
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -.01em;
  color: var(--ink);
}
.feature-card p {
  position: relative;
  z-index: 6;
  margin: 0;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(5, 150, 105, .26);
  box-shadow: 0 1px 2px rgba(7, 65, 53, .05), 0 26px 54px rgba(5, 150, 105, .16);
}
/* Per-card accent theming for variety. */
.feature-card[data-accent="emerald"] { --accent-a: var(--emerald); --accent-b: var(--emerald-2); --accent-glow: rgba(5, 150, 105, .12); }
.feature-card[data-accent="blue"]    { --accent-a: var(--blue);    --accent-b: var(--blue-2);    --accent-glow: rgba(14, 165, 233, .14); }
.feature-card[data-accent="orange"]  { --accent-a: var(--orange);  --accent-b: var(--orange-2);  --accent-glow: rgba(249, 115, 22, .12); }
.feature-card[data-accent="purple"]  { --accent-a: var(--purple);  --accent-b: var(--purple-2);  --accent-glow: rgba(139, 92, 246, .14); }

/* Tablet: 2 columns */
@media (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Mobile: single column */
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   PREMIUM "WHY" SECTION — dark glassmorphism on .band
   Sticky headline column + stacked feature rows with
   glass tiles, gradient icon, hairline light border, glow.
   ========================================================= */
.why-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.why-head {
  position: sticky;
  top: 96px;
}
.why-head .lead {
  color: rgba(255, 255, 255, .70) !important;
  font-size: 1.02rem;
  margin-top: 18px;
  line-height: 1.65;
  max-width: 38ch;
}
.why-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-display);
  color: #06241c;
  background: linear-gradient(135deg, #fff, #e8fff5);
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
}
.why-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(157, 245, 206, .30);
}
.why-features {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.why-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 26px 28px;
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .22);
  transition: transform .4s cubic-bezier(.2,.8,.2,1),
              border-color .4s ease,
              box-shadow .4s ease;
}
/* Accent hairline on the left edge. */
.why-card::before {
  content: "";
  position: absolute;
  left: 0; top: 18px; bottom: 18px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent-a, #34d399), var(--accent-b, #38bdf8));
  opacity: .85;
}
/* Soft accent glow top-right. */
.why-card::after {
  content: "";
  position: absolute;
  top: -50px; right: -50px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, var(--accent-glow, rgba(52, 211, 153, .20)), transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.why-card__icon {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-a, #34d399), var(--accent-b, #10b981));
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .30);
}
.why-card__icon svg { width: 24px; height: 24px; }
.why-card__body { position: relative; z-index: 2; }
.why-card h3 {
  margin: 2px 0 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -.01em;
  color: #fff;
}
.why-card p {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: .92rem;
  line-height: 1.6;
}
.why-card:hover {
  transform: translateX(4px);
  border-color: rgba(255, 255, 255, .28);
  box-shadow: 0 24px 56px rgba(0, 0, 0, .30), 0 0 0 1px var(--accent-a, rgba(52,211,153,.4)) inset;
}
.why-card[data-accent="emerald"] { --accent-a: #34d399; --accent-b: #10b981; --accent-glow: rgba(52, 211, 153, .22); }
.why-card[data-accent="blue"]    { --accent-a: #38bdf8; --accent-b: #0ea5e9; --accent-glow: rgba(56, 189, 248, .22); }
.why-card[data-accent="orange"]  { --accent-a: #fb923c; --accent-b: #f97316; --accent-glow: rgba(251, 146, 60, .20); }
.why-card[data-accent="purple"]  { --accent-a: #a78bfa; --accent-b: #8b5cf6; --accent-glow: rgba(167, 139, 250, .22); }

/* Responsive */
@media (max-width: 980px) {
  .why-layout { grid-template-columns: 1fr; gap: 32px; }
  .why-head { position: static; }
}


