/* =============================================================
   B2B 대시보드 프리미엄 스타일
   ============================================================= */
/* ── B2B 상단 소개 배너 ── */
.b2b-hero-bar {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  border-radius: var(--r-xl);
  padding: 40px 48px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.b2b-hero-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 70% 50%,
    rgba(99, 102, 241, 0.18),
    transparent 60%
  );
}
.b2b-hero-left {
  position: relative;
  z-index: 1;
}
.b2b-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 5px 12px;
  border-radius: var(--r-full);
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.05);
}
.b2b-hero-h1 {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -1px;
}
.b2b-hero-h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #818cf8, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.b2b-hero-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}
.b2b-kpi-strip {
  display: flex;
  gap: 0;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-lg);
  overflow: hidden;
  flex-shrink: 0;
}
.b2b-strip-item {
  padding: 20px 28px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.b2b-strip-item:last-child {
  border-right: none;
}
.b2b-strip-num {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.b2b-strip-lbl {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
  font-weight: 500;
}

/* ── B2B 기업 카드 목록 ── */
.b2b-company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 18px;
}
.b2b-comp-card {
  background: #fff;
  border: 1.5px solid var(--border-base);
  border-radius: var(--r-xl);
  padding: 24px;
  cursor: pointer;
  transition:
    box-shadow var(--dur-base),
    border-color var(--dur-base),
    transform var(--dur-base);
}
.b2b-comp-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-400);
  transform: translateY(-2px);
}
.b2b-comp-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}
.b2b-comp-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}
.b2b-comp-meta {
  flex: 1;
}
.b2b-comp-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 6px;
}
.b2b-comp-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.b2b-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--r-full);
  background: var(--n-100);
  color: var(--text-3);
}
.b2b-comp-desc {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 16px;
  line-height: 1.5;
}
.b2b-comp-metrics {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.b2b-metric {
  display: flex;
  align-items: center;
  gap: 4px;
}
.b2b-metric-icon {
  font-size: 13px;
}
.b2b-metric-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
}
.b2b-metric-lbl {
  font-size: 12px;
  color: var(--text-3);
}
.b2b-metric-divider {
  width: 1px;
  height: 14px;
  background: var(--border-base);
}
.b2b-pill-row {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.b2b-dim-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--r-full);
  border: 1.5px solid color-mix(in srgb, var(--dc, #6366f1) 30%, transparent);
  color: var(--dc, #6366f1);
  background: color-mix(in srgb, var(--dc, #6366f1) 8%, transparent);
}

/* ── B2B 사이드바 로고 / 헤더 ── */
.b2b-sidenav-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}
.b2b-sidenav-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.b2b-sidenav-name-wrap {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.b2b-data-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-green {
  background: #10b981;
  box-shadow: 0 0 5px rgba(16, 185, 129, 0.5);
}
.dot-gray {
  background: #cbd5e1;
}

/* ── B2B 회사 정보 배너 ── */
.b2b-company-banner {
}
.b2b-banner-logo {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

/* ── B2B 상단 KPI 카드 ── */
.b2b-top-kpi {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.b2b-top-kpi-external {
  grid-template-columns: repeat(3, 1fr);
}
.b2b-tkpi {
  background: #fff;
  border: 1px solid var(--border-base);
  border-radius: var(--r-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: box-shadow var(--dur-base);
}
.b2b-tkpi:hover {
  box-shadow: var(--shadow-md);
}
.b2b-top-kpi-external .b2b-tkpi {
  padding: 20px 24px;
  border-width: 1.5px;
}
.b2b-tkpi-high-alert {
  border-color: #fda4af !important;
  background: linear-gradient(135deg, #fff1f2 0%, #fff 60%) !important;
}
.b2b-tkpi-wide .b2b-tkpi-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}
.b2b-tkpi-wide .b2b-tkpi-val {
  font-size: 28px;
}
.b2b-tkpi-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.b2b-tkpi-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}
.b2b-tkpi-val {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}
.b2b-tkpi-unit {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-4);
}
.b2b-tkpi-trend {
  font-size: 11px;
  font-weight: 600;
  color: #10b981;
}

/* ── 플랫폼 카드 목록 ── */
.b2b-platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.b2b-platform-card {
  background: var(--n-50);
  border: 1.5px solid var(--border-base);
  border-radius: var(--r-lg);
  padding: 16px;
  transition:
    box-shadow var(--dur-base),
    border-color var(--dur-base);
}
.b2b-platform-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--n-300);
}
.b2b-pf-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.b2b-pf-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.b2b-pf-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-1);
  flex: 1;
}
.b2b-pf-trend {
  font-size: 11px;
  font-weight: 700;
}
.pf-up {
  color: #10b981;
}
.pf-down {
  color: #f43f5e;
}
.pf-flat {
  color: #94a3b8;
}
.b2b-pf-rating {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}
.b2b-pf-stars {
  font-size: 12px;
  margin-bottom: 4px;
}
.b2b-pf-reviews {
  font-size: 11px;
  color: var(--text-4);
  margin-bottom: 8px;
}
.b2b-pf-bar-wrap {
  height: 4px;
  background: var(--n-200);
  border-radius: var(--r-full);
  overflow: hidden;
}
.b2b-pf-bar {
  height: 100%;
  border-radius: var(--r-full);
  transition: width 0.8s var(--ease-out);
}

/* ── 탭 상태 표시 ── */
.sidenav-item.tab-wip {
  opacity: 0.85;
}
.sidenav-item.tab-wip:hover {
  background: rgba(245, 158, 11, 0.07);
  color: var(--text-1);
}
.sidenav-item.tab-disabled {
  opacity: 0.45;
  cursor: not-allowed !important;
  pointer-events: none;
}
.sidenav-item.tab-disabled:hover {
  background: transparent;
  color: var(--text-3);
}
.tab-status-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-full);
  flex-shrink: 0;
  letter-spacing: 0.04em;
  line-height: 1.6;
}
.badge-wip {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  animation: wipPulse 2.4s ease-in-out infinite;
}
.badge-disabled {
  background: var(--n-100);
  color: var(--text-4);
  border: 1px solid var(--border-base);
}
.badge-ready {
  color: #10b981;
  font-size: 8px;
  line-height: 1;
  background: transparent;
  border: none;
  padding: 0;
}

