/* ═══════════════════════════════════════════════════════
   너트유니온 네트워크 — Event Companion · Premium App Design
   Dark Gradient · Glassmorphism · Mobile-first
   ═══════════════════════════════════════════════════════ */


/* ── Design Tokens ── */
:root {
  /* Light Theme (Default) */
  --ec-bg: #F5F7FA;
  --ec-bg2: #FFFFFF;
  --ec-surface: rgba(0, 0, 0, 0.02);
  --ec-glass: rgba(0, 0, 0, 0.03);
  --ec-glass-border: rgba(0, 0, 0, 0.06);
  --ec-glass-hover: rgba(0, 0, 0, 0.05);
  --ec-text: #1E293B;
  --ec-text-sub: #475569;
  --ec-text-dim: #94A3B8;
  --ec-accent: #D4FA3C;
  --ec-accent-glow: rgba(212, 250, 60, 0.15);
  --ec-accent-dim: rgba(212, 250, 60, 0.06);
  --ec-amber: #F59E0B;
  --ec-amber-dim: rgba(245, 158, 11, 0.10);
  --ec-green: #7A8B6F;
  --ec-green-dim: rgba(16, 185, 129, 0.10);
  --ec-cyan: #06B6D4;
  --ec-cyan-dim: rgba(6, 182, 212, 0.10);
  --ec-violet: #8B5CF6;
  --ec-violet-dim: rgba(139, 92, 246, 0.10);
  --ec-heart: #F43F5E;
  --ec-radius-xs: 8px;
  --ec-radius-sm: 12px;
  --ec-radius-md: 16px;
  --ec-radius-lg: 24px;
  --ec-radius-xl: 32px;
  --ec-transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --ec-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

.dark-mode {
  /* Dark Theme (Premium Neon Cyberpunk) */
  --ec-bg: #141110;
  --ec-bg2: #1C1814;
  --ec-surface: rgba(255, 255, 255, 0.04);
  --ec-glass: rgba(255, 255, 255, 0.06);
  --ec-glass-border: rgba(255, 255, 255, 0.08);
  --ec-glass-hover: rgba(255, 255, 255, 0.10);
  --ec-text: #F7F3EC;
  --ec-text-sub: rgba(240, 240, 245, 0.6);
  --ec-text-dim: rgba(240, 240, 245, 0.35);
  --ec-accent: #D4FA3C;
  --ec-accent-glow: rgba(212,250,60, 0.25);
  --ec-accent-dim: rgba(212,250,60, 0.12);
  --ec-amber: #D4FA3C;
  --ec-amber-dim: rgba(212, 250, 60, 0.12);
  --ec-green: #D4FA3C;
  --ec-green-dim: rgba(212,250,60, 0.12);
  --ec-cyan: #F4F4F1;
  --ec-cyan-dim: rgba(244,244,241, 0.12);
  --ec-violet: #A5A6AC;
  --ec-violet-dim: rgba(165,166,172, 0.12);
  --ec-heart: #FF4D6A;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--ec-bg); color: var(--ec-text);
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif; min-height: 100vh;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
  transition: background-color 0.5s var(--ec-ease), color 0.5s var(--ec-ease);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--ec-glass);
  border: 1px solid var(--ec-glass-border);
  color: var(--ec-text);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: background-color 0.5s var(--ec-ease), border-color 0.5s var(--ec-ease), color 0.5s var(--ec-ease), box-shadow 0.5s var(--ec-ease), transform 0.3s var(--ec-ease);
  z-index: 10;
  outline: none;
}
.theme-toggle-btn:hover {
  background: var(--ec-glass-hover);
  transform: scale(1.08);
}
.theme-toggle-btn:active {
  transform: scale(0.92);
}

/* Utility: hidden toggle (used by JS) */
.hidden { display: none !important; }

/* Tag pills (used by JS renderTags) */
.tag-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 100px;
  font-size: 0.68rem; font-weight: 600;
  background: var(--ec-accent-dim); color: var(--ec-accent);
  animation: ec-tag-in 0.3s var(--ec-ease);
}
.tag-remove {
  background: none; border: none; color: inherit; cursor: pointer;
  font-size: 0.85rem; padding: 0; line-height: 1; opacity: 0.6;
  transition: opacity var(--ec-transition); font-family: inherit;
}
.tag-remove:hover { opacity: 1; }

/* Toast notification (used by JS showToast) */
.toast-notification {
  position: fixed; top: 60px; left: 50%; transform: translateX(-50%) translateY(-10px);
  padding: 10px 20px; border-radius: 100px;
  background: rgba(10,10,15,0.95); border: 1px solid var(--ec-glass-border);
  backdrop-filter: blur(16px); color: var(--ec-text); font-size: 0.78rem;
  font-weight: 500; z-index: 200; box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  opacity: 0; transition: all 0.3s var(--ec-ease); pointer-events: none;
  max-width: 90vw; text-align: center;
}
.toast-notification.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-notification:nth-last-of-type(2).show { top: 105px; opacity: 0.85; }

/* Shake animation (used by JS form validation) */
@keyframes ec-shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.shake { animation: ec-shake 0.4s ease; border-color: var(--ec-heart) !important; }

/* ── Ambient Orbs ── */
.ec-mode-selector::before, .ec-checkin::before {
  content: ''; position: fixed; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 250, 60,0.12) 0%, transparent 70%);
  top: -150px; right: -100px; z-index: 0; pointer-events: none;
  animation: ec-orb-drift 20s ease-in-out infinite alternate;
}
.ec-mode-selector::after, .ec-checkin::after {
  content: ''; position: fixed; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(165,166,172,0.08) 0%, transparent 70%);
  bottom: -100px; left: -100px; z-index: 0; pointer-events: none;
  animation: ec-orb-drift 25s ease-in-out infinite alternate-reverse;
}
@keyframes ec-orb-drift {
  0% { transform: translate(0,0); } 100% { transform: translate(30px, -20px); }
}

/* ══════════════════════════════════════
   MODE SELECTOR
   ══════════════════════════════════════ */
.ec-mode-selector {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 20px; position: relative;
}
.ec-mode-selector__inner {
  max-width: 520px; width: 100%; text-align: center; position: relative; z-index: 1;
}
.ec-mode-selector__header { margin-bottom: 48px; }
.ec-mode-selector__logo {
  width: 56px; height: 56px; border-radius: 16px; margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(212, 250, 60,0.15);
}
.ec-mode-selector__title {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif; font-size: 2rem; font-weight: 800;
  letter-spacing: -1.5px; margin-bottom: 10px;
}
.ec-mode-selector__title span { color: var(--ec-accent); }
.ec-mode-selector__desc { font-size: 0.88rem; color: var(--ec-text-sub); line-height: 1.6; }
.ec-mode-selector__cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px;
}
.ec-mode-card {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 36px 24px; border-radius: var(--ec-radius-lg);
  background: var(--ec-glass); border: 1px solid var(--ec-glass-border);
  backdrop-filter: blur(16px); cursor: pointer;
  transition: all var(--ec-transition); text-align: center;
  font-family: inherit; color: inherit;
}
.ec-mode-card:hover {
  background: var(--ec-glass-hover); border-color: rgba(255,255,255,0.15);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.05);
}
.ec-mode-card__icon {
  font-size: 2.5rem; width: 72px; height: 72px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ec-surface); border: 1px solid var(--ec-glass-border);
}
.ec-mode-card__title { font-family: 'Pretendard Variable', 'Pretendard', sans-serif; font-size: 1.05rem; font-weight: 700; }
.ec-mode-card__desc { font-size: 0.72rem; color: var(--ec-text-sub); line-height: 1.6; }
.ec-mode-card__badge {
  font-size: 0.6rem; font-weight: 600; padding: 5px 14px; border-radius: 100px;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.ec-mode-card__badge--accent { background: var(--ec-accent-dim); color: var(--ec-accent); }
.ec-mode-card__badge--dark { background: var(--ec-surface); color: var(--ec-text-sub); }
.ec-mode-selector__back-link {
  color: var(--ec-text-dim); font-size: 0.75rem; text-decoration: none;
  transition: color var(--ec-transition);
}
.ec-mode-selector__back-link:hover { color: var(--ec-text-sub); }

/* ══════════════════════════════════════
   TOP BAR
   ══════════════════════════════════════ */
.ec-topbar {
  position: fixed; top: 0; left: 0; right: 0; height: 52px; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; background: rgba(245, 247, 250, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--ec-glass-border);
  transition: background-color 0.5s var(--ec-ease), border-color 0.5s var(--ec-ease);
}
.dark-mode .ec-topbar {
  background: rgba(10, 10, 15, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ec-topbar__left { display: flex; align-items: center; gap: 10px; }
.ec-topbar__back {
  background: none; border: none; color: var(--ec-text-sub);
  font-size: 1.1rem; cursor: pointer; padding: 4px 8px; font-family: inherit;
  transition: color var(--ec-transition);
}
.ec-topbar__back:hover { color: var(--ec-text); }
.ec-topbar__brand { font-family: 'Pretendard Variable', 'Pretendard', sans-serif; font-size: 0.88rem; font-weight: 700; letter-spacing: -0.5px; }
.ec-topbar__brand span { color: var(--ec-accent); }
.ec-topbar__badge {
  font-size: 0.6rem; font-weight: 600; padding: 4px 12px; border-radius: 100px;
  background: var(--ec-accent-dim); color: var(--ec-accent); letter-spacing: 0.5px;
}
.ec-topbar__event-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.6rem; font-weight: 700; padding: 4px 12px; border-radius: 100px;
  background: var(--ec-green-dim); color: var(--ec-green); letter-spacing: 1px;
}
.ec-topbar__event-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ec-green);
  animation: ec-pulse 1.5s ease-in-out infinite;
}
@keyframes ec-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ══════════════════════════════════════
   BOTTOM TAB BAR
   ══════════════════════════════════════ */
.ec-tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; height: 64px; z-index: 50;
  display: flex; align-items: center; justify-content: space-around;
  background: rgba(245, 247, 250, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--ec-glass-border);
  padding-bottom: env(safe-area-inset-bottom);
  transition: background-color 0.5s var(--ec-ease), border-color 0.5s var(--ec-ease);
}
.dark-mode .ec-tabbar {
  background: rgba(10, 10, 15, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.ec-tabbar__tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 10px; border: none; background: none;
  color: var(--ec-text-dim); cursor: pointer; font-family: inherit;
  transition: all var(--ec-transition); border-radius: var(--ec-radius-sm);
  flex: 1; min-width: 0;
}
.ec-tabbar__tab--active { color: var(--ec-accent); }
.ec-tabbar__tab.active {
  color: var(--ec-accent);
  background: var(--ec-accent-dim);
}
.ec-tabbar__icon { font-size: 1.1rem; }
.ec-tabbar__label { font-size: 0.52rem; font-weight: 600; letter-spacing: 0.3px; white-space: nowrap; }

/* ══════════════════════════════════════
   CHECK-IN FORM
   ══════════════════════════════════════ */
.ec-checkin { min-height: 100vh; position: relative; perspective: 1200px; }
.ec-checkin__body { padding: 68px 16px 32px; max-width: 480px; margin: 0 auto; position: relative; z-index: 1; transform-style: preserve-3d; }
.ec-checkin__header { text-align: center; margin-bottom: 32px; transform: translateZ(20px); }
.ec-checkin__icon { font-size: 2.5rem; margin-bottom: 12px; }
.ec-checkin__title { font-family: 'Pretendard Variable', 'Pretendard', sans-serif; font-size: 1.4rem; font-weight: 700; margin-bottom: 6px; }
.ec-checkin__desc { font-size: 0.78rem; color: var(--ec-text-sub); }
.ec-checkin__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--ec-glass);
  border: 1px solid var(--ec-glass-border);
  backdrop-filter: blur(24px);
  padding: 32px 24px;
  border-radius: var(--ec-radius-lg);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.4s var(--ec-ease), border-color 0.4s var(--ec-ease);
}
.ec-checkin__form.ec-neon-active {
  border-color: rgba(212,250,60,0.3);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 35px rgba(212,250,60,0.18), 0 0 1px rgba(244,244,241,0.2) inset;
}
.ec-checkin-reflection {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, var(--glare-opacity, 0)) 0%, transparent 65%),
              linear-gradient(var(--angle, 135deg), rgba(212,250,60,0.12) 0%, rgba(244,244,241,0.08) 35%, rgba(165,166,172,0.12) 75%, transparent 100%);
  mix-blend-mode: color-dodge;
  opacity: 1; /* 실시간 보간 투명도는 opacity 대신 백그라운드 그라디언트와 glare-opacity 변수로 제어 */
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 2;
}
.ec-checkin__form:hover .ec-checkin-reflection {
  opacity: 1;
}

.ec-form-group { display: flex; flex-direction: column; gap: 6px; }
.ec-form-label {
  font-size: 0.75rem; font-weight: 600; color: var(--ec-text-sub);
  display: flex; align-items: center; gap: 4px;
}
.ec-form-hint { font-weight: 400; color: var(--ec-text-dim); margin-left: 4px; }
.ec-required { color: var(--ec-accent); }

