/* ============================================================
   차트히어로 무료 자료실 — 스타일
   ============================================================ */

:root {
  --bg: #0a0a0d;
  --bg-soft: #0e0e12;
  --card: #131318;
  --card-2: #17171d;
  --line: #232329;
  --line-soft: #1c1c22;

  --text: #edebe6;
  --muted: #a09d96;
  --dim: #6d6b66;

  --red: #e5484d;
  --red-deep: #c22e34;
  --green: #3fca6b;
  --green-deep: #2b9e50;
  --yellow: #ffc933;
  --orange: #ff8a2a;

  --radius: 18px;
  --radius-sm: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 은은한 배경 — 캔들 느낌의 세로 결 + 상단 글로우 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 420px at 70% -140px, rgba(229, 72, 77, 0.09), transparent 60%),
    radial-gradient(700px 380px at 12% -120px, rgba(63, 202, 107, 0.07), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 96px);
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ── 헤더 ─────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 10, 13, 0.82);
  border-bottom: 1px solid var(--line-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo img { height: 34px; width: auto; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.nav-tag {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ── 공용 뱃지 (WATCH · 스타일) ───────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(19, 19, 24, 0.85);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--text);
}

.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 10px var(--yellow);
  animation: pulse 2s ease-in-out infinite;
}

.pill .dot.green { background: var(--green); box-shadow: 0 0 10px var(--green); }
.pill .dot.red { background: var(--red); box-shadow: 0 0 10px var(--red); }
.pill .dot.orange { background: var(--orange); box-shadow: 0 0 10px var(--orange); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ── 히어로 섹션 ──────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  align-items: center;
  padding: 84px 0 72px;
}

.hero-copy .pill { margin-bottom: 26px; }

.hero-logo { height: 74px; width: auto; margin-bottom: 26px; }

.hero h1 {
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero h1 .red { color: var(--red); }
.hero h1 .green { color: var(--green); }
.hero h1 .yellow { color: var(--yellow); }

.hero p.sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 520px;
  margin-bottom: 34px;
}

.hero p.sub strong { color: var(--text); font-weight: 700; }

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    border-color 0.15s ease, opacity 0.15s ease;
}

.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  color: #fff;
  box-shadow: 0 8px 28px rgba(229, 72, 77, 0.32);
}

.btn-primary:hover { box-shadow: 0 10px 34px rgba(229, 72, 77, 0.45); transform: translateY(-1px); }

.btn-ghost {
  background: var(--card);
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--dim); transform: translateY(-1px); }

.btn-green {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  color: #06130a;
  box-shadow: 0 8px 28px rgba(63, 202, 107, 0.28);
}

.btn-green:hover { box-shadow: 0 10px 34px rgba(63, 202, 107, 0.4); transform: translateY(-1px); }

.btn-block { width: 100%; padding: 16px; font-size: 16px; }

.btn[disabled] { opacity: 0.55; pointer-events: none; }

/* 히어로 캐릭터 */
.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  background: radial-gradient(closest-side, rgba(229, 72, 77, 0.22), rgba(63, 202, 107, 0.10) 55%, transparent 75%);
  filter: blur(14px);
  z-index: 0;
}

.hero-art img {
  position: relative;
  z-index: 1;
  width: min(320px, 80%);
  filter: drop-shadow(0 24px 44px rgba(0, 0, 0, 0.55));
  animation: floaty 5s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ── 섹션 타이틀 (번호 칩 스타일) ─────────────────────── */
.section { padding: 34px 0 20px; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.num-chip {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 19px;
  color: #131313;
  background: var(--yellow);
  box-shadow: 0 6px 18px rgba(255, 201, 51, 0.25);
  flex-shrink: 0;
}

.num-chip.orange { background: var(--orange); box-shadow: 0 6px 18px rgba(255, 138, 42, 0.25); }

.section-title h2 {
  font-size: clamp(21px, 3vw, 27px);
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* ── 자료 카드 그리드 ─────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 26px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #34343c;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

.card-thumb {
  position: relative;
  height: 150px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  background:
    radial-gradient(320px 150px at 85% 0%, rgba(255, 255, 255, 0.05), transparent 70%),
    var(--card-2);
  border-bottom: 1px solid var(--line-soft);
}

.card-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 34px);
}

.card.accent-red .card-thumb { box-shadow: inset 4px 0 0 var(--red); }
.card.accent-green .card-thumb { box-shadow: inset 4px 0 0 var(--green); }
.card.accent-yellow .card-thumb { box-shadow: inset 4px 0 0 var(--yellow); }

.card-tag {
  position: relative;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(10, 10, 13, 0.6);
  padding: 4px 10px;
  border-radius: 999px;
}

.free-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: var(--yellow);
  border: 1px dashed rgba(255, 201, 51, 0.55);
  background: rgba(255, 201, 51, 0.07);
  padding: 5px 11px;
  border-radius: 999px;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-body h3 {
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.card-body p {
  font-size: 13.5px;
  color: var(--muted);
  flex: 1;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--dim);
  font-weight: 600;
}

.card-foot .go {
  color: var(--text);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card:hover .card-foot .go { color: var(--yellow); }

/* ── 이용 방법 3단계 ──────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 40px;
}

.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: inset 4px 0 0 var(--orange);
}

.step b.step-no {
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: var(--orange);
  margin-bottom: 10px;
}

.step h3 { font-size: 17px; font-weight: 850; margin-bottom: 8px; letter-spacing: -0.02em; }

.step p { font-size: 13.5px; color: var(--muted); }

.step p strong { color: var(--text); }

/* ── 히어로의 결론 박스 (캐릭터 + 문구) ────────────────── */
.hero-note {
  display: flex;
  gap: 26px;
  align-items: center;
  background: var(--card);
  border: 1px solid rgba(229, 72, 77, 0.35);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 12px 0 64px;
  background-image: radial-gradient(500px 200px at 12% 50%, rgba(229, 72, 77, 0.07), transparent 70%);
}

.hero-note img { width: 132px; flex-shrink: 0; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5)); }

