/* ============================================================
   MONEYPIN (머니핀) stylesheet
   Shared chrome (top bar, footer, bottom tab), purchase dialog,
   member pages and shop pages. Loaded by every public page.
   ============================================================ */

@font-face {
  font-family: "Pretendard";
  src: url("/assets-pinhub/fonts/PretendardVariable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ph-primary: #2b57e6;
  --ph-primary-dark: #1e3fb0;
  --ph-ink: #17203a;
  --ph-ink-soft: #5b6478;
  --ph-line: #e6e9f2;
  --ph-bg: #f4f6fb;
  --ph-safe: #12b981;
  --ph-safe-bg: #e7f8f1;
  --ph-warn: #f59e0b;
  --ph-radius: 14px;
  --ph-shadow: 0 14px 40px rgba(23, 32, 58, .12);
  --ph-font: "Pretendard", "Noto Sans KR", system-ui, sans-serif;
  --ph-topbar-h: 60px;
}

/* keep injected chrome above mirror content */
#ph-topbar, #ph-cs, #ph-bottomtab { font-family: var(--ph-font); box-sizing: border-box; }
#ph-topbar *, #ph-footer *, #ph-cs *, #ph-bottomtab * { box-sizing: border-box; }

/* push page content below the fixed brand bar */
body.ph-has-topbar { padding-top: var(--ph-topbar-h) !important; }

/* ---------- Top brand bar ---------- */
#ph-topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--ph-topbar-h);
  z-index: 2147483000; display: flex; align-items: center; gap: 18px;
  padding: 0 clamp(14px, 4vw, 40px);
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ph-line);
  box-shadow: 0 2px 14px rgba(23, 32, 58, .05);
}
#ph-topbar .ph-logo {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  color: var(--ph-ink); font-weight: 900; font-size: 21px; letter-spacing: -.5px; flex: none;
}
#ph-topbar .ph-logo img { display: block; width: 154px; height: auto; }
#ph-topbar .ph-logo .ph-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ph-primary), #4f7bff); color: #fff;
  font-size: 17px; font-weight: 900; box-shadow: 0 6px 16px rgba(43, 87, 230, .35);
}
#ph-topbar .ph-logo .ph-word { color: var(--ph-primary); }
#ph-topbar .ph-nav { display: flex; align-items: center; gap: 4px; margin-left: 6px; }
#ph-topbar .ph-nav a {
  position: relative; padding: 9px 14px; border-radius: 10px; text-decoration: none;
  color: var(--ph-ink); font-weight: 700; font-size: 15.5px; white-space: nowrap; transition: .15s;
}
#ph-topbar .ph-nav a:hover { background: var(--ph-bg); color: var(--ph-primary); }
#ph-topbar .ph-nav a.ph-active { color: var(--ph-primary); }
#ph-topbar .ph-nav a.ph-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px;
  border-radius: 2px; background: var(--ph-primary);
}
#ph-topbar .ph-spacer { flex: 1; }
#ph-topbar .ph-auth { display: flex; align-items: center; gap: 8px; flex: none; }
#ph-topbar .ph-auth a {
  text-decoration: none; font-weight: 800; font-size: 14.5px; padding: 9px 15px; border-radius: 999px; white-space: nowrap;
}
#ph-topbar .ph-auth .ph-login { color: var(--ph-ink-soft); }
#ph-topbar .ph-auth .ph-login:hover { color: var(--ph-primary); }
#ph-topbar .ph-auth .ph-join { color: #fff; background: var(--ph-primary); box-shadow: 0 8px 18px rgba(43, 87, 230, .28); }
#ph-topbar .ph-auth .ph-join:hover { background: var(--ph-primary-dark); }
#ph-topbar .ph-burger { display: none; border: 0; background: transparent; font-size: 24px; color: var(--ph-ink); cursor: pointer; padding: 4px 8px; }

/* mobile drawer */
#ph-drawer { position: fixed; inset: 0; z-index: 2147483010; display: none; }
#ph-drawer.ph-open { display: block; }
#ph-drawer .ph-drawer-bg { position: absolute; inset: 0; background: rgba(23, 32, 58, .5); }
#ph-drawer .ph-drawer-panel {
  position: absolute; top: 0; right: 0; width: min(320px, 84vw); height: 100%;
  background: #fff; padding: 22px 18px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: -18px 0 50px rgba(23, 32, 58, .25); transform: translateX(100%); transition: transform .22s ease;
}
#ph-drawer.ph-open .ph-drawer-panel { transform: translateX(0); }
#ph-drawer .ph-drawer-panel a {
  text-decoration: none; color: var(--ph-ink); font-weight: 800; font-size: 17px; padding: 14px 12px; border-radius: 10px;
}
#ph-drawer .ph-drawer-panel a:hover { background: var(--ph-bg); color: var(--ph-primary); }
#ph-drawer .ph-drawer-close { align-self: flex-end; border: 0; background: var(--ph-bg); width: 38px; height: 38px; border-radius: 50%; font-size: 22px; cursor: pointer; margin-bottom: 8px; }
#ph-drawer .ph-drawer-cta { margin-top: 10px; display: grid; gap: 8px; }
#ph-drawer .ph-drawer-cta a { text-align: center; }
#ph-drawer .ph-drawer-cta .ph-j { background: var(--ph-primary); color: #fff; }

@media (max-width: 960px) {
  #ph-topbar .ph-nav, #ph-topbar .ph-auth { display: none; }
  #ph-topbar .ph-burger { display: inline-block; }
  #ph-topbar .ph-spacer { flex: 1; }
}