.ec-input {
  padding: 12px 16px; border-radius: var(--ec-radius-sm);
  background: var(--ec-glass); border: 1px solid var(--ec-glass-border);
  color: var(--ec-text); font-family: 'Pretendard Variable', 'Pretendard', sans-serif; font-size: 0.88rem;
  transition: all var(--ec-transition); outline: none;
}
.ec-input:focus { border-color: rgba(212, 250, 60,0.3); background: var(--ec-glass-hover); }
.ec-input::placeholder { color: var(--ec-text-dim); }

/* Tag Input */
.ec-tag-input-wrapper {
  padding: 8px 12px; border-radius: var(--ec-radius-sm);
  background: var(--ec-glass); border: 1px solid var(--ec-glass-border);
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  transition: border-color var(--ec-transition);
  min-height: 44px;
}
.ec-tag-input-wrapper:focus-within { border-color: rgba(212, 250, 60,0.3); }
.ec-tag-input {
  background: none; border: none; color: var(--ec-text);
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif; font-size: 0.82rem;
  outline: none; flex: 1; min-width: 120px; padding: 4px 0;
}
.ec-tag-input::placeholder { color: var(--ec-text-dim); }
.ec-tag-container { display: flex; flex-wrap: wrap; gap: 4px; }

.ec-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 100px;
  font-size: 0.68rem; font-weight: 600;
  animation: ec-tag-in 0.3s var(--ec-ease);
}
@keyframes ec-tag-in { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
.ec-tag--give { background: var(--ec-green-dim); color: var(--ec-green); }
.ec-tag--ask { background: var(--ec-cyan-dim); color: var(--ec-cyan); }
.ec-tag--match { background: var(--ec-amber-dim); color: var(--ec-amber); }
.ec-tag__delete {
  background: none; border: none; color: inherit; cursor: pointer;
  font-size: 0.8rem; padding: 0; line-height: 1; opacity: 0.6;
  transition: opacity var(--ec-transition); font-family: inherit;
}
.ec-tag__delete:hover { opacity: 1; }

/* ── Buttons ── */
.ec-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 100px; border: none;
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif; font-weight: 600; font-size: 0.88rem;
  cursor: pointer; transition: all var(--ec-transition);
}
.ec-btn--primary {
  background: var(--ec-accent); color: #fff;
  box-shadow: 0 4px 20px rgba(212, 250, 60,0.3);
}
.ec-btn--primary:hover { box-shadow: 0 8px 32px rgba(212, 250, 60,0.4); transform: translateY(-1px); }
.ec-btn:disabled {
  opacity: 0.5; cursor: not-allowed; transform: none !important;
  box-shadow: none !important;
}
.ec-btn--outline {
  background: transparent; color: var(--ec-text-sub);
  border: 1px solid var(--ec-glass-border);
}
.ec-btn--outline:hover { border-color: rgba(255,255,255,0.2); color: var(--ec-text); }
.ec-btn--green { background: var(--ec-green-dim); color: var(--ec-green); }
.ec-btn--green:hover { background: rgba(212,250,60,0.2); }
.ec-btn--amber { background: var(--ec-amber-dim); color: var(--ec-amber); }
.ec-btn--amber:hover { background: rgba(212, 250, 60,0.2); }
.ec-btn--scan {
  width: 100%; padding: 16px; border-radius: var(--ec-radius-md);
  background: var(--ec-glass); border: 1px solid var(--ec-glass-border);
  color: var(--ec-text); font-size: 0.92rem; backdrop-filter: blur(12px);
  margin-top: 16px;
}
.ec-btn--scan:hover { background: var(--ec-glass-hover); border-color: rgba(255,255,255,0.15); }
.ec-btn__icon { font-size: 1rem; }
.ec-btn__scan-icon { font-size: 1.2rem; }
.ec-btn--assign { flex: 1; }

/* ══════════════════════════════════════
   PANELS (Tab Content)
   ══════════════════════════════════════ */
.ec-panel { padding: 64px 16px 80px; max-width: 480px; margin: 0 auto; }

/* ══════════════════════════════════════
   MY TABLE VIEW
   ══════════════════════════════════════ */
.ec-table__waiting {
  text-align: center; padding: 60px 20px;
  animation: ec-fade-in 0.5s var(--ec-ease);
}
.ec-table__waiting-pulse {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--ec-amber-dim); margin: 0 auto 16px;
  animation: ec-glow 2s ease-in-out infinite;
}
.ec-table__waiting-icon { font-size: 2.5rem; margin-top: -64px; margin-bottom: 20px; position: relative; }
.ec-table__waiting h3 { font-family: 'Pretendard Variable', 'Pretendard', sans-serif; font-size: 1.1rem; margin-bottom: 6px; }
.ec-table__waiting p { font-size: 0.78rem; color: var(--ec-text-sub); line-height: 1.6; }

.ec-table__assigned {
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* Table Card */
.ec-table__card {
  text-align: center; padding: 28px 24px;
  background: linear-gradient(135deg, rgba(212, 250, 60,0.1), rgba(212, 250, 60,0.06));
  border: 1px solid rgba(212, 250, 60,0.2); border-radius: var(--ec-radius-lg);
  margin-bottom: 20px; animation: ec-glow 3s ease-in-out infinite;
  position: relative;
  transform-style: preserve-3d;
}
.ec-table__round {
  font-size: 0.65rem; font-weight: 700; color: var(--ec-amber);
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px;
  font-family: 'Archivo', 'Pretendard Variable', sans-serif;
  transform: translateZ(10px);
}
.ec-table__number {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif; font-size: 4rem; font-weight: 800;
  line-height: 1;
  transform: translateZ(20px);
  display: inline-block;
}
.ec-table__label { font-size: 0.82rem; color: var(--ec-text-sub); margin-top: 4px; transform: translateZ(10px); }

/* 3D 테이블 팝업 진입 애니메이션 */
@keyframes tablePop3d {
  0% {
    opacity: 0;
    transform: perspective(1000px) rotateX(-35deg) translateY(120px) translateZ(-100px);
  }
  60% {
    opacity: 1;
    transform: perspective(1000px) rotateX(8deg) translateY(-10px) translateZ(15px);
  }
  80% {
    transform: perspective(1000px) rotateX(-4deg) translateY(4px) translateZ(-5px);
  }
  100% {
    transform: perspective(1000px) rotateX(0deg) translateY(0) translateZ(0);
    opacity: 1;
  }
}
.table-pop-3d {
  animation: tablePop3d 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.2) forwards;
  transform-origin: bottom center;
}

/* 디지털 릴 카운터 구조 */
.reel-container {
  display: inline-block;
  height: 4.2rem;
  line-height: 4.2rem;
  overflow: hidden;
  position: relative;
  vertical-align: middle;
}
.reel-strip {
  display: flex;
  flex-direction: column;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(0);
}
.reel-number {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  height: 4.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ec-amber), var(--ec-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 네온 충격파 & 화면 햅틱 진동 */
.table-shockwave-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 5;
}
.table-shockwave {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 2px solid var(--ec-amber);
  box-shadow: 0 0 35px rgba(212, 250, 60, 0.4), inset 0 0 35px rgba(212, 250, 60, 0.4);
  opacity: 0.8;
  animation: shockwavePulse 0.7s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}
@keyframes shockwavePulse {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.6);
    opacity: 0;
  }
}
@keyframes screenShake {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  10%, 30%, 50%, 70%, 90% { transform: translate(-2px, 1px) rotate(-0.3deg); }
  20%, 40%, 60%, 80% { transform: translate(2px, -1px) rotate(0.3deg); }
}
.screen-shake {
  animation: screenShake 0.45s ease-in-out;
}

/* ── Timer ── */
.ec-timer {
  position: relative; width: 160px; height: 160px; margin: 0 auto 20px;
}
.ec-timer__ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ec-timer__ring-bg {
  fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 6;
}
.ec-timer__ring-progress {
  fill: none; stroke: var(--ec-green); stroke-width: 6;
  stroke-linecap: round; stroke-dasharray: 339.292;
  stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear, stroke 0.5s ease;
}
.ec-timer--warning .ec-timer__ring-progress { stroke: var(--ec-accent); }
.ec-timer--danger .ec-timer__ring-progress { stroke: var(--ec-heart); }
.ec-timer__display {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: baseline; gap: 2px;
}
.ec-timer__minutes, .ec-timer__seconds {
  font-family: 'Archivo', 'Pretendard Variable', sans-serif; font-size: 2rem; font-weight: 700;
}
.ec-timer__colon {
  font-family: 'Archivo', 'Pretendard Variable', sans-serif; font-size: 1.5rem;
  color: var(--ec-text-sub); animation: ec-blink 1s step-end infinite;
}
@keyframes ec-blink { 0%,50% { opacity: 1; } 51%,100% { opacity: 0; } }
.ec-timer__label {
  text-align: center; font-size: 0.68rem; color: var(--ec-text-dim); margin-top: 4px;
}

/* Session Topic */
.ec-table__topic {
  padding: 14px 16px; border-radius: var(--ec-radius-md);
  background: var(--ec-glass); border: 1px solid var(--ec-glass-border);
  margin-bottom: 20px; text-align: center;
}
.ec-table__topic-label {
  font-size: 0.62rem; font-weight: 600; color: var(--ec-text-dim);
  letter-spacing: 0.5px; display: block; margin-bottom: 6px;
}
.ec-table__topic-text { font-size: 0.92rem; font-weight: 600; line-height: 1.5; }

/* Members */
.ec-table__members-section { margin-top: 4px; }
.ec-table__members-title {
  font-size: 0.82rem; font-weight: 600; margin-bottom: 12px; color: var(--ec-text-sub);
}
.ec-table__members { display: flex; flex-direction: column; gap: 8px; }

.ec-member-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--ec-radius-md);
  background: var(--ec-glass); border: 1px solid var(--ec-glass-border);
  animation: ec-fade-in 0.4s var(--ec-ease);
}
.ec-member-card__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.ec-member-card__info { flex: 1; min-width: 0; }
.ec-member-card__name { font-size: 0.82rem; font-weight: 600; }
.ec-member-card__company { font-size: 0.65rem; color: var(--ec-text-dim); }
.ec-member-card__tags { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 5px; }
.ec-member-card__match {
  font-size: 0.58rem; font-weight: 600; padding: 2px 8px; border-radius: 100px;
  background: var(--ec-amber-dim); color: var(--ec-amber);
  font-family: 'Archivo', 'Pretendard Variable', sans-serif;
}

