/* NEXAIT UNIVERSAL 1.0 By JSLEE */

:root{
  --bg0:#070b18;
  --bg1:#0b1021;

  --ink: rgba(255,255,255,.94);
  --muted: rgba(255,255,255,.72);
  --muted2: rgba(255,255,255,.56);

  --card: rgba(255,255,255,.08);
  --line: rgba(255,255,255,.14);
  --shadow: 0 16px 60px rgba(0,0,0,.44);

  --accent:#7C3AED;
  --accent2:#22D3EE;

  --r: 20px;
  --r2: 26px;

  --max: 420px; /* iPhone 16 Pro */
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:'NanumSquareRound', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans KR", Arial;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
  -webkit-tap-highlight-color: transparent;
}

.bg{
  position:fixed; inset:0;
  pointer-events:none;
  z-index:-1;
  overflow:hidden;
  transform: translateZ(0);
}
.mesh{
  position:absolute; inset:-18%;
  background:
    radial-gradient(980px 560px at 18% 10%, rgba(124,58,237,.14), transparent 62%),
    radial-gradient(900px 560px at 92% 20%, rgba(34,211,238,.10), transparent 60%),
    radial-gradient(980px 640px at 50% 120%, rgba(124,58,237,.08), transparent 64%);
  filter: saturate(1.05);
}
.orb{
  position:absolute;
  width:520px; height:520px;
  border-radius:999px;
  filter: blur(78px);
  opacity:.30;
  will-change: transform;
  animation: floaty 26s ease-in-out infinite;
}
.orb.o1{ left:-240px; top:-230px; background:rgba(124,58,237,.55); }
.orb.o2{ right:-280px; top:90px; background:rgba(34,211,238,.45); animation-duration: 30s; }
.orb.o3{ left:14%; bottom:-360px; background:rgba(124,58,237,.38); animation-duration: 34s; }

@keyframes floaty{
  0%,100%{ transform: translate3d(0,0,0) scale(1); }
  50%{ transform: translate3d(10px, 14px, 0) scale(1.01); }
}

.app{
  max-width: var(--max);
  margin: 16px auto 40px;
  padding: 0 14px calc(env(safe-area-inset-bottom) + 14px);
}

.top{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
  margin-bottom: 12px;
}
.brand{ display:flex; align-items:center; gap:10px; }
.logo{
  width:46px; height:46px;
  border-radius: 16px;
  display:grid; place-items:center;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  color: rgba(255,255,255,.92);
}
.logoSvg{ width:24px; height:24px; }
.brandTitle{ font-weight: 950; letter-spacing:-.2px; font-size: 15px; }
.brandSub{ font-size:12px; color:var(--muted2); margin-top:2px; }

.topActions{ display:flex; gap:8px; }
.pillIcon{
  width:34px; height:34px;
  display:grid; place-items:center;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px) saturate(150%);
  color: rgba(255,255,255,.82);
}
.icoSvg{ width:18px; height:18px; }

.card{
  border-radius: var(--r2);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  box-shadow: var(--shadow);
  overflow:hidden;
  backdrop-filter: blur(14px) saturate(160%);
}

.cardHead{
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display:flex;
  flex-direction:column;
  gap:10px;
}

.progressWrap{
  position:relative;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  overflow:hidden;
}
.progressBar{
  height:100%;
  width:0%;
  background: linear-gradient(90deg, rgba(124,58,237,.95), rgba(34,211,238,.85));
  border-radius:999px;
  transition: width .32s ease;
}

.metaRow{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.chip{
  display:inline-flex; align-items:center; gap:8px;
  padding: 7px 11px;
  font-size:12px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.88);
}
.chipGlow{
  border-color: rgba(124,58,237,.20);
  background: rgba(124,58,237,.10);
}
.mbChip{ margin-bottom: 14px; }

.metaText{ font-size:12px; color:var(--muted); }

.sectionHead{ display:grid; gap:10px; }

.screen{
  padding: 16px 16px 18px;
  display:none;
  animation: in .24s ease both;
}
.screen--active{ display:block; }
@keyframes in{
  from{ opacity:0; transform: translateY(10px); filter: blur(6px); }
  to{ opacity:1; transform: translateY(0); filter: blur(0); }
}

.h1{ margin: 0 0 10px; font-size: 30px; letter-spacing:-.4px; line-height:1.12; }
.h2{ margin: 0 0 8px; font-size: 24px; letter-spacing:-.2px; }
.p{ margin:0 0 12px; color:var(--muted); line-height:1.65; }
.p b{ color: var(--ink); }
.tiny{ display:block; margin-top:8px; font-size:12px; color:var(--muted2); }
.muted{ color:var(--muted); }
.center{ text-align:center; }

/* INTRO */
.introHero{ display:grid; gap:12px; }
.introBadge{
  display:inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.76);
  font-size: 11px;
  letter-spacing:.12em;
}
.introKpis{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:10px;
}
.miniCard{
  padding: 12px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.14);
  display:flex;
  gap:10px;
  align-items:center;
}
.miniIcon{
  width:34px; height:34px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  display:grid; place-items:center;
  color: rgba(255,255,255,.86);
}
.miniSvg{ width:18px; height:18px; }
.miniTxt{ display:flex; flex-direction:column; gap:2px; }
.miniTxt b{ font-weight: 950; font-size: 13px; }
.miniTxt span{ font-size: 11px; color: var(--muted2); }

.introGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
.infoCard{
  padding: 12px 12px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
}
.infoTop{ display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.dot{
  width:8px; height:8px; border-radius:999px;
  background: rgba(34,211,238,.75);
  box-shadow: 0 0 0 4px rgba(34,211,238,.10);
}
.infoTop b{ font-weight: 950; }
.infoList{ display:grid; gap:6px; }
.li{ font-size:12px; color: rgba(255,255,255,.70); line-height:1.55; }

/* Buttons */
.btn{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--ink);
  padding: 12px 14px;
  border-radius: 16px;
  cursor:pointer;
  transition: transform .12s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, filter .18s ease;
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  user-select:none;
  min-height: 46px;
  font-weight: 950;
}
.btn:active{ transform: translateY(1px); }
.btn:disabled{ opacity:.5; cursor:not-allowed; filter: grayscale(.2); }
.btnPrimary{
  background: rgba(124,58,237,.92);
  border-color: rgba(124,58,237,.55);
  box-shadow: 0 16px 45px rgba(124,58,237,.18);
}
.btnPrimary:hover{ background: rgba(124,58,237,.98); }
.btnGhost{ background: rgba(0,0,0,.16); }
.btnArrow{ width:18px; height:18px; opacity:.92; }

/* quiz */
.qTop{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
  margin-bottom: 10px;
}
.qBadge{
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  font-size: 12px;
  font-weight: 950;
}
.qHint{ font-size: 12px; color: var(--muted2); }

.qBox{
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.14);
  padding: 14px;
  position:relative;
  overflow:hidden;
  transform: translateZ(0);
}
.qBox::before{
  content:"";
  position:absolute; inset:-26px;
  background:
    radial-gradient(420px 200px at 12% 18%, rgba(124,58,237,.10), transparent 70%),
    radial-gradient(520px 220px at 86% 26%, rgba(34,211,238,.08), transparent 72%);
  opacity:.85;
  pointer-events:none;
}
.qText{
  position:relative;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.5;
  margin-bottom: 12px;
}

/* ✅ 토스 느낌: 선택 카드 스타일 */
.tossScale{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
  position:relative;
}
.scaleBtn{
  width:100%;
  padding: 14px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.90);
  cursor:pointer;
  transition: transform .14s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
  min-height: 56px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.scaleBtn:active{ transform: translateY(1px); }
.scaleBtn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.20);
}
.scaleLeft{
  display:flex; align-items:center; gap:12px;
}
.scaleDot{
  width:24px; height:24px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.18);
  display:grid; place-items:center;
  color: rgba(255,255,255,.65);
}
.scaleDot svg{ width:14px; height:14px; opacity:0; transform: scale(.7); transition: .18s ease; }
.scaleTxt{
  display:flex; flex-direction:column;
  gap:2px;
}
.scaleTxt strong{ display:block; font-size: 14px; letter-spacing:-.1px; }
.scaleTxt span{ display:block; font-size: 12px; color: var(--muted2); }

.scaleBtn.selected{
  border-color: rgba(124,58,237,.55);
  background: rgba(124,58,237,.14);
  box-shadow: 0 16px 50px rgba(124,58,237,.14);
}
.scaleBtn.selected .scaleDot{
  border-color: rgba(34,211,238,.35);
  background: rgba(0,0,0,.10);
  box-shadow: 0 0 0 6px rgba(34,211,238,.10);
}
.scaleBtn.selected .scaleDot svg{
  opacity:1;
  transform: scale(1);
  color: rgba(255,255,255,.92);
}

.scaleRight{
  font-size:12px;
  color: rgba(255,255,255,.55);
  font-weight: 950;
  min-width: 32px;
  text-align:right;
}

/* ✅ 질문 전환 애니메이션 */
.qSwapOutL{ animation: qOutL .18s ease both; }
.qSwapOutR{ animation: qOutR .18s ease both; }
.qSwapIn{ animation: qIn .22s ease both; }
@keyframes qOutL{ from{ opacity:1; transform: translateX(0); } to{ opacity:0; transform: translateX(-14px); } }
@keyframes qOutR{ from{ opacity:1; transform: translateX(0); } to{ opacity:0; transform: translateX(14px); } }
@keyframes qIn{ from{ opacity:0; transform: translateX(12px); } to{ opacity:1; transform: translateX(0); } }

.nav{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
  margin-top: 12px;
}
.nav3{ grid-template-columns: 1fr 1fr 1fr; }