@keyframes wipPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

/* ── 탭 상태 안내 화면 ── */
.tab-status-screen {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 64px 40px;
  text-align: center;
  border: 2px dashed var(--border-base);
}
.tab-status-screen.wip {
  border-color: #fde68a;
  background: linear-gradient(135deg, #fffbeb 0%, #fff 60%);
}
.tab-status-screen.disabled {
  border-color: var(--border-base);
  background: linear-gradient(135deg, #f8fafc 0%, #fff 60%);
}
.tab-screen-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.tab-screen-icon.wip {
  background: linear-gradient(135deg, #fef3c7, #ffe4a0);
  color: #d97706;
}
.tab-screen-icon.disabled {
  background: var(--n-100);
  color: var(--text-4);
}
.tab-screen-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--r-full);
  margin-bottom: 16px;
}
.tab-screen-badge.wip {
  background: #fef3c7;
  color: #b45309;
  border: 1.5px solid #fde68a;
}
.tab-screen-badge.disabled {
  background: var(--n-100);
  color: var(--text-4);
  border: 1.5px solid var(--border-base);
}
.tab-screen-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-1);
  margin-bottom: 10px;
}
.tab-screen-desc {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto 32px;
}
.tab-screen-steps {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.tab-screen-step {
  background: var(--n-50);
  border: 1.5px solid var(--border-base);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  min-width: 160px;
  max-width: 200px;
  flex: 1;
  text-align: left;
}
.tab-screen-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: var(--brand-600);
  margin-bottom: 10px;
}
.tab-screen-step-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 4px;
}
.tab-screen-step-desc {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
}
.tab-screen-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}
.tab-screen-chip {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--r-full);
  background: #eef2ff;
  color: #4f46e5;
  border: 1px solid #c7d2fe;
}

/* ── 고객 동향 / 키워드 테이블 ── */
.cdt-kpi-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.cdt-kpi-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--n-0);
  border: 1.5px solid var(--border-base);
  border-radius: 14px;
  padding: 14px 18px;
  flex: 1;
  min-width: 140px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.cdt-kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cdt-kpi-num {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-1);
  line-height: 1;
}
.cdt-kpi-lbl {
  font-size: 11px;
  color: var(--text-4);
  margin-top: 3px;
  font-weight: 600;
}

/* 키워드 테이블 */
.cdt-kw-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.cdt-kw-table colgroup col:nth-child(1) {
  width: 56px;
}
.cdt-kw-table colgroup col:nth-child(2) {
  width: 28%;
}
.cdt-kw-table colgroup col:nth-child(3) {
  width: 15%;
}
.cdt-kw-table colgroup col:nth-child(4) {
  width: 14%;
}
.cdt-kw-table colgroup col:nth-child(5) {
  width: 14%;
}
.cdt-kw-table colgroup col:nth-child(6) {
  width: 17%;
}

.cdt-kw-table thead th {
  padding: 14px 18px;
  background: var(--n-50);
  border-top: 1px solid var(--border-base);
  border-bottom: 1px solid var(--border-base);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-4);
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.cdt-kw-table tbody td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  text-align: center;
}

.cdt-kw-table tbody td:nth-child(2) {
  text-align: center;
}

.cdt-kw-table tbody td:first-child {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-4);
  text-align: center;
}

.cdt-kw-table tbody td:nth-child(4) {
  text-align: center;
}

.cdt-kw-table tbody td:nth-child(6) {
  font-size: 11px;
  color: var(--text-4);
  text-align: center;
  white-space: nowrap;
}

.cdt-kw-row:last-child td {
  border-bottom: none;
}

.cdt-kw-row:hover {
  background: var(--n-50);
}

.cdt-kw-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  text-align: center;
}
.cdt-kw-high {
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
}
.cdt-kw-medium {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}
.cdt-kw-low {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.cdt-type-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  text-align: center;
}

.cdt-signal-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  margin-right: 4px;
  vertical-align: middle;
}
.cdt-sig-high {
  background: #f43f5e;
}
.cdt-sig-medium {
  background: #f59e0b;
}
.cdt-sig-low {
  background: #94a3b8;
}

.cdt-hit-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #6366f1;
  font-size: 11px;
  font-weight: 800;
}

/* 데스크탑에서는 테이블, 모바일에서는 카드 리스트로 전환 */
.cdt-kw-table-desktop {
  display: table;
  width: 100%;
}

.cdt-kw-mobile-list {
  display: none;
}

.cdt-kw-mobile-rank {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-4);
  white-space: nowrap;
}

.cdt-kw-mobile-level {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.cdt-kw-mobile-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  text-align: center;
  white-space: nowrap;
}

.cdt-chart-toggle {
  display: inline-flex;
  background: var(--n-100);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.cdt-toggle-btn {
  padding: 4px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-4);
  background: transparent;
  transition: all 0.15s;
}
.cdt-toggle-btn.active {
  background: #fff;
  color: var(--brand-600);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.cdt-toggle-btn:hover:not(.active) {
  color: var(--text-2);
}
.cdt-toggle-high.active {
  color: #f43f5e;
}
.cdt-toggle-med.active {
  color: #f59e0b;
}

.cdt-trend-wrap {
  padding: 16px 20px;
}
.cdt-trend-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.cdt-trend-desc {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-4);
}
.cdt-trend-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cdt-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
}
.cdt-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.cdt-trend-chart-area {
  position: relative;
  height: 220px;
}

