/* ===== SNS히어로즈 디자인 시스템 ===== */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

:root {
  --brand: #5b4cf5;
  --brand-600: #4a3be0;
  --brand-50: #f1efff;
  --brand-100: #e4e0ff;
  --accent: #ff5c8a;
  --ink: #16151d;
  --ink-2: #3d3b4a;
  --muted: #7a7889;
  --line: #ecebf2;
  --bg: #f7f7fb;
  --card: #ffffff;
  --ok: #12b76a;
  --warn: #f79009;
  --err: #f04438;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(22, 21, 29, .04), 0 8px 24px rgba(22, 21, 29, .06);
  --header-h: 64px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 15px; line-height: 1.6; letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }

/* ----- 헤더 ----- */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header .container { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; letter-spacing: -0.03em; white-space: nowrap; flex: none; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px; display: inline-block; flex: none; font-size: 0;
  background: url('/assets/favicon.svg?v=2') center / cover no-repeat;
}
.logo-text { display: inline-flex; align-items: baseline; }
.logo-text em { font-style: normal; background: linear-gradient(135deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 500; font-size: 14.5px; }
.nav a:hover, .nav a.active { background: var(--brand-50); color: var(--brand); }
.header-right { display: flex; align-items: center; gap: 10px; }
.balance-chip {
  display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--brand-50); color: var(--brand); font-weight: 700; font-size: 14px;
}
.menu-btn { display: none; background: none; border: 0; padding: 8px; }

/* ----- 버튼 ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 18px;
  border-radius: var(--radius-sm); border: 1px solid transparent; font-weight: 600; font-size: 14.5px;
  transition: background .15s, border-color .15s, transform .05s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); }
.btn-primary:disabled { background: #c9c4f7; cursor: not-allowed; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: #d6d4e2; }
.btn-soft { background: var(--brand-50); color: var(--brand); }
.btn-danger { background: #fff; border-color: #fcd7d4; color: var(--err); }
.btn-lg { height: 52px; font-size: 16px; padding: 0 24px; border-radius: 12px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }

/* ----- 히어로 ----- */
.hero {
  position: relative; overflow: hidden; color: #fff; padding: 56px 0 72px;
  background: radial-gradient(1200px 500px at 85% -20%, rgba(255, 92, 138, .55), transparent 60%),
              radial-gradient(900px 500px at 0% 120%, rgba(91, 214, 255, .35), transparent 60%),
              linear-gradient(135deg, #3b2fd9 0%, #5b4cf5 50%, #7b5cff 100%);
}
.hero h1 { font-size: clamp(28px, 4.6vw, 46px); line-height: 1.22; margin: 14px 0 14px; letter-spacing: -0.04em; font-weight: 800; }
.hero p.lead { font-size: clamp(15px, 1.8vw, 18px); opacity: .9; margin: 0 0 26px; max-width: 560px; }
.hero .eyebrow {
  display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); font-size: 13px; font-weight: 600;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-actions .btn-primary { background: #fff; color: var(--brand); }
.hero-actions .btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .3); }
.hero-points { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; font-size: 14px; opacity: .92; }
.hero-points span::before { content: '✓'; margin-right: 6px; font-weight: 800; }

.ticker {
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 13.5px;
  display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow); margin: -22px auto 0; position: relative;
  max-width: 560px; overflow: hidden; white-space: nowrap;
}
.ticker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(18, 183, 106, .15); flex: none; }
.ticker-text { overflow: hidden; text-overflow: ellipsis; transition: opacity .3s; }

/* ----- 섹션 / 카드 ----- */
.section { padding: 48px 0; }
.section-title { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 6px; }
.section-sub { color: var(--muted); margin: 0 0 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 24px; }
.step-num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px;
  font-weight: 700; display: inline-grid; place-items: center; flex: none;
}
.step-head { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 14px; font-size: 16px; }

/* ----- 주문 레이아웃 ----- */
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.order-side { position: sticky; top: calc(var(--header-h) + 16px); }

.platforms { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 18px 12px; justify-items: center; }
.platform .pname { line-height: 1.25; text-align: center; word-break: keep-all; }

