/* ===== YN PDF — 세련된 다크 테마 + 앰버 골드→오렌지 액센트 ===== */
:root {
  --bg: #0a0a0c;
  --bg-2: #0e0d10;
  --panel: #141317;
  --panel-2: #1a181e;
  --panel-hover: #1f1c24;
  --line: #2a2730;
  --line-soft: #201e26;
  --text: #f4f2f7;
  --muted: #a8a2b4;
  --faint: #6f6a7c;
  --gold: #fbbf24;
  --amber: #f59e0b;
  --orange: #f97316;
  --brand-grad: linear-gradient(135deg, #fbbf24, #f97316);
  --brand-grad-soft: linear-gradient(135deg, rgba(251,191,36,.14), rgba(249,115,22,.08));
  --brand-ring: rgba(249, 140, 30, .35);
  --glow: 0 8px 30px rgba(249, 115, 22, .18);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 12px 40px rgba(0, 0, 0, .5);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, .6);
  --radius: 14px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* 접근성: 본문 바로가기(포커스 시에만 표시) */
.skip-link { position: fixed; top: -60px; left: 12px; z-index: 100; background: var(--brand-grad); color: #241802; font-weight: 700; padding: 10px 16px; border-radius: 10px; text-decoration: none; transition: top .16s; }
.skip-link:focus { top: 12px; outline: none; box-shadow: 0 0 0 3px rgba(249,140,30,.4); }
/* 키보드 포커스 링 */
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
/* 모션 최소화 선호 존중 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 15% -8%, rgba(251, 191, 36, .10), transparent 60%),
    radial-gradient(800px 500px at 92% 4%, rgba(249, 115, 22, .08), transparent 55%),
    var(--bg);
  font-family: Inter, "Segoe UI", "Malgun Gothic", Arial, sans-serif;
  font-feature-settings: "cv02","cv03","cv04","cv11";
  word-break: keep-all;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo-mark { font-family: Manrope, Inter, "Malgun Gothic", sans-serif; letter-spacing: -0.02em; }

.container { width: min(1180px, 92vw); margin: 0 auto; }

/* 아이콘 기본 (Lucide SVG) */
svg.lucide { width: 1em; height: 1em; stroke-width: 2; display: inline-block; vertical-align: -0.14em; flex: none; }
i[data-lucide] { display: inline-flex; }

/* ---------- 로고 마크 ---------- */
.logo-mark {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 11px;
  font-weight: 800; font-size: 15px; color: #241802; letter-spacing: .3px;
  background: var(--brand-grad);
  box-shadow: 0 4px 14px rgba(249,115,22,.35), inset 0 1px 0 rgba(255,255,255,.35);
}
.logo-mark.sm { width: 32px; height: 32px; font-size: 13px; border-radius: 9px; }

/* ---------- 헤더 ---------- */
.header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(160%) blur(14px);
  background: rgba(10, 10, 12, .74);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 20px; padding: 13px 0; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-text strong { font-size: 17px; }
.brand-text span { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.nav { display: flex; gap: 6px; margin-left: 10px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; padding: 7px 11px; border-radius: 9px; transition: .15s; }
.nav a:hover { color: var(--text); background: var(--panel-2); }
.header-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.mode-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 13px; border-radius: 999px; cursor: pointer;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  background: var(--panel-2); border: 1px solid var(--line);
  transition: .16s;
}
.mode-toggle:hover { color: var(--text); border-color: var(--line); background: var(--panel-hover); }
.mode-toggle.active { color: #241802; background: var(--brand-grad); border-color: transparent; box-shadow: var(--glow); }
.mode-sep { opacity: .4; }
.lang-wrap { position: relative; display: inline-flex; align-items: center; }
.lang-globe { position: absolute; left: 10px; font-size: 15px; color: var(--muted); pointer-events: none; }
.lang-caret { position: absolute; right: 8px; font-size: 15px; color: var(--faint); pointer-events: none; }
.lang-select {
  appearance: none; -webkit-appearance: none;
  background: var(--panel-2); color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 28px 8px 32px; font-size: 13px; cursor: pointer; font-weight: 500;
}
.lang-select:hover { border-color: var(--line); background: var(--panel-hover); }
.lang-select:focus { outline: none; border-color: var(--amber); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 22px; cursor: pointer; padding: 4px; }

/* ---------- 히어로 ---------- */
.hero { padding: 84px 0 46px; text-align: center; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-inner { max-width: 780px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600;
  color: var(--gold); background: var(--brand-grad-soft);
  border: 1px solid rgba(251,191,36,.22); border-radius: 999px; padding: 6px 15px; margin: 0 0 22px;
}
.eyebrow svg.lucide { width: 15px; height: 15px; }
.hero-title { font-size: clamp(32px, 5.4vw, 56px); line-height: 1.08; margin: 0 0 20px; font-weight: 800; }
.hero-sub { font-size: clamp(15px, 2vw, 18px); color: var(--muted); margin: 0 auto 30px; max-width: 640px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  padding: 13px 24px; border-radius: 12px; font-weight: 700; font-size: 15px;
  cursor: pointer; border: 1px solid transparent; transition: .18s; font-family: inherit;
}
.btn svg.lucide { width: 17px; height: 17px; }
.btn-primary { background: var(--brand-grad); color: #241802; box-shadow: var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(249,115,22,.32); }
.btn-primary:hover svg.lucide { transform: translateX(3px); transition: .18s; }
.btn-ghost { background: var(--panel-2); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--amber); color: var(--gold); }
.hero-badges { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; list-style: none; padding: 0; margin: 34px 0 0; }
.hero-badges li { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.hero-badges svg.lucide { width: 15px; height: 15px; color: var(--gold); stroke-width: 3; }

/* ---------- 도구 섹션 ---------- */
.tools-section { padding: 34px 0 10px; }
.tools-head { text-align: center; margin-bottom: 34px; }
.tools-head h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 8px; }
.tools-head p { color: var(--muted); margin: 0 0 22px; }
.tool-search-wrap { position: relative; width: min(480px, 92%); margin: 0 auto; }
.tool-search-ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--faint); pointer-events: none; }
.tool-search {
  width: 100%; padding: 13px 16px 13px 44px; font-size: 15px; font-family: inherit;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px;
}
.tool-search::placeholder { color: var(--faint); }
.tool-search:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px rgba(249,140,30,.12); }

.tool-group { margin: 40px 0; }
.group-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 16px; }
.group-ico { font-size: 18px; color: var(--gold); }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 12px; }
.tool-card {
  display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
  padding: 16px; border-radius: var(--radius); cursor: pointer;
  background: var(--panel); border: 1px solid var(--line-soft);
  transition: transform .16s ease, border-color .16s, background .16s; position: relative; font-family: inherit;
}
.tool-card:hover { transform: translateY(-2px); border-color: var(--line); background: var(--panel-hover); box-shadow: var(--shadow); }
.tool-card .t-ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none;
  font-size: 22px; color: var(--gold);
  background: var(--brand-grad-soft); border: 1px solid rgba(251,191,36,.16);
  transition: .16s;
}
.tool-card:hover .t-ico { background: var(--brand-grad); color: #241802; border-color: transparent; }
.tool-card .t-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.tool-card .t-name { font-size: 15px; font-weight: 700; color: var(--text); }
.tool-card .t-desc { font-size: 12.5px; color: var(--muted); line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tool-card .t-arrow { font-size: 18px; color: var(--faint); opacity: 0; transform: translateX(-4px); transition: .16s; flex: none; }
.tool-card:hover .t-arrow { opacity: 1; transform: translateX(0); color: var(--gold); }
.tool-card .t-soon { font-size: 10.5px; font-weight: 600; color: var(--faint); flex: none; border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.tool-card.is-soon { opacity: .82; }
.tool-card.is-soon:hover .t-ico { background: var(--brand-grad-soft); color: var(--gold); border-color: rgba(251,191,36,.16); }

/* ---------- 특징 ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin: 64px 0; }
.feature { padding: 24px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); transition: .16s; }
.feature:hover { border-color: var(--line); }
.feature-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; color: var(--gold); background: var(--brand-grad-soft); border: 1px solid rgba(251,191,36,.16); margin-bottom: 14px; }
.feature h4 { margin: 0 0 6px; font-size: 16px; }
.feature p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ---------- 사용 방법 ---------- */
.howto { text-align: center; margin: 72px 0; }
.howto h2 { font-size: clamp(24px, 3vw, 30px); margin: 0 0 34px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.step { padding: 26px 22px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-grad); color: #241802; font-weight: 800; font-size: 17px; margin-bottom: 14px; box-shadow: var(--glow); }
.step h4 { margin: 0 0 6px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- 개발자 패널 ---------- */
.dev-panel { margin: 64px 0; padding: 36px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.dev-panel h2 { margin: 0 0 8px; font-size: 24px; }
.dev-panel > p { color: var(--muted); margin: 0 0 24px; }
.dev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.dev-card { background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 14px; padding: 18px; }
.dev-card h4 { margin: 0 0 12px; color: var(--gold); font-size: 13px; display: flex; align-items: center; gap: 7px; }
.dev-card h4 svg.lucide { width: 15px; height: 15px; }
.dev-card pre { margin: 0; overflow-x: auto; }
.dev-card code { font-family: "SF Mono", "Cascadia Code", Consolas, monospace; font-size: 12.5px; color: #ffe0b3; white-space: pre; line-height: 1.7; }
.dev-note { margin: 20px 0 0; font-size: 12.5px; color: var(--faint); }

/* ---------- FAQ ---------- */
.faq { margin: 64px 0; max-width: 780px; margin-left: auto; margin-right: auto; }
.faq h2 { font-size: clamp(24px, 3vw, 30px); text-align: center; margin: 0 0 28px; }
.faq details { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 14px; padding: 4px 20px; margin-bottom: 10px; transition: .16s; }
.faq details[open] { border-color: var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 15px; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 20px; font-weight: 400; transition: .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 16px; font-size: 14px; }

/* ---------- 모달 ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(4px); animation: fade .2s ease; }
.modal-box { position: relative; width: min(660px, 100%); max-height: 90vh; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--shadow-lg); animation: pop .22s cubic-bezier(.2,.8,.2,1); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 9px; color: var(--muted); font-size: 18px; cursor: pointer; transition: .15s; }
.modal-close:hover { color: var(--text); border-color: var(--line); }
.modal-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; padding-right: 40px; }
.modal-ico { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; font-size: 24px; color: #241802; background: var(--brand-grad); flex: none; box-shadow: var(--glow); }
.modal-title { margin: 0; font-size: 20px; }
.modal-desc { color: var(--muted); margin: 3px 0 0; font-size: 13.5px; }

/* ---------- 드롭존 & 컨트롤 (도구 UI 공용) ---------- */
.dropzone {
  border: 1.5px dashed var(--line); border-radius: 16px; padding: 38px 20px; text-align: center;
  cursor: pointer; transition: .16s; background: var(--bg-2);
}
.dropzone:hover, .dropzone.drag { border-color: var(--amber); background: var(--brand-grad-soft); }
.dropzone .dz-ico { font-size: 30px; color: var(--gold); margin-bottom: 6px; display: inline-flex; }
.dropzone .dz-ico svg.lucide { width: 34px; height: 34px; stroke-width: 1.6; }
.dropzone p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.dropzone .dz-sub { font-size: 12px; color: var(--faint); margin-top: 4px; }
.file-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.file-list li { display: flex; align-items: center; gap: 11px; background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 11px; padding: 9px 12px; font-size: 13.5px; }
.file-list .fx-thumb { width: 34px; height: 42px; border-radius: 5px; object-fit: cover; background: var(--panel-2); border: 1px solid var(--line-soft); flex: none; }
.file-list .fx-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list .fx-size { color: var(--faint); font-size: 12px; flex: none; }
.file-list .fx-remove { background: none; border: 0; color: var(--faint); cursor: pointer; display: inline-flex; padding: 4px; border-radius: 6px; transition: .15s; }
.file-list .fx-remove:hover { color: #ef4444; background: rgba(239,68,68,.1); }
.field { margin-top: 16px; }
.field > label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 13px; background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: 11px; font-size: 14px; font-family: inherit; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(249,140,30,.1); }
.field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.field-row .field { flex: 1; min-width: 130px; }
/* 프리셋/세그먼트 버튼 */
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg-btn { flex: 1; min-width: 90px; padding: 11px 12px; border-radius: 11px; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); cursor: pointer; font-size: 13px; font-family: inherit; font-weight: 500; transition: .15s; text-align: center; }
.seg-btn:hover { border-color: var(--line); color: var(--text); }
.seg-btn.active { border-color: var(--amber); color: var(--gold); background: var(--brand-grad-soft); }
.seg-btn .seg-sub { display: block; font-size: 11px; color: var(--faint); margin-top: 2px; }
.modal-actions { display: flex; gap: 10px; margin-top: 22px; }
.modal-actions .btn { flex: 1; justify-content: center; }
.notice { margin-top: 14px; padding: 12px 14px; border-radius: 11px; font-size: 13px; background: var(--brand-grad-soft); border: 1px solid rgba(251,191,36,.18); color: var(--muted); display: flex; gap: 9px; align-items: flex-start; }
.notice svg.lucide { width: 16px; height: 16px; color: var(--gold); flex: none; margin-top: 2px; }
.notice.error { background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.24); }
.notice.error svg.lucide { color: #ef4444; }
.notice.success { background: rgba(52,211,153,.08); border-color: rgba(52,211,153,.24); }
.notice.success svg.lucide { color: #34d399; }
/* 진행률/스피너 */
.progress { height: 8px; border-radius: 999px; background: var(--panel-2); overflow: hidden; margin-top: 14px; }
.progress-bar { height: 100%; width: 0; border-radius: 999px; background: var(--brand-grad); transition: width .25s ease; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
/* 페이지 썸네일 그리드 (분할·삭제·정리·회전용) */
.page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 16px; max-height: 340px; overflow-y: auto; padding: 4px; }
.page-thumb { position: relative; border: 2px solid var(--line-soft); border-radius: 9px; overflow: hidden; cursor: pointer; background: var(--bg-2); aspect-ratio: 3/4; transition: .14s; }
.page-thumb img, .page-thumb canvas { width: 100%; height: 100%; object-fit: contain; display: block; }
.page-thumb .pg-num { position: absolute; bottom: 3px; left: 3px; font-size: 10px; background: rgba(0,0,0,.66); color: #fff; padding: 1px 5px; border-radius: 5px; }
.page-thumb.selected { border-color: var(--amber); box-shadow: 0 0 0 2px rgba(249,140,30,.2); }
.page-thumb .pg-check { position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-grad); display: none; place-items: center; color: #241802; }
.page-thumb.selected .pg-check { display: grid; }

/* ---------- 푸터 ---------- */
.footer { border-top: 1px solid var(--line-soft); margin-top: 60px; padding: 34px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { display: block; font-size: 15px; }
.footer-brand span { font-size: 12.5px; color: var(--muted); }
.footer-copy { font-size: 12.5px; color: var(--faint); margin: 0; }

/* ---------- RTL ---------- */
[dir="rtl"] .tool-card .t-arrow { transform: scaleX(-1) translateX(-4px); }
[dir="rtl"] .lang-globe { left: auto; right: 10px; }
[dir="rtl"] .lang-caret { right: auto; left: 8px; }
[dir="rtl"] .lang-select { padding: 8px 32px 8px 28px; }
[dir="rtl"] .tool-search-ico { left: auto; right: 15px; }
[dir="rtl"] .tool-search { padding: 13px 44px 13px 16px; }

/* ---------- 반응형 ---------- */
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--panel); border-bottom: 1px solid var(--line); padding: 8px 0; }
  .nav.open { display: flex; }
  .nav a { padding: 13px 22px; border-radius: 0; }
  .nav-toggle { display: block; }
  .hero { padding: 56px 0 36px; }
}

/* ================= 광고 슬롯 (애드센스 규정 준수) ================= */
.ad-slot { margin: 30px auto; text-align: center; }
.ad-slot .ad-label { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.ad-slot .adsbygoogle { display: block; }
/* 게시자 ID 미설정 시 자리표시(정책 위반 없이 위치만 확보) */
.ad-slot .ad-ph { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 90px; border: 1px dashed var(--line); border-radius: 12px; color: var(--faint); font-size: 13px; background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,.012) 10px, rgba(255,255,255,.012) 20px); }
.ad-slot .ad-ph svg.lucide { width: 16px; height: 16px; }
.ad-leaderboard .ad-ph { min-height: 90px; }
.ad-infeed .ad-ph, .ad-bottom .ad-ph { min-height: 120px; }
.ad-inmodal { margin: 18px 0 4px; }
.ad-inmodal .ad-ph { min-height: 100px; }

/* ================= 제휴 마케팅(어필리에이트) ================= */
.affiliate { margin: 64px 0; }
.aff-head { text-align: center; margin-bottom: 26px; }
.aff-badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); background: var(--brand-grad-soft); border: 1px solid rgba(251,191,36,.22); border-radius: 999px; padding: 4px 12px; margin-bottom: 12px; }
.aff-head h2 { font-size: clamp(22px, 3vw, 28px); margin: 0 0 6px; }
.aff-head p { color: var(--muted); margin: 0; font-size: 14px; }
.aff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.aff-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--line-soft); text-decoration: none; color: var(--text); transition: .16s; position: relative; }
.aff-card:hover { transform: translateY(-3px); border-color: var(--amber); box-shadow: var(--shadow); }
.aff-card .aff-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; color: var(--gold); background: var(--brand-grad-soft); border: 1px solid rgba(251,191,36,.16); }
.aff-card .aff-ico img { width: 26px; height: 26px; object-fit: contain; }
.aff-card h4 { margin: 2px 0 0; font-size: 15.5px; }
.aff-card p { margin: 0; font-size: 13px; color: var(--muted); flex: 1; }
.aff-card .aff-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--gold); }
.aff-card .aff-cta svg.lucide { width: 15px; height: 15px; transition: .16s; }
.aff-card:hover .aff-cta svg.lucide { transform: translateX(3px); }
.aff-card .aff-tag { position: absolute; top: 14px; right: 14px; font-size: 10px; color: var(--faint); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.aff-disclosure { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 18px 0 0; font-size: 12px; color: var(--faint); }
.aff-disclosure svg.lucide { width: 14px; height: 14px; }

/* ================= 쿠키·광고 동의 배너 ================= */
.consent-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; margin: 0 auto; max-width: 720px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; padding: 16px 20px; background: rgba(20,19,23,.96); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); }
.consent-bar p { margin: 0; font-size: 13px; color: var(--muted); flex: 1; min-width: 220px; }
.consent-actions { display: flex; align-items: center; gap: 10px; }
.consent-link { color: var(--gold); font-size: 13px; text-decoration: none; }
.consent-bar .btn { padding: 9px 18px; font-size: 13.5px; }

