/* =========================================================
   페이션트퍼널 올인원 — RAWISM 다크 + 네온/글래스 디자인 시스템
   ========================================================= */

:root {
  --bg: #07070a;
  --bg-2: #0f0f15;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-2: rgba(255, 255, 255, 0.10);
  --border: rgba(255, 255, 255, 0.14);
  --border-glow: rgba(170, 140, 255, 0.75);
  --text: #f6f6fa;
  --text-dim: #aeaebd;
  --text-faint: #74748a;

  --neon-purple: #a78bfa;
  --neon-blue: #60a5fa;
  --neon-cyan: #34e2f0;
  --neon-pink: #f472d0;
  --grad: linear-gradient(120deg, #a855f7 0%, #6366f1 45%, #22d3ee 100%);
  --grad-vivid: linear-gradient(120deg, #d946ef 0%, #8b5cf6 35%, #3b82f6 70%, #22d3ee 100%);
  --grad-soft: linear-gradient(120deg, rgba(168,85,247,0.28), rgba(34,211,238,0.28));
  --glow-purple: 0 0 24px rgba(168,85,247,0.55);
  --glow-cyan: 0 0 24px rgba(34,226,240,0.5);
  --glow-pink: 0 0 24px rgba(244,114,208,0.5);
  --grad-border: linear-gradient(135deg, rgba(217,70,239,0.9), rgba(139,92,246,0.5), rgba(34,211,238,0.9));

  --radius: 20px;
  --radius-sm: 13px;
  --blur: 34px;
  --sat: 185%;
  --font: 'Pretendard', 'SUIT', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* 라이트 모드 */
html[data-theme="light"] {
  --bg: #eef0fa;
  --bg-2: #ffffff;
  --surface: rgba(255, 255, 255, 0.55);
  --surface-2: rgba(255, 255, 255, 0.75);
  --border: rgba(120, 110, 200, 0.22);
  --border-glow: rgba(139, 92, 246, 0.45);
  --text: #15151f;
  --text-dim: #4a4a5e;
  --text-faint: #8a8aa0;
  --sat: 140%;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

/* 오로라 메시 배경 — 3개 빛덩어리, 채도/움직임 강화 */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.aurora::before, .aurora::after {
  content: '';
  position: absolute;
  width: 65vw; height: 65vw;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.85;
  animation: floaty 16s ease-in-out infinite;
}
.aurora::before {
  background: radial-gradient(circle, #a855f7 0%, #6d28d9 35%, transparent 70%);
  top: -18%; left: -12%;
}
.aurora::after {
  background: radial-gradient(circle, #22d3ee 0%, #0ea5e9 35%, transparent 70%);
  bottom: -22%; right: -12%;
  animation-delay: -8s;
}
/* 가운데 핑크 빛덩어리 */
.aurora .blob3 {
  content: '';
  position: absolute;
  width: 48vw; height: 48vw; border-radius: 50%;
  background: radial-gradient(circle, #f472d0 0%, #db2777 40%, transparent 70%);
  top: 30%; left: 35%;
  filter: blur(130px);
  opacity: 0.55;
  animation: floaty 20s ease-in-out infinite reverse;
  animation-delay: -4s;
}
html[data-theme="light"] .aurora::before,
html[data-theme="light"] .aurora::after,
html[data-theme="light"] .aurora .blob3 { opacity: 0.4; }

@keyframes floaty {
  0%, 100% { transform: translate(0,0) scale(1) rotate(0deg); }
  33% { transform: translate(60px, 40px) scale(1.2) rotate(40deg); }
  66% { transform: translate(-40px, 60px) scale(0.95) rotate(-30deg); }
}

/* 필름 노이즈 그레인 — 질감 부여 */
.grain {
  position: fixed; inset: -50%; z-index: -1; pointer-events: none;
  opacity: 0.045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 8s steps(6) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0,0); } 20% { transform: translate(-4%,3%); }
  40% { transform: translate(3%,-4%); } 60% { transform: translate(-3%,-2%); }
  80% { transform: translate(2%,4%); } 100% { transform: translate(0,0); }
}
html[data-theme="light"] .grain { opacity: 0.03; }

/* 글래스 카드 — 강화: 진한 블러+채도, 상단 하이라이트, inner glow, 그라데이션 보더 */
.glass {
  position: relative;
  background: var(--surface);
  backdrop-filter: blur(var(--blur)) saturate(var(--sat));
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--sat));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow:
    0 10px 40px rgba(0,0,0,0.45),
    0 2px 10px rgba(120,80,255,0.10),
    inset 0 1px 0 rgba(255,255,255,0.28),
    inset 0 0 30px rgba(255,255,255,0.025),
    inset 0 -1px 0 rgba(255,255,255,0.04);
}
/* 유리 위 반사광 하이라이트 (대각선 글레어) */
.glass::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background:
    linear-gradient(150deg, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0.04) 26%, transparent 52%),
    radial-gradient(120% 80% at 100% 0%, rgba(34,211,238,0.10), transparent 50%);
  opacity: 0.95;
}
.glass > * { position: relative; z-index: 1; }

/* 레이아웃 */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 252px;
  flex-shrink: 0;
  padding: 24px 16px;
  position: sticky; top: 0;
  height: 100vh;
  display: flex; flex-direction: column;
  gap: 6px;
  border-right: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(var(--blur));
}
.main { flex: 1; min-width: 0; padding: 28px 36px 80px; max-width: 1180px; margin: 0 auto; width: 100%; }