/* ── 잠재고객 카드 ── */
.cdt-prospect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.cdt-pcard {
  background: var(--n-0);
  border: 1.5px solid var(--border-base);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  transition:
    box-shadow 0.15s,
    border-color 0.15s;
  display: flex;
  flex-direction: column;
}
.cdt-pcard:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09);
  border-color: var(--border-base);
}
.cdt-pcard-high {
  border-top: 3px solid #f43f5e;
}
.cdt-pcard-medium {
  border-top: 3px solid #f59e0b;
}
.cdt-pcard-low {
  border-top: 3px solid #94a3b8;
}

.cdt-pcard-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
  border-bottom: 1px solid var(--border-light);
}
.cdt-opp-grade {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.3px;
}
.cdt-opp-grade-high {
  background: #fff1f2;
  color: #f43f5e;
  border: 1px solid #fda4af;
}
.cdt-opp-grade-medium {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}
.cdt-opp-grade-low {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

.cdt-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}
.cdt-st-new {
  color: #6366f1;
  background: #eef2ff;
  border-color: #c7d2fe;
}
.cdt-st-contacted {
  color: #d97706;
  background: #fffbeb;
  border-color: #fde68a;
}
.cdt-st-qualified {
  color: #10b981;
  background: #ecfdf5;
  border-color: #a7f3d0;
}
.cdt-st-lost {
  color: #94a3b8;
  background: #f8fafc;
  border-color: #e2e8f0;
}

.cdt-pcard-body {
  padding: 12px 16px 8px;
}
.cdt-pcard-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-1);
  margin-bottom: 3px;
}
.cdt-pcard-industry {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-4);
  font-weight: 500;
}

.cdt-pcard-signal {
  padding: 8px 16px;
  background: var(--n-50);
  margin: 0;
  border: none;
  border-radius: 0;
}
.cdt-pcard-signal-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--brand-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}
.cdt-pcard-signal-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.4;
}

.cdt-pcard-footer {
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  gap: 8px;
}
.cdt-pcard-source {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-4);
  font-weight: 500;
}
.cdt-pcard-date {
  font-size: 11px;
  color: var(--text-4);
}
.cdt-pcard-note {
  padding: 8px 16px 12px;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
  border-top: 1px solid var(--border-light);
}
.cdt-pcard-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 16px 10px;
  font-size: 11px;
  color: var(--brand-500);
  font-weight: 600;
  text-decoration: none;
}
.cdt-pcard-link:hover {
  text-decoration: underline;
}

/* 알림 카드 원문 보기 */
.alp-item-company-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.alp-item-company-row .alp-item-company {
  margin-top: 0;
}

.alp-item-company-row .cdt-pcard-link.alp-source-link {
  padding: 0;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
/* ═══════════════════════════════════════════════
   경쟁사 이슈 탐지 (Competitive Issue Tracking)
═══════════════════════════════════════════════ */

/* KPI 바 */
.ci-kpi-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.ci-kpi-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1.5px solid var(--border-base);
  border-radius: 16px;
  padding: 18px 20px;
  transition: box-shadow 0.15s;
  position: relative;
  overflow: hidden;
}
.ci-kpi-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  border-radius: 3px 0 0 3px;
}
.ci-kpi-red::before {
  background: #f43f5e;
}
.ci-kpi-blue::before {
  background: #6366f1;
}
.ci-kpi-amber::before {
  background: #f59e0b;
}
.ci-kpi-green::before {
  background: #10b981;
}
.ci-kpi-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.ci-kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ci-kpi-num {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-1);
  line-height: 1;
}
.ci-kpi-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-4);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.ci-kpi-badge {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
}

/* 출처 태그 */
.ci-src-tag {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 99px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid #bfdbfe;
  white-space: nowrap;
}
.ci-meaning-tag {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 10px;
  font-weight: 700;
  border: 1px solid var(--brand-200);
  white-space: nowrap;
}

/* 활성/비활성 상태 칩 */
.ci-status-active {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 99px;
  background: #ecfdf5;
  color: #059669;
  font-size: 10px;
  font-weight: 800;
  border: 1px solid #a7f3d0;
}
.ci-status-active::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 5px rgba(16, 185, 129, 0.5);
}
.ci-status-inactive {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 99px;
  background: #f1f5f9;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid #e2e8f0;
}

/* 경쟁사 이슈 출처 카드 그리드 */
.ci-source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 20px;
}
.ci-source-card {
  background: var(--n-0);
  border: 1.5px solid var(--border-base);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition:
    box-shadow 0.15s,
    border-color 0.15s;
}
.ci-source-card:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.09);
  border-color: var(--brand-200);
}
.ci-source-inactive {
  opacity: 0.55;
}
.ci-sc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ci-sc-site-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 800;
  color: var(--brand-600);
  text-decoration: none;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ci-sc-site-link:hover {
  text-decoration: underline;
}
.ci-sc-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
}
.ci-sc-badge-active {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}
.ci-sc-badge-inactive {
  background: #f1f5f9;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
}
.ci-sc-comps {
  display: flex;
  align-items: center;
  gap: 5px;
}
.ci-sc-kws {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 24px;
}
.ci-sc-kw-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 6px;
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
  font-size: 11px;
  font-weight: 700;
}
.ci-sc-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ci-sc-method {
  display: inline-flex;
  padding: 2px 9px;
  border-radius: 99px;
  background: var(--brand-50);
  color: var(--brand-600);
  border: 1px solid var(--brand-200);
  font-size: 10px;
  font-weight: 700;
}
.ci-sc-meaning {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
}
.ci-sc-url {
  border-top: 1px solid var(--border-light);
  padding-top: 8px;
}
.ci-sc-url-link {
  display: block;
  font-size: 10px;
  color: var(--text-4);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Courier New", monospace;
}
.ci-sc-url-link:hover {
  color: var(--brand-500);
  text-decoration: underline;
}