/* ================= 푸터 링크 ================= */
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: var(--gold); }
@media (max-width: 640px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .consent-bar { flex-direction: column; align-items: stretch; }
  .consent-actions { justify-content: flex-end; }
}

/* ================= 추천 혜택(제휴) 배너 대시보드 ================= */
.deals { margin: 64px 0; }
.deals-head { text-align: center; margin-bottom: 28px; }
.deals-head h2 { font-size: clamp(22px, 3vw, 30px); margin: 8px 0 6px; }
.deals-head p { color: var(--muted); margin: 0; font-size: 14px; }
.deals-grid { display: flex; flex-direction: column; gap: 28px; }
.deal-group-title { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 14px; }
.deal-group-title svg.lucide { width: 16px; height: 16px; color: var(--gold); }
.deal-group-title .deal-count { margin-left: 2px; font-size: 11px; color: var(--faint); background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 999px; padding: 1px 8px; letter-spacing: 0; }
.deal-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }

.deal-card {
  --brand: var(--amber);
  display: flex; align-items: center; gap: 13px; text-decoration: none; color: var(--text);
  padding: 15px 16px; border-radius: var(--radius); background: var(--panel);
  border: 1px solid var(--line-soft); position: relative; overflow: hidden;
  transition: transform .16s ease, border-color .16s, background .16s;
}
.deal-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand); opacity: .0; transition: opacity .16s; }
.deal-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); background: var(--panel-hover); box-shadow: var(--shadow); }
.deal-card:hover::before { opacity: 1; }
.deal-ico {
  position: relative; width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 22px;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 26%, transparent);
  overflow: hidden;
}
.deal-ico:has(.deal-logo) { background: #fff; border-color: rgba(0,0,0,.08); }
.deal-logo { position: absolute; inset: 0; width: 62%; height: 62%; margin: auto; object-fit: contain; }
.deal-fallico { color: var(--brand); }
.deal-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.deal-name { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.deal-tag { font-size: 10px; font-weight: 600; color: var(--brand); background: color-mix(in srgb, var(--brand) 14%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); border-radius: 6px; padding: 1px 6px; letter-spacing: 0; }
.deal-pitch { font-size: 12.5px; color: var(--muted); line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.deal-cta { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--faint); background: var(--panel-2); border: 1px solid var(--line-soft); transition: .16s; }
.deal-cta svg.lucide { width: 16px; height: 16px; }
.deal-card:hover .deal-cta { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
/* 다중 초대 링크 카드(예: 틱톡 라이트) */
.deal-multi { align-items: flex-start; cursor: default; }
.deal-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.deal-mini { font-size: 12px; font-weight: 600; text-decoration: none; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent); border-radius: 8px; padding: 5px 11px; transition: .14s; }
.deal-mini:hover { background: var(--brand); color: #fff; }