.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 17px;
  margin-bottom: 22px; padding: 0 8px;
}
.brand .logo {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--grad);
  display: grid; place-items: center;
  font-size: 16px; color: white;
  box-shadow: 0 0 18px rgba(139,92,246,0.5);
}
.brand .grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: var(--radius-sm);
  color: var(--text-dim); text-decoration: none;
  font-size: 14.5px; font-weight: 500;
  transition: all .2s ease; cursor: pointer;
  border: 1px solid transparent;
}
.nav-item i { width: 20px; text-align: center; font-size: 15px; }
.nav-item:hover { background: var(--surface-2); color: var(--text); transform: translateX(3px); }
.nav-item.active {
  background: var(--grad-soft);
  color: var(--text);
  border-color: var(--border-glow);
  box-shadow: 0 0 18px rgba(139,92,246,0.15);
}
.nav-item.active i { color: var(--neon-purple); }

.sidebar-bottom { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--surface-2); font-size: 13px;
}
.user-chip .avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad); display: grid; place-items: center;
  font-weight: 700; color: white; flex-shrink: 0; font-size: 13px;
}

/* 상단바 */
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; gap: 16px; flex-wrap: wrap; }
.page-title { font-size: 28px; font-weight: 800; }
.page-title .sub { display:block; font-size: 13.5px; font-weight: 500; color: var(--text-dim); margin-top: 4px; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); display: grid; place-items: center;
  cursor: pointer; transition: all .2s; font-size: 15px;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--border-glow); }