/* Avatar colors */
.ec-avatar--0 { background: linear-gradient(135deg, #D4FA3C, #7A8B6F); }
.ec-avatar--1 { background: linear-gradient(135deg, #A5A6AC, #C9CACD); }
.ec-avatar--2 { background: linear-gradient(135deg, #F4F4F1, #F4F4F1); }
.ec-avatar--3 { background: linear-gradient(135deg, #D4FA3C, #6EE7B7); }
.ec-avatar--4 { background: linear-gradient(135deg, #D4FA3C, #FFD666); }
.ec-avatar--5 { background: linear-gradient(135deg, #FF4D6A, #FF8FA3); }
.ec-avatar--6 { background: linear-gradient(135deg, #6366F1, #818CF8); }
.ec-avatar--7 { background: linear-gradient(135deg, #F472B6, #FBCFE8); }

/* ══════════════════════════════════════
   QR VIEW
   ══════════════════════════════════════ */
.ec-qr { text-align: center; }
.ec-qr__mycard {
  padding: 28px 24px; border-radius: var(--ec-radius-lg);
  background: var(--ec-glass); border: 1px solid var(--ec-glass-border);
  backdrop-filter: blur(16px);
}
.ec-qr__mycard-header { margin-bottom: 16px; }
.ec-qr__mycard-badge {
  font-size: 0.62rem; font-weight: 700; padding: 4px 14px; border-radius: 100px;
  background: var(--ec-accent-dim); color: var(--ec-accent);
  letter-spacing: 0.5px; display: inline-block;
}
.ec-qr__mycard canvas {
  border-radius: var(--ec-radius-sm); margin: 0 auto; display: block;
  border: 3px solid rgba(255,255,255,0.1); padding: 8px; background: #1C1814;
}
.ec-qr__profile { margin-top: 16px; }
.ec-qr__profile-name { font-family: 'Pretendard Variable', 'Pretendard', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 2px; }
.ec-qr__profile-company { font-size: 0.75rem; color: var(--ec-text-dim); margin-bottom: 12px; }
.ec-qr__profile-tags { display: flex; gap: 16px; justify-content: center; }
.ec-qr__profile-tag-group { text-align: left; }
.ec-qr__profile-tag-label {
  font-size: 0.58rem; font-weight: 700; color: var(--ec-text-dim);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; display: block;
}

/* ══════════════════════════════════════
   CONNECTIONS
   ══════════════════════════════════════ */
.ec-connections__header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.ec-connections__title { font-family: 'Pretendard Variable', 'Pretendard', sans-serif; font-size: 1rem; font-weight: 700; }
.ec-connections__badge {
  font-family: 'Archivo', 'Pretendard Variable', sans-serif; font-size: 0.62rem; font-weight: 600;
  padding: 3px 10px; border-radius: 100px;
  background: var(--ec-accent-dim); color: var(--ec-accent);
}
.ec-connections__filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.ec-connections__search-wrap {
  position: relative;
  width: 100%;
}
.ec-connections__search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  opacity: 0.6;
}
.ec-connections__search-input {
  width: 100%;
  padding: 10px 12px 10px 34px;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--ec-glass-border);
  border-radius: var(--ec-radius-md);
  color: var(--ec-text);
  font-family: inherit;
  transition: all 0.25s var(--ec-ease);
}
.ec-connections__search-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--ec-accent);
  box-shadow: 0 0 0 3px var(--ec-accent-dim);
}
.ec-connections__sort-pills {
  display: flex;
  gap: 8px;
}
.ec-sort-pill {
  flex: 1;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--ec-glass-border);
  color: var(--ec-text-dim);
  cursor: pointer;
  transition: all 0.2s var(--ec-ease);
}
.ec-sort-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ec-text);
}
.ec-sort-pill.active {
  background: var(--ec-accent-dim);
  border-color: var(--ec-accent);
  color: var(--ec-accent);
}

.ec-connections__list { display: flex; flex-direction: column; gap: 8px; }
.ec-connections__empty {
  text-align: center; padding: 48px 20px; color: var(--ec-text-dim);
}
.ec-connections__empty-icon { font-size: 2.5rem; margin-bottom: 12px; }
.ec-connections__empty p { font-size: 0.78rem; line-height: 1.6; }

.ec-connection-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--ec-radius-md);
  background: var(--ec-glass); border: 1px solid var(--ec-glass-border);
  animation: ec-fade-in 0.4s var(--ec-ease);
}
.ec-connection-card__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.ec-connection-card__info { flex: 1; min-width: 0; }
.ec-connection-card__name { font-size: 0.82rem; font-weight: 600; }
.ec-connection-card__company { font-size: 0.62rem; color: var(--ec-text-dim); }
.ec-connection-card__memo-preview {
  font-size: 0.62rem; color: var(--ec-text-sub); margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ec-connection-card__memo-btn {
  padding: 6px 12px; border-radius: 100px; border: 1px solid var(--ec-glass-border);
  background: none; color: var(--ec-text-sub); font-size: 0.62rem; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all var(--ec-transition); flex-shrink: 0;
}
.ec-connection-card__memo-btn:hover { border-color: rgba(255,255,255,0.2); color: var(--ec-text); }

/* ══════════════════════════════════════
   CAMERA OVERLAY
   ══════════════════════════════════════ */
.ec-camera {
  position: fixed; inset: 0; z-index: 100; background: #000;
  display: flex; flex-direction: column;
}
.ec-camera__header {
  display: flex; align-items: center; gap: 12px; padding: 16px;
  background: rgba(0,0,0,0.6); z-index: 2;
}
.ec-camera__close {
  background: none; border: none; color: #fff; font-size: 1.2rem;
  cursor: pointer; padding: 4px; font-family: inherit;
}
.ec-camera__title { color: #fff; font-size: 0.88rem; font-weight: 600; }
.ec-camera__body {
  flex: 1; position: relative; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ec-camera__video { width: 100%; height: 100%; object-fit: cover; }
.ec-camera__guide {
  position: absolute; width: 220px; height: 220px;
  border: 2px solid rgba(255,255,255,0.2); border-radius: 16px;
}
.ec-camera__corner {
  position: absolute; width: 24px; height: 24px;
  border-color: var(--corner-color, var(--ec-accent)); border-style: solid;
  transition: border-color 0.25s var(--ec-ease), top 0.25s var(--ec-ease), bottom 0.25s var(--ec-ease), left 0.25s var(--ec-ease), right 0.25s var(--ec-ease);
}
.ec-camera__corner--tl { top: var(--corner-offset, -2px); left: var(--corner-offset, -2px); border-width: 3px 0 0 3px; border-radius: 8px 0 0 0; }
.ec-camera__corner--tr { top: var(--corner-offset, -2px); right: var(--corner-offset, -2px); border-width: 3px 3px 0 0; border-radius: 0 8px 0 0; }
.ec-camera__corner--bl { bottom: var(--corner-offset, -2px); left: var(--corner-offset, -2px); border-width: 0 0 3px 3px; border-radius: 0 0 0 8px; }
.ec-camera__corner--br { bottom: var(--corner-offset, -2px); right: var(--corner-offset, -2px); border-width: 0 3px 3px 0; border-radius: 0 0 8px 0; }
.ec-camera__scan-line {
  position: absolute; left: calc(50% - 110px); width: 220px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--ec-accent), transparent);
  animation: ec-scan 2s ease-in-out infinite;
}
@keyframes ec-scan {
  0% { top: calc(50% - 110px); } 50% { top: calc(50% + 110px); } 100% { top: calc(50% - 110px); }
}
.ec-camera__hint {
  text-align: center; padding: 16px; color: rgba(255,255,255,0.6);
  font-size: 0.78rem; background: rgba(0,0,0,0.6);
}

/* ══════════════════════════════════════
   MODAL
   ══════════════════════════════════════ */
.ec-modal-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.ec-modal {
  width: 100%; max-width: 400px; border-radius: var(--ec-radius-lg);
  background: var(--ec-bg2); border: 1px solid var(--ec-glass-border);
  overflow: hidden; animation: ec-fade-in 0.3s var(--ec-ease);
}
.ec-modal__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--ec-glass-border);
}
.ec-modal__title { font-family: 'Pretendard Variable', 'Pretendard', sans-serif; font-size: 0.92rem; font-weight: 700; }
.ec-modal__close {
  background: none; border: none; color: var(--ec-text-sub);
  font-size: 1.1rem; cursor: pointer; padding: 4px; font-family: inherit;
}
.ec-modal__body { padding: 20px; }
.ec-modal__target-name {
  font-size: 0.88rem; font-weight: 600; margin-bottom: 12px;
  padding: 8px 12px; border-radius: var(--ec-radius-sm);
  background: var(--ec-glass); border: 1px solid var(--ec-glass-border);
}
.ec-modal__textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--ec-radius-sm);
  background: var(--ec-glass); border: 1px solid var(--ec-glass-border);
  color: var(--ec-text); font-family: 'Pretendard Variable', 'Pretendard', sans-serif; font-size: 0.82rem;
  resize: vertical; outline: none; line-height: 1.6;
}
.ec-modal__textarea:focus { border-color: rgba(212, 250, 60,0.3); }
.ec-modal__textarea::placeholder { color: var(--ec-text-dim); }
.ec-modal__footer { padding: 16px 20px; border-top: 1px solid var(--ec-glass-border); }

/* ══════════════════════════════════════
   ADMIN DASHBOARD
   ══════════════════════════════════════ */
.ec-admin__body { padding: 64px 16px 32px; max-width: 720px; margin: 0 auto; }

.ec-admin__stats {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  padding: 20px; margin-bottom: 20px; border-radius: var(--ec-radius-lg);
  background: var(--ec-glass); border: 1px solid var(--ec-glass-border);
  backdrop-filter: blur(16px);
}
.ec-admin__stat { text-align: center; }
.ec-admin__stat-num {
  font-family: 'Archivo', 'Pretendard Variable', sans-serif; font-size: 1.8rem; font-weight: 700;
  background: linear-gradient(135deg, var(--ec-accent), var(--ec-amber));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.ec-admin__stat-label { font-size: 0.62rem; color: var(--ec-text-dim); margin-top: 2px; }
.ec-admin__stat-divider { width: 1px; height: 32px; background: var(--ec-glass-border); }

.ec-admin__section { margin-bottom: 24px; }
.ec-admin__section-title {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif; font-size: 0.88rem; font-weight: 700;
  margin-bottom: 12px; color: var(--ec-text-sub);
}
.ec-admin__actions-row {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.ec-admin__action-btn {
  flex: 1; min-width: 120px; padding: 12px 16px;
  font-size: 0.78rem; border-radius: var(--ec-radius-md);
}
.ec-admin__action-btn--danger {
  border-color: rgba(255,77,106,0.2); color: var(--ec-heart);
}
.ec-admin__action-btn--danger:hover {
  background: rgba(255,77,106,0.1); border-color: rgba(255,77,106,0.4);
}

/* Timer Control */
.ec-admin__timer-control {
  padding: 20px; border-radius: var(--ec-radius-lg);
  background: var(--ec-glass); border: 1px solid var(--ec-glass-border);
  margin-bottom: 20px; text-align: center;
}
.ec-admin__timer-display {
  display: flex; align-items: baseline; justify-content: center; gap: 2px;
  margin: 12px 0;
}
.ec-admin__timer-num {
  font-family: 'Archivo', 'Pretendard Variable', sans-serif; font-size: 2.5rem; font-weight: 700;
}
.ec-admin__timer-colon {
  font-family: 'Archivo', 'Pretendard Variable', sans-serif; font-size: 2rem; color: var(--ec-text-sub);
}
.ec-admin__timer-buttons { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* Assign Section */
.ec-admin__assign-section { margin-bottom: 20px; }
.ec-admin__assign-row { display: flex; gap: 8px; }

/* Tables Grid */
.ec-admin__tables-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.ec-admin__tables-empty {
  grid-column: 1 / -1; text-align: center; padding: 32px;
  color: var(--ec-text-dim); font-size: 0.78rem;
}
.ec-admin__table-card {
  padding: 14px; border-radius: var(--ec-radius-md);
  background: var(--ec-glass); border: 1px solid var(--ec-glass-border);
  animation: ec-fade-in 0.4s var(--ec-ease);
}
.ec-admin__table-card-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;
}
.ec-admin__table-card-num {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif; font-weight: 800; font-size: 1rem;
  color: var(--ec-amber);
}
.ec-admin__table-card-topic {
  font-size: 0.58rem; color: var(--ec-text-dim);
  background: var(--ec-surface); padding: 2px 8px; border-radius: 100px;
}
.ec-admin__table-card-members { display: flex; flex-direction: column; gap: 4px; }
.ec-admin__table-member {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.68rem; color: var(--ec-text-sub);
}
.ec-admin__table-member-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}

/* Admin Participants */
.ec-admin__participants { display: flex; flex-direction: column; gap: 6px; }
.ec-admin__participants-empty {
  text-align: center; padding: 24px; color: var(--ec-text-dim); font-size: 0.78rem;
}
.ec-admin__participant-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--ec-radius-sm);
  background: var(--ec-glass); border: 1px solid var(--ec-glass-border);
  animation: ec-fade-in 0.3s var(--ec-ease);
}
.ec-admin__participant-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.ec-admin__participant-info { flex: 1; min-width: 0; }
.ec-admin__participant-name { font-size: 0.78rem; font-weight: 600; }
.ec-admin__participant-company { font-size: 0.58rem; color: var(--ec-text-dim); }
.ec-admin__participant-tags { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 3px; }

/* ══════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════ */
@keyframes ec-fade-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ec-glow { 0%,100% { box-shadow: 0 0 20px var(--ec-amber-dim); } 50% { box-shadow: 0 0 40px rgba(212, 250, 60,0.2); } }

/* ══════════════════════════════════════
   TOAST NOTIFICATION
   ══════════════════════════════════════ */
.ec-toast {
  position: fixed; top: 60px; left: 50%; transform: translateX(-50%);
  padding: 10px 20px; border-radius: 100px;
  background: rgba(10,10,15,0.95); border: 1px solid var(--ec-glass-border);
  backdrop-filter: blur(16px); color: var(--ec-text); font-size: 0.78rem;
  font-weight: 500; z-index: 60; box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: ec-toast-in 0.4s var(--ec-ease), ec-toast-out 0.4s 2.5s var(--ec-ease) forwards;
}
@keyframes ec-toast-in { from { opacity: 0; transform: translateX(-50%) translateY(-10px); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes ec-toast-out { to { opacity: 0; transform: translateX(-50%) translateY(-10px); } }

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */

@media (max-width: 768px) {
  .ec-mode-selector__cards { grid-template-columns: 1fr; gap: 12px; }
  .ec-mode-card {
    flex-direction: row; text-align: left; padding: 24px 18px; gap: 14px;
  }
  .ec-mode-card__icon { font-size: 1.8rem; width: 52px; height: 52px; min-width: 52px; }
  .ec-mode-card__desc br { display: none; }
  .ec-mode-selector__title { font-size: 1.6rem; }

  .ec-admin__tables-grid { grid-template-columns: 1fr; }
  .ec-admin__assign-row { flex-direction: column; }
  .ec-admin__timer-num { font-size: 2rem; }
}

@media (max-width: 480px) {
  .ec-mode-selector { padding: 16px 12px; }
  .ec-mode-selector__title { font-size: 1.35rem; }
  .ec-mode-card { padding: 18px 14px; gap: 10px; }
  .ec-mode-card__icon { width: 44px; height: 44px; min-width: 44px; font-size: 1.5rem; }
  .ec-mode-card__title { font-size: 0.88rem; }

  .ec-panel { padding: 56px 12px 76px; }
  .ec-checkin__body { padding: 60px 12px 24px; }
  .ec-checkin__title { font-size: 1.2rem; }
  .ec-input { padding: 10px 14px; font-size: 0.82rem; }

  .ec-table__number { font-size: 3rem; }
  .ec-timer { width: 130px; height: 130px; }
  .ec-timer__minutes, .ec-timer__seconds { font-size: 1.6rem; }

  .ec-tabbar { height: 58px; }
  .ec-tabbar__icon { font-size: 1rem; }
  .ec-tabbar__label { font-size: 0.52rem; }

  .ec-admin__body { padding: 56px 12px 24px; }
  .ec-admin__stat-num { font-size: 1.4rem; }
}

@media (max-width: 360px) {
  .ec-mode-selector__title { font-size: 1.2rem; }
  .ec-topbar { height: 46px; }
  .ec-topbar__brand { font-size: 0.78rem; }
  .ec-panel { padding: 52px 10px 72px; }
  .ec-checkin__body { padding: 54px 10px 20px; }
  .ec-table__number { font-size: 2.5rem; }
  .ec-timer { width: 110px; height: 110px; }
  .ec-timer__minutes, .ec-timer__seconds { font-size: 1.3rem; }
}

/* ── Touch ── */
@media (hover: none) and (pointer: coarse) {
  .ec-mode-card:hover { transform: none; box-shadow: none; }
  .ec-mode-card:active { transform: scale(0.98); }
  .ec-btn--primary:hover { transform: none; }
  .ec-btn--primary:active { transform: scale(0.97); }
  .ec-btn--scan:hover { background: var(--ec-glass); }
  .ec-btn--scan:active { transform: scale(0.98); }
}

/* ── iOS safe area ── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .ec-tabbar { padding-bottom: env(safe-area-inset-bottom); }
  .ec-panel { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* ══════════════════════════════════════
   MOVE NOTIFICATION POPUP
   ══════════════════════════════════════ */
.ec-move-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(24px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0;
  transition: opacity 0.4s var(--ec-ease);
}
.ec-move-overlay.show { opacity: 1; }
.ec-move-popup {
  text-align: center; max-width: 380px; width: 100%;
  padding: 40px 32px; border-radius: var(--ec-radius-xl);
  background: linear-gradient(160deg, rgba(212, 250, 60,0.08), rgba(212, 250, 60,0.08));
  border: 1px solid rgba(212, 250, 60,0.2);
  animation: ec-popup-in 0.5s var(--ec-ease);
  position: relative; overflow: hidden;
}
@keyframes ec-popup-in {
  from { opacity: 0; transform: scale(0.85) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.ec-move-popup__pulse {
  position: absolute; top: 50%; left: 50%;
  width: 200px; height: 200px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(212, 250, 60,0.15) 0%, transparent 70%);
  animation: ec-notify-pulse 2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ec-notify-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}
.ec-move-popup__icon {
  font-size: 3.5rem; margin-bottom: 16px; position: relative;
  animation: ec-bell-ring 1s ease-in-out infinite;
}
@keyframes ec-bell-ring {
  0%, 100% { transform: rotate(0); }
  10% { transform: rotate(15deg); }
  20% { transform: rotate(-12deg); }
  30% { transform: rotate(8deg); }
  40% { transform: rotate(-5deg); }
  50% { transform: rotate(0); }
}
.ec-move-popup__title {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif; font-size: 1.4rem; font-weight: 800;
  margin-bottom: 8px; position: relative;
  background: linear-gradient(135deg, var(--ec-amber), #fff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.ec-move-popup__desc {
  font-size: 0.92rem; color: var(--ec-text-sub); line-height: 1.6;
  margin-bottom: 20px; position: relative;
}
.ec-move-popup__desc strong {
  color: var(--ec-amber); font-weight: 700;
  -webkit-text-fill-color: var(--ec-amber);
}
.ec-move-popup__topic {
  padding: 14px 20px; border-radius: var(--ec-radius-md);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 24px; position: relative;
}
.ec-move-popup__topic span {
  display: block; font-size: 0.62rem; font-weight: 600;
  color: var(--ec-text-dim); letter-spacing: 0.5px; margin-bottom: 6px;
  text-transform: uppercase;
}
.ec-move-popup__topic strong {
  font-size: 0.95rem; font-weight: 600; color: var(--ec-text);
  -webkit-text-fill-color: var(--ec-text);
}
.ec-move-popup__btn {
  min-width: 160px; position: relative;
  animation: ec-glow 2s ease-in-out infinite;
}

/* ══════════════════════════════════════
   JS RENDER CLASSES (table-member, connection, admin)
   ══════════════════════════════════════ */
.table-member-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--ec-radius-md);
  background: var(--ec-glass); border: 1px solid var(--ec-glass-border);
  animation: ec-fade-in 0.4s var(--ec-ease);
}
.table-member-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 700; color: #fff; flex-shrink: 0;
  background: linear-gradient(135deg, var(--ec-accent), var(--ec-green));
}
.table-member-info { flex: 1; min-width: 0; }
.table-member-info strong { font-size: 0.82rem; display: block; }
.table-member-info span { font-size: 0.65rem; color: var(--ec-text-dim); }
.table-member-right {
  display: flex; flex-direction: column; align-items: center; gap: 2px; flex-shrink: 0;
}
.table-member-match {
  font-family: 'Archivo', 'Pretendard Variable', sans-serif; font-size: 0.68rem; font-weight: 700;
  color: var(--ec-amber);
}
.table-member-status { font-size: 0.72rem; }
.table-member-status--pending { opacity: 0.5; }
.table-member-card--connected {
  border-left: 3px solid var(--ec-green);
}
.table-member-tags { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 5px; }

/* Memo modal Give/Ask container */
.ec-memo__give-ask {
  padding: 12px; border-radius: var(--ec-radius-sm);
  background: var(--ec-glass); border: 1px solid var(--ec-glass-border);
  min-height: 40px;
}

.tag { display: inline-block; padding: 2px 8px; border-radius: 100px; font-size: 0.58rem; font-weight: 600; }
.give-tag { background: var(--ec-green-dim); color: var(--ec-green); }
.ask-tag { background: var(--ec-cyan-dim); color: var(--ec-cyan); }
.tag.mini { padding: 1px 6px; font-size: 0.52rem; }
.tag-group { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; margin-bottom: 3px; }
.tag-label { font-size: 0.52rem; font-weight: 700; color: var(--ec-text-dim); letter-spacing: 0.5px; margin-right: 2px; }

.connection-card {
  padding: 14px 16px; border-radius: var(--ec-radius-md);
  background: var(--ec-glass); border: 1px solid var(--ec-glass-border);
  animation: ec-fade-in 0.4s var(--ec-ease);
}
.connection-header { display: flex; align-items: center; gap: 12px; }
.connection-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 700; color: #fff; flex-shrink: 0;
  background: linear-gradient(135deg, var(--ec-violet), var(--ec-cyan));
}
.connection-info { flex: 1; min-width: 0; }
.connection-name { font-size: 0.85rem; font-weight: 600; margin: 0; }
.connection-company { font-size: 0.65rem; color: var(--ec-text-dim); margin: 0; }
.connection-meta {
  font-size: 0.58rem; color: var(--ec-accent); margin: 2px 0 0 0;
  font-weight: 500; opacity: 0.8;
}
.connection-tags { margin-top: 8px; }
.connection-memo {
  margin-top: 8px; padding: 8px 12px; border-radius: var(--ec-radius-sm);
  background: var(--ec-surface); font-size: 0.72rem; color: var(--ec-text-sub); line-height: 1.5;
}
.memo-icon { margin-right: 4px; }
.memo-btn {
  padding: 6px 10px; border-radius: 100px; border: 1px solid var(--ec-glass-border);
  background: none; color: var(--ec-text-sub); cursor: pointer;
  transition: all var(--ec-transition); flex-shrink: 0;
}
.memo-btn:hover { border-color: rgba(255,255,255,0.2); color: var(--ec-text); }
.memo-btn svg { display: block; }

/* 커넥션 액션 버튼 */
.connection-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  border-top: 1px solid var(--ec-glass-border);
  padding-top: 10px;
}
.ec-card-action-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--ec-radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--ec-glass-border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--ec-text-sub);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: inherit;
  transition: all var(--ec-transition);
}
.ec-card-action-btn:hover {
  background: var(--ec-glass);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--ec-text);
  transform: translateY(-1px);
}
.ec-card-action-btn:active {
  transform: translateY(0);
}
.ec-card-action-btn--copy {
  border-color: rgba(212,250,60, 0.2);
  color: var(--ec-accent);
}
.ec-card-action-btn--copy:hover {
  background: var(--ec-accent-dim);
  border-color: var(--ec-accent);
}

