/* 밍톡(MINGTALK) — 한 페이지 정적 사이트
   색을 바꾸려면 아래 :root 값만 고치면 된다. */
:root {
  --navy: #0f1733;
  --navy-2: #18234a;
  --ink: #101828;
  --muted: #667085;
  --line: #e6e9f0;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --blue: #2f6bff;
  --yellow: #ffc928;
  --yellow-hover: #ffd24f;
  --red: #d92d20;
  --radius: 22px;
  --max: 1080px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }

/* ───── 버튼 ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--yellow); color: var(--navy); }
.btn-primary:hover { background: var(--yellow-hover); transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(229, 174, 0, .7); }
.btn-ghost { border-color: rgba(200, 214, 255, .35); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-block { display: flex; width: 100%; }

/* ───── 상단바 ───── */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; background: rgba(15, 23, 51, .92); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(200, 214, 255, .12); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; letter-spacing: .16em; font-size: 15px; }
.logo img { width: 34px; height: 34px; border-radius: 10px; background: var(--navy-2); }
.nav-links { display: none; gap: 26px; }
.nav-links a { color: rgba(234, 240, 255, .72); font-size: 13.5px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav .btn { padding: 9px 20px; font-size: 13.5px; }
.menu-btn { background: none; border: 1px solid rgba(200, 214, 255, .25); color: #fff; width: 40px; height: 40px; border-radius: 12px; font-size: 18px; cursor: pointer; }
.nav-mobile { display: none; background: var(--navy); padding: 12px 20px 22px; border-top: 1px solid rgba(200, 214, 255, .12); }
.nav-mobile.open { display: block; }
.nav-mobile a { display: block; padding: 12px 0; color: rgba(234, 240, 255, .85); border-bottom: 1px solid rgba(200, 214, 255, .08); }
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .menu-btn, .nav-mobile { display: none !important; }
}
.nav-cta { display: none; }
@media (min-width: 640px) { .nav-cta { display: inline-flex; } }

/* ───── 히어로 ───── */
.hero { background: radial-gradient(900px 500px at 12% -10%, rgba(255, 201, 40, .12), transparent 60%), radial-gradient(900px 560px at 100% 0%, rgba(123, 92, 255, .2), transparent 60%), var(--navy); color: #fff; padding: 128px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; } }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(200, 214, 255, .25); background: rgba(255, 255, 255, .06); font-size: 12px; font-weight: 600; color: var(--yellow); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }
.hero h1 { margin-top: 22px; font-size: clamp(2.1rem, 5.4vw, 3.4rem); line-height: 1.2; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero .lead { margin-top: 22px; max-width: 520px; color: rgba(234, 240, 255, .75); font-size: 16px; }
.hero .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero .tags span { font-size: 11.5px; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(200, 214, 255, .2); color: rgba(234, 240, 255, .75); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; max-width: 480px; }
.stat { border: 1px solid rgba(200, 214, 255, .16); background: rgba(255, 255, 255, .05); border-radius: 18px; padding: 14px 16px; }
.stat b { display: block; font-size: 24px; font-weight: 800; }
.stat b small { font-size: 13px; color: var(--yellow); margin-left: 2px; font-weight: 700; }
.stat span { font-size: 11.5px; color: rgba(234, 240, 255, .55); }
.hero-art { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-art img { width: min(100%, 360px); filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .45)); animation: bob 3.4s ease-in-out infinite; }
.bubble { display: inline-block; padding: 8px 16px; border-radius: 16px 16px 16px 4px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .1); border: 1px solid rgba(200, 214, 255, .22); color: #fff; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-8px) rotate(1.5deg); } }
@media (prefers-reduced-motion: reduce) { .hero-art img { animation: none; } html { scroll-behavior: auto; } }

/* ───── 섹션 공통 ───── */
section { padding: 88px 0; }
.alt { background: var(--bg-alt); }
.dark { background: var(--navy); color: #fff; }
.head { text-align: center; max-width: 680px; margin: 0 auto; }
.mascot-head { display: flex; align-items: flex-end; justify-content: center; gap: 12px; margin-bottom: 22px; }
.mascot-head img { width: 84px; height: 84px; object-fit: contain; animation: bob 3.4s ease-in-out infinite; }
.mascot-head .bubble { background: #fff; border: 1px solid var(--line); color: var(--ink); margin-bottom: 14px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--blue); }
.head h2 { margin-top: 10px; font-size: clamp(1.7rem, 3.6vw, 2.4rem); line-height: 1.25; font-weight: 800; }
.head h2 em { font-style: normal; color: var(--blue); }
.head .bar { display: block; width: 40px; height: 3px; border-radius: 999px; background: var(--blue); margin: 20px auto 0; }
.head p { margin-top: 18px; color: var(--muted); font-size: 15.5px; }
.dark .eyebrow, .dark .head h2 em { color: var(--yellow); }
.dark .head .bar { background: var(--yellow); }
.dark .head p { color: rgba(234, 240, 255, .65); }

.grid { display: grid; gap: 16px; margin-top: 52px; }
@media (min-width: 640px) { .grid.g2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid.g3 { grid-template-columns: repeat(3, 1fr); } .grid.g4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) { .grid.g3, .grid.g4 { grid-template-columns: repeat(2, 1fr); } }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px -14px rgba(16, 24, 40, .12); transition: transform .25s, border-color .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: 0 16px 34px -16px rgba(47, 107, 255, .3); }
.card .no { position: absolute; top: 16px; right: 22px; font-size: 38px; font-weight: 800; color: rgba(16, 24, 40, .06); line-height: 1; }
.ico { width: 44px; height: 44px; border-radius: 14px; background: #eaf0ff; display: grid; place-items: center; font-size: 20px; }
.card h3 { margin-top: 18px; font-size: 16.5px; font-weight: 700; }
.card p { margin-top: 10px; font-size: 13.5px; color: var(--muted); line-height: 1.75; }
.step-tag { font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--blue); }

/* ───── 상품 ───── */
.product { max-width: 640px; margin: 52px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 38px; box-shadow: 0 20px 44px -24px rgba(16, 24, 40, .25); }
.product .tag { font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--blue); }
.product h3 { margin-top: 8px; font-size: 1.6rem; font-weight: 800; }
.checks { margin-top: 24px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; font-size: 14.5px; color: #344054; }
.checks li::before { content: "✓"; flex: 0 0 22px; height: 22px; border-radius: 50%; background: #eaf0ff; color: var(--blue); font-weight: 800; font-size: 13px; display: grid; place-items: center; margin-top: 2px; }
.product .btn { margin-top: 30px; }
.fine { margin-top: 16px; font-size: 11.5px; color: var(--muted); text-align: center; }

/* ───── 수익표 ───── */
.perf { margin-top: 46px; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 12px; box-shadow: 0 20px 44px -26px rgba(16, 24, 40, .25); }
.perf img { border-radius: 16px; width: 100%; }
.perf-note { max-width: 780px; margin: 18px auto 0; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.8; }
.perf-note b { color: var(--red); }

/* ───── 브로커 ───── */
.about { max-width: 760px; margin: 44px auto 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; }
.about .tag { font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--blue); }
.about h3 { margin-top: 8px; font-size: 18px; }
.about p { margin-top: 12px; color: #475467; font-size: 14px; line-height: 1.85; }
.center { text-align: center; margin-top: 34px; }

/* ───── FAQ ───── */
.faq { max-width: 780px; margin: 48px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 26px; font-weight: 600; font-size: 15.5px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--muted); transition: transform .25s; flex: 0 0 auto; }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--blue); }
.faq details[open] summary { color: var(--blue); }
.faq .ans { padding: 0 26px 24px; color: #475467; font-size: 14.5px; line-height: 1.85; }

/* ───── 상담 ───── */
.consult { text-align: center; }
.consult h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.25; }
.consult h2 em { font-style: normal; color: var(--yellow); }
.consult p { margin: 18px auto 0; max-width: 520px; color: rgba(234, 240, 255, .7); }
.consult .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.consult .mascot-head .bubble { background: rgba(255, 255, 255, .1); border-color: rgba(200, 214, 255, .22); color: #fff; }
[data-contact-wrap][hidden], [data-install][hidden], [data-ios-hint][hidden] { display: none; }

/* ───── 푸터 ───── */
footer { background: var(--navy); color: rgba(234, 240, 255, .7); padding: 56px 0 40px; border-top: 1px solid rgba(200, 214, 255, .1); font-size: 12.5px; }
footer .brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; letter-spacing: .16em; font-size: 14px; }
footer .brand img { width: 30px; height: 30px; border-radius: 9px; background: var(--navy-2); }
footer .about-co { margin-top: 16px; max-width: 520px; line-height: 1.85; color: rgba(234, 240, 255, .55); }
.risk { margin-top: 32px; border: 1px solid rgba(251, 191, 36, .25); background: rgba(251, 191, 36, .05); border-radius: 18px; padding: 22px; }
.risk b { color: #fbbf24; font-size: 12.5px; }
.risk p { margin-top: 10px; font-size: 11.5px; line-height: 1.9; color: rgba(234, 240, 255, .5); }
.risk p + p { margin-top: 12px; color: rgba(234, 240, 255, .7); }
.risk p strong { color: #fbbf24; font-weight: 600; }
.copy { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(200, 214, 255, .08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: rgba(234, 240, 255, .4); font-size: 11.5px; }

/* 스크롤 등장 (JS가 켜졌을 때만) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ═════════ 가독성 강화: 굵은 글씨 + 색 박스 ═════════ */
body { font-weight: 500; }
.head p, .hero .lead { font-weight: 500; }
.head p { color: #475467; }
.dark .head p { color: rgba(234, 240, 255, .8); }
.card h3 { font-weight: 800; font-size: 17.5px; }
.card p { font-weight: 500; font-size: 14px; color: #344054; }
.checks li { font-weight: 600; color: var(--ink); }
.faq summary { font-weight: 700; }
.step-tag, .eyebrow, .product .tag, .about .tag { font-weight: 800; }
.btn { font-weight: 800; }

/* 카드마다 색을 달리해 한눈에 구분되게 */
.grid > .card { background: var(--tint, #fff); border: 1px solid var(--bd, var(--line)); border-top: 5px solid var(--accent, var(--blue)); }
.grid > .card:nth-child(5n+1) { --tint: #eaf0ff; --bd: #cfdcff; --accent: #2f6bff; }
.grid > .card:nth-child(5n+2) { --tint: #fff4cf; --bd: #f6df93; --accent: #e5a800; }
.grid > .card:nth-child(5n+3) { --tint: #dff7ee; --bd: #b4ebd5; --accent: #0a9c79; }
.grid > .card:nth-child(5n+4) { --tint: #efe8ff; --bd: #dccdff; --accent: #7b35e0; }
.grid > .card:nth-child(5n+5) { --tint: #ffe6ec; --bd: #ffc6d3; --accent: #e5484d; }
.grid > .card .ico { background: #fff; box-shadow: 0 4px 12px -6px rgba(16, 24, 40, .25); }
.grid > .card .step-tag { color: var(--accent); }
.grid > .card .no { color: rgba(16, 24, 40, .09); }
.grid > .card:hover { border-color: var(--accent); box-shadow: 0 16px 34px -16px rgba(16, 24, 40, .3); }
.grid > .card[style*="--navy"] { --tint: var(--navy); --accent: var(--yellow); --bd: var(--navy); }

/* 큰 박스 */
.product { border: 2px solid var(--navy); border-top: 10px solid var(--yellow); background: #fffdf5; }
.about { background: #eaf0ff; border-color: #cfdcff; border-left: 6px solid var(--blue); }
.about p { color: #344054; font-weight: 500; }
.faq details[open] { background: #f3f7ff; }
.faq details[open] summary { color: var(--blue); }
.faq .ans { color: #344054; font-weight: 500; }
.perf { border: 2px solid var(--navy); }
.perf-note { background: #fff1f0; border: 1px solid #ffd1cc; border-radius: 14px; padding: 16px 20px; color: #475467; font-weight: 500; }
.perf-note b { display: block; margin-bottom: 6px; font-size: 13.5px; }
.stat { background: rgba(255, 201, 40, .1); border-color: rgba(255, 201, 40, .35); }
.stat b { font-weight: 800; }
.hero .tags span { font-weight: 600; color: #fff; border-color: rgba(255, 201, 40, .4); }
.risk b { font-size: 14px; font-weight: 800; }

/* ═════════ 냥컷 AI 예측 플랫폼 (히어로 다음 섹션) ═════════ */
.plat { background: linear-gradient(180deg, #f1f5ff 0%, #ffffff 100%); }
.plat-top { display: grid; gap: 32px; align-items: center; margin-top: 44px; }
@media (min-width: 900px) { .plat-top { grid-template-columns: .8fr 1.2fr; } }
.plat-cat { display: flex; justify-content: center; }
.plat-cat img { width: min(100%, 360px); filter: drop-shadow(0 18px 24px rgba(16, 24, 40, .22)); animation: bob 3.4s ease-in-out infinite; }
.sub-title { font-size: 12px; font-weight: 800; letter-spacing: .2em; color: var(--blue); margin-bottom: 14px; }
.domains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.domain { border-radius: 18px; padding: 18px 8px; text-align: center; font-weight: 800; font-size: 15px; border: 1px solid var(--bd); background: var(--tint); border-top: 5px solid var(--accent); }
.domain i { display: block; font-style: normal; font-size: 28px; margin-bottom: 6px; }
.domain:nth-child(5n+1) { --tint: #eaf0ff; --bd: #cfdcff; --accent: #2f6bff; }
.domain:nth-child(5n+2) { --tint: #fff4cf; --bd: #f6df93; --accent: #e5a800; }
.domain:nth-child(5n+3) { --tint: #dff7ee; --bd: #b4ebd5; --accent: #0a9c79; }
.domain:nth-child(5n+4) { --tint: #efe8ff; --bd: #dccdff; --accent: #7b35e0; }
.domain:nth-child(5n+5) { --tint: #ffe6ec; --bd: #ffc6d3; --accent: #e5484d; }
.plat-lead { margin-top: 18px; font-weight: 600; color: #344054; font-size: 15px; }

.engine { margin-top: 56px; background: #fff; border: 2px solid var(--navy); border-radius: 26px; padding: 30px 22px 26px; }
.engine h3 { text-align: center; font-size: 1.25rem; font-weight: 800; }
.engine h3 small { display: block; font-size: 12px; letter-spacing: .2em; color: var(--blue); margin-bottom: 6px; }
.flow { display: grid; gap: 10px; margin-top: 26px; grid-template-columns: repeat(2, 1fr); counter-reset: f; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(6, 1fr); gap: 0; } }
.flow li { position: relative; text-align: center; padding: 16px 8px; border-radius: 16px; font-weight: 800; font-size: 15px; background: var(--tint); border: 1px solid var(--bd); counter-increment: f; }
.flow li::before { content: counter(f); display: block; width: 26px; height: 26px; margin: 0 auto 8px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; line-height: 26px; }
.flow li:nth-child(1) { --tint: #eaf0ff; --bd: #cfdcff; --accent: #2f6bff; }
.flow li:nth-child(2) { --tint: #efe8ff; --bd: #dccdff; --accent: #7b35e0; }
.flow li:nth-child(3) { --tint: #dff7ee; --bd: #b4ebd5; --accent: #0a9c79; }
.flow li:nth-child(4) { --tint: #fff4cf; --bd: #f6df93; --accent: #e5a800; }
.flow li:nth-child(5) { --tint: #ffe6ec; --bd: #ffc6d3; --accent: #e5484d; }
.flow li:nth-child(6) { --tint: #e3f4ff; --bd: #bfe3fb; --accent: #0b87d6; }
@media (min-width: 900px) {
  .flow li + li { margin-left: 22px; }
  .flow li:not(:last-child)::after { content: "→"; position: absolute; right: -22px; top: 50%; width: 22px; text-align: center; transform: translateY(-50%); font-weight: 800; color: var(--muted); }
}
.loop { margin-top: 18px; text-align: center; font-weight: 700; color: var(--muted); font-size: 13.5px; }
.loop b { color: var(--blue); }

.say { margin-top: 28px; display: grid; gap: 22px; align-items: center; background: var(--navy); color: #fff; border-radius: 28px; padding: 30px; }
@media (min-width: 760px) { .say { grid-template-columns: auto 1fr; padding: 30px 40px; } }
.say img { width: 150px; margin: 0 auto; filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .4)); animation: bob 3.4s ease-in-out infinite; }
.say h3 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; line-height: 1.3; }
.say h3 em { font-style: normal; color: var(--yellow); }
.say p { margin-top: 12px; color: rgba(234, 240, 255, .82); font-weight: 500; }

.vision { margin-top: 20px; background: #fff4cf; border: 2px solid #f6df93; border-left: 8px solid var(--yellow); border-radius: 22px; padding: 26px 30px; }
.vision .tag { font-size: 12px; font-weight: 800; letter-spacing: .2em; color: #b57f00; }
.vision p { margin-top: 8px; font-size: clamp(1.1rem, 2.4vw, 1.4rem); font-weight: 800; line-height: 1.5; color: var(--ink); }

/* ═════════ 회원 화면 (가입·로그인·내 정보·관리자) ═════════ */
.nav-login { color: rgba(234, 240, 255, .85); font-size: 13.5px; font-weight: 700; padding: 8px 6px; white-space: nowrap; }
.nav-login:hover { color: var(--yellow); }
.page-top { background: var(--navy); }
.page-top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.page-top a.back { color: rgba(234, 240, 255, .8); font-size: 13.5px; font-weight: 600; }
.auth-wrap { min-height: calc(100vh - 64px); background: linear-gradient(180deg, #f1f5ff 0%, #fff 60%); padding: 48px 0 72px; }
.auth-card { width: min(100% - 32px, 460px); margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 30px 28px 34px; box-shadow: 0 24px 50px -28px rgba(16, 24, 40, .3); }
.auth-card.wide { width: min(100% - 32px, 560px); }
.auth-mascot { display: flex; justify-content: center; margin-bottom: 8px; }
.auth-mascot img { width: 92px; height: 92px; object-fit: contain; }
.auth-card h1 { font-size: 1.5rem; font-weight: 800; text-align: center; }
.auth-card .sub { text-align: center; margin-top: 8px; color: var(--muted); font-size: 14px; }
.tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin: 24px 0 8px; background: var(--bg-alt); padding: 5px; border-radius: 14px; }
.tabs button { border: 0; background: transparent; padding: 11px; border-radius: 10px; font: inherit; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(16, 24, 40, .12); }
.f { margin-top: 16px; }
.f label { display: block; font-size: 13px; font-weight: 700; color: #344054; margin-bottom: 6px; }
.f label small { font-weight: 500; color: var(--muted); }
.f input[type="email"], .f input[type="password"], .f input[type="text"], .f input[type="tel"], .f input[type="search"], .f select, .f textarea { width: 100%; font: inherit; font-size: 15px; padding: 13px 14px; border: 1px solid #d5dbe8; border-radius: 12px; background: #fff; color: var(--ink); }
.f input:focus, .f select:focus, .f textarea:focus { outline: 2px solid rgba(47, 107, 255, .35); border-color: var(--blue); }
.checks-box { margin-top: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fafbfd; padding: 6px 14px; }
.chk { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; font-size: 13.5px; color: #344054; font-weight: 500; line-height: 1.5; }
.chk + .chk { border-top: 1px solid var(--line); }
.chk input { margin-top: 3px; width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--blue); }
.chk a { color: var(--blue); text-decoration: underline; }
.chk b { color: var(--blue); font-weight: 800; }
.chk b.opt { color: var(--muted); }
.msg { margin-top: 16px; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 600; line-height: 1.6; display: none; }
.msg.show { display: block; }
.msg.ok { background: #e6f7ef; color: #067647; border: 1px solid #b4ebd5; }
.msg.err { background: #fff1f0; color: #b42318; border: 1px solid #ffd1cc; }
.auth-card .btn { margin-top: 22px; width: 100%; }
.auth-card .btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; color: var(--blue); font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; padding: 0; text-decoration: underline; }
.center-row { text-align: center; margin-top: 18px; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; background: #eef1f6; color: #475467; }
.badge.s-REQUESTED { background: #fff4cf; color: #8a5a00; }
.badge.s-CONFIRMED { background: #dff7ee; color: #067647; }
.badge.s-COPYING { background: #eaf0ff; color: #1d4ed8; }
.badge.s-STOPPED { background: #ffe6ec; color: #b42318; }
.info-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--bg-alt); font-size: 14px; font-weight: 600; }
.legal { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; }
.legal h1 { font-size: 1.8rem; font-weight: 800; }
.legal h2 { margin-top: 34px; font-size: 1.1rem; font-weight: 800; }
.legal p, .legal li { margin-top: 10px; color: #344054; font-size: 14.5px; line-height: 1.85; font-weight: 500; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13.5px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--bg-alt); }
.draft-note { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: #fff4cf; border: 1px solid #f6df93; color: #7a4f00; font-size: 13px; font-weight: 600; line-height: 1.7; }

/* 관리자 표 */
.adm { width: min(100% - 32px, 1240px); margin: 0 auto; padding: 36px 0 80px; }
.adm h1 { font-size: 1.6rem; font-weight: 800; }
.adm-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.stats-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.stats-row .badge { font-size: 13px; padding: 7px 14px; }
.tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tools input, .tools select { font: inherit; font-size: 14px; padding: 10px 12px; border: 1px solid #d5dbe8; border-radius: 10px; background: #fff; }
.tools .btn { padding: 10px 18px; font-size: 14px; }
.tbl-wrap { margin-top: 18px; overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 980px; }
.tbl th, .tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; vertical-align: middle; }
.tbl th { background: var(--bg-alt); font-size: 12px; color: var(--muted); font-weight: 800; }
.tbl td input[type="text"], .tbl td select { font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid #d5dbe8; border-radius: 8px; }
.tbl td input[type="text"] { width: 150px; }
.tbl .del { color: #b42318; font-weight: 800; }
.tbl button { font: inherit; font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--blue); background: #fff; color: var(--blue); cursor: pointer; }

/* ═════════ 포인트·추천인 ═════════ */
.panel { margin-top: 26px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 24px; }
.panel h2 { font-size: 1.1rem; font-weight: 800; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hint { margin-top: 8px; font-size: 13px; color: var(--muted); font-weight: 500; line-height: 1.7; }
.hint b { color: var(--ink); }
.grant-grid { display: grid; gap: 22px; margin-top: 12px; }
@media (min-width: 860px) { .grant-grid { grid-template-columns: 1fr 1fr; } }
.found { display: grid; gap: 6px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.found button { text-align: left; font: inherit; font-size: 13.5px; font-weight: 600; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.found button:hover { border-color: var(--blue); background: #f3f7ff; }
.picked { padding: 11px 14px; border-radius: 12px; background: var(--bg-alt); font-weight: 700; font-size: 14px; }
.tbl td.num { font-variant-numeric: tabular-nums; text-align: right; }
.tbl td.num.del { color: #b42318; }
.pts { margin-top: 18px; }
.pts .bal { font-size: 1.5rem; font-weight: 800; color: var(--blue); }
.pts h3 { margin-top: 20px; font-size: 14px; font-weight: 800; }
.lot { display: flex; justify-content: space-between; gap: 10px; padding: 11px 14px; margin-top: 8px; border-radius: 12px; background: #fff4cf; border: 1px solid #f6df93; font-size: 13.5px; font-weight: 600; }
.lot.due { background: #ffe6ec; border-color: #ffc6d3; }
.lot small { display: block; color: var(--muted); font-weight: 500; }
.ledger { margin-top: 8px; font-size: 13px; }
.ledger div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line); }
.ledger .minus { color: #b42318; font-weight: 700; }
.ledger .plus { color: #067647; font-weight: 700; }
.refbox { margin-top: 18px; padding: 16px; border-radius: 14px; background: #eaf0ff; border: 1px solid #cfdcff; font-size: 13.5px; font-weight: 600; }
.refbox code { display: inline-block; padding: 3px 10px; border-radius: 8px; background: #fff; font-size: 15px; letter-spacing: .08em; font-weight: 800; color: var(--blue); }
.refbox .row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.refbox .copy-btn { font: inherit; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 8px; border: 1px solid var(--blue); background: #fff; color: var(--blue); cursor: pointer; }
.refbox .url { word-break: break-all; font-weight: 500; color: #344054; font-size: 12.5px; }
.refbox small { display: block; margin-top: 10px; color: #475467; font-weight: 500; line-height: 1.7; }
details.hist summary { cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--blue); padding: 8px 0; }

.sub-h { margin-top: 20px; font-size: 14px; font-weight: 800; }
.sub-h small { font-weight: 500; color: var(--muted); }

/* 월별 성과표: 누르면 크게 보기 */
.perf-zoom { display: block; position: relative; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 16px; }
.perf-zoom img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 10px 30px -16px rgba(16, 24, 40, .35); }
.perf-zoom .zoom-hint { position: absolute; right: 14px; bottom: 14px; padding: 9px 14px; border-radius: 999px; background: rgba(15, 23, 51, .88); color: #fff; font-size: 13px; font-weight: 700; pointer-events: none; }
.perf-zoom:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.lb { position: fixed; inset: 0; z-index: 9999; background: rgba(8, 12, 28, .92); display: none; }
.lb.open { display: block; }
.lb-scroll { position: absolute; inset: 0; overflow: auto; padding: 56px 12px 24px; -webkit-overflow-scrolling: touch; }
.lb-scroll img { display: block; margin: 0 auto; width: max(100%, 900px); max-width: 1500px; height: auto; background: #fff; border-radius: 8px; }
.lb-close { position: fixed; top: 10px; right: 12px; z-index: 2; padding: 10px 16px; border: 0; border-radius: 999px; background: #fff; color: #101828; font-size: 14px; font-weight: 800; cursor: pointer; }
.lb-tip { position: fixed; top: 18px; left: 16px; z-index: 2; color: rgba(255, 255, 255, .8); font-size: 12.5px; font-weight: 600; }