/* form */
.formGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
.field{
  display:flex; flex-direction:column; gap:8px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
}
.fieldSpan2{ grid-column: span 2; }
.label{ font-size: 12px; color: var(--muted); }
.req{ color: rgba(34,211,238,.92); }
.field input, .field select{
  width:100%;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: var(--ink);
  padding: 12px 12px;
  outline:none;
  min-height: 44px;
}
.field input:focus, .field select:focus{
  border-color: rgba(34,211,238,.40);
  box-shadow: 0 0 0 4px rgba(34,211,238,.10);
}
.row{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
.help{ font-size: 12px; color: var(--muted2); }

.error{
  margin-top: 10px;
  padding: 12px;
  border-radius: 16px;
  border:1px solid rgba(255,120,120,.35);
  background: rgba(255,120,120,.10);
  color: rgba(255,255,255,.92);
}
.hidden{ display:none !important; }

/* LOADING */
.loadingWrap{ display:grid; gap:12px; }
.aiHeader{
  display:flex; flex-direction:column; gap:6px;
  padding: 12px 14px;
  border-radius: 20px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
}
.aiTitle{
  display:flex; align-items:center; gap:10px;
  font-weight: 950;
  font-size: 15px;
  letter-spacing:-.2px;
}
.pulseDot{
  width:10px; height:10px; border-radius:999px;
  background: rgba(34,211,238,.85);
  box-shadow: 0 0 0 6px rgba(34,211,238,.10);
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse{
  0%,100%{ transform: scale(1); opacity:.85; }
  50%{ transform: scale(1.22); opacity:1; }
}
.aiSub{ font-size:12px; color: var(--muted2); }

.loadingGrid{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
}
.ringWrap{
  display:grid;
  gap:12px;
  justify-items:center;
  padding: 14px;
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
}
.progressRing{
  width: 210px; height: 210px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  position:relative;
  background: rgba(0,0,0,.16);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
}
.premiumRing{ overflow:hidden; }
.ringBackGlow{
  position:absolute; inset:-30%;
  background:
    radial-gradient(420px 220px at 35% 30%, rgba(124,58,237,.22), transparent 70%),
    radial-gradient(460px 240px at 70% 70%, rgba(34,211,238,.16), transparent 72%);
  filter: blur(16px);
  opacity:.9;
  animation: glowDrift 4.2s ease-in-out infinite;
}
@keyframes glowDrift{
  0%,100%{ transform: translateY(0) scale(1); opacity:.85; }
  50%{ transform: translateY(-2px) scale(1.02); opacity:1; }
}
.ringTicks{
  position:absolute; inset:0;
  background:
    repeating-conic-gradient(
      from -90deg,
      rgba(255,255,255,.16) 0deg 1deg,
      transparent 1deg 10deg
    );
  mask: radial-gradient(circle at 50% 50%, transparent 0 58%, #000 60% 100%);
  opacity:.42;
}
.orbitDot{
  position:absolute;
  left:50%; top:50%;
  width:10px; height:10px;
  border-radius:999px;
  background: rgba(255,255,255,.95);
  box-shadow:
    0 0 0 6px rgba(34,211,238,.10),
    0 0 22px rgba(34,211,238,.22);
  transform: translate(-50%,-50%);
  opacity:.0;
  transition: opacity .25s ease;
}

.ringSvg{
  width: 210px; height: 210px;
  position:absolute;
  inset:0;
  transform: rotate(-90deg);
  z-index:1;
}
.ringTrack{
  fill: none;
  stroke: rgba(255,255,255,.10);
  stroke-width: 11;
}
.ringProg{
  fill:none;
  stroke: url(#rg);
  stroke-width: 11;
  stroke-linecap: round;
  filter: url(#glow);
  stroke-dasharray: 276.46;
  stroke-dashoffset: 276.46;
  transition: stroke-dashoffset .16s ease;
}
.ringCenter{
  position:relative;
  z-index:2;
  width: 150px; height: 150px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  display:grid; place-items:center;
}
.ringCenter::after{
  content:"";
  position:absolute; inset:-20%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.12), transparent);
  transform: translateX(-70%) rotate(10deg);
  opacity:.22;
  animation: shine 3.8s ease-in-out infinite;
  pointer-events:none;
}
@keyframes shine{
  0%,100%{ transform: translateX(-70%) rotate(10deg); opacity:.12; }
  50%{ transform: translateX(70%) rotate(10deg); opacity:.28; }
}
.ringNum{ font-size: 40px; font-weight: 950; }
.ringTxt{ font-size: 12px; color: var(--muted2); letter-spacing:.08em; }

.micro{
  width: 100%;
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:10px;
}
.microItem{
  padding: 10px 10px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.microLabel{ font-size:11px; color: var(--muted2); }
.microVal{ margin-top:6px; font-weight: 950; }

.anPanel{
  padding: 14px;
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
}
.anHead{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.anTitle{ font-weight: 950; }
.anBadge{
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}

.bars{ margin-top: 12px; display:grid; gap:10px; }
.barRow{
  display:grid;
  grid-template-columns: 78px 1fr 42px;
  align-items:center;
  gap:10px;
}
.barName{ font-size:12px; color: var(--muted); }
.barTrack{
  height: 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.20);
  overflow:hidden;
}
.barFill{
  height:100%;
  width:0%;
  border-radius:999px;
  background: linear-gradient(90deg, rgba(124,58,237,.95), rgba(34,211,238,.85));
  transition: width .32s ease;
}
.barPct{ font-size:12px; color: var(--muted2); text-align:right; }

.steps{
  margin-top: 12px;
  display:grid;
  gap:8px;
}
.stepItem{
  display:flex; align-items:center; gap:10px;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.stepItem .dot{
  width:10px; height:10px; border-radius:999px;
  background: rgba(255,255,255,.18);
  box-shadow: 0 0 0 4px rgba(255,255,255,.05);
}
.stepItem.active .dot{
  background: rgba(34,211,238,.85);
  box-shadow: 0 0 0 4px rgba(34,211,238,.12);
}
.stepItem.done .dot{
  background: rgba(124,58,237,.85);
  box-shadow: 0 0 0 4px rgba(124,58,237,.12);
}
.quote{
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: 18px;
  border:1px dashed rgba(255,255,255,.16);
  color: rgba(255,255,255,.84);
  background: rgba(0,0,0,.12);
  font-size: 12px;
}

/* RESULT */
.resultTop{
  display:flex;
  gap:12px;
  align-items:flex-start;
  justify-content:space-between;
  flex-wrap:wrap;
}
.resultLeft{ flex: 1 1 240px; min-width: 240px; }

.scoreCard{
  width: 220px;
  padding: 14px;
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.14);
  text-align:center;
}
.donut{
  width: 190px; height: 190px;
  border-radius: 999px;
  margin: 0 auto 10px;
  background: radial-gradient(closest-side, rgba(0,0,0,.38), rgba(0,0,0,.14));
  border: 1px solid rgba(255,255,255,.12);
  display:grid; place-items:center;
  box-shadow: 0 18px 60px rgba(0,0,0,.30);
  position:relative;
  overflow:hidden;
}
.donutSvg{
  position:absolute;
  inset: 0;
  width:100%;
  height:100%;
  transform: rotate(-90deg);
  z-index:0;
}
.donutTrack{
  fill: none;
  stroke: rgba(255,255,255,.12);
  stroke-width: 10;
}
.donutProg{
  fill: none;
  stroke: url(#scoreGrad);
  stroke-width: 10;
  stroke-linecap: round;
  filter: url(#scoreGlow);
  stroke-dasharray: 289;
  stroke-dashoffset: 289;
  transition: stroke-dashoffset 900ms cubic-bezier(.2,.95,.2,1);
}

.donut::after{
  content:"";
  position:absolute; inset:-30%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.12), transparent);
  transform: translateX(-70%) rotate(10deg);
  opacity:.18;
  animation: shine 4.4s ease-in-out infinite;
  pointer-events:none;
}
.donutIn{
  width: 140px; height: 140px;
  border-radius: 999px;
  background: rgba(0,0,0,.24);
  border: 1px solid rgba(255,255,255,.10);
  display:grid; place-items:center;
  position:relative;
  z-index:1;
}
.scoreNum{ font-size: 42px; font-weight: 950; }
.scoreLbl{ font-size: 12px; color: var(--muted2); }
.scoreMeta{ font-size: 12px; color: var(--muted); }

.vizGrid{
  margin-top: 12px;
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
}
.vizCard{
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
  overflow:hidden;
  position:relative;
}
.vizCard::before{
  content:"";
  position:absolute; inset:-30px;
  background:
    radial-gradient(520px 240px at 18% 20%, rgba(124,58,237,.10), transparent 70%),
    radial-gradient(520px 240px at 86% 70%, rgba(34,211,238,.08), transparent 72%);
  opacity:.85;
  pointer-events:none;
}
.vizHead{
  position:relative;
  padding: 14px 14px 8px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
  z-index:1;
}
.vizTitle{ font-weight: 950; }
.vizHint{ font-size: 12px; color: var(--muted2); }
.vizBody{ position:relative; padding: 6px 10px 12px; z-index:1; }
.vizSvg{ width:100%; height:auto; display:block; }

.kpiRow{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:10px;
}
.kpi{
  padding: 14px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
}
.kTitle{ font-size:12px; color: var(--muted2); }
.kVal{ margin-top:6px; font-weight: 950; font-size: 16px; }

.insightGrid{
  margin-top: 12px;
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
}
.insightCard{
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
  padding: 14px;
  position:relative;
  overflow:hidden;
}
.insightCard::after{
  content:"";
  position:absolute; inset:-30px;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.10), transparent);
  transform: translateX(-70%) rotate(10deg);
  opacity:.12;
  animation: shine 5.0s ease-in-out infinite;
  pointer-events:none;
}
.insightHead{
  position:relative;
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
  margin-bottom: 10px;
}
.insightTitle{
  display:flex; align-items:center; gap:10px;
  font-weight: 950;
}
.iIcon{
  width:34px; height:34px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  display:grid; place-items:center;
  color: rgba(255,255,255,.86);
}
.iIcon svg{ width:18px; height:18px; }
.insightBadge{
  font-size:12px;
  padding: 7px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.78);
}
.insightBody{ position:relative; color: rgba(255,255,255,.84); line-height:1.75; }
.insightList{ margin-top: 10px; display:grid; gap:8px; }
.insightItem{
  display:flex; gap:10px; align-items:flex-start;
  padding: 10px 12px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.bullet{
  width:10px; height:10px; border-radius:999px;
  margin-top: 6px;
  background: rgba(34,211,238,.78);
  box-shadow: 0 0 0 4px rgba(34,211,238,.10);
}
.insightItem strong{ font-weight: 950; }
.insightItem span{ color: rgba(255,255,255,.72); font-size: 12px; display:block; margin-top:4px; }

.actionPanel{
  margin-top: 12px;
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(124,58,237,.10);
  padding: 14px;
  position:relative;
  overflow:hidden;
}
.actionPanel::before{
  content:"";
  position:absolute; inset:-30px;
  background:
    radial-gradient(520px 240px at 20% 30%, rgba(34,211,238,.10), transparent 70%),
    radial-gradient(620px 280px at 80% 70%, rgba(255,255,255,.10), transparent 72%);
  opacity:.8;
  pointer-events:none;
}
.actionPanel > *{ position:relative; z-index:1; }
.actionTitle{ font-weight: 950; margin-bottom: 8px; }
.actionGrid{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
}
.actionBox{
  padding: 12px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.10);
}
.actionBox b{ display:block; font-weight: 950; }
.actionBox span{ display:block; margin-top:6px; color: rgba(255,255,255,.78); font-size: 12px; line-height:1.65; }

.tags{
  margin-top: 12px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.tag{
  padding: 9px 11px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  font-size: 12px;
  color: rgba(255,255,255,.84);
}

/* letter */
.paper{
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  padding: 14px;
  box-shadow: 0 16px 50px rgba(0,0,0,.26);
  position:relative;
  overflow:hidden;
}
.paper::before{
  content:"";
  position:absolute;
  inset:-30px;
  background:
    radial-gradient(520px 240px at 10% 10%, rgba(124,58,237,.10), transparent 70%),
    radial-gradient(540px 260px at 90% 20%, rgba(34,211,238,.08), transparent 70%);
  opacity:.9;
  pointer-events:none;
}
.paperTop, .paperBody, .paperFrom{ position:relative; z-index:1; }

.paperTop{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
  margin-bottom: 10px;
}
.stamp{
  width:40px; height:40px; border-radius: 14px;
  display:grid; place-items:center;
  background: rgba(124,58,237,.20);
  border: 1px solid rgba(124,58,237,.28);
  color: rgba(255,255,255,.90);
}
.stampSvg{ width:18px; height:18px; }
.toLine{ font-weight: 950; }
.dateLine{ font-size: 12px; color: var(--muted2); }
.paperBody{
  margin: 10px 0 14px;
  line-height: 1.85;
  color: rgba(255,255,255,.92);
  font-size: 15px;
  white-space: pre-wrap;
}
.paperFrom{
  display:flex; justify-content:flex-end; gap:8px;
}

/* share page */
.shareGrid{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
}
.sharePanel{
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.14);
  padding: 14px;
  display:grid;
  gap:10px;
}
.meCard{
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.meTitle{ font-size:12px; color: var(--muted2); }
.meName{ margin-top:6px; font-size: 16px; }
.meHint{ margin-top:6px; font-size: 12px; color: var(--muted); }

.photoBox{ display:grid; gap:10px; }
.photo{
  width:100%;
  aspect-ratio: 16/10;
  border-radius: 20px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  display:grid; place-items:center;
  position:relative;
  transform: translateZ(0);
}
.photoStack .phImg{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  display:block;
  will-change: transform, opacity, filter;
}
.phFake{ opacity:1; transition: opacity .35s ease; }
.phReal{ opacity:0; transition: opacity .35s ease; }

.fxGlow{
  position:absolute; inset:-30%;
  background:
    radial-gradient(520px 280px at 20% 20%, rgba(34,211,238,.28), transparent 70%),
    radial-gradient(680px 340px at 80% 35%, rgba(124,58,237,.32), transparent 72%),
    radial-gradient(720px 380px at 50% 70%, rgba(255,255,255,.10), transparent 75%);
  opacity:0;
  filter: blur(18px);
  pointer-events:none;
}
.fxFlash{
  position:absolute; inset:-30%;
  background: radial-gradient(760px 420px at 50% 40%, rgba(255,255,255,.92), transparent 70%);
  opacity:0;
  filter: blur(10px);
  pointer-events:none;
}
.fxScan{
  position:absolute; inset:-20%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  opacity:0;
  transform: translateX(-65%) rotate(10deg);
  pointer-events:none;
  filter: blur(1px);
}

.sparkles{
  position:absolute; inset:0;
  pointer-events:none;
  opacity:0;
}
.sparkles span{
  position:absolute;
  width:6px; height:6px;
  border-radius:999px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 0 18px rgba(34,211,238,.30);
  opacity:0;
}
.sparkles span:nth-child(1){ left:12%; top:18%; }
.sparkles span:nth-child(2){ left:22%; top:72%; }
.sparkles span:nth-child(3){ left:38%; top:30%; }
.sparkles span:nth-child(4){ left:48%; top:62%; }
.sparkles span:nth-child(5){ left:64%; top:22%; }
.sparkles span:nth-child(6){ left:78%; top:44%; }
.sparkles span:nth-child(7){ left:86%; top:20%; }
.sparkles span:nth-child(8){ left:14%; top:46%; }
.sparkles span:nth-child(9){ left:32%; top:54%; }
.sparkles span:nth-child(10){ left:56%; top:40%; }
.sparkles span:nth-child(11){ left:70%; top:70%; }
.sparkles span:nth-child(12){ left:90%; top:64%; }
.sparkles span:nth-child(13){ left:8%; top:66%; }
.sparkles span:nth-child(14){ left:44%; top:18%; }
.sparkles span:nth-child(15){ left:74%; top:10%; }

.afterGlow{
  position:absolute; inset:0;
  display:grid;
  place-items:center;
  gap:6px;
  opacity:0;
  pointer-events:none;
  background: radial-gradient(560px 260px at 50% 40%, rgba(124,58,237,.18), transparent 70%);
}
.afterMonogram{
  width: 56px; height: 56px;
  border-radius: 18px;
  display:grid; place-items:center;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.14);
  font-weight: 950;
  letter-spacing: .02em;
}
.afterText{
  font-size: 12px;
  color: rgba(255,255,255,.65);
}

.photoFallback{
  position:absolute; inset:0;
  display:none;
  place-items:center;
  gap:6px;
  background: rgba(0,0,0,.22);
  text-align:center;
  padding: 14px;
}
.phFallbackTitle{ font-weight: 950; }
.phFallbackSub{ font-size: 12px; color: rgba(255,255,255,.65); }

.photo.isMissing .photoFallback{ display:grid; }
.photo.isMissing .afterGlow{ opacity:0 !important; }

.photo.eggIdle .phFake{ opacity:1; transform: scale(1); filter: saturate(1) contrast(1); }
.photo.eggIdle .phReal{ opacity:0; }
.photo.eggIdle .fxGlow, .photo.eggIdle .fxFlash, .photo.eggIdle .fxScan, .photo.eggIdle .sparkles{ opacity:0; }
.photo.eggIdle .afterGlow{ opacity:0; }

@keyframes scanSweep{
  from{ transform: translateX(-70%) rotate(10deg); opacity:0; }
  30%{ opacity:1; }
  to{ transform: translateX(70%) rotate(10deg); opacity:0; }
}
@keyframes flashPop{
  0%{ opacity:0; transform: scale(.98); }
  25%{ opacity:1; transform: scale(1.02); }
  100%{ opacity:0; transform: scale(1.08); }
}
@keyframes fakeCharge{
  0%{ transform: scale(1); filter: saturate(1) contrast(1) blur(0); }
  55%{ transform: scale(1.06); filter: saturate(1.18) contrast(1.08) blur(1px); }
  100%{ transform: scale(1.10); filter: saturate(1.24) contrast(1.12) blur(2px); }
}
@keyframes realSettle{
  0%{ transform: scale(1.04); filter: saturate(1.08) contrast(1.06); }
  100%{ transform: scale(1.01); filter: saturate(1.04) contrast(1.03); }
}
@keyframes realBreathe{
  0%,100%{ transform: scale(1.01); }
  50%{ transform: scale(1.03); }
}
@keyframes sparkle{
  0%{ opacity:0; transform: scale(.6); }
  35%{ opacity:1; transform: scale(1.15); }
  100%{ opacity:0; transform: scale(.7); }
}
@keyframes glowRise{
  0%{ opacity:0; transform: scale(.98); }
  60%{ opacity:1; transform: scale(1.03); }
  100%{ opacity:.15; transform: scale(1.06); }
}

.photo.eggCharge .fxGlow{ opacity:1; animation: glowRise 900ms ease-out both; }
.photo.eggCharge .phFake{ animation: fakeCharge 900ms ease-out both; }
.photo.eggCharge .fxScan{ opacity:1; animation: scanSweep 900ms ease-out both; }
.photo.eggCharge .sparkles{ opacity:1; }
.photo.eggCharge .sparkles span{ animation: sparkle 820ms ease-out both; }
.photo.eggCharge .sparkles span:nth-child(odd){ animation-delay: 60ms; }
.photo.eggCharge .sparkles span:nth-child(3n){ animation-delay: 140ms; }
.photo.eggCharge .sparkles span:nth-child(4n){ animation-delay: 220ms; }

.photo.eggReveal .fxFlash{ opacity:1; animation: flashPop 580ms ease-out both; }
.photo.eggReveal .fxScan{ opacity:1; animation: scanSweep 580ms ease-out both; }
.photo.eggReveal .phFake{ opacity:0; transition: opacity 220ms ease; }
.photo.eggReveal .phReal{
  opacity:1;
  transition: opacity 220ms ease;
  animation: realSettle 700ms ease-out both, realBreathe 2.8s ease-in-out 700ms infinite;
}
.photo.eggReveal .afterGlow{ opacity:0; }

/* timeline */
.egg{
  padding: 14px;
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
  overflow:hidden;
  position:relative;
}
.egg.isFuture{
  border-color: rgba(34,211,238,.16);
  background: rgba(34,211,238,.06);
}
.eggBadge{
  display:inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.12);
  font-size:11px;
  letter-spacing:.12em;
  color: rgba(255,255,255,.70);
}
.eggTitle{
  margin-top: 10px;
  font-size: 18px;
  font-weight: 950;
  transition: .22s ease;
}
.eggSub{
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted2);
  transition: .22s ease;
}