/* AI 검색바 */
.ai-search {
  position: relative; width: 100%; border-radius: 14px;
}
.ai-search input {
  width: 100%; padding: 15px 18px 15px 48px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; color: var(--text); font-size: 15px;
  font-family: var(--font); transition: all .25s;
}
.ai-search input::placeholder { color: var(--text-faint); }
.ai-search input:focus {
  outline: none; border-color: var(--neon-purple);
  box-shadow: 0 0 0 3px rgba(168,85,247,0.3), 0 0 36px rgba(168,85,247,0.45), 0 0 70px rgba(34,211,238,0.2);
}
.ai-search .search-icon {
  position: absolute; left: 17px; top: 50%; transform: translateY(-50%);
  color: var(--neon-cyan); font-size: 16px;
  filter: drop-shadow(0 0 8px rgba(34,226,240,0.7));
}
.ai-search input:focus + .search-icon,
.ai-search:focus-within .search-icon { animation: pulse-glow 1.4s ease-in-out infinite; }
@keyframes pulse-glow { 0%,100% { filter: drop-shadow(0 0 8px rgba(34,226,240,0.7)); } 50% { filter: drop-shadow(0 0 16px rgba(168,85,247,0.9)); } }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; border: none;
  font-family: var(--font); font-weight: 600; font-size: 14px;
  cursor: pointer; transition: all .2s; text-decoration: none;
}
.btn { position: relative; overflow: hidden; }
.btn-primary {
  background: var(--grad-vivid); background-size: 200% 200%; color: white;
  box-shadow: 0 6px 26px rgba(168,85,247,0.5), 0 0 0 1px rgba(255,255,255,0.12) inset;
  animation: grad-shift 5s ease infinite;
}
@keyframes grad-shift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 38px rgba(168,85,247,0.7), 0 0 26px rgba(34,211,238,0.4); }
/* 호버 글로우 스윗 */
.btn::after {
  content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.btn:hover::after { left: 140%; }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-glow); box-shadow: 0 0 18px rgba(168,85,247,0.25); }
.btn-sm { padding: 7px 13px; font-size: 13px; }

/* Bento 그리드 */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.bento-item { padding: 22px; transition: transform .25s, box-shadow .25s; }
.bento-item:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0,0,0,0.35); }
.col-2 { grid-column: span 2; }
.col-4 { grid-column: span 4; }
.row-2 { grid-row: span 2; }

.stat-num {
  font-size: 44px; font-weight: 900; line-height: 1; letter-spacing: -0.02em;
  background: var(--grad-vivid); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: grad-shift 4s ease infinite;
  filter: drop-shadow(0 0 18px rgba(168,85,247,0.45));
}
.stat-label { color: var(--text-dim); font-size: 13.5px; margin-top: 8px; }

/* 활동 피드 */
.feed-item {
  display: flex; gap: 13px; padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .15s; border-radius: 8px;
  animation: slideIn .4s ease both;
}
.feed-item:hover { background: var(--surface-2); padding-left: 10px; padding-right: 10px; }
.feed-item:last-child { border-bottom: none; }
.feed-badge {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 15px;
  background: var(--grad-soft); color: var(--neon-cyan);
  border: 1px solid var(--border-glow);
  box-shadow: 0 0 16px rgba(34,211,238,0.25), inset 0 1px 0 rgba(255,255,255,0.2);
}
.feed-item:hover .feed-badge { box-shadow: 0 0 22px rgba(168,85,247,0.5); color: var(--neon-purple); }
.feed-body { flex: 1; min-width: 0; }
.feed-meta { font-size: 12.5px; color: var(--text-faint); margin-top: 3px; }
.feed-preview { font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* 태그 / 뱃지 */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 100px; font-size: 12px; font-weight: 600;
  background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--border);
}
.tag.clickable { cursor: pointer; transition: all .15s; }
.tag.clickable:hover, .tag.on { background: var(--grad-soft); color: var(--text); border-color: var(--border-glow); }
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 7px; font-size: 11.5px; font-weight: 700;
}
.badge-official { background: var(--grad-vivid); background-size: 200% auto; color: white; box-shadow: 0 0 20px rgba(168,85,247,0.6); animation: grad-shift 4s ease infinite; }
.badge-answered { background: rgba(34,211,238,0.18); color: var(--neon-cyan); box-shadow: 0 0 14px rgba(34,211,238,0.3); border: 1px solid rgba(34,211,238,0.35); }
.badge-unanswered { background: rgba(255,180,80,0.16); color: #f5c071; box-shadow: 0 0 12px rgba(245,192,113,0.25); }
.badge-done { background: rgba(120,220,150,0.16); color: #8ee6a6; box-shadow: 0 0 12px rgba(120,220,150,0.25); }
.badge-cohort { background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--border); }

/* 카드 그리드 */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.masonry { columns: 3 260px; column-gap: 18px; }
.masonry > * { break-inside: avoid; margin-bottom: 18px; }

.card {
  padding: 20px; cursor: pointer; overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s;
}
/* 마우스 추적 스포트라이트 (JS가 --mx/--my 주입) */
.card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
    rgba(167,139,250,0.16), rgba(34,226,240,0.07) 40%, transparent 65%);
  opacity: 0; transition: opacity .35s;
}
.card:hover::after { opacity: 1; }
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 22px 56px rgba(0,0,0,0.5), 0 0 34px rgba(139,92,246,0.28), 0 0 60px rgba(34,211,238,0.12);
}
/* 우물 3D 틸트 */
.card.tilt:hover { transform: translateY(-6px) perspective(900px) rotateX(3deg) rotateY(-3deg) scale(1.01); }
.card-title { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.card-desc { font-size: 14px; color: var(--text-dim); margin-bottom: 14px; }
.card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--text-faint); }

