/* MangoAiClip — 휴대폰 우선. 말랑한 파스텔(분홍·복숭아·라벤더) + 둥근 모양
   글꼴: 繁中 = Huninn(jf open 粉圓, 영상 자막과 같은 둥근 글꼴) · 한국어 = 도현(Do Hyeon) · 영문·숫자 = Poppins */
:root {
  --bg: #fff8fa;
  --card: #ffffff;
  --ink: #3b2a3f;
  --sub: #8b7a90;
  --line: #f5e4ec;
  --pink: #ff6f9f;
  --pink-deep: #ec4b82;
  --pink-soft: #ffeaf2;
  --peach: #ffa86b;
  --peach-soft: #fff0e4;
  --lilac: #a98bff;
  --lilac-soft: #f2edff;
  --mint: #4fc9a4;
  --mint-soft: #e2f7ef;
  --sky: #6db8ff;
  --sky-soft: #e8f4ff;
  --butter: #ffd36b;
  --ok: #2fae7a;
  --warn: #d89200;
  --bad: #e5506a;
  /* 예전 이름(운영자 화면 등에서 씀) */
  --mango: var(--pink);
  --mango-deep: var(--pink-deep);
  --mango-soft: var(--pink-soft);

  --grad: linear-gradient(120deg, #ff8cb0 0%, #ff6f9f 45%, #ffa86b 100%);
  --grad-soft: linear-gradient(135deg, #ffeaf2 0%, #fff0e4 55%, #f2edff 100%);
  --radius: 24px;
  --shadow: 0 10px 30px rgba(236, 75, 130, .08), 0 2px 6px rgba(59, 42, 63, .04);
  --shadow-lg: 0 24px 60px rgba(236, 75, 130, .18);

  --font-zh: "Poppins", "Huninn", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --font-ko: "Poppins", "Do Hyeon", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-family: var(--font-zh);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
html:lang(ko) { font-family: var(--font-ko); }
/* 도현은 같은 크기에서 작아 보여서 한 단계 키운다 */
html:lang(ko) body { font-size: 17px; }
html:lang(ko) .muted { font-size: 15.5px; }
/* 도현·Huninn은 굵기가 하나뿐이라 가짜 굵게를 끈다(Poppins로 그리는 영문·숫자는 그대로 굵게) */
html:lang(ko), html:lang(zh) { font-synthesis: none; }
/* 언어별 긴 문서 블록: 고른 언어만 보인다 */
[data-lang] { display: none; }
html[data-ui="zh"] [data-lang="zh"], html[data-ui="ko"] [data-lang="ko"] { display: block; }
html:not([data-ui]) [data-lang="zh"] { display: block; }

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body { line-height: 1.65; font-size: 16px; position: relative; overflow-x: hidden; }
/* 은은한 파스텔 배경 얼룩 */
body::before { content: ""; position: fixed; inset: -20vh -20vw auto auto; width: 70vw; height: 70vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(closest-side, rgba(255, 143, 180, .22), transparent); z-index: -1; pointer-events: none; }
body::after { content: ""; position: fixed; inset: auto auto -25vh -20vw; width: 70vw; height: 70vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(closest-side, rgba(169, 139, 255, .16), transparent); z-index: -1; pointer-events: none; }
a { color: var(--pink-deep); }
img, video { max-width: 100%; display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
b, strong { color: var(--pink-deep); }

/* ── 상단 ── */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 248, 250, .82); backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(245, 228, 236, .8); }
.top .wrap { display: flex; align-items: center; gap: 10px; height: 62px; }
.logo { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 19px; letter-spacing: -.3px; color: var(--ink);
  text-decoration: none; display: flex; align-items: center; gap: 9px; }
/* 로고: 광택 있는 망고 그림(assets/mango.svg). 모든 페이지가 <i></i> 하나로 같은 그림을 쓴다 */
.logo i { width: 34px; height: 34px; display: inline-block; flex-shrink: 0; background: url("/assets/mango.svg") center / contain no-repeat;
  filter: drop-shadow(0 3px 5px rgba(244, 86, 111, .28)); transition: transform .25s; }
.logo:hover i { transform: rotate(-8deg) scale(1.06); }
.top .sp { flex: 1; }
.top b { color: var(--ink); }
/* 언어 고르기: 알약 버튼 + 직접 그린 작은 메뉴(기본 select 목록은 운영체제 모양이라 쓰지 않음) */
.lang { position: relative; flex-shrink: 0; }
.lang-btn { appearance: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 11px;
  border-radius: 999px; background: #fff; border: 1px solid var(--line); font: inherit; font-size: 14px; color: var(--ink);
  cursor: pointer; transition: border-color .15s, color .15s, box-shadow .15s; }
.lang-btn:hover, .lang.open .lang-btn { border-color: #f4c6d8; color: var(--pink-deep); }
.lang.open .lang-btn { box-shadow: 0 0 0 4px rgba(255, 111, 159, .12); }
.lang-btn:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.lang-btn .ic-svg { width: 16px; height: 16px; color: var(--pink); }
.lang-caret { width: 7px; height: 7px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .2s; opacity: .6; }
.lang.open .lang-caret { transform: translateY(1px) rotate(-135deg); }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 132px; padding: 6px; z-index: 30;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.97); transform-origin: top right;
  transition: opacity .16s, transform .16s, visibility 0s .16s; }
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .16s, transform .16s; }
.lang-menu button { appearance: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ink); padding: 9px 12px; border-radius: 12px;
  cursor: pointer; text-align: left; }