.admin-participant-card {
  padding: 12px 14px; border-radius: var(--ec-radius-sm);
  background: var(--ec-glass); border: 1px solid var(--ec-glass-border);
  animation: ec-fade-in 0.3s var(--ec-ease);
}
.admin-participant-header { display: flex; align-items: center; gap: 10px; }
.admin-participant-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; color: #fff; flex-shrink: 0;
  background: linear-gradient(135deg, var(--ec-accent), var(--ec-amber));
}
.admin-participant-info { flex: 1; }
.admin-participant-info strong { font-size: 0.78rem; display: block; }
.admin-participant-info span { font-size: 0.62rem; color: var(--ec-text-dim); }
.admin-participant-remove {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid rgba(255,77,106,0.2); background: none;
  color: var(--ec-heart); font-size: 0.65rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; opacity: 0.5;
  transition: all var(--ec-transition);
}
.admin-participant-remove:hover {
  opacity: 1; background: rgba(255,77,106,0.1);
  border-color: rgba(255,77,106,0.4);
}
.admin-participant-tags { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 6px; }

.admin-table-card {
  padding: 14px; border-radius: var(--ec-radius-md);
  background: var(--ec-glass); border: 1px solid var(--ec-glass-border);
  animation: ec-fade-in 0.4s var(--ec-ease);
}
.admin-table-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.admin-table-num { font-family: 'Pretendard Variable', 'Pretendard', sans-serif; font-weight: 800; color: var(--ec-amber); }
.admin-table-count { font-size: 0.62rem; color: var(--ec-text-dim); }
.admin-table-topic { font-size: 0.68rem; color: var(--ec-text-sub); margin-bottom: 10px; }
.admin-table-members { display: flex; flex-direction: column; gap: 4px; }
.admin-table-member { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; color: var(--ec-text-sub); }
.admin-member-avatar {
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.5rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--ec-accent), var(--ec-green)); flex-shrink: 0;
}
.admin-member-name { font-weight: 600; }
.admin-member-company { color: var(--ec-text-dim); font-size: 0.62rem; }

.empty-text { text-align: center; color: var(--ec-text-dim); font-size: 0.78rem; padding: 20px; }

