/* ═══════════════════════════════════════════════════════════
   파트너 온보딩 모듈 스타일
   - 모달 (14슬라이드)
   - 상단 배너 (동적 조건부)
   - 우하단 플로팅 ? 버튼
   - 사이드바 "가이드" 버튼 스타일
   ═══════════════════════════════════════════════════════════ */

/* 사이드바 가이드 버튼 (portal.html 사이드바 하단 삽입) */
.pob-sidebar-guide {
  padding: 10px 20px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #667eea;
  font-weight: 700;
  background: linear-gradient(90deg, rgba(102,126,234,0.08), transparent);
  border-left: 3px solid #667eea;
  transition: background 0.15s;
}
.pob-sidebar-guide:hover {
  background: linear-gradient(90deg, rgba(102,126,234,0.15), rgba(102,126,234,0.03));
}

/* 상단 배너 */
.pob-banner {
  display: none;
  background: linear-gradient(135deg, #0f172a, #312e81);
  color: #fff;
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 16px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.22);
}
.pob-banner.show { display: flex; }
.pob-banner-left { display: flex; align-items: center; gap: 14px; }
.pob-banner-icon { font-size: 30px; }
.pob-banner-title { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.pob-banner-desc { font-size: 11px; color: rgba(255,255,255,0.7); line-height: 1.5; }
.pob-banner-cta {
  background: linear-gradient(135deg, #667eea, #a78bfa);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(102,126,234,0.35);
  transition: transform 0.15s;
}
.pob-banner-cta:hover { transform: translateY(-1px); }

/* 우하단 플로팅 버튼 */
.pob-floating {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #a78bfa);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(102,126,234,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pob-floating:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 12px 32px rgba(102,126,234,0.6); }
@media (max-width: 768px) {
  .pob-floating { bottom: 16px; right: 16px; width: 44px; height: 44px; font-size: 20px; }
}

/* 모달 오버레이 */
.pob-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  backdrop-filter: blur(6px);
}
.pob-modal-overlay.active { display: flex; animation: pob-fade 0.25s ease; }
@keyframes pob-fade { from { opacity: 0; } to { opacity: 1; } }

.pob-modal {
  background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%);
  color: #fff;
  border-radius: 20px;
  max-width: 620px;
  width: calc(100% - 40px);
  max-height: 92vh;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,0.5);
  animation: pob-slide 0.3s ease;
  display: flex;
  flex-direction: column;
}
@keyframes pob-slide { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.pob-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.pob-step-indicator { display: flex; gap: 2px; }
.pob-step-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.2); transition: all 0.2s; }
.pob-step-dot.active { background: #a78bfa; width: 18px; border-radius: 4px; }
.pob-step-counter { font-size: 11px; color: rgba(255,255,255,0.5); margin-left: 10px; }
.pob-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 4px 10px;
}
.pob-modal-close:hover { color: #fff; }

.pob-modal-body {
  padding: 36px 32px 28px;
  min-height: 460px;
  overflow-y: auto;
  flex: 1;
}
.pob-slide { display: none; animation: pob-fade 0.3s ease; }
.pob-slide.active { display: block; }
.pob-slide-label {
  display: inline-block;
  font-size: 10px;
  color: #a5b4fc;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(167,139,250,0.15);
  border: 1px solid rgba(167,139,250,0.3);
}
.pob-slide-title {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 14px;
  line-height: 1.3;
  letter-spacing: -0.4px;
}
.pob-slide-title .accent {
  background: linear-gradient(135deg, #667eea, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pob-slide-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 16px;
}
.pob-slide-desc strong { color: #fff; }

/* 반복 요소: 카드·그리드·매트릭스·flow 등 */
.pob-vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.pob-vs-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 16px; }
.pob-vs-card.good { background: linear-gradient(135deg, rgba(102,126,234,0.15), rgba(167,139,250,0.08)); border-color: rgba(102,126,234,0.3); }
.pob-vs-tag { display: inline-block; font-size: 10px; padding: 3px 9px; border-radius: 20px; margin-bottom: 10px; font-weight: 700; }
.pob-vs-tag.bad { background: rgba(239,68,68,0.2); color: #fca5a5; }
.pob-vs-tag.good { background: rgba(52,211,153,0.2); color: #6ee7b7; }
.pob-vs-title { font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.pob-vs-item { font-size: 12px; color: rgba(255,255,255,0.7); margin-bottom: 5px; }

.pob-role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.pob-role-card { border-radius: 12px; padding: 16px; }
.pob-role-card.do { background: linear-gradient(135deg, rgba(102,126,234,0.15), rgba(167,139,250,0.08)); border: 1px solid rgba(102,126,234,0.3); }
.pob-role-card.auto { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); }
.pob-role-tag { display: inline-block; font-size: 10px; padding: 3px 10px; border-radius: 20px; margin-bottom: 10px; font-weight: 700; }
.pob-role-tag.do { background: rgba(102,126,234,0.25); color: #a5b4fc; }
.pob-role-tag.auto { background: rgba(52,211,153,0.2); color: #6ee7b7; }
.pob-role-title { font-size: 14px; font-weight: 800; margin-bottom: 8px; }
.pob-role-item { font-size: 12px; color: rgba(255,255,255,0.75); margin-bottom: 6px; padding-left: 18px; position: relative; line-height: 1.5; }
.pob-role-item::before { content: ''; position: absolute; left: 0; top: 6px; width: 6px; height: 6px; border-radius: 50%; }
.pob-role-card.do .pob-role-item::before { background: #a5b4fc; }
.pob-role-card.auto .pob-role-item::before { background: #6ee7b7; }

.pob-field-preview { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 16px; margin-top: 14px; }
.pob-field-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); align-items: flex-start; }
.pob-field-row:last-child { border-bottom: none; }
.pob-field-label { font-size: 11px; color: #a5b4fc; font-weight: 700; width: 90px; flex-shrink: 0; padding-top: 2px; }
.pob-field-value { font-size: 12px; color: rgba(255,255,255,0.85); flex: 1; line-height: 1.55; }
.pob-field-value.highlight { background: rgba(167,139,250,0.15); border-left: 2px solid #a78bfa; padding: 8px 10px; border-radius: 6px; }
.pob-field-chip { display: inline-block; font-size: 10px; padding: 2px 8px; background: rgba(167,139,250,0.2); color: #c4b5fd; border-radius: 10px; margin: 2px 3px 2px 0; }

.pob-matrix { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
.pob-matrix-cell { border-radius: 10px; padding: 12px; text-align: center; }
.pob-matrix-cell.best { background: linear-gradient(135deg, #667eea, #a78bfa); }
.pob-matrix-cell.ok { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); }
.pob-matrix-cell.bad { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); }
.pob-matrix-combo { font-size: 11px; font-weight: 700; margin-bottom: 6px; opacity: 0.85; }
.pob-matrix-result { font-size: 13px; font-weight: 800; }
.pob-matrix-emoji { font-size: 24px; display: block; margin-bottom: 6px; }

.pob-flow-step { display: flex; align-items: flex-start; gap: 14px; padding: 12px 14px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; margin-bottom: 8px; }
.pob-flow-step.highlight { background: linear-gradient(135deg, rgba(102,126,234,0.2), rgba(167,139,250,0.1)); border-color: rgba(167,139,250,0.4); }
.pob-flow-icon { font-size: 24px; flex-shrink: 0; width: 36px; text-align: center; }
.pob-flow-who { font-size: 10px; font-weight: 700; color: #a5b4fc; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 4px; }
.pob-flow-action { font-size: 13px; font-weight: 700; margin-bottom: 4px; color: #fff; }
.pob-flow-detail { font-size: 11px; color: rgba(255,255,255,0.65); line-height: 1.5; }

.pob-folder-item { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 16px; margin-bottom: 10px; display: flex; gap: 14px; }
.pob-folder-icon { font-size: 32px; flex-shrink: 0; }
.pob-folder-name { font-size: 14px; font-weight: 800; margin-bottom: 3px; }
.pob-folder-role { display: inline-block; font-size: 10px; background: rgba(167,139,250,0.2); color: #c4b5fd; padding: 2px 8px; border-radius: 10px; margin-bottom: 6px; }
.pob-folder-desc { font-size: 12px; color: rgba(255,255,255,0.7); line-height: 1.55; }

.pob-growth-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.pob-growth-item { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 14px 8px; text-align: center; }
.pob-growth-item.last { background: linear-gradient(135deg, #667eea, #a78bfa); border-color: transparent; }
.pob-growth-val { font-size: 22px; font-weight: 900; margin-bottom: 2px; }
.pob-growth-label { font-size: 10px; color: rgba(255,255,255,0.6); }
.pob-growth-item.last .pob-growth-label { color: rgba(255,255,255,0.85); }

.pob-seo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.pob-seo-item { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 10px 12px; font-size: 11px; color: rgba(255,255,255,0.8); display: flex; gap: 8px; align-items: center; }
.pob-seo-item::before { content: '✓'; color: #6ee7b7; font-weight: 900; }

.pob-multi-hero { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 20px; margin-top: 14px; }
.pob-multi-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.pob-multi-main { background: linear-gradient(135deg, #667eea, #a78bfa); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13px; font-weight: 800; text-align: center; }
.pob-multi-arrow { color: rgba(255,255,255,0.4); font-size: 20px; }
.pob-multi-sub { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); color: #fff; padding: 6px 12px; border-radius: 8px; font-size: 11px; font-weight: 600; }
.pob-multi-calc { text-align: center; padding: 14px; background: rgba(167,139,250,0.1); border-radius: 10px; margin-top: 8px; font-size: 13px; color: rgba(255,255,255,0.85); }
.pob-multi-calc strong { color: #a78bfa; font-size: 15px; }

.pob-margin-table { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 18px; margin-top: 14px; }
.pob-margin-head { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; text-align: center; margin-bottom: 14px; font-size: 10px; color: #a5b4fc; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; }
.pob-margin-head small { display: block; color: rgba(255,255,255,0.4); font-size: 9px; font-weight: 400; margin-top: 2px; }
.pob-margin-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; text-align: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.pob-margin-row.highlight { background: linear-gradient(135deg, rgba(102,126,234,0.15), rgba(167,139,250,0.08)); border-radius: 8px; margin-top: 4px; border-bottom: none; }
.pob-margin-sell { font-size: 16px; font-weight: 800; }
.pob-margin-row.highlight .pob-margin-sell { font-size: 18px; font-weight: 900; }
.pob-margin-cost { font-size: 13px; color: rgba(255,255,255,0.6); }
.pob-margin-profit { font-size: 16px; font-weight: 900; color: #6ee7b7; }
.pob-margin-row.highlight .pob-margin-profit { font-size: 20px; background: linear-gradient(135deg, #667eea, #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.pob-payment-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 16px; }
.pob-payment-card.A { background: linear-gradient(135deg, rgba(102,126,234,0.18), rgba(167,139,250,0.1)); border-color: rgba(102,126,234,0.3); margin-bottom: 10px; }
.pob-payment-card.B { margin-bottom: 10px; }
.pob-payment-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pob-payment-num { width: 28px; height: 28px; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900; }
.pob-payment-num.A { background: #667eea; }
.pob-payment-num.B { background: #fff; color: #0f172a; }
.pob-payment-title { font-size: 14px; font-weight: 800; }
.pob-payment-badge { font-size: 10px; padding: 2px 8px; background: rgba(234,179,8,0.2); color: #fde68a; border-radius: 10px; margin-left: auto; }
.pob-payment-list { font-size: 12px; color: rgba(255,255,255,0.8); line-height: 1.6; margin-left: 38px; }

.pob-trial-banner { background: linear-gradient(135deg, #667eea, #a78bfa); border-radius: 12px; padding: 16px 18px; margin-top: 14px; text-align: center; }
.pob-trial-pretext { font-size: 11px; color: rgba(255,255,255,0.85); margin-bottom: 4px; font-weight: 700; }
.pob-trial-big { font-size: 28px; font-weight: 900; color: #fff; margin-bottom: 4px; }
.pob-trial-sub { font-size: 12px; color: rgba(255,255,255,0.85); }

.pob-message-card { background: #fff; color: #1d1d1f; border-radius: 12px; padding: 20px; margin-top: 14px; font-family: 'Pretendard', -apple-system, sans-serif; box-shadow: 0 4px 20px rgba(0,0,0,0.3); position: relative; }
.pob-message-tag { font-size: 10px; color: #667eea; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 8px; }
.pob-message-body { font-size: 13px; color: #1d1d1f; line-height: 1.8; }
.pob-message-body strong { color: #667eea; }
.pob-message-copy-btn { position: absolute; top: 14px; right: 14px; background: #f0f0f0; border: none; padding: 6px 10px; border-radius: 6px; font-size: 10px; cursor: pointer; color: #555; font-weight: 600; }
.pob-message-copy-btn:hover { background: #e0e0e0; }

.pob-support-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 18px; margin-bottom: 10px; }
.pob-support-card.muted { opacity: 0.55; }
.pob-support-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.pob-support-icon { font-size: 26px; }
.pob-support-name { font-size: 14px; font-weight: 800; }
.pob-support-status { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; margin-left: auto; }
.pob-support-status.active { background: rgba(52,211,153,0.2); color: #6ee7b7; }
.pob-support-status.pending { background: rgba(234,179,8,0.2); color: #fde68a; }
.pob-support-email { font-size: 13px; color: #a5b4fc; font-weight: 600; font-family: monospace; }
.pob-support-desc { font-size: 11px; color: rgba(255,255,255,0.65); margin-top: 6px; line-height: 1.5; }

.pob-price-hero { text-align: center; padding: 20px; background: linear-gradient(135deg, rgba(102,126,234,0.2), rgba(167,139,250,0.1)); border-radius: 14px; margin-top: 16px; }
.pob-price-big { font-size: 44px; font-weight: 900; background: linear-gradient(135deg, #667eea, #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1.1; }
.pob-price-sub { font-size: 11px; color: rgba(255,255,255,0.6); margin-bottom: 4px; }
.pob-price-vs { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 6px; }

.pob-modal-footer {
  padding: 16px 24px 20px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.pob-btn { padding: 11px 22px; border-radius: 10px; font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.15s; border: none; }
.pob-btn-secondary { background: rgba(255,255,255,0.1); color: #fff; }
.pob-btn-secondary:hover { background: rgba(255,255,255,0.18); }
.pob-btn-primary {
  background: linear-gradient(135deg, #667eea, #a78bfa);
  color: #fff;
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4);
}
.pob-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(102, 126, 234, 0.55); }
.pob-btn-ghost { background: none; color: rgba(255,255,255,0.5); font-size: 12px; padding: 8px 12px; }
.pob-btn-ghost:hover { color: #fff; }
