/* 화면별 스타일 — theme.css 의 토큰 위에서만 쓴다. */

/* ═══════ 홈 · 인스타그램 프로필 카드 ═══════
   사용자 요청: 팔로워 추이 그래프 카드를 없애고, 이 카드를
   인스타그램 프로필 화면 그대로 보이게 한다. */
.ig {
  background: var(--card); border-radius: var(--r-card);
  box-shadow: var(--sh); padding: 20px 18px 18px; margin-bottom: 14px;
}
.ig-top { display: flex; align-items: center; gap: 18px; }
.ig-av {
  width: 84px; height: 84px; border-radius: 50%; flex: 0 0 auto; position: relative;
  background: linear-gradient(135deg, #FEDA75, #D62976 45%, #962FBF 70%, #4F5BD5);
  display: grid; place-items: center;
}
.ig-av > span {
  width: 76px; height: 76px; border-radius: 50%; background: var(--card);
  display: grid; place-items: center; overflow: hidden;
  font-size: 30px; font-weight: 800; color: var(--muted);
}
.ig-av img { width: 100%; height: 100%; object-fit: cover; }
.ig-nums { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.ig-nums b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.ig-nums span { font-size: 12.5px; color: var(--text-2); }
.ig-meta { margin-top: 14px; }
.ig-name { font-size: 14.5px; font-weight: 800; }
.ig-handle { font-size: 13px; color: var(--muted); }
.ig-bio { font-size: 13.5px; margin-top: 6px; white-space: pre-line; line-height: 1.5; }
.ig-web { font-size: 13.5px; color: var(--accent); font-weight: 700; margin-top: 4px; word-break: break-all; }
.ig-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.ig-acts button {
  padding: 9px; border-radius: 10px; border: 0; cursor: pointer;
  background: var(--card-2); color: var(--text); font-size: 13px; font-weight: 700;
}
.ig-acts button.pri { background: var(--accent); color: #fff; }
.ig-tabs { display: flex; margin-top: 16px; border-top: 1px solid var(--line); }
.ig-tabs div {
  flex: 1; text-align: center; padding: 11px 0; color: var(--faint);
  border-bottom: 2px solid transparent;
}
.ig-tabs div.on { color: var(--text); border-bottom-color: var(--text); }
.ig-tabs svg { width: 20px; height: 20px; vertical-align: middle; }

.sample-tag {
  display: inline-flex; align-items: center; gap: 5px; margin-bottom: 10px;
  font-size: 11.5px; font-weight: 700; color: #8A5B00;
  background: var(--warn-bg); border-radius: 999px; padding: 5px 11px;
}

/* ═══════ CONTENT CADENCE ═══════ */
.cad-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 14px; justify-items: center; }
.cad-grid .hd { text-align: center; font-size: 11.5px; color: var(--muted); font-weight: 700; padding-bottom: 2px; }
.cad-cell {
  width: 100%; max-width: 34px; aspect-ratio: 1; border-radius: 50%;
  background: var(--card-2); display: grid; place-items: center;
  font-size: 10.5px; color: var(--faint);
}
.cad-cell.on { background: var(--accent); color: #fff; font-weight: 800; }
.cad-cell.blank { background: transparent; }
.cad-msg { text-align: center; font-size: 13px; color: var(--text-2); margin-top: 14px; }

/* ═══════ 콘텐츠 그리드 ═══════ */
.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; border-radius: 14px; overflow: hidden; }
.mcell { position: relative; aspect-ratio: 1; display: grid; place-items: end start; padding: 7px; }
.mcell .cap {
  position: absolute; inset: 0; padding: 8px; font-size: 10.5px; font-weight: 800;
  color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.5); line-height: 1.25; overflow: hidden;
}
.mcell .st {
  position: relative; z-index: 2; font-size: 10.5px; font-weight: 700; color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.6); display: flex; gap: 8px;
}
.mcell .rl { position: absolute; top: 6px; right: 6px; z-index: 2; color: #fff; }
.mcell .rl svg { width: 15px; height: 15px; }

/* ═══════ 멀티링크 편집 ═══════ */
.url-box {
  background: var(--card-2); border-radius: 14px; padding: 13px 14px; margin: 12px 0;
}
.url-box .lbl { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted); font-weight: 700; }
.url-box .u { font-size: 13.5px; font-weight: 700; margin-top: 4px; word-break: break-all; }
.url-acts { display: flex; gap: 14px; margin-top: 10px; }
.url-acts button { border: 0; background: transparent; color: var(--accent); font-size: 13px; font-weight: 800; cursor: pointer; padding: 0; }

