@charset "UTF-8";
/********************************************** 블록체인 검증 팝업 *************************************************/
/*
  - 마크업 : WEB-INF/views/common/blockchainPopup.jspf  /  동작 : js/blockchain.js
  - popup.css 를 안 불러오는 화면도 있어서 팝업 틀(.popup_layer / .popup_box / .x-box)도 여기서 직접 잡는다
  - 클래스는 모두 bc- 접두사 → 기존 css 와 충돌 없음
  - 레이아웃 : 위 = 검증 진행 영역(.bc-hero) / 아래 = 검증 정보(.bc-body, 항목은 카드 .bc-card)
  - 상태 클래스 (js 에서 붙임)
      .bc-verify      : .done(검증 끝) / .is-fail(검증 실패)
      .bc-card        : .scan(검증 중) / .ok(일치) / .fail(불일치) / .none(기록 없음)
      .bc-result      : .ok / .fail
      .bc-blocks b, s : .on / .fail
*/

/* 화면마다 공통 css 가 달라서 폰트를 여기서도 선언 (같은 이름이면 중복돼도 문제 없음) */
@font-face{font-family:'Pretendard5'; src:url('../fonts/Pretendard-Medium.woff') format('woff'), url('../fonts/Pretendard-Medium.ttf') format('truetype');}
@font-face{font-family:'Pretendard6'; src:url('../fonts/Pretendard-SemiBold.woff') format('woff'), url('../fonts/Pretendard-SemiBold.ttf') format('truetype');}
@font-face{font-family:'Pretendard7'; src:url('../fonts/Pretendard-Bold.woff') format('woff'), url('../fonts/Pretendard-Bold.ttf') format('truetype');}


/* =====================================================================
   1. 팝업 껍데기 (popup.css 확장)
   ===================================================================== */
