:root {
  --navy: #1F3864; --navy2: #2c4a7c; --ink: #1d2433; --muted: #667085; --line: #e4e7ec; --bg: #f6f7f9;
  --red: #C0392B; --green: #2E7D32; --orange: #B8691A; --card: #fff; --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'Pretendard', 'Malgun Gothic', sans-serif; color: var(--ink); background: var(--bg); line-height: 1.55; }
a { color: var(--navy); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
header.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
header.top .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { font-weight: 800; font-size: 20px; color: var(--navy); text-decoration: none; letter-spacing: -.3px; white-space: nowrap; flex-shrink: 0; }
.logo span { color: var(--red); }
nav a { color: var(--ink); text-decoration: none; margin-right: 18px; font-size: 15px; }
nav a:hover { color: var(--navy); }
.btn { display: inline-block; border: 0; border-radius: 10px; padding: 12px 22px; font-size: 16px; font-weight: 700;
       cursor: pointer; text-decoration: none; background: var(--navy); color: #fff; font-family: inherit; }
.btn:hover { background: var(--navy2); }
.btn.red { background: var(--red); color: #fff; } .btn.red:hover { background: #a93226; color: #fff; }
.btn.ghost { background: #fff; color: var(--navy); border: 1px solid var(--navy); }
.btn.sm { padding: 7px 12px; font-size: 13px; }
.btn:disabled, .btn.red:disabled { background: #b9c0cc; color: #fff; cursor: not-allowed; }
.hero { background: linear-gradient(135deg, #1F3864 0%, #2c4a7c 60%, #3d5f96 100%); color: #fff; padding: 64px 0 56px; }
.brand-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0 0 18px; }
.brand-name { font-size: 30px; font-weight: 800; letter-spacing: -.5px; color: #fff; }
.brand-name span { color: #ffd27a; }
.brand-ko { font-size: 16px; font-weight: 700; opacity: .85; }
.brand-origin { font-size: 14px; opacity: .8; border-left: 1px solid rgba(255,255,255,.35); padding-left: 12px; }
.brand-origin i { font-style: italic; font-weight: 700; opacity: 1; }
.hero h1, .hero p, .brand-origin { word-break: keep-all; }
.hero h1 { font-size: 38px; line-height: 1.3; margin: 0 0 14px; letter-spacing: -.8px; }
.hero h1 em { font-style: normal; color: #ffd27a; }
.hero p { font-size: 18px; opacity: .92; margin: 0 0 26px; max-width: 720px; }
.hero .btn { background: #fff; color: var(--navy); } .hero .btn:hover { background: #f1f4fa; }
section { padding: 48px 0; }
h2 { font-size: 26px; margin: 0 0 18px; letter-spacing: -.4px; color: var(--navy); }
h3 { margin: 0 0 8px; }
.grid { display: grid; gap: 16px; }
.g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } .g2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.card .num { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff;
             align-items: center; justify-content: center; font-weight: 800; margin-bottom: 8px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .red { color: var(--red); } .green { color: var(--green); }
table.t { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
table.t th { background: var(--navy); color: #fff; font-weight: 700; padding: 10px; font-size: 14px; text-align: left; }
table.t td { padding: 9px 10px; border-top: 1px solid var(--line); font-size: 14px; }
table.t td.r, table.t th.r { text-align: right; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 12px; font-weight: 700; }
.b1 { background: #E3F1D8; color: #3A7D2C; } .b2 { background: #E1EBF7; color: #2F5E9E; } .b3 { background: #FCEBD5; color: #B8691A; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 13px; background: #eef1f6; margin: 3px; }
footer { background: #fff; border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 13px; }
footer .links a { margin-right: 14px; color: var(--ink); }
/* 주문 */
.steps { display: flex; gap: 8px; margin: 26px 0 18px; }
.steps div { flex: 1; text-align: center; padding: 9px; border-radius: 8px; background: #e9edf4; color: var(--muted); font-size: 14px; font-weight: 700; }
.steps div.on { background: var(--navy); color: #fff; }
.drop { display: block; border: 2px dashed #9fb0cc; border-radius: var(--radius); background: #fff; padding: 34px; text-align: center; cursor: pointer; transition: .15s; }
.drop.over { border-color: var(--navy); background: #eef3fb; }
.drop b { font-size: 18px; color: var(--navy); }
.flist { margin-top: 14px; }
.frow { display: grid; grid-template-columns: 1fr 110px 170px 110px 120px 32px; gap: 10px; align-items: center;
        background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; margin-bottom: 8px; font-size: 14px; }
.frow .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frow .x { background: none; border: 0; font-size: 18px; color: #98a2b3; cursor: pointer; }
.frow .x:hover { color: var(--red); }
.frow.blocked { background: #fff6f4; border-color: #f0c2bb; }
.frow .err { grid-column: 1 / -1; color: var(--red); font-size: 13px; }
.bar { height: 6px; background: #e9edf4; border-radius: 3px; overflow: hidden; margin-top: 5px; }
.bar i { display: block; height: 6px; background: var(--navy); width: 0; transition: width .3s; }
.sum { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.sum table { width: 100%; } .sum td { padding: 4px 0; } .sum td.r { text-align: right; }
.sum .total td { font-size: 20px; font-weight: 800; color: var(--navy); border-top: 1px solid var(--line); padding-top: 10px; }
.opt { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.opt label { display: block; border: 2px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; background: #fff; font-size: 13px; }
.opt label b { display: block; font-size: 15px; margin-bottom: 4px; color: var(--ink); }
.opt input { display: none; }
.opt label.sel { border-color: var(--navy); background: #f1f5fc; }
.form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 16px; }
.form label { font-size: 14px; font-weight: 700; display: block; margin-bottom: 4px; }
.form input[type=text], .form input[type=email], .form input[type=tel], select {
  width: 100%; padding: 10px 12px; border: 1px solid #cfd5df; border-radius: 8px; font-size: 15px; font-family: inherit; background: #fff; }
.agree { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.agree label { display: block; margin: 6px 0; font-size: 14px; cursor: pointer; }
.agree a { font-size: 13px; }
.note { background: #fff8ec; border: 1px solid #f0c27a; border-radius: 10px; padding: 12px 16px; font-size: 14px; color: #5a4210; }
.pay { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.hide { display: none !important; }
.toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); background: #1d2433; color: #fff;
         padding: 12px 18px; border-radius: 10px; font-size: 14px; z-index: 50; max-width: 90vw; }
.state { font-weight: 700; } .state.done { color: var(--green); } .state.failed { color: var(--red); }
/* 머리 — 회원 */
.toplink { color: var(--ink); text-decoration: none; font-size: 14px; white-space: nowrap; }
.toplink.strong { font-weight: 700; color: var(--red); }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
form.inline { display: inline; margin: 0; }
header.top .wrap { gap: 14px; }
.credit-pill { background: #eef3fb; color: var(--navy); border-radius: 20px; padding: 5px 12px; font-weight: 800; font-size: 14px;
               text-decoration: none; white-space: nowrap; }
.credit-pill small { font-weight: 600; font-size: 11px; }
.btn.block { display: block; width: 100%; text-align: center; }
.full { grid-column: 1 / -1; }
.nowrap { white-space: nowrap; }
.narrow { max-width: 760px; }
.errbox { background: #fff1ef; border: 1px solid #f0c2bb; color: var(--red); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: 14px; }
.okbox { background: #eef8ef; border: 1px solid #b9dfbd; color: var(--green); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: 14px; }
.authform label { font-size: 14px; font-weight: 700; display: block; margin-bottom: 4px; }
.authform input[type=text], .authform input[type=email], .authform input[type=password], .authform input[type=tel], .pkg input[type=number] {
  width: 100%; padding: 10px 12px; border: 1px solid #cfd5df; border-radius: 8px; font-size: 15px; font-family: inherit; background: #fff; }
.kind-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.kind-tabs label { border: 2px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; font-size: 15px; margin: 0; }
.kind-tabs label.sel { border-color: var(--navy); background: #f1f5fc; }
.kind-tabs input { margin-right: 6px; }
.authform .k-b { display: none; } .authform.is-biz .k-b { display: inline; } .authform.is-biz .k-p { display: none; }
.bizbox { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.bizbox h3 { font-size: 16px; }
.promo-strip { background: linear-gradient(90deg, #fff4e5, #ffe9ec); border: 1px solid #f6c9a0; color: #7a3b10; border-radius: 10px;
               padding: 10px 14px; margin-bottom: 14px; font-size: 14px; }
.promo-strip b { color: var(--red); }
/* 가입 할인 광고창 */
.promo-back { position: fixed; inset: 0; background: rgba(15, 23, 42, .55); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.promo-card { position: relative; width: 100%; max-width: 400px; background: #fff; border-radius: 18px; overflow: hidden;
              box-shadow: 0 24px 60px rgba(0,0,0,.35); animation: pop .25s ease-out; }
@keyframes pop { from { transform: translateY(14px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.promo-x { position: absolute; right: 10px; top: 6px; background: none; border: 0; color: #fff; font-size: 28px; cursor: pointer; z-index: 2; line-height: 1; }
.promo-top { background: linear-gradient(135deg, #C0392B 0%, #e2574c 55%, #f39c5a 100%); color: #fff; text-align: center; padding: 24px 16px 18px; }
.promo-tag { display: inline-block; background: rgba(255,255,255,.2); border-radius: 12px; padding: 3px 12px; font-size: 13px; font-weight: 700; }
.promo-big { font-size: 64px; font-weight: 900; line-height: 1; margin-top: 8px; letter-spacing: -2px; }
.promo-big span { font-size: 84px; }
.promo-sub { font-size: 20px; font-weight: 800; margin-top: 2px; }
.promo-body { padding: 18px 22px 16px; }
.promo-body h3 { font-size: 21px; margin: 0 0 8px; text-align: center; }
.promo-body h3 em { font-style: normal; color: var(--red); }
.promo-body p { font-size: 14px; color: #475467; margin: 0 0 12px; text-align: center; }
.promo-t { width: 100%; font-size: 14px; margin-bottom: 14px; border-collapse: collapse; }
.promo-t td { padding: 4px 0; } .promo-t td.r { text-align: right; }
.promo-t tr.b td { border-top: 1px solid var(--line); padding-top: 8px; font-weight: 800; font-size: 17px; color: var(--navy); }
.promo-foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12px; margin-top: 12px; color: var(--muted); }
.promo-foot label { cursor: pointer; }
.hero-promo { display: inline-block; margin-left: 12px; color: #fff; text-decoration: none; font-size: 15px; padding: 11px 16px;
              border: 1px dashed rgba(255,255,255,.6); border-radius: 10px; }
.hero-promo b { color: #ffd27a; margin-right: 6px; }
/* 가격표 — 업계 평균(회색, 참고)과 우리 가격(남색)이 섞여 보이지 않게 */
.save-banner { display: flex; gap: 22px; align-items: center; background: #fff; border: 2px solid var(--navy); border-radius: var(--radius);
               padding: 16px 22px; margin-bottom: 14px; }
.save-k { font-size: 14px; color: var(--muted); font-weight: 700; }
.save-v { font-size: 34px; font-weight: 900; color: var(--red); letter-spacing: -1px; line-height: 1.15; }
.save-note { font-size: 14px; color: #475467; border-left: 1px solid var(--line); padding-left: 20px; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; margin-bottom: 10px; color: #475467; }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; }
.sw-mkt { background: #eceff3; border: 1px solid #c9ced6; } .sw-our { background: var(--navy); }
.tscroll { overflow-x: auto; }
table.ptable th span { font-weight: 400; font-size: 12px; opacity: .85; }
table.ptable th.mkt-h { background: #8a94a6; }
table.ptable th.our-h { background: #16294a; }
table.ptable td.mkt { background: #f3f5f8; color: #7b8494; }
table.ptable td.our { background: #eef3fb; color: var(--navy); font-size: 15px; }
table.ptable td.our b { font-weight: 800; }
.save { display: inline-block; background: #fdecea; color: var(--red); font-weight: 800; border-radius: 10px; padding: 2px 9px; font-size: 13px; white-space: nowrap; }
.fn { margin-top: 10px; line-height: 1.7; }
/* 크레딧 */
.card .bal { font-size: 30px; font-weight: 900; color: var(--navy); letter-spacing: -.5px; margin: 2px 0 8px; }
.bal small { font-size: 14px; font-weight: 700; }
.pkgs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pkg { display: block; border: 2px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; background: #fff; }
.pkg.sel { border-color: var(--red); background: #fff7f5; }
.pkg input[type=radio] { display: none; }
.pkg .pc { font-size: 20px; font-weight: 900; color: var(--navy); } .pkg .pc small { font-size: 12px; }
.pkg .pp { font-size: 14px; margin-top: 4px; } .pkg .pd { font-size: 12px; color: var(--red); font-weight: 700; margin-top: 2px; }
.pkg input[type=number] { width: 70%; padding: 6px 8px; font-size: 14px; }
.loginbox { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border: 2px solid var(--navy); }
.loginbox h3 { margin-bottom: 4px; } .lb-btns { display: flex; gap: 8px; flex-wrap: wrap; }
/* 관리자 */
.admin-nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.admin-nav a { padding: 7px 14px; border-radius: 8px; background: #e9edf4; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; }
.admin-nav a.on { background: var(--navy); color: #fff; }
.admin-nav span { margin-left: auto; }

/* 링크로 보내기 */
.linkbox { display: flex; gap: 8px; margin-top: 12px; }
.linkbox input { flex: 1; min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 15px; }
.linkbox .btn { white-space: nowrap; }
@media (max-width: 820px) {
  .linkbox { flex-direction: column; }
  .brand-name { font-size: 26px; } .brand-origin { border-left: 0; padding-left: 0; flex-basis: 100%; }
  .g3, .g4, .opt, .form, .g2 { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 1fr 1fr; } .hero h1 { font-size: 28px; }
  header.top nav { display: none; }
  header.top .wrap { gap: 8px; } .toplink { font-size: 13px; } header.top .btn.sm { display: none; }
  .m-hide { display: none; }
  .save-banner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .save-note { border-left: 0; padding-left: 0; }
  .hero-promo { margin: 12px 0 0; }
  .pkgs { grid-template-columns: 1fr; }
  table.ptable td, table.ptable th { padding: 8px 6px; font-size: 13px; }
  table.ptable td.our { font-size: 14px; }
  .save { padding: 2px 6px; font-size: 12px; }
  /* 좁은 화면: 단계 표시는 작게, 낱말 중간에서 끊지 않게 */
  .steps { gap: 5px; } .steps div { font-size: 12px; padding: 7px 3px; word-break: keep-all; line-height: 1.35; }
  /* 내역 표(가격표 말고)는 표만 옆으로 밀어 본다 — 칸이 눌려 글자가 한 자씩 떨어지지 않게 */
  table.t:not(.ptable) { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  /* 머리줄 회사·이름이 길면 말줄임 */
  header.top .toplink { max-width: 30vw; overflow: hidden; text-overflow: ellipsis; }
  header.top .wrap { gap: 6px; padding: 0 12px; }
  .credit-pill { padding: 4px 8px; font-size: 13px; }
  h2 { word-break: keep-all; }
}
.sum td.r { white-space: nowrap; }
.sum td { word-break: keep-all; }
table.ptable td.r { white-space: nowrap; }