/* ── Timer Warning Animation ── */
.timer-warning {
  animation: ec-timer-warn 1s ease-in-out infinite;
}
@keyframes ec-timer-warn {
  0%, 100% { stroke: #FF6B6B; }
  50% { stroke: #FF4444; }
}

/* ══════════════════════════════════════
   SMART CONNECT MATCHING
   ══════════════════════════════════════ */
.ec-match__header {
  text-align: center; margin-bottom: 24px;
}
.ec-match__title {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif; font-size: 1.3rem; font-weight: 800;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--ec-amber), var(--ec-accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.ec-match__desc {
  font-size: 0.75rem; color: var(--ec-text-sub); line-height: 1.5;
}
.ec-match__counter {
  margin-top: 8px;
}
.ec-match__counter-text {
  font-size: 0.68rem; color: var(--ec-text-dim);
  padding: 4px 12px; border-radius: 100px;
  background: var(--ec-glass); border: 1px solid var(--ec-glass-border);
  display: inline-block;
}
.ec-match__counter-text strong {
  color: var(--ec-amber); font-weight: 700;
  -webkit-text-fill-color: var(--ec-amber);
}
.ec-match__guide {
  display: flex; justify-content: space-between;
  padding: 8px 16px; margin-bottom: 16px;
  border-radius: var(--ec-radius-sm);
  background: var(--ec-glass); border: 1px solid var(--ec-glass-border);
}
.ec-match__guide-item {
  font-size: 0.58rem; font-weight: 600; letter-spacing: 0.3px;
}
.ec-match__guide-item--skip { color: var(--ec-text-dim); }
.ec-match__guide-item--connect { color: var(--ec-accent); }
.ec-match__reset-btn {
  margin-top: 20px; padding: 10px 24px; font-size: 0.78rem;
}
.ec-match__stack {
  position: relative; min-height: 440px;
  display: flex; flex-direction: column;
  perspective: 1200px;
  transform-style: preserve-3d;
}
.ec-match-card {
  position: absolute; top: 0; left: 0; right: 0;
  padding: 24px; border-radius: var(--ec-radius-lg);
  background: rgba(18, 18, 26, 0.85);
  border: 1px solid var(--ec-glass-border);
  backdrop-filter: blur(24px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.35);
  cursor: grab; user-select: none; touch-action: none;
  transform-style: preserve-3d;
  will-change: transform, filter, opacity;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.1), opacity 0.4s var(--ec-ease), filter 0.4s var(--ec-ease);
}
.ec-match-card:active { cursor: grabbing; }

.ec-match-card__header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.ec-match-card__avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.92rem; font-weight: 700; color: #fff; flex-shrink: 0;
  background: linear-gradient(135deg, var(--ec-violet), var(--ec-cyan));
}
.ec-match-card__info { flex: 1; min-width: 0; }
.ec-match-card__name {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif; font-size: 0.95rem; font-weight: 700; margin: 0;
}
.ec-match-card__company {
  font-size: 0.68rem; color: var(--ec-text-dim); margin: 2px 0 0;
}
.ec-match-card__score {
  text-align: center; flex-shrink: 0;
  padding: 8px 14px; border-radius: var(--ec-radius-sm);
  background: linear-gradient(135deg, rgba(212, 250, 60,0.12), rgba(212, 250, 60,0.12));
  border: 1px solid rgba(212, 250, 60,0.2);
}
.ec-match-card__score-num {
  font-family: 'Archivo', 'Pretendard Variable', sans-serif; font-size: 1.2rem; font-weight: 700;
  background: linear-gradient(135deg, var(--ec-amber), var(--ec-accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  display: block;
}
.ec-match-card__score-label {
  font-size: 0.52rem; font-weight: 600; color: var(--ec-text-dim);
  letter-spacing: 0.5px; text-transform: uppercase;
}

.ec-match-card__tags { margin-bottom: 12px; }
.ec-match-card__tag-group { margin-bottom: 8px; }
.ec-match-card__tag-label {
  font-size: 0.6rem; font-weight: 600; color: var(--ec-text-dim);
  margin-right: 6px; display: inline-block; margin-bottom: 4px;
}
.ec-match-card__tag-list { display: inline-flex; flex-wrap: wrap; gap: 4px; }

.ec-match-card__reason {
  display: flex; align-items: flex-start; gap: 6px;
  padding: 10px 14px; border-radius: var(--ec-radius-sm);
  background: var(--ec-surface); border: 1px solid var(--ec-glass-border);
  font-size: 0.72rem; color: var(--ec-text-sub); line-height: 1.5;
  margin-bottom: 10px;
}
.ec-match-card__reason-icon { flex-shrink: 0; }

.ec-match-card__location {
  text-align: center; padding: 8px 12px; border-radius: var(--ec-radius-xs);
  background: var(--ec-amber-dim); font-size: 0.72rem; color: var(--ec-amber);
  font-weight: 500; margin-bottom: 8px;
}
.ec-match-card__location strong { font-weight: 700; }

.ec-match-card__exchange-hint {
  text-align: center; padding: 8px 12px; border-radius: var(--ec-radius-xs);
  background: var(--ec-accent-dim); font-size: 0.68rem; color: var(--ec-accent);
  font-weight: 600; margin-bottom: 12px;
  animation: ec-pulse 1.5s ease-in-out infinite;
}

.ec-match-card__actions {
  display: flex; gap: 10px;
}
.ec-match-card__actions .ec-btn { flex: 1; padding: 12px 16px; font-size: 0.82rem; }
.ec-match-card__skip { border-color: rgba(255,255,255,0.1); }
.ec-match-card__connect { box-shadow: 0 4px 16px rgba(212, 250, 60,0.25); }

/* 실시간 스와이프 발광 보더 네온 */
.ec-match-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.2s var(--ec-ease);
  opacity: 0;
}
.ec-match-card.swiping-right--neon::before {
  background: linear-gradient(135deg, var(--ec-green), transparent);
  border: 1px solid var(--ec-green);
  box-shadow: 0 0 25px rgba(212,250,60, var(--glow-opacity, 0.3));
  opacity: var(--glow-opacity, 0);
}
.ec-match-card.swiping-left--neon::before {
  background: linear-gradient(135deg, var(--ec-heart), transparent);
  border: 1px solid var(--ec-heart);
  box-shadow: 0 0 25px rgba(255,77,106, var(--glow-opacity, 0.3));
  opacity: var(--glow-opacity, 0);
}

/* 3D Depth-of-Field (DOF) 대기 카드 입체 흐림 적용 */
.ec-match-card.dof-blur-active {
  filter: blur(var(--dof-blur, 0px));
}

/* 3D Neon Vortex 덱 소용돌이 복원 애니메이션 정의 */
@keyframes vortexReassemble {
  0% {
    transform: translate3d(var(--vortex-x, 120vw), var(--vortex-y, -120vh), -500px) rotate3d(1, 2, 3, 540deg) scale(0.1);
    opacity: 0;
    filter: blur(25px);
  }
  60% {
    transform: translate3d(var(--vortex-x-mid, -15px), var(--vortex-y-mid, 15px), -100px) rotate3d(1, 1, 2, 180deg) scale(0.85);
    opacity: 0.85;
    filter: blur(8px);
  }
  85% {
    transform: translate3d(5px, -5px, 20px) rotate3d(1, 1, 1, -12deg) scale(1.04);
    opacity: 0.95;
    filter: blur(2px);
  }
  100% {
    transform: var(--target-transform, translate3d(0, 0, 0) rotate3d(0,0,0, 0deg) scale(1));
    opacity: var(--target-opacity, 1);
    filter: blur(var(--target-blur, 0px));
  }
}
.ec-match-card.vortex-in {
  animation: vortexReassemble 1.1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
  pointer-events: none;
}

/* 3D Match Neon Aura Flash 비주얼 스타일 설계 */
.ec-match-card.match-aura-flash {
  animation: matchCardFlash 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes matchCardFlash {
  0% {
    box-shadow: 0 0 0 0 rgba(212,250,60, 0.8), 0 0 0 0 rgba(244,244,241, 0.8), 0 20px 45px rgba(0,0,0,0.35);
    border-color: var(--ec-green);
    transform: scale(1.0);
  }
  30% {
    box-shadow: 0 0 45px 15px rgba(212,250,60, 0.9), 0 0 85px 25px rgba(244,244,241, 0.7), 0 20px 45px rgba(0,0,0,0.35);
    border-color: var(--ec-cyan);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 120px 50px rgba(165,166,172, 0), 0 0 180px 70px rgba(244,244,241, 0), 0 20px 45px rgba(0,0,0,0.35);
    border-color: var(--ec-glass-border);
    transform: scale(1.0);
  }
}

.ec-match-aura-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 340px;
  height: 340px;
  border-radius: var(--ec-radius-lg);
  pointer-events: none;
  z-index: 15;
  background: radial-gradient(circle, transparent 25%, rgba(212,250,60, 0.35) 45%, rgba(244,244,241, 0.3) 65%, transparent 100%);
  box-shadow: 0 0 45px rgba(212,250,60,0.25) inset, 0 0 75px rgba(244,244,241,0.25);
  mix-blend-mode: screen;
  opacity: 0.95;
  animation: matchAuraFlash 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes matchAuraFlash {
  0% {
    transform: translate(-50%, -50%) scale(0.2) rotate(0deg);
    opacity: 1;
  }
  50% {
    opacity: 0.85;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.2) rotate(150deg);
    opacity: 0;
  }
}

.ec-match__empty {
  text-align: center; padding: 60px 20px;
  animation: ec-fade-in 0.5s var(--ec-ease);
}
.ec-match__empty-icon { font-size: 3rem; margin-bottom: 16px; }
.ec-match__empty p {
  font-size: 0.82rem; color: var(--ec-text-sub); line-height: 1.7;
}

/* ══════════════════════════════════════
   NOTICE POPUP
   ══════════════════════════════════════ */
.ec-notice-popup {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(24px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0;
  transition: opacity 0.4s var(--ec-ease);
  pointer-events: none; visibility: hidden;
}
.ec-notice-popup.show {
  opacity: 1; pointer-events: auto; visibility: visible;
}
.ec-notice-popup__card {
  text-align: center; max-width: 380px; width: 100%;
  padding: 40px 28px; border-radius: var(--ec-radius-xl);
  background: linear-gradient(160deg, rgba(212, 250, 60,0.08), rgba(165,166,172,0.06));
  border: 1px solid rgba(212, 250, 60,0.2);
  animation: ec-popup-in 0.5s var(--ec-ease);
}
.ec-notice-popup__icon {
  font-size: 3.5rem; margin-bottom: 12px;
  animation: ec-bell-ring 1s ease-in-out infinite;
}
.ec-notice-popup__type {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--ec-accent);
  padding: 4px 14px; border-radius: 100px;
  background: var(--ec-accent-dim); display: inline-block;
  margin-bottom: 16px;
}
.ec-notice-popup__text {
  font-size: 1rem; font-weight: 500; line-height: 1.7;
  color: var(--ec-text); margin-bottom: 16px;
  word-break: keep-all;
}
.ec-notice-popup__time {
  font-size: 0.65rem; color: var(--ec-text-dim);
  font-family: 'Archivo', 'Pretendard Variable', sans-serif; margin-bottom: 20px;
}
.ec-notice-popup__close-btn {
  min-width: 140px;
}

/* ══════════════════════════════════════
   ADMIN NOTICE FORM
   ══════════════════════════════════════ */
.ec-admin__notice-form {
  padding: 16px; border-radius: var(--ec-radius-md);
  background: var(--ec-glass); border: 1px solid var(--ec-glass-border);
  margin-bottom: 12px;
}
.ec-admin__notice-form .ec-modal__textarea {
  margin-bottom: 12px;
}
.ec-admin__notice-controls {
  display: flex; gap: 8px; align-items: center;
}
.ec-admin__notice-select {
  flex: 1; padding: 10px 14px; font-size: 0.82rem;
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(240,240,245,0.4)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 32px;
}
.ec-admin__notice-controls .ec-btn {
  white-space: nowrap; flex-shrink: 0;
}
.ec-admin__notice-history {
  display: flex; flex-direction: column; gap: 6px;
}
.ec-admin__notice-history-title {
  font-size: 0.75rem; font-weight: 600; color: var(--ec-text-dim);
  margin-bottom: 4px;
}
.ec-admin__notice-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: var(--ec-radius-sm);
  background: var(--ec-glass); border: 1px solid var(--ec-glass-border);
  animation: ec-fade-in 0.3s var(--ec-ease);
}
.ec-admin__notice-item-icon { font-size: 1rem; flex-shrink: 0; }
.ec-admin__notice-item-text {
  flex: 1; font-size: 0.75rem; color: var(--ec-text-sub);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ec-admin__notice-item-time {
  font-family: 'Archivo', 'Pretendard Variable', sans-serif; font-size: 0.6rem;
  color: var(--ec-text-dim); flex-shrink: 0;
}

/* ══════════════════════════════════════
   LOCATION ALERT
   ══════════════════════════════════════ */
.ec-location-alert {
  position: fixed; bottom: 80px; left: 0; right: 0; z-index: 90;
  display: flex; justify-content: center; padding: 0 16px;
  transform: translateY(120%); opacity: 0;
  transition: all 0.5s var(--ec-ease);
  pointer-events: none;
}
.ec-location-alert.show {
  transform: translateY(0); opacity: 1;
  pointer-events: auto;
}
.ec-location-alert__card {
  max-width: 400px; width: 100%;
  padding: 18px 20px; border-radius: var(--ec-radius-lg);
  background: rgba(10,10,15,0.95); border: 1px solid var(--ec-glass-border);
  backdrop-filter: blur(20px);
  box-shadow: 0 -4px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.03);
}
.ec-location-alert__header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.ec-location-alert__emoji { font-size: 1.2rem; }
.ec-location-alert__title {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif; font-size: 0.82rem; font-weight: 700;
  color: var(--ec-amber);
}
.ec-location-alert__body { margin-bottom: 14px; }
.ec-location-alert__name {
  font-size: 0.82rem; margin-bottom: 4px;
}
.ec-location-alert__name strong { color: var(--ec-text); }
.ec-location-alert__table {
  font-size: 0.75rem; color: var(--ec-amber); margin-bottom: 4px;
}
.ec-location-alert__give {
  font-size: 0.68rem; color: var(--ec-text-dim);
}
.ec-location-alert__actions {
  display: flex; gap: 8px;
}
.ec-location-alert__actions .ec-btn {
  flex: 1; padding: 10px 16px; font-size: 0.78rem;
}
.ec-location-alert__go {
  box-shadow: 0 4px 16px rgba(212, 250, 60,0.25);
}
.ec-location-alert__later {
  border-color: rgba(255,255,255,0.08);
}

/* ── Responsive additions ── */
@media (max-width: 480px) {
  .ec-match__stack { min-height: 380px; }
  .ec-match-card { padding: 16px; }
  .ec-match-card__avatar { width: 40px; height: 40px; font-size: 0.78rem; }
  .ec-match-card__name { font-size: 0.85rem; }
  .ec-match-card__score { padding: 6px 10px; }
  .ec-match-card__score-num { font-size: 1rem; }
  .ec-match-card__actions .ec-btn { padding: 10px 12px; font-size: 0.75rem; }

  .ec-admin__notice-controls { flex-direction: column; }
  .ec-admin__notice-select { width: 100%; }
  .ec-admin__notice-controls .ec-btn { width: 100%; }

  .ec-location-alert { bottom: 72px; }
}

/* ── Tab Badge Count ── */
.ec-tabbar__badge-count {
  position: absolute; top: 2px; right: 4px;
  min-width: 16px; height: 16px; border-radius: 100px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Archivo', 'Pretendard Variable', sans-serif; font-size: 0.48rem; font-weight: 700;
  color: #fff; background: var(--ec-accent);
  padding: 0 4px; line-height: 1;
  animation: ec-badge-pop 0.4s var(--ec-ease);
}
.ec-tabbar__tab { position: relative; }
@keyframes ec-badge-pop {
  from { transform: scale(0); } to { transform: scale(1); }
}

/* ── Swipe Hint ── */
.ec-match-card__swipe-hint {
  display: flex; justify-content: space-between;
  padding: 6px 0; margin-bottom: 10px;
  font-size: 0.6rem; font-weight: 600; color: var(--ec-text-dim);
  letter-spacing: 0.5px; opacity: 0.6;
}
.ec-match-card__swipe-left { color: var(--ec-text-dim); }
.ec-match-card__swipe-right { color: var(--ec-accent); }

/* ── Admin Stat Enhancements ── */
.ec-admin__stat-num--connected {
  background: linear-gradient(135deg, var(--ec-green), var(--ec-cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.ec-admin__stat-num--notices {
  background: linear-gradient(135deg, var(--ec-violet), var(--ec-amber));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── 커넥션 매칭률 뱃지 ── */
.connection-match {
  display: inline-block;
  font-size: 0.65rem; font-weight: 700;
  background: var(--ec-accent-dim); color: var(--ec-accent);
  padding: 1px 6px; border-radius: 8px;
  margin-left: 6px; vertical-align: middle;
}

/* ── 타이머 일시정지 깜빡임 ── */
.timer-paused {
  animation: ec-blink 1.2s ease-in-out infinite;
}
@keyframes ec-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ── GPU 가속 성능 최적화 ── */
.ec-match-card { will-change: transform, opacity; }
.ec-modal-overlay { will-change: opacity; }
.ec-location-alert { will-change: opacity, transform; }
.ec-move-overlay { will-change: opacity; }
.ec-move-popup { will-change: transform; }
.toast-notification { will-change: transform, opacity; }

/* 커넥션 삭제 가이드 힌트 */
.ec-connections__hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary, #a0aec0);
  margin: 1.5rem 0 0.5rem 0;
  opacity: 0.85;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   27차 프리미엄 비주얼 고도화 스타일
   ========================================================================== */

/* 1단계: 3D Flip 명함 카드 및 네온 오라 */
.ec-qr__mycard-container {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 24px;
  perspective: 1200px;
  position: relative;
}

.ec-qr__mycard-inner {
  position: relative;
  width: 100%;
  height: 380px;
  text-align: center;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  will-change: transform;
}

/* 플립 액티브 시 회전 */
.ec-qr__mycard-inner.flipped {
  transform: rotateY(180deg);
}

.ec-qr__mycard {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--ec-radius-lg);
  border: 1px solid var(--ec-glass-border);
  background: rgba(18, 18, 26, 0.85);
  backdrop-filter: blur(24px);
  padding: 24px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.ec-qr__mycard--front {
  z-index: 2;
  transform: rotateY(0deg);
}

.ec-qr__mycard--back {
  transform: rotateY(180deg);
}

.ec-qr__canvas-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0;
}

.ec-qr__mycard-badge--detail {
  background: var(--ec-accent-dim);
  color: var(--ec-accent);
}

.ec-qr__flip-hint {
  font-size: 0.62rem;
  color: var(--ec-text-dim);
  font-weight: 500;
  letter-spacing: 0.5px;
  animation: ec-pulse 2s ease-in-out infinite;
}

.ec-qr__profile--detail {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  flex: 1;
  margin-top: 10px;
}

.ec-qr__profile-tags {
  width: 100%;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.ec-qr__profile-tag-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ec-qr__profile-tag-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--ec-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 3D 네온 오라 맥동 효과 */
.ec-qr__mycard-container::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: calc(var(--ec-radius-lg) + 3px);
  background: linear-gradient(135deg, var(--ec-accent), var(--ec-cyan), var(--ec-violet));
  opacity: 0.12;
  filter: blur(12px);
  z-index: -1;
  transition: opacity 0.4s var(--ec-ease), filter 0.4s var(--ec-ease);
}

.ec-qr__mycard-container:hover::after {
  opacity: 0.32;
  filter: blur(20px);
  animation: neonAuraPulse 3s ease-in-out infinite alternate;
}

@keyframes neonAuraPulse {
  0% { transform: scale(0.98); opacity: 0.25; }
  100% { transform: scale(1.03); opacity: 0.45; }
}

/* 2단계: QR 스캐너 3D 홀로그램 격망 & 글리치 로딩 */
.ec-camera__3d-grid-mesh {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(212,250,60, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,250,60, 0.08) 1px, transparent 1px);
  background-size: 16px 16px;
  perspective: 400px;
  transform: rotateX(60deg) scale(1.6) translateZ(-40px);
  transform-origin: center center;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.5s var(--ec-ease);
}

.ec-camera:not(.hidden) .ec-camera__3d-grid-mesh {
  opacity: 0.85;
  animation: scanningGridScroll 8s linear infinite;
}

@keyframes scanningGridScroll {
  0% { background-position: 0 0; }
  100% { background-position: 0 320px; }
}

.ec-camera__hologram-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 3;
}

.ec-camera__loader-svg {
  width: 130px;
  height: 130px;
  transform: rotate(-90deg);
}

.ec-camera__loader-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 2.5;
}

.ec-camera__loader-ring-progress {
  fill: none;
  stroke: var(--ec-green);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 251.2;
  stroke-dashoffset: 251.2;
  transition: stroke-dashoffset 0.1s linear;
  filter: drop-shadow(0 0 6px rgba(212,250,60, 0.5));
}

.ec-camera__loader-text-glitch {
  font-family: 'Archivo', 'Pretendard Variable', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ec-green);
  margin-top: 14px;
  letter-spacing: 1.5px;
  position: relative;
  text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
               -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
               0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
  animation: glitchText 1.5s infinite;
}