.popup_layer.bc-layer{
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100002; /* 화면별 모달(10000~), 증명서 진본 확인 화면 띠 보다 위 */
  background-color: rgba(10,31,58,.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.popup_box.bc-popup{
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow: auto;
  box-sizing: border-box;
  background: #fff;
  width: calc(100% - 32px);
  max-width: 560px;
  height: auto;
  min-height: 0;
  max-height: calc(100vh - 32px);
  padding: 0;
  border-radius: 26px;
  box-shadow: 0 30px 80px -20px rgba(10,31,58,.5);
  animation: bc-pop .45s cubic-bezier(.2,.9,.3,1.2);
}

/* 닫기 버튼 */
.popup_box.bc-popup .x-box{
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 2;
  width: 30px;
  height: 30px;
  background-color: #053761;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  box-sizing: border-box;
}
.popup_box.bc-popup .x-box > a{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.popup_box.bc-popup .x-box > a > img{
  width: 12px;
  height: 12px;
}


/* =====================================================================
   2. 컨텐츠 공통 (변수 · 레이아웃)
   ===================================================================== */
.bc-verify{
  /* 색상 */
  --bc-cyan: #12a4c9;
  --bc-cyan-2: #0b84a8;
  --bc-cyan-glow: #3fe0ff;
  --bc-cyan-soft: #e6f7fb;
  --bc-cyan-line: #bfeaf5;
  --bc-navy: #0a1f3a;
  --bc-navy-2: #0f2d52;
  --bc-red: #e5484d;
  --bc-red-glow: #ff7a7a;
  --bc-red-soft: #fff4f4;
  --bc-red-line: #fbd0d0;
  --bc-text: #0f172a;
  --bc-muted: #64748b;
  --bc-muted-2: #94a3b8;
  --bc-line: #e7edf3;
  --bc-card: #f7fafc;

  display: flex;
  flex-direction: column; /* 위 스캔 / 아래 정보 */
  color: var(--bc-text);
  font-family: 'Pretendard5', sans-serif;
  line-height: normal;
}
.bc-verify,
.bc-verify *,
.bc-verify *::before,
.bc-verify *::after{
  box-sizing: border-box;
}
/* 화면별 전역 css(p, h2, ul 여백 등) 영향 차단 */
.bc-verify h2,
.bc-verify p,
.bc-verify ul,
.bc-verify li{
  margin: 0;
  padding: 0;
}
.bc-verify ul{list-style: none;}
.bc-verify button{font-family: inherit;}


/* =====================================================================
   3. 상단 : 스캔 영역
   ===================================================================== */
.bc-verify .bc-hero{
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 26px 64px 26px 30px; /* 오른쪽 : .x-box 자리 */
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(70% 120% at 18% 50%, rgba(18,164,201,.3), transparent 65%),
    linear-gradient(160deg, var(--bc-navy) 0%, var(--bc-navy-2) 100%);
}
.bc-verify .bc-hero::before{ /* 미세 그리드 */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(63,224,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63,224,255,.07) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(circle at 18% 50%, #000 20%, transparent 70%);
  mask-image: radial-gradient(circle at 18% 50%, #000 20%, transparent 70%);
}

/* ---------- 스캐너 프레임 ---------- */
.bc-verify .bc-scanner{
  position: relative;
  flex: none;
  width: 124px;
  height: 124px;
}
.bc-verify .bc-corner{
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--bc-cyan-glow);
  filter: drop-shadow(0 0 6px rgba(63,224,255,.6));
  transition: all .5s;
}
.bc-verify .bc-corner.tl{top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 11px;}
.bc-verify .bc-corner.tr{top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 11px;}
.bc-verify .bc-corner.bl{bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 11px;}
.bc-verify .bc-corner.br{bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 11px;}
/* 완료 시 모서리가 안쪽으로 조여짐 */
.bc-verify.done .bc-corner.tl{top: 6px; left: 6px;}
.bc-verify.done .bc-corner.tr{top: 6px; right: 6px;}
.bc-verify.done .bc-corner.bl{bottom: 6px; left: 6px;}
.bc-verify.done .bc-corner.br{bottom: 6px; right: 6px;}

/* ---------- 엠블럼 (스캔 중 떠 있는 유리 구슬) ---------- */
.bc-verify .bc-emblem{
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  transition: transform .5s, opacity .3s;
  animation: bc-float 3s ease-in-out infinite;
}
.bc-verify.done .bc-emblem{
  transform: scale(.6);
  opacity: 0;
  animation: none;
}
.bc-verify .bc-glass{ /* 바깥 유리 링 */
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,.06) 45%, rgba(255,255,255,.14) 100%);
  box-shadow: inset 0 2px 2px rgba(255,255,255,.45);
  backdrop-filter: blur(10px);
}
.bc-verify .bc-glass::before{ /* 유리 하이라이트 */
  content: "";
  position: absolute;
  top: 6%;
  left: 16%;
  width: 46%;
  height: 22%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0));
  filter: blur(1px);
  transform: rotate(-24deg);
}
.bc-verify .bc-orb{ /* 안쪽 빛나는 구슬 */
  position: absolute;
  inset: 17%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #d6fbff 0%, #5ee9ff 22%, #19b6dc 55%, #0a7fa3 85%, #086a8a 100%);
  box-shadow:
    0 0 22px 3px rgba(63,224,255,.55),
    inset 0 -5px 10px rgba(2,60,90,.45),
    inset 0 3px 6px rgba(255,255,255,.55);
}
.bc-verify .bc-orb::after{ /* 구슬 광택 */
  content: "";
  position: absolute;
  top: 9%;
  left: 22%;
  width: 42%;
  height: 26%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.75), rgba(255,255,255,0) 70%);
}
.bc-verify .bc-orb svg{
  position: relative;
  z-index: 1;
  width: 56%;
  height: 56%;
  fill: #fff;
  filter: drop-shadow(0 2px 3px rgba(2,60,90,.45));
}

/* ---------- 스캔 빔 ---------- */
.bc-verify .bc-beam{
  position: absolute;
  top: 10%;
  left: 6px;
  right: 6px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--bc-cyan-glow), transparent);
  box-shadow: 0 0 12px 2px rgba(63,224,255,.7);
  animation: bc-beam 1.6s ease-in-out infinite alternate;
}
.bc-verify.done .bc-beam{
  opacity: 0;
  transition: opacity .2s;
}