.lang-menu button:hover, .lang-menu button:focus-visible { background: var(--pink-soft); color: var(--pink-deep); outline: none; }
.lang-menu button.on { color: var(--pink-deep); }
.lang-menu button .ic-svg { width: 16px; height: 16px; color: var(--pink); }
@media (prefers-reduced-motion: reduce) { .lang-menu, .lang-caret { transition: none; } }
.coins { display: inline-flex; align-items: center; gap: 5px; background: var(--peach-soft); color: #c86a1e;
  padding: 6px 12px; border-radius: 999px; text-decoration: none; white-space: nowrap; font-size: 14px; border: 1px solid #ffe0c7; }
.coins b { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 16px; color: #c86a1e; }

/* ── 버튼 ── */
.btn { appearance: none; border: 0; border-radius: 999px; padding: 12px 22px; font: inherit; font-weight: 600; font-size: 16px;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  background: var(--grad); background-size: 140% 100%; background-position: 0 0; color: #fff; min-height: 46px; white-space: nowrap;
  box-shadow: 0 8px 20px rgba(255, 111, 159, .28); transition: transform .15s, box-shadow .2s, background-position .3s; }
.btn:hover { background-position: 100% 0; box-shadow: 0 10px 26px rgba(255, 111, 159, .38); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: #f4c6d8; color: var(--pink-deep); }
.btn.soft { background: var(--pink-soft); color: var(--pink-deep); box-shadow: none; }
.btn.small { padding: 6px 14px; min-height: 34px; font-size: 14px; }
/* 코인이 모자랄 때 「충전하러 가기」(금화 빛) */
.btn.buy { background: linear-gradient(120deg, #ffc25e 0%, #ff9d63 55%, #ff7f8f 100%); background-size: 140% 100%;
  box-shadow: 0 8px 20px rgba(255, 157, 99, .34); }
.btn.buy .ic-svg, .btn.buy svg { width: 20px; height: 20px; }
.short { color: #c86a1e; }
.notice.need { display: flex; align-items: center; gap: 10px; background: var(--peach-soft); border-color: #ffd9bd; color: #a5541a; }
.notice.need svg { width: 26px; height: 26px; flex-shrink: 0; }
.notice.need b { font-family: "Poppins", sans-serif; font-size: 17px; }
.btn.danger { background: #fff; color: var(--bad); border: 1px solid #f7cdd5; box-shadow: none; }
/* 멘트 보기: 내려받기(분홍)와 구분되는 파랑 → 보라 */
.btn.lilac { background: linear-gradient(120deg, #6fa8ff 0%, #8b8dff 50%, #b07aff 100%); background-size: 200% 100%;
  box-shadow: 0 8px 20px rgba(125, 130, 255, .34); }
.btn.lilac:hover { box-shadow: 0 10px 26px rgba(125, 130, 255, .44); }
.btn.block { width: 100%; }
.btn.big { padding: 15px 30px; font-size: 17px; min-height: 54px; }
.gbtn { background: #fff; color: var(--ink); border: 1px solid #e7dfe5; box-shadow: 0 4px 14px rgba(59, 42, 63, .06); }
.gbtn:hover { background: #fff; border-color: #f4c6d8; }
.gbtn svg { width: 20px; height: 20px; }

/* ── 카드·폼 ── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 12px; font-weight: 700; letter-spacing: -.2px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
.muted { color: var(--sub); font-size: 14.5px; }
label { display: block; font-weight: 600; margin: 18px 0 8px; font-size: 15.5px; }
label small { font-weight: 400; color: var(--sub); font-size: 13px; }
input[type=text], input[type=email], input[type=number], textarea, select {
  width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fffdfe;
  color: var(--ink); transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; min-height: 92px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255, 111, 159, .15); }
::placeholder { color: #c2b5c6; }

.drop { border: 2px dashed #ffb9d0; border-radius: 22px; background: var(--grad-soft); padding: 30px 16px 26px;
  text-align: center; cursor: pointer; transition: transform .15s, border-color .15s; position: relative; }
.drop-ic { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin: 0 auto 12px;
  font-size: 28px; border-radius: 50%; background: #fff; color: var(--pink-deep); box-shadow: 0 8px 20px rgba(255, 111, 159, .22); }
.drop:hover, .drop.on { border-color: var(--pink); transform: scale(1.01); }
.drop b { display: block; font-size: 17px; margin-bottom: 4px; color: var(--ink); }
.files { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.files li { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 9px 12px; font-size: 14px; }
.files li .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files li .x { border: 0; background: var(--pink-soft); color: var(--pink-deep); width: 26px; height: 26px; border-radius: 50%;
  font-size: 16px; cursor: pointer; line-height: 1; }

.voices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.voice { border: 2px solid var(--line); border-radius: 18px; padding: 14px; cursor: pointer; background: #fff; margin: 0; font-weight: 400;
  transition: border-color .15s, background .15s; position: relative; }
.voice input { display: none; }
.voice b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }
.voice.sel { border-color: var(--pink); background: var(--pink-soft); }
.voice.sel::after { content: "✓"; position: absolute; top: 10px; right: 12px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--pink); color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; }

.total { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px;
  padding-top: 16px; border-top: 1.5px dashed var(--line); flex-wrap: wrap; }
.total b#totalCost { font-family: "Poppins", sans-serif; color: var(--pink-deep); }

/* ── 상태 ── */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border-radius: 999px; font-size: 13px;
  font-weight: 600; background: #f4eff6; color: var(--sub); white-space: nowrap; align-self: flex-start; }
.badge.run { background: var(--sky-soft); color: #2f86d6; }
.badge.need { background: #fff3d6; color: #b07400; }
.badge.ok { background: var(--mint-soft); color: var(--ok); }
.badge.bad { background: #fde9ee; color: var(--bad); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.badge.run .dot { animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .25; } }

.batch-head { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.batch-head .t { flex: 1; min-width: 200px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.bar { height: 8px; background: #f6eef3; border-radius: 999px; overflow: hidden; margin-top: 14px; }
.bar i { display: block; height: 100%; background: var(--grad); width: 0; transition: width .3s; border-radius: 999px; }

.jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 16px; }
.job { border: 1px solid var(--line); border-radius: 20px; padding: 10px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.job .nm { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--sub); }
.job video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; background: #111; }
.job .ph { width: 100%; aspect-ratio: 4 / 3; border-radius: 14px; background: var(--grad-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--ink); font-size: 14px;
  text-align: center; padding: 10px; overflow: hidden; }
.job .ph.play { aspect-ratio: 9 / 16; background: linear-gradient(165deg, #ff9cbd, #c9a8ff 70%, #9fd0ff); color: #fff; font-size: 30px; }
.job .ph.play small { font-size: 13px; color: #fff; }
.job .ph small { font-size: 12px; line-height: 1.4; margin-top: 4px; color: var(--sub); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.job .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.prog { height: 6px; background: #f6eef3; border-radius: 999px; overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--grad); width: 0; transition: width 1s linear; }
/* 처리 중: 단계 이름 + 게이지 + 남은 초 */
.job .ph.eta { aspect-ratio: 9 / 16; gap: 10px; }
.job .ph.eta b { font-weight: 400; font-size: 14px; line-height: 1.4; }
.job .ph.eta .prog { width: 86%; height: 8px; background: #fff; }
.job .ph.eta em { font-style: normal; font-family: "Poppins", sans-serif; font-weight: 600; font-size: 26px; line-height: 1;
  color: var(--pink-deep); }
.job .ph.eta em:empty { display: none; }
.job .ph.eta small { margin: 0; color: var(--sub); font-size: 12.5px; }
/* 완성: 첫 화면 사진 + 가운데 재생 단추 */
.job .ph.thumb { position: relative; padding: 0; cursor: pointer; }
.job .ph.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.job .ph.thumb.has-img img { opacity: 1; }
.job .ph.thumb .pl { position: relative; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .35); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); color: #fff; font-size: 22px;
  box-shadow: 0 4px 14px rgba(59, 42, 63, .18); transition: transform .15s; }
.job .ph.thumb.has-img .pl { background: rgba(59, 42, 63, .35); }
.job .ph.thumb:hover .pl, .job .ph.thumb:focus-visible .pl { transform: scale(1.08); }
/* 영상 목록: 카드 한 판. 상품명·날짜·게이지는 카드마다 */
#batches .jobs.vids { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); margin-top: 0; }
#batches .vids .job .ph { aspect-ratio: 9 / 16; }
@media (max-width: 520px) {
  #batches .jobs.vids { grid-template-columns: 1fr 1fr; gap: 10px; }
  #batches .vids .job { padding: 8px; border-radius: 18px; }
  .job.add { min-height: 0; }
}
.vtools { margin-bottom: 14px; }
.vtools .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.job { background: #fff; box-shadow: 0 6px 18px rgba(236, 75, 130, .06); }
.job .info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.job .info .pn { font-weight: 400; font-size: 15px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job .info small { font-size: 12px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job .pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.job .pill { display: inline-flex; align-items: center; gap: 3px; max-width: 100%; padding: 2px 8px 2px 6px; border-radius: 999px;
  background: #f6f1f8; color: #7a6a80; font-size: 11.5px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job .pill svg { width: 12px; height: 12px; flex-shrink: 0; }
.job .pill.pre { background: var(--pink-soft); color: var(--pink-deep); }
.jbar { height: 6px; background: #f6eef3; border-radius: 999px; overflow: hidden; }
.jbar i { display: block; height: 100%; background: var(--grad); border-radius: 999px; transition: width 1s linear; }
.jbar.bad i { background: #e9d6dc; }
.job .acts .btn.block { width: 100%; }
.job .acts { margin-top: auto; }
/* 더 만들기 칸 */
.job.add { appearance: none; font: inherit; color: var(--pink-deep); cursor: pointer; border: 2px dashed #ffc2d6; background: var(--grad-soft);
  align-items: center; justify-content: center; text-align: center; min-height: 220px; gap: 6px; transition: border-color .15s, transform .15s; }
.job.add:hover { border-color: var(--pink); transform: translateY(-2px); }
.job.add .add-ic { width: 52px; height: 52px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 26px; box-shadow: 0 4px 14px rgba(236, 75, 130, .15); }
.job.add b { font-weight: 400; font-size: 15px; color: var(--ink); }
.job.add small { font-size: 12px; color: var(--sub); }
.opts { display: grid; gap: 10px; }
.opt { appearance: none; font: inherit; color: var(--ink); text-decoration: none; text-align: left; width: 100%; cursor: pointer;
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 20px; background: #fff; border: 1.5px solid var(--line);
  transition: border-color .15s, background .15s; }
.opt:hover:not(.static):not(:disabled) { border-color: var(--pink); background: #fff8fb; }
.opt.static { cursor: default; }
.opt:disabled { opacity: .6; cursor: wait; }
.opt-ic { width: 42px; height: 42px; border-radius: 14px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }
.opt-t { flex: 1; min-width: 0; }
.opt-t b { display: block; font-weight: 400; font-size: 15.5px; }
.opt-t small { display: block; color: var(--sub); font-size: 12.5px; line-height: 1.45; margin-top: 2px; }
.opt > svg:last-child { color: var(--sub); flex-shrink: 0; }
.opt .coins { flex-shrink: 0; }
.opt.sub { padding: 10px 14px 10px 22px; margin-left: 20px; width: calc(100% - 20px); border-radius: 16px; font-size: 14px; }
.opt.sub .src-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.opt.sub .src-t b { font-weight: 400; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt.sub .src-t small { color: var(--sub); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── 멘트 확인 창 ──
   머리(제목·요약)와 바닥(확인 버튼)은 고정, 가운데만 스크롤. 스크롤바가 둥근 모서리에 닿지 않게 상자는 overflow:hidden */
.modal .box.sm-box { display: flex; flex-direction: column; padding: 0; overflow: hidden; max-width: 620px; }
.sm-hd { display: flex; align-items: center; gap: 12px; padding: 18px 18px 14px; background: var(--grad-soft);
  border-bottom: 1px solid var(--line); flex-shrink: 0; }
.sm-ic { width: 42px; height: 42px; border-radius: 14px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #6fa8ff, #b07aff); color: #fff; font-size: 21px; box-shadow: 0 6px 16px rgba(125, 130, 255, .35); }
.sm-tt { flex: 1; min-width: 0; }
.sm-tt h3 { margin: 0; font-size: 19px; text-align: left; }
.sm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 3px; font-size: 12.5px; color: var(--sub); }
.sm-meta span { display: inline-flex; align-items: center; gap: 4px; }
.sm-meta .sm-name { color: var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-meta .sm-warn { color: #b07400; background: #fff3cf; border-radius: 999px; padding: 1px 8px; }
.sm-meta .sm-ok { color: var(--ok); }
.sm-x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--sub); flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; transition: color .15s, border-color .15s; }
.sm-x:hover { color: var(--pink-deep); border-color: #f4c6d8; }
.sm-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px 6px; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: #f6bfd3 transparent; }
.sm-p { margin: 0 0 12px; font-size: 13.5px; color: var(--sub); line-height: 1.55; }
.sm-tip { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 8px; padding: 10px 12px; border-radius: 14px;
  background: var(--lilac-soft); color: #6d5aa8; font-size: 12.5px; line-height: 1.5; }
.sm-tip i { flex-shrink: 0; font-size: 16px; margin-top: 1px; color: var(--lilac); }
.sm-ft { flex-shrink: 0; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.sm-ft .btn [data-icon] { font-size: 18px; }

/* 문장 하나: 왼쪽 번호 동그라미가 세로 줄로 이어짐 */
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.line { position: relative; display: flex; gap: 10px; }
.line:not(:last-child)::before { content: ""; position: absolute; left: 14px; top: 34px; bottom: -12px; width: 2px;
  background: linear-gradient(#ffd0e0, #ffe6d6); border-radius: 2px; }
.ln-no { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff; font-family: "Poppins", sans-serif; font-weight: 600; font-size: 13.5px; margin-top: 8px;
  box-shadow: 0 4px 10px rgba(255, 111, 159, .3); position: relative; z-index: 1; }
.line.flag .ln-no { background: linear-gradient(135deg, #ffd36b, #ffaa4d); box-shadow: 0 4px 10px rgba(255, 170, 77, .35); }
.ln-main { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 10px 12px 12px;
  box-shadow: 0 4px 14px rgba(236, 75, 130, .05); }
.line.flag .ln-main { border-color: #ffd36b; background: #fffaeb; }
.ln-hd { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.ln-hd b { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.ln-tag { font-size: 11.5px; padding: 1px 8px; border-radius: 999px; background: var(--pink-soft); color: var(--pink-deep); }
.ln-cnt { margin-left: auto; font-family: "Poppins", sans-serif; font-size: 11px; color: #c4b5c8; }
.line .why { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; color: #b07400; margin: 0 0 8px; padding: 7px 10px;
  border-radius: 12px; background: #fff1c9; line-height: 1.45; }
.line .why svg { flex-shrink: 0; margin-top: 1px; }
.fld { display: block; min-width: 0; margin: 0; font-weight: 400; font-size: inherit; }
.fl { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--sub); margin-bottom: 3px; }
.fl svg { font-size: 14px; color: #c9a0b6; }
.line textarea { min-height: 0; height: auto; font-size: 15.5px; line-height: 1.5; resize: none; padding: 9px 12px; border-radius: 14px; }
.line input { font-size: 14px; padding: 9px 12px; border-radius: 14px; }
.line .row { display: grid; grid-template-columns: 1fr 112px; gap: 8px; margin-top: 8px; }
.line .ko-mean { margin-top: 6px; }
.hint { font-size: 12.5px; color: var(--sub); }

/* ── 창 ── */
/* 뒤 화면 흐림은 창 자체(backdrop-filter)가 아니라 페이지 쪽(filter)에 건다.
   backdrop-filter는 PC 브라우저에서 화면 양쪽 끝이 옅게 비어 보였다(2026-11-15). */
.modal { position: fixed; inset: 0; background: rgba(59, 42, 63, .4); display: none;
  align-items: flex-end; justify-content: center; z-index: 50; padding: 0; overscroll-behavior: contain; }
body > header, body > main, body > footer, body > .notice { transition: filter .2s ease; }
body.modal-open > header, body.modal-open > main, body.modal-open > footer, body.modal-open > .notice { filter: blur(5px); }
.modal.show { display: flex; }
.modal .box { background: var(--bg); width: 100%; max-width: 640px; max-height: 92vh; overflow: auto; border-radius: 28px 28px 0 0;
  padding: 20px 18px 26px; box-shadow: var(--shadow-lg); }
@media (min-width: 700px) { .modal { align-items: center; padding: 20px; } .modal .box { border-radius: 28px; } }
.modal .box { scrollbar-width: thin; scrollbar-color: #f6bfd3 transparent; }
.modal .hd { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.modal .hd h3 { margin: 0; flex: 1; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 999px; font-size: 15px; z-index: 60; max-width: calc(100% - 32px); display: none;
  box-shadow: 0 10px 30px rgba(59, 42, 63, .25); }
.toast.show { display: block; }
.empty { text-align: center; color: var(--sub); padding: 34px 10px; }
.notice { background: #fff6dc; border: 1px solid #ffe3a0; color: #8a5d00; padding: 11px 14px; border-radius: 16px; font-size: 14px; }
.hide { display: none !important; }

/* ── 소개 페이지 ── */
.hero { padding: 40px 16px 24px; display: grid; gap: 28px; align-items: center; text-align: center; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: #fff;
  border: 1px solid #ffd3e2; color: var(--pink-deep); font-size: 14px; box-shadow: 0 4px 12px rgba(255, 111, 159, .1); margin-bottom: 16px; }
.hero h1 { font-size: clamp(32px, 6.4vw, 54px); line-height: 1.2; letter-spacing: -1px; margin-bottom: 16px; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: var(--sub); font-size: 17px; max-width: 520px; margin: 0 auto 24px; }
.hero .cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero .trust { display: flex; align-items: center; gap: 6px; justify-content: center; margin-top: 16px; font-size: 14px; color: var(--sub); }
.hero .trust i { color: var(--pink); }
@media (min-width: 860px) {
  .hero { grid-template-columns: 1.15fr .85fr; text-align: left; padding: 64px 16px 40px; }
  .hero .cta, .hero .trust { justify-content: flex-start; }
  .hero p.lead { margin-left: 0; }
}

.stage { position: relative; width: min(300px, 78vw); margin: 0 auto; }
.stage::before { content: ""; position: absolute; inset: 8% -14% -6%; border-radius: 50%; background: var(--grad-soft); z-index: -1; filter: blur(2px); }
.phone { width: 100%; aspect-ratio: 9 / 16; border-radius: 38px; border: 9px solid #fff;
  background: linear-gradient(170deg, #ffd1a6, #ff9cbd 55%, #b9a5ff); position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); animation: floaty 6s ease-in-out infinite; }
.phone::before { content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 70px; height: 18px; border-radius: 999px; background: rgba(59, 42, 63, .85); z-index: 2; }
.phone video { width: 100%; height: 100%; object-fit: cover; }
.phone .demo-card { position: absolute; left: 50%; top: 22%; transform: translateX(-50%) rotate(-4deg); background: #fff; color: var(--pink);
  font-family: "Huninn", sans-serif; font-size: 30px; padding: 6px 16px; border-radius: 16px; box-shadow: 0 6px 0 #e04880; white-space: nowrap;
  animation: pop 2.6s ease-in-out infinite; }
.phone .demo-sub { position: absolute; left: 8%; right: 8%; bottom: 25%; background: rgba(0, 0, 0, .5); color: #fff; text-align: center;
  border-radius: 999px; padding: 7px 10px; font-family: "Huninn", sans-serif; font-size: 15px; }
.phone .demo-sub b { color: var(--butter); }
.phone .demo-buy { position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%); background: var(--pink); color: #fff;
  font-family: "Huninn", sans-serif; font-size: 14px; padding: 7px 16px; border-radius: 999px; white-space: nowrap; box-shadow: 0 4px 0 #d23f73; }
.float { position: absolute; background: #fff; border-radius: 999px; padding: 8px 14px; font-size: 14px; box-shadow: var(--shadow);
  border: 1px solid var(--line); white-space: nowrap; animation: floaty 5s ease-in-out infinite; z-index: 3; }
.float.f1 { top: 14%; left: -22%; animation-delay: -1s; }
.float.f2 { top: 48%; right: -24%; animation-delay: -2.5s; }
.float.f3 { bottom: 8%; left: -16%; animation-delay: -4s; }
@media (max-width: 520px) { .float.f1 { left: -8%; } .float.f2 { right: -8%; } .float.f3 { left: -4%; } .float { font-size: 12.5px; padding: 6px 11px; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pop { 0%, 100% { transform: translateX(-50%) rotate(-4deg) scale(1); } 50% { transform: translateX(-50%) rotate(-2deg) scale(1.06); } }
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.75); } }
@media (prefers-reduced-motion: reduce) { .phone, .float, .spark, .phone .demo-card { animation: none; } }

.sec { padding: 48px 16px; }
.sec-hd { text-align: center; margin-bottom: 26px; }
.eyebrow { display: inline-block; font-size: 13px; letter-spacing: .5px; color: var(--pink-deep); background: var(--pink-soft);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.sec h2 { font-size: clamp(24px, 4.4vw, 32px); margin: 0; }
.grid3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 560px) { .grid3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
.feat { transition: transform .2s, box-shadow .2s; }
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.grid3 .card + .card { margin-top: 0; }
.feat .ic { width: 54px; height: 54px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 16px; }
.feat p { margin: 0; }


.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; max-width: 720px; margin: 0 auto; }
.price { text-align: center; position: relative; padding: 28px 22px; }
.prices .card + .card { margin-top: 0; }
.price.hot { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; }
.price .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff;
  padding: 3px 14px; border-radius: 999px; font-size: 13px; box-shadow: 0 6px 14px rgba(255, 111, 159, .3); }
.price p { margin: 4px 0; }
.price-note { text-align: center; margin: 18px auto 0; max-width: 560px; }
/* 충전 페이지 꾸러미(3개면 PC에서 한 줄) */
.prices.packs { max-width: none; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pack-tag { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; min-height: 26px; margin: 0 0 10px !important; }
.pack-tag span { padding: 3px 11px; border-radius: 999px; font-size: 13px; line-height: 20px; }
/* 할인 알약은 눈에 띄게 파랑→보라(「멘트 보기」 버튼과 같은 색, 분홍 「多送」 알약과 구분) */
.pack-tag .off { background: linear-gradient(120deg, #6fa8ff 0%, #8b8dff 50%, #b07aff 100%); color: #fff; font-family: "Poppins", "Huninn", "Do Hyeon", sans-serif;
  font-weight: 700; font-size: 15px; padding: 4px 14px; box-shadow: 0 5px 14px rgba(125, 130, 255, .38); }
.pack-tag .bonus { background: var(--pink-soft); color: var(--pink-deep); }
.pack-tag .plain { background: #f4eef3; color: var(--sub); }
.pack .big { font-family: "Poppins", sans-serif; font-size: 46px; font-weight: 800; line-height: 1.1; color: var(--pink-deep); }
.pack-price { font-family: "Poppins", sans-serif; font-size: 24px; font-weight: 700; margin: 10px 0 0 !important; }
.pack-per { color: var(--sub); font-size: 13px; margin: 2px 0 14px !important; }

.faq { max-width: 720px; margin: 0 auto; }
details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0; transition: box-shadow .2s; }
details + details { margin-top: 10px; }
details[open] { box-shadow: var(--shadow); }
summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 18px; position: relative; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; line-height: 1; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px;
  border-radius: 50%; background: var(--pink-soft); color: var(--pink-deep); display: flex; align-items: center; justify-content: center;
  font-family: "Poppins", sans-serif; font-size: 18px; transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--pink); color: #fff; }
details p { margin: 0; padding: 0 18px 16px; }

.cta-band { margin: 20px auto 56px; max-width: 1008px; border-radius: 32px; padding: 40px 22px; text-align: center; color: #fff;
  background: var(--grad); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.cta-band::before { width: 220px; height: 220px; top: -90px; right: -60px; }
.cta-band::after { width: 160px; height: 160px; bottom: -70px; left: -40px; }
.cta-band h2 { font-size: clamp(24px, 4.4vw, 32px); margin-bottom: 8px; color: #fff; }
.cta-band p { margin: 0 0 20px; opacity: .92; }
.cta-band .btn { background: #fff; color: var(--pink-deep); box-shadow: 0 10px 24px rgba(0, 0, 0, .12); position: relative; z-index: 1; }


/* ── 로그인·코인 구매 ── */
.login-card { max-width: 440px; margin: 0 auto; text-align: center; padding: 34px 26px; }
.login-card .hi { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 16px; background: var(--grad-soft); color: var(--pink-deep);
  display: flex; align-items: center; justify-content: center; font-size: 34px; box-shadow: inset 0 0 0 6px #fff, 0 10px 24px rgba(255, 111, 159, .18); }
.modal .box.login-card { position: relative; max-width: 420px; margin: 0; padding: 38px 26px 30px; }
.login-card .agree { margin: 14px 0 0; font-size: 13px; }
.x-btn { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--sub); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.x-btn:hover { color: var(--pink-deep); border-color: #f4c6d8; }
.x-btn i, .x-btn svg { width: 18px; height: 18px; pointer-events: none; }
.page-hd { margin: 8px 0 18px; }
.page-hd h1 { font-size: clamp(26px, 5vw, 34px); margin-bottom: 6px; }

/* ── 문서(약관 등) ── */
.doc { padding: 32px 16px 56px; }
.doc > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); }
.doc h1 { font-size: 28px; }
.doc h2 { font-size: 19px; margin-top: 28px; }
.doc li { margin: 4px 0; }

/* ── 운영자 ── */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--sub); font-weight: 600; white-space: nowrap; }
.scroll-x { overflow-x: auto; }
.todo { background: #fff1a8; padding: 0 4px; border-radius: 4px; }

.lang, .coins, .top .btn { flex-shrink: 0; }
.logo { min-width: 0; }
.logo span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) {
  .top .wrap { gap: 6px; }
  .logo { font-size: 16px; }
  /* 휴대폰에서 코인·로그아웃까지 있으면 로고 글자와 「코인」 글자를 줄인다 */
  .top .wrap:has(.coins:not(.hide)) .logo span { display: none; }
  .coins span[data-coin] { display: none; }
  .lang-btn { padding: 0 10px; }
  .lang-btn > .ic-svg { display: none; }
  .btn.small { padding: 6px 11px; }
}

/* ── 아이콘 ── */
[data-icon] { display: inline-flex; align-items: center; justify-content: center; font-style: normal; line-height: 1; }
.ic-svg { width: 1em; height: 1em; flex-shrink: 0; }
.coin-ic { width: 1.15em; height: 1.15em; flex-shrink: 0; filter: drop-shadow(0 1px 1px rgba(200, 106, 30, .25)); }
.btn [data-icon] { font-size: 18px; }
.btn.small [data-icon] { font-size: 15px; }
.c-pink { color: var(--pink-deep); background: var(--pink-soft); }
.c-lilac { color: #7b5ce6; background: var(--lilac-soft); }
.c-peach { color: #e07a2c; background: var(--peach-soft); }
.c-mint { color: #23a07a; background: var(--mint-soft); }
.c-sky { color: #2f86d6; background: var(--sky-soft); }
.c-butter { color: #c48a00; background: #fff6d8; }

/* ── 상단 메뉴(PC) ── */
.nav { display: none; gap: 4px; margin-left: 18px; }
.nav a { color: var(--sub); text-decoration: none; font-size: 15px; padding: 6px 12px; border-radius: 999px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--pink-deep); background: var(--pink-soft); }
@media (min-width: 900px) { .nav { display: flex; } }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }

/* ── 첫 화면 디테일 ── */
.tag i { color: var(--pink); font-size: 15px; }
.stats { display: flex; justify-content: center; gap: 0; margin-top: 28px; }
.stats div { display: flex; flex-direction: column; align-items: center; padding: 0 20px; position: relative; }
.stats div + div::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px; background: var(--line); }
.stats b { font-family: "Poppins", var(--font-zh); font-size: 22px; font-weight: 700; background: var(--grad); -webkit-background-clip: text;
  background-clip: text; color: transparent; line-height: 1.3; }
html:lang(ko) .stats b { font-family: "Poppins", var(--font-ko); }
.stats span { font-size: 13px; color: var(--sub); }
@media (min-width: 860px) { .stats { justify-content: flex-start; } .stats div:first-child { padding-left: 0; align-items: flex-start; } }
.float { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; }
.fi { width: 28px; height: 28px; border-radius: 50%; font-size: 15px; }
.spark { position: absolute; z-index: 3; animation: twinkle 2.4s ease-in-out infinite; }
.spark.s1 { top: -3%; right: 4%; font-size: 26px; color: var(--butter); }
.spark.s2 { bottom: 24%; left: -9%; font-size: 20px; color: var(--pink); animation-delay: -1.2s; }
.spark.s3 { top: 34%; right: -12%; font-size: 16px; color: var(--lilac); animation-delay: -.6s; }
@media (max-width: 520px) { .spark.s2 { left: -2%; } .spark.s3 { right: -2%; } }
@media (prefers-reduced-motion: reduce) { .spark { animation: none; } }

/* ── 기능 카드 ── */
.feat { position: relative; overflow: hidden; }
.feat::after { content: ""; position: absolute; right: -40px; top: -40px; width: 110px; height: 110px; border-radius: 50%;
  background: var(--grad-soft); opacity: 0; transition: opacity .25s; }
.feat:hover { border-color: #ffd0e0; }
.feat:hover::after { opacity: .9; }
.feat > * { position: relative; z-index: 1; }

/* ── 사용 방법 ── */
.panel { background: var(--grad-soft); border-radius: 36px; padding: 40px 20px; position: relative; overflow: hidden; }
.panel::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 111, 159, .14) 1.2px, transparent 1.2px);
  background-size: 18px 18px; mask-image: linear-gradient(180deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); }
.panel > * { position: relative; }
.steps { display: grid; gap: 16px; position: relative; }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .steps::before { content: ""; position: absolute; top: 58px; left: 16%; right: 16%; border-top: 2px dashed #ffbcd2; }
}
.step { background: #fff; border-radius: 24px; padding: 26px 22px 24px; text-align: center; box-shadow: var(--shadow); position: relative; }
.step .num { position: absolute; top: 14px; left: 16px; font-family: "Poppins", sans-serif; font-weight: 800; font-size: 13px;
  color: var(--pink-deep); background: var(--pink-soft); border-radius: 999px; padding: 2px 10px; }
.step .sic { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 28px;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px #fff, 0 10px 22px rgba(255, 111, 159, .3); }
.step h3 { font-size: 17px; }
.step p { margin: 0; }

/* ── 가격 ── */
.amount { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 0; }
.amount .big { font-family: "Poppins", sans-serif; font-size: 56px; font-weight: 800; line-height: 1; color: var(--pink-deep); }
.amount [data-icon] { font-size: 38px; }
.price .per { color: var(--sub); font-size: 14px; margin: 6px 0 18px; }
.price .ribbon { display: inline-flex; align-items: center; gap: 4px; }
.checks { list-style: none; padding: 16px 0 0; margin: 0 0 20px; text-align: left; border-top: 1.5px dashed var(--line); display: grid; gap: 10px; }
.checks li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.checks li [data-icon] { width: 22px; height: 22px; border-radius: 50%; background: var(--mint-soft); color: var(--ok); font-size: 13px; flex-shrink: 0; }
.price.hot .checks li [data-icon] { background: var(--pink-soft); color: var(--pink-deep); }

/* ── 마지막 띠 ── */
.cta-band .btn [data-icon] { color: var(--pink); }
.cb-s1, .cb-s2 { position: absolute; color: rgba(255, 255, 255, .85); animation: twinkle 2.6s ease-in-out infinite; }
.cb-s1 { top: 22px; left: 9%; font-size: 26px; }
.cb-s2 { bottom: 26px; right: 10%; font-size: 22px; animation-delay: -1.3s; }

/* ── 하단 ── */
footer { border-top: 1px solid var(--line); padding: 40px 0 44px; color: var(--sub); font-size: 14px; background: rgba(255, 255, 255, .6); }
.foot { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.foot .logo { font-size: 18px; }
.foot p { margin: 0; }
.foot-tag { max-width: 420px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: 6px; }
.foot-links a { color: var(--ink); text-decoration: none; padding: 2px 14px; position: relative; }
.foot-links a + a::before { content: ""; position: absolute; left: 0; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: #f3bfd2; }
.foot-links a:hover { color: var(--pink-deep); }
.foot-contact { display: inline-flex; align-items: center; gap: 6px; }
.foot-contact [data-icon] { color: var(--pink); font-size: 16px; }
.foot-contact a { color: var(--sub); }
.copy { font-size: 12.5px; color: #b5a6b9; margin-top: 4px !important; }

/* ── 내 영상 화면 디테일 ── */
.sec-title { display: flex; align-items: center; gap: 10px; }
.sec-title [data-icon] { width: 36px; height: 36px; border-radius: 12px; font-size: 19px; flex-shrink: 0; }
.coins [data-icon] { font-size: 17px; }
.job .ph [data-icon] { font-size: 22px; margin-bottom: 4px; }
.job .ph.play [data-icon] { width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .28); font-size: 22px; margin-bottom: 6px;
  backdrop-filter: blur(4px); }
.job .ph .warn, .job .ph .okc { display: inline-flex; font-size: 22px; margin-bottom: 4px; }
.job .ph .warn { color: var(--warn); }
.job .ph .okc { color: var(--ok); }
.files li .ic-svg { font-size: 18px; }
/* 파일 이름 옆 아이콘: 줄 가운데에 오도록(안쪽 svg가 글자 기준선에 붙어 아래로 처지던 것) */
.files li > span:first-child { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; line-height: 0; }
.empty [data-icon] { font-size: 30px; width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 10px; display: flex; }

/* ── 배경음 고르기(app) ── */
.bgms { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.bgm { display: flex; align-items: center; gap: 10px; border: 2px solid var(--line); border-radius: 18px; padding: 10px 10px 10px 12px;
  background: #fff; cursor: pointer; transition: border-color .15s, background .15s; min-height: 58px; }
.bgm:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.bgm.sel { border-color: var(--pink); background: var(--pink-soft); }
.bgm-ic { width: 32px; height: 32px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--lilac-soft); color: #7b5ce6; font-size: 17px; flex-shrink: 0; }
.bgm.sel .bgm-ic { background: #fff; color: var(--pink-deep); }
.bgm-t { flex: 1; min-width: 0; line-height: 1.3; }
.bgm-t b { display: block; color: var(--ink); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bgm-t small { display: block; color: var(--sub); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bgm-play { appearance: none; border: 0; width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; cursor: pointer;
  background: var(--pink-soft); color: var(--pink-deep); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.bgm.sel .bgm-play { background: #fff; }
/* 재생 중: 멈춤(■) 버튼 + 둘레 고리가 들은 만큼 차오름(--p), 음표 자리에 움직이는 막대 */
.bgm-play { position: relative; overflow: visible; }
.bgm.sel .bgm-play.on, .bgm-play.on { background: var(--pink); color: #fff; box-shadow: 0 4px 12px rgba(255, 111, 159, .35); }
.bgm-play .ring { position: absolute; inset: -5px; width: calc(100% + 10px); height: calc(100% + 10px); transform: rotate(-90deg);
  pointer-events: none; overflow: visible; }
.ring circle { fill: none; stroke-width: 2.6; }
.ring-bg { stroke: #ffd3e2; }
.ring-fg { stroke: var(--pink-deep); stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.bgm-play .ic-svg { position: relative; }
.bgm.playing { border-color: var(--pink); background: var(--pink-soft); box-shadow: 0 6px 18px rgba(255, 111, 159, .18); }
.bgm.playing .bgm-ic { background: var(--grad); color: #fff; }
.bgm-now { color: var(--pink-deep) !important; }
.eq { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 16px; }
.eq i { width: 3px; height: 100%; border-radius: 2px; background: #fff; transform-origin: bottom; animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; animation-duration: .7s; }
.eq i:nth-child(3) { animation-delay: -.55s; animation-duration: 1s; }
.eq i:nth-child(4) { animation-delay: -.15s; animation-duration: .8s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .eq i { animation: none; transform: scaleY(.7); } }

/* ── 업로드 진행(app) ── */
#upList li.up .nm { display: flex; flex-direction: column; gap: 6px; white-space: normal; }
#upList li.up .nm small { color: var(--bad); font-size: 12.5px; }
#upList li.up .prog { display: block; width: 100%; }
#upList li.up.err { border-color: #f7cdd5; background: #fff8f9; }
#upList .okc { color: var(--ok); font-size: 20px; display: inline-flex; }
.up-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.navbtn { gap: 6px; }

/* ── 마이페이지 ── */
.me { background: linear-gradient(160deg, #fff 0%, #fff 55%, #fff3f8 100%); }
.me-top { display: flex; align-items: center; gap: 12px; }
.me-av { width: 48px; height: 48px; border-radius: 16px; font-size: 24px; flex-shrink: 0; }
.me-t { flex: 1; min-width: 0; }
/* 프로필 사진(구글 사진, 없으면 첫 글자) */
.avatar { display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0;
  border-radius: 50%; background: var(--pink-soft); color: var(--pink-deep); }
.avatar.av-img { background: #fff; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--pink-soft); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.av-letter { background: var(--grad); color: #fff; font-family: "Poppins", sans-serif; font-weight: 700; }
.me-av.avatar { border-radius: 50%; font-size: 22px; }
.avatar.sm { width: 34px; height: 34px; font-size: 15px; }
.avatar.xs { width: 24px; height: 24px; font-size: 12px; margin-left: -6px; }
.avatar.xs.av-img { box-shadow: none; }
.avatar.xs .ic-svg, .avatar.sm .ic-svg { width: 62%; height: 62%; }
.me-t .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-coin { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 18px;
  padding: 16px 18px; border-radius: 20px; background: var(--peach-soft); border: 1px solid #ffe0c7; }
.me-num { display: flex; align-items: center; gap: 8px; font-size: 26px; margin-top: 2px; }
.me-num b { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 32px; color: #c86a1e; line-height: 1.1; }
.me-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.me-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.me-stats div { text-align: center; padding: 10px 4px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.me-stats b { display: block; font-family: "Poppins", sans-serif; font-weight: 700; font-size: 22px; line-height: 1.3; }
.me-stats span { font-size: 13px; color: var(--sub); }

.tabs { display: flex; gap: 6px; margin: 24px 0 14px; padding: 5px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; box-shadow: var(--shadow); }
.tab { appearance: none; flex: 1; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--sub); cursor: pointer;
  padding: 9px 6px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
  transition: background .15s, color .15s; }
.tab [data-icon] { font-size: 17px; }
.tab:hover { color: var(--pink-deep); }
.tab.sel { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(255, 111, 159, .28); }
@media (max-width: 400px) { .tab { font-size: 14px; } .tab [data-icon] { display: none; } }

.ledger { padding: 6px 18px; }
.led { display: flex; align-items: center; gap: 12px; padding: 13px 0; }
.led + .led { border-top: 1px dashed var(--line); }
.led-ic { width: 38px; height: 38px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0; }
.led-t { flex: 1; min-width: 0; line-height: 1.35; }
.led-t b { display: block; color: var(--ink); font-size: 15.5px; }
.led-t small, .led-n small { color: var(--sub); font-size: 12.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.led-n { text-align: right; flex-shrink: 0; line-height: 1.35; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.led-n b { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 18px; }
.led-n b.plus { color: var(--ok); }
.led-n b.minus { color: var(--pink-deep); }
.led-n .badge { align-self: flex-end; } /* .badge 기본값(flex-start) 때문에 결제 내역 알약이 왼쪽으로 쏠렸음 */
.c-gray { color: var(--sub); background: #f4eff6; }
@media (max-width: 520px) {
  .me-acts { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .me-acts .btn { padding: 12px 8px; font-size: 15px; }
}

/* ── 운영자 화면(admin.html) ── */
.adm-badge { display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; padding: 4px 11px 4px 9px; border-radius: 999px;
  background: linear-gradient(120deg, #8fa6ff, #b07aff); color: #fff; font-size: 13px; box-shadow: 0 4px 12px rgba(150, 120, 255, .3); }
.adm-badge svg { width: 15px; height: 15px; }
.adm { max-width: 1080px; }
.adm-hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 6px 0 14px; }
.adm-hello h1 { font-size: clamp(24px, 4.4vw, 32px); margin: 0 0 4px; }
.adm-hello p { margin: 0; font-size: 13.5px; }
.adm-deny { max-width: 460px; margin: 40px auto; text-align: center; padding: 34px 24px; }
.adm-deny-ic { width: 64px; height: 64px; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 30px; }
.adm-deny h2 { margin: 14px 0 6px; }
.adm-deny .btn { margin-top: 10px; }

.adm-alerts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-bottom: 14px; }
.adm-alert { appearance: none; font: inherit; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 13px 15px; border-radius: 20px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); transition: transform .15s, border-color .15s; }
button.adm-alert:hover { transform: translateY(-1px); }
.adm-alert > svg { width: 18px; height: 18px; color: var(--sub); flex-shrink: 0; }
.aa-ic { width: 38px; height: 38px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 20px; }
.aa-ic svg { width: 21px; height: 21px; }
.aa-t { flex: 1; min-width: 0; line-height: 1.35; }
.aa-t b { display: block; font-weight: 400; font-size: 15.5px; }
.aa-t small { color: var(--sub); font-size: 12.5px; }
.adm-alert.bad { border-color: #f7cdd5; background: #fff7f9; }
.adm-alert.bad .aa-ic { background: #ffe4ea; color: var(--bad); }
.adm-alert.warn { border-color: #ffe3a0; background: #fffbef; }
.adm-alert.warn .aa-ic { background: #fff1c8; color: var(--warn); }
.adm-alert.info .aa-ic { background: var(--lilac-soft); color: #7b5ce6; }
.adm-alert.ok { cursor: default; background: var(--mint-soft); border-color: #c8efe0; }
.adm-alert.ok .aa-ic { background: #fff; color: var(--ok); }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpis .card + .card { margin-top: 0; }
.kpi { padding: 18px; position: relative; overflow: hidden; }
.kpi-ic { width: 40px; height: 40px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 21px; }
.kpi-ic svg { width: 22px; height: 22px; }
.kpi-h { margin-top: 12px; color: var(--sub); font-size: 13.5px; }
.kpi-n { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 32px; line-height: 1.15; color: var(--ink); }
.kpi-s { font-size: 12.5px; color: var(--sub); margin-top: 4px; line-height: 1.4; }
.bad-t { color: var(--bad); }

.adm-chart { margin-top: 12px; }
.sec-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.sec-hd h3 { margin: 0; flex: 1; font-size: 17px; text-align: left; }
.sec-ic { width: 32px; height: 32px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; }
.sec-ic svg { width: 18px; height: 18px; }
.legend { display: inline-flex; align-items: center; gap: 6px; color: var(--sub); font-size: 12.5px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 6px; }
.lg-done { background: var(--grad); }
.lg-fail { background: repeating-linear-gradient(135deg, #e5506a 0 2px, #fde3e8 2px 4px); box-shadow: inset 0 0 0 1px rgba(229, 80, 106, .35); }
.bars-sum { margin: -2px 0 8px; font-size: 13px; color: var(--sub); }
.bars-sum b { font-family: "Poppins", sans-serif; color: var(--ink); font-weight: 600; }
.bars-sum b.bad-t { color: var(--bad); }
.bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; align-items: end; height: 180px; padding-top: 6px; }
.dbar { display: flex; flex-direction: column; align-items: center; height: 100%; min-width: 0; }
.bv { font-family: "Poppins", sans-serif; font-size: 11.5px; color: var(--ink); min-height: 16px; display: flex; flex-direction: column;
  align-items: center; gap: 2px; margin-bottom: 3px; line-height: 1.2; }
.bv b { font-weight: 600; }
.bv em { font-style: normal; font-size: 10px; font-weight: 600; color: #fff; background: var(--bad); border-radius: 999px; padding: 0 5px;
  line-height: 15px; white-space: nowrap; }
/* 아래부터 완성, 그 위에 실패 */
.bcol { flex: 1; width: 100%; max-width: 30px; display: flex; flex-direction: column-reverse; border-bottom: 2px solid #f3e6ed; }
.bcol i { display: block; width: 100%; transition: height .5s ease; min-height: 4px; }
.bcol i:last-child { border-radius: 7px 7px 0 0; }
.bcol .bd { background: linear-gradient(0deg, #ff8cb0, #ffa86b); }
.bcol .bf { background: repeating-linear-gradient(135deg, #e5506a 0 3px, #fde3e8 3px 6px); box-shadow: inset 0 0 0 1px rgba(229, 80, 106, .35); }
.bcol .bd + .bf { margin-bottom: 2px; }
.bl { font-family: "Poppins", sans-serif; font-size: 10.5px; color: var(--sub); margin-top: 5px; white-space: nowrap; }
.dbar.today .bl { color: var(--pink-deep); font-weight: 600; }
.dbar.today .bcol { border-bottom-color: var(--pink); }

.adm-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.chip { appearance: none; font: inherit; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.chip b { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 12px; color: var(--sub); background: #f6f1f8; padding: 0 7px; border-radius: 999px; }
.chip.sel { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.sel b { background: rgba(255, 255, 255, .18); color: #fff; }
.search { position: relative; margin: 0; flex: 0 1 280px; min-width: 200px; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--sub); }
.search input { padding-left: 38px; border-radius: 999px; min-height: 40px; }
#pane-users .search { flex: 1 1 280px; }

.alist { display: grid; gap: 10px; }
.arow { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 14px; box-shadow: 0 6px 18px rgba(236, 75, 130, .05); }
.arow.stale { border-color: #f7cdd5; box-shadow: 0 0 0 3px #fff0f3; }
.ath { width: 54px; height: 96px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: var(--grad-soft);
  display: inline-flex; align-items: center; justify-content: center; color: #e7a9c0; }
.ath img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ath svg { width: 22px; height: 22px; }
.amain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.aline { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.apn { font-weight: 400; font-size: 16px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.asub { font-size: 12.5px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.asub svg { width: 14px; height: 14px; }
.vtag { color: var(--ink); }
.aerr { display: flex; gap: 6px; align-items: flex-start; margin-top: 4px; padding: 7px 10px; border-radius: 12px; background: #fff3f5;
  color: #b2364d; font-size: 12.5px; line-height: 1.45; word-break: break-all; }
.aerr svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; }
.aerr b { display: block; font-weight: 400; font-size: 13.5px; color: #a42a41; word-break: keep-all; }
.aerr small { display: block; margin-top: 2px; color: #c0727f; font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; }
.aacts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; max-width: 300px; }
.aacts .btn svg { width: 15px; height: 15px; }
.st { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 12px; line-height: 1.6; white-space: nowrap; }
.st-mint { background: var(--mint-soft); color: #1e8f6c; }
.st-sky { background: var(--sky-soft); color: #2f7fca; }
.st-lilac { background: var(--lilac-soft); color: #6d4fdc; }
.st-butter { background: #fff3cf; color: #a77400; }
.st-bad { background: #ffe8ed; color: #c8354f; }
.st-gray { background: #f4eff6; color: var(--sub); }

.avatar.md { width: 48px; height: 48px; font-size: 19px; }
.ustats { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.ustats span { display: inline-flex; align-items: baseline; gap: 4px; padding: 3px 10px; border-radius: 999px; background: #faf6fb; font-size: 12px; color: var(--sub); }
.ustats b { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 13px; color: var(--ink); }
.ucoin { flex-direction: column; align-items: flex-end; }
.ucoins { display: inline-flex; align-items: center; gap: 5px; }
.ucoins svg { width: 20px; height: 20px; }
.ucoins b { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 22px; color: #c86a1e; }
.adm-help { font-size: 12.5px; margin-top: 12px; }

.gm-who { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.gm-who b { display: block; font-weight: 400; }
.gm-who small { color: var(--sub); font-size: 12.5px; }
.amt-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.amt-row input { flex: 1 1 120px; }
.amt-q { display: flex; gap: 6px; }
.amt-q button { appearance: none; font: inherit; font-family: "Poppins", sans-serif; font-size: 14px; cursor: pointer; padding: 8px 12px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.amt-q button:hover { border-color: #f4c6d8; color: var(--pink-deep); }
.btn.block.danger { justify-content: center; }
.vbox video { width: 100%; max-height: 72vh; border-radius: 18px; background: #000; display: block; }
/* 운영자 실패 기록 창 */
.modal .box.fbox { max-width: 860px; }
.fbox #fmSub { margin: -6px 0 12px; word-break: break-all; }
.fitem { padding: 12px 0; border-top: 1px solid var(--line); }
.fitem .aline { flex-wrap: wrap; gap: 6px; align-items: center; }
.fdet { margin-top: 8px; border-radius: 14px; background: #2b2230; overflow: hidden; }
.fdet-hd { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 6px 12px; color: #e9dcef; font-size: 12.5px; }
.fdet pre { margin: 0; padding: 4px 12px 12px; max-height: 360px; overflow: auto; color: #f3eaf6; font: 11.5px/1.5 ui-monospace, Menlo, monospace;
  white-space: pre-wrap; word-break: break-all; scrollbar-width: thin; scrollbar-color: #7a5d86 transparent; }

@media (max-width: 820px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi-n { font-size: 26px; }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .bars { gap: 3px; height: 140px; }
  .bl { font-size: 9px; }
  .dbar:nth-child(odd):not(.today) .bl { visibility: hidden; }
  .arow { flex-wrap: wrap; }
  .arow .aacts { max-width: none; width: 100%; justify-content: flex-start; padding-left: 68px; }
  .user-row .aacts { padding-left: 62px; flex-direction: row; align-items: center; }
  .search { flex: 1 1 100%; }
}
@media (max-width: 520px) { .top .avatar.sm { display: none; } }
.ko-mean { margin-top: 5px; padding: 6px 10px; border-radius: 12px; background: #f7f3fb; color: var(--sub); font-size: 13.5px; line-height: 1.45; }
.ko-mean::before { content: "뜻 · "; color: #a98bff; }
.ph .ko-mean { background: transparent; padding: 2px 0 0; font-size: 12px; }