.ec-camera__tick-counter {
  font-family: 'Archivo', 'Pretendard Variable', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-top: 4px;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

@keyframes glitchText {
  0% {
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75), -0.025em -0.05em 0 rgba(0, 255, 0, 0.75), 0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
  }
  14% {
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75), -0.025em -0.05em 0 rgba(0, 255, 0, 0.75), 0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
  }
  15% {
    text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75), 0.025em 0.025em 0 rgba(0, 255, 0, 0.75), -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
  }
  49% {
    text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75), 0.025em 0.025em 0 rgba(0, 255, 0, 0.75), -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
  }
  50% {
    text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75), 0.05em 0 0 rgba(0, 255, 0, 0.75), 0 -0.05em 0 rgba(0, 0, 255, 0.75);
  }
  99% {
    text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75), 0.05em 0 0 rgba(0, 255, 0, 0.75), 0 -0.05em 0 rgba(0, 0, 255, 0.75);
  }
  100% {
    text-shadow: -0.025em 0 0 rgba(255, 0, 0, 0.75), -0.025em -0.025em 0 rgba(0, 255, 0, 0.75), -0.025em -0.05em 0 rgba(0, 0, 255, 0.75);
  }
}

/* 3단계: 커넥션 카드 3D Shuffle 탄성 정렬 */
.ec-connections__list {
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.connection-card {
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.25), opacity 0.5s var(--ec-ease), border-color 0.3s;
  will-change: transform, opacity;
}

.connection-card.shuffling {
  opacity: 0.7;
  transform: scale(0.96) translate3d(0, 5px, -10px);
}

.connection-card.shuffling-out {
  opacity: 0 !important;
  transform: scale(0.85) translate3d(0, -30px, -50px) rotateX(15deg) !important;
  pointer-events: none;
}

.connection-card.shuffling-in {
  animation: shufflingInSpring 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes shufflingInSpring {
  0% { opacity: 0; transform: scale(0.85) translate3d(0, 30px, -50px) rotateX(-15deg); }
  100% { opacity: 1; transform: scale(1) translate3d(0, 0, 0) rotateX(0); }
}

.connection-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 15px rgba(255, 255, 255, 0.03);
  transform: translateY(-2px) translateZ(5px);
}

/* ==========================================================================
   28차 프리미엄 비주얼 고도화 스타일
   ========================================================================== */

/* 1단계: 운영자 대시보드 3D 자이로 플로팅 및 3D Grid Wave */
.ec-admin__stats {
  perspective: 1000px;
  transform-style: preserve-3d;
}

.ec-admin__stat {
  transition: transform 0.4s var(--ec-ease), box-shadow 0.4s var(--ec-ease);
  will-change: transform;
  transform-style: preserve-3d;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: var(--ec-radius-sm);
}