/* 경쟁사 이슈 히트율 뷰 */
.ci-hit-rate-wrap {
  display: flex;
  flex-direction: column;
}
.ci-hr-header {
  display: grid;
  grid-template-columns: 180px 120px 80px 1fr 100px 160px;
  gap: 12px;
  padding: 8px 20px;
  background: var(--n-50);
  border-bottom: 1.5px solid var(--border-base);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.ci-hr-row {
  display: grid;
  grid-template-columns: 180px 120px 80px 1fr 100px 160px;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-light);
  align-items: center;
  transition: background 0.1s;
}
.ci-hr-row:hover {
  background: var(--n-50);
}
.ci-hr-row-high {
  background: #fff9f9;
}
.ci-hr-row-high:hover {
  background: #fff0f1;
}
.ci-hr-inactive {
  opacity: 0.5;
}
.ci-hr-col {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.ci-hr-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--n-100);
  color: var(--text-4);
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}
.ci-hr-src-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-500);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ci-hr-src-link:hover {
  text-decoration: underline;
}
.ci-hr-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.ci-hr-bar-track {
  flex: 1;
  height: 8px;
  background: var(--n-100);
  border-radius: 4px;
  overflow: hidden;
}
.ci-hr-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.ci-comp-name-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 7px;
  background: #eef2ff;
  color: #4f46e5;
  border: 1px solid #c7d2fe;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 105px;
}
.ci-hr-bar-pct {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-2);
  flex-shrink: 0;
  min-width: 32px;
  text-align: right;
}
.ci-hr-bar-cnt {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-4);
  flex-shrink: 0;
  white-space: nowrap;
}

/* 감지 키워드 + 출처 링크 리스트 */
.ci-kw-src-list {
  display: flex;
  flex-direction: column;
}
.ci-kw-src-row {
  border-bottom: 1px solid var(--border-light);
}
.ci-kw-src-row:last-child {
  border-bottom: none;
}
.ci-kw-src-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--n-50);
  border-bottom: 1px solid var(--border-light);
}
.ci-kw-src-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--brand-600);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
}
.ci-kw-src-name-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 800;
  color: var(--brand-600);
  text-decoration: none;
}
.ci-kw-src-name-link:hover {
  text-decoration: underline;
  color: var(--brand-700);
}
.ci-kw-src-body {
  padding: 10px 20px 12px 52px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ci-kw-src-kw-item {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 4px 0;
}

/* 경쟁사 이슈 키워드 감지 히트 현황 — 순위 테이블 */
.ci-kw-table-wrap {
  display: flex;
  flex-direction: column;
}

.ci-kw-thead,
.ci-kw-row {
  display: grid;
  grid-template-columns:
    56px minmax(240px, 2.25fr) 110px 100px minmax(190px, 1.4fr)
    130px;
  column-gap: 18px;
  padding-left: 24px;
  padding-right: 24px;
}

.ci-kw-thead {
  padding-top: 11px;
  padding-bottom: 11px;
  background: var(--n-50);
  border-bottom: 1.5px solid var(--border-base);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-items: center;
}

.ci-kw-row {
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  align-items: center;
  transition: background 0.12s;
}

.ci-kw-row:hover {
  background: var(--n-50);
}
.ci-kw-row-high {
  background: #fff9f9;
}
.ci-kw-row-high:hover {
  background: #fff0f1;
}
.ci-kw-row-med {
  background: #fffdf5;
}
.ci-kw-row-med:hover {
  background: #fffbeb;
}
.ci-kw-row:last-child {
  border-bottom: none;
}

.ci-kw-col {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  text-align: center;
}

.ci-kw-col-rank,
.ci-kw-col-type,
.ci-kw-col-lv,
.ci-kw-col-hit,
.ci-kw-col-date {
  justify-content: center;
  text-align: center;
}

.ci-kw-col-kw {
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.ci-kw-thead .ci-kw-col-rank,
.ci-kw-thead .ci-kw-col-type,
.ci-kw-thead .ci-kw-col-lv,
.ci-kw-thead .ci-kw-col-hit,
.ci-kw-thead .ci-kw-col-date,
.ci-kw-thead .ci-kw-col-kw {
  justify-content: center;
  text-align: center;
}

.ci-kw-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--n-100);
  color: var(--text-3);
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
}
.ci-rank-gold {
  background: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
}
.ci-rank-silver {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}
.ci-rank-bronze {
  background: #fef0e6;
  color: #c2410c;
  border-color: #fed7aa;
}

.ci-kw-type-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.ci-lv-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
}
.ci-lv-high {
  background: #fff1f2;
  color: #f43f5e;
  border: 1px solid #fecdd3;
}
.ci-lv-medium {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}
.ci-lv-low {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}
.ci-lv-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.ci-hit-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.ci-hit-num {
  font-size: 15px;
  font-weight: 900;
  min-width: 28px;
  text-align: right;
  flex-shrink: 0;
}

.ci-hit-bar-bg {
  flex: 1;
  min-width: 90px;
  height: 7px;
  border-radius: 4px;
  background: var(--n-100);
  overflow: hidden;
}

.ci-hit-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.85;
}

.ci-date-text {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
}

.ci-null-text {
  font-size: 11px;
  color: var(--text-4);
}

/* 경쟁사 현황 상세 — 필터 탭 + 테이블 */
.ci-detail-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--n-100);
  border-radius: 10px;
  padding: 3px;
}
.ci-dtab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}
.ci-dtab:hover {
  color: var(--text-1);
  background: var(--n-50);
}
.ci-dtab-active {
  background: #fff;
  color: var(--brand-600);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.ci-dtab-high.ci-dtab-active {
  color: #f43f5e;
}
.ci-dtab-mid.ci-dtab-active {
  color: #b45309;
}
.ci-dtab-cnt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 16px;
  padding: 0 4px;
  border-radius: 6px;
  background: var(--n-100);
  font-size: 10px;
  font-weight: 900;
  color: var(--text-4);
}
.ci-dtab-active .ci-dtab-cnt {
  background: var(--brand-50);
  color: var(--brand-600);
}

.ci-detail-table-wrap {
  display: flex;
  flex-direction: column;
}