.timelineStage{
  margin-top: 12px;
  position:relative;
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
  overflow:hidden;
  height: 330px;
}
.timelineFog{
  position:absolute; inset:0;
  background:
    radial-gradient(520px 220px at 30% 20%, rgba(124,58,237,.10), transparent 70%),
    radial-gradient(520px 240px at 75% 70%, rgba(34,211,238,.08), transparent 72%);
  opacity:1;
  pointer-events:none;
}
.egg.isFuture .timelineFog{
  background:
    radial-gradient(520px 220px at 30% 20%, rgba(34,211,238,.10), transparent 70%),
    radial-gradient(520px 240px at 75% 70%, rgba(124,58,237,.06), transparent 72%);
}
.timelineViewport{
  position:absolute; inset:0;
  display:block;
  padding: 18px 16px;
}

.tCard{
  position:absolute;
  left:50%;
  top:50%;
  width: calc(100% - 12px);
  transform: translate(-50%, -50%);
  border-radius: 20px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  box-shadow: 0 18px 60px rgba(0,0,0,.30);
  padding: 14px 14px;
  display:grid;
  grid-template-columns: 1fr auto;
  align-items:center;
  gap:12px;
  will-change: transform, opacity, filter;
  transition:
    transform 640ms cubic-bezier(.2,.95,.2,1),
    opacity 640ms ease,
    filter 640ms ease;
  opacity:0;
  filter: blur(12px);
  pointer-events:none;
  overflow:hidden;
}
.tCard::before{
  content:"";
  position:absolute; inset:-26px;
  background:
    radial-gradient(440px 220px at 18% 20%, rgba(124,58,237,.12), transparent 70%),
    radial-gradient(520px 240px at 86% 30%, rgba(34,211,238,.08), transparent 72%);
  opacity:.9;
  pointer-events:none;
}
.tCard > *{ position:relative; z-index:1; }

