/* ==========================================================================
   서브페이지 · 회원 · 마이페이지 · 비교 · 고객센터
   ========================================================================== */

/* ---------- 인증(로그인/회원가입) ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-side {
  background:
    radial-gradient(80% 80% at 80% 10%, rgba(47,91,255,.38), transparent 60%),
    radial-gradient(60% 60% at 10% 90%, rgba(0,194,168,.18), transparent 65%),
    linear-gradient(160deg, #0a1020, #070c18 60%, #05080f);
  color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.auth-side::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(60% 60% at 40% 40%, #000, transparent 80%);
}
.auth-side h2 { color: #fff; font-size: 1.9rem; line-height: 1.3; margin-bottom: 1rem; }
.auth-side p { color: rgba(255,255,255,.6); font-size: .92rem; line-height: 1.8; }
.auth-points { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .9rem; position: relative; }
.auth-points li { display: flex; gap: .6rem; font-size: .88rem; color: rgba(255,255,255,.75); align-items: flex-start; }
.auth-points .material-icons { color: var(--pn-teal); font-size: 20px; }
.auth-side .mini-quote {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 1.1rem 1.2rem; backdrop-filter: blur(10px);
  transition: transform .4s var(--pn-ease), background .3s ease;
}
.auth-side .mini-quote:hover { transform: translateY(-4px); background: rgba(255,255,255,.1); }
.auth-main { padding: 3rem 2.5rem; display: flex; align-items: center; justify-content: center; background: #fff; }
.auth-card { width: 100%; max-width: 460px; }
.auth-card.wide { max-width: 720px; }

.auth-tabs { display: flex; gap: .3rem; background: var(--pn-canvas); padding: .3rem; border-radius: 14px; margin-bottom: 1.6rem; }
.auth-tab {
  flex: 1; border: 0; background: transparent; border-radius: 11px; padding: .55rem .4rem;
  font-size: .82rem; font-weight: 700; color: var(--pn-slate);
  transition: all .3s var(--pn-ease);
  display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
}
.auth-tab .material-icons { font-size: 16px; }
.auth-tab:hover { color: var(--pn-ink); }
.auth-tab.active { background: #fff; color: var(--pn-brand); box-shadow: var(--pn-shadow-sm); }

.sns-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.sns-btn {
  border: 1px solid var(--pn-line); background: #fff; border-radius: 12px;
  padding: .6rem .4rem; font-size: .8rem; font-weight: 700; color: var(--pn-ink-2);
  display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
  transition: all .25s var(--pn-ease);
}
.sns-btn:hover { transform: translateY(-2px); box-shadow: var(--pn-shadow-sm); border-color: #cfd9ee; }
.sns-btn.kakao { background: #fee500; border-color: #fee500; color: #3c1e1e; }
.sns-btn.kakao:hover { box-shadow: 0 8px 20px rgba(254,229,0,.5); }
.sns-btn.naver { background: #03c75a; border-color: #03c75a; color: #fff; }
.sns-btn.naver:hover { box-shadow: 0 8px 20px rgba(3,199,90,.4); }
.sns-btn.google { background: #fff; }
.sns-btn.google:hover { border-color: #dadce0; }

.divider-text { display: flex; align-items: center; gap: .8rem; color: var(--pn-slate); font-size: .76rem; margin: 1.4rem 0; }
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--pn-line); }

.phone-auth { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
.timer-text { font-variant-numeric: tabular-nums; font-size: .78rem; color: var(--pn-red); font-weight: 700; }

.biz-no { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: .4rem; align-items: center; }
.biz-no span { color: var(--pn-slate); }

.agree-box { border: 1px solid var(--pn-line); border-radius: 14px; padding: 1rem; background: #fbfcfe; }
.agree-all { font-weight: 800; font-size: .9rem; }
.agree-item { font-size: .82rem; color: var(--pn-slate); }
.agree-item a { color: var(--pn-brand); font-weight: 600; }
.agree-item a:hover { text-decoration: underline; }

.form-section-title { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--pn-slate); font-weight: 800; margin: 1.8rem 0 .9rem; padding-bottom: .5rem; border-bottom: 1px solid var(--pn-line); }

.field-chip-group { display: flex; flex-wrap: wrap; gap: .4rem; }
.field-chip {
  border: 1px solid var(--pn-line); background: #fff; border-radius: 999px;
  padding: .42rem .8rem; font-size: .8rem; font-weight: 600; color: var(--pn-slate);
  transition: all .25s var(--pn-ease); cursor: pointer;
}
.field-chip:hover { border-color: rgba(47,91,255,.45); color: var(--pn-brand); transform: translateY(-2px); }
.field-chip.active { background: var(--pn-brand); border-color: var(--pn-brand); color: #fff; box-shadow: 0 6px 16px rgba(47,91,255,.25); }

.upload-box {
  border: 1.5px dashed #c9d4e6; border-radius: 14px; padding: 1.2rem; text-align: center;
  background: #fbfcfe; transition: all .3s var(--pn-ease); cursor: pointer;
}
.upload-box:hover { border-color: var(--pn-brand); background: #f4f8ff; }
.upload-box .material-icons { font-size: 34px; color: #9fb0c9; transition: color .25s ease, transform .3s var(--pn-ease); }
.upload-box:hover .material-icons { color: var(--pn-brand); transform: translateY(-3px); }
.upload-box .up-title { font-size: .86rem; font-weight: 700; color: var(--pn-ink); margin-top: .4rem; }
.upload-box .up-desc { font-size: .74rem; color: var(--pn-slate); }

/* ---------- 마이페이지 ---------- */
.app-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; background: var(--pn-canvas); }
.app-side {
  background: #fff; border-right: 1px solid var(--pn-line); padding: 1.4rem 1rem;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.app-side .side-brand { display: flex; align-items: center; gap: .6rem; padding: .3rem .5rem 1.4rem; }
.app-user {
  display: flex; align-items: center; gap: .7rem; padding: .9rem .8rem;
  background: var(--pn-canvas); border-radius: 14px; margin-bottom: 1.2rem;
}
.app-user .avatar {
  width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--pn-brand), var(--pn-violet));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .9rem;
}
.app-user .u-name { font-size: .86rem; font-weight: 800; }
.app-user .u-role { font-size: .7rem; color: var(--pn-slate); }

