/* 인스타 미연결 화면 — 잇비 카드 (28차 2단계)
   진입: index.html #homePreConnect (인스타 미연결 + 토큰 보유 사장님)
   톤: 토스/애플 단정. 처음 사장님 + 연동 해제 후 기존 사장님 둘 다 범용. */

.ipc-section { padding: 16px 14px; }

.ipc-hero {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 22px;
  padding: 28px 20px 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 460px;
  margin: 0 auto;
}
.ipc-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(213,138,149,0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* 잇비 캐릭터 — 둥실 모션 */
.ipc-char {
  width: 72px; height: 72px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-bg, #FEF3F5), rgba(213,138,149,0.18));
  display: flex; align-items: center; justify-content: center;
  position: relative;
  animation: ipcFloat 3.2s ease-in-out infinite;
  box-shadow: 0 8px 24px rgba(229,88,110,0.12);
}
.ipc-char svg { width: 38px; height: 38px; stroke: var(--brand); fill: none; }
.ipc-char::after {
  content: '';
  position: absolute;
  bottom: -10px; left: 50%; transform: translateX(-50%);
  width: 50px; height: 6px;
  background: rgba(229,88,110,0.08);
  border-radius: 50%;
  filter: blur(4px);
  animation: ipcShadow 3.2s ease-in-out infinite;
}
@keyframes ipcFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes ipcShadow {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.4; }
  50% { transform: translateX(-50%) scale(0.7); opacity: 0.2; }
}

.ipc-label {
  display: inline-block;
  font-size: 11px; font-weight: 700; color: var(--brand);
  background: var(--brand-bg, #FEF3F5);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
  letter-spacing: 0.2px;
}
.ipc-hello {
  font-size: 14px; color: var(--text-muted, #5A6573);
  margin-bottom: 6px;
  font-weight: 500;
  letter-spacing: -0.2px;
}
.ipc-headline {
  font-size: 20px; font-weight: 800; color: var(--text);
  line-height: 1.4; letter-spacing: -0.4px;
  margin: 0 0 14px;
}
.ipc-headline b { color: var(--brand); }

/* 잇비가 하는 일 박스 */
.ipc-bubble {
  position: relative;
  background: var(--brand-bg, #FEF3F5);
  border: 0.5px solid rgba(229,88,110,0.18);
  border-radius: 12px;
  padding: 12px 14px 10px;
  margin-bottom: 16px;
  text-align: left;
}
.ipc-bubble::before {
  content: '';
  position: absolute;
  top: -6px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 10px; height: 10px;
  background: var(--brand-bg, #FEF3F5);
  border-left: 0.5px solid rgba(229,88,110,0.18);
  border-top: 0.5px solid rgba(229,88,110,0.18);
}
.ipc-bubble-label {
  font-size: 11px; font-weight: 800; color: var(--brand);
  letter-spacing: 0.3px;
  margin-bottom: 8px;
  text-transform: uppercase;
  text-align: center;
}
.ipc-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 0;
  border-bottom: 0.5px solid rgba(229,88,110,0.12);
}
.ipc-item:last-child { border-bottom: none; padding-bottom: 0; }
.ipc-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(229,88,110,0.14);
  display: flex; align-items: center; justify-content: center;
}
.ipc-icon svg { width: 14px; height: 14px; stroke: var(--brand); fill: none; }
.ipc-body { flex: 1; min-width: 0; }
.ipc-title { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.4; letter-spacing: -0.2px; }
.ipc-sub { font-size: 11.5px; color: var(--text-muted, #5A6573); margin-top: 2px; font-weight: 500; line-height: 1.4; }
.ipc-arrow { color: var(--brand); font-weight: 700; margin-right: 3px; }

/* CTA */
.ipc-cta {
  display: block; width: 100%;
  height: 50px;
  background: var(--text);
  color: var(--surface, #fff);
  border: none;
  border-radius: 12px;
  font-size: 15px; font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ipc-cta:hover { transform: translateY(-2px); }
.ipc-cta::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: ipcShimmer 2.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ipcShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* PC 살짝 키움 */
@media (min-width: 900px) {
  .ipc-hero { padding: 40px 32px 32px; margin: 60px auto 0; }
  .ipc-char { width: 88px; height: 88px; margin-bottom: 18px; }
  .ipc-char svg { width: 44px; height: 44px; }
  .ipc-headline { font-size: 24px; margin-bottom: 16px; }
  .ipc-cta { height: 54px; font-size: 16px; }
}

/* 다크모드 */
[data-theme="dark"] .ipc-hero {
  background: var(--surface-2, #1c1f24);
  border-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .ipc-bubble {
  background: rgba(213,138,149,0.08);
}

/* 지금은 됐어요 — 카드 닫기 (영구 미표시 / 인스타 연결 시 자동 해제) */
.ipc-skip {
  display: block;
  text-align: center;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-subtle, #98A1AC);
  padding: 12px 0 2px;
  margin-top: 8px;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  font-family: inherit;
  letter-spacing: -0.1px;
  transition: color 0.15s;
}
.ipc-skip:hover { color: var(--text-muted, #5A6573); }

/* 카드 닫음 후 메인홈 상단 작은 띠 — 재진입 경로 (28차 hotfix) */
.ipc-mini-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 14px;
  padding: 11px 14px;
  background: var(--brand-bg, #FEF3F5);
  border: 0.5px solid rgba(229,88,110,0.18);
  border-radius: 10px;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s;
}
.ipc-mini-bar:hover { opacity: 0.8; }
.ipc-mini-bar-text {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.2px;
}
.ipc-mini-bar svg { stroke: var(--brand); flex-shrink: 0; }