.ci-detail-thead,
.ci-detail-row {
  display: grid;
  grid-template-columns:
    minmax(200px, 1.35fr)
    minmax(150px, 1.05fr)
    130px
    minmax(280px, 2fr)
    130px;
  column-gap: 18px;
  padding-left: 24px;
  padding-right: 24px;
}

.ci-detail-thead {
  padding-top: 11px;
  padding-bottom: 11px;
  background: var(--n-50);
  border-bottom: 1.5px solid var(--border-base);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-items: center;
}

.ci-detail-row {
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  align-items: center;
  transition: background 0.12s;
}

.ci-detail-row:hover {
  background: var(--n-50);
}
.ci-detail-row:last-child {
  border-bottom: none;
}
.ci-detail-inactive {
  opacity: 0.45;
}

.ci-detail-col {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  text-align: center;
}

.ci-detail-thead > span {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ci-dc-kw,
.ci-dc-comp,
.ci-dc-src,
.ci-dc-date,
.ci-dc-opp {
  justify-content: center;
  text-align: center;
}

.ci-hit-badge-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

.ci-comp-name-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border-radius: 7px;
  background: #eef2ff;
  color: #4f46e5;
  border: 1px solid #c7d2fe;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.ci-detail-src-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-500);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--brand-100);
  background: var(--brand-50);
  transition: all 0.15s;
  text-align: center;
}
.ci-detail-src-link:hover {
  background: var(--brand-100);
  color: var(--brand-700);
  text-decoration: underline;
}

.ci-opp-text {
  font-size: 12px;
  color: var(--text-2);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}
/* ══════════════════════════════════════════════════════
   잡플래닛 직원 감정 분석 — 종합 요약 카드
══════════════════════════════════════════════════════ */
.jp-summary-card {
  background: linear-gradient(135deg, #fff8f2 0%, #fff 60%);
  border: 1.5px solid #fed7aa;
  border-radius: var(--r-xl);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.jp-summary-left {
  flex: 0 0 auto;
}
.jp-logo-badge {
  display: inline-block;
  background: #ff6b35;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: var(--r-full);
  margin-bottom: 8px;
}
.jp-summary-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-1);
  margin-bottom: 2px;
}
.jp-summary-sub {
  font-size: 12px;
  color: var(--text-4);
}

.jp-summary-score-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}
.jp-summary-score {
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
}
.jp-summary-denom {
  font-size: 14px;
  color: var(--text-4);
  font-weight: 600;
  margin-top: -4px;
}
.jp-summary-stars {
  display: flex;
  gap: 2px;
  margin-top: 6px;
}

.jp-summary-bars {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.jp-mini-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.jp-mini-lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  width: 60px;
  flex-shrink: 0;
}
.jp-mini-track {
  flex: 1;
  height: 8px;
  background: var(--n-100);
  border-radius: var(--r-full);
  overflow: hidden;
}
.jp-mini-fill {
  height: 100%;
  border-radius: var(--r-full);
  transition: width 0.8s var(--ease-out);
}
.jp-mini-val {
  font-size: 12px;
  font-weight: 800;
  width: 32px;
  text-align: right;
  flex-shrink: 0;
}

/* ── JobPlanet Detail ── */
.jp-detail-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.jp-detail-card {
  background: var(--n-50);
  border: 1.5px solid var(--border-base);
  border-radius: var(--r-lg);
  padding: 16px;
  text-align: center;
  transition:
    box-shadow var(--dur-base),
    border-color var(--dur-base);
}
.jp-detail-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #ff6b35;
}
.jp-cat-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 8px;
}
.jp-cat-score {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}
.jp-cat-stars {
  margin-bottom: 8px;
}
.jp-cat-bar-wrap {
  height: 4px;
  background: var(--n-200);
  border-radius: var(--r-full);
  overflow: hidden;
}
.jp-cat-bar {
  height: 100%;
  border-radius: var(--r-full);
  transition: width 0.8s var(--ease-out);
}
.jp-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 4px;
}
.jp-pc-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 10px;
}
.jp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.jp-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--r-full);
}
.jp-tag-pro {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}
.jp-tag-con {
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
}

/* ── Key issues ── */
.b2b-issues {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.b2b-issue-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-size: 13px;
  line-height: 1.5;
}
.issue-high {
  background: #fff1f2;
  border-left: 3px solid #f43f5e;
  color: #9f1239;
}
.issue-medium {
  background: #fffbeb;
  border-left: 3px solid #f59e0b;
  color: #92400e;
}
.issue-low {
  background: #f0fdf4;
  border-left: 3px solid #10b981;
  color: #166534;
}
.b2b-issue-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
  background: currentColor;
}
.b2b-issue-text {
}

/* ============================================================
   ALERT SYSTEM — NavBar 벨 + 패널 + 발송 모달
   ============================================================ */

/* ── NavBar 알림 버튼 ── */
.nav-alert-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border-base);
  background: var(--n-0);
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.nav-alert-btn:hover {
  background: var(--brand-50);
  border-color: var(--brand-300);
  color: var(--brand-600);
}
.nav-alert-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  background: #f43f5e;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid var(--n-0);
  animation: alertPulse 2s infinite;
  line-height: 1;
}
@keyframes alertPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.4);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(244, 63, 94, 0);
  }
}

/* ── 패널 슬라이드 트랜지션 ── */
.alert-slide-enter-active,
.alert-slide-leave-active {
  transition:
    opacity 0.2s,
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.alert-slide-enter-from,
.alert-slide-leave-to {
  opacity: 0;
}
.alert-slide-enter-from .alp-panel,
.alert-slide-leave-to .alp-panel {
  transform: translateX(100%);
}

/* ── 패널 배경 오버레이 ── */
.alp-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(2px);
}

/* ── 패널 본체 ── */
.alp-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: var(--n-0);
  border-left: 1.5px solid var(--border-base);
  box-shadow: -8px 0 40px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  z-index: 1101;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