.ec-admin__stat:hover {
  background: var(--ec-glass-hover);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.ec-admin__tables-grid {
  perspective: 1200px;
  transform-style: preserve-3d;
}

.ec-admin__table-card {
  transform-style: preserve-3d;
  will-change: transform, opacity;
  opacity: 0;
}

.ec-admin__table-card.grid-wave-pop-3d {
  animation: gridWavePop3d 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes gridWavePop3d {
  0% {
    opacity: 0;
    transform: translate3d(0, 40px, -150px) rotate3d(1, 0.5, 0, -45deg) scale(0.85);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate3d(0, 0, 0, 0deg) scale(1);
  }
}

/* 2단계: 대화 메모 모달 3D Perspective Glass-Morphism */
.ec-modal-overlay {
  perspective: 1200px;
  transform-style: preserve-3d;
}

.ec-modal {
  will-change: transform, opacity;
  transform-style: preserve-3d;
  backdrop-filter: blur(28px) saturate(160%);
  background: rgba(18, 18, 26, 0.82);
  border: 1px solid var(--ec-glass-border);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), 0 0 3px rgba(255, 255, 255, 0.05) inset;
}

.ec-modal.memo-pop-3d {
  animation: memoPop3d 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes memoPop3d {
  0% {
    opacity: 0;
    transform: translate3d(0, 50px, -250px) rotateX(-25deg) rotateY(12deg) scale(0.88);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) scale(1);
  }
}

.ec-modal__textarea {
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.ec-modal__textarea:focus {
  border-color: rgba(212,250,60, 0.45) !important;
  box-shadow: 0 0 16px rgba(212,250,60, 0.22), 0 0 1px rgba(212,250,60, 0.3) inset !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

/* 3단계: 공지사항 알림 팝업 3D Parabolic Flying 및 네온 플루이드 */
.ec-notice-popup {
  perspective: 1000px;
  transform-style: preserve-3d;
  z-index: 150;
}

.ec-notice-popup__card {
  transform-style: preserve-3d;
  will-change: transform, opacity;
  border-radius: var(--ec-radius-lg);
  border: 1px solid var(--ec-glass-border);
  backdrop-filter: blur(24px);
  background: rgba(10, 10, 15, 0.9);
  transition: box-shadow 0.4s var(--ec-ease), border-color 0.4s var(--ec-ease);
}

.ec-notice-popup.show .ec-notice-popup__card {
  animation: parabolicFlyIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.25) forwards;
}

@keyframes parabolicFlyIn {
  0% {
    opacity: 0;
    transform: translate3d(120px, 160px, -200px) rotateX(-22deg) rotateY(-15deg) scale(0.78);
  }
  60% {
    transform: translate3d(-10px, -15px, 20px) rotateX(4deg) rotateY(3deg) scale(1.03);
  }
  85% {
    transform: translate3d(4px, 6px, -8px) rotateX(-2deg) rotateY(-2deg) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) scale(1);
  }
}

/* 알림 유형별 실시간 광폭 네온 플루이드 */
.ec-notice-popup--urgent .ec-notice-popup__card {
  border-color: rgba(255, 77, 106, 0.38) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(255, 77, 106, 0.22), 0 0 1px rgba(255, 77, 106, 0.4) inset !important;
}

.ec-notice-popup--session .ec-notice-popup__card {
  border-color: rgba(165,166,172, 0.38) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(165,166,172, 0.22), 0 0 1px rgba(165,166,172, 0.4) inset !important;
}

.ec-notice-popup--tip .ec-notice-popup__card {
  border-color: rgba(212, 250, 60, 0.38) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(212, 250, 60, 0.22), 0 0 1px rgba(212, 250, 60, 0.4) inset !important;
}

.ec-notice-popup--general .ec-notice-popup__card {
  border-color: rgba(212,250,60, 0.38) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(212,250,60, 0.22), 0 0 1px rgba(212,250,60, 0.4) inset !important;
}

/* 안착 햅틱 스크린 진동 이펙트 */
@keyframes noticeHapticShake {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  15%, 55% { transform: translate3d(-3px, 2px, 0) rotate(-0.4deg); }
  35%, 75% { transform: translate3d(3px, -2px, 0) rotate(0.4deg); }
}

.notice-shake-active {
  animation: noticeHapticShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}


/* ==========================================================================
   30차 프리미엄 비주얼 고도화 스타일
   스마트 체크인 및 이벤트 컴패니언 모듈 (Module 5) 전용 입체 모션 구현
   ========================================================================== */

/* ── 1단계: QR 명함 카드의 3D Perspective Elastic Flip & Dynamic Holographic Glare ── */
.ec-qr__mycard-container {
  perspective: 1500px;
  transform-style: preserve-3d;
  width: 100%;
  max-width: 320px;
  height: 420px;
  margin: 0 auto 24px;
  cursor: pointer;
}

.ec-qr__mycard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
  /* CSS Elastic Transition (JS 회전 보간과 시너지) */
  transition: transform 0.95s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ec-qr__mycard-inner.flipped-elastic {
  transform: rotateY(180deg) translateZ(-50px);
}

.ec-qr__mycard {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--ec-radius-lg);
  border: 1px solid var(--ec-glass-border);
  backdrop-filter: blur(28px) saturate(140%);
  background: rgba(18, 18, 26, 0.75);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 3px rgba(255, 255, 255, 0.03) inset;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.ec-qr__mycard--front {
  transform: rotateY(0deg) translateZ(1px);
  z-index: 2;
}

.ec-qr__mycard--back {
  transform: rotateY(180deg) translateZ(1px);
}

/* 카드 뒷면 프로필 디테일 구조화 */
.ec-qr__profile--detail {
  padding: 12px 6px;
  text-align: left;
  transform: translateZ(30px);
}

.ec-qr__profile--detail .ec-qr__profile-name {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.ec-qr__profile-tags {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
  width: 100%;
}

.ec-qr__profile-tag-group {
  width: 100%;
}

.ec-qr__profile-tag-group #qrProfileGives,
.ec-qr__profile-tag-group #qrProfileAsks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.ec-qr__flip-hint {
  font-size: 0.62rem;
  color: var(--ec-text-dim);
  letter-spacing: 0.5px;
  animation: pulseHint 1.8s ease-in-out infinite;
}

@keyframes pulseHint {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}


/* ── 2단계: 미래형 QR 스캐너의 3D Holographic Grid Scanning 빔 ── */
.ec-camera__body {
  position: relative;
  background: #050508;
}

.ec-camera__guide {
  border: 1px solid rgba(212,250,60, 0.15) !important;
  box-shadow: 0 0 30px rgba(212,250,60, 0.05), inset 0 0 30px rgba(212,250,60, 0.05);
  backdrop-filter: blur(1px);
  overflow: hidden;
  transition: all 0.3s var(--ec-ease);
}

/* 3D SF 격망 시뮬레이션 Mesh */
.ec-camera__3d-grid-mesh {
  position: absolute;
  inset: -50px;
  border-radius: inherit;
  background-size: 16px 16px;
  background-image: 
    linear-gradient(to right, rgba(212,250,60, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(212,250,60, 0.06) 1px, transparent 1px);
  transform: perspective(250px) rotateX(65deg) translate3d(0, -40px, -40px);
  opacity: 0.85;
  z-index: 1;
  animation: scannerGridWave 6s linear infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}

@keyframes scannerGridWave {
  0% {
    background-position: 0 0;
    transform: perspective(250px) rotateX(65deg) translate3d(0, -40px, -40px) rotate(0deg);
  }
  50% {
    opacity: 0.95;
  }
  100% {
    background-position: 0 320px;
    transform: perspective(250px) rotateX(65deg) translate3d(0, -40px, -40px) rotate(0.8deg);
  }
}

/* 디지털 로더 구조 고도화 */
.ec-camera__hologram-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: none;
  background: rgba(10, 10, 15, 0.35);
  backdrop-filter: blur(0.5px);
}

.ec-camera__loader-svg {
  width: 90px;
  height: 90px;
  transform: rotate(-90deg);
  filter: drop-shadow(0 0 10px rgba(212,250,60, 0.35));
}

.ec-camera__loader-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 4;
}

.ec-camera__loader-ring-progress {
  fill: none;
  stroke: var(--corner-color, var(--ec-green));
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 251.2;
  stroke-dashoffset: 251.2;
  transition: stroke-dashoffset 0.1s ease, stroke 0.3s ease;
}

.ec-camera__loader-text-glitch {
  font-family: 'Archivo', 'Pretendard Variable', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--corner-color, var(--ec-green));
  letter-spacing: 2px;
  margin-top: 12px;
  text-shadow: 0 0 8px rgba(212,250,60, 0.3);
  animation: glitchText 2.5s steps(2) infinite;
}

@keyframes glitchText {
  0%, 100% { transform: translate(0); text-shadow: 0 0 8px rgba(212,250,60, 0.3); }
  20% { transform: translate(-1px, 1px); color: var(--ec-cyan); }
  40% { transform: translate(1px, -1px); color: var(--corner-color, var(--ec-green)); }
  60% { transform: translate(-0.5px, -0.5px); }
  80% { transform: translate(1px, 0.5px); color: var(--ec-violet); }
}

.ec-camera__tick-counter {
  font-family: 'Archivo', 'Pretendard Variable', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-top: 4px;
  letter-spacing: -0.5px;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

/* 스캔 빔 라인 발광 강화 */
.ec-camera__scan-line {
  z-index: 3;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--corner-color, var(--ec-green)), transparent);
  box-shadow: 0 0 15px var(--corner-color, var(--ec-green)), 0 0 35px rgba(212,250,60, 0.4);
}


/* ── 3단계: 스캔 성공 시 3D Cyber Card Float-In 및 모스 네온 아우라 ── */
.cyber-card-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 8, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cyber-card-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.cyber-card-wrapper {
  width: 90%;
  max-width: 320px;
  perspective: 1200px;
  transform-style: preserve-3d;
  pointer-events: none;
}

.cyber-card-backdrop.active .cyber-card-wrapper {
  pointer-events: auto;
}

.cyber-card-el {
  width: 100%;
  border-radius: var(--ec-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(20, 20, 30, 0.9) 0%, rgba(10, 10, 15, 0.95) 100%);
  padding: 32px 24px;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  box-shadow: 
    0 30px 70px rgba(0, 0, 0, 0.6), 
    0 0 50px rgba(212,250,60, 0.15), 
    0 0 2px rgba(255, 255, 255, 0.1) inset;
  text-align: center;
  position: relative;
  opacity: 0;
  transform: translate3d(0, 120px, -400px) rotateX(-45deg) rotateY(15deg) scale(0.6);
}

/* 우주 저편에서 날아오는 Float-In 핵심 애니메이션 */
.cyber-card-backdrop.active .cyber-card-el {
  animation: cyberCardFloatIn 1.1s cubic-bezier(0.175, 0.885, 0.32, 1.25) forwards,
             cyberCardHover 5s ease-in-out infinite 1.1s;
}

@keyframes cyberCardFloatIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 180px, -500px) rotateX(-55deg) rotateY(25deg) scale(0.5);
  }
  65% {
    transform: translate3d(0, -15px, 40px) rotateX(8deg) rotateY(-5deg) scale(1.04);
    opacity: 1;
  }
  85% {
    transform: translate3d(0, 6px, -15px) rotateX(-4deg) rotateY(2deg) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0) rotateY(0) scale(1);
  }
}

/* 둥실둥실 60fps 공중 부유 모션 */
@keyframes cyberCardHover {
  0%, 100% { transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg); }
  25% { transform: translate3d(0, -6px, 15px) rotateX(1.5deg) rotateY(1.5deg); }
  50% { transform: translate3d(0, 4px, -10px) rotateX(-1deg) rotateY(-2deg); }
  75% { transform: translate3d(0, -4px, 5px) rotateX(0.5deg) rotateY(1deg); }
}

/* 네온 아우라 광원 */
.cyber-card__aura {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--ec-green), var(--ec-cyan), var(--ec-violet), var(--ec-green));
  background-size: 300% 300%;
  animation: auroraFlow 6s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.85;
}

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

.cyber-card__reflection {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 2;
}

.cyber-card__glow {
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(212,250,60, 0.22) 0%, transparent 70%);
  top: -60px;
  left: calc(50% - 75px);
  filter: blur(10px);
  pointer-events: none;
  z-index: 1;
}

.cyber-card__front {
  position: relative;
  z-index: 3;
  transform-style: preserve-3d;
}

.cyber-card__header {
  font-family: 'Archivo', 'Pretendard Variable', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--ec-green);
  letter-spacing: 2.5px;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(212,250,60, 0.4);
  transform: translateZ(20px);
}

.cyber-card__avatar {
  font-size: 2.5rem;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transform: translateZ(40px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cyber-card__name {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  margin-bottom: 4px;
  transform: translateZ(35px);
}

.cyber-card__company {
  font-size: 0.82rem;
  color: var(--ec-text-sub);
  transform: translateZ(25px);
}

.cyber-card__role {
  font-size: 0.72rem;
  color: var(--ec-text-dim);
  margin-bottom: 24px;
  transform: translateZ(20px);
}

.cyber-card__tags {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  margin-bottom: 28px;
  transform: translateZ(30px);
}

.cyber-card__tag-group {
  width: 100%;
}

.cyber-card__tag-label {
  font-family: 'Archivo', 'Pretendard Variable', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--ec-text-dim);
  letter-spacing: 1px;
  margin-bottom: 6px;
  display: block;
}

.cyber-card__tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.cyber-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 600;
}

.cyber-tag--give {
  background: var(--ec-green-dim);
  color: var(--ec-green);
  border: 1px solid rgba(212,250,60, 0.12);
}

.cyber-tag--ask {
  background: var(--ec-cyan-dim);
  color: var(--ec-cyan);
  border: 1px solid rgba(244,244,241, 0.12);
}

.cyber-card__ok-btn {
  width: 100%;
  padding: 14px;
  border-radius: 100px;
  border: none;
  background: linear-gradient(90deg, var(--ec-green), var(--ec-cyan));
  color: #141110;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(212,250,60, 0.35);
  transition: all 0.3s var(--ec-ease);
  transform: translateZ(45px);
}

.cyber-card__ok-btn:hover {
  transform: translateZ(50px) translateY(-2px);
  box-shadow: 0 12px 30px rgba(212,250,60, 0.45);
}

.cyber-card__ok-btn:active {
  transform: translateZ(42px) translateY(0);
}


/* ==========================================================================
   31차 프리미엄 비주얼 고도화 스타일
   스마트 체크인 및 이벤트 컴패니언 모듈 (Module 5) 내 테이블 뷰 프리미엄 모션
   ========================================================================== */