/* 리스트 (Q&A 등) */
.list-row {
  display: flex; align-items: center; gap: 14px;
  padding: 17px 20px; cursor: pointer;
  transition: all .15s; border-radius: var(--radius-sm);
}
.list-row:hover { background: var(--surface-2); transform: translateX(4px); }
.list-main { flex: 1; min-width: 0; }
.list-title { font-size: 15.5px; font-weight: 600; margin-bottom: 5px; }
.list-meta { font-size: 12.5px; color: var(--text-faint); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* 좋아요 */
.like-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: none; color: var(--text-dim);
  cursor: pointer; font-size: 13px; font-weight: 600; transition: all .15s;
  padding: 4px 8px; border-radius: 8px;
}
.like-btn:hover { color: var(--neon-purple); transform: scale(1.12); }
.like-btn.liked { color: var(--neon-purple); }

/* 폼 */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-dim); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 11px; color: var(--text); font-family: var(--font); font-size: 14.5px;
  transition: all .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--neon-purple);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}
.field textarea { resize: vertical; min-height: 110px; }

/* 블러 미리보기 (대기자) */
.blurred { filter: blur(6px); user-select: none; pointer-events: none; }
.locked-overlay {
  position: relative;
}
.locked-cta {
  text-align: center; padding: 26px; margin: 18px 0;
  background: var(--grad-soft); border: 1px solid var(--border-glow);
  border-radius: var(--radius);
}