/* 패널 헤더 */
.alp-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 16px;
  border-bottom: 1.5px solid var(--border-base);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  flex-shrink: 0;
}
.alp-hd-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.alp-hd-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f43f5e;
}
.alp-hd-title {
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
}
.alp-unread-badge {
  background: #f43f5e;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 9px;
  animation: alertPulse 2s infinite;
}
.alp-hd-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.alp-read-all {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition:
    color 0.15s,
    background 0.15s;
}
.alp-read-all:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
}
.alp-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: all 0.15s;
}
.alp-close-btn:hover {
  background: rgba(244, 63, 94, 0.2);
  color: #f43f5e;
}

/* 빈 상태 */
.alp-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-4);
  padding: 40px;
  text-align: center;
  font-size: 13px;
}
.alp-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--n-100);
  border: 1.5px solid var(--border-base);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-4);
}

/* 알림 목록 */
.alp-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.alp-list::-webkit-scrollbar {
  width: 4px;
}
.alp-list::-webkit-scrollbar-thumb {
  background: var(--border-base);
  border-radius: 4px;
}

/* 알림 아이템 */
.alp-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border-base);
  background: var(--n-0);
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}
.alp-item:hover {
  border-color: var(--brand-300);
  background: var(--brand-50);
}
.alp-item.unread {
  border-left: 3px solid;
}
.alp-item.unread.alp-sev-critical {
  border-left-color: #f43f5e;
  background: #fff8f8;
}
.alp-item.unread.alp-sev-warning {
  border-left-color: #f59e0b;
  background: #fffdf5;
}
.alp-item.unread.alp-sev-info {
  border-left-color: #6366f1;
  background: #f8f7ff;
}

.alp-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.alp-item-body {
  flex: 1;
  min-width: 0;
}
.alp-item-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}
.alp-sev-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 9px;
  border: 1px solid;
  flex-shrink: 0;
}
.alp-item-tab {
  font-size: 11px;
  color: var(--text-4);
  font-weight: 500;
}
.alp-item-time {
  font-size: 10px;
  color: var(--text-4);
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
}
.alp-dot-unread {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f43f5e;
  flex-shrink: 0;
}
.alp-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 3px;
  line-height: 1.4;
}
.alp-item-company {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-4);
  font-weight: 500;
}
.alp-sent-info {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #10b981;
  font-weight: 600;
  margin-top: 4px;
}

/* 아이템 액션 버튼 */
.alp-item-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.alp-send-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  background: var(--brand-600);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.alp-send-btn:hover {
  background: var(--brand-700);
  transform: translateY(-1px);
}
.alp-send-btn.sent {
  background: #10b981;
}
.alp-del-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--n-100);
  border: 1px solid var(--border-base);
  color: var(--text-4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.alp-del-btn:hover {
  background: #fff1f2;
  border-color: #fda4af;
  color: #f43f5e;
}

/* ── 발송 모달 ── */
.alp-send-modal {
  background: var(--n-0);
  border-radius: 20px;
  width: 500px;
  max-width: 95vw;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}
.alp-modal-summary {
  margin: 0 20px 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.alp-modal-kw {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}
.alp-modal-meta {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
  width: 100%;
  margin-top: 2px;
}

/* 수신자 목록 */
.alp-recip-label {
  padding: 0 20px 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.alp-recip-list {
  padding: 0 20px 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.alp-recip-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border-base);
  cursor: pointer;
  transition: all 0.15s;
}
.alp-recip-item:hover {
  border-color: var(--brand-300);
  background: var(--brand-50);
}
.alp-recip-chk {
  width: 15px;
  height: 15px;
  accent-color: var(--brand-600);
  cursor: pointer;
  flex-shrink: 0;
}
.alp-recip-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.alp-recip-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
}
.alp-recip-email {
  font-size: 11px;
  color: var(--text-4);
}

/* 수신자 미리보기 칩 */
.alp-recip-preview {
  padding: 10px 20px 0;
  font-size: 12px;
  color: var(--text-4);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.alp-recip-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
  background: var(--brand-50);
  color: var(--brand-700);
  border: 1px solid var(--brand-200);
}
.alp-recip-chip.sent {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

/* 메시지 편집 영역 */
.alp-msg-wrap {
  padding: 12px 20px;
}
.alp-msg-textarea {
  width: 100%;
  resize: vertical;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border-base);
  background: var(--n-50);
  font-size: 12px;
  font-family: "Inter", monospace;
  line-height: 1.6;
  color: var(--text-1);
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.alp-msg-textarea:focus {
  border-color: var(--brand-400);
  background: var(--n-0);
}

/* 로딩 스피너 */
.alp-spinner {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 발송 완료 화면 */
.alp-success {
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.alp-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ecfdf5;
  border: 2px solid #a7f3d0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.alp-success-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-1);
}
.alp-success-desc {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.6;
}
.alp-success-recipients {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
/* ============================================================
   B2B REPORT LOADING — AURORA COMMAND SYNC
   ============================================================ */
.b2b-report-loading {
  --tone-a: #6366f1;
  --tone-b: #8b5cf6;
  --tone-c: #22d3ee;
  --tone-shadow: rgba(99, 102, 241, 0.22);

  position: absolute;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  pointer-events: none;
  background: rgba(248, 250, 252, 0.16);
  backdrop-filter: blur(4px) saturate(108%);
  -webkit-backdrop-filter: blur(4px) saturate(108%);
  animation: b2bLoadingFadeIn 0.28s ease-out;
}

.b2b-report-loading.tone-competitive {
  --tone-a: #7c3aed;
  --tone-b: #f59e0b;
  --tone-c: #fb7185;
  --tone-shadow: rgba(124, 58, 237, 0.22);
}

.b2b-report-loading.tone-internal {
  --tone-a: #8b5cf6;
  --tone-b: #fb7185;
  --tone-c: #f59e0b;
  --tone-shadow: rgba(139, 92, 246, 0.24);
}

.b2b-report-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 50% 26%,
      rgba(99, 102, 241, 0.1) 0%,
      rgba(139, 92, 246, 0.06) 18%,
      rgba(255, 255, 255, 0) 42%
    ),
    radial-gradient(
      circle at 54% 24%,
      rgba(34, 211, 238, 0.08) 0%,
      rgba(255, 255, 255, 0) 30%
    );
}

.b2b-report-loading-backdrop-grid {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background:
    linear-gradient(
      90deg,
      transparent 0,
      transparent calc(50% - 280px),
      rgba(255, 255, 255, 0.22) calc(50% - 279px),
      transparent calc(50% - 278px),
      transparent 100%
    ),
    linear-gradient(
      180deg,
      transparent 0,
      transparent 196px,
      rgba(99, 102, 241, 0.035) 197px,
      transparent 198px,
      transparent 100%
    );
}

.b2b-report-main-loading {
  opacity: 0.985;
  transition:
    opacity 0.24s ease,
    transform 0.24s ease,
    filter 0.24s ease;
  filter: saturate(0.98);
}

.b2b-report-loading-anchor {
  position: absolute;
  left: 50%;
  top: clamp(158px, 22vh, 236px);
  transform: translateX(-50%);
  z-index: 2;

  display: inline-flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
  animation: b2bLoadingFloatIn 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.b2b-report-loading-beam {
  position: absolute;
  left: 44px;
  right: -18px;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(99, 102, 241, 0.26) 18%,
    rgba(255, 255, 255, 0.62) 48%,
    rgba(34, 211, 238, 0.18) 70%,
    transparent 100%
  );
  box-shadow:
    0 0 14px rgba(99, 102, 241, 0.18),
    0 0 24px rgba(34, 211, 238, 0.12);
  opacity: 0.9;
}

.b2b-report-loading-orb {
  position: relative;
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
}

.b2b-report-loading-halo,
.b2b-report-loading-ring,
.b2b-report-loading-core,
.b2b-report-loading-core-gloss,
.b2b-report-loading-particle {
  position: absolute;
  border-radius: 999px;
}

.b2b-report-loading-halo.halo-outer {
  inset: -26px;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.22) 0%,
    rgba(139, 92, 246, 0.16) 28%,
    transparent 72%
  );
  filter: blur(14px);
  animation: b2bLoadingHaloPulse 2.8s ease-in-out infinite;
}

