/* OKAPISCAN 거래소 혜택 컴포넌트 (허브 비교표 · 가이드 혜택 박스 · 분석 글 CTA) */

/* ── 홈 CTA 스트립: 준비 중 카드 ── */
.cta-card--soon {
  opacity: .72;
  border-style: dashed;
  cursor: default;
}
.cta-card--soon:hover { transform: none !important; }

/* ── 허브 비교표 ── */
.benefit-table-wrap {
  margin-top: 26px;
  overflow-x: auto;
  border: 1px solid #33445c;
  border-radius: 14px;
  background: linear-gradient(150deg, #0d1a2b, #070f1c);
}
.benefit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: #cfdcec;
}
.benefit-table th,
.benefit-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #26364c;
}
.benefit-table thead th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #86a0bf;
  background: #0b1727;
  white-space: nowrap;
}
.benefit-table tbody tr:last-child th,
.benefit-table tbody tr:last-child td { border-bottom: 0; }
.benefit-table-name { min-width: 116px; }
.benefit-table-name strong {
  display: block;
  font-size: 15px;
  color: #f1f7ff;
}
.benefit-table-name small {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  letter-spacing: .08em;
  color: #7c93b0;
}
.benefit-table td:nth-child(2) {
  font-family: Inter, sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: #f0d39b;
  white-space: nowrap;
}
.benefit-table td:nth-child(3) { min-width: 190px; color: #e8f1fb; font-weight: 600; }
.benefit-table td:nth-child(4) { white-space: nowrap; color: #b9c9dd; }
.benefit-table td:nth-child(5) { min-width: 200px; font-size: 12px; line-height: 1.7; color: #a6b8ce; }
.benefit-row--soon td,
.benefit-row--soon th { color: #8fa3ba; }
.benefit-table-action { min-width: 172px; }
.benefit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  background: linear-gradient(120deg, #f0d497, #d4b574);
  color: #17130a;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.benefit-btn:hover { filter: brightness(1.06); }
.benefit-btn-sub {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-top: 6px;
  font-size: 12px;
  color: #9fc2ea;
  text-decoration: none;
}
.benefit-btn-sub:hover { color: #d5e8ff; text-decoration: underline; }
.benefit-soon {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px dashed #4a5c74;
  border-radius: 8px;
  font-size: 12px;
  color: #9bb0c8;
}
.benefit-source {
  margin: 12px 2px 0;
  font-size: 11px;
  line-height: 1.7;
  color: #7e93ad;
}

/* ── 가이드 상단 혜택 박스 ── */
.benefit-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: start;
  margin: 6px 0 22px;
  padding: 26px 28px;
  border: 1px solid #8a6a25;
  border-radius: 16px;
  background: linear-gradient(120deg, #241d10, #12161d 70%);
}
.benefit-box--soon { border-color: #3c4a5e; background: linear-gradient(120deg, #151b25, #10141a); }
.benefit-kicker {
  display: block;
  font: 800 11px Inter, sans-serif;
  letter-spacing: .12em;
  color: #e0bd72;
}
.benefit-headline {
  margin: 8px 0 10px;
  font-size: clamp(21px, 3vw, 27px);
  line-height: 1.35;
  letter-spacing: -.04em;
  color: #f4f7fb;
}
.benefit-fee-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.benefit-fee-line span {
  padding: 5px 10px;
  border: 1px solid #3d4a5c;
  border-radius: 999px;
  background: #0e141d;
  font-size: 12px;
  color: #cfd8e5;
}
.benefit-conditions {
  margin: 0;
  padding-left: 18px;
  color: #aab6c5;
  font-size: 12px;
  line-height: 1.9;
}
.benefit-box-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 210px;
}
.benefit-copy {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-height: 52px;
  padding: 8px 16px;
  border: 1px solid #8a6a25;
  border-radius: 10px;
  background: #0d1117;
  color: #f3dcaa;
  cursor: pointer;
  font-family: inherit;
}
.benefit-copy-code { font: 800 20px Inter, sans-serif; letter-spacing: .04em; }
.benefit-copy small { font-size: 11px; font-weight: 700; color: #b3bccb; }
.benefit-cta-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 10px;
  background: linear-gradient(120deg, #f0d497, #d4b574);
  color: #17130a;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
}
.benefit-cta-main:hover { filter: brightness(1.06); }
/* 가이드 상단 혜택 박스 CTA: 거래소 고유 색(Bybit 골드 / Bitget 청록 / OKX 라임). 민트·공통 백색은 쓰지 않는다. */
.benefit-box[data-benefit-box="bybit"] .benefit-cta-main { background: var(--ex-bybit, #E5C06A); color: var(--ex-bybit-ink, #17130A); }
.benefit-box[data-benefit-box="bitget"] .benefit-cta-main { background: var(--ex-bitget, #4FD1D2); color: var(--ex-bitget-ink, #06201F); }
.benefit-box[data-benefit-box="okx"] .benefit-cta-main { background: var(--ex-okx, #B6E84A); color: var(--ex-okx-ink, #101A05); }
.benefit-box[data-benefit-box="bybit"] .benefit-cta-main:hover,
.benefit-box[data-benefit-box="bitget"] .benefit-cta-main:hover,
.benefit-box[data-benefit-box="okx"] .benefit-cta-main:hover { filter: brightness(1.08); }
.benefit-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 12px;
  color: #cbb98e;
  text-decoration: none;
}
.benefit-link:hover { text-decoration: underline; }
.benefit-fine {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 11px;
  line-height: 1.7;
  color: #8b96a5;
}

/* ── 분석 글 말미 CTA ── */
.benefit-cta-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin: 34px 0 8px;
  padding: 24px 26px;
  border: 1px solid #33445c;
  border-radius: 14px;
  background: linear-gradient(140deg, #101c2c, #0a1220);
}
.benefit-cta-copy h2 {
  margin: 8px 0 8px;
  font-size: 19px;
  letter-spacing: -.03em;
  color: #eff6ff;
}
.benefit-cta-copy p {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.8;
  color: #b9c9dd;
}
.benefit-cta-copy strong { color: #f3dcaa; }
.benefit-cta-fine { font-size: 11px !important; color: #8296ae !important; }
.benefit-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 220px;
}

@media (max-width: 760px) {
  .benefit-table-wrap { overflow: visible; border: 0; background: none; }
  .benefit-table, .benefit-table tbody, .benefit-table tr, .benefit-table th, .benefit-table td { display: block; width: 100%; }
  .benefit-table thead { display: none; }
  .benefit-table tr {
    margin-bottom: 14px;
    padding: 16px 18px;
    border: 1px solid #33445c;
    border-radius: 12px;
    background: linear-gradient(150deg, #0d1a2b, #070f1c);
  }
  .benefit-table th, .benefit-table td {
    padding: 6px 0;
    border-bottom: 0;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
    white-space: normal;
  }
  .benefit-table td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    color: #8296ae;
  }
  .benefit-table-name { margin-bottom: 4px; }
  .benefit-table td:nth-child(3),
  .benefit-table td:nth-child(5) { min-width: 0; }
  .benefit-table-action { display: block; margin-top: 8px; }
  .benefit-table-action::before { display: none; }
  .benefit-box { grid-template-columns: 1fr; padding: 20px; }
  .benefit-box-actions { min-width: 0; }
  .benefit-cta-block { grid-template-columns: 1fr; padding: 20px; }
  .benefit-cta-actions { min-width: 0; }
}

/* ── 거래소 혜택 허브(/kr/guides/) ── */
.guide-hub .section-title {
  margin: 0 0 14px;
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: -.04em;
  color: #f2f7ff;
}
.guide-hub-benefits { margin-top: 34px; }
.guide-hub-pick { margin-top: 40px; }
.guide-hub-compare-note { margin-top: 38px; }
.guide-hub-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.guide-hub-checklist li {
  padding: 15px 17px;
  border: 1px solid #2f4258;
  border-radius: 11px;
  background: #0c1725;
  color: #a9bdd4;
  font-size: 12.5px;
  line-height: 1.85;
}
.guide-hub-checklist strong { display: block; margin-bottom: 4px; color: #e6f0fb; font-size: 13px; }
@media (max-width: 760px) {
  .guide-hub-checklist { grid-template-columns: 1fr; }
  .guide-hub-checklist li { font-size: 12px; line-height: 1.8; }
}

/* ── 가이드 안내 이미지 예시 표기 ── */
.step-example-note {
  margin: 10px 0 0;
  padding: 9px 13px;
  border-left: 3px solid #8a6a25;
  border-radius: 0 6px 6px 0;
  background: #131820;
  color: #a9b3c1;
  font-size: 12px;
  line-height: 1.7;
}

/* 사이트 공통 'body.* a { color: inherit }' 규칙을 이기기 위한 명시적 링크 색 */
body a.benefit-btn,
body.space-home a.benefit-btn,
body.site-galaxy a.benefit-btn,
body a.benefit-cta-main,
body.space-home a.benefit-cta-main,
body a.benefit-btn-sub,
body.space-home a.benefit-btn-sub,
body a.benefit-link,
body.space-home a.benefit-link { color: inherit; }
body a.benefit-btn,
body.space-home a.benefit-btn { color: #17130a; }
body a.benefit-cta-main,
body.space-home a.benefit-cta-main { color: #17130a; }
body a.benefit-btn-sub,
body.space-home a.benefit-btn-sub { color: #9fc2ea; }
body a.benefit-link,
body.space-home a.benefit-link { color: #cbb98e; }
body a.benefit-btn:hover,
body a.benefit-cta-main:hover { color: #17130a; }
/* 허브 소개문 아래 과도한 여백 축소 (site-galaxy의 85px 여백을 덮는다) */
body.site-galaxy[data-space] .guide-hub .guide-hub-intro,
body.site-galaxy[data-space] .guide-hub-intro { padding-bottom: 6px; }

/* 모바일 비교표 카드: 버튼이 두 줄로 접히지 않게 */
.benefit-table-action { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.benefit-btn { white-space: nowrap; }
@media (max-width: 760px) {
  .benefit-table-action { display: flex; margin-top: 10px; }
  .benefit-table-action .benefit-btn-sub { margin-top: 0; }
}
