/* ============================================================
   사장님ON — 디자인 시스템 v0.4 (토스풍 미니멀)
   원칙: 중립 그레이 스케일 + 단일 강조색(플랫) + 넓은 여백 + 은은한 그림자.
        그라디언트 제거, 단색 아이콘, 8px 간격 그리드.
   ============================================================ */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

:root {
  /* 중립(토스 그레이 계열) */
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --text: #191F28;
  --text-2: #4E5968;
  --muted: #8B95A1;
  --line: #E5E8EB;
  --line-2: #F2F4F6;
  /* 강조(브랜드 그린, 플랫) */
  --green: #119057;
  --green-dark: #0B6E40;
  --green-soft: #EAF6EF;
  --green-line: #CFE9DA;
  --accent: #119057;
  /* 보조 */
  --orange: #D9621E;
  --orange-dark: #B84F14;
  --danger: #E5484D;
  /* 모양 */
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 20px;
  /* 그라디언트 토큰은 단색으로 평탄화(기존 var(--grad) 사용처가 전부 플랫이 됨) */
  --grad: #119057;
  --grad-orange: #D9621E;
  /* 그림자(은은하게) */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 8px 24px rgba(25, 31, 40, 0.08);
  --shadow-press: 0 1px 2px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* 제목 굵기 정제 — 기본 bold(700) 대신 가벼운 무게 */
h1, h2, h3, h4, h5, h6 { font-weight: 600; letter-spacing: -0.02em; }

/* hidden 속성은 어떤 display 규칙보다 우선 (모달 오픈 버그 방지) */
[hidden] { display: none !important; }

/* 단색 라인 아이콘 */
.ic { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.nav-btn .ic { display: block; }
.big-btn-icon .ic { color: #fff; }
.guide-fab.has-icon { display: flex; align-items: center; justify-content: center; font-size: 0; }
.guide-fab .ic { color: #fff; }

html { font-size: 16px; } /* 일반 웹 기준(정제·축소 디자인) */

body {
  font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: -0.015em;
  font-weight: 400;
  padding-bottom: 7rem;
  max-width: 640px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- 헤더 (모바일) ---------- */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 1rem 0.75rem;
}
.brand { display: flex; align-items: center; gap: 0.5rem; }
.brand-logo {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.28rem 0.52rem;
  border-radius: 8px;
  letter-spacing: 0.4px;
}
.brand-name { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
.badge {
  font-size: 0.68rem;
  color: var(--orange);
  border: 1.5px solid var(--orange);
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
  font-weight: 700;
}
.tagline { font-size: 0.78rem; color: var(--muted); margin-top: 0.18rem; }

/* ---------- 레이아웃 공통 ---------- */
main { padding: 1rem; }
.view h2 { font-size: 1.15rem; margin-bottom: 0.8rem; letter-spacing: -0.02em; }
.view-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.view-head h2 { margin-bottom: 0; }
.h2-sub { font-size: 0.72rem; color: var(--muted); font-weight: 500; }
.muted { color: var(--muted); font-size: 0.85rem; }
.center { text-align: center; }
.row { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }

/* ---------- 오늘 요약 ---------- */
.today-grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: 0.6rem; margin-bottom: 1rem; }
.today-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  box-shadow: var(--shadow);
}
.today-card:first-child { background: var(--grad); border: none; }
.today-card:first-child .today-label { color: rgba(255, 255, 255, 0.82); }
.today-card:first-child .today-value { color: #fff; }
.today-label { font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.today-value { font-size: 1.18rem; font-weight: 700; margin-top: 0.12rem; word-break: keep-all; letter-spacing: -0.02em; }

/* ---------- 큰 버튼 2개 (화면당 핵심 선택지 1~2개) ---------- */
.big-btn {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  color: #fff;
  transition: transform 0.08s, box-shadow 0.2s;
}
.big-btn:active { transform: scale(0.985); box-shadow: var(--shadow-press); }
.big-btn-green { background: var(--grad); box-shadow: var(--shadow-sm); }
.big-btn-orange { background: var(--grad-orange); box-shadow: var(--shadow-sm); }
.big-btn-icon {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.big-btn-text { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.02em; }
.big-btn-hint { font-size: 0.76rem; opacity: 0.9; margin-left: auto; text-align: right; line-height: 1.4; font-weight: 400; }

/* 홈 재고 현황(컴팩트 칩) */
.home-stock { margin-bottom: 0.9rem; }
.home-stock-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.4rem; }
.home-stock-head span { font-size: 0.82rem; font-weight: 600; color: var(--text-2); }
.home-stock-head button { background: none; border: none; color: var(--accent); font-size: 0.74rem; font-weight: 600; cursor: pointer; }
.home-stock-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.stock-chip { font-size: 0.78rem; background: var(--line-2); border: 1px solid var(--line); border-radius: 999px; padding: 0.28rem 0.7rem; color: var(--text-2); }
.stock-chip b { color: var(--text); font-weight: 600; }
.stock-chip.low { background: #FCEFEC; border-color: #F5D5CD; color: var(--danger); }
.stock-chip.low b { color: var(--danger); }

/* ---------- 듣기 상자 ---------- */
.listen-box {
  background: var(--surface);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.85rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.listen-title { font-weight: 700; color: var(--green); }
.pulse { animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: 0.2; } }
.listen-text { font-size: 1.2rem; min-height: 1.8rem; margin: 0.5rem 0; font-weight: 600; }

/* ---------- 직접 입력 ---------- */
.manual-form { display: flex; gap: 0.5rem; margin-bottom: 1.2rem; }
.manual-form input {
  flex: 1;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.manual-form input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(14, 122, 69, 0.12); }

/* ---------- 버튼 공통 ---------- */
.btn {
  border: none;
  border-radius: 13px;
  padding: 0.8rem 1.2rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 48px; /* 터치 영역 48dp+ */
  transition: transform 0.08s, box-shadow 0.15s, opacity 0.15s;
  letter-spacing: -0.01em;
}
.btn:active { transform: scale(0.98); }
.btn-green { background: var(--grad); color: #fff; box-shadow: var(--shadow-sm); }
.btn-orange { background: var(--grad-orange); color: #fff; box-shadow: var(--shadow-sm); }
.btn-dark { background: #1E2A23; color: #fff; }
.btn-gray { background: #ECEEE9; color: var(--text); }
.btn-text { background: none; color: var(--muted); text-decoration: underline; margin-top: 0.6rem; min-height: auto; }
.btn-xl { font-size: 1.25rem; padding: 1.1rem 1.2rem; width: 100%; border-radius: 16px; }
.btn-sm { font-size: 0.85rem; padding: 0.55rem 0.9rem; min-height: 40px; }
.btn[disabled] { opacity: 0.55; cursor: default; }

/* ---------- 기록 목록 ---------- */
.recent h2 { font-size: 0.95rem; color: var(--muted); margin-bottom: 0.5rem; }
.event-list { list-style: none; }
.event-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow);
}
.ev-tag {
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.18rem 0.55rem;
  white-space: nowrap;
}
.ev-in { background: var(--green-soft); color: var(--green-dark); }
.ev-out { background: #FCEEE3; color: var(--orange-dark); }
.ev-sales { background: #F4F0DF; color: #79610A; }
.ev-rev { background: #F8E3E0; color: var(--danger); }
.ev-credit { background: #FBE9D7; color: #9A5B12; }
.ev-pay { background: #E0EEF6; color: #1B5E8A; }

/* 장부 검색 */
.ledger-search { width: 100%; font-family: inherit; font-size: 0.95rem; padding: 0.7rem 0.9rem; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 0.7rem; background: var(--surface); }
.ledger-search:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(14,122,69,0.12); }

/* 미수금(받을 돈) 리스트 */
.credit-list { list-style: none; }
.credit-list li { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0; border-bottom: 1px dashed var(--line); font-size: 0.95rem; }
.credit-list li.muted { color: var(--muted); border: none; }
.credit-v { flex: 1; font-weight: 600; }
.credit-amt { font-weight: 700; color: var(--orange-dark); }
.credit-pay { background: var(--green); color: #fff; border: none; border-radius: 9px; padding: 0.35rem 0.8rem; font-family: inherit; font-weight: 600; font-size: 0.82rem; cursor: pointer; }
.credit-stmt { background: #ECEEE9; color: var(--text); border: none; border-radius: 9px; padding: 0.35rem 0.7rem; font-family: inherit; font-weight: 600; font-size: 0.8rem; cursor: pointer; }

/* 손익(마진) 리스트 */
.margin-list { list-style: none; }
.margin-list li { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0; border-bottom: 1px dashed var(--line); font-size: 0.92rem; }
.margin-list li.muted { color: var(--muted); border: none; }
.m-item { flex: 1; font-weight: 600; }
.m-qty { color: var(--muted); font-size: 0.82rem; }
.m-profit { font-weight: 700; color: var(--green-dark); }
.m-missing { flex-wrap: wrap; color: var(--muted); font-size: 0.82rem; }
.m-missing > span { width: 100%; }
.m-setcost { background: #FFF3CD; color: #7A5C00; border: 1px solid #F0E2C0; border-radius: 999px; padding: 0.25rem 0.7rem; font-family: inherit; font-weight: 600; font-size: 0.8rem; cursor: pointer; }

/* 재고 행 클릭(임계치) */
.stock-row { cursor: pointer; }
.stock-row:hover td { background: #F7F9F6; }
.stock-thr { font-size: 0.75rem; color: var(--orange-dark); font-weight: 600; }
.stock-act-th, .stock-act { text-align: right; width: 1%; white-space: nowrap; }
.stock-adjust { background: var(--green-soft); border: 1px solid var(--green-line); color: var(--green-dark); border-radius: 9px; padding: 0.3rem 0.7rem; font-family: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer; }
.stock-adjust:hover { background: var(--green-line); }
.ev-main { flex: 1; font-weight: 600; font-size: 0.98rem; }
.ev-main .ev-time { display: block; font-size: 0.7rem; color: var(--muted); font-weight: 400; }
.ev-reversed .ev-main { text-decoration: line-through; color: var(--muted); }
.ev-fix {
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.4rem 0.7rem;
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--muted);
}
.ev-fix:hover { border-color: var(--danger); color: var(--danger); }
.ev-edit {
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.4rem 0.7rem;
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--green-dark);
  margin-right: 0.35rem;
}
.ev-edit:hover { border-color: var(--green); background: var(--green-soft); }

/* ---------- 재고 표 ---------- */
.stock-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.stock-table th, .stock-table td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
.stock-table tr:last-child td { border-bottom: none; }
.stock-table th { background: #F1F4F0; font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.stock-neg { color: var(--danger); font-weight: 700; }

/* ---------- 설정 ---------- */
.setting-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.1rem;
  margin-bottom: 0.8rem;
  box-shadow: var(--shadow);
}
.setting-card h3 { font-size: 0.98rem; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.acc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.acc-head h3 { margin-bottom: 0; }
.setting-card p { font-size: 0.88rem; margin-bottom: 0.5rem; }
.doc-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.doc-links a {
  background: #F1F4F0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-dark);
  text-decoration: none;
}
.doc-links a:hover { background: var(--green-soft); border-color: var(--green-line); }

/* ---------- 모달 ---------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(13, 22, 17, 0.6);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 50;
}
.modal-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 1.6rem 1.3rem;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  box-shadow: 0 18px 56px rgba(13, 22, 17, 0.20);
}
.draft-text { font-size: 1.32rem; font-weight: 600; line-height: 1.4; word-break: keep-all; letter-spacing: -0.025em; }
.draft-question { font-size: 1.08rem; margin: 0.6rem 0 1rem; font-weight: 500; }
.modal-actions { display: flex; flex-direction: column; gap: 0.6rem; }

/* 여러 건 한 번에 */
.multi-list { list-style: none; text-align: left; margin: 0.8rem 0 1rem; max-height: 46vh; overflow-y: auto; }
.multi-item { display: flex; align-items: center; gap: 0.55rem; padding: 0.6rem 0.2rem; border-bottom: 1px solid var(--line-2); }
.multi-item:last-child { border-bottom: none; }
.multi-tag { flex-shrink: 0; font-size: 0.7rem; font-weight: 600; border-radius: 7px; padding: 0.2rem 0.55rem; }
.multi-main { flex: 1; font-size: 1.05rem; font-weight: 500; word-break: keep-all; }
.multi-x { flex-shrink: 0; background: none; border: 1.5px solid var(--line); color: var(--muted); border-radius: 8px; width: 32px; height: 32px; font-size: 0.85rem; cursor: pointer; }
.multi-x:hover { border-color: var(--danger); color: var(--danger); }

.draft-edit { text-align: left; margin-bottom: 1rem; }
.draft-edit label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--muted); margin-bottom: 0.6rem; }
.draft-edit input, .draft-edit select {
  display: block;
  width: 100%;
  font-family: inherit;
  font-size: 1.1rem;
  padding: 0.7rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  margin-top: 0.2rem;
  background: #fff;
}
.draft-edit input:focus, .draft-edit select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(14, 122, 69, 0.12); }
.draft-edit .row label { margin-bottom: 0; }

#scan-video { width: 100%; border-radius: 14px; background: #000; min-height: 240px; }

.progress { background: #ECEEE9; border-radius: 999px; height: 14px; overflow: hidden; margin-top: 0.5rem; }
.progress-bar { background: var(--grad); height: 100%; width: 0%; transition: width 0.2s; }

/* ---------- 토스트 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 8rem;
  transform: translateX(-50%);
  background: #16201A;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 600;
  padding: 0.9rem 1.3rem;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(13, 22, 17, 0.26);
  z-index: 60;
  max-width: 90%;
  text-align: center;
  word-break: keep-all;
}

/* ---------- 하단 내비 (모바일) ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 640px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: flex;
  z-index: 40;
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 0.5rem 0 0.6rem;
  font-family: inherit;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.08rem;
}
.nav-btn span { font-size: 0.68rem; font-weight: 600; }
.nav-btn.active { color: var(--green); }

/* ---------- 법적 푸터 ---------- */
.legal {
  position: fixed;
  bottom: 4.1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 640px;
  text-align: center;
  font-size: 0.6rem;
  color: #9AA39C;
  padding: 0.2rem 1rem;
  pointer-events: none;
}

/* ========== 로그인 게이트 — 홈페이지형 (게시판 + 로그인) ========== */
.home-gate { min-height: 100vh; background: var(--bg); }
.hg-nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.hg-nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 0.6rem 1.3rem;
  display: flex; align-items: center; justify-content: space-between;
}
.hg-brand { display: flex; align-items: center; gap: 0.45rem; font-weight: 700; font-size: 0.95rem; letter-spacing: -0.02em; }
.hg-menu { display: flex; gap: 1.25rem; font-size: 0.8rem; font-weight: 500; color: var(--muted); }
.hg-menu a { cursor: pointer; }
.hg-menu a:hover { color: var(--green-dark); }
@media (max-width: 720px) {
  .hg-nav-inner { flex-wrap: wrap; }
  .hg-menu { width: 100%; flex-wrap: wrap; gap: 0.5rem 0.9rem; font-size: 0.74rem;
    margin-top: 0.5rem; padding-top: 0.45rem; border-top: 1px solid var(--line); }
}

.hg-body {
  max-width: 1080px; margin: 0 auto; padding: 1.4rem 1.3rem 2.4rem;
  display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 1.3rem 1.5rem; align-items: start;
}
/* 로그인(왼쪽) · 게시판(오른쪽) · 환영배너(전체너비 상단) */
.hg-hero { grid-column: 1 / -1; order: 0; }
.hg-login { order: 1; min-width: 0; }
.hg-main { order: 2; min-width: 0; }
@media (max-width: 880px) { .hg-body { grid-template-columns: minmax(0, 1fr); } }

.hg-hero { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.5rem; }
.hg-hero h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; color: var(--text); word-break: keep-all; }
.hg-hero p { font-size: 0.9rem; font-weight: 400; color: var(--text-2); margin-top: 0.5rem; line-height: 1.6; word-break: keep-all; }
.hg-hero-links { display: flex; gap: 0.5rem; margin-top: 1.1rem; flex-wrap: wrap; }
.hg-hero-links a {
  background: var(--green-soft); border: 1px solid var(--green-line);
  color: var(--green-dark); font-size: 0.84rem; font-weight: 600; border-radius: var(--radius-sm);
  padding: 0.55rem 1rem; transition: background 0.15s;
}
.hg-hero-links a:hover { background: var(--green-line); }

/* 배너/광고 슬롯 */
.promo {
  grid-column: 1 / -1; order: -1;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--accent); color: #fff;
  border-radius: var(--radius); padding: 1.15rem 1.5rem;
  text-decoration: none; cursor: pointer; box-shadow: var(--shadow);
  transition: filter 0.15s, transform 0.08s;
}
.promo:hover { filter: brightness(1.04); }
.promo:active { transform: scale(0.997); }
.promo-badge { display: inline-block; background: rgba(255, 255, 255, 0.22); border-radius: 999px; padding: 0.14rem 0.6rem; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.05em; }
.promo-h { font-size: 1.12rem; font-weight: 700; margin-top: 0.4rem; letter-spacing: -0.02em; }
.promo-s { font-size: 0.82rem; opacity: 0.92; margin-top: 0.25rem; line-height: 1.5; word-break: keep-all; }
.promo-cta { flex-shrink: 0; background: #fff; color: var(--green-dark); font-weight: 700; font-size: 0.86rem; border-radius: var(--radius-sm); padding: 0.65rem 1.1rem; white-space: nowrap; }
@media (max-width: 560px) { .promo { flex-direction: column; align-items: flex-start; } .promo-cta { width: 100%; text-align: center; } }

/* 광고 슬롯 (무료 회원 노출, 유료 숨김) */
.ad-slot { display: flex; align-items: center; gap: 0.7rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.7rem 0.9rem; margin: 0.9rem 0; }
.ad-label { font-size: 0.58rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 0.05rem 0.32rem; flex-shrink: 0; letter-spacing: 0.04em; }
.ad-body { flex: 1; min-width: 0; }
.ad-body b { display: block; font-size: 0.84rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-body span { font-size: 0.72rem; color: var(--text-2); }
.ad-tag { font-size: 0.64rem; font-weight: 600; color: var(--green-dark); background: var(--green-soft); border-radius: 999px; padding: 0.14rem 0.55rem; flex-shrink: 0; }

/* 앱 홈 배너/광고 슬롯 */
.app-banner {
  display: flex; align-items: center; gap: 0.65rem;
  background: var(--green-soft); border: 1px solid var(--green-line);
  border-radius: var(--radius-sm); padding: 0.75rem 0.9rem; margin-bottom: 0.9rem;
  text-decoration: none; cursor: pointer;
}
.app-banner-ic { color: var(--accent); display: inline-flex; flex-shrink: 0; }
.app-banner-txt { flex: 1; min-width: 0; }
.app-banner-txt b { display: block; font-size: 0.86rem; font-weight: 600; color: var(--text); }
.app-banner-txt > span { font-size: 0.72rem; color: var(--text-2); }
.app-banner-x { background: none; border: none; color: var(--muted); font-size: 0.85rem; cursor: pointer; padding: 0.2rem 0.3rem; flex-shrink: 0; line-height: 1; }

/* 히어로 핵심가치 칩 */
.hero-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin: 1.1rem 0; }
.hf { background: var(--line-2); border-radius: var(--radius-sm); padding: 0.8rem 0.5rem; text-align: center; }
.hf .hf-ic { color: var(--accent); display: inline-flex; }
.hf b { display: block; font-size: 0.82rem; font-weight: 600; margin-top: 0.3rem; }
.hf span { font-size: 0.68rem; color: var(--muted); }
@media (max-width: 560px) { .hero-feats { gap: 0.45rem; } .hf { padding: 0.65rem 0.3rem; } }

.hg-boards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px) { .hg-boards { grid-template-columns: 1fr; } }

.board {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 0.95rem 1.05rem; box-shadow: var(--shadow); margin-bottom: 1.1rem;
}
.hg-boards .board { margin-bottom: 0; }
.board-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.55rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line);
}
.board-head h2 { font-size: 0.88rem; font-weight: 600; letter-spacing: -0.01em; }
.board-head .more { font-size: 0.68rem; font-weight: 500; color: var(--muted); }
a.more:hover { color: var(--green-dark); }
.board-list { list-style: none; }
.board-list li { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0; border-bottom: 1px dashed var(--line); }
.board-list li:last-child { border-bottom: none; }
.b-tag { flex-shrink: 0; font-size: 0.62rem; font-weight: 600; border-radius: 5px; padding: 0.08rem 0.38rem; }
.b-tag.notice { background: var(--green-soft); color: var(--green-dark); }
.b-tag.new { background: #FBE9D7; color: #9A5B12; }
.b-tag.imp { background: #F8E3E0; color: var(--danger); }
.b-ttl { flex: 1; font-size: 0.78rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-date { flex-shrink: 0; font-size: 0.68rem; color: #9AA39C; }

.faq-board .fq { padding: 0.5rem 0; border-bottom: 1px dashed var(--line); }
.faq-board .fq:last-child { border-bottom: none; }
.faq-board summary { font-size: 0.8rem; font-weight: 500; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.faq-board summary::after { content: '+'; color: var(--green); font-weight: 600; }
.faq-board details[open] summary::after { content: '–'; }
.faq-board p { font-size: 0.76rem; color: var(--muted); margin-top: 0.4rem; line-height: 1.55; }

.hg-login { position: sticky; top: 4.2rem; }
@media (max-width: 880px) { .hg-login { position: static; } }
.hg-login .auth-card { max-width: none; padding: 1.4rem 1.3rem; }
.hg-login .auth-title { font-size: 1.15rem; }

.hg-foot {
  border-top: 1px solid var(--line); padding: 1.2rem 1.3rem;
  text-align: center; font-size: 0.7rem; color: var(--muted); line-height: 1.7;
}
.hg-foot a { color: var(--green-dark); font-weight: 500; }

/* ========== 게시판 (공용) ========== */
.bd { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.bd-tabs { display: flex; gap: 0.1rem; border-bottom: 1px solid var(--line); overflow-x: auto; }
.bd-tab {
  flex: 0 0 auto; background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: 0.8rem; font-weight: 500; color: var(--muted); padding: 0.7rem 0.85rem;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.bd-tab.active { color: var(--green-dark); font-weight: 600; border-bottom-color: var(--green); }
.bd-bar { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 0.85rem; }
.bd-bar-info { font-size: 0.72rem; color: var(--muted); }
.bd-list { list-style: none; }
.bd-row {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.85rem;
  border-top: 1px solid var(--line); cursor: pointer;
}
.bd-row:hover { background: #F7F9F6; }
.bd-row-ttl { flex: 1; font-size: 0.85rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-row-meta { flex-shrink: 0; font-size: 0.68rem; color: #9AA39C; }
.bd-row .b-tag { flex-shrink: 0; }
.bd-empty { padding: 1.4rem 0.85rem; text-align: center; font-size: 0.8rem; color: var(--muted); border-top: 1px solid var(--line); }

/* 게시글 보기 모달 */
.pm-card { text-align: left; }
.pm-title { font-size: 1.12rem; font-weight: 600; margin: 0.5rem 0 0.3rem; letter-spacing: -0.02em; word-break: keep-all; }
.pm-meta { font-size: 0.72rem; color: var(--muted); margin-bottom: 0.9rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--line); }
.pm-body { font-size: 0.9rem; line-height: 1.65; color: var(--text); white-space: pre-wrap; word-break: keep-all; min-height: 2rem; }
.pm-del { color: var(--danger) !important; margin: 0.7rem 0 0; padding: 0; font-size: 0.76rem; }
.pm-comments { margin-top: 1.2rem; border-top: 1px solid var(--line); padding-top: 0.9rem; }
.pm-c-head { font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-bottom: 0.6rem; }
.pm-c-list { list-style: none; margin-bottom: 0.7rem; }
.pm-c-item { padding: 0.55rem 0; border-bottom: 1px dashed var(--line); }
.pm-c-item:last-child { border-bottom: none; }
.pm-c-by { font-size: 0.72rem; font-weight: 600; color: var(--text); }
.pm-c-by .pm-c-admin { background: var(--green); color: #fff; font-size: 0.6rem; border-radius: 5px; padding: 0.05rem 0.35rem; margin-left: 0.3rem; }
.pm-c-by .pm-c-date { color: #9AA39C; font-weight: 400; margin-left: 0.4rem; }
.pm-c-text { font-size: 0.82rem; line-height: 1.55; margin-top: 0.2rem; white-space: pre-wrap; word-break: keep-all; }
.pm-c-del { background: none; border: none; color: #9AA39C; font-size: 0.68rem; cursor: pointer; float: right; }
.pm-c-form { display: flex; gap: 0.5rem; align-items: flex-start; }
.pm-c-form textarea { flex: 1; font-family: inherit; font-size: 0.85rem; padding: 0.55rem 0.7rem; border: 1.5px solid var(--line); border-radius: 10px; resize: vertical; }
.pm-c-form textarea:focus { outline: none; border-color: var(--green); }
.pm-c-login { font-size: 0.78rem; padding: 0.5rem 0; }

/* 글쓰기 모달 */
.wm-cat { font-size: 0.85rem; color: var(--green-dark); font-weight: 600; }
#wm-body, #wm-title { width: 100%; font-family: inherit; }
#wm-body { font-size: 1rem; padding: 0.7rem; border: 1.5px solid var(--line); border-radius: 12px; resize: vertical; margin-top: 0.2rem; }
#wm-body:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(14,122,69,0.12); }
#wm-images { font-size: 0.82rem; margin-top: 0.3rem; }

/* 검색 줄 */
.bd-bar { flex-wrap: wrap; gap: 0.5rem; }
.bd-search { display: flex; gap: 0.4rem; flex: 1; min-width: 0; flex-wrap: wrap; }
.bd-scope { font-family: inherit; font-size: 0.78rem; border: 1.5px solid var(--line); border-radius: 9px; padding: 0.3rem 0.4rem; background: #fff; color: var(--text); }
.bd-q { flex: 1; min-width: 90px; font-family: inherit; font-size: 0.82rem; padding: 0.35rem 0.6rem; border: 1.5px solid var(--line); border-radius: 9px; }
.bd-q:focus { outline: none; border-color: var(--green); }
.bd-searchinfo { padding: 0.5rem 0.85rem; font-size: 0.76rem; color: var(--muted); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 0.5rem; }
.bd-clear { margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 7px; padding: 0.15rem 0.5rem; font-family: inherit; font-size: 0.72rem; color: var(--muted); cursor: pointer; }

/* 글쓰기 첨부 미리보기 */
.wm-preview { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.wm-thumb { position: relative; width: 70px; height: 70px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.wm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wm-thumb-x { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border: none; border-radius: 50%; background: rgba(0,0,0,0.6); color: #fff; font-size: 0.7rem; cursor: pointer; line-height: 1; }
.wm-thumb-new { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(14,122,69,0.85); color: #fff; font-size: 0.6rem; text-align: center; padding: 1px 0; }

/* 게시글 첨부 이미지 */
.pm-images { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.3rem 0 0.2rem; }
.pm-images img { max-width: 140px; max-height: 140px; border-radius: 10px; border: 1px solid var(--line); display: block; }
.pm-actions { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin-top: 0.7rem; }
.pm-act { color: var(--green-dark) !important; margin: 0 !important; padding: 0 !important; font-size: 0.78rem; }

/* ========== 로그인/회원가입 (프리미엄) ========== */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background:
    radial-gradient(900px 500px at 110% -10%, rgba(24, 163, 94, 0.16), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(12, 94, 55, 0.13), transparent 60%),
    var(--bg);
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 16px 50px rgba(12, 64, 38, 0.10);
  padding: 1.8rem 1.5rem;
  width: 100%;
  max-width: 460px;
}
.auth-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.3rem; }
.brand-logo-lg { font-size: 1.3rem; padding: 0.5rem 0.75rem; border-radius: 16px; }
.auth-title { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; }
.auth-sub { font-size: 0.85rem; color: var(--muted); }
.btn-kakao {
  width: 100%;
  background: #FEE500;
  color: #191600;
  border: none;
  border-radius: 14px;
  padding: 1rem;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 56px;
  transition: transform 0.08s, box-shadow 0.15s;
  box-shadow: 0 3px 12px rgba(254, 229, 0, 0.30);
}
.btn-kakao:active { transform: scale(0.985); }
.kakao-ico { font-size: 1.3rem; }
.kakao-sub { text-align: center; font-size: 0.78rem; color: var(--green-dark); font-weight: 600; margin: 0.5rem 0 0; }
.auth-or { display: flex; align-items: center; gap: 0.6rem; margin: 1.1rem 0; color: var(--muted); font-size: 0.78rem; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-tabs { display: flex; gap: 0.4rem; margin-bottom: 1.2rem; background: #F1F4F0; border-radius: 14px; padding: 0.28rem; }
.auth-tab {
  flex: 1;
  background: none;
  border: none;
  border-radius: 11px;
  padding: 0.75rem;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.auth-tab.active { background: #fff; color: var(--green-dark); box-shadow: 0 2px 8px rgba(22, 32, 26, 0.1); }
.auth-card form label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--muted); margin-bottom: 0.7rem; }
.auth-card form input[type="text"], .auth-card form input[type="tel"], .auth-card form input[type="password"] {
  display: block;
  width: 100%;
  font-family: inherit;
  font-size: 1.12rem;
  padding: 0.78rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  margin-top: 0.25rem;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-card form input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(14, 122, 69, 0.12); }
.auth-card form .btn-xl { margin-top: 0.5rem; }
.auth-note { color: var(--danger); font-size: 0.88rem; font-weight: 600; margin-top: 0.6rem; min-height: 1.2rem; }
.auth-legal { font-size: 0.68rem; color: var(--muted); margin-top: 1rem; line-height: 1.55; }
.auth-legal a { color: var(--green-dark); font-weight: 600; }
.biz-hint { font-size: 0.78rem; font-weight: 600; margin: -0.3rem 0 0.7rem; min-height: 1rem; }
.biz-hint.ok { color: var(--green-dark); }
.biz-hint.bad { color: var(--danger); }
.biz-row { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; margin: 0.5rem 0; font-size: 0.9rem; }
.biz-stt { color: var(--green-dark); font-weight: 700; font-size: 0.8rem; }
.biz-result { font-size: 0.88rem; font-weight: 600; padding: 0.55rem 0.8rem; border-radius: 10px; margin: 0.5rem 0; background: #F1F4F0; }
.biz-result.ok { background: var(--green-soft); color: var(--green-dark); }
.biz-result.bad { background: #F8E3E0; color: var(--danger); }
.biz-result.info { background: #EAF3FB; color: #1B5E8A; }
.nts-config { margin: 0.6rem 0; }
.nts-config summary { font-size: 0.82rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.nts-config input { flex: 1; font-family: inherit; font-size: 0.85rem; padding: 0.55rem 0.7rem; border: 1.5px solid var(--line); border-radius: 10px; }
.industry-grid { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.9rem; max-height: 320px; overflow-y: auto; padding-right: 0.2rem; }
.industry-group { font-size: 0.74rem; font-weight: 600; color: var(--muted); margin: 0.5rem 0 0.05rem; position: sticky; top: 0; background: #fff; padding: 0.1rem 0; }
.industry-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.industry-btn {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  padding: 0.72rem 0.4rem;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.industry-btn.active { border-color: var(--green); background: var(--green-soft); color: var(--green-dark); box-shadow: 0 0 0 3px rgba(14, 122, 69, 0.1); }

/* 약관 동의 */
.terms-box {
  background: #F7F9F6;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
}
.chk {
  display: flex !important;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  margin-bottom: 0.45rem !important;
  cursor: pointer;
}
.chk:last-child { margin-bottom: 0 !important; }
.chk.master { padding-bottom: 0.55rem; border-bottom: 1px solid var(--line); margin-bottom: 0.6rem !important; font-size: 0.95rem !important; }
.chk input[type="checkbox"] { width: 1.15rem; height: 1.15rem; accent-color: var(--green); flex-shrink: 0; }
.chk a { margin-left: auto; color: var(--muted); font-size: 0.78rem; font-weight: 600; }
.chk a:hover { color: var(--green-dark); }
.chk-sub { color: var(--muted); font-size: 0.72rem; font-weight: 500; }
.perm-note {
  background: #FFF9EC;
  border: 1px solid #F0E2C0;
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  font-size: 0.74rem;
  color: #6E5A1E;
  line-height: 1.5;
  margin-bottom: 1rem;
}
.perm-note a { color: var(--green-dark); font-weight: 600; }

/* ========== 레이아웃 (PC 사이드바 / 모바일 하단바) ========== */
.layout { display: block; }
.sidebar { display: none; }

@media (min-width: 900px) {
  body { max-width: none; padding-bottom: 0; }
  .layout { display: flex; min-height: 100vh; }
  .sidebar {
    display: flex;
    flex-direction: column;
    width: 256px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #14241B 0%, #0F1D15 100%);
    color: #E8F1EB;
    padding: 1.2rem 0.95rem;
    position: sticky;
    top: 0;
    height: 100vh;
  }
  .sidebar .brand-name { color: #fff; }
  .side-store { margin: 1.15rem 0.3rem 1.3rem; padding-bottom: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .side-store-name { font-size: 1.08rem; font-weight: 700; }
  .side-store-meta { font-size: 0.73rem; color: #9DB3A5; margin-top: 0.18rem; }
  .side-nav { display: flex; flex-direction: column; gap: 0.25rem; }
  .side-nav .nav-btn {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.6rem;
    color: #B9C9BE;
    font-size: 0.98rem;
    padding: 0.72rem 0.85rem;
    border-radius: 12px;
    text-align: left;
    transition: background 0.15s, color 0.15s;
  }
  .side-nav .nav-btn span { font-size: 0.92rem; }
  .side-nav .nav-btn.active { background: var(--grad); color: #fff; box-shadow: 0 4px 12px rgba(14, 122, 69, 0.22); }
  .side-nav .nav-btn:hover:not(.active) { background: rgba(255, 255, 255, 0.07); color: #fff; }
  .side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 0.45rem; align-items: flex-start; }
  .plan-chip {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #D7E5DB;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.28rem 0.75rem;
  }
  .side-foot .btn-text { color: #9DB3A5; margin: 0; font-size: 0.82rem; }
  .content { flex: 1; min-width: 0; background: var(--bg); }
  .content main { max-width: 920px; margin: 0 auto; padding: 1.6rem 2.2rem; }
  .topbar { display: none; }
  .bottom-nav { display: none; }
  .legal { position: static; transform: none; max-width: none; padding: 1rem; }
  .today-grid { grid-template-columns: 1.4fr 1fr 1fr; max-width: 680px; }
  .big-btn { max-width: 680px; }
  .manual-form { max-width: 680px; }
}

/* ========== 경영현황 (대시보드) ========== */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-bottom: 1rem; }
@media (min-width: 900px) { .dash-grid { grid-template-columns: repeat(4, 1fr); } }
.dash-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem 1.05rem;
  box-shadow: var(--shadow);
}
.dash-card:first-child { background: var(--grad); border: none; }
.dash-card:first-child .dash-label { color: rgba(255, 255, 255, 0.82); }
.dash-card:first-child .dash-value { color: #fff; }
.dash-label { font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.dash-value { font-size: 1.3rem; font-weight: 700; margin-top: 0.15rem; word-break: keep-all; letter-spacing: -0.02em; }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.1rem;
  margin-bottom: 0.9rem;
  box-shadow: var(--shadow);
}
.panel h3 { font-size: 0.92rem; margin-bottom: 0.85rem; }
.chart { display: flex; align-items: flex-end; gap: 0.5rem; height: 170px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.chart-bar { width: 72%; background: var(--grad); border-radius: 8px 8px 3px 3px; min-height: 2px; transition: height 0.35s ease; }
.chart-amt { font-size: 0.66rem; color: var(--muted); margin-bottom: 0.2rem; font-weight: 600; }
.chart-day { font-size: 0.68rem; color: var(--muted); margin-top: 0.3rem; }
.alert-list { list-style: none; }
.alert-list li { padding: 0.5rem 0; border-bottom: 1px dashed var(--line); font-size: 0.92rem; font-weight: 600; color: var(--danger); }
.alert-list li:last-child { border-bottom: none; }
.alert-list li.muted { color: var(--muted); font-weight: 400; }

/* ========== 신고 도우미 ========== */
.filing-banner {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  border-radius: var(--radius);
  padding: 0.95rem 1.05rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
}
.filing-banner.filing-simple-book { background: var(--green-soft); border-color: var(--green-line); }
.filing-banner.filing-simple-onclick { background: #EAF3FB; border-color: #C6DEF1; }
.filing-banner.filing-double { background: #FFF7E8; border-color: #F0E2C0; }
.filing-icon { font-size: 1.6rem; line-height: 1.4; flex-shrink: 0; }
.filing-title { font-weight: 700; font-size: 1rem; margin-bottom: 0.2rem; letter-spacing: -0.01em; }
.filing-msg { font-size: 0.85rem; color: #2A352E; line-height: 1.55; }
.tax-years { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tax-year-btn {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
}
.tax-year-btn.active { background: var(--green); color: #fff; border-color: var(--green); }
.tax-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-bottom: 0.8rem; }
@media (min-width: 700px) { .tax-summary { grid-template-columns: repeat(3, 1fr); } }
.tax-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem 1.05rem;
  box-shadow: var(--shadow);
}
.tax-card-profit { grid-column: 1 / -1; background: var(--grad); border: none; }
@media (min-width: 700px) { .tax-card-profit { grid-column: auto; } }
.tax-card-profit .tax-label, .tax-card-profit .tax-sub { color: rgba(255, 255, 255, 0.82); }
.tax-card-profit .tax-value { color: #fff; }
.tax-label { font-size: 0.74rem; color: var(--muted); font-weight: 600; }
.tax-value { font-size: 1.35rem; font-weight: 700; margin: 0.15rem 0; word-break: keep-all; letter-spacing: -0.02em; }
.tax-sub { font-size: 0.72rem; color: var(--muted); }
.tax-warn { font-size: 0.82rem; color: var(--orange-dark); background: #FFF7E8; border: 1px solid #F0E2C0; border-radius: 12px; padding: 0.6rem 0.8rem; margin-bottom: 0.9rem; }
.tax-table { width: 100%; border-collapse: collapse; }
.tax-table th, .tax-table td { padding: 0.55rem 0.6rem; text-align: right; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.tax-table th:first-child, .tax-table td:first-child { text-align: left; font-weight: 600; }
.tax-table th { background: #F1F4F0; color: var(--muted); font-size: 0.78rem; }
.callout-card {
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  border-radius: var(--radius);
  padding: 1.05rem 1.1rem;
  margin-top: 0.9rem;
}
.callout-card b { display: block; margin-bottom: 0.5rem; }
.callout-card ol { padding-left: 1.2rem; margin-bottom: 0.6rem; }
.callout-card li { font-size: 0.9rem; margin-bottom: 0.25rem; }

/* ========== 요금제 ========== */
.modal-wide { max-width: 780px; }
.plan-grid { display: grid; grid-template-columns: 1fr; gap: 0.7rem; margin: 0.5rem 0 0.9rem; }
@media (min-width: 700px) { .plan-grid { grid-template-columns: repeat(3, 1fr); } }
.plan-card {
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.plan-card.current { border-color: var(--green); background: var(--green-soft); box-shadow: 0 8px 24px rgba(14, 122, 69, 0.14); }
.plan-name { font-weight: 700; font-size: 1.02rem; }
.plan-price { font-size: 1.32rem; font-weight: 700; color: var(--green-dark); letter-spacing: -0.02em; }
.plan-feats { list-style: none; flex: 1; }
.plan-feats li { font-size: 0.82rem; padding: 0.18rem 0; color: var(--text); }
.plan-feats li::before { content: '✓ '; color: var(--green); font-weight: 700; }
.beta-pill {
  display: inline-block;
  background: #FFF3CD;
  color: #7A5C00;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.18rem 0.65rem;
  vertical-align: middle;
}

/* ========== 가이드 센터 ========== */
.guide-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.guide-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  border: 1.5px solid var(--line); border-radius: 18px; padding: 1.2rem 0.8rem;
  background: #fff; font-size: 1.05rem; font-weight: 600; color: var(--text);
  cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; min-height: 110px; justify-content: center;
}
.guide-card:hover { border-color: var(--green); box-shadow: 0 8px 22px rgba(14, 122, 69, 0.12); }
.guide-ico { font-size: 2rem; }
.guide-detail { text-align: left; }
.guide-detail h3 { font-size: 1.4rem; margin: 0.2rem 0 0.9rem; letter-spacing: -0.02em; }
.guide-steps { list-style: none; padding: 0; margin: 0 0 1rem; }
.guide-steps li { font-size: 1.12rem; line-height: 1.5; padding: 0.55rem 0; border-bottom: 1px solid var(--line); word-break: keep-all; }
.guide-steps li b { color: var(--green-dark); margin-right: 0.3rem; }
.guide-ex { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.guide-ex-btn {
  text-align: left; border: 1.5px dashed var(--green); border-radius: 12px; padding: 0.7rem 0.9rem;
  background: var(--green-soft); color: var(--green-dark); font-size: 1.05rem; font-weight: 600; cursor: pointer;
}
.guide-ex-btn::before { content: '🗣️ '; }
.guide-fab {
  position: fixed; right: 1.1rem; bottom: 5.6rem; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; border: none;
  background: var(--grad-orange); color: #fff; font-size: 1.7rem; font-weight: 700;
  box-shadow: 0 8px 22px rgba(217, 98, 30, 0.4); cursor: pointer;
}
@media (min-width: 700px) { .guide-grid { grid-template-columns: repeat(3, 1fr); } }