/* ---------- 완료 체크 (svg.ok 체크 / svg.ng 엑스) ---------- */
.bc-verify .bc-check{
  position: absolute;
  inset: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #d6fbff 0%, #5ee9ff 22%, #19b6dc 55%, #0a7fa3 85%, #086a8a 100%);
  box-shadow:
    0 0 0 0 rgba(63,224,255,.5),
    0 10px 30px -6px rgba(63,224,255,.7),
    inset 0 -6px 12px rgba(2,60,90,.45),
    inset 0 3px 6px rgba(255,255,255,.55);
  opacity: 0;
  transform: scale(.4);
  transition: transform .5s cubic-bezier(.2,1.4,.4,1), opacity .25s;
}
.bc-verify .bc-check::before{ /* 광택 */
  content: "";
  position: absolute;
  top: 8%;
  left: 20%;
  width: 44%;
  height: 24%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.7), rgba(255,255,255,0) 70%);
}
.bc-verify .bc-check svg{
  position: relative;
  width: 38px;
  height: 38px;
  fill: none;
  stroke: #fff;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px rgba(2,60,90,.45));
}
.bc-verify .bc-check svg.ng{display: none;}
.bc-verify .bc-check path{
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  transition: stroke-dashoffset .45s .25s ease;
}
.bc-verify.done .bc-check{
  opacity: 1;
  transform: scale(1);
  animation: bc-ripple 1.6s .4s ease-out 2;
}
.bc-verify.done .bc-check path{stroke-dashoffset: 0;}

/* ---------- 상태 텍스트 + 블록 진행 ---------- */
.bc-verify .bc-scan-meta{
  position: relative;
  flex: 1;
  min-width: 0;
}
.bc-verify .bc-scan-label{
  min-height: 1.4em;
  font-size: 13px;
  color: #9ccfe0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bc-verify .bc-scan-big{
  margin-top: 2px;
  font-size: 26px;
  font-family: 'Pretendard6', 'Pretendard7'; /* SemiBold (파일 없으면 Bold) */

}
.bc-verify.done .bc-scan-big{color: #65e6ff;} /* --bc-cyan-glow(#3fe0ff) 에 흰색 20% 섞은 색 */

.bc-verify .bc-blocks{
  display: flex;
  align-items: center;
  margin-top: 14px;
}
.bc-verify .bc-blocks b{ /* 블록 */
  flex: none;
  width: 13px;
  height: 13px;
  border: 1.5px solid rgba(63,224,255,.35);
  border-radius: 4px;
  transition: background .3s, box-shadow .3s, border-color .3s;
}
.bc-verify .bc-blocks b.on{
  border-color: var(--bc-cyan-glow);
  background: var(--bc-cyan-glow);
  box-shadow: 0 0 10px rgba(63,224,255,.8);
}
.bc-verify .bc-blocks s{ /* 블록 사이 연결선 */
  flex: none;
  width: 16px;
  height: 1.5px;
  background: rgba(63,224,255,.25);
  transition: background .3s;
}
.bc-verify .bc-blocks s.on{background: var(--bc-cyan-glow);}


/* =====================================================================
   4. 하단 : 검증 정보
   ===================================================================== */
.bc-verify .bc-body{
  display: flex;
  flex-direction: column;
  padding: 24px 26px 24px;
}

/* ---------- 제목 ---------- */
.bc-verify .bc-head{
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bc-line);
}
.bc-verify .bc-head h2{
  font-size: 22px;
  font-family: 'Pretendard7';
  letter-spacing: -.02em;
}
.bc-verify .bc-head p{
  margin-top: 4px;
  font-size: 13px;
  color: var(--bc-muted);
  word-break: keep-all;
}