.be { background: var(--card-2); border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.be-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.be-top .nm { flex: 1; font-size: 13px; font-weight: 800; color: var(--text-2); }
.be-top button {
  width: 30px; height: 30px; border-radius: 9px; border: 0; cursor: pointer;
  background: var(--card); color: var(--text-2); display: grid; place-items: center;
}
.be-top button svg { width: 16px; height: 16px; }
.be-top button:disabled { opacity: .32; }
.be-top button.del { color: var(--bad); }
.be input { background: var(--card); }

.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.pick button {
  display: flex; align-items: center; gap: 10px; text-align: left;
  background: var(--card-2); border: 0; border-radius: 14px; padding: 12px; cursor: pointer;
}
.pick .t { font-size: 13.5px; font-weight: 800; }
.pick .d { font-size: 11px; color: var(--muted); }
.pick button:disabled { opacity: .5; cursor: not-allowed; }

/* 디자인 도구 */
.dgroup { margin-bottom: 18px; }
.dgroup .gl { font-size: 12.5px; font-weight: 800; color: var(--text-2); margin-bottom: 8px; }
.swatches { display: flex; gap: 9px; flex-wrap: wrap; }
.sw {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.sw.on { border-color: var(--text); }
.tprev {
  width: 54px; height: 40px; border-radius: 10px; border: 1.5px solid var(--line-2);
  cursor: pointer; overflow: hidden; position: relative;
}
.tprev.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-bg); }
.tprev i { position: absolute; left: 8px; right: 8px; height: 6px; border-radius: 3px; }

/* 폰 미리보기 */
.phone { border: 8px solid #14141A; border-radius: 34px; overflow: hidden; box-shadow: var(--sh-lg); background: #14141A; }
.phone-in { border-radius: 26px; overflow: hidden; max-height: 560px; overflow-y: auto; background: #fff; }

/* ═══════ 공개 페이지 (.pp) ═══════ */
.pp {
  background: var(--pbg); color: var(--pfg); font-family: var(--pfont);
  padding: 34px 18px 26px; min-height: 100%;
}
.pp-head { text-align: center; margin-bottom: 18px; }
.pp-av {
  width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 12px; overflow: hidden;
  background: var(--pcard); border: var(--pbw) solid var(--pline);
  display: grid; place-items: center; font-size: 28px; font-weight: 800;
}
.pp-av img { width: 100%; height: 100%; object-fit: cover; }
.pp-name { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.pp-handle { font-size: 12.5px; color: var(--pmuted); margin-top: 1px; }
.pp-bio { font-size: 13px; color: var(--pmuted); margin-top: 8px; white-space: pre-line; line-height: 1.55; }

.pp-search {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
  background: var(--pfillbg); border: var(--pbw) solid var(--pline);
  border-radius: 999px; padding: 9px 14px; color: var(--pmuted);
}
.pp-search svg { width: 17px; height: 17px; flex: 0 0 auto; }
.pp-search input {
  flex: 1; border: 0; background: transparent; padding: 0; font-size: 13.5px;
  color: var(--pfg); outline: none;
}
.pp-search input::placeholder { color: var(--pmuted); }

.pp-blocks { display: grid; gap: 10px; }
.pp-sec { font-size: 11.5px; font-weight: 800; color: var(--pmuted); letter-spacing: .08em; text-align: center; margin: 12px 0 0; }
.pp-card {
  display: flex; align-items: center; gap: 12px; position: relative; text-decoration: none;
  padding: 14px 15px; border-radius: var(--prad); color: var(--pfg);
  background: var(--pfillbg); border: var(--pbw) solid var(--pline); box-shadow: var(--psh);
}
.pp-th { width: 44px; height: 44px; border-radius: calc(var(--prad) * .55); object-fit: cover; flex: 0 0 auto; }
.pp-th.ph { display: grid; place-items: center; background: var(--pcard); color: var(--pmuted); }
.pp-th.ph svg { width: 22px; height: 22px; }
.pp-cb { min-width: 0; flex: 1; }
.pp-t { font-size: 14.5px; font-weight: 700; }
.pp-d { font-size: 12px; color: var(--pmuted); margin-top: 2px; }
.pp-price { font-size: 14px; font-weight: 800; color: var(--pacc); margin-top: 2px; }
.pp-badge {
  font-style: normal; font-size: 10px; font-weight: 800; vertical-align: middle;
  padding: 2px 7px; border-radius: 999px; margin-left: 4px; background: var(--pacc); color: #fff;
}
.pp-snsrow { display: flex; justify-content: center; gap: 9px; }
.pp-sns {
  width: 42px; height: 42px; border-radius: 50%; text-decoration: none;
  display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--pfg);
  background: var(--pfillbg); border: var(--pbw) solid var(--pline);
}
.pp-form {
  display: block; text-align: center; text-decoration: none; position: relative;
  padding: 18px 15px; border-radius: var(--prad); color: var(--pfg);
  background: var(--pfillbg); border: var(--pbw) dashed var(--pacc);
}
.pp-ft { font-size: 15px; font-weight: 800; }
.pp-fd { font-size: 12px; color: var(--pmuted); margin-top: 3px; }
.pp-fbtn {
  display: inline-block; margin-top: 11px; padding: 9px 22px; border-radius: 999px;
  background: var(--pacc); color: #fff; font-weight: 800; font-size: 13.5px;
}
.pp-notice {
  padding: 13px 15px; border-radius: var(--prad); font-size: 13px; font-weight: 700;
  background: var(--pcard); border-left: 3px solid var(--pacc);
}
.pp-video { border-radius: var(--prad); overflow: hidden; border: var(--pbw) solid var(--pline); background: var(--pfillbg); }
.pp-vthumb { aspect-ratio: 16/9; display: grid; place-items: center; background: var(--pcard); color: var(--pmuted); }
.pp-vthumb svg { width: 38px; height: 38px; }
.pp-vt { font-size: 13.5px; font-weight: 700; padding: 10px 14px; }
.pp-img { display: block; position: relative; border-radius: var(--prad); overflow: hidden; text-decoration: none; color: var(--pfg); box-shadow: var(--psh); }
.pp-img img { width: 100%; display: block; }
.pp-cap { font-size: 12.5px; padding: 9px 12px; background: var(--pfillbg); }
.pp-feed { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; }
.pp-fcell { aspect-ratio: 1; border-radius: calc(var(--prad) * .4); }
.pp-cnt {
  position: absolute; top: 7px; right: 9px; font-size: 10px; font-weight: 800;
  color: var(--pmuted); background: var(--pbg); border: 1px solid var(--pline);
  border-radius: 999px; padding: 1px 6px;
}
.pp-empty { text-align: center; font-size: 13px; color: var(--pmuted); padding: 36px 10px; border: 1px dashed var(--pline); border-radius: var(--prad); }
.pp-powered {
  display: block; text-align: center; margin-top: 24px; font-size: 11px;
  color: var(--pmuted); text-decoration: none; opacity: .85;
}
.pp-hide { display: none !important; }

/* 실제 공개 화면 */
#screen .pp.full { margin: 0 -16px; min-height: 92vh; }
.pub-bar {
  margin: 0 -16px 0; padding: 9px 16px; font-size: 12px; display: flex;
  justify-content: space-between; gap: 10px; background: var(--accent-bg); color: #2A4FA8;
}
.pub-bar a { color: var(--accent); font-weight: 800; text-decoration: none; white-space: nowrap; }

/* ═══════ 지표 막대 ═══════ */
.mbar { height: 6px; border-radius: 99px; background: var(--card-2); margin-top: 6px; }
.mbar i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }

/* ═══════ 캠페인 ═══════ */
.camp { background: var(--card); border-radius: 18px; box-shadow: var(--sh); padding: 16px; margin-bottom: 10px; }
.camp .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.camp .br { font-size: 13.5px; font-weight: 800; }
.camp .ds { font-size: 12px; color: var(--muted); margin-top: 6px; }
.camp .bot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.camp .fee { font-size: 17px; font-weight: 800; }

/* ═══════ 커뮤니티 ═══════ */
.cm { background: var(--card); border-radius: 18px; box-shadow: var(--sh); padding: 15px; margin-bottom: 10px; }
.cm .hd { display: flex; align-items: center; gap: 9px; }
.cm .ava { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-bg); color: var(--accent);
  display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.cm .who { font-size: 13px; font-weight: 800; }
.cm .when { font-size: 11.5px; color: var(--faint); }
.cm .bd { font-size: 13.5px; margin-top: 9px; line-height: 1.6; }
.cm .ft { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--muted); font-weight: 700; }