.b2b-report-loading-halo.halo-inner {
  inset: -10px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.68) 0%,
    rgba(34, 211, 238, 0.18) 30%,
    transparent 68%
  );
  filter: blur(8px);
  opacity: 0.9;
  animation: b2bLoadingHaloPulseSoft 2.2s ease-in-out infinite;
}

.b2b-report-loading-ring {
  inset: 0;
}

.b2b-report-loading-ring.ring-primary {
  background: conic-gradient(
    from 235deg,
    rgba(255, 255, 255, 0) 0deg,
    rgba(99, 102, 241, 0.18) 72deg,
    var(--tone-b) 165deg,
    var(--tone-a) 248deg,
    rgba(255, 255, 255, 0) 360deg
  );
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 7px),
    #000 0
  );
  mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 0);
  animation: b2bLoadingSpin 1s linear infinite;
  box-shadow: 0 0 28px rgba(99, 102, 241, 0.22);
}

.b2b-report-loading-ring.ring-secondary {
  inset: 8px;
  opacity: 0.88;
  background: conic-gradient(
    from 14deg,
    rgba(255, 255, 255, 0) 0deg,
    rgba(34, 211, 238, 0.18) 82deg,
    rgba(167, 139, 250, 0.9) 186deg,
    rgba(99, 102, 241, 0.72) 286deg,
    rgba(255, 255, 255, 0) 360deg
  );
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 5px),
    #000 0
  );
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 0);
  filter: blur(0.25px);
  animation: b2bLoadingSpinReverse 1.9s linear infinite;
}

.b2b-report-loading-ring.ring-tertiary {
  inset: 18px;
  opacity: 0.92;
  background: conic-gradient(
    from 180deg,
    rgba(255, 255, 255, 0) 0deg,
    rgba(255, 255, 255, 0.85) 44deg,
    rgba(34, 211, 238, 0.7) 110deg,
    rgba(255, 255, 255, 0) 220deg,
    rgba(255, 255, 255, 0) 360deg
  );
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 3px),
    #000 0
  );
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
  animation: b2bLoadingSpin 4.4s linear infinite;
}

.b2b-report-loading-core {
  inset: 24px;
  background: radial-gradient(
    circle at 30% 28%,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.92) 36%,
    rgba(237, 242, 255, 0.86) 68%,
    rgba(225, 232, 255, 0.58) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 0 18px rgba(255, 255, 255, 0.55),
    0 0 34px rgba(99, 102, 241, 0.18);
}

.b2b-report-loading-core-gloss {
  inset: 26px;
  background: radial-gradient(
    circle at 34% 30%,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0) 40%
  );
  opacity: 0.92;
}

.b2b-report-loading-particle {
  z-index: 3;
}

.b2b-report-loading-particle.particle-a {
  top: 10px;
  right: 12px;
  width: 8px;
  height: 8px;
  background: rgba(196, 181, 253, 0.95);
  box-shadow:
    0 0 10px rgba(196, 181, 253, 1),
    0 0 24px rgba(99, 102, 241, 0.52);
  animation: b2bLoadingParticlePulse 1.05s ease-in-out infinite alternate;
}

.b2b-report-loading-particle.particle-b {
  left: 12px;
  bottom: 11px;
  width: 6px;
  height: 6px;
  background: rgba(125, 211, 252, 0.95);
  box-shadow:
    0 0 10px rgba(125, 211, 252, 0.95),
    0 0 20px rgba(34, 211, 238, 0.34);
  animation: b2bLoadingParticlePulse 1.45s ease-in-out infinite alternate;
}