.hero-note h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 900;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.hero-note h3::before {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--red);
  border-radius: 3px;
}

.hero-note p { color: var(--muted); font-size: 14.5px; }

.hero-note p strong { color: var(--text); }

.hero-note p .hl-y { color: var(--yellow); font-weight: 800; }
.hero-note p .hl-g { color: var(--green); font-weight: 800; }
.hero-note p .hl-r { color: var(--red); font-weight: 800; }

/* ── 상세 페이지 ──────────────────────────────────────── */
.detail {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 26px;
  align-items: start;
  padding: 48px 0 80px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
  margin: 26px 0 0;
  transition: color 0.15s;
}

.back-link:hover { color: var(--text); }

.detail-info .free-badge { position: static; display: inline-block; margin-bottom: 16px; }

.detail-info .card-tag { display: inline-block; margin: 0 0 16px 8px; }

.detail-info h1 {
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.28;
  margin-bottom: 14px;
}

.detail-info .file-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--dim);
  margin-bottom: 22px;
}

.detail-info .desc p { color: var(--muted); font-size: 15.5px; margin-bottom: 14px; }

.points {
  margin: 24px 0 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: inset 4px 0 0 var(--green);
}

.points h4 {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--green);
  margin-bottom: 12px;
}

.points ul { list-style: none; }

.points li {
  position: relative;
  padding: 7px 0 7px 26px;
  font-size: 14.5px;
  color: var(--text);
}

.points li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: var(--green);
  font-weight: 900;
}

/* 텔레그램 비트코인 시황방 배너 */
.tg-banner {
  display: flex;
  align-items: center;
  gap: 26px;
  background:
    radial-gradient(520px 220px at 8% 50%, rgba(42, 171, 238, 0.1), transparent 70%),
    var(--card);
  border: 1px solid rgba(42, 171, 238, 0.35);
  border-radius: var(--radius);
  padding: 30px 34px;
  margin: -34px 0 64px;
  color: var(--text);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.tg-banner:hover {
  transform: translateY(-3px);
  border-color: rgba(42, 171, 238, 0.75);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), 0 0 0 3px rgba(42, 171, 238, 0.08);
}

.tg-icon {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2aabee, #1c8adb);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(42, 171, 238, 0.35);
}

.tg-icon svg { width: 34px; height: 34px; fill: #fff; transform: translateX(-2px); }

.tg-copy { flex: 1; min-width: 0; }

.tg-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #2aabee;
  border: 1px solid rgba(42, 171, 238, 0.4);
  background: rgba(42, 171, 238, 0.08);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.tg-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2aabee;
  box-shadow: 0 0 10px #2aabee;
  animation: pulse 1.6s ease-in-out infinite;
}

.tg-copy h3 {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.tg-copy p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }

.tg-copy p b { color: var(--text); }

.tg-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #2aabee, #1c8adb);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  padding: 15px 26px;
  border-radius: var(--radius-sm);
  letter-spacing: -0.01em;
  box-shadow: 0 8px 26px rgba(42, 171, 238, 0.3);
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tg-banner:hover .tg-btn {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(42, 171, 238, 0.45);
}

/* 유튜브 지표 신청 배너 (.yt 변형 — 시황방 배너와 같은 골격, 유튜브 레드) */
.tg-banner.yt {
  background:
    radial-gradient(520px 220px at 8% 50%, rgba(255, 40, 60, 0.1), transparent 70%),
    var(--card);
  border-color: rgba(255, 40, 60, 0.35);
  margin: -34px 0 18px;
}