.tBig{
  font-size: 26px;
  font-weight: 950;
  letter-spacing:-.2px;
  margin-bottom: 6px;
  display:inline-flex;
  align-items:baseline;
  gap:6px;
}
.tBig .num{
  color: rgba(255,255,255,.95);
  text-shadow: 0 10px 40px rgba(124,58,237,.12);
}
.tBig .unit{
  font-size: 14px;
  color: rgba(255,255,255,.70);
  font-weight: 900;
}
.tName{ font-weight: 950; font-size: 14px; }
.tMeta{ margin-top: 6px; font-size: 12px; color: rgba(255,255,255,.70); line-height:1.55; }
.tBadge{
  font-weight: 950;
  padding: 8px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.14);
  color: rgba(255,255,255,.86);
  min-width: 82px;
  text-align:center;
}
.tBadge.emph{
  animation: badgePulse 720ms cubic-bezier(.2,.95,.2,1) both;
}
@keyframes badgePulse{
  0%{ transform: scale(.92); box-shadow: 0 0 0 0 rgba(34,211,238,.0); }
  55%{ transform: scale(1.04); box-shadow: 0 0 0 10px rgba(34,211,238,.10); }
  100%{ transform: scale(1); box-shadow: 0 0 0 0 rgba(34,211,238,.0); }
}
.tCard .tBig.emph{
  animation: dayEmph 760ms cubic-bezier(.2,.95,.2,1) both;
}
@keyframes dayEmph{
  0%{ transform: translateY(2px) scale(.96); filter: blur(1px); opacity:.7; }
  55%{ transform: translateY(-2px) scale(1.06); filter: blur(0); opacity:1; }
  100%{ transform: translateY(0) scale(1); opacity:1; }
}