/* 모달 */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 20px;
  animation: fadeIn .2s;
}
.modal {
  width: 100%; max-width: 620px; max-height: 88vh; overflow-y: auto;
  padding: 28px; animation: modalUp .3s cubic-bezier(.2,.8,.2,1);
}
.modal-lg { max-width: 760px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalUp { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* 섹션 헤더 */
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 28px 0 16px; flex-wrap: wrap; gap: 10px; }
.section-head h2 { font-size: 19px; font-weight: 700; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }

/* 스켈레톤 */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 12px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* 페이지 전환 */
.view { animation: viewIn .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(20px) scale(.985); filter: blur(6px); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }

/* 등장 reveal (IntersectionObserver가 .in 토글) — stagger */
.reveal { opacity: 0; transform: translateY(28px) scale(.97); filter: blur(4px);
  transition: opacity .6s cubic-bezier(.2,.8,.2,1), transform .6s cubic-bezier(.2,.8,.2,1), filter .6s; }
.reveal.in { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }

/* 컨페티 */
.confetti-piece { position: fixed; width: 9px; height: 9px; z-index: 200; pointer-events: none; }

/* 토스트 */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  padding: 13px 22px; border-radius: 12px; z-index: 300;
  background: var(--grad); color: white; font-weight: 600; font-size: 14px;
  box-shadow: 0 10px 30px rgba(139,92,246,0.4);
  animation: toastUp .3s, toastUp .3s reverse 2.4s forwards;
}
@keyframes toastUp { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* 모바일 */
.mobile-nav { display: none; }
@media (max-width: 860px) {
  .sidebar { display: none; }
  .main { padding: 18px 16px 90px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .col-2, .col-4 { grid-column: span 2; }
  .masonry { columns: 2 160px; }
  .page-title { font-size: 23px; }
  .mobile-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    background: var(--surface); backdrop-filter: blur(var(--blur));
    border-top: 1px solid var(--border); padding: 8px 4px; justify-content: space-around;
  }
  .mobile-nav a {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    color: var(--text-dim); text-decoration: none; font-size: 10px; padding: 5px 8px; border-radius: 10px;
  }
  .mobile-nav a.active { color: var(--neon-purple); }
  .mobile-nav a i { font-size: 17px; }
}
@media (max-width: 520px) {
  .bento { grid-template-columns: 1fr; }
  .col-2, .col-4 { grid-column: span 1; }
  .masonry { columns: 1; }
}

/* 유틸 */
.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.gap-s { gap: 8px; } .gap-m { gap: 14px; }
.wrap { flex-wrap: wrap; }
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.mt-s { margin-top: 8px; } .mt-m { margin-top: 16px; } .mt-l { margin-top: 26px; }
.mb-s { margin-bottom: 8px; } .mb-m { margin-bottom: 16px; }
.hidden { display: none !important; }
.text-c { text-align: center; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.empty { text-align: center; padding: 50px 20px; color: var(--text-faint); }
.empty i { font-size: 38px; margin-bottom: 14px; opacity: .5; }

/* =========================================================
   랜딩/로그인 — 압도적 연출
   ========================================================= */
.auth-stage { overflow: hidden; }

/* 펄스 글로우 로고 */
.auth-logo {
  width: 64px; height: 64px; border-radius: 19px;
  background: var(--grad-vivid); background-size: 220% auto;
  display: grid; place-items: center; font-size: 29px; color: #fff;
  position: relative; animation: grad-shift 5s ease infinite, logoPulse 3.2s ease-in-out infinite;
  box-shadow: 0 0 40px rgba(139,92,246,.6), 0 0 80px rgba(34,211,238,.25);
}
.auth-logo::after {
  content: ''; position: absolute; inset: -6px; border-radius: inherit; z-index: -1;
  background: var(--grad-vivid); filter: blur(20px); opacity: .55;
  animation: grad-shift 5s ease infinite;
}
@keyframes logoPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 40px rgba(139,92,246,.6), 0 0 80px rgba(34,211,238,.25); }
  50% { transform: scale(1.06); box-shadow: 0 0 56px rgba(139,92,246,.85), 0 0 110px rgba(34,211,238,.4); }
}

/* 그라데이션 보더 카드 (애니메이션 회전 보더) */
.auth-card-border { position: relative; }
.auth-card-border::after {
  content: ''; position: absolute; inset: -1.5px; border-radius: inherit; z-index: -1; padding: 1.5px;
  background: var(--grad-border); background-size: 300% 300%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: borderFlow 6s linear infinite; opacity: .9;
}
@keyframes borderFlow { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }

/* 떠다니는 토픽 칩 */
.auth-chips { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.auth-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--text-dim);
  animation: chipFloat 7s ease-in-out infinite;
}
@keyframes chipFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); opacity: .85; }
  50% { transform: translateY(-16px) rotate(1.5deg); opacity: 1; }
}
@media (max-width: 720px) { .auth-chips { display: none; } }

/* =========================================================
   다이나믹 FX — 커서 · 스크롤바 · 리플 · 숫자 팝
   ========================================================= */

/* 상단 스크롤 진행 게이지 */
.scroll-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 999;
  transform-origin: 0 50%; transform: scaleX(0);
  background: var(--grad-vivid); background-size: 200% auto;
  box-shadow: 0 0 14px rgba(168,85,247,.7), 0 0 26px rgba(34,211,238,.4);
  animation: grad-shift 5s ease infinite; will-change: transform;
}