.b2b-report-loading-particle.particle-c {
  left: 50%;
  top: 4px;
  width: 4px;
  height: 4px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.9),
    0 0 18px rgba(99, 102, 241, 0.24);
  animation: b2bLoadingParticlePulse 1.7s ease-in-out infinite alternate;
}

.b2b-report-loading-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  white-space: nowrap;
  animation: b2bCopyFadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.b2b-report-loading-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6d28d9;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.42);
}

.b2b-report-loading-title {
  font-size: 31px;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.032em;
  background: linear-gradient(
    90deg,
    #0f172a 0%,
    #4338ca 36%,
    #7c3aed 72%,
    #2563eb 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 10px 24px rgba(99, 102, 241, 0.12));
}

.b2b-report-loading-desc {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.48;
  color: rgba(71, 85, 105, 0.96);
}

@keyframes b2bLoadingSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes b2bLoadingSpinReverse {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes b2bLoadingHaloPulse {
  0%,
  100% {
    transform: scale(0.98);
    opacity: 0.76;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@keyframes b2bLoadingHaloPulseSoft {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.02);
    opacity: 0.96;
  }
}

@keyframes b2bLoadingParticlePulse {
  from {
    transform: scale(0.88);
    opacity: 0.68;
  }
  to {
    transform: scale(1.18);
    opacity: 1;
  }
}

@keyframes b2bLoadingFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes b2bLoadingFloatIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .b2b-report-loading,
  .b2b-report-loading-anchor,
  .b2b-report-loading-copy,
  .b2b-report-loading-halo,
  .b2b-report-loading-ring,
  .b2b-report-loading-particle {
    animation: none !important;
    transition: none !important;
  }
}

/* ============================================================
   MOBILE FULLSCREEN LOADING — WHITE FULLBLEED
   ============================================================ */
.b2b-mobile-loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: block;
  padding: 0;
  background: #f7f8ff;
  animation: b2bMobileOverlayFadeIn 0.28s ease-out;
}

.b2b-mobile-loading-panel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 56%,
      rgba(139, 92, 246, 0.1) 0%,
      rgba(99, 102, 241, 0.05) 24%,
      rgba(255, 255, 255, 0) 62%
    ),
    linear-gradient(180deg, #fbfbff 0%, #f5f6ff 100%);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: max(env(safe-area-inset-top), 28px) 28px
    max(env(safe-area-inset-bottom), 32px);
  box-sizing: border-box;
}

.b2b-mobile-loading-grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: radial-gradient(
    rgba(99, 102, 241, 0.16) 1px,
    transparent 1px
  );
  background-size: 36px 36px;
  background-position: center;
  pointer-events: none;
}

.b2b-mobile-loading-brand {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 72px;
}

.b2b-mobile-loading-logo {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 900;
  text-transform: lowercase;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 55%, #7c3aed 100%);
  box-shadow:
    0 18px 44px rgba(99, 102, 241, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.b2b-mobile-loading-brand-title {
  margin-top: 24px;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: #161b35;
}

.b2b-mobile-loading-brand-title span {
  background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.b2b-mobile-loading-brand-sub {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #9aa0b3;
  letter-spacing: 0.02em;
}

.b2b-mobile-loading-spinner-wrap {
  position: relative;
  z-index: 1;
  margin-top: 92px;
  margin-bottom: 34px;
}

.b2b-mobile-loading-spinner {
  position: relative;
  width: 78px;
  height: 78px;
}

.b2b-mobile-loading-spinner-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #2c2f58;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.2);
}

.b2b-mobile-loading-spinner-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 4px solid transparent;
  border-top-color: #8b5cf6;
  border-right-color: #6366f1;
}

.b2b-mobile-loading-spinner-ring.ring-a {
  animation: b2bMobileSpinnerSpin 1.05s linear infinite;
}

.b2b-mobile-loading-spinner-ring.ring-b {
  inset: 8px;
  border-width: 3px;
  border-top-color: rgba(99, 102, 241, 0.52);
  border-right-color: rgba(139, 92, 246, 0.52);
  animation: b2bMobileSpinnerSpinReverse 1.55s linear infinite;
}

.b2b-mobile-loading-spinner-ring.ring-c {
  inset: 16px;
  border-width: 3px;
  border-top-color: rgba(99, 102, 241, 0.18);
  border-right-color: rgba(139, 92, 246, 0.18);
  animation: b2bMobileSpinnerSpin 2.2s linear infinite;
}

.b2b-mobile-loading-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.b2b-mobile-loading-copy-title {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.03em;
  color: #1f2340;
}

.b2b-mobile-loading-copy-desc {
  font-size: 15px;
  font-weight: 600;
  color: #9aa0b3;
}

.b2b-mobile-loading-progress {
  position: relative;
  z-index: 1;
  width: min(72vw, 300px);
  height: 6px;
  margin-top: 34px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.08);
  overflow: hidden;
}

.b2b-mobile-loading-progress-bar {
  display: block;
  height: 100%;
  width: 36%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 70%, #c4b5fd 100%);
  animation: b2bMobileProgressSweep 1.85s ease-in-out infinite;
}

.b2b-mobile-loading-badge {
  position: relative;
  z-index: 1;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(228, 232, 244, 0.95);
  color: #7c3aed;
  font-size: 15px;
  font-weight: 700;
  box-shadow:
    0 8px 24px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

@keyframes b2bMobileOverlayFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes b2bMobileSpinnerSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes b2bMobileSpinnerSpinReverse {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes b2bMobileProgressSweep {
  0% {
    transform: translateX(-40%);
    width: 24%;
  }
  50% {
    transform: translateX(118%);
    width: 42%;
  }
  100% {
    transform: translateX(-40%);
    width: 24%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .b2b-mobile-loading-screen,
  .b2b-mobile-loading-spinner-ring,
  .b2b-mobile-loading-progress-bar {
    animation: none !important;
    transition: none !important;
  }
}