/* ---------- Product purchase modal ---------- */
body.ph-modal-open { overflow: hidden !important; }
#ph-buy-modal { display: none; position: fixed; inset: 0; z-index: 2147483600; font-family: var(--ph-font); }
#ph-buy-modal.ph-open { display: grid; place-items: center; padding: 20px; }
#ph-buy-modal, #ph-buy-modal * { box-sizing: border-box; }
#ph-buy-modal .ph-buy-backdrop { position: absolute; inset: 0; z-index: 0; background: rgba(4, 12, 34, .68); }
#ph-buy-modal .ph-buy-dialog {
  position: relative; z-index: 1; width: min(680px, 100%); max-height: min(880px, calc(100vh - 40px)); overflow: auto;
  padding: 25px; border-radius: 24px; background: #fff; color: var(--ph-ink);
  box-shadow: 0 30px 80px rgba(0, 8, 32, .38); animation: ph-buy-in .22s ease-out;
}
@keyframes ph-buy-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
#ph-buy-modal .ph-buy-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
#ph-buy-modal .ph-buy-kicker { display: block; margin-bottom: 5px; color: var(--ph-primary); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
#ph-buy-modal .ph-buy-head h2 { margin: 0; font-size: 25px; font-weight: 900; letter-spacing: -.7px; }
#ph-buy-modal .ph-buy-close {
  width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--ph-bg); color: var(--ph-ink-soft);
  font: 300 29px/36px Arial, sans-serif; cursor: pointer;
}
#ph-buy-modal .ph-buy-product {
  display: flex; align-items: center; gap: 13px; margin: 20px 0 16px; padding: 12px 14px;
  border: 1px solid var(--ph-line); border-radius: 15px; background: #f9faff;
}
#ph-buy-modal .ph-buy-thumb { width: 54px; height: 54px; display: grid; place-items: center; flex: none; border-radius: 12px; background: #fff; border: 1px solid var(--ph-line); }
#ph-buy-modal .ph-buy-thumb img { width: 44px; height: 44px; object-fit: contain; }
#ph-buy-modal .ph-buy-product strong { display: block; font-size: 16px; font-weight: 900; }
#ph-buy-modal .ph-buy-product div span { display: block; margin-top: 4px; color: var(--ph-primary); font-size: 12px; font-weight: 800; }
#ph-buy-modal .ph-buy-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 17px; }
#ph-buy-modal .ph-buy-tabs.ph-method-locked { grid-template-columns: 1fr; }
#ph-buy-modal .ph-buy-tabs button {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--ph-line);
  border-radius: 14px; background: #fff; color: var(--ph-ink); text-align: left; cursor: pointer;
}
#ph-buy-modal .ph-buy-tabs.ph-method-locked button { cursor: default; }
#ph-buy-modal .ph-buy-tabs button.ph-active { border-color: var(--ph-primary); background: #f3f6ff; box-shadow: 0 0 0 2px rgba(43, 87, 230, .1); }
#ph-buy-modal .ph-buy-tab-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: none; border-radius: 11px; overflow: hidden; background: transparent; }
#ph-buy-modal .ph-buy-tab-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
#ph-buy-modal .ph-buy-tabs b, #ph-buy-modal .ph-buy-tabs small { display: block; }
#ph-buy-modal .ph-buy-tabs b { font-size: 14px; font-weight: 900; }
#ph-buy-modal .ph-buy-tabs small { margin-top: 2px; color: var(--ph-ink-soft); font-size: 10.5px; font-weight: 700; }
#ph-buy-modal .ph-buy-fields { display: grid; gap: 11px; }
#ph-buy-modal .ph-buy-two { grid-template-columns: 1fr 1fr; }
#ph-buy-modal .ph-buy-fields + .ph-buy-fields { margin-top: 12px; }
#ph-buy-modal .ph-buy-fields label { min-width: 0; }
#ph-buy-modal .ph-buy-fields label > span { display: block; margin: 0 0 6px 2px; font-size: 12px; font-weight: 800; color: var(--ph-ink); }
#ph-buy-modal .ph-buy-fields input, #ph-buy-modal .ph-buy-fields select {
  width: 100%; height: 45px; padding: 0 12px; border: 1px solid var(--ph-line); border-radius: 11px;
  background: #fff; color: var(--ph-ink); outline: none; font: 600 13px var(--ph-font);
}
#ph-buy-modal .ph-buy-fields input:focus, #ph-buy-modal .ph-buy-fields select:focus { border-color: var(--ph-primary); box-shadow: 0 0 0 3px rgba(43, 87, 230, .1); }
#ph-buy-modal .ph-buy-panel { margin-top: 15px; padding: 14px; border-radius: 14px; background: #f7f9fd; border: 1px solid #edf0f6; }
#ph-buy-modal .ph-buy-panel-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
#ph-buy-modal .ph-buy-panel-title b { font-size: 13px; font-weight: 900; }
#ph-buy-modal .ph-buy-panel-title span { color: var(--ph-ink-soft); font-size: 10.5px; font-weight: 700; }
#ph-buy-modal .ph-buy-summary { margin-top: 15px; padding: 14px 15px; border: 1px solid var(--ph-line); border-radius: 14px; }
#ph-buy-modal .ph-buy-summary > div { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; font-size: 12px; color: var(--ph-ink-soft); }
#ph-buy-modal .ph-buy-summary b { color: var(--ph-ink); }
#ph-buy-modal .ph-buy-summary .ph-buy-rate b { color: var(--ph-primary); }
#ph-buy-modal .ph-buy-summary .ph-buy-saving b { color: #ff4268; }
#ph-buy-modal .ph-buy-summary .ph-buy-total { margin-top: 7px; padding-top: 11px; border-top: 1px dashed var(--ph-line); color: var(--ph-ink); font-weight: 900; }
#ph-buy-modal .ph-buy-summary .ph-buy-total strong { color: var(--ph-primary); font-size: 22px; letter-spacing: -.5px; }
#ph-buy-modal .ph-buy-agree { display: flex; align-items: flex-start; gap: 8px; margin: 13px 2px 0; color: var(--ph-ink-soft); font-size: 11.5px; font-weight: 700; line-height: 1.45; cursor: pointer; }
#ph-buy-modal .ph-buy-agree input {
  position: static !important; width: 18px !important; height: 18px !important; margin: 0 !important; flex: none;
  opacity: 1 !important; visibility: visible !important; z-index: auto !important; overflow: visible !important;
  appearance: checkbox !important; -webkit-appearance: checkbox !important; accent-color: var(--ph-primary); cursor: pointer;
}
#ph-buy-modal .ph-buy-message { min-height: 18px; margin: 8px 0 0; color: #e43f5f; font-size: 11.5px; font-weight: 800; text-align: center; }
#ph-buy-modal .ph-buy-submit {
  width: 100%; border: 0; border-radius: 13px; padding: 15px; background: var(--ph-primary); color: #fff;
  font: 900 15px var(--ph-font); box-shadow: 0 12px 26px rgba(43, 87, 230, .25); cursor: pointer;
}
#ph-buy-modal .ph-buy-submit:disabled { opacity: .42; cursor: not-allowed; box-shadow: none; }
#ph-buy-modal [hidden] { display: none !important; }
#ph-buy-modal .ph-buy-phone-auth { margin-top: 14px; padding: 14px; border: 1px solid #dce4fb; border-radius: 14px; background: #f8faff; }
#ph-buy-modal .ph-buy-phone-auth.ph-member-verified { border-color: #bfe9d9; background: #f3fbf8; }
#ph-buy-modal .ph-buy-phone-auth.ph-member-verified .ph-phone-notice { display: none; }
#ph-buy-modal .ph-phone-row { display: flex !important; flex-flow: row nowrap !important; align-items: stretch !important; gap: 8px; margin-top: 8px; }
#ph-buy-modal .ph-phone-row input { flex: 1 1 auto !important; min-width: 0 !important; width: auto !important; height: 44px; padding: 0 12px; border: 1px solid var(--ph-line); border-radius: 11px; font: 700 13px var(--ph-font); outline: none; }
#ph-buy-modal .ph-phone-row input:focus { border-color: var(--ph-primary); box-shadow: 0 0 0 3px rgba(43, 87, 230, .1); }
#ph-buy-modal .ph-phone-row button { flex: 0 0 132px !important; width: 132px !important; min-width: 132px !important; height: 44px !important; margin: 0 !important; border: 0; border-radius: 11px; padding: 0 10px; background: #17213c; color: #fff; font: 800 12px var(--ph-font); white-space: nowrap; cursor: pointer; }
#ph-buy-modal .ph-phone-row button:disabled { opacity: .55; cursor: not-allowed; }
#ph-buy-modal .ph-phone-status { margin: 9px 1px 0; color: #e43f5f; font-size: 11.5px; font-weight: 800; }
#ph-buy-modal .ph-phone-status.ph-verified { color: var(--ph-safe); }
#ph-buy-modal .ph-phone-notice { display: block; margin-top: 7px; color: var(--ph-ink-soft); font-size: 9.5px; line-height: 1.45; }
#ph-buy-modal .ph-buy-guide { margin: 0; color: var(--ph-ink-soft); font-size: 12px; font-weight: 650; line-height: 1.65; }
#ph-buy-modal .ph-buy-guide b { color: var(--ph-primary); }
#ph-buy-modal .ph-travel-rule { margin-top: 11px; padding: 12px 13px; border: 1px solid #f1d5a7; border-radius: 11px; background: #fffaf0; }
#ph-buy-modal .ph-travel-rule strong { display: block; margin-bottom: 5px; color: #9a5b08; font-size: 12px; font-weight: 900; }
#ph-buy-modal .ph-travel-rule p { margin: 0; color: #71501f; font-size: 10.5px; font-weight: 700; line-height: 1.6; word-break: keep-all; }
#ph-buy-modal .ph-progress-icon img { display: block; width: 46px; height: 46px; object-fit: contain; }
#ph-buy-modal .ph-coin-card #ph-coin-wallet { font-size: 12px; line-height: 1.5; }
#ph-buy-modal .ph-buy-progress { padding: 22px 2px 4px; text-align: center; }
#ph-buy-modal .ph-progress-icon { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 50%; background: #eef2ff; color: var(--ph-primary); font-size: 25px; font-weight: 900; }
#ph-buy-modal .ph-progress-icon.ph-success { background: var(--ph-safe-bg); color: var(--ph-safe); }
#ph-buy-modal .ph-progress-icon.ph-rejected { background: #fff0f3; color: #e43f5f; }
#ph-buy-modal .ph-buy-progress h3 { margin: 0; color: var(--ph-ink); font-size: 22px; font-weight: 900; }
#ph-buy-modal .ph-buy-progress > p { margin: 9px auto 12px; max-width: 470px; color: var(--ph-ink-soft); font-size: 12.5px; line-height: 1.6; }
#ph-buy-modal .ph-progress-order { display: inline-block; padding: 7px 12px; border-radius: 9px; background: #f4f6fa; color: var(--ph-ink); font-size: 12px; }
#ph-buy-modal .ph-account-card { margin: 18px 0; padding: 4px 15px; border: 1px solid #cfd9f5; border-radius: 15px; background: #f8faff; text-align: left; }
#ph-buy-modal .ph-account-card > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid #e5eafa; }
#ph-buy-modal .ph-account-card > div:last-child { border-bottom: 0; }
#ph-buy-modal .ph-account-card span { color: var(--ph-ink-soft); font-size: 11px; font-weight: 700; }
#ph-buy-modal .ph-account-card b { margin-left: auto; color: var(--ph-ink); font-size: 14px; text-align: right; word-break: break-all; }
#ph-buy-modal .ph-copy { flex: none; padding: 6px 10px; border: 1px solid #cfd9f5; border-radius: 8px; background: #fff; color: var(--ph-primary); font: 800 11px var(--ph-font); cursor: pointer; }
#ph-buy-modal .ph-copy:hover { background: #eef2ff; }
#ph-buy-modal .ph-secondary.ph-quiet { margin-top: 10px; background: transparent; color: var(--ph-ink-soft); border: 1px solid var(--ph-line); font-size: 13px; }
#ph-buy-modal .ph-secondary { margin-top: 14px; background: #17213c; box-shadow: none; }
#ph-buy-modal .ph-buy-link { margin-top: 12px; padding: 7px 14px; border: 0; background: transparent; color: var(--ph-ink-soft); font: 800 12px var(--ph-font); cursor: pointer; }
#ph-buy-modal .ph-buy-complete { padding: 32px 4px 4px; text-align: center; }
#ph-buy-modal .ph-buy-check { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 50%; background: var(--ph-safe-bg); color: var(--ph-safe); font-size: 28px; font-weight: 900; }
#ph-buy-modal .ph-buy-complete h3 { margin: 0; font-size: 22px; font-weight: 900; }
#ph-buy-modal .ph-buy-complete > p { margin: 8px 0 11px; color: var(--ph-ink-soft); font-size: 13px; }
#ph-buy-modal .ph-buy-complete > strong { display: inline-block; padding: 9px 15px; border-radius: 10px; background: #eef2ff; color: var(--ph-primary); font-size: 16px; letter-spacing: .04em; }
#ph-buy-modal .ph-buy-next { display: flex; flex-direction: column; gap: 5px; margin: 18px 0; padding: 15px; border-radius: 13px; background: #f7f9fd; }
#ph-buy-modal .ph-buy-next b { font-size: 14px; }
#ph-buy-modal .ph-buy-next span { color: var(--ph-ink-soft); font-size: 12px; line-height: 1.5; }
@media (max-width: 720px) {
  #ph-buy-modal.ph-open { place-items: end center; padding: 0; }
  #ph-buy-modal .ph-buy-dialog { width: 100%; max-height: calc(100dvh - 18px); padding: 20px 17px calc(19px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; }
  #ph-buy-modal .ph-buy-head h2 { font-size: 21px; }
  #ph-buy-modal .ph-buy-product { margin: 15px 0 13px; }
  #ph-buy-modal .ph-buy-tabs button { padding: 10px; gap: 7px; }
  #ph-buy-modal .ph-buy-tab-icon { width: 31px; height: 31px; }
  #ph-buy-modal .ph-buy-fields input, #ph-buy-modal .ph-buy-fields select { height: 43px; }
  #ph-buy-modal .ph-phone-row button { flex-basis: 120px !important; width: 120px !important; min-width: 120px !important; padding: 0 7px; font-size: 11px; }
  #ph-buy-modal .ph-buy-progress h3 { font-size: 20px; }
}
@media (max-width: 340px) {
  #ph-buy-modal .ph-buy-two { grid-template-columns: 1fr; }
  #ph-buy-modal .ph-buy-fields + .ph-buy-fields { margin-top: 10px; }
  #ph-buy-modal .ph-buy-panel-title { align-items: flex-start; flex-direction: column; gap: 3px; }
}