/* ---------- 검증 항목 (2열) : 평소엔 테두리 없는 목록, 스캔 중인 항목만 카드처럼 빛남 ---------- */
.bc-verify .bc-cards{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 6px 10px;
  margin-top: 16px;
  margin-bottom: 16px;
}
.bc-verify .bc-card{
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 14px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 14px;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.bc-verify .bc-card::after{ /* 스캔 하이라이트 */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  border-right: 2px solid rgba(18,164,201,.5);
  background: linear-gradient(90deg, rgba(18,164,201,0), rgba(18,164,201,.1));
  opacity: 0;
  pointer-events: none;
}
.bc-verify .bc-card.scan{ /* 스캔 중 : 빛 들어옴 */
  border-color: var(--bc-cyan);
  background: #f6fcfe;
  box-shadow: 0 0 0 3px rgba(18,164,201,.12);
}
.bc-verify .bc-card.scan::after{
  opacity: 1;
  animation: bc-cardscan .7s ease-out forwards;
}

/* 항목명 / 값 */
.bc-verify .bc-txt{
  flex: 1;
  min-width: 0;
}
.bc-verify .bc-txt .bc-k{
  font-size: 12px;
  font-family: 'Pretendard5';
  color: var(--bc-muted);
  white-space: nowrap;
}
.bc-verify .bc-txt .bc-v{
  min-height: 22px;
  margin-top: 3px;
  font-size: 16px;
  font-family: 'Pretendard7';
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bc-verify .bc-skel{ /* 값 대기 중 스켈레톤 */
  display: inline-block;
  width: 100%;
  max-width: 120px;
  height: 14px;
  border-radius: 6px;
  vertical-align: middle;
  background: linear-gradient(90deg, #eef2f6 0%, #f8fafc 50%, #eef2f6 100%);
  background-size: 200% 100%;
  animation: bc-shimmer 1.2s linear infinite;
}
.bc-verify .bc-card.scan .bc-skel{
  background: linear-gradient(90deg, #d9f2f9 0%, #f2fbfe 50%, #d9f2f9 100%);
  background-size: 200% 100%;
}

/* 왼쪽 체크 표시 (path.ok 체크 / path.ng 엑스) */
.bc-verify .bc-mark{
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--bc-line);
  border-radius: 50%;
  transition: all .3s;
}
.bc-verify .bc-mark svg{
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bc-verify .bc-mark path{
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  transition: stroke-dashoffset .3s .1s;
}
.bc-verify .bc-mark path.ng{display: none;}
.bc-verify .bc-card.scan .bc-mark{ /* 스캔 중 : 회전 스피너 */
  border-color: var(--bc-cyan);
  border-top-color: transparent;
  animation: bc-spin .7s linear infinite;
}
.bc-verify .bc-card.ok .bc-mark{
  border-color: var(--bc-cyan);
  background: var(--bc-cyan);
  box-shadow: 0 4px 12px -3px rgba(18,164,201,.6);
}
.bc-verify .bc-card.ok .bc-mark path{stroke-dashoffset: 0;}

/* ---------- 검증 결과 ---------- */
.bc-verify .bc-result{
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 14px 18px;
  border: 1px solid var(--bc-line);
  border-radius: 8px;
  background: var(--bc-card);
  flex-direction: column; /* 결과 아래에 안내 문구 */
  gap: 6px;
  transition: background .4s, border-color .4s, box-shadow .4s;
}
.bc-verify .bc-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 17px;
  font-family: 'Pretendard7';
  white-space: nowrap;
  color: var(--bc-muted-2);
  background: #eef2f6;
  transition: all .4s;
}
.bc-verify .bc-pill .bc-dot{ /* 대기 중 깜빡이는 점 */
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: bc-blink 1s infinite;
}
.bc-verify .bc-pill-ico{ /* 결과 아이콘 (path.ok 체크 / path.ng 엑스) */
  display: none;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}
.bc-verify .bc-pill-ico svg{
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #fff;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bc-verify .bc-pill-ico .ng{display: none;}
.bc-verify .bc-result.ok .bc-pill .bc-dot,
.bc-verify .bc-result.fail .bc-pill .bc-dot{display: none;}
.bc-verify .bc-result.ok .bc-pill-ico,
.bc-verify .bc-result.fail .bc-pill-ico{display: grid;}
.bc-verify .bc-result-msg{ /* 실패 사유 */
  font-size: 12.5px;
  color: var(--bc-muted);
  text-align: center;
  word-break: keep-all;
}
.bc-verify .bc-result-msg:empty{display: none;}

/* 성공 : 아래 '검증확인' 버튼(채운 그라데이션)과 구분되게 연한 박스 + 아이콘·글자만 */
.bc-verify .bc-result.ok{
  border-color: var(--bc-cyan-line);
  background: linear-gradient(135deg, #f2fcff, #e6f7fb);
}
.bc-verify .bc-result.ok .bc-pill{
  padding: 4px 0;
  color: var(--bc-cyan-2);
  background: none;
}
.bc-verify .bc-result.ok .bc-pill-ico{background: var(--bc-cyan);}

/* ---------- 버튼 ---------- */
.bc-verify .bc-actions{
  display: flex;
  gap: 10px;
  padding-top: 18px;
}
.bc-verify .bc-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  border: 0;
  border-radius: 8px;
  font-size: 15px;
  font-family: 'Pretendard7';
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s, opacity .2s;
}
.bc-verify .bc-btn:active{transform: scale(.98);}
.bc-verify .bc-btn:disabled{
  opacity: .45;
  cursor: default;
  transform: none;
}
.bc-verify .bc-btn svg{
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bc-verify .bc-btn.ghost{ /* 다시 검증 */
  flex: none;
  width: 52px;
  border: 1px solid var(--bc-line);
  color: var(--bc-text);
  background: #fff;
}
.bc-verify .bc-btn.ghost:hover:not(:disabled){background: var(--bc-card);}
.bc-verify .bc-btn.primary{ /* 검증확인 */
  flex: 1;
  color: #fff;
  background: linear-gradient(135deg, var(--bc-cyan), var(--bc-cyan-2));
  box-shadow: 0 10px 24px -8px rgba(18,164,201,.6);
}


/* =====================================================================
   5. 검증 실패 상태
   ===================================================================== */
/* ---------- 상단 스캐너 : 빨간 X ---------- */
.bc-verify.is-fail .bc-corner{
  border-color: var(--bc-red-glow);
  filter: drop-shadow(0 0 6px rgba(255,90,90,.6));
}
.bc-verify.is-fail .bc-check{
  background: radial-gradient(circle at 34% 28%, #ffe3e3 0%, #ff9a9a 22%, #ef4b4b 55%, #c42f2f 85%, #a32222 100%);
  box-shadow:
    0 10px 30px -6px rgba(255,90,90,.7),
    inset 0 -6px 12px rgba(90,10,10,.45),
    inset 0 3px 6px rgba(255,255,255,.55);
}
.bc-verify.done.is-fail .bc-check{animation: none;}
.bc-verify.is-fail .bc-check svg.ok{display: none;}
.bc-verify.is-fail .bc-check svg.ng{display: block;}
.bc-verify.done.is-fail .bc-scan-big{color: var(--bc-red-glow);}
.bc-verify .bc-blocks b.on.fail{
  border-color: var(--bc-red-glow);
  background: var(--bc-red-glow);
  box-shadow: 0 0 10px rgba(255,90,90,.8);
}

/* ---------- 항목 : 불일치 (눈에 띄게 연한 빨간 카드로 남김) ---------- */
.bc-verify .bc-card.fail{
  border-color: var(--bc-red-line);
  background: var(--bc-red-soft);
}
.bc-verify .bc-card.fail .bc-v{color: var(--bc-red);}
.bc-verify .bc-card.fail .bc-k::after{
  content: "불일치";
  margin-left: 6px;
  padding: 1px 6px;
  border: 1px solid var(--bc-red-line);
  border-radius: 999px;
  font-size: 10.5px;
  color: var(--bc-red);
  background: #fff;
}
.bc-verify .bc-card.fail .bc-mark{
  border-color: var(--bc-red);
  background: var(--bc-red);
  box-shadow: 0 4px 12px -3px rgba(229,72,77,.6);
}
.bc-verify .bc-card.fail .bc-mark path.ok{display: none;}
.bc-verify .bc-card.fail .bc-mark path.ng{
  display: inline;
  stroke-dashoffset: 0;
}

/* ---------- 항목 : 기록 없음 (대조 불가) ---------- */
.bc-verify .bc-card.none .bc-v{color: var(--bc-muted-2);}
.bc-verify .bc-card.none .bc-mark{
  border-color: #d5dde6;
  background: #f1f5f9;
}
.bc-verify .bc-card.none .bc-mark path{display: none;}

/* ---------- 결과 ---------- */
.bc-verify .bc-result.fail{
  flex-direction: column;
  gap: 8px;
  border-color: var(--bc-red-line);
  background: var(--bc-red-soft);
}
.bc-verify .bc-result.fail .bc-pill{
  padding: 4px 0;
  color: var(--bc-red);
  background: none;
}
.bc-verify .bc-result.fail .bc-pill-ico{background: var(--bc-red);}
.bc-verify .bc-result.fail .bc-pill-ico .ok{display: none;}
.bc-verify .bc-result.fail .bc-pill-ico .ng{display: inline;}


/* =====================================================================
   6. 애니메이션
   ===================================================================== */
/* 팝업 등장 : popup.css 의 translate(-50%,-50%) 중앙정렬 유지 */
@keyframes bc-pop{
  from{opacity: 0; transform: translate(-50%, calc(-50% + 16px)) scale(.97);}
  to{opacity: 1; transform: translate(-50%, -50%);}
}
@keyframes bc-float{50%{transform: translateY(-3px);}}             /* 엠블럼 둥실 */
@keyframes bc-beam{from{top: 8%;} to{top: 90%;}}                    /* 스캔 빔 이동 */
@keyframes bc-spin{to{transform: rotate(360deg);}}                  /* 카드 스피너 */
@keyframes bc-blink{50%{opacity: .25;}}                             /* 대기 점 깜빡임 */
@keyframes bc-shimmer{to{background-position: -200% 0;}}           /* 스켈레톤 */
@keyframes bc-cardscan{from{width: 0;} to{width: 100%; opacity: 0;}} /* 카드 하이라이트 */
@keyframes bc-ripple{                                               /* 완료 체크 물결 */
  to{
    box-shadow:
      0 0 0 20px rgba(63,224,255,0),
      0 10px 30px -6px rgba(63,224,255,.7),
      inset 0 -6px 12px rgba(2,60,90,.45),
      inset 0 3px 6px rgba(255,255,255,.55);
  }
}


/* =====================================================================
   7. 반응형 · 인쇄 · 모션 줄이기
   ===================================================================== */
/* ---------- 모바일 (480px 이하) ---------- */
@media (max-width: 480px){
  .popup_box.bc-popup{border-radius: 22px;}

  /* 상단 스캔 */
  .bc-verify .bc-hero{gap: 16px; padding: 18px 56px 18px 18px;}
  .bc-verify .bc-scanner{width: 92px; height: 92px;}
  .bc-verify .bc-corner{width: 16px; height: 16px; border-width: 2px;}
  .bc-verify .bc-corner.tl{border-top-left-radius: 9px;}
  .bc-verify .bc-corner.tr{border-top-right-radius: 9px;}
  .bc-verify .bc-corner.bl{border-bottom-left-radius: 9px;}
  .bc-verify .bc-corner.br{border-bottom-right-radius: 9px;}
  .bc-verify.done .bc-corner.tl{top: 5px; left: 5px;}
  .bc-verify.done .bc-corner.tr{top: 5px; right: 5px;}
  .bc-verify.done .bc-corner.bl{bottom: 5px; left: 5px;}
  .bc-verify.done .bc-corner.br{bottom: 5px; right: 5px;}
  .bc-verify .bc-emblem,
  .bc-verify .bc-check{inset: 20px;}
  .bc-verify .bc-check svg{width: 28px; height: 28px;}
  .bc-verify .bc-scan-label{font-size: 12px;}
  .bc-verify .bc-scan-big{font-size: 20px;}
  .bc-verify .bc-blocks{margin-top: 10px;}
  .bc-verify .bc-blocks b{width: 11px; height: 11px; border-radius: 3px;}
  .bc-verify .bc-blocks s{width: 11px;}

  /* 하단 정보 */
  .bc-verify .bc-body{padding: 18px 16px 18px;}
  .bc-verify .bc-head h2{font-size: 19px;}
  .bc-verify .bc-head p{font-size: 12.5px;}
  .bc-verify .bc-head{padding-bottom: 12px;}
  .bc-verify .bc-cards{gap: 4px 6px; margin-top: 8px;}
  .bc-verify .bc-card{gap: 10px; padding: 12px 10px; border-radius: 12px;}
  .bc-verify .bc-txt .bc-k{font-size: 11.5px;}
  .bc-verify .bc-txt .bc-v{min-height: 20px; margin-top: 2px; font-size: 14px;}
  .bc-verify .bc-mark{width: 22px; height: 22px;}
  .bc-verify .bc-mark svg{width: 12px; height: 12px;}
  .bc-verify .bc-result{margin-top: 12px; padding: 12px 14px;}
  .bc-verify .bc-pill{padding: 7px 13px; font-size: 15.5px;}
  .bc-verify .bc-pill-ico{width: 20px; height: 20px;}
  .bc-verify .bc-pill-ico svg{width: 12px; height: 12px;}
  .bc-verify .bc-actions{gap: 8px; padding-top: 14px;}
  .bc-verify .bc-btn{height: 46px; font-size: 14px;}
  .bc-verify .bc-btn.ghost{width: 46px;}
  .bc-verify .bc-btn svg{width: 16px; height: 16px;}
}

/* ---------- 폰 (420px 이하) : 항목 1열 (2열이면 날짜가 잘림) ---------- */
@media (max-width: 420px){
  .bc-verify .bc-cards{grid-template-columns: 1fr; gap: 2px;}
  .bc-verify .bc-card{gap: 12px; padding: 9px 10px;}
  .bc-verify .bc-txt .bc-v{min-height: 18px;}
}

/* ---------- pdf 인쇄(@page) 시 팝업 제외 ---------- */
@media print{
  .popup_layer.bc-layer{display: none !important;}
}

/* ---------- 모션 줄이기 설정 사용자 ---------- */
@media (prefers-reduced-motion: reduce){
  .bc-popup,
  .bc-verify *,
  .bc-verify *::before,
  .bc-verify *::after{
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