/* ── 1단계: 3D Holographic Radar & Cyber Pulse Node 대기 인터랙션 ── */
.ec-table__radar-container {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 32px;
  perspective: 800px;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 3D 궤도 신호 격망판 */
.ec-table__radar-grid {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  /* 3D 기울기 왜곡 부여 */
  transform: rotateX(68deg) rotateZ(0deg) translateZ(-10px);
  background-image: 
    radial-gradient(circle, transparent 25%, rgba(212, 250, 60, 0.05) 26%, transparent 27%, 
                            transparent 50%, rgba(212, 250, 60, 0.08) 51%, transparent 52%, 
                            transparent 75%, rgba(212, 250, 60, 0.12) 76%, transparent 77%),
    repeating-conic-gradient(from 0deg, rgba(212, 250, 60, 0.02) 0deg 15deg, transparent 15deg 30deg);
  border: 1px solid rgba(212, 250, 60, 0.15);
  box-shadow: 0 0 35px rgba(212, 250, 60, 0.05), inset 0 0 35px rgba(212, 250, 60, 0.05);
  opacity: 0.85;
  pointer-events: none;
  animation: radarGridRotate 25s linear infinite;
  transform-style: preserve-3d;
}

@keyframes radarGridRotate {
  0% { transform: rotateX(68deg) rotateZ(0deg) translateZ(-10px); }
  100% { transform: rotateX(68deg) rotateZ(360deg) translateZ(-10px); }
}

/* 3D 탐색 빔 (conic 그라디언트 스위핑 효과) */
.ec-table__radar-beam {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  transform: rotateX(68deg) rotateZ(0deg) translateZ(-8px);
  background: conic-gradient(from 0deg, rgba(212, 250, 60, 0.4) 0deg, rgba(212, 250, 60, 0.1) 45deg, transparent 180deg);
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0.9;
  animation: radarBeamScan 3.2s linear infinite;
  -webkit-mask: radial-gradient(circle, transparent 40%, #fff 41%);
  mask: radial-gradient(circle, transparent 40%, #fff 41%);
}

@keyframes radarBeamScan {
  0% { transform: rotateX(68deg) rotateZ(0deg) translateZ(-8px); }
  100% { transform: rotateX(68deg) rotateZ(360deg) translateZ(-8px); }
}

/* 3D 공간을 타고 팽창하는 오로라 펄스 링 */
.ec-table__pulse-ring {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1.5px dashed rgba(212, 250, 60, 0.6);
  transform: rotateX(68deg) scale(0.2) translateZ(-5px);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

.ec-table__pulse-ring--1 { animation: radarPulse3d 4s cubic-bezier(0.1, 0.8, 0.3, 1) infinite; }
.ec-table__pulse-ring--2 { animation: radarPulse3d 4s cubic-bezier(0.1, 0.8, 0.3, 1) infinite 1.3s; }
.ec-table__pulse-ring--3 { animation: radarPulse3d 4s cubic-bezier(0.1, 0.8, 0.3, 1) infinite 2.6s; }

@keyframes radarPulse3d {
  0% {
    transform: rotateX(68deg) scale(0.1) translateZ(-5px);
    opacity: 0;
    border-color: rgba(212, 250, 60, 0.8);
    box-shadow: 0 0 10px rgba(212, 250, 60, 0.3), inset 0 0 10px rgba(212, 250, 60, 0.3);
  }
  15% {
    opacity: 0.9;
  }
  80% {
    border-color: rgba(255, 77, 106, 0.35);
  }
  100% {
    transform: rotateX(68deg) scale(1.3) translateZ(10px);
    opacity: 0;
    border-color: rgba(165,166,172, 0);
    box-shadow: 0 0 40px rgba(165,166,172, 0), inset 0 0 40px rgba(165,166,172, 0);
  }
}

.ec-table__waiting-icon {
  font-size: 2.8rem;
  z-index: 10;
  position: relative;
  filter: drop-shadow(0 0 15px rgba(212, 250, 60, 0.45));
  animation: radarWaitingIconFloat 3.5s ease-in-out infinite alternate;
}

@keyframes radarWaitingIconFloat {
  0% { transform: translateY(0) rotate(-3deg); }
  100% { transform: translateY(-12px) rotate(3deg); }
}

.ec-table__radar-glitch-text {
  font-family: 'Archivo', 'Pretendard Variable', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--ec-amber);
  letter-spacing: 2.5px;
  margin-bottom: 24px;
  text-shadow: 0 0 8px rgba(212, 250, 60, 0.3);
  animation: radarTextGlitch 2.2s steps(2) infinite;
}

@keyframes radarTextGlitch {
  0%, 100% { transform: translate(0); text-shadow: 0 0 8px rgba(212, 250, 60, 0.3); }
  25% { transform: translate(-1px, 1px); color: var(--ec-green); }
  50% { transform: translate(1px, -1px); color: var(--ec-amber); }
  75% { transform: translate(-0.5px, -0.5px); color: var(--ec-violet); }
}


/* ── 2단계: 배정 테이블 카드 3D 자이로 틸팅 & Holographic Glare ── */
.ec-table__card {
  perspective: 1200px;
  transform-style: preserve-3d;
  will-change: transform;
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow 0.4s var(--ec-ease), border-color 0.4s var(--ec-ease);
}

.ec-table__card .ec-checkin-reflection {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, var(--glare-opacity, 0)) 0%, transparent 60%),
              linear-gradient(135deg, rgba(212, 250, 60, 0.15) 0%, rgba(212,250,60, 0.08) 35%, rgba(165,166,172, 0.15) 75%, transparent 100%);
  mix-blend-mode: color-dodge;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 2;
}


/* ── 3단계: 테이블 배정 멤버 카드의 Staggered 3D Flight-In ── */
.table-member-card {
  transform-style: preserve-3d;
  will-change: transform, opacity;
  opacity: 0;
  transform: translate3d(0, 45px, -100px) rotateX(-20deg) scale(0.9);
}

/* 계단식 순차 비행 진입 기폭 */
.panel-table-active .table-member-card {
  animation: memberFlightIn 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes memberFlightIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 45px, -150px) rotateX(-20deg) scale(0.85);
  }
  60% {
    opacity: 1;
    transform: translate3d(0, -6px, 15px) rotateX(3deg) scale(1.02);
  }
  85% {
    transform: translate3d(0, 2px, -4px) rotateX(-1deg) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0) scale(1);
  }
}

.table-member-card--connected {
  border-color: rgba(212,250,60, 0.28) !important;
  box-shadow: 0 0 15px rgba(212,250,60, 0.08);
}


/* ==========================================================================
   32차 프리미엄 비주얼 고도화 스타일
   AI Smart Connect (스와이프 매칭 카드)의 3D 공간 물리 및 광원 햅틱 이식
   ========================================================================== */

.ec-match-card {
  perspective: 1200px;
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
  will-change: transform, opacity;
  transition: box-shadow 0.4s var(--ec-ease), border-color 0.4s var(--ec-ease), background 0.4s var(--ec-ease);
}

/* 매칭 카드 내부의 오로라 반사광 글레어 레이어 */
.ec-match-card .ec-checkin-reflection {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, var(--glare-opacity, 0)) 0%, transparent 60%),
              linear-gradient(135deg, rgba(212, 250, 60, 0.12) 0%, rgba(212,250,60, 0.06) 35%, rgba(165,166,172, 0.12) 75%, transparent 100%);
  mix-blend-mode: color-dodge;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 5;
}

/* 드래그 방향성 네온 아우라 (우측 연결: 에메랄드 네온) */
.ec-match-card.swiping-right--neon {
  border-color: rgba(212,250,60, 0.5) !important;
  box-shadow: 0 0 35px rgba(212,250,60, calc(var(--glow-opacity, 0) * 0.4)),
              inset 0 0 20px rgba(212,250,60, calc(var(--glow-opacity, 0) * 0.2)) !important;
}

/* 드래그 방향성 네온 아우라 (좌측 스킵: 적색/핑크 네온) */
.ec-match-card.swiping-left--neon {
  border-color: rgba(255, 77, 106, 0.5) !important;
  box-shadow: 0 0 35px rgba(255, 77, 106, calc(var(--glow-opacity, 0) * 0.4)),
              inset 0 0 20px rgba(255, 77, 106, calc(var(--glow-opacity, 0) * 0.2)) !important;
}

/* 임계점 돌파 트리거 레디 상태 (초발광 네온 맥동) */
.ec-match-card.swiping-trigger-ready {
  animation: matchPulseTrigger 0.8s ease-in-out infinite alternate;
}

@keyframes matchPulseTrigger {
  0% {
    transform: scale(1.02);
    filter: brightness(1.05);
  }
  100% {
    transform: scale(1.035);
    filter: brightness(1.15);
  }
}

/* 매칭 성공 시 뒷면 투사되는 프리미엄 네온 오로라 충격파 */
.ec-match-aura-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(212,250,60, 0.7) 0%, rgba(165,166,172, 0.4) 40%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0.9;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: matchAuraBlast 0.95s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
  z-index: 1;
}

@keyframes matchAuraBlast {
  0% {
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -50%) scale(6.0);
    opacity: 0;
  }
}


/* ==========================================================================
   33차 프리미엄 비주얼 고도화 스타일
   3D Cyber Canvas 체크인 카드, 탄성 태그 피직스, 우주선 해치 스플릿 워프
   ========================================================================== */

/* 1단계: 3D Cyber Canvas & 포커스 줌 */
.ec-checkin {
  perspective: 1500px;
}

.ec-checkin__form {
  position: relative;
  perspective: 1500px;
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg);
}

.ec-checkin__form:focus-within {
  transform: translate3d(0, 0, 30px) rotateX(var(--checkin-pitch, 0deg)) rotateY(var(--checkin-roll, 0deg));
  box-shadow: 0 30px 60px rgba(99, 102, 241, 0.15), 
              0 0 40px rgba(99, 102, 241, 0.08),
              inset 0 0 20px rgba(255, 255, 255, 0.02);
  border-color: rgba(99, 102, 241, 0.25);
}

.ec-checkin__form:focus-within .ec-checkin-reflection {
  --glare-opacity: 0.4;
  opacity: 1;
}

/* 2단계: 3D Elastic Tag & Particle Spark */
.tag {
  animation: tagPopElastic 0.48s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  will-change: transform, opacity;
}

@keyframes tagPopElastic {
  0% {
    transform: scale(0) translate3d(0, 5px, 0);
    opacity: 0;
  }
  60% {
    transform: scale(1.15) translate3d(0, -2px, 0);
  }
  100% {
    transform: scale(1) translate3d(0, 0, 0);
    opacity: 1;
  }
}

/* 3D 스파크 파티클 */
.ec-tag-spark {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 999;
  will-change: transform, opacity;
  animation: sparkOrbit 0.7s cubic-bezier(0.1, 0.8, 0.25, 1) forwards;
}

@keyframes sparkOrbit {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
    box-shadow: 0 0 8px currentColor;
  }
  100% {
    transform: translate3d(var(--tx), var(--ty), 60px) scale(0.2);
    opacity: 0;
    filter: blur(0.5px);
  }
}

/* 3단계: 체크인 완료 시 3D 우주선 회오리 워프 아웃 */
.form-warp-out {
  animation: checkinFormWarp 0.8s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards;
  pointer-events: none;
}

@keyframes checkinFormWarp {
  0% {
    transform: translate3d(0, 0, 30px) rotate3d(0, 0, 0, 0deg) scale(1);
    opacity: 1;
    filter: brightness(1) blur(0px);
  }
  30% {
    filter: brightness(2.0) blur(0.5px) drop-shadow(0 0 25px rgba(99, 102, 241, 0.7));
  }
  100% {
    transform: translate3d(0, -100px, -850px) rotate3d(1, 0.4, -0.8, 420deg) scale(0.02);
    opacity: 0;
    filter: brightness(3.0) blur(4px);
  }
}

/* SF Space Warp Gate Container */
.ec-warp-gate-container {
  position: fixed;
  inset: 0;
  display: flex;
  pointer-events: none;
  z-index: 9999;
  perspective: 1400px;
  transform-style: preserve-3d;
}

.ec-warp-gate {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: #08080f;
  border: 1px solid rgba(99, 102, 241, 0.12);
  box-shadow: inset 0 0 60px rgba(99, 102, 241, 0.08);
  will-change: transform, opacity;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ec-warp-gate--left {
  left: 0;
  border-right: 2px solid rgba(99, 102, 241, 0.6);
  box-shadow: inset -20px 0 40px rgba(99, 102, 241, 0.05), inset 0 0 60px rgba(99, 102, 241, 0.08);
  transform-origin: left center;
  transform: rotateY(0deg);
}

.ec-warp-gate--right {
  right: 0;
  border-left: 2px solid rgba(99, 102, 241, 0.6);
  box-shadow: inset 20px 0 40px rgba(99, 102, 241, 0.05), inset 0 0 60px rgba(99, 102, 241, 0.08);
  transform-origin: right center;
  transform: rotateY(0deg);
}

/* 해치 문 네온 라인 효과 */
.ec-warp-gate-hatch-pattern {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at center, transparent 30%, rgba(99, 102, 241, 0.02) 70%),
    linear-gradient(45deg, rgba(99, 102, 241, 0.01) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(99, 102, 241, 0.01) 25%, transparent 25%);
  background-size: 40px 40px;
}

.ec-warp-gate-logo {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.15em;
  opacity: 0.35;
  filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.4));
  transform: translateZ(20px);
}

.ec-warp-gate-logo span {
  color: rgba(99, 102, 241, 0.85);
}

/* 스플릿 갈라짐 동작 활성화 */
.ec-warp-gate-container.split-active .ec-warp-gate--left {
  animation: splitGateLeft 1.1s cubic-bezier(0.76, 0, 0.175, 1) forwards;
}

.ec-warp-gate-container.split-active .ec-warp-gate--right {
  animation: splitGateRight 1.1s cubic-bezier(0.76, 0, 0.175, 1) forwards;
}

@keyframes splitGateLeft {
  0% {
    transform: rotateY(0deg);
    opacity: 1;
  }
  30% {
    transform: rotateY(-3deg);
    opacity: 1;
    border-right-color: rgba(99, 102, 241, 1);
    box-shadow: inset -20px 0 60px rgba(99, 102, 241, 0.2);
  }
  100% {
    transform: rotateY(-105deg);
    opacity: 0;
  }
}

@keyframes splitGateRight {
  0% {
    transform: rotateY(0deg);
    opacity: 1;
  }
  30% {
    transform: rotateY(3deg);
    opacity: 1;
    border-left-color: rgba(99, 102, 241, 1);
    box-shadow: inset 20px 0 60px rgba(99, 102, 241, 0.2);
  }
  100% {
    transform: rotateY(105deg);
    opacity: 0;
  }
}

/* 대기 화면 워프인 안착 */
.ec-participant.warp-in-active {
  perspective: 1400px;
  animation: participantWarpIn 0.95s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes participantWarpIn {
  0% {
    transform: translate3d(0, 0, -220px) scale(0.85);
    opacity: 0;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
}

/* ==========================================================================
   VIEW TRANSITION API PREMIUM EFFECTS
   ========================================================================== */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root) {
  z-index: 1;
}
::view-transition-new(root) {
  z-index: 9999;
}