.tg-banner.yt:hover {
  border-color: rgba(255, 40, 60, 0.75);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), 0 0 0 3px rgba(255, 40, 60, 0.08);
}

.tg-banner.yt .tg-icon {
  border-radius: 22px;
  background: linear-gradient(135deg, #ff2838, #d61f2c);
  box-shadow: 0 10px 28px rgba(255, 40, 60, 0.35);
}

.tg-banner.yt .tg-live {
  color: #ff5a66;
  border-color: rgba(255, 40, 60, 0.4);
  background: rgba(255, 40, 60, 0.08);
}

.tg-banner.yt .tg-dot { background: #ff3c4a; box-shadow: 0 0 10px #ff3c4a; }

.tg-banner.yt .tg-btn {
  background: linear-gradient(135deg, #ff2838, #d61f2c);
  box-shadow: 0 8px 26px rgba(255, 40, 60, 0.3);
}

.tg-banner.yt:hover .tg-btn { box-shadow: 0 12px 32px rgba(255, 40, 60, 0.45); }

/* 관련 유튜브 영상 그리드 */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}

.video-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 40, 60, 0.55);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0b0b0e;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.video-card:hover .video-thumb img { transform: scale(1.04); }

.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  background: rgba(0, 0, 0, 0.18);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.video-play::before {
  content: "";
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 40, 60, 0.92);
  z-index: -1;
  box-shadow: 0 8px 26px rgba(255, 40, 60, 0.5);
}

.video-card:hover .video-play { opacity: 1; }

.video-card h3 {
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.45;
  padding: 14px 16px 4px;
  flex: 1;
}

.video-btn {
  display: block;
  margin: 12px 16px 16px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 800;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #ff2838, #d61f2c);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 40, 60, 0.25);
  transition: box-shadow 0.15s ease;
}

.video-card:hover .video-btn { box-shadow: 0 10px 26px rgba(255, 40, 60, 0.4); }

@media (max-width: 900px) {
  .video-grid { grid-template-columns: 1fr; }
}

/* 신청 폼 — 지표 선택 칩 */
.opt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.opt-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.13s, color 0.13s, background 0.13s;
  user-select: none;
}

.opt-chip input { display: none; }

.opt-chip .opt-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--dim);
  flex-shrink: 0;
  transition: border-color 0.13s, box-shadow 0.13s;
}

.opt-chip:hover { border-color: var(--dim); color: var(--text); }

.opt-chip.on {
  border-color: var(--yellow);
  background: rgba(255, 201, 51, 0.07);
  color: var(--text);
}

.opt-chip.on .opt-dot {
  border-color: var(--yellow);
  border-width: 5px;
  box-shadow: 0 0 10px rgba(255, 201, 51, 0.35);
}

/* COMING SOON 예고 카드 */
.card-soon {
  position: relative;
  border: 1.5px dashed rgba(255, 201, 51, 0.45);
  background:
    radial-gradient(420px 260px at 50% 0%, rgba(255, 201, 51, 0.07), transparent 70%),
    var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 360px;
  overflow: hidden;
}

.card-soon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 34px);
  pointer-events: none;
}

.card-soon::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -30%;
  width: 60%;
  height: 220%;
  background: linear-gradient(105deg, transparent, rgba(255, 201, 51, 0.06), transparent);
  transform: rotate(8deg);
  animation: soon-sweep 3.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes soon-sweep {
  0% { left: -60%; }
  55%, 100% { left: 130%; }
}

.card-soon:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 201, 51, 0.8);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), 0 0 0 3px rgba(255, 201, 51, 0.08);
}

.soon-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 44px 28px;
}

.soon-pill {
  color: var(--yellow);
  border-color: rgba(255, 201, 51, 0.4);
}

.soon-inner h3 {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.soon-inner p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.7;
}

.soon-inner p b { color: var(--yellow); }

.soon-weekly {
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(10, 10, 13, 0.6);
  padding: 7px 14px;
  border-radius: 999px;
}

/* 카드 썸네일 이미지 — 1:1 비율 그대로 표시 */
.card-thumb.has-img {
  height: auto;
  aspect-ratio: 1 / 1;
}

.card-thumb .thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.card-thumb.has-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(10, 10, 13, 0.6));
}

.card-thumb.has-img .card-tag,
.card-thumb.has-img .free-badge {
  z-index: 1;
}