/* ═══════ AI 대화 ═══════ */
.ai-log { display: grid; gap: 10px; margin-bottom: 14px; }
.ai-msg { max-width: 86%; padding: 12px 14px; border-radius: 16px; font-size: 13.5px; line-height: 1.6; white-space: pre-line; }
.ai-msg.bot { background: var(--card); box-shadow: var(--sh); border-bottom-left-radius: 5px; }
.ai-msg.me { background: var(--accent); color: #fff; margin-left: auto; border-bottom-right-radius: 5px; }
.ai-confirm { background: var(--card); border: 1.5px solid var(--accent); border-radius: 16px; padding: 15px; }
.ai-confirm .cl { font-size: 11.5px; font-weight: 800; color: var(--accent); letter-spacing: .06em; }
.ai-confirm .rowk { display: flex; justify-content: space-between; font-size: 13px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.ai-confirm .rowk:last-of-type { border-bottom: 0; }
.ai-confirm .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }

/* ═══════ 요금제 ═══════ */
.plan { background: var(--card); border-radius: 20px; box-shadow: var(--sh); padding: 20px; margin-bottom: 12px; position: relative; }
.plan.on { box-shadow: 0 0 0 2px var(--accent), var(--sh); }
.plan .pn { font-size: 15px; font-weight: 800; }
.plan .pp2 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; margin: 4px 0 2px; }
.plan .pp2 s { font-size: 15px; color: var(--faint); font-weight: 600; margin-right: 6px; }
.plan ul { list-style: none; margin: 12px 0 0; padding: 0; }
.plan li { font-size: 13.5px; padding: 6px 0 6px 24px; position: relative; }
.plan li::before {
  content: ''; position: absolute; left: 2px; top: 12px; width: 11px; height: 6px;
  border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg);
}
.plan .tag { position: absolute; top: 16px; right: 16px; }