.tCard.is-prev{
  opacity:.22;
  filter: blur(4px) saturate(.92);
  transform: translate(-50%, -50%) translateY(-150px) scale(.80);
}
.tCard.is-active{
  opacity:1;
  filter: blur(0);
  transform: translate(-50%, -50%) translateY(0) scale(1);
  box-shadow: 0 22px 80px rgba(0,0,0,.42), 0 0 0 1px rgba(255,255,255,.12), 0 0 0 10px rgba(124,58,237,.06);
}
.tCard.is-next{
  opacity:.26;
  filter: blur(3px) saturate(.92);
  transform: translate(-50%, -50%) translateY(150px) scale(.84);
}
.tCard.is-off{
  opacity:0;
  filter: blur(12px);
  transform: translate(-50%, -50%) translateY(0) scale(.70);
}
@keyframes cardPop{
  0%{ transform: translate(-50%,-50%) scale(.96); opacity:0; filter: blur(10px); }
  60%{ transform: translate(-50%,-50%) scale(1.02); opacity:1; filter: blur(1px); }
  100%{ transform: translate(-50%,-50%) scale(1); opacity:1; filter: blur(0); }
}
.tCard.pop{ animation: cardPop 760ms cubic-bezier(.2,.95,.2,1) both; }

.eggActions{ margin-top: 12px; }