/* 마우스 따라다니는 네온 글로우 커서 */
.glow-cursor {
  position: fixed; top: 0; left: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border-radius: 50%; z-index: 998; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(167,139,250,.55), rgba(34,226,240,.25) 50%, transparent 70%);
  transition: width .25s, height .25s, margin .25s, background .25s; will-change: transform;
}
.glow-cursor.big {
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  background: radial-gradient(circle, rgba(244,114,208,.4), rgba(167,139,250,.3) 45%, transparent 72%);
}
@media (pointer: coarse) { .glow-cursor, .scroll-bar { display: none; } }

/* 클릭 리플 */
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 5;
  background: radial-gradient(circle, rgba(255,255,255,.45), rgba(167,139,250,.25) 50%, transparent 70%);
  transform: scale(0); opacity: .8; animation: rippleOut .6s ease-out forwards;
}
@keyframes rippleOut { to { transform: scale(2.4); opacity: 0; } }

/* 숫자 카운트업 팝 + 글로우 */
.stat-num { transition: transform .15s; will-change: transform; }
.stat-num.pop { animation: numPop .55s cubic-bezier(.2,1.4,.4,1); }
@keyframes numPop {
  0% { filter: drop-shadow(0 0 0 rgba(168,85,247,0)); }
  35% { transform: scale(1.14); filter: drop-shadow(0 0 18px rgba(168,85,247,.8)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(168,85,247,.35)); }
}

/* 버튼 마그네틱 부드러운 복귀 */
.btn { will-change: transform; }

/* AI 검색바 — 포커스 시 회전 그라데이션 보더 */
.ai-search { position: relative; }
.ai-search::after {
  content: ''; position: absolute; inset: -1.5px; border-radius: inherit; z-index: -1; padding: 1.5px;
  background: var(--grad-border); background-size: 300% 300%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s; animation: borderFlow 4s linear infinite;
}
.ai-search:focus-within::after { opacity: 1; }

/* =========================================================
   이미지 업로더 / 갤러리
   ========================================================= */
.uploader-add {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 11px; cursor: pointer; font-size: 13.5px; font-weight: 600;
  background: var(--surface); border: 1px dashed var(--border-glow); color: var(--neon-cyan);
  transition: all .2s;
}
.uploader-add:hover { background: var(--surface-2); box-shadow: var(--glow-cyan); }
.uploader-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.up-thumb { position: relative; width: 76px; height: 76px; border-radius: 11px; overflow: hidden; border: 1px solid var(--border); }
.up-thumb img { width: 100%; height: 100%; object-fit: cover; }
.up-del {
  position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,.65); color: #fff; border: none; cursor: pointer; font-size: 11px;
  display: grid; place-items: center; backdrop-filter: blur(4px);
}
.up-del:hover { background: rgba(244,63,94,.85); }

.photo-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.photo-item { display: block; border-radius: 13px; overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4/3; transition: transform .25s, box-shadow .25s; }
.photo-item:hover { transform: scale(1.02); box-shadow: 0 0 22px rgba(139,92,246,.35); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   외부 링크 임베드 (노션·유튜브)
   ========================================================= */
.embed-frame {
  position: relative; width: 100%; aspect-ratio: 16/9;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  box-shadow: 0 10px 36px rgba(0,0,0,.4);
}
.embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.embed-link-card {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
}
.embed-link-icon {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 13px;
  display: grid; place-items: center; font-size: 19px; color: #fff;
  background: var(--grad); box-shadow: var(--glow-purple);
}
.embed-link-body { flex: 1; min-width: 0; }
.embed-link-title { font-size: 14.5px; font-weight: 700; }
.embed-link-host { font-size: 12.5px; }

/* OAuth 구분선 */
.oauth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--text-faint); font-size: 12.5px; }
.oauth-divider::before, .oauth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