/* ----- 주문 패널 (카테고리 · 상품) ----- */
.order-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.link { color: var(--brand); font-weight: 700; }
.panel-head { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fafafd; font-size: 15px; }
.cat-tabs { padding: 12px 20px 0; }
.panel-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 260px; }
.cat-list { border-right: 1px solid var(--line); padding: 6px 0; max-height: 460px; overflow: auto; }
.cat-group { padding: 10px 18px 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); background: #f6f6fa; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 4px; }
.cat-group:first-child { margin-top: 0; border-top: 0; }
.cat { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; text-align: left; background: none; border: 0; border-left: 3px solid transparent; padding: 11px 16px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.cat:hover { background: #f8f7ff; }
.cat.active { background: var(--brand-50); color: var(--brand); border-left-color: var(--brand); }
.svc-list { padding: 6px 0; max-height: 460px; overflow: auto; }
.svc { display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; border-bottom: 1px solid #f3f3f7; }
.svc:hover { background: #fafaff; }
.svc.active { background: var(--brand-50); }
.svc.active .svc-name { color: var(--brand); }
.svc.off { opacity: .55; }
.svc-name { flex: 1; font-weight: 600; font-size: 14px; }
.svc-price { font-weight: 800; color: var(--brand); white-space: nowrap; font-size: 14.5px; }
.svc-price small { color: var(--muted); font-weight: 500; font-size: 11.5px; margin-left: 1px; }
.fav { background: none; border: 0; font-size: 18px; color: #c9c7d6; padding: 0 2px; line-height: 1; }
.fav.on, .fav:hover { color: #ffb800; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 6px; margin-left: 6px; background: #eef4ff; color: #3538cd; vertical-align: 1px; }
.tag-off { background: #fef3f2; color: var(--err); }
.b-best { background: #fff1f4; color: var(--accent); }
.b-hot { background: #fff4ed; color: #e8590c; }
.b-new { background: #ecfdf3; color: #027a48; }

.info-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.info-head h3 { margin: 0; font-size: 18px; }
.info-tabs { display: flex; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.info-tabs button { flex: 1; background: none; border: 0; padding: 12px 6px; font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; }
.info-tabs button.active { color: var(--brand); border-bottom-color: var(--brand); }
.chip-fast { background: #ecfdf3; border-color: #c7f0d8; color: #027a48; }
.chip-slow { background: #fffaeb; border-color: #fde7c2; color: #b54708; }
.chip-review { background: #eef4ff; border-color: #d4e0ff; color: #3538cd; }
.notice-box { background: #f5f8ff; border: 1px solid #dbe5ff; border-radius: 10px; padding: 12px 14px; font-size: 13.5px; white-space: pre-line; color: var(--ink-2); }
.stars { color: #ffb800; letter-spacing: 1px; }
.stars .muted { color: #dedde6; }
.review { border-bottom: 1px solid var(--line); padding: 10px 0; }
.review:last-child { border-bottom: 0; }
.review p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); white-space: pre-line; }
.logs { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.9; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rate-pick { display: flex; gap: 4px; flex-direction: row-reverse; justify-content: flex-end; }
.rate-pick input { display: none; }
.rate-pick span { font-size: 30px; color: #dedde6; cursor: pointer; }
.rate-pick input:checked ~ span, .rate-pick label:has(input:checked) span, .rate-pick label:has(input:checked) ~ label span { color: #ffb800; }
.icon-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.icon-pick label { cursor: pointer; padding: 3px; border-radius: 12px; border: 2px solid transparent; }
.icon-pick label:has(input:checked) { border-color: var(--brand); }
.icon-pick input { display: none; }
.pi { border-radius: 23%; display: inline-block; flex: none; overflow: hidden; line-height: 0; }
.pi svg { width: 100%; height: 100%; display: block; }
.pi-img { background: #fff; }
.pi-img img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); display: grid; place-items: center; z-index: 90; padding: 20px; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; padding: 24px; }
/* 플랫폼 타일: 회색 둥근 사각형 안에 큰 로고, 아래에 이름, 우상단 +N 배지 */
.platform {
  border: 0; background: none; padding: 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer;
}
.platform .pt {
  position: relative; width: 100%; max-width: 104px; aspect-ratio: 1 / 1; border-radius: 20px;
  background: #f4f5f8; display: grid; place-items: center;
  transition: background .15s, box-shadow .15s, transform .15s;
}
.platform:hover .pt { background: #eceef3; transform: translateY(-1px); }
.platform.active .pt { background: var(--brand-50); box-shadow: inset 0 0 0 2px var(--brand); }
.platform.active .pname { color: var(--brand); font-weight: 700; }
.platform:focus-visible { outline: none; }
.platform:focus-visible .pt { box-shadow: 0 0 0 3px #c9c3ff; }
.platform .pi { width: 52% !important; height: auto !important; aspect-ratio: 1 / 1; filter: drop-shadow(0 1px 1.5px rgba(16, 24, 40, .12)); }
.pcnt {
  position: absolute; top: -6px; right: -6px; min-width: 26px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: #3b7cf6; color: #fff; font-size: 11.5px; font-weight: 800; line-height: 20px; text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-weight: 600; font-size: 14px; color: var(--ink-2);
}
.tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.service-list { display: grid; gap: 10px; }
.service {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; text-align: left; width: 100%; transition: border-color .15s, background .15s;
}
.service:hover { border-color: #d2cdfa; }
.service.active { border-color: var(--brand); background: var(--brand-50); }
.service .radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #cfcde0; flex: none; position: relative; }
.service.active .radio { border-color: var(--brand); }
.service.active .radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--brand); }
.service .s-name { flex: 1; font-weight: 600; font-size: 14.5px; }
.service .s-price { font-weight: 800; color: var(--brand); white-space: nowrap; font-size: 15px; }
.service .s-price small { color: var(--muted); font-weight: 500; font-size: 12px; margin-left: 2px; }
.badge {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; margin-left: 6px;
  background: #fff1f4; color: var(--accent); vertical-align: 1px;
}
.empty { padding: 40px 16px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line); border-radius: 12px; background: #fff; }

.detail { background: #fafaff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; white-space: pre-line; font-size: 14px; color: var(--ink-2); }
.detail-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.chip { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; }

/* ----- 폼 ----- */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: 14px; }
.input, .select, .textarea {
  width: 100%; height: 46px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 100px; padding: 12px 14px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.hint { font-size: 12.5px; color: var(--muted); }
.qty-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.qty-presets button { height: 30px; padding: 0 10px; border: 1px solid var(--line); background: #fff; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.qty-presets button:hover { border-color: var(--brand); color: var(--brand); }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; }
.check input { margin-top: 4px; accent-color: var(--brand); }

.summary { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 14px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); margin-bottom: 6px; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0 14px; }
.summary-total b { font-size: 26px; letter-spacing: -0.03em; color: var(--ink); }
.warn-box { background: #fff8eb; border: 1px solid #fde7c2; color: #93560a; padding: 10px 12px; border-radius: 10px; font-size: 13px; margin-bottom: 12px; }

/* ----- 특징 / 단계 / FAQ ----- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-size: 22px; margin-bottom: 14px; }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }
.how .n { font-size: 13px; font-weight: 800; color: var(--brand); }
.how h3 { margin: 6px 0; font-size: 16px; }
.how p { margin: 0; color: var(--muted); font-size: 14px; }

.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--brand); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 16px; color: var(--ink-2); font-size: 14.5px; white-space: pre-line; }

.cta-band { background: var(--ink); color: #fff; border-radius: 20px; padding: 36px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -0.03em; }
.cta-band p { margin: 0; opacity: .75; }

/* ----- 테이블 / 상태 ----- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap .table { min-width: 720px; }
.table td { white-space: nowrap; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fafafd; }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.link-cell { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.st-pending, .st-processing { background: #f2f4f7; color: #475467; }
.st-in_progress { background: #eef4ff; color: #3538cd; }
.st-completed, .st-approved { background: #ecfdf3; color: #027a48; }
.st-partial { background: #fffaeb; color: #b54708; }
.st-canceled, .st-error, .st-rejected { background: #fef3f2; color: #b42318; }

.page-head { padding: 36px 0 20px; }
.page-head h1 { margin: 0 0 4px; font-size: 28px; letter-spacing: -0.03em; }
.page-head p { margin: 0; color: var(--muted); }

.bank-box { background: linear-gradient(135deg, var(--brand), #7b5cff); color: #fff; border-radius: 14px; padding: 20px; }
.bank-box .acc { font-size: 22px; font-weight: 800; letter-spacing: 0; margin: 6px 0; }
.amount-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.amount-presets button { height: 38px; border: 1px solid var(--line); background: #fff; border-radius: 8px; font-weight: 600; font-size: 13.5px; }
.amount-presets button:hover { border-color: var(--brand); color: var(--brand); }
.seg { display: flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg label { flex: 1; text-align: center; padding: 10px 0; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink-2); border-right: 1px solid var(--line); }
.seg label:last-child { border-right: 0; }
.seg input { display: none; }
.seg input:checked + span { color: var(--brand); }
.seg label:has(input:checked) { background: var(--brand-50); }

.doc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; font-size: 14.5px; color: var(--ink-2); }
.doc h2 { font-size: 17px; color: var(--ink); margin: 28px 0 8px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { margin: 0 0 8px; }

/* ----- 인증 ----- */
.auth-wrap { max-width: 440px; margin: 48px auto; }
.auth-wrap h1 { font-size: 26px; margin: 0 0 6px; letter-spacing: -0.03em; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ----- 푸터 ----- */
.footer { background: #fff; border-top: 1px solid var(--line); margin-top: 56px; padding: 36px 0 48px; font-size: 13px; color: var(--muted); }
.footer-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-2); font-weight: 600; }
.footer .biz { line-height: 1.9; }
.footer .biz span:not(:last-child)::after { content: '|'; margin: 0 8px; color: #d0cfdb; }

/* ----- 토스트 / 모달 / 플로팅 ----- */
.toast-wrap { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); animation: up .25s ease; max-width: 90vw; }
.toast.err { background: var(--err); }
.toast.ok { background: #0f9f5c; }
@keyframes up { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.float-kakao {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%;
  background: #fee500; color: #3c1e1e; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); font-weight: 800; font-size: 12px;
}
.mobile-nav { display: none; }

/* ----- 반응형 ----- */
@media (max-width: 1000px) {
  .order-layout { grid-template-columns: 1fr; }
  .order-side { position: static; }
  .charge-layout .order-side { order: -1; }
  .panel-body { grid-template-columns: 1fr; }
  .cat-list { border-right: 0; border-bottom: 1px solid var(--line); max-height: 240px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .header .container { gap: 12px; justify-content: space-between; }
  .platforms { grid-template-columns: repeat(4, 1fr); gap: 14px 8px; }
  .platform { font-size: 12.5px; gap: 6px; }
  .platform .pt { border-radius: 16px; }
  .pcnt { top: -5px; right: -5px; min-width: 22px; height: 18px; line-height: 18px; font-size: 10.5px; padding: 0 5px; }
  .order-title { flex-direction: column; align-items: flex-start; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 60px; }
  .card-pad { padding: 18px; }
  .doc { padding: 20px; }
  .amount-presets { grid-template-columns: repeat(2, 1fr); }
  .mobile-nav.open {
    display: grid; position: fixed; top: var(--header-h); left: 0; right: 0; background: #fff; z-index: 49;
    border-bottom: 1px solid var(--line); padding: 8px 12px 14px; box-shadow: var(--shadow);
  }
  .mobile-nav a { padding: 12px 10px; font-weight: 600; border-radius: 8px; }
  .mobile-nav a:hover { background: var(--brand-50); }
  .balance-chip { font-size: 13px; padding: 5px 10px; }
  .header-right a[href="/mypage"] { display: none; }
  .header-right { margin-left: auto; }
  .logo { font-size: 17px; }
  .header-right .btn { height: 36px; padding: 0 12px; font-size: 13.5px; }
}

/* ===== 멀티 API 호환 추가분 (v9) ===== */
.tag-api { background: #f4ebff; color: #6941c6; }
.st-check { background: #f2f4f7; color: #344054; box-shadow: inset 0 0 0 1px #d0d5dd; }
.badge-warn, .badge-danger {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-left: 6px;
  vertical-align: 1px; white-space: nowrap;
}
.badge-warn { background: #fffaeb; color: #b54708; }
.badge-danger { background: #fef3f2; color: #b42318; }
.req { color: var(--err); font-weight: 700; }

/* 주문 폼: 줄 수 카운터 · 기간 계산 */
.line-count { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.line-count.ok { color: #027a48; }
.line-count.bad { color: var(--err); }
.calc-box {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 10px; padding: 10px 14px;
  font-size: 13.5px; color: var(--ink-2); margin-bottom: 14px;
}
.calc-box b { color: var(--brand); font-size: 15px; }

/* API 문서 */
.api-head .api-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--brand); background: var(--brand-50);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 8px;
}
.api-head p { max-width: 680px; }
.api-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.api-side { position: sticky; top: calc(var(--header-h) + 16px); }
.api-nav { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.api-nav button {
  text-align: left; background: none; border: 0; border-radius: 8px; padding: 9px 12px; font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: background .15s, color .15s;
}
.api-nav button.sub { padding-left: 22px; font-weight: 500; font-size: 13.5px; }
.api-nav button:hover { background: #f8f7ff; }
.api-nav button.active { background: var(--brand-50); color: var(--brand); font-weight: 700; }
.api-grp { font-size: 12px; font-weight: 700; color: var(--muted); padding: 10px 12px 4px; text-transform: uppercase; letter-spacing: .02em; }
.api-main { display: grid; gap: 18px; min-width: 0; }
.api-sec { scroll-margin-top: calc(var(--header-h) + 16px); min-width: 0; }
.api-sec h2 { margin: 0 0 6px; font-size: 20px; letter-spacing: -0.03em; }
.api-desc { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.api-h3 { font-size: 15px; margin: 20px 0 8px; }
.api-sec code, .doc code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; background: #f4f3fa; color: #4a3be0; padding: 1px 6px; border-radius: 6px; }
.ptable { width: 100%; border-collapse: collapse; font-size: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.ptable th { text-align: left; background: #fafafd; color: var(--muted); font-weight: 600; font-size: 13px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.ptable td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.ptable tr:last-child td { border-bottom: 0; }
.ptable td:first-child { width: 34%; white-space: nowrap; }
.api-sec .table-wrap .ptable { min-width: 0; }
.base-url { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; word-break: break-all; }
.api-notes { margin: 4px 0 16px; padding-left: 18px; font-size: 14px; color: var(--ink-2); line-height: 1.9; }
.api-ex-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.code { background: #16151d; border-radius: 12px; overflow: hidden; margin-bottom: 12px; min-width: 0; }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: #23212d; color: #b9b6c9; font-size: 12px; font-weight: 600; }
.code-copy { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #e9e7f3; border-radius: 6px; font-size: 12px; padding: 2px 10px; }
.code-copy:hover { background: rgba(255, 255, 255, .16); }
.code pre { margin: 0; padding: 14px 16px; color: #e9e7f3; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.6; overflow-x: auto; white-space: pre; }
.api-tabs .tab { height: 32px; padding: 0 12px; font-size: 13px; }
.api-type-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.api-type-head b { font-size: 16px; }
.api-pp { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; color: var(--muted); }

/* API 키 관리 */
.key-card { background: #fafafd; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.key-card .summary-row { align-items: center; }
.key-card .summary-row:last-child { margin-bottom: 0; }
.key-hint { letter-spacing: .04em; }
.key-reveal { margin-top: 14px; background: #ecfdf3; border: 1px solid #abefc6; border-radius: 12px; padding: 14px 16px; color: #05603a; }
.key-line { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.key-line code { flex: 1; min-width: 0; word-break: break-all; background: #fff !important; color: var(--ink) !important; border: 1px solid #abefc6; padding: 8px 10px !important; font-size: 13px !important; }
.key-login { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 12px; padding: 16px 18px; }
.key-login-ic { width: 44px; height: 44px; border-radius: 12px; background: #fff; display: grid; place-items: center; font-size: 22px; flex: none; }

@media (max-width: 1100px) {
  .nav a { padding: 8px 9px; font-size: 14px; }
}
@media (max-width: 1000px) {
  .api-layout { grid-template-columns: 1fr; gap: 14px; }
  .api-side { top: var(--header-h); z-index: 20; margin: 0 -20px; }
  .api-nav { flex-direction: row; overflow-x: auto; border-radius: 0; border-left: 0; border-right: 0; padding: 8px 12px; gap: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .api-nav::-webkit-scrollbar { display: none; }
  .api-nav button, .api-nav button.sub { flex: none; padding: 7px 12px; font-size: 13.5px; white-space: nowrap; border-radius: 999px; }
  .api-grp { display: none; }
  .api-sec { scroll-margin-top: calc(var(--header-h) + 64px); }
  .api-ex-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .api-side { margin: 0 -20px; }
  .ptable td:first-child { width: auto; }
  .ptable th, .ptable td { padding: 9px 10px; font-size: 13px; }
  .api-sec h2 { font-size: 18px; }
}.calc-err { color: var(--err); font-weight: 600; }

/* ----- 홈: 실제 이용 후기 ----- */
.rv-wrap { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.rv-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.rv-score { display: flex; align-items: center; gap: 8px; background: #f8f8fc; border-radius: 12px; padding: 10px 14px; }
.rv-score b { font-size: 24px; font-weight: 800; }
.rv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rv-card { border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; background: #fff; transition: box-shadow .15s, transform .15s; }
.rv-card:hover { box-shadow: 0 8px 24px rgba(16, 24, 40, .06); transform: translateY(-1px); }
.rv-head { display: flex; align-items: center; gap: 12px; }
.rv-avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 17px; background: linear-gradient(135deg, #3b7cf6, #1d4ed8); }
.rv-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rv-who b { font-size: 15px; }
.rv-svc { font-size: 13px; color: #2f6fe4; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-stars { color: #ffb800; letter-spacing: 1px; font-size: 15px; white-space: nowrap; }
.rv-stars .off { color: #e3e3ea; }
.rv-body { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ink-2); white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.rv-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; margin-top: auto; }
.rv-chip { background: #ecfdf3; color: #027a48; font-weight: 700; border-radius: 999px; padding: 3px 9px; }
@media (max-width: 720px) {
  .rv-wrap { padding: 20px 16px; border-radius: 16px; }
  .rv-grid { grid-template-columns: 1fr; gap: 12px; }
  .rv-card { padding: 18px; }
}
/* 제목이 글자 중간에서 줄바꿈되지 않게 */
.hero h1, .hero .lead, .section-title { word-break: keep-all; }

/* 오픈 준비 안내 띠 (사업자 정보 미입력) */
.site-notice { background: #fff4e5; color: #8a4b00; border-bottom: 1px solid #f3d3a6; text-align: center; padding: 10px 16px; font-size: 14px; font-weight: 600; }
.privacy-summary { background: var(--bg-2, #f6f6fa); border: 1px solid var(--line, #e6e6ee); border-radius: 10px; padding: 10px 12px; margin: 6px 0 0 26px; font-size: 12px; line-height: 1.6; }
.privacy-summary table { width: 100%; border-collapse: collapse; }
.privacy-summary th, .privacy-summary td { text-align: left; padding: 2px 4px; vertical-align: top; }

/* 하단 사업자 정보 접기 */
.biz-fold { width: 100%; }
.biz-fold summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 400; color: #b4b2c0; }
.biz-fold summary::-webkit-details-marker { display: none; }
.biz-fold summary::after { content: '▾'; font-size: 10px; transition: transform .15s; }
.biz-fold[open] summary::after { transform: rotate(180deg); }
.biz-fold .biz-items { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 6px; font-size: 11.5px; color: #a3a1b0; }