/* ---------- Footer ---------- */
#ph-footer { margin-top: 46px; background: #10182e; color: #aeb6cc; font-family: var(--ph-font); }
#ph-footer .ph-f-inner { max-width: 1160px; margin: 0 auto; padding: 40px 20px 30px; }
#ph-footer .ph-f-top { display: flex; flex-wrap: wrap; gap: 26px 40px; justify-content: space-between; }
#ph-footer .ph-f-brand { max-width: 340px; }
#ph-footer .ph-f-brand .ph-logo { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-weight: 900; font-size: 20px; }
#ph-footer .ph-f-brand .ph-logo img { display: block; width: 168px; height: auto; }
#ph-footer .ph-f-brand .ph-mark { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, var(--ph-primary), #4f7bff); color: #fff; font-weight: 900; }
#ph-footer .ph-f-brand p { margin: 14px 0 0; font-size: 13px; line-height: 1.7; }
#ph-footer .ph-f-links { display: flex; gap: 40px; flex-wrap: wrap; }
#ph-footer .ph-f-col h4 { margin: 0 0 12px; color: #fff; font-size: 14px; font-weight: 800; }
#ph-footer .ph-f-col a { display: block; color: #aeb6cc; text-decoration: none; font-size: 13.5px; padding: 5px 0; }
#ph-footer .ph-f-col a:hover { color: #fff; }
#ph-footer .ph-f-badges { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
#ph-footer .ph-f-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 9px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  color: #d7ddec; font-size: 12px; font-weight: 800;
}
#ph-footer .ph-f-badge .ph-ic { color: var(--ph-safe); }
#ph-footer .ph-f-biz { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12.5px; line-height: 1.85; }
#ph-footer .ph-f-biz .ph-hl { color: var(--ph-warn); font-weight: 700; }
#ph-footer .ph-f-copy { margin-top: 14px; font-size: 12px; color: #7c869e; }

/* ---------- Floating customer service ---------- */
#ph-cs { position: fixed; right: 18px; bottom: 18px; z-index: 2147483200; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
#ph-cs .ph-cs-item {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 11px 16px;
  border-radius: 999px; font-weight: 800; font-size: 14px; color: #fff;
  box-shadow: 0 12px 28px rgba(23, 32, 58, .22); transition: transform .15s;
}
#ph-cs .ph-cs-item:hover { transform: translateY(-2px); }
#ph-cs .ph-cs-item .ph-emoji { font-size: 16px; }
#ph-cs .ph-kakao { background: #fee500; color: #191600; }
#ph-cs .ph-call { background: var(--ph-primary); }
#ph-cs .ph-chat { background: var(--ph-ink); }
#ph-cs .ph-top { background: #fff; color: var(--ph-ink); border: 1px solid var(--ph-line); width: 44px; height: 44px; border-radius: 50%; padding: 0; justify-content: center; }
@media (max-width: 720px) { #ph-cs { bottom: 74px; right: 12px; } #ph-cs .ph-cs-item span.ph-lbl { display: none; } #ph-cs .ph-cs-item { width: 46px; height: 46px; padding: 0; justify-content: center; border-radius: 50%; } }

/* ---------- Mobile bottom tab ---------- */
#ph-bottomtab { display: none; }
@media (max-width: 720px) {
  #ph-bottomtab {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483100; display: flex;
    background: rgba(255, 255, 255, .98); border-top: 1px solid var(--ph-line);
    box-shadow: 0 -8px 28px rgba(23, 32, 58, .12); padding: 5px 5px env(safe-area-inset-bottom);
    backdrop-filter: blur(16px);
  }
  #ph-bottomtab a {
    flex: 1; text-align: center; text-decoration: none; color: var(--ph-ink-soft);
    font-size: 10.5px; font-weight: 800; padding: 4px 2px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px;
    border-radius: 13px; transition: color .18s ease, background-color .18s ease, transform .18s ease;
  }
  #ph-bottomtab a .ph-ti {
    width: 36px; height: 34px; display: grid; place-items: center; border-radius: 12px;
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
  }
  #ph-bottomtab a .ph-ti img { display: block; width: 31px; height: 31px; object-fit: contain; }
  #ph-bottomtab a.ph-active { color: var(--ph-primary); background: #f4f7ff; }
  #ph-bottomtab a.ph-active .ph-ti {
    transform: translateY(-2px) scale(1.08); background: #e8eeff;
    box-shadow: 0 6px 13px rgba(43, 87, 230, .16);
  }
  body.ph-has-bottomtab { padding-bottom: 70px !important; }
}