.side-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: .18rem; }
.side-nav a {
  display: flex; align-items: center; gap: .6rem; padding: .62rem .8rem; border-radius: 11px;
  font-size: .86rem; font-weight: 600; color: var(--pn-ink-2); position: relative;
  transition: all .25s var(--pn-ease);
}
.side-nav a .material-icons { font-size: 19px; color: #93a1b8; transition: color .2s ease, transform .3s var(--pn-ease); }
.side-nav a:hover { background: var(--pn-canvas); color: var(--pn-brand); transform: translateX(3px); }
.side-nav a:hover .material-icons { color: var(--pn-brand); }
.side-nav a.active { background: var(--pn-brand-soft); color: var(--pn-brand); font-weight: 800; }
.side-nav a.active .material-icons { color: var(--pn-brand); }
.side-nav a.active::before { content: ''; position: absolute; left: -1rem; top: 20%; bottom: 20%; width: 3px; border-radius: 0 3px 3px 0; background: var(--pn-brand); }
.side-nav .nav-label { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #a9b4c6; font-weight: 800; padding: .9rem .8rem .35rem; }

.app-main { padding: 1.6rem 1.8rem 3rem; min-width: 0; }
.app-topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.app-topbar h1 { font-size: 1.45rem; margin: 0; }
.app-topbar .sub { font-size: .82rem; color: var(--pn-slate); }

.stat-card { padding: 1.15rem 1.2rem; border-radius: 16px; background: #fff; border: 1px solid var(--pn-line); transition: all .35s var(--pn-ease); height: 100%; }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--pn-shadow); border-color: #cfd9ee; }
.stat-card .sc-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin-bottom: .7rem; }
.stat-card .sc-label { font-size: .76rem; color: var(--pn-slate); }
.stat-card .sc-value { font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em; color: var(--pn-ink); }
.stat-card .sc-value small { font-size: .8rem; color: var(--pn-slate); font-weight: 600; }

.panel { background: #fff; border: 1px solid var(--pn-line); border-radius: 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--pn-line); }
.panel-head h5 { font-size: .98rem; margin: 0; display: flex; align-items: center; gap: .4rem; }
.panel-head h5 .material-icons { font-size: 19px; color: var(--pn-brand); }
.panel-body { padding: 1.1rem 1.2rem; }

.status-chip { display: inline-flex; align-items: center; gap: .25rem; font-size: .72rem; font-weight: 700; padding: .25rem .55rem; border-radius: 7px; white-space: nowrap; }
.status-chip .material-icons { font-size: 14px; }
.st-done { background: rgba(0,194,168,.12); color: #00806f; }
.st-progress { background: rgba(47,91,255,.12); color: var(--pn-brand); }
.st-wait { background: rgba(255,176,32,.16); color: #966100; }
.st-hold { background: rgba(240,75,87,.1); color: #c92c3a; }
.st-draft { background: #eef1f6; color: #6b7789; }

.timeline { position: relative; padding-left: 1.6rem; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--pn-line); }
.tl-item { position: relative; padding-bottom: 1.1rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ''; position: absolute; left: -1.6rem; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid #cfd9ee; transition: all .25s ease; }
.tl-item.done::before { border-color: var(--pn-teal); background: var(--pn-teal); }
.tl-item.now::before { border-color: var(--pn-brand); background: var(--pn-brand); box-shadow: 0 0 0 4px rgba(47,91,255,.15); }
.tl-item .tl-title { font-size: .86rem; font-weight: 700; }
.tl-item .tl-meta { font-size: .74rem; color: var(--pn-slate); }

.progress-soft { height: 8px; border-radius: 99px; background: #eef2f8; overflow: hidden; }
.progress-soft span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--pn-brand), var(--pn-violet)); transition: width 1s var(--pn-ease); }

.avatar-lg { width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(135deg, #eef3ff, #e9e2ff); color: var(--pn-brand); display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; }

/* ---------- 파트너 목록 ---------- */
.filter-bar { background: #fff; border: 1px solid var(--pn-line); border-radius: 16px; padding: 1rem 1.1rem; box-shadow: var(--pn-shadow-sm); }
.filter-label { font-size: .72rem; font-weight: 800; color: var(--pn-slate); letter-spacing: .06em; text-transform: uppercase; margin-bottom: .4rem; }

.partner-row { padding: 1.2rem; display: flex; gap: 1rem; align-items: flex-start; }
.partner-row .pc-body { flex: 1; min-width: 0; }
.partner-row .pc-actions { flex: 0 0 auto; display: flex; flex-direction: column; gap: .4rem; }
@media (max-width: 767.98px) {
  .partner-row { flex-direction: column; }
  .partner-row .pc-actions { flex-direction: row; width: 100%; }
  .partner-row .pc-actions .btn { flex: 1; }
}

/* ---------- 비교 테이블 ---------- */
.compare-table { font-size: .85rem; }
.compare-table th, .compare-table td { vertical-align: middle; }
.compare-table thead th { position: sticky; top: 0; z-index: 2; }
.compare-table .col-auto { background: #f6f9ff; }
.compare-table .col-best { background: #f2fbf8; }
.compare-table .diff-up { color: var(--pn-red); font-weight: 700; }
.compare-table .diff-down { color: #00806f; font-weight: 700; }
.ai-insight { background: linear-gradient(160deg, #f5f7ff, #fbf8ff); border: 1px solid #e2e4fb; border-radius: 16px; padding: 1.2rem; }
.ai-insight h6 { display: flex; align-items: center; gap: .4rem; font-size: .9rem; }
.ai-insight h6 .material-icons { color: var(--pn-violet); }
.ai-insight li { font-size: .82rem; color: var(--pn-slate); margin-bottom: .5rem; line-height: 1.6; }
.ai-insight li strong { color: var(--pn-ink); }

/* ---------- 고객센터 ---------- */
.faq-item { border: 1px solid var(--pn-line); border-radius: 14px; margin-bottom: .6rem; overflow: hidden; background: #fff; transition: border-color .25s ease, box-shadow .25s ease; }
.faq-item:hover { border-color: rgba(47,91,255,.35); box-shadow: var(--pn-shadow-sm); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; background: none; border: 0; padding: 1rem 1.1rem; text-align: left; font-size: .9rem; font-weight: 700; color: var(--pn-ink); }
.faq-q .material-icons { color: var(--pn-slate); transition: transform .35s var(--pn-ease), color .2s ease; font-size: 20px; }
.faq-q:hover .material-icons { color: var(--pn-brand); }
.faq-item.open .faq-q .material-icons { transform: rotate(180deg); color: var(--pn-brand); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--pn-ease); }
.faq-a .inner { padding: 0 1.1rem 1rem; font-size: .85rem; color: var(--pn-slate); line-height: 1.8; }

.chat-panel { background: #fff; border: 1px solid var(--pn-line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; height: 520px; box-shadow: var(--pn-shadow); }
.chat-head { padding: .9rem 1.1rem; background: linear-gradient(120deg, #0d1526, #16204a); color: #fff; display: flex; align-items: center; gap: .6rem; }
.chat-head .bot-avatar { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.14); display: grid; place-items: center; }
.chat-body { flex: 1; overflow-y: auto; padding: 1.1rem; background: #f8fafd; display: flex; flex-direction: column; gap: .7rem; }
.msg { max-width: 82%; padding: .65rem .85rem; border-radius: 14px; font-size: .84rem; line-height: 1.6; animation: msgIn .3s var(--pn-ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.msg.bot { background: #fff; border: 1px solid var(--pn-line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.user { background: var(--pn-brand); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: .3rem; padding: .6rem 1rem; border-top: 1px solid var(--pn-line); background: #fff; }
.chat-suggest button { font-size: .72rem; border: 1px solid var(--pn-line); background: #fff; border-radius: 999px; padding: .3rem .6rem; color: var(--pn-slate); transition: all .2s ease; }
.chat-suggest button:hover { border-color: var(--pn-brand); color: var(--pn-brand); background: var(--pn-brand-soft); }
.chat-input { display: flex; gap: .4rem; padding: .7rem 1rem; border-top: 1px solid var(--pn-line); background: #fff; }
.chat-input .form-control { border-radius: 10px; font-size: .85rem; }

/* ---------- 약관 ---------- */
.legal-wrap { max-width: 860px; margin: 0 auto; }
.legal-toc { position: sticky; top: 100px; font-size: .82rem; }
.legal-toc a { display: block; padding: .35rem .6rem; border-left: 2px solid var(--pn-line); color: var(--pn-slate); transition: all .2s ease; }
.legal-toc a:hover { border-color: var(--pn-brand); color: var(--pn-brand); background: #f7f9ff; }
.legal-body h5 { font-size: 1rem; margin: 2rem 0 .6rem; padding-top: .4rem; }
.legal-body h6 { font-size: .9rem; margin: 1.2rem 0 .4rem; }
.legal-body p, .legal-body li { font-size: .86rem; line-height: 1.9; color: var(--pn-ink-2); }
.legal-body .meta-line { font-size: .78rem; color: var(--pn-slate); background: var(--pn-canvas); border-radius: 10px; padding: .7rem .9rem; }
.legal-body table { font-size: .82rem; }

@media (max-width: 991.98px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-main { padding: 2rem 1.2rem; }
  .app-shell { grid-template-columns: 1fr; }
  .app-side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--pn-line); }
  .side-nav { display: flex; overflow-x: auto; gap: .3rem; padding-bottom: .3rem; }
  .side-nav a { white-space: nowrap; }
  .side-nav a.active::before { display: none; }
  .side-nav .nav-label { display: none; }
  .app-main { padding: 1.2rem 1rem 2.4rem; }
  .legal-toc { position: static; margin-bottom: 1.5rem; }
}
