/* =========================================================================
   결제 페이지 (service/myip/myip_buy_u.php …) — index_new.php 디자인
   _head.php(기존 common.css/default.css)를 쓰는 페이지라 토큰·초기화를 .yb 안에만 둡니다.
   표·입력 요소의 구조는 결제 스크립트가 직접 찾기 때문에 바꾸지 않고, 모양만 덮어씁니다.
   ========================================================================= */
.yb {
  --ink: #14171c; --ink-2: #3d434d; --ink-3: #5f6672;
  --line: #e2e5ea; --line-2: #c9ced6; --surface: #f2f4f7; --white: #fff;
  --blue: #1a64e0; --blue-ink: #1450b8; --blue-soft: #eaf1fd;
  --sky: #d9eefb; --butter: #fff2b8; --mint: #dcf3e8; --yellow: #ffd80a;
  --red: #e5484d; --point: #7a5af8;
  --ease: cubic-bezier(.16, 1, .3, 1);

  clear: both; width: 100%; padding: 32px 0 8px; background: var(--surface);
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
  font-size: 15px; line-height: 1.55; letter-spacing: -0.01em; color: var(--ink);
  text-align: left; word-break: keep-all; -webkit-font-smoothing: antialiased;
}
.yb *, .yb *::before, .yb *::after { box-sizing: border-box; font-family: inherit; }
.yb :where(h1, h2, h3, p, ul, ol, li, dl, dt, dd, form, fieldset) { margin: 0; padding: 0; list-style: none; border: 0; float: none; }
.yb a { color: inherit; text-decoration: none; }
.yb :focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
.yb input, .yb select, .yb button { font: inherit; color: var(--ink); }
.yb-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; width: 100%; max-width: 1260px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.yb-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* 공통 버튼 */
.yb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: background-color .2s, border-color .2s; }
.yb-btn--line { border: 1.5px solid var(--ink); background: #fff; }
.yb-btn--line:hover { background: var(--surface); }
.yb-btn--yellow { background: var(--yellow); }
.yb-btn--yellow:hover { background: #f5cc00; }
.yb-btn--soft { background: var(--surface); border: 1px solid var(--line); }
.yb-btn--soft:hover { background: #e7eaef; }
.yb-btn--sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.yb-off { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: #12b76a; color: #fff; font-size: 11px; font-weight: 800; }

/* ---------- 왼쪽 결제 메뉴 ---------- */
.yb-nav { align-self: start; position: sticky; top: 96px; display: flex; flex-direction: column; gap: 12px; }
.yb-nav__mode { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.yb-nav__mode a { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2px 4px; min-height: 40px; padding: 4px 6px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--ink-3); text-align: center; }
.yb-nav__mode a[aria-current] { background: var(--ink); color: #fff; }
.yb-nav__mode .yb-off { height: 18px; font-size: 10px; }
.yb-nav__list, .yb-nav__sub { padding: 8px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.yb-nav__list a, .yb-nav__sub a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 12px; border-radius: 12px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.yb-nav__list a::after, .yb-nav__sub a::after { content: ""; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .5; }
.yb-nav__list a:hover, .yb-nav__sub a:hover { background: var(--surface); color: var(--ink); }
.yb-nav__list a[aria-current] { background: var(--blue-soft); color: var(--blue-ink); }
.yb-nav__sub a[aria-current] { background: var(--blue-soft); color: var(--blue-ink); }
.yb-nav__sub a { min-height: 38px; font-size: 13px; font-weight: 600; color: var(--ink-3); }

/* ---------- 타이틀 ---------- */
.yb-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px 20px; padding: 26px 28px; border-radius: 24px; background: var(--sky); }
.yb-head__crumb { font-size: 13px; font-weight: 700; color: var(--blue-ink); }
.yb-head__title { margin-top: 4px !important; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.25; }
.yb-head__links { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 카드 ---------- */
.yb-card { padding: 24px; border-radius: 24px; background: #fff; border: 1px solid var(--line); }
.yb-card__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; }
.yb-card__head h2, .yb-card__h { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.yb-card__h { margin-bottom: 14px !important; }
.yb-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.yb-stats li { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; background: var(--surface); font-size: 13px; color: var(--ink-2); }
.yb-stats b { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.yb-stats__coupon b { color: var(--red); }
.yb-stats__point b { color: var(--point); }

/* IP 추가하기 */
.yb-add { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 18px; padding: 14px 16px; border-radius: 18px; background: #e3f7f5; }
.yb-add__title { font-size: 16px; font-weight: 800; color: #0b6e69; }
.yb .yb-step { display: flex; align-items: center; gap: 8px; }
.yb .yb-step li { float: none; width: auto; height: auto; padding: 0; }
.yb .addIpAccount4 .btnPlusMinus div { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 20px; font-weight: 700; line-height: 1; cursor: pointer; user-select: none; }
.yb .addIpAccount4 .btnPlusMinus div:hover { border-color: var(--ink); }
.yb .addIpAccount4 .addEaInput input { width: 64px; height: 40px; padding: 0 8px; border-radius: 12px; border: 1px solid var(--line); background: #fff; text-align: center; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.yb .newAdd { display: inline-flex; align-items: center; justify-content: center; width: auto; height: 40px; padding: 0 20px; border-radius: 12px; background: #12b3ab; color: #fff; text-indent: 0; font-size: 14px; font-weight: 800; }
.yb .newAdd:hover { background: #0e9a93; }
.yb-add__help { flex: 1 1 220px; font-size: 13px; color: var(--ink-3); }

/* 일괄 처리 */
.yb-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 14px; }
.yb-tools__all { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; cursor: pointer; }
.yb-tools__days { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: 14px; color: var(--ink-2); }
.yb select { height: 36px; padding: 0 30px 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%235f6672' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 10px center / 12px no-repeat; -webkit-appearance: none; appearance: none; font-size: 14px; }
.yb input[type=checkbox], .yb input[type=radio] { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); vertical-align: middle; }
/* 표 바로 위에 붙는 일괄 처리 줄 (myip_buy_u.php) */
.yb-tools--bar { margin-top: 0; padding: 10px 16px; border: 1px solid var(--line); border-bottom: 0; border-radius: 16px 16px 0 0; background: var(--surface); }
.yb-tools--bar + .yb-table { border-radius: 0 0 16px 16px; }

/* ---------- 아이피 표 (table.myip myip_list — 원본 마크업) ---------- */
.yb-card--list { margin-top: -4px; }
.yb-table { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); }
.yb table.myip { width: 100%; min-width: 760px; border-collapse: collapse; border: 0; color: var(--ink); font-size: 14px; font-variant-numeric: tabular-nums; }
.yb table.myip thead { border: 0; }
.yb table.myip thead th { padding: 12px 8px; background: var(--surface); border: 0; border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: 12px; font-weight: 700; white-space: nowrap; }
.yb table.myip thead th img { vertical-align: -2px; }
.yb table.myip tbody { border: 0; }
.yb table.myip tbody td { padding: 10px 8px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 14px; background: #fff; }
.yb table.myip tbody td.strong { background: #fafbfc; font-weight: 700; }
.yb table.myip tbody tr:hover td { background: #f7f9fc; }
.yb table.myip tfoot .line1 td { padding: 12px 8px; border: 0; border-top: 2px solid var(--ink); background: #fff; font-weight: 800; font-size: 14px; }
.yb table.myip .ip_span { display: inline-block; width: auto; padding-left: 0; font-weight: 600; }
.yb table.myip .selectDays { height: 34px; min-width: 92px; font-size: 13px; }
.yb table.myip .good_use_point { width: 84px; height: 34px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line-2); text-align: right; font-size: 13px; }
.yb .ipChangeBtn, .yb .DelBtn, .yb .ChangeDelBtn { float: none; display: inline-flex; align-items: center; justify-content: center; width: auto; height: 30px; margin: 0; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; text-indent: 0; font-size: 12px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.yb .ipChangeBtn:hover, .yb .DelBtn:hover, .yb .ChangeDelBtn:hover { border-color: var(--ink); color: var(--ink); }
.yb .ipChangeBtn.reload_spangle, .yb .ChangeDelBtn.reload_spangle { opacity: .45; pointer-events: none; }
.yb .DelBtn { color: var(--red); }
.yb .coupon_text { margin-left: 4px; font-size: 12px; font-weight: 800; }

.yb-convert { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; padding: 12px 16px; border-radius: 14px; background: var(--butter); font-size: 13px; color: var(--ink-2); }
.yb-convert b { font-size: 14px; font-weight: 800; color: #c2410c; }
.yb-convert b::after { content: " ›"; }
.yb-confirm { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; padding: 12px 16px; border-radius: 14px; background: var(--surface); font-size: 14px; }
.yb-confirm strong { font-weight: 800; }
.yb-confirm i { margin: 0 6px; font-style: normal; color: var(--line-2); }
.yb-confirm span { font-weight: 800; color: var(--blue); }

/* ---------- 결제 내역 ---------- */
.yb-sum__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-radius: 18px; border: 1px solid var(--line); overflow: hidden; }
.yb-sum__grid dl { padding: 18px 20px; }
.yb-sum__detail { border-right: 1px solid var(--line); }
.yb-sum__grid dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 14px; color: var(--ink-2); }
.yb-sum__grid dt { font-weight: 500; }
.yb-sum__grid dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.yb-sum__grid dd li { display: inline; list-style: none; }
.yb-sum__total { color: var(--ink) !important; }
.yb-sum__total dt, .yb-sum__total dd { font-weight: 800 !important; }
.yb-sum__gap { margin-top: 10px; padding-top: 12px !important; border-top: 1px dashed var(--line); }
.yb-pt { color: var(--point); font-weight: 700; }
.yb-sum__pay { background: #fafbfc; }
.yb-sum__pay > div { font-size: 15px !important; }
.yb-sum__pay dd { font-weight: 800; }
.yb-sum__minus dd { color: var(--red); }
.yb-sum__last { margin-top: 12px; padding-top: 14px !important; border-top: 1px solid var(--line); color: var(--ink) !important; }
.yb-sum__last dt { font-weight: 800 !important; }
.yb-sum__last dd { font-size: clamp(26px, 3vw, 32px); font-weight: 800; letter-spacing: -0.03em; }
.yb-sum__save { margin-top: 4px !important; text-align: right; font-size: 13px; color: var(--ink-3); }
.yb-banner { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 12px; padding: 12px 16px; border-radius: 14px; background: var(--blue-soft); font-size: 14px; color: var(--ink-2); }
.yb-banner__tag { padding: 2px 8px; border-radius: 6px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 800; }
.yb-banner b { margin-left: auto; font-weight: 800; color: var(--blue-ink); }
.yb-banner b::after { content: " ›"; }

/* ---------- 결제 수단 · 버튼 ---------- */
.yb-notice-line { margin-bottom: 14px !important; padding: 10px 14px; border-radius: 12px; background: #e9f8f2; font-size: 14px; color: #067647; }
.yb-notice-line b { color: var(--ink); }
.yb-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.yb-method { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 18px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; font-size: 16px; font-weight: 800; cursor: pointer; transition: border-color .2s, background-color .2s; }
.yb-method:hover { border-color: var(--ink-3); }
.yb-method:has(input:checked) { border-color: var(--ink); background: var(--surface); }
.yb-method:has(input:disabled) { opacity: .55; cursor: default; }
.yb-paybar { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 0; }
.yb-paybtn { width: min(100%, 420px); min-height: 60px; border: 0; border-radius: 18px; background: var(--red); color: #fff !important; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; cursor: pointer; box-shadow: 0 14px 28px -16px rgba(229, 72, 77, .8); transition: transform .2s var(--ease), background-color .2s; }
.yb-paybtn:hover { background: #d63b40; transform: translateY(-1px); }
.yb-help { font-size: 13px; color: var(--ink-3); text-decoration: underline !important; text-underline-offset: 3px; }
.yb-attn { background: #fafbfc; }
.yb-attn p { margin-top: 6px !important; font-size: 13px; line-height: 1.7; color: var(--ink-3); }

/* --- 교체권 결제 (myip_ip_coupon_buy_u.php) --- */
.yb-headpoint { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: 999px; background: #fff; font-size: 13px; color: var(--ink-2); }
.yb-headpoint b { font-size: 15px; font-weight: 800; color: var(--point); font-variant-numeric: tabular-nums; }
.yb-tip { margin: 12px 0 16px !important; padding: 10px 14px; border-radius: 12px; background: var(--butter); font-size: 14px; color: var(--ink-2); }
.yb-tip b { color: var(--ink); }
.yb-tip a { font-weight: 700; color: var(--blue-ink); text-decoration: underline !important; text-underline-offset: 3px; }
.yb .yb-table--coupon table.myip { min-width: 600px; }
.yb .yb-table--coupon table.myip th, .yb .yb-table--coupon table.myip td { text-align: center; }
.yb .yb-table--coupon table.myip th:first-child, .yb .yb-table--coupon table.myip td:first-child { padding-left: 16px; }
.yb .yb-table--coupon .selectDays { min-width: 96px; }
.yb-sum__detail { padding: 18px 20px; }
.yb-sum__grid .yb-sum__detail dl { padding: 0; }
.yb-sum__trio { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-2); }
.yb-sum__trio li { display: block !important; padding: 4px 0; float: none; width: auto; height: auto; margin: 0; background: none; font-variant-numeric: tabular-nums; }
.yb-sum__values { text-align: right; }
.yb-sum__trio li:first-child { font-weight: 800; color: var(--ink); }

/* --- 지정금액 교체권 결제 (사용자 행 + 관리자 팝업) --- */
.yb [hidden] { display: none !important; }
.yb .yb-table--custom thead input[type=checkbox] { visibility: hidden; }
.yb .yb-custom-row td { background: #fffbea !important; }
.yb-custom-sel { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 800; }
.yb-tip--custom { background: var(--blue-soft); }
.yb-nav__admin { padding: 8px; border-radius: 18px; background: #fff; border: 1.5px dashed var(--red); }
.yb-adminbtn { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 40px; padding: 0 12px; border: 0; border-radius: 12px; background: #fdecec; font-size: 13px; font-weight: 800; color: #b42318 !important; cursor: pointer; }
.yb-adminbtn small { padding: 2px 6px; border-radius: 6px; background: var(--red); color: #fff; font-size: 10px; }
.yb-adminbtn:hover { background: #fbdcdc; }
.yb-btn--dark { border: 0; background: var(--ink); color: #fff !important; }
.yb-btn--dark:hover { background: #2a2f37; }
.yb-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.yb-modal__back { position: absolute; inset: 0; background: rgba(20, 23, 28, .5); }
.yb-modal__box { position: relative; width: min(100%, 620px); max-height: calc(100vh - 32px); overflow-y: auto; padding: 24px; border-radius: 24px; background: #fff; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .35); }
.yb-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.yb-modal__head h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.yb-modal__x { width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--surface); font-size: 22px; line-height: 1; cursor: pointer; }
.yb-modal__desc { margin-top: 8px !important; font-size: 13px; color: var(--ink-3); }
.yb-modal__form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 10px; margin-top: 16px !important; }
.yb-modal__form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.yb-modal__form input { height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); font-size: 15px; }
.yb-modal__msg { min-height: 20px; margin-top: 8px !important; font-size: 13px; }
.yb-modal__msg.is-ok { color: #067647; }
.yb-modal__msg.is-err { color: var(--red); }
.yb-modal__list { margin-top: 6px; border-radius: 14px; border: 1px solid var(--line); overflow-x: auto; }
.yb-modal__list table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 13px; }
.yb-modal__list th { padding: 10px; background: var(--surface); text-align: left; font-size: 12px; color: var(--ink-3); }
.yb-modal__list td { padding: 10px; border-top: 1px solid var(--line); }
.yb-modal__list td.num { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.yb-modal__del { height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; font-size: 12px; font-weight: 700; color: var(--red) !important; cursor: pointer; }
.yb-badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 800; }
.yb-badge.is-ready { background: var(--blue-soft); color: var(--blue-ink); }
.yb-badge.is-paid { background: #e9f8f2; color: #067647; }
@media (max-width: 560px) { .yb-modal__form { grid-template-columns: minmax(0, 1fr); } }

/* --- 내 서비스 조회 / 결제내역 / 회원정보 등 (기존 표·폼 마크업을 그대로 두고 모양만) --- */
.yb-profile { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px !important; }
.yb-profile > div { padding: 12px 14px; border-radius: 14px; background: var(--surface); }
.yb-profile dt { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.yb-profile dd { margin: 2px 0 0; font-size: 15px; font-weight: 700; color: var(--ink); word-break: break-all; }
.yb-leave { font-size: 13px; color: var(--ink-3); text-decoration: underline !important; text-underline-offset: 3px; }
.yb table.myIpList, .yb table.myIpAccount, .yb .yb-legacy table.myip_list, .yb .yb-legacy table.list, .yb .yb-legacy > table { width: 100%; min-width: 560px; border-collapse: collapse; border: 0; font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.yb table.myIpList th, .yb table.myIpAccount th, .yb .yb-legacy table th { padding: 12px 10px; background: var(--surface); border: 0; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--ink-3); white-space: nowrap; text-align: center; }
.yb table.myIpList td, .yb table.myIpAccount td, .yb .yb-legacy table td { padding: 11px 10px; border: 0; border-bottom: 1px solid var(--line); font-size: 14px; text-align: center; background: #fff; }
.yb table.myIpList tbody tr:last-child td, .yb table.myIpAccount tbody tr:last-child td { border-bottom: 0; }
.yb table.myIpList th span, .yb table.myIpList td span { float: none !important; margin: 0 6px 0 0 !important; }
.yb table.myIpAccount a { color: var(--blue-ink); font-weight: 700; text-decoration: underline !important; text-underline-offset: 3px; }
.yb table.myIpList td:empty::after { content: "-"; color: var(--line-2); }
.yb-empty { padding: 28px 12px !important; color: var(--ink-3) !important; }
.yb-note { margin-top: 12px !important; font-size: 13px; color: var(--ink-3); line-height: 1.7; }
.yb-note b, .yb-note strong { color: var(--ink-2); }
.yb-note .yb-warn { color: #b42318; font-weight: 700; }
@media (max-width: 760px) { .yb-profile { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --- MY서비스 바로가기 (guide/mypage.html) --- */
.yb-head__desc { font-size: 15px; color: var(--ink-2); }
.yb-login-note { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; padding: 16px 20px; background: var(--butter); border-color: transparent; }
.yb-login-note p { font-size: 14px; color: var(--ink-2); }
.yb-login-note div { display: flex; gap: 6px; }
.yb-golist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.yb-go { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 140px; padding: 22px; border-radius: 22px; background: var(--tone, #fff); transition: transform .2s var(--ease); }
.yb-go:hover { transform: translateY(-2px); }
.yb-go strong { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.yb-go span { font-size: 14px; color: var(--ink-2); }
.yb-go b { position: absolute; right: 20px; bottom: 16px; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 20px; }
.yb-go--sky { --tone: var(--sky); }
.yb-go--mint { --tone: var(--mint); }
.yb-go--butter { --tone: var(--butter); }
.yb-go--lilac { --tone: #ece7ff; }
@media (max-width: 900px) { .yb-golist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .yb-golist { grid-template-columns: minmax(0, 1fr); } .yb-go { min-height: 110px; } }

/* --- 세금계산서 발행안내 (guide/mytax.php) --- */
.yb-tax p { margin-top: 8px !important; font-size: 15px; color: var(--ink-2); line-height: 1.7; }
.yb-tax b { color: var(--ink); }
.yb-tax figure { margin: 14px 0 0; padding: 12px; border-radius: 16px; background: var(--surface); overflow-x: auto; }
.yb-tax figure img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 8px; }
.yb-tax__no { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-right: 6px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 15px; vertical-align: 2px; }
.yb-tax__imp { color: #b42318 !important; }
.yb-tax__more a, .yb-tax__steps a { color: var(--blue-ink); font-weight: 700; text-decoration: underline !important; text-underline-offset: 3px; }
.yb .yb-tax__steps { display: grid; gap: 18px; margin: 0; padding-left: 1.4em; list-style: decimal; font-size: 15px; }
.yb .yb-tax__steps li { list-style: decimal; }

/* --- 예전 마크업을 그대로 둔 영역 (.yb-legacy) — 고정 폭·float·색 글씨를 새 디자인에 맞춤 --- */
.yb-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.yb-seg a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.yb-seg a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.yb-legacy { overflow: hidden; }
.yb-legacy div, .yb-legacy table { max-width: 100% !important; }
.yb-legacy div[style*="width:731px"], .yb-legacy div[style*="width: 731px"] { width: auto !important; }
.yb-legacy table[width] { width: 100% !important; }
.yb-legacy > div, .yb-legacy div:has(> table) { overflow-x: auto; }
.yb-legacy p[style*="padding"] { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 22px 0 10px !important; margin: 0 !important; }
.yb-legacy p[style*="padding"] strong { font-size: 17px; font-weight: 800; letter-spacing: -0.03em; }
.yb-legacy span[style*="float"] { float: none !important; }
.yb-legacy .buttonWrap { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; }
.yb-legacy .buttonWrap:hover { background: #e7eaef; }
.yb-legacy b[style*="FA0305"], .yb-legacy b[style*="fa0305"] { display: inline-block; margin-top: 10px; font-size: 13px; color: #b42318 !important; }
.yb-legacy b[style*="3184cf"] { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--ink) !important; }
.yb-legacy ul { margin: 4px 0 0; padding: 0; font-size: 13px; color: var(--ink-3); line-height: 1.7; }
.yb-legacy div[style*="background-color:#05212d"], .yb-legacy div[style*="background-color:#2fb6bc"] { display: inline-flex !important; align-items: center; width: auto !important; height: auto !important; padding: 6px 14px !important; margin: 4px 0 12px !important; border-radius: 999px; background: var(--ink) !important; font-size: 13px; }
.yb-legacy div[style*="font-weight:bold; color:#000"] { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 18px 0 10px !important; font-size: 17px; font-weight: 800 !important; }

.yb-legacy input[type=text], .yb-legacy input[type=password], .yb-legacy input[type=email], .yb-legacy input[type=tel], .yb-legacy input:not([type]) { height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; font-size: 15px; max-width: 100%; }
.yb-legacy input[readonly] { background: var(--surface); color: var(--ink-3); }
.yb-legacy input:focus { outline: 3px solid var(--blue-soft); border-color: var(--blue); }
.yb-legacy div[style*="padding-top:50px"] { padding-top: 0 !important; }

/* --- 로그인·회원가입 (service/myip/login.php 등) --- */
.yb-auth { width: 100%; max-width: 520px; margin: 0 auto; padding: 0 16px; }
.yb-auth--wide { max-width: 860px; }
.yb-auth__card { padding: 36px; }
.yb-auth__title { margin-top: 4px !important; font-size: 30px; font-weight: 800; letter-spacing: -0.04em; }
.yb-auth__desc { margin-top: 6px !important; font-size: 15px; color: var(--ink-3); }
.yb-auth__form { display: grid; gap: 14px; margin-top: 24px !important; }
.yb-field { display: grid; gap: 6px; }
.yb-field span { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.yb-field input { height: 50px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line-2); background: #fff; font-size: 16px; }
.yb-field input:focus { outline: 3px solid var(--blue-soft); border-color: var(--blue); }
.yb-auth__captcha:empty { display: none; }
.yb-auth__captcha { font-size: 13px; color: var(--ink-3); }
.yb-auth__captcha input[type=text] { height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); }
.yb-auth__submit { width: 100%; margin-top: 4px; }
.yb-auth__links { display: grid; gap: 8px; margin-top: 22px !important; padding-top: 18px !important; border-top: 1px solid var(--line) !important; font-size: 14px; color: var(--ink-3); }
.yb-auth__links a { margin-left: 4px; font-weight: 800; color: var(--blue-ink); text-decoration: underline !important; text-underline-offset: 3px; }
@media (max-width: 560px) { .yb-auth__card { padding: 24px 20px; } }

.yb-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.yb-ipchk__ip dd { font-size: 20px !important; color: var(--blue-ink) !important; font-variant-numeric: tabular-nums; }
.yb-ipchk__form { display: flex; flex-wrap: wrap; gap: 8px; }
.yb-ipchk__form input { flex: 1 1 220px; height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line-2); font-size: 16px; }
.yb-ipchk__out:not(:empty) { margin-top: 16px; padding: 16px; border-radius: 14px; background: var(--surface); overflow-x: auto; }
.yb-ipchk__out pre { margin: 0; white-space: pre-wrap; word-break: break-all; font-family: ui-monospace, Consolas, monospace !important; font-size: 13px !important; }

/* --- 회원가입 단계·무료 테스트 유형 선택 --- */
.yb-progress { display: flex; gap: 8px; margin-bottom: 16px !important; counter-reset: st; }
.yb-progress li { flex: 1; display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--ink-3); counter-increment: st; }
.yb-progress li::before { content: counter(st); display: flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--surface); font-size: 13px; }
.yb-progress li[aria-current] { border-color: var(--ink); color: var(--ink); }
.yb-progress li[aria-current]::before { background: var(--ink); color: #fff; }
.yb-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.yb-pick__card { display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: 24px; background: #fff; border: 1px solid var(--line); }
.yb-pick__kind { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--surface); font-size: 12px; font-weight: 700; color: var(--ink-3); }
.yb-pick__card h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.04em; }
.yb-pick__card--red h2 { color: #b42318; }
.yb-pick__sub { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.yb-pick__card dl { display: grid; gap: 4px; margin: 6px 0 8px !important; padding: 14px !important; border-radius: 14px; background: var(--surface); font-size: 14px; }
.yb-pick__card dl div { display: flex; gap: 8px; }
.yb-pick__card dt { flex: none; width: 76px; font-weight: 800; }
.yb-pick__card dd { margin: 0; color: var(--ink-2); }
.yb .yb-pick__go { width: 100%; min-height: 54px; margin-top: 6px; border: 0; border-radius: 16px; font-size: 17px; font-weight: 800; color: #fff; cursor: pointer; transition: transform .2s var(--ease), filter .2s; }
.yb-pick__go:hover { transform: translateY(-1px); filter: brightness(1.05); }
.yb-pick__card--red .yb-pick__go { background: #d92d20; }
.yb-pick__card--ink .yb-pick__go { background: #344054; }
.yb-pick__tip { font-size: 13px; color: var(--ink-3); }
@media (max-width: 760px) { .yb-pick { grid-template-columns: minmax(0, 1fr); } .yb-progress li { font-size: 12px; padding: 10px; } }

.yb-reg-banner { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 20px; padding: 18px 22px; border-radius: 20px; background: var(--sky); }
.yb-reg-banner__tag { padding: 4px 10px; border-radius: 999px; background: #fdb022; font-size: 13px; font-weight: 800; color: var(--ink); }
.yb-reg-banner p { font-size: 16px; color: var(--ink-2); }
.yb-reg-banner b { font-weight: 800; color: var(--ink); }

/* =========================================================================
   반응형
   ========================================================================= */
@media (max-width: 1000px) {
  .yb-wrap { grid-template-columns: minmax(0, 1fr); }
  .yb-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .yb-nav__mode { flex: 1 1 100%; }
  .yb-nav__list, .yb-nav__sub { flex: 1 1 100%; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 6px; }
  .yb-nav__admin { flex: 1 1 100%; }
  .yb-nav__list li, .yb-nav__sub li { flex: none; }
  .yb-nav__list a::after, .yb-nav__sub a::after { display: none; }
  .yb-nav__list a, .yb-nav__sub a { min-height: 38px; white-space: nowrap; }
}
@media (max-width: 760px) {
  .yb { padding-top: 16px; }
  .yb-head { padding: 20px; }
  .yb-head__links { width: 100%; }
  .yb-head__links .yb-btn { flex: 1 1 auto; }
  .yb-card { padding: 18px 16px; border-radius: 20px; }
  .yb-tools__days { margin-left: 0; }
}

/* 좁은 화면: 아이피 표를 IP 한 개당 카드 한 장으로 (yb-table--stack, 표 마크업·스크립트는 그대로) */
@media (max-width: 640px) {
  .yb-tools--bar { border-bottom: 1px solid var(--line); border-radius: 16px; }
  .yb-tools--bar .yb-tools__days { width: 100%; justify-content: space-between; }
  .yb-tools--bar + .yb-table { margin-top: 10px; }
  .yb-table--stack { overflow: visible; border: 0; border-radius: 0; }
  .yb .yb-table--stack table.myip { display: block; min-width: 0; }
  .yb .yb-table--stack table.myip thead { display: none; }
  .yb .yb-table--stack table.myip tbody, .yb .yb-table--stack table.myip tfoot { display: block; }
  .yb .yb-table--stack table.myip tbody tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0 10px; margin-bottom: 10px; padding: 12px 14px 4px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
  .yb .yb-table--stack table.myip tbody tr:hover td { background: none; }
  .yb .yb-table--stack table.myip tbody td { display: block; padding: 0; border: 0; background: none !important; text-align: left !important; white-space: nowrap; }
  .yb .yb-table--stack table.myip tbody td:nth-of-type(2) .ip_span { font-size: 16px; font-weight: 800; }
  .yb .yb-table--stack table.myip tbody td:nth-of-type(n+4) { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 6px 0; border-top: 1px dashed var(--line); }
  .yb .yb-table--stack table.myip tbody td:nth-of-type(4) { margin-top: 10px; border-top: 1px solid var(--line); }
  .yb .yb-table--stack table.myip tbody td:nth-of-type(n+4)::before { margin-right: auto; padding-right: 12px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
  /* "0원", "+0" 처럼 숫자와 단위가 따로 나뉘어도 오른쪽에 붙어서 나오게 (이름표만 왼쪽) */
  .yb .yb-table--stack table.myip tbody td:nth-of-type(n+4), .yb .yb-table--stack table.myip tfoot .line1 td { justify-content: flex-end; gap: 0; }
  .yb .yb-table--stack table.myip tbody td:nth-of-type(4)::before { content: "남은기간"; }
  .yb .yb-table--stack table.myip tbody td:nth-of-type(5)::before { content: "기간연장"; }
  .yb .yb-table--stack table.myip tbody td:nth-of-type(6)::before { content: "상품금액"; }
  .yb .yb-table--stack table.myip tbody td:nth-of-type(7)::before { content: "포인트사용"; }
  .yb .yb-table--stack table.myip tbody td:nth-of-type(8)::before { content: "결제금액"; }
  .yb .yb-table--stack table.myip tbody td:nth-of-type(9)::before { content: "+포인트"; }
  .yb .yb-table--stack table.myip tbody td:nth-of-type(10) { justify-content: flex-end; min-height: 0; padding: 0; border-top: 0; font-size: 0; line-height: 0; } /* 비어 있으면(&nbsp;) 높이 0 */
  .yb .yb-table--stack table.myip tbody td:nth-of-type(10) > * { margin: 4px 0 8px; line-height: normal; }
  .yb .yb-table--stack table.myip tbody tr { padding-bottom: 8px; }
  .yb .yb-table--stack table.myip tbody td:only-of-type { grid-column: 1 / -1; padding: 8px 0; text-align: center !important; }
  .yb .yb-table--stack table.myip .selectDays { min-width: 120px; }
  .yb .yb-table--stack table.myip .good_use_point { width: 120px; }
  .yb .yb-table--stack table.myip tfoot .line1 { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 4px 14px; border-radius: 16px; background: var(--surface); }
  .yb .yb-table--stack table.myip tfoot .line1 td { display: flex; justify-content: space-between; grid-column: 1 / -1; padding: 6px 0; border: 0; background: none; text-align: left; }
  .yb .yb-table--stack table.myip tfoot .line1 td:nth-of-type(1) { padding-top: 10px; font-size: 15px; }
  .yb .yb-table--stack table.myip tfoot .line1 td:nth-of-type(6) { display: none; }
  .yb .yb-table--stack table.myip tfoot .line1 td:nth-of-type(n+2)::before { margin-right: auto; padding-right: 12px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
  .yb .yb-table--stack table.myip tfoot .line1 td:nth-of-type(1) { justify-content: flex-start; }
  .yb .yb-table--stack table.myip tfoot .line1 td:nth-of-type(2)::before { content: "상품금액"; }
  .yb .yb-table--stack table.myip tfoot .line1 td:nth-of-type(3)::before { content: "포인트사용"; }
  .yb .yb-table--stack table.myip tfoot .line1 td:nth-of-type(4)::before { content: "결제금액"; }
  .yb .yb-table--stack table.myip tfoot .line1 td:nth-of-type(5)::before { content: "+포인트"; }
  .yb-sum__grid { grid-template-columns: minmax(0, 1fr); }
  .yb-sum__detail { border-right: 0; border-bottom: 1px solid var(--line); }
  .yb-methods { grid-template-columns: minmax(0, 1fr); }
  .yb-banner b { margin-left: 0; }
}

/* ---------- 위로 / 결제 수단으로 바로 가기 플로팅 버튼 (myip_buy_u.php) ---------- */
.yb-jump { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 150; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-family: "Pretendard Variable", Pretendard, -apple-system, "Malgun Gothic", sans-serif; }
.yb-jump[hidden], .yb-jump__btn[hidden] { display: none !important; }
.yb-jump__btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 48px; min-width: 48px; margin: 0; padding: 0 16px; border: 1px solid #e2e5ea; border-radius: 999px; background: #fff; color: #14171c; font: inherit; font-size: 14px; font-weight: 700; letter-spacing: -0.01em; cursor: pointer; box-shadow: 0 10px 24px -12px rgba(20, 23, 28, .45); transition: transform .2s cubic-bezier(.16, 1, .3, 1), background-color .2s; }
.yb-jump__btn:hover { transform: translateY(-2px); }
.yb-jump__btn:focus-visible { outline: 3px solid #1a64e0; outline-offset: 3px; }
.yb-jump__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.yb-jump__btn--pay { border-color: #14171c; background: #14171c; color: #fff; }
.yb-jump__btn--pay:hover { background: #2b3038; }
@media (max-width: 760px) {
  .yb-jump { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .yb-jump__btn { height: 44px; padding: 0 14px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .yb-jump__btn { transition: none; } }

/* ---------- 결제 화면 상단 상품 탭 (include/yb_tabs.inc.php) — 왼쪽 결제 메뉴 대신 ---------- */
.yb-wrap--full { grid-template-columns: minmax(0, 1fr); max-width: 1100px; }
.yb-tabs { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; min-width: 0; max-width: 100%; }
.yb-tabs ul { display: flex; gap: 6px; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px; margin: -2px; }
.yb-tabs ul::-webkit-scrollbar { display: none; }
.yb-tabs li { flex: none; }
.yb-tabs a { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 700; color: var(--ink-2); white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.yb-tabs a:hover { border-color: var(--ink); color: var(--ink); }
.yb-tabs a[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.yb-tabs__links { display: flex; gap: 14px; font-size: 13px; }
.yb-tabs__links a { height: auto; padding: 0; border: 0; background: none; font-weight: 600; color: var(--ink-3); text-decoration: underline !important; text-underline-offset: 3px; }
.yb-tabs__links a:hover { color: var(--ink); }
@media (max-width: 760px) {
  .yb-tabs { flex-direction: column; align-items: stretch; }
  .yb-tabs ul { margin: -2px -16px; padding: 2px 16px; } /* 화면 끝까지 밀어서 보기 */
  .yb-tabs__links { justify-content: flex-end; }
}

/* ---------- 예전 결제 화면을 새 디자인으로 바꾸며 추가 (KT·프록시·유동) ---------- */
.yb-btn--key { border: 0; background: var(--ink); color: #fff !important; }
.yb-btn--key:hover { background: #000; }
.yb-add--pick { gap: 10px 12px; }
.yb-idpick { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.yb-idpick select, .yb-add--pick select { height: 40px; min-width: 140px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; font-size: 14px; }
/* 결제 내역: 계산 스크립트가 만드는 <li class="total|good|vat"> 에 이름표 */
.yb-sumlist { margin: 0; padding: 0; }
.yb-sumlist li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 14px; color: var(--ink-2); list-style: none; font-variant-numeric: tabular-nums; }
.yb-sumlist li::before { font-weight: 500; }
.yb-sumlist li.total { font-weight: 800; color: var(--ink); }
.yb-sumlist li.total::before { content: "합계 (VAT 포함)"; font-weight: 800; }
.yb-sumlist li.good::before { content: "상품 금액"; }
.yb-sumlist li.vat::before { content: "VAT(부가세)"; }
.yb-sum__msg { margin-top: 8px; font-size: 13px; color: var(--ink-3); text-align: right; }
.yb-sum__msg div { margin: 0 !important; }

/* 통신사(KT) 고정IP 표: 아이디 · 아이피 · 남은기간 · 기간연장 · 상품금액 · 할인금액 · 결제금액 · 삭제 */
@media (max-width: 640px) {
  .yb .yb-stack--kt table.myip tbody tr { grid-template-columns: minmax(0, 1fr) auto; }
  .yb .yb-stack--kt table.myip tbody td:nth-of-type(3) { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; min-height: 44px; margin-top: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
  .yb .yb-stack--kt table.myip tbody td:nth-of-type(4) { margin-top: 0; border-top: 1px dashed var(--line); }
  .yb .yb-stack--kt table.myip tbody td:nth-of-type(3)::before { content: "남은기간"; margin-right: auto; padding-right: 12px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
  .yb .yb-stack--kt table.myip tbody td:nth-of-type(4)::before { content: "기간연장"; }
  .yb .yb-stack--kt table.myip tbody td:nth-of-type(5)::before { content: "상품금액"; }
  .yb .yb-stack--kt table.myip tbody td:nth-of-type(6)::before { content: "할인금액"; }
  .yb .yb-stack--kt table.myip tbody td:nth-of-type(7)::before { content: "결제금액"; }
  .yb .yb-stack--kt table.myip tbody td:nth-of-type(8) { justify-content: flex-end; min-height: 0; padding: 0; border-top: 0; }
  .yb .yb-stack--kt table.myip tbody td:nth-of-type(8)::before { content: none; }
  .yb .yb-stack--kt table.myip tfoot .line1 td:nth-of-type(3)::before { content: "할인금액"; }
  .yb .yb-stack--kt table.myip tfoot .line1 td:nth-of-type(4)::before { content: "결제금액"; }
  .yb .yb-stack--kt table.myip tfoot .line1 td:nth-of-type(5) { display: none; }
  .yb .yb-stack--kt table.myip tfoot .line1 td:nth-of-type(6) { display: flex; }
}

/* 프록시 고정IP 표: 체크 · 아이피 · 포트 · IP교체 · 남은기간 · 기간연장 · 삭제, 아래 '최종 결정 내역' */
.yb .yb-stack--px table.myip tfoot .line2 ul { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.yb .yb-stack--px table.myip tfoot .line2 li { list-style: none; }
.yb .yb-stack--px table.myip tfoot .line2 li:first-child { font-weight: 800; }
.yb .yb-stack--px table.myip tfoot .line2 span { font-weight: 800; color: var(--blue); }
@media (max-width: 640px) {
  .yb .yb-stack--px table.myip tbody td:nth-of-type(3) { justify-self: end; color: var(--ink-3); font-size: 13px; }
  .yb .yb-stack--px table.myip tbody td:nth-of-type(3)::before { content: "포트 "; }
  .yb .yb-stack--px table.myip tbody td:nth-of-type(4)::before { content: "IP교체"; }
  .yb .yb-stack--px table.myip tbody td:nth-of-type(5)::before { content: "남은기간"; }
  .yb .yb-stack--px table.myip tbody td:nth-of-type(6)::before { content: "기간연장"; }
  .yb .yb-stack--px table.myip tbody td:nth-of-type(7) { justify-content: flex-end; min-height: 0; padding: 0; border-top: 0; }
  .yb .yb-stack--px table.myip tbody td:nth-of-type(7)::before { content: none; }
  .yb .yb-stack--px table.myip tfoot .line2 { display: block; padding: 12px 14px; border-radius: 16px; background: var(--surface); }
  .yb .yb-stack--px table.myip tfoot .line2 td { display: block; padding: 0; border: 0; background: none; text-align: left; }
}

/* 예전 IP 개수 입력(.addIpAccount2 등, common.css 의 배경 그림·고정 폭)을 새 디자인 스텝퍼로 */
.yb .addIpAccount2, .yb .addIpAccount3 { width: auto; height: auto; padding: 0; background: none; border: 0; }
.yb .addIpAccount2 li, .yb .addIpAccount3 li { float: none; width: auto; height: auto; padding: 0; margin: 0; }
.yb .addIpAccount2 .btnPlusMinus div, .yb .addIpAccount3 .btnPlusMinus div { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 20px; font-weight: 700; line-height: 1; cursor: pointer; }
.yb .addIpAccount2 .btnPlusMinus div:hover, .yb .addIpAccount3 .btnPlusMinus div:hover { border-color: var(--ink); }
.yb .addIpAccount2 .addEaInput input, .yb .addIpAccount3 .addEaInput input { width: 64px; height: 40px; padding: 0 8px; border-radius: 12px; border: 1px solid var(--line); background: #fff; text-align: center; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
/* 계산 스크립트가 '금액 : …', 'VAT : …' 처럼 이름을 직접 넣는 화면 → 이름표는 합계에만 */
.yb-sumlist--raw li.good::before, .yb-sumlist--raw li.vat::before { content: none; }
.yb-sumlist--raw li.good, .yb-sumlist--raw li.vat { justify-content: flex-end; }
.yb-sum__grid dl > .yb-sum__msg { display: block; } /* dl > div 의 좌우 배치 규칙에서 제외 */
.yb-sum__msg > span { display: block; text-align: right; }

/* VPN 유동IP: 상품 표(상품명 · 상품정보 · 결제 기간 · 종료일 · [결제항목에 추가]) + 확정된 결제 항목 표 */
.yb-dyn-add { display: none; }
.yb .yb-stack--dyn .TotalAddBtn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: #fff !important; font-size: 13px; font-weight: 700; white-space: nowrap; text-indent: 0; width: auto; height: auto; }
.yb .yb-stack--dynpay table.myip tbody:empty::after { content: "위에서 결제 기간을 고른 뒤 [결제항목에 추가]를 누르세요."; display: block; padding: 18px 10px; text-align: center; font-size: 14px; color: var(--ink-3); }
@media (max-width: 640px) {
  .yb-dyn-add { display: block; margin-top: 12px; }
  .yb-dyn-add .yb-btn { width: 100%; min-height: 48px; }
  .yb .yb-stack--dyn { overflow: visible; border: 0; }
  .yb .yb-stack--dyn table.myip { display: block; min-width: 0; }
  .yb .yb-stack--dyn table.myip thead { display: none; }
  .yb .yb-stack--dyn table.myip tbody { display: block; }
  .yb .yb-stack--dyn table.myip tbody tr { display: block; margin-bottom: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
  .yb .yb-stack--dyn table.myip tbody td { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border: 0; background: none !important; text-align: right !important; }
  .yb .yb-stack--dyn table.myip tbody td:nth-of-type(1) { font-size: 16px; font-weight: 800; justify-content: flex-start; }
  .yb .yb-stack--dyn table.myip tbody td:nth-of-type(2) { justify-content: flex-start; font-size: 13px; color: var(--ink-3); text-align: left !important; }
  .yb .yb-stack--dyn table.myip tbody td:nth-of-type(3) { border-top: 1px dashed var(--line); }
  .yb .yb-stack--dyn table.myip tbody td:nth-of-type(3)::before { content: "결제 기간"; font-size: 13px; font-weight: 600; color: var(--ink-3); }
  .yb .yb-stack--dyn table.myip tbody td:nth-of-type(4)::before { content: "종료일"; font-size: 13px; font-weight: 600; color: var(--ink-3); }
  .yb .yb-stack--dyn table.myip tbody td[rowspan] { display: none; } /* 휴대폰은 아래 [결제항목에 추가] 버튼 */
  .yb .yb-stack--dynpay { overflow: visible; border: 0; }
  .yb .yb-stack--dynpay table.myip { display: block; min-width: 0; }
  .yb .yb-stack--dynpay table.myip thead { display: none; }
  .yb .yb-stack--dynpay table.myip tbody { display: block; }
  .yb .yb-stack--dynpay table.myip tbody tr { display: block; margin-bottom: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
  .yb .yb-stack--dynpay table.myip tbody td { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border: 0; background: none !important; text-align: right !important; }
  .yb .yb-stack--dynpay table.myip tbody td:nth-of-type(1) { font-size: 16px; font-weight: 800; }
  .yb .yb-stack--dynpay table.myip tbody td:nth-of-type(n+2)::before { font-size: 13px; font-weight: 600; color: var(--ink-3); }
  .yb .yb-stack--dynpay table.myip tbody td:nth-of-type(2)::before { content: "결제기간"; }
  .yb .yb-stack--dynpay table.myip tbody td:nth-of-type(3)::before { content: "할인전"; }
  .yb .yb-stack--dynpay table.myip tbody td:nth-of-type(4)::before { content: "할인"; }
  .yb .yb-stack--dynpay table.myip tbody td:nth-of-type(5)::before { content: "결제금액"; }
  .yb .yb-stack--dynpay table.myip tbody td:nth-of-type(6) { justify-content: flex-end; }
  .yb .yb-stack--dynpay table.myip tbody td:nth-of-type(6)::before { content: none; }
}

/* 프록시 유동IP: 상품 한 줄(유동IP A) + 현재 만료일 안내 */
.yb-pdyn__row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; }
.yb-pdyn__name { font-size: 16px; font-weight: 800; }
.yb-pdyn__info { font-size: 13px; color: var(--ink-3); }
.yb-pdyn__pick { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-left: auto; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.yb-pdyn__pick select { height: 40px; min-width: 160px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; font-size: 14px; }
.yb-pdyn__note { margin-top: 8px !important; font-size: 13px; color: var(--ink-3); }
.yb-pdyn__desc { padding: 14px 16px; border-radius: 16px; background: var(--surface); font-size: 14px; line-height: 1.7; color: var(--ink-2); word-break: keep-all; }
.yb-pdyn__desc > div { padding: 0 !important; }
.yb-sum__msg #dynamicA_ApplyMsg, .yb-sum__msg #setAddedDiscount { display: block; }
@media (max-width: 640px) {
  .yb-pdyn__pick { width: 100%; margin-left: 0; justify-content: space-between; }
}