/* ---------- Standalone app pages ---------- */
body[data-pinhub-page] { margin: 0; background: var(--ph-bg); font-family: var(--ph-font); color: var(--ph-ink); }
#ph-root [hidden] { display: none !important; }
#ph-root { max-width: 720px; margin: 0 auto; padding: 34px 16px 60px; }
#ph-root.ph-wide { max-width: 1040px; }
.ph-page-head { text-align: center; margin-bottom: 26px; }
.ph-page-head h1 { margin: 0; font-size: 27px; font-weight: 900; letter-spacing: -.7px; }
.ph-page-head p { margin: 9px 0 0; color: var(--ph-ink-soft); font-size: 14.5px; }
.ph-page-kicker { display: block; margin-bottom: 7px; color: var(--ph-primary); font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.ph-card { background: #fff; border: 1px solid var(--ph-line); border-radius: 18px; box-shadow: var(--ph-shadow); padding: 26px; }
.ph-card + .ph-card { margin-top: 16px; }
.ph-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 15px; }
.ph-field label { font-size: 13px; font-weight: 800; color: var(--ph-ink); }
.ph-field input, .ph-field select {
  border: 1px solid var(--ph-line); border-radius: 11px; padding: 13px 14px; font-size: 15px;
  font-family: var(--ph-font); color: var(--ph-ink); background: #fff; outline: none;
}
.ph-field input:focus, .ph-field select:focus { border-color: var(--ph-primary); box-shadow: 0 0 0 3px rgba(43, 87, 230, .12); }
.ph-field input[readonly] { background: #f3f6fc; color: var(--ph-ink-soft); }
.ph-btn {
  width: 100%; border: 0; border-radius: 12px; background: var(--ph-primary); color: #fff;
  font-family: var(--ph-font); font-weight: 900; font-size: 16px; padding: 15px; cursor: pointer;
  box-shadow: 0 12px 26px rgba(43, 87, 230, .26); transition: background .15s;
}
.ph-btn:hover { background: var(--ph-primary-dark); }
.ph-btn.ph-ghost { background: #fff; color: var(--ph-primary); border: 1px solid var(--ph-primary); box-shadow: none; }
.ph-alt { text-align: center; margin-top: 16px; font-size: 14px; color: var(--ph-ink-soft); }
.ph-alt a { color: var(--ph-primary); font-weight: 800; text-decoration: none; }
.ph-note { background: var(--ph-safe-bg); color: #0c6b4d; border-radius: 12px; padding: 13px 15px; font-size: 13px; line-height: 1.6; font-weight: 600; }
.ph-auth-card { max-width: 600px; margin: 0 auto; }
.ph-benefit-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 600px; margin: -9px auto 14px; }
.ph-benefit-row span { padding: 9px 7px; border: 1px solid #dfe6fb; border-radius: 11px; background: #f7f9ff; color: var(--ph-primary); font-size: 11.5px; font-weight: 850; text-align: center; }
.ph-inline-field { display: flex; flex-flow: row nowrap; align-items: stretch; gap: 8px; }
.ph-inline-field input { flex: 1 1 auto; width: auto; min-width: 0; }
.ph-inline-field button { flex: 0 0 132px; min-width: 132px; border: 0; border-radius: 11px; background: #17213c; color: #fff; font: 800 12px var(--ph-font); cursor: pointer; white-space: nowrap; }
.ph-inline-field button:disabled { opacity: .5; cursor: not-allowed; }
.ph-auth-message { min-height: 19px; margin: 3px 0 9px; color: var(--ph-ink-soft); font-size: 12px; font-weight: 800; text-align: center; }
.ph-auth-message.ph-error { color: #e43f5f; }
.ph-auth-message.ph-success { color: var(--ph-safe); }
.ph-auth-help { margin: 13px 0 0; padding: 12px 13px; border-radius: 11px; background: #f4f6fb; color: var(--ph-ink-soft); font-size: 11px; font-weight: 700; line-height: 1.55; word-break: keep-all; }
.ph-register-account { margin: 19px 0 12px; padding: 17px; border: 1px solid #dce4fb; border-radius: 14px; background: #f8faff; }
.ph-register-account-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 15px; }
.ph-register-account-head b { color: var(--ph-ink); font-size: 14px; font-weight: 900; }
.ph-register-account-head span { color: var(--ph-ink-soft); font-size: 11.5px; font-weight: 650; line-height: 1.5; }
.ph-register-account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ph-register-account .ph-field { margin-bottom: 11px; }
.ph-register-account > .ph-field:last-child { margin-bottom: 0; }
.ph-text-btn { display: block; margin: 12px auto 0; padding: 5px 8px; border: 0; background: transparent; color: var(--ph-ink-soft); font: 750 12px var(--ph-font); cursor: pointer; }
.ph-text-btn:hover { color: var(--ph-primary); }
.ph-auth-divider { display: flex; align-items: center; gap: 12px; margin: 17px 0 13px; color: #9aa2b2; font-size: 11px; font-weight: 750; }
.ph-auth-divider::before, .ph-auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--ph-line); }
.ph-google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; border: 1px solid #d8dce5; border-radius: 12px; background: #fff; color: #202124; font: 800 14px var(--ph-font); cursor: pointer; }
.ph-google-btn:hover { background: #f8f9fb; border-color: #c9cfda; }
.ph-google-btn:disabled { opacity: .55; cursor: not-allowed; }
.ph-google-mark { display: block; width: 20px; height: 20px; flex: none; object-fit: contain; }
.ph-sale-pin-panel { margin: 14px 0 20px; padding: 15px; border: 1px solid #dce4fb; border-radius: 14px; background: #f8faff; font-family: var(--ph-font); }
.ph-sale-face-value-field { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 14px 0 0; padding: 14px 15px; border: 1px solid #dce4fb; border-radius: 14px; background: #fff; font-family: var(--ph-font); }
.ph-sale-face-value-field > span:first-child { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.ph-sale-face-value-field b { color: var(--ph-ink); font-size: 13px; font-weight: 900; }
.ph-sale-face-value-field small { color: var(--ph-ink-soft); font-size: 11px; font-weight: 700; }
.ph-sale-face-input { display: flex; flex: 0 0 180px; align-items: center; gap: 6px; padding: 0 12px; border: 1px solid #ccd6ef; border-radius: 10px; background: #f8faff; }
.ph-sale-face-input input { width: 100%; min-width: 0; height: 42px; border: 0; outline: 0; background: transparent; color: var(--ph-ink); text-align: right; font: 900 14px var(--ph-font); }
.ph-sale-face-input em { color: var(--ph-ink-soft); font-size: 12px; font-style: normal; font-weight: 800; }
.ph-sale-pin-empty, .ph-sale-pin-head, .ph-sale-receipt { display: flex; flex-direction: column; gap: 4px; }
.ph-sale-pin-empty b, .ph-sale-pin-head b, .ph-sale-receipt b { color: var(--ph-ink); font-size: 14px; font-weight: 900; }
.ph-sale-pin-empty span, .ph-sale-pin-head span, .ph-sale-receipt span, .ph-sale-receipt small { color: var(--ph-ink-soft); font-size: 11.5px; font-weight: 700; line-height: 1.5; }
.ph-sale-pin-head em { color: var(--ph-primary); font-style: normal; }
.ph-sale-pin-list { display: flex; flex-direction: column; gap: 8px; margin: 13px 0 0; padding: 0; list-style: none; }
.ph-sale-pin-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border: 1px solid #e1e7f5; border-radius: 11px; background: #fff; }
.ph-sale-pin-list li div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ph-sale-pin-list li span { color: var(--ph-primary); font-size: 11px; font-weight: 900; }
.ph-sale-pin-list li strong { color: var(--ph-ink); font: 800 13px/1.4 ui-monospace, Menlo, Consolas, monospace; word-break: break-all; }
.ph-sale-pin-list li button { flex: none; border: 0; border-radius: 8px; padding: 7px 9px; background: #f1f3f8; color: #667085; font: 800 11px var(--ph-font); cursor: pointer; }
@media (max-width: 600px) {
  .ph-sale-face-value-field { align-items: stretch; flex-direction: column; }
  .ph-sale-face-input { flex-basis: auto; width: 100%; }
}
.ph-sale-receipt { padding: 4px; text-align: center; }
#ph-sale-toast { position: fixed; z-index: 2147483647; left: 50%; bottom: 84px; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 11px; color: #fff; font: 800 13px/1.45 var(--ph-font); text-align: center; box-shadow: 0 14px 40px rgba(15,23,42,.24); }
#ph-sale-toast.ph-sale-toast-success { background: #0c8b63; }
#ph-sale-toast.ph-sale-toast-error { background: #d92d4f; }
.ph-guest-note { display: flex; flex-direction: column; gap: 3px; margin-top: 18px; padding: 13px 14px; border-radius: 12px; background: var(--ph-safe-bg); color: #0c6b4d; font-size: 11.5px; line-height: 1.5; text-align: center; }
.ph-guest-note b { font-size: 12.5px; }
@media (max-width: 480px) {
  #ph-root { padding-top: 24px; }
  .ph-card { padding: 21px 17px; }
  .ph-benefit-row { gap: 5px; }
  .ph-benefit-row span { padding: 8px 4px; font-size: 10.5px; }
  .ph-inline-field button { flex-basis: 118px; min-width: 118px; font-size: 11px; }
  .ph-register-account { padding: 15px 13px; }
  .ph-register-account-grid { grid-template-columns: 1fr; gap: 0; }
}

/* order tracking result */
.ph-track-result { margin-top: 18px; }
.ph-steps { display: flex; align-items: center; margin: 8px 0 20px; }
.ph-steps .ph-step { flex: 1; text-align: center; position: relative; }
.ph-steps .ph-step .ph-dot { width: 30px; height: 30px; border-radius: 50%; margin: 0 auto 7px; display: grid; place-items: center; background: var(--ph-line); color: #fff; font-weight: 900; font-size: 14px; }
.ph-steps .ph-step .ph-st-lb { font-size: 12.5px; font-weight: 800; color: var(--ph-ink-soft); }
.ph-steps .ph-step.ph-done .ph-dot { background: var(--ph-safe); }
.ph-steps .ph-step.ph-current .ph-dot { background: var(--ph-primary); box-shadow: 0 0 0 4px rgba(43, 87, 230, .18); }
.ph-steps .ph-step.ph-done .ph-st-lb, .ph-steps .ph-step.ph-current .ph-st-lb { color: var(--ph-ink); }
.ph-steps .ph-step::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 3px; background: var(--ph-line); z-index: -1; }
.ph-steps .ph-step:first-child::before { display: none; }
.ph-steps .ph-step.ph-done::before, .ph-steps .ph-step.ph-current::before { background: var(--ph-safe); }
.ph-kv { display: grid; grid-template-columns: 120px 1fr; gap: 10px 14px; font-size: 14px; }
.ph-kv dt { color: var(--ph-ink-soft); font-weight: 700; }
.ph-kv dd { margin: 0; font-weight: 700; color: var(--ph-ink); }
.ph-history { margin-top: 16px; border-top: 1px dashed var(--ph-line); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.ph-history .ph-h { display: flex; gap: 10px; font-size: 13px; }
.ph-history .ph-h time { color: var(--ph-ink-soft); flex: none; }

/* verified purchase and sale order lookup */
.ph-order-auth-card { max-width: 650px; margin: 0 auto; }
.ph-order-auth-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 17px; border-bottom: 1px solid var(--ph-line); }
.ph-order-auth-head > div { display: flex; flex-direction: column; gap: 3px; }
.ph-order-auth-head b { color: var(--ph-ink); font-size: 15px; font-weight: 900; }
.ph-order-auth-head span:not(.ph-order-auth-icon) { color: var(--ph-ink-soft); font-size: 12px; font-weight: 650; line-height: 1.5; }
.ph-order-auth-icon { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; background: #edf2ff; color: var(--ph-primary); display: grid; place-items: center; font-size: 19px; font-weight: 950; }
.ph-order-auth-loading { min-height: 88px; display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--ph-ink-soft); font-size: 13px; font-weight: 750; }
.ph-order-auth-loading > span { width: 17px; height: 17px; border: 2px solid #dbe3f5; border-top-color: var(--ph-primary); border-radius: 50%; animation: ph-order-spin .8s linear infinite; }
@keyframes ph-order-spin { to { transform: rotate(360deg); } }
.ph-order-mode-badge { width: max-content; margin-bottom: 16px; padding: 6px 10px; border-radius: 999px; background: #f0f4ff; color: var(--ph-primary); font-size: 11px; font-weight: 900; }
.ph-order-member-summary { margin-bottom: 17px; padding: 13px 14px; border: 1px solid #dfe6f6; border-radius: 13px; background: #f8faff; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ph-order-member-summary > div { min-width: 0; display: flex; align-items: center; gap: 10px; }
.ph-order-member-summary > div > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ph-order-member-summary b { color: var(--ph-ink); font-size: 14px; font-weight: 900; }
.ph-order-member-summary small { color: var(--ph-ink-soft); font-size: 11.5px; font-weight: 700; }
.ph-order-member-summary em { flex: none; color: var(--ph-primary); font-size: 11px; font-style: normal; font-weight: 900; }
.ph-order-avatar { width: 39px; height: 39px; flex: 0 0 39px; border-radius: 50%; background: linear-gradient(145deg, var(--ph-primary), #5b85ff); color: #fff; display: grid !important; place-items: center; font-size: 15px; font-weight: 900; }
.ph-order-list-card { margin-top: 18px !important; }
.ph-order-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.ph-order-list-head > div { display: flex; align-items: baseline; gap: 9px; }
.ph-order-list-head b { color: var(--ph-ink); font-size: 18px; font-weight: 900; }
.ph-order-list-head span { color: var(--ph-ink-soft); font-size: 12px; font-weight: 750; }
.ph-order-list-head button { border: 1px solid var(--ph-line); border-radius: 9px; background: #fff; color: var(--ph-ink-soft); padding: 8px 11px; font: 800 11.5px var(--ph-font); cursor: pointer; }
.ph-order-list-head button:hover { border-color: #b8c6e9; color: var(--ph-primary); }
.ph-lookup-order { padding: 18px 4px; border-top: 1px solid var(--ph-line); }
.ph-lookup-order:first-child { border-top: 0; }
.ph-lookup-order-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.ph-order-type { padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 900; }
.ph-order-type.ph-purchase { background: #edf2ff; color: var(--ph-primary); }
.ph-order-type.ph-sale { background: #eaf8f3; color: #087858; }
.ph-lookup-order-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.ph-lookup-order-main > div { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ph-lookup-order-main b { overflow: hidden; text-overflow: ellipsis; color: var(--ph-ink); font-size: 15px; font-weight: 900; white-space: nowrap; }
.ph-lookup-order-main span { color: var(--ph-ink-soft); font-size: 11.5px; font-weight: 700; }
.ph-lookup-order-main > strong { flex: none; color: var(--ph-ink); font-size: 16px; font-weight: 900; }
.ph-lookup-order-meta { display: flex; flex-wrap: wrap; gap: 7px 18px; margin-top: 12px; padding-top: 11px; border-top: 1px dashed #e5e9f1; color: var(--ph-ink-soft); font-size: 11.5px; font-weight: 650; }
.ph-lookup-order-meta b { margin-left: 4px; color: var(--ph-ink); font-weight: 800; }
.ph-order-empty { min-height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--ph-ink-soft); text-align: center; }
.ph-order-empty > span { width: 48px; height: 48px; margin-bottom: 4px; border-radius: 50%; background: #f1f4fa; display: grid; place-items: center; color: #7e899f; font-size: 25px; font-weight: 700; }
.ph-order-empty b { color: var(--ph-ink); font-size: 14px; font-weight: 900; }
.ph-order-empty small { font-size: 11.5px; font-weight: 650; line-height: 1.5; }

@media (max-width: 480px) {
  .ph-order-auth-card { padding: 20px 16px; }
  .ph-order-member-summary { align-items: flex-start; }
  .ph-order-member-summary em { padding-top: 4px; }
  .ph-order-list-card { padding: 20px 16px; }
  .ph-lookup-order-main { align-items: flex-end; }
  .ph-lookup-order-main b { max-width: calc(100vw - 150px); }
  .ph-lookup-order-main > strong { font-size: 15px; }
  .ph-lookup-order-meta { flex-direction: column; gap: 5px; }
}

/* mypage */
.ph-tabs { display: flex; gap: 6px; margin-bottom: 18px; }
.ph-tabs button { flex: 1; border: 1px solid var(--ph-line); background: #fff; border-radius: 11px; padding: 12px; font-weight: 800; font-size: 14.5px; color: var(--ph-ink-soft); cursor: pointer; }
.ph-tabs button.ph-active { background: var(--ph-primary); color: #fff; border-color: var(--ph-primary); }
.ph-order-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 4px; border-bottom: 1px solid var(--ph-line); }
.ph-order-row:last-child { border-bottom: 0; }
.ph-order-row .ph-o-name { font-weight: 800; }
.ph-order-row .ph-o-sub { font-size: 12.5px; color: var(--ph-ink-soft); margin-top: 3px; }
.ph-pill { font-size: 12px; font-weight: 800; padding: 5px 11px; border-radius: 999px; background: var(--ph-bg); color: var(--ph-ink-soft); white-space: nowrap; }
.ph-pill.ph-p-done { background: var(--ph-safe-bg); color: var(--ph-safe); }
.ph-pill.ph-p-progress { background: #e8effe; color: var(--ph-primary); }
.ph-pill.ph-p-reject { background: #fdecec; color: #d64545; }
.ph-empty { text-align: center; color: var(--ph-ink-soft); padding: 40px 0; font-weight: 600; }

/* ============================================================
   Shop pages (home, item, exchange, info, support, legal)
   ============================================================ */
#ph-root.ph-shop { max-width: 1120px; padding: 28px 20px 64px; }
#ph-root.ph-shop.ph-narrow { max-width: 760px; }
.ph-static { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.ph-section { margin-top: 52px; }
.ph-section-head { margin-bottom: 18px; }
.ph-section-head h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
.ph-section-head p { margin: 6px 0 0; color: var(--ph-ink-soft); font-size: 14px; }
.ph-card-title { margin: 0 0 14px; font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.ph-card-desc { margin: 0 0 16px; color: var(--ph-ink-soft); font-size: 14px; line-height: 1.6; }
.ph-btn-link { display: block; box-sizing: border-box; text-align: center; text-decoration: none; }
.ph-btn:disabled { opacity: .55; cursor: not-allowed; }
.ph-btn:focus-visible, .ph-cta-primary:focus-visible, .ph-cta-ghost:focus-visible, .ph-product:focus-visible,
.ph-sell-product:focus-visible, .ph-face:focus-within, .ph-stepper button:focus-visible { outline: 3px solid rgba(43, 87, 230, .35); outline-offset: 2px; }
.ph-kv { margin: 0 0 16px; display: grid; grid-template-columns: 1fr; gap: 0; }
.ph-kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--ph-line); font-size: 14.5px; }
.ph-kv > div:last-child { border-bottom: 0; }
.ph-kv dt { color: var(--ph-ink-soft); }
.ph-kv dd { margin: 0; font-weight: 700; text-align: right; }
.ph-bullets { margin: 0; padding-left: 18px; color: var(--ph-ink-soft); font-size: 14px; line-height: 1.75; }
.ph-note-warn { background: #fff7e6; color: #8a5a00; margin-bottom: 16px; }
.ph-pending { color: var(--ph-ink-soft); font-weight: 500; }
.ph-text-link { color: var(--ph-primary); font-weight: 700; font-size: 14.5px; text-decoration: none; }
.ph-text-link:hover { text-decoration: underline; }

/* ---------- Home hero ---------- */
.ph-hero2 { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; overflow: hidden; border-radius: 24px; background: #06143a; color: #fff; min-height: 340px; }
.ph-hero2-copy { padding: 44px 16px 44px 48px; position: relative; z-index: 1; }
.ph-hero2 h1 { margin: 0; font-size: 36px; line-height: 1.28; font-weight: 800; letter-spacing: -1px; }
.ph-hero2 h1 b { color: #ffd84d; font-weight: 800; }
.ph-hero2 p { margin: 16px 0 0; color: #c9d3ee; font-size: 16px; line-height: 1.6; }
.ph-hero2-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.ph-cta-primary, .ph-cta-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 12px; font-size: 16px; font-weight: 800; text-decoration: none; transition: background .15s, transform .15s; }
.ph-cta-primary { background: var(--ph-primary); color: #fff; }
.ph-cta-primary:hover { background: var(--ph-primary-dark); }
.ph-hero2 .ph-cta-primary { background: #fff; color: #0b1739; }
.ph-hero2 .ph-cta-primary:hover { background: #e9eeff; }
.ph-cta-ghost { border: 1px solid rgba(255, 255, 255, .45); color: #fff; }
.ph-cta-ghost:hover { background: rgba(255, 255, 255, .1); }
.ph-hero2-art { align-self: stretch; display: block; min-height: 100%; }
.ph-hero2-art img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Product grid ---------- */
.ph-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ph-product { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ph-line); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--ph-ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
.ph-product:hover { transform: translateY(-3px); box-shadow: var(--ph-shadow); border-color: #cfd8f5; }
.ph-product-thumb { display: block; aspect-ratio: 16 / 10; background: #fff; border-bottom: 1px solid var(--ph-line); }
.ph-product-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph-product-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; }
.ph-product-body strong { font-size: 16px; font-weight: 700; line-height: 1.35; letter-spacing: -.3px; word-break: keep-all; }
.ph-product-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.ph-product-price em { color: #e0304f; font-style: normal; font-weight: 800; font-size: 17px; }
.ph-product-price b { font-size: 19px; font-weight: 800; letter-spacing: -.4px; }
.ph-product-price small { flex-basis: 100%; color: var(--ph-ink-soft); font-size: 13px; }

/* ---------- How it works ---------- */
.ph-steps3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ph-steps3 li { background: #fff; border: 1px solid var(--ph-line); border-radius: 18px; padding: 22px; }
.ph-steps3 span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e8eeff; color: var(--ph-primary); font-weight: 800; font-size: 15px; }
.ph-steps3 b { display: block; margin-top: 14px; font-size: 16.5px; font-weight: 800; }
.ph-steps3 p { margin: 7px 0 0; color: var(--ph-ink-soft); font-size: 14px; line-height: 1.6; word-break: keep-all; }

/* ---------- Sell band ---------- */
.ph-sell-band { margin-top: 52px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; background: #eaeefd; border-radius: 24px; padding: 36px 40px; }
.ph-sell-band h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.ph-sell-band p { margin: 10px 0 22px; color: var(--ph-ink-soft); font-size: 15px; line-height: 1.6; }
.ph-sell-band .ph-text-link { margin-left: 16px; }
.ph-sell-band-rates { list-style: none; margin: 0; padding: 6px 18px; background: #fff; border-radius: 16px; }
.ph-sell-band-rates li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ph-line); font-size: 15px; font-weight: 600; }
.ph-sell-band-rates li:last-child { border-bottom: 0; }
.ph-sell-band-rates img { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; }
.ph-sell-band-rates span { flex: 1; min-width: 0; }
.ph-sell-band-rates b { color: var(--ph-primary); font-size: 17px; font-weight: 800; }

/* ---------- Item page ---------- */
.ph-crumb { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--ph-ink-soft); font-size: 14px; }
.ph-crumb a { color: var(--ph-ink-soft); text-decoration: none; }
.ph-crumb a:hover { color: var(--ph-primary); }
.ph-item { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 32px; align-items: start; }
.ph-item-media { display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; border: 1px solid var(--ph-line); border-radius: 22px; }
.ph-item-media img { width: 100%; height: 100%; object-fit: cover; }
.ph-item-buy { background: #fff; border: 1px solid var(--ph-line); border-radius: 22px; padding: 28px; }
.ph-item-buy h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.6px; word-break: keep-all; }
.ph-item-note { margin: 8px 0 0; color: var(--ph-ink-soft); font-size: 14px; }
.ph-item-discount { margin: 10px 0 22px; color: var(--ph-ink-soft); font-size: 15px; }
.ph-item-discount em { color: #e0304f; font-style: normal; font-weight: 800; font-size: 18px; }
.ph-face-list { border: 0; margin: 0 0 20px; padding: 0; }
.ph-face-list legend, .ph-qty b { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 700; }
.ph-face-list > div { display: grid; gap: 8px; }
.ph-face { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--ph-line); border-radius: 13px; cursor: pointer; transition: border-color .15s, background .15s; }
.ph-face:hover { border-color: #c5d0f3; }
.ph-face.ph-on { border-color: var(--ph-primary); background: #f4f7ff; }
.ph-face input { position: absolute; opacity: 0; pointer-events: none; }
.ph-face-name { font-size: 15.5px; font-weight: 700; }
.ph-face-price { display: flex; align-items: baseline; gap: 9px; }
.ph-face-price s { color: #9aa2b2; font-size: 13.5px; }
.ph-face-price b { font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.ph-qty { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 0 20px; }
.ph-qty b { display: block; margin-bottom: 3px; }
.ph-qty small { color: var(--ph-ink-soft); font-size: 13px; }
.ph-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--ph-line); border-radius: 13px; overflow: hidden; }
.ph-stepper button { width: 46px; height: 46px; border: 0; background: #fff; color: var(--ph-ink); font-size: 22px; cursor: pointer; }
.ph-stepper button:hover:not(:disabled) { background: var(--ph-bg); }
.ph-stepper button:disabled { color: #c3c9d6; cursor: not-allowed; }
.ph-stepper output { min-width: 84px; text-align: center; font-size: 16px; font-weight: 800; }
.ph-item-total { margin: 0 0 18px; padding: 16px 18px; border-radius: 14px; background: var(--ph-bg); display: grid; gap: 9px; }
.ph-item-total > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.ph-item-total dt { color: var(--ph-ink-soft); }
.ph-item-total dd { margin: 0; font-weight: 700; }
.ph-item-total .ph-item-pay { padding-top: 11px; border-top: 1px solid #dfe4f0; align-items: baseline; }
.ph-item-total .ph-item-pay dt { color: var(--ph-ink); font-weight: 700; }
.ph-item-total .ph-item-pay dd { color: var(--ph-primary); font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.ph-item-pay-note { margin: 12px 0 0; text-align: center; color: var(--ph-ink-soft); font-size: 13px; }
.ph-item-info { margin-top: 28px; box-shadow: none; }
.ph-item-info section { margin-top: 22px; }
.ph-item-info h3 { margin: 0 0 8px; font-size: 15px; font-weight: 800; }
.ph-item-info ul { margin: 0; padding-left: 18px; color: var(--ph-ink-soft); font-size: 14.5px; line-height: 1.75; }

/* ---------- Sell (exchange) ---------- */
.ph-sell { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.ph-sell .ph-card { box-shadow: none; }
.ph-sell-summary { position: sticky; top: calc(var(--ph-topbar-h) + 16px); }
.ph-step-title { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.ph-step-title span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ph-primary); color: #fff; font-size: 13.5px; }
.ph-sell-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ph-sell-product { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 9px 13px; border: 1.5px solid var(--ph-line); border-radius: 13px; background: #fff; color: var(--ph-ink); font: 600 14.5px var(--ph-font); text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.ph-sell-product:hover { border-color: #c5d0f3; }
.ph-sell-product.ph-on { border-color: var(--ph-primary); background: #f4f7ff; }
.ph-sell-product img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; flex: none; }
.ph-sell-product span { flex: 1; min-width: 0; word-break: keep-all; }
.ph-sell-product b { color: var(--ph-primary); font-weight: 800; }
.ph-face-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.ph-face-chips button { min-height: 40px; padding: 0 15px; border: 1.5px solid var(--ph-line); border-radius: 999px; background: #fff; color: var(--ph-ink); font: 700 14px var(--ph-font); cursor: pointer; }
.ph-face-chips button:hover { border-color: var(--ph-primary); color: var(--ph-primary); }
.ph-input-unit { display: flex; align-items: center; border: 1px solid var(--ph-line); border-radius: 11px; background: #fff; padding-right: 14px; }
.ph-input-unit:focus-within { border-color: var(--ph-primary); box-shadow: 0 0 0 3px rgba(43, 87, 230, .12); }
.ph-field .ph-input-unit input { flex: 1; min-width: 0; border: 0; box-shadow: none; background: transparent; text-align: right; font-weight: 700; }
.ph-input-unit em { color: var(--ph-ink-soft); font-style: normal; font-size: 14px; }
.ph-pin-inputs { display: flex; gap: 7px; }
.ph-field .ph-pin-inputs input { min-width: 0; width: 0; padding: 13px 6px; text-align: center; font: 700 16px/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .06em; }
.ph-sell-list { margin-top: 16px; }
.ph-sell-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ph-sell-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--ph-line); border-radius: 12px; }
.ph-sell-list li div { min-width: 0; display: grid; gap: 3px; }
.ph-sell-list li span { color: var(--ph-ink-soft); font-size: 13px; }
.ph-sell-list li strong { font: 700 15px/1.4 ui-monospace, Menlo, Consolas, monospace; word-break: break-all; }
.ph-sell-list li button { flex: none; min-height: 36px; padding: 0 12px; border: 0; border-radius: 9px; background: var(--ph-bg); color: var(--ph-ink-soft); font: 700 13px var(--ph-font); cursor: pointer; }
.ph-sell-list li button:hover { background: #ffe9ed; color: #c9223f; }
.ph-sell-empty { margin: 0; padding: 18px; border: 1px dashed #cfd6e6; border-radius: 12px; color: var(--ph-ink-soft); font-size: 14px; text-align: center; }
.ph-sum-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 4px 0 18px; padding-top: 16px; border-top: 1px solid var(--ph-line); }
.ph-sum-total span { font-size: 14.5px; font-weight: 700; }
.ph-sum-total strong { color: var(--ph-primary); font-size: 26px; font-weight: 800; letter-spacing: -.6px; }
.ph-agree, .ph-consent label { display: flex; align-items: flex-start; gap: 9px; color: var(--ph-ink-soft); font-size: 13.5px; line-height: 1.5; cursor: pointer; }
.ph-agree input, .ph-consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ph-primary); }
.ph-agree a, .ph-consent a { color: var(--ph-primary); font-weight: 700; }
.ph-consent { margin: 18px 0 6px; padding: 15px 16px; border: 1px solid var(--ph-line); border-radius: 13px; display: grid; gap: 10px; }
.ph-consent legend { padding: 0 6px; font-size: 13px; font-weight: 800; color: var(--ph-ink); }
.ph-consent b { color: var(--ph-ink); }
.ph-notice-card { margin-top: 20px; box-shadow: none; }
.ph-receipt { max-width: 520px; margin: 24px auto; text-align: center; }
.ph-receipt-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ph-safe-bg); color: var(--ph-safe); font-size: 26px; font-weight: 800; }
.ph-receipt h1 { margin: 16px 0 8px; font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
.ph-receipt p { margin: 0 0 20px; color: var(--ph-ink-soft); font-size: 14.5px; }
.ph-receipt .ph-kv { text-align: left; }
.ph-receipt .ph-btn { display: block; box-sizing: border-box; text-decoration: none; }

/* register: optional payout account */
details.ph-register-account summary { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 3px 8px; cursor: pointer; list-style: none; }
details.ph-register-account summary::-webkit-details-marker { display: none; }
details.ph-register-account summary b { font-size: 14px; font-weight: 800; }
details.ph-register-account summary em { justify-self: start; padding: 2px 8px; border-radius: 999px; background: #e8eeff; color: var(--ph-primary); font-size: 11.5px; font-style: normal; font-weight: 800; }
details.ph-register-account summary::after { content: "+"; grid-row: 1; grid-column: 4; justify-self: end; color: var(--ph-ink-soft); font-size: 20px; }
details.ph-register-account[open] summary::after { content: "−"; }
details.ph-register-account summary span { grid-column: 1 / -1; color: var(--ph-ink-soft); font-size: 12.5px; line-height: 1.5; }
details.ph-register-account[open] summary { margin-bottom: 15px; }

/* ---------- Rate table / calculator ---------- */
.ph-calc { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0 14px; }
.ph-calc-out { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; padding: 16px 18px; border-radius: 14px; background: #f4f7ff; }
.ph-calc-out span { font-size: 14.5px; font-weight: 700; }
.ph-calc-out strong { color: var(--ph-primary); font-size: 26px; font-weight: 800; letter-spacing: -.6px; }
.ph-table-wrap { overflow-x: auto; margin-bottom: 14px; }
.ph-rate-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ph-rate-table th { padding: 11px 10px; border-bottom: 2px solid var(--ph-line); color: var(--ph-ink-soft); font-size: 13px; font-weight: 700; text-align: left; white-space: nowrap; }
.ph-rate-table td { padding: 12px 10px; border-bottom: 1px solid var(--ph-line); }
.ph-rate-table td:first-child { font-weight: 600; }
.ph-rate-table td img { width: 28px; height: 28px; margin-right: 10px; border-radius: 7px; object-fit: cover; vertical-align: middle; }
.ph-rate-table td b { color: var(--ph-primary); font-weight: 800; }
.ph-rate-table th:not(:first-child), .ph-rate-table td:not(:first-child) { text-align: right; white-space: nowrap; }

/* ---------- Support / legal ---------- */
.ph-shop.ph-narrow .ph-card { box-shadow: none; }
.ph-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 14px; }
.ph-contact-link { display: grid; gap: 3px; padding: 15px 16px; border: 1.5px solid var(--ph-line); border-radius: 13px; color: var(--ph-ink); text-decoration: none; }
.ph-contact-link:hover { border-color: var(--ph-primary); }
.ph-contact-link b { font-size: 15px; font-weight: 800; }
.ph-contact-link span { color: var(--ph-ink-soft); font-size: 13.5px; }
.ph-faq details { border-bottom: 1px solid var(--ph-line); }
.ph-faq details:last-child { border-bottom: 0; }
.ph-faq summary { display: flex; justify-content: space-between; gap: 14px; padding: 15px 0; font-size: 15.5px; font-weight: 700; cursor: pointer; list-style: none; word-break: keep-all; }
.ph-faq summary::-webkit-details-marker { display: none; }
.ph-faq summary::after { content: "+"; flex: none; color: var(--ph-ink-soft); font-size: 20px; line-height: 1; }
.ph-faq details[open] summary::after { content: "−"; }
.ph-faq p { margin: 0 0 16px; color: var(--ph-ink-soft); font-size: 14.5px; line-height: 1.75; word-break: keep-all; }
.ph-legal h2 { margin: 26px 0 8px; font-size: 16px; font-weight: 800; }
.ph-legal h2:first-child { margin-top: 0; }
.ph-legal p, .ph-legal li { color: #3d465c; font-size: 14.5px; line-height: 1.8; word-break: keep-all; }
.ph-legal p { margin: 0 0 8px; }
.ph-legal ul { margin: 0 0 8px; padding-left: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .ph-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ph-sell { grid-template-columns: 1fr; }
  .ph-sell-summary { position: static; }
  .ph-item { grid-template-columns: 1fr; gap: 18px; }
  .ph-item-media { max-width: 320px; width: 100%; margin: 0 auto; }
}
@media (max-width: 720px) {
  #ph-root.ph-shop { padding: 16px 16px 48px; }
  .ph-hero2 { grid-template-columns: 1fr; min-height: 0; border-radius: 20px; }
  .ph-hero2-copy { padding: 30px 24px 8px; }
  .ph-hero2 h1 { font-size: 27px; }
  .ph-hero2 p { font-size: 15px; }
  .ph-hero2-cta a { flex: 1; padding: 0 12px; }
  .ph-hero2-art { max-height: 190px; overflow: hidden; }
  .ph-section, .ph-sell-band { margin-top: 38px; }
  .ph-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ph-product-body { padding: 13px 14px 15px; gap: 8px; }
  .ph-product-body strong { font-size: 15px; }
  .ph-product-price b { font-size: 17px; }
  .ph-steps3 { grid-template-columns: 1fr; gap: 10px; }
  .ph-sell-band { grid-template-columns: 1fr; padding: 26px 20px; gap: 20px; }
  .ph-sell-band .ph-cta-primary { width: 100%; box-sizing: border-box; }
  .ph-sell-band .ph-text-link { display: block; margin: 14px 0 0; text-align: center; }
  .ph-item-buy { padding: 22px 18px; }
  .ph-item-buy h1 { font-size: 22px; }
  .ph-sell-products { grid-template-columns: 1fr; }
  .ph-calc { grid-template-columns: 1fr; }
  .ph-page-head h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .ph-product, .ph-cta-primary, .ph-cta-ghost { transition: none; }
  .ph-product:hover { transform: none; }
}

/* scroll-to-top button stays out of the way until the page is scrolled */
#ph-cs[hidden] { display: none; }
#ph-cs .ph-top { cursor: pointer; font-size: 18px; }

/* ---------- Logo (mark + wordmark) ---------- */
#ph-topbar .ph-logo, #ph-footer .ph-f-brand .ph-logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-size: 22px; font-weight: 800; letter-spacing: -.8px; line-height: 1; }
#ph-topbar .ph-logo { color: #0b1739; }
#ph-topbar .ph-logo img, #ph-footer .ph-f-brand .ph-logo img { width: 34px; height: 34px; border-radius: 9px; }
#ph-footer .ph-f-brand .ph-logo img { box-shadow: 0 0 0 1px rgba(255, 255, 255, .16); }

/* ---------- Sell band artwork ---------- */
.ph-sell-band-side { display: grid; gap: 14px; }
.ph-sell-band-art { display: block; width: 100%; height: auto; border-radius: 16px; }
@media (max-width: 720px) { .ph-hero2-art { max-height: 230px; } .ph-hero2-art img { object-position: center; } }

/* hero artwork fills its column without stretching the banner */
.ph-hero2-art { position: relative; min-height: 340px; }
.ph-hero2-art img { position: absolute; inset: 0; object-position: center; }
@media (max-width: 720px) { .ph-hero2-art { min-height: 0; height: 220px; max-height: none; } }
#ph-buy-modal [hidden] { display: none !important; }

/* ---------- Logo: ribbon symbol + custom wordmark ---------- */
#ph-topbar .ph-logo, #ph-footer .ph-f-brand .ph-logo { gap: 10px; }
#ph-topbar .ph-logo img.ph-logo-mark, #ph-footer .ph-f-brand .ph-logo img.ph-logo-mark { width: auto; height: 30px; border-radius: 0; box-shadow: none; }
#ph-topbar .ph-logo img.ph-logo-word, #ph-footer .ph-f-brand .ph-logo img.ph-logo-word { width: auto; height: 23px; border-radius: 0; box-shadow: none; }
@media (max-width: 720px) {
  #ph-topbar .ph-logo img.ph-logo-mark { height: 27px; }
  #ph-topbar .ph-logo img.ph-logo-word { height: 21px; }
}

/* ---------- 주문 상태 알림 ---------- */
.ph-nav-badge { display: inline-grid; place-items: center; min-width: 17px; height: 17px; margin-left: 5px; padding: 0 5px; border-radius: 999px; background: #e5484d; color: #fff; font-size: 10.5px; font-weight: 800; line-height: 1; vertical-align: 2px; box-sizing: border-box; }
#ph-bottomtab a { position: relative; }
#ph-bottomtab .ph-nav-badge { position: absolute; top: 4px; left: calc(50% + 6px); margin: 0; }
#ph-toasts { position: fixed; z-index: 2147483640; top: calc(var(--ph-topbar-h) + 12px); right: 16px; display: flex; flex-direction: column; gap: 10px; width: min(340px, calc(100vw - 32px)); }
.ph-toast { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: 14px; border-left: 4px solid var(--ph-primary); background: #fff; box-shadow: var(--ph-shadow); color: var(--ph-ink); text-decoration: none; animation: ph-toast-in .25s ease-out; transition: opacity .35s, transform .35s; }
.ph-toast b { font-size: 14px; font-weight: 800; color: var(--ph-primary); }
.ph-toast span { font-size: 14px; font-weight: 700; }
.ph-toast small { font-size: 12.5px; line-height: 1.5; color: var(--ph-ink-soft); }
.ph-toast.ph-out { opacity: 0; transform: translateX(16px); }
@keyframes ph-toast-in { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .ph-toast { animation: none; transition: none; } }

/* ---------- 주문조회 카드 상세 ---------- */
.ph-lookup-order.ph-unread { margin: 0 -12px; padding-left: 16px; padding-right: 16px; border-radius: 12px; background: #f4f7ff; }
.ph-lookup-order-top .ph-order-new { margin-left: auto; padding: 3px 8px; border-radius: 999px; background: #e5484d; color: #fff; font-size: 11px; font-weight: 800; }
.ph-lookup-order-top .ph-order-new + .ph-pill { margin-left: 0; }
.ph-lookup-order-desc { margin: 12px 0 0; font-size: 13px; line-height: 1.55; font-weight: 600; color: var(--ph-ink-soft); }
.ph-lookup-order-desc.ph-p-reject { color: #d64545; }
.ph-lookup-order-desc.ph-p-done { color: #0d8f63; }
.ph-lookup-order-detail { display: grid; gap: 0; margin: 12px 0 0; padding: 4px 14px; border: 1px solid var(--ph-line); border-radius: 12px; background: #fff; }
.ph-lookup-order-detail > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--ph-line); font-size: 13.5px; }
.ph-lookup-order-detail > div:first-child { border-top: 0; }
.ph-lookup-order-detail dt { flex: none; color: var(--ph-ink-soft); font-weight: 600; }
.ph-lookup-order-detail dd { margin: 0; color: var(--ph-ink); font-weight: 800; text-align: right; word-break: break-all; }
.ph-lookup-order-actions { display: flex; gap: 8px; margin-top: 10px; }
.ph-lookup-order-actions .ph-btn { flex: 1; margin: 0; min-height: 44px; }

/* ---------- PC 좌측 상품 패널 ---------- */
#ph-side { display: none; }
@media (min-width: 1200px) {
  #ph-root.ph-shop.ph-has-side { display: grid; grid-template-columns: 224px minmax(0, 1fr); column-gap: 28px; max-width: 1280px; align-content: start; }
  #ph-root.ph-shop.ph-has-side > * { grid-column: 2; min-width: 0; }
  #ph-root.ph-shop.ph-has-side > #ph-side { display: block; grid-column: 1; grid-row: 1 / span 40; align-self: start; position: sticky; top: calc(var(--ph-topbar-h) + 20px); max-height: calc(100vh - var(--ph-topbar-h) - 40px); overflow-y: auto; padding: 16px 10px 12px; border: 1px solid var(--ph-line); border-radius: 16px; background: #fff; box-sizing: border-box; scrollbar-width: thin; }
  #ph-side h2 { margin: 0 8px 8px; font-size: 13px; font-weight: 800; color: var(--ph-ink-soft); letter-spacing: .02em; }
  #ph-side ul { margin: 0; padding: 0; list-style: none; }
  #ph-side li a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; color: var(--ph-ink); text-decoration: none; font-size: 13.5px; font-weight: 700; }
  #ph-side li a:hover { background: var(--ph-bg); }
  #ph-side li a.ph-on { background: #e8effe; color: var(--ph-primary); }
  #ph-side li img { flex: none; width: 40px; height: 25px; border-radius: 5px; object-fit: cover; border: 1px solid var(--ph-line); background: #fff; }
  #ph-side li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #ph-side li em { flex: none; font-style: normal; font-size: 12px; font-weight: 800; color: #e5484d; }
  .ph-side-links { display: grid; gap: 2px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--ph-line); }
  .ph-side-links a { padding: 8px; border-radius: 10px; color: var(--ph-ink-soft); text-decoration: none; font-size: 13.5px; font-weight: 700; }
  .ph-side-links a:hover { background: var(--ph-bg); color: var(--ph-ink); }
}

/* ---------- 로고 크기 ---------- */
#ph-topbar .ph-logo img.ph-logo-mark { height: 34px; }
#ph-topbar .ph-logo img.ph-logo-word { height: 27px; }
@media (max-width: 720px) {
  #ph-topbar .ph-logo img.ph-logo-mark { height: 29px; }
  #ph-topbar .ph-logo img.ph-logo-word { height: 23px; }
}

/* 시세표: 아이콘 옆으로 상품명이 줄바꿈돼도 아이콘 아래로 내려가지 않게 한다. */
.ph-rate-table td:first-child { position: relative; padding-left: 48px; word-break: keep-all; }
.ph-rate-table td:first-child img { position: absolute; left: 10px; top: 50%; margin: -14px 0 0; }
@media (max-width: 480px) {
  .ph-rate-table { font-size: 13.5px; }
  .ph-rate-table th, .ph-rate-table td { padding-right: 6px; }
  .ph-rate-table th:last-child { white-space: normal; }
}

/* ---------- 팝업 (관리자 콘솔에서 등록) ---------- */
#ph-popups { position: fixed; inset: 0; z-index: 2147483300; pointer-events: none; }
#ph-popups > * { pointer-events: auto; }
.ph-popup-dim { position: absolute; inset: 0; background: rgba(11, 23, 57, .45); }
.ph-popup-slot { position: absolute; display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - var(--ph-topbar-h) - 40px); }
.ph-popup-slot:empty { display: none; }
.ph-popup-slot.ph-left { left: 24px; top: calc(var(--ph-topbar-h) + 20px); align-items: flex-start; overflow-y: auto; }
.ph-popup-slot.ph-right { right: 24px; top: calc(var(--ph-topbar-h) + 20px); align-items: flex-end; overflow-y: auto; }
.ph-popup-slot.ph-center { left: 50%; top: 50%; transform: translate(-50%, -50%); max-height: calc(100vh - 32px); }
.ph-popup { display: flex; flex-direction: column; width: 380px; max-width: calc(100vw - 32px); max-height: inherit; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 20px 60px rgba(11, 23, 57, .28); animation: ph-popup-in .22s ease-out; }
.ph-popup.ph-size-s { width: 280px; }
.ph-popup.ph-size-l { width: 520px; }
.ph-popup-image { display: block; flex: 0 1 auto; min-height: 0; overflow: hidden; background: var(--ph-bg); }
.ph-popup-image img { display: block; width: 100%; height: auto; max-height: 62vh; object-fit: contain; }
.ph-popup-text { padding: 18px 20px 16px; overflow-y: auto; }
.ph-popup-text strong { display: block; font-size: 17px; font-weight: 800; line-height: 1.4; color: var(--ph-ink); }
.ph-popup-text p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--ph-ink-soft); word-break: keep-all; }
.ph-popup-text strong:only-child, .ph-popup-text p:first-child { margin-top: 0; }
.ph-popup-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; margin-top: 14px; padding: 0 18px; border-radius: 10px; background: var(--ph-primary); color: #fff; font-size: 14.5px; font-weight: 800; text-decoration: none; }
.ph-popup-foot { display: flex; flex: none; border-top: 1px solid var(--ph-line); }
.ph-popup-foot button { flex: 1; min-height: 44px; border: 0; background: #fff; color: var(--ph-ink-soft); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.ph-popup-foot button + button { border-left: 1px solid var(--ph-line); color: var(--ph-ink); }
.ph-popup-foot button:hover { background: var(--ph-bg); }
@keyframes ph-popup-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .ph-popup { animation: none; } }
@media (max-width: 720px) {
  .ph-popup, .ph-popup.ph-size-s, .ph-popup.ph-size-l { width: min(360px, calc(100vw - 40px)); }
  .ph-popup.ph-size-s { width: min(290px, calc(100vw - 40px)); }
  .ph-popup-image img { max-height: 56vh; }
}