/* Error modal */
.errModal{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(10px) saturate(150%);
  z-index: 5;
}
.errCard{
  width: calc(100% - 18px);
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(10,14,24,.92);
  box-shadow: 0 18px 80px rgba(0,0,0,.55);
  overflow:hidden;
}
.errTop{
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  display:grid;
  gap:8px;
}
.errChip{ width: fit-content; }
.errTitle{ font-weight: 950; font-size: 16px; }
.errMsg{ font-size: 12px; color: rgba(255,255,255,.82); }
.errCode{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  color: rgba(255,255,255,.70);
}
.errLog{
  padding: 14px;
  height: 170px;
  overflow:auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  line-height:1.65;
  color: rgba(255,255,255,.72);
}
.errActions{
  padding: 14px;
  border-top: 1px solid rgba(255,255,255,.10);
  display:flex;
  justify-content:flex-end;
}


/* System modal */
.modal{
  position:fixed;
  inset:0;
  display:grid;
  place-items:center;
  padding: 18px 14px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px) saturate(150%);
  z-index: 999;
}
.modalCard{
  width: min(100%, var(--max));
  border-radius: 24px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(10,14,24,.92);
  box-shadow: 0 18px 80px rgba(0,0,0,.55);
  overflow:hidden;
  animation: modalPop .42s cubic-bezier(.2,.95,.2,1) both;
}
.modalTop{
  padding: 14px;
  display:grid;
  gap:10px;
}
.modalChip{ width: fit-content; }
.modalTitle{ font-weight: 950; font-size: 16px; }
.modalDesc{ font-size: 13px; line-height:1.7; color: var(--muted); }
.modalActions{
  padding: 14px;
  border-top: 1px solid rgba(255,255,255,.10);
  display:flex;
  justify-content:flex-end;
}
@keyframes modalPop{
  from{ opacity:0; transform: translateY(10px) scale(.98); filter: blur(10px); }
  to{ opacity:1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* Christmas + footer + toast (기존 유지) */
.xmasWrap{ padding: 16px 16px 18px; position:relative; overflow:hidden; }
.xmasStars{ position:absolute; inset:0; pointer-events:none; opacity:.55; }
.xmasStars span{
  position:absolute; width:3px; height:3px; border-radius:999px;
  background: rgba(255,255,255,.86);
  opacity:.2;
  animation: twinkle 2.8s ease-in-out infinite;
}
.xmasStars span:nth-child(1){ left:10%; top:10%; animation-delay:-1.1s; opacity:.35;}
.xmasStars span:nth-child(2){ left:24%; top:18%; animation-delay:-0.2s; opacity:.25;}
.xmasStars span:nth-child(3){ left:38%; top:12%; animation-delay:-1.8s; opacity:.3;}
.xmasStars span:nth-child(4){ left:54%; top:20%; animation-delay:-0.8s; opacity:.22;}
.xmasStars span:nth-child(5){ left:70%; top:14%; animation-delay:-2.2s; opacity:.28;}
.xmasStars span:nth-child(6){ left:86%; top:22%; animation-delay:-1.4s; opacity:.2;}
.xmasStars span:nth-child(7){ left:16%; top:34%; animation-delay:-0.7s; opacity:.22;}
.xmasStars span:nth-child(8){ left:42%; top:38%; animation-delay:-1.6s; opacity:.2;}
.xmasStars span:nth-child(9){ left:64%; top:34%; animation-delay:-2.4s; opacity:.25;}
.xmasStars span:nth-child(10){ left:84%; top:40%; animation-delay:-1.9s; opacity:.2;}
.xmasStars span:nth-child(11){ left:12%; top:56%; animation-delay:-2.1s; opacity:.2;}
.xmasStars span:nth-child(12){ left:32%; top:62%; animation-delay:-1.2s; opacity:.2;}
.xmasStars span:nth-child(13){ left:56%; top:58%; animation-delay:-0.5s; opacity:.23;}
.xmasStars span:nth-child(14){ left:74%; top:66%; animation-delay:-2.7s; opacity:.2;}
.xmasStars span:nth-child(15){ left:90%; top:60%; animation-delay:-1.7s; opacity:.2;}
@keyframes twinkle{
  0%,100%{ transform: scale(1); opacity:.18; }
  50%{ transform: scale(1.7); opacity:.55; }
}

.xmasHero{
  padding: 16px 14px;
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
  text-align:center;
  position:relative;
  overflow:hidden;
}
.xmasHero::before{
  content:"";
  position:absolute; inset:-30px;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.10), transparent);
  transform: translateX(-60%) rotate(10deg);
  opacity:.35;
  animation: heroSweep 4.6s ease-in-out infinite;
}
@keyframes heroSweep{
  0%,100%{ transform: translateX(-70%) rotate(10deg); opacity:.18; }
  50%{ transform: translateX(70%) rotate(10deg); opacity:.45; }
}

.xmasIcon{
  width:54px; height:54px;
  border-radius: 18px;
  margin: 0 auto 10px;
  display:grid; place-items:center;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.86);
  box-shadow: 0 18px 60px rgba(124,58,237,.12);
  animation: xIcon 2.8s ease-in-out infinite;
}
@keyframes xIcon{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-2px); }
}
.xmasSvg{ width:24px; height:24px; }

.xmasCard{
  margin-top: 12px;
  padding: 14px;
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
  position:relative;
  overflow:hidden;
}
.xmasCard::after{
  content:"";
  position:absolute; inset:-30px;
  background:
    radial-gradient(520px 260px at 20% 20%, rgba(124,58,237,.10), transparent 70%),
    radial-gradient(520px 260px at 80% 70%, rgba(34,211,238,.08), transparent 72%);
  opacity:.9;
  pointer-events:none;
}