/* 상세페이지 이미지 — 2단 영역 아래 전체 폭 */
.detail-images {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-images:not(:empty) {
  margin-top: 40px;
}

.detail-images img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* 신청 폼 카드 */
.claim-card {
  position: sticky;
  top: 92px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.claim-card .claim-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.claim-card h3 { font-size: 20px; font-weight: 900; letter-spacing: -0.02em; }

.claim-card .price {
  font-size: 22px;
  font-weight: 900;
  color: var(--yellow);
  letter-spacing: -0.01em;
}

.claim-card .claim-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}

.field label .req { color: var(--red); }

.field input {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input::placeholder { color: var(--dim); }

.field input:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 201, 51, 0.12);
}

.field input.invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.12);
}

.field .err {
  display: none;
  font-size: 12px;
  color: var(--red);
  margin-top: 6px;
  font-weight: 600;
}

.field.show-err .err { display: block; }

/* 포지션 시장 선택 — 클릭하면 목록이 펼쳐지는 복수 선택 드롭다운 */
.field label .label-sub { font-weight: 600; font-size: 12px; color: var(--dim); }
.mkt { position: relative; }
.mkt-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  padding: 13px 16px;
  outline: none;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.mkt-toggle:focus, .mkt.open .mkt-toggle {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 201, 51, 0.12);
}
.mkt-toggle.invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.12);
}
.mkt-toggle .placeholder { color: var(--dim); }
.mkt-arrow { color: var(--dim); font-size: 12px; flex-shrink: 0; transition: transform 0.15s; }
.mkt.open .mkt-arrow { transform: rotate(180deg); }
.mkt-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  background: var(--card, #131318);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.mkt-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 14.5px;
  cursor: pointer;
  user-select: none;
}
.mkt-item:hover { background: rgba(255, 255, 255, 0.05); }
.mkt-item + .mkt-item { border-top: 1px solid var(--line-soft, #1c1c22); }
.mkt-item .tick {
  width: 18px; height: 18px;
  border: 1.5px solid var(--line);
  border-radius: 5px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: transparent;
  transition: all 0.12s;
}
.mkt-item.on .tick {
  background: var(--green);
  border-color: var(--green);
  color: #0a0a0d;
}
.mkt-item.on { color: var(--green); font-weight: 700; }

/* 휴대폰 인증 */
.input-row {
  display: flex;
  gap: 8px;
}

.input-row input { flex: 1; min-width: 0; }

.btn-verify {
  flex-shrink: 0;
  padding: 0 16px;
  font-size: 13.5px;
  font-weight: 800;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.btn-verify:hover:not(:disabled) { border-color: var(--yellow); color: var(--yellow); }

.btn-verify:disabled { opacity: 0.55; cursor: default; }

.code-timer {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  font-weight: 600;
}

.code-timer.expired { color: var(--red); }

.verify-ok {
  display: block;
  font-size: 12.5px;
  color: var(--green);
  margin-top: 6px;
  font-weight: 700;
}

.field input:disabled { opacity: 0.6; }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  margin-bottom: 20px;
  cursor: pointer;
}

.consent input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--yellow);
  cursor: pointer;
  flex-shrink: 0;
}

.consent span { font-size: 12.5px; color: var(--muted); }

.consent span b { color: var(--text); }

.form-msg {
  display: none;
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.5;
}

.form-msg.error {
  display: block;
  background: rgba(229, 72, 77, 0.1);
  border: 1px solid rgba(229, 72, 77, 0.4);
  color: #ff8a8e;
}

/* 수령 성공 화면 */
.claim-success { text-align: center; padding: 8px 0; }

.claim-success img {
  width: 150px;
  margin: 0 auto 14px;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.5));
}

.claim-success h3 { font-size: 22px; font-weight: 900; margin-bottom: 8px; }

.claim-success h3 span { color: var(--green); }

.claim-success p { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }

/* ── 푸터 ─────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line-soft);
  padding: 26px 0 34px;
  margin-top: 20px;
}

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 12.5px;
  color: var(--dim);
  font-weight: 600;
}

.foot img { height: 22px; opacity: 0.85; }

.foot-links { display: flex; gap: 16px; }

.foot-links a:hover { color: var(--text); }

/* 스피너 */
.spin {
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: rot 0.7s linear infinite;
}

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

/* ── 반응형 ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 56px 0 40px; text-align: center; }
  .hero-copy .pill { margin-inline: auto; }
  .hero-logo { margin-inline: auto; }
  .hero p.sub { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-art { order: -1; }
  .hero-art img { width: 200px; }
  .grid, .steps { grid-template-columns: 1fr; }
  .detail { grid-template-columns: 1fr; }
  .claim-card { position: static; }
  .hero-note { flex-direction: column; text-align: center; padding: 24px; }
  .hero-note h3 { justify-content: center; }
  .tg-banner { flex-direction: column; text-align: center; gap: 18px; padding: 28px 22px; }
  .tg-btn { width: 100%; justify-content: center; }
}