.xmasTitle{ font-weight: 950; margin-bottom: 10px; position:relative; z-index:1; }
.xmasText{ margin: 0 0 12px; line-height:1.75; color: rgba(255,255,255,.86); position:relative; z-index:1; }

.verse{
  margin: 10px 0 12px;
  padding: 14px;
  border-radius: 20px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(124,58,237,.10);
  position:relative;
  overflow:hidden;
}
.verseTag{
  display:inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  font-size:12px;
  font-weight: 950;
}
.verseText{ margin-top: 10px; font-weight: 950; }
.verseRef{ margin-top: 6px; font-size: 12px; color: var(--muted2); }
.verseSweep{
  position:absolute; inset:-20%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transform: translateX(-70%) rotate(10deg);
  opacity:.55;
  animation: verseSweep 3.8s ease-in-out infinite;
}
@keyframes verseSweep{
  0%,100%{ transform: translateX(-70%) rotate(10deg); opacity:.15; }
  50%{ transform: translateX(70%) rotate(10deg); opacity:.55; }
}
.xmasReveal{ animation: xReveal .55s ease both; }
@keyframes xReveal{
  from{ opacity:0; transform: translateY(10px); filter: blur(8px); }
  to{ opacity:1; transform: translateY(0); filter: blur(0); }
}

/* Snow */
.snow{ position:absolute; inset:0; pointer-events:none; opacity:.52; }
.flk{
  position:absolute;
  width:6px; height:6px; border-radius:999px;
  background: rgba(255,255,255,.86);
  animation: fall linear infinite;
}
.flk:nth-child(1){ left:10%; animation-duration: 6s; animation-delay:-2s; opacity:.7; }
.flk:nth-child(2){ left:18%; animation-duration: 7.5s; animation-delay:-1s; opacity:.5; }
.flk:nth-child(3){ left:26%; animation-duration: 8.2s; animation-delay:-4s; opacity:.6; }
.flk:nth-child(4){ left:34%; animation-duration: 6.6s; animation-delay:-3s; opacity:.5; }
.flk:nth-child(5){ left:42%; animation-duration: 9.0s; animation-delay:-6s; opacity:.55; }
.flk:nth-child(6){ left:50%; animation-duration: 7.2s; animation-delay:-5s; opacity:.6; }
.flk:nth-child(7){ left:58%; animation-duration: 8.8s; animation-delay:-7s; opacity:.5; }
.flk:nth-child(8){ left:66%; animation-duration: 6.9s; animation-delay:-2s; opacity:.6; }
.flk:nth-child(9){ left:74%; animation-duration: 9.4s; animation-delay:-8s; opacity:.45; }
.flk:nth-child(10){ left:82%; animation-duration: 7.8s; animation-delay:-3s; opacity:.55; }
.flk:nth-child(11){ left:90%; animation-duration: 8.6s; animation-delay:-6s; opacity:.6; }
.flk:nth-child(12){ left:14%; animation-duration: 10.2s; animation-delay:-9s; opacity:.45; }
.flk:nth-child(13){ left:46%; animation-duration: 10.8s; animation-delay:-10s; opacity:.4; }
.flk:nth-child(14){ left:70%; animation-duration: 11.2s; animation-delay:-7s; opacity:.4; }
.flk:nth-child(15){ left:92%; animation-duration: 10.4s; animation-delay:-8s; opacity:.38; }
@keyframes fall{
  0%{ transform: translateY(-30px) translateX(0); }
  100%{ transform: translateY(980px) translateX(18px); }
}



/* modal */
.modal{
  position:fixed;
  inset:0;
  display:grid;
  place-items:center;
  padding: 18px 14px;
  background: rgba(0,0,0,.58);
  backdrop-filter: blur(10px) saturate(150%);
  z-index: 120;
}
.modalCard{
  width: min(100%, 420px);
  border-radius: 24px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(10,14,24,.92);
  box-shadow: 0 18px 90px rgba(0,0,0,.60);
  overflow:hidden;
  animation: modalPop 420ms cubic-bezier(.2,.95,.2,1) both;
}
.modalTop{
  padding: 14px;
  display:grid;
  gap:10px;
}
.modalChip{ width: fit-content; }
.modalTitle{ font-weight: 950; font-size: 16px; }
.modalDesc{ color: var(--muted); line-height:1.7; font-size: 13px; }
.modalActions{
  padding: 14px;
  border-top: 1px solid rgba(255,255,255,.10);
  display:flex;
  justify-content:flex-end;
}
@keyframes modalPop{
  0%{ transform: translateY(8px) scale(.98); opacity:0; filter: blur(8px); }
  70%{ transform: translateY(0) scale(1); opacity:1; filter: blur(0); }
  100%{ transform: translateY(0) scale(1); opacity:1; }
}
/* footer */
.foot{
  padding: 12px 16px 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  display:flex;
  justify-content:center;
  color: var(--muted2);
  font-weight: 950;
}
.xmasFoot{ border-top-color: rgba(255,255,255,.10); }

/* toast */
.toast{
  position:fixed;
  left:50%;
  bottom: calc(env(safe-area-inset-bottom) + 14px);
  transform: translateX(-50%);
  background: rgba(0,0,0,.36);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(12px) saturate(150%);
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 999px;
  box-shadow: 0 18px 60px rgba(0,0,0,.42);
  z-index: 50;
}

/* responsive */
@media (max-width: 420px){
  .introKpis{ grid-template-columns: 1fr; }
  .introGrid{ grid-template-columns: 1fr; }
  .formGrid{ grid-template-columns: 1fr; }
  .fieldSpan2{ grid-column: auto; }
  .kpiRow{ grid-template-columns: 1fr; }
  .nav3{ grid-template-columns: 1fr; }
  .micro{ grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important; }
}
