/* ============ 미니멀 (검정·흰색) ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo",
    "Malgun Gothic", "Noto Sans KR", sans-serif;
  background: #fafafa;
  color: #111;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 720px; margin: 0 auto; padding: 32px 24px 80px; }
.guide-container { max-width: 1100px; }

/* ===== 상단 네비 ===== */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid #eee;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.brand { font-weight: 700; font-size: 16px; color: #111; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.nav-links a {
  color: #555; font-size: 14px; text-decoration: none;
  padding: 4px 0; font-weight: 500;
}
.nav-links a:hover { color: #111; }
.user-info { font-size: 13px; color: #888; }
.btn-mini {
  background: #fff; border: 1px solid #ddd; padding: 6px 12px;
  border-radius: 6px; cursor: pointer; font-size: 12px;
}
.btn-mini:hover { border-color: #111; }

/* ===== Hero ===== */
.hero { text-align: center; margin-bottom: 32px; }
.hero h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 8px; }
.hero .sub { color: #666; font-size: 14px; margin-bottom: 24px; }
.progress-bar { height: 4px; background: #eee; border-radius: 4px; overflow: hidden; margin-bottom: 8px; }
.progress-fill { height: 100%; width: 25%; background: #111; transition: width 0.3s ease; }
.step-indicator { font-size: 11px; letter-spacing: 2px; color: #888; font-weight: 600; }

/* ===== Step ===== */
.step { display: none; animation: fadeIn 0.3s ease; }
.step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: translateY(0);} }
.step h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.3px; }
.step .desc { color: #666; font-size: 14px; margin-bottom: 28px; }

/* ===== Card Radio ===== */
.card-group { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 32px; }
.card-radio { cursor: pointer; display: block; position: relative; }
.card-radio input { display: none; }
.card-radio .card-body {
  border: 1.5px solid #e5e5e5; border-radius: 12px; padding: 24px 20px;
  background: #fff; display: flex; flex-direction: column; gap: 8px;
  transition: all 0.2s;
}
.card-radio:hover .card-body { border-color: #999; }
.card-radio input:checked + .card-body { border-color: #111; background: #111; color: #fff; }
.card-radio .num { font-size: 11px; letter-spacing: 1.5px; color: #999; }
.card-radio input:checked + .card-body .num { color: #aaa; }
.card-radio .title { font-size: 16px; font-weight: 600; }

/* ===== Section Title ===== */
.section-title {
  font-size: 13px; font-weight: 700; color: #111; margin: 28px 0 14px;
  padding-top: 20px; border-top: 1px solid #eee;
}
.section-title:first-of-type { padding-top: 0; border-top: none; margin-top: 8px; }

/* ===== Form ===== */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: #222; }
.req { color: #d33; margin-left: 2px; }
.field .hint { font-size: 12px; color: #888; margin: -4px 0 10px; }
.field input[type="text"], .field input[type="number"], .field input[type="password"],
.field textarea, .field select {
  width: 100%; border: 1.5px solid #e5e5e5; border-radius: 8px;
  padding: 12px 14px; font-size: 14px; font-family: inherit; background: #fff;
  transition: border-color 0.15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: #111; }
.field textarea { resize: vertical; min-height: 56px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ===== Chips ===== */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { cursor: pointer; position: relative; }
.chip input { display: none; }
.chip span {
  display: inline-block; border: 1.5px solid #e5e5e5; border-radius: 999px;
  padding: 8px 16px; font-size: 13px; background: #fff; transition: all 0.15s;
}
.chip:hover span { border-color: #999; }
.chip input:checked + span { background: #111; color: #fff; border-color: #111; }

/* ===== Checkbox ===== */
.check-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; cursor: pointer; font-size: 14px;
}
.check-row input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: #111; }

/* ===== Highlight & conditional ===== */
.highlight-box { background: #f7f7f7; border: 1px solid #e5e5e5; border-radius: 10px; padding: 16px; }
.conditional-block {
  display: none; border-left: 3px solid #111;
  padding-left: 16px; margin-top: 24px; margin-left: 4px;
}
.conditional-block.show { display: block; }

/* ===== Buttons ===== */
.actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 32px; padding-top: 24px; border-top: 1px solid #eee; }
.btn-primary, .btn-ghost {
  padding: 12px 28px; border-radius: 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; border: 1.5px solid #111; font-family: inherit; transition: all 0.15s;
}
.btn-primary { background: #111; color: #fff; }
.btn-primary:hover { background: #000; }
.btn-primary.full { width: 100%; padding: 14px; }
.btn-ghost { background: #fff; color: #111; }
.btn-ghost:hover { background: #f5f5f5; }

/* ===== Info card ===== */
.info-card {
  display: flex; gap: 12px; background: #f5f5f5; border-radius: 10px;
  padding: 16px; margin-top: 16px; font-size: 13px; color: #444;
}
.info-card .info-icon { font-size: 18px; }
.info-card.big {
  flex-direction: column; text-align: center; background: #111; color: #fff;
  padding: 24px; margin: 24px 0;
}
.info-card.small { padding: 10px 14px; font-size: 12px; }

/* ===== Done ===== */
.done { text-align: center; padding: 24px 0; }
.check-circle {
  width: 72px; height: 72px; border-radius: 50%; background: #111; color: #fff;
  font-size: 40px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.done h2 { margin-bottom: 12px; }
.done p { color: #555; }

/* ===== Auth ===== */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.auth-box {
  width: 100%; max-width: 420px; background: #fff;
  border: 1px solid #eee; border-radius: 16px; padding: 36px 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.auth-box h1 { font-size: 24px; font-weight: 700; text-align: center; margin-bottom: 6px; }
.auth-sub { color: #666; text-align: center; font-size: 13px; margin-bottom: 24px; }
.tab-bar { display: flex; gap: 0; border-bottom: 1.5px solid #eee; margin-bottom: 24px; }
.tab-btn {
  flex: 1; background: transparent; border: none; padding: 12px;
  font-size: 14px; font-weight: 600; color: #999; cursor: pointer;
  font-family: inherit; border-bottom: 2px solid transparent; margin-bottom: -1.5px;
}
.tab-btn.active { color: #111; border-bottom-color: #111; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.auth-msg { font-size: 13px; margin-top: 12px; min-height: 18px; text-align: center; }
.auth-msg.err { color: #d33; }
.auth-msg.ok { color: #197a3d; }
.auth-foot {
  text-align: center; margin-top: 20px; padding-top: 16px;
  border-top: 1px solid #eee; font-size: 12px;
}
.auth-foot a { color: #888; text-decoration: none; }
.auth-foot a:hover { color: #111; }

/* ===== History ===== */
.history-card {
  background: #fff; border: 1px solid #eee; border-radius: 12px;
  padding: 18px 20px; margin-bottom: 12px;
}
.history-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; flex-wrap: wrap; gap: 8px;
}
.history-cat { font-weight: 700; font-size: 15px; }
.history-meta { font-size: 12px; color: #888; }
.history-detail {
  background: #f7f7f7; border-radius: 8px; padding: 12px;
  font-size: 12px; color: #444; white-space: pre-wrap;
  font-family: ui-monospace, Menlo, monospace; max-height: 200px; overflow: auto;
}
.history-memo {
  margin-top: 10px; padding: 10px; background: #fff8dc;
  border-left: 3px solid #d4a017; border-radius: 4px;
  font-size: 13px;
}

/* ===== Status badges ===== */
.status-badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
}
.status-대기 { background: #f0f0f0; color: #555; }
.status-진행중 { background: #fff5cc; color: #876300; }
.status-완료 { background: #d4f5dd; color: #1c6e3a; }

/* ===== Guide ===== */
.guide-section {
  font-size: 18px; font-weight: 700; margin: 30px 0 16px;
  padding-bottom: 8px; border-bottom: 2px solid #111;
}
.bank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.bank-card {
  background: #fff; border: 1px solid #eee; border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column;
}
.bank-head {
  padding: 14px 18px; font-weight: 700; font-size: 15px; letter-spacing: -0.2px;
}
.bank-card .sub-title {
  font-size: 13px; font-weight: 700; color: #111;
  padding: 14px 18px 6px; background: #fafafa;
}
.step-ol {
  list-style: none; counter-reset: stepCounter;
  padding: 14px 18px; margin: 0;
}
.step-ol li {
  counter-increment: stepCounter; position: relative;
  padding-left: 32px; margin-bottom: 8px; font-size: 13px;
  color: #333; line-height: 1.55;
}
.step-ol li::before {
  content: counter(stepCounter);
  position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; background: #111; color: #fff;
  border-radius: 50%; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.bank-meta {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 12px 18px; background: #fafafa;
  border-top: 1px solid #eee; font-size: 12px; color: #555;
}
.bank-extra {
  padding: 10px 18px; background: #fff8dc; font-size: 12px; color: #5e4b00;
  border-top: 1px solid #f0e6b3;
}
.guide-foot { text-align: center; color: #888; margin-top: 30px; font-size: 12px; }

footer { text-align: center; margin-top: 60px; color: #aaa; }

/* ===== Pretty detail card (사용자 페이지) ===== */
.detail-card {
  background: #fff;
  border: 1px solid #ececef;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 8px;
}
.detail-card .dt-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
}
.detail-card .dt-row:last-child { border-bottom: none; }
.detail-card .dt-key {
  background: #fafafa;
  padding: 10px 14px;
  color: #555;
  font-weight: 600;
  border-right: 1px solid #f0f0f0;
}
.detail-card .dt-val {
  padding: 10px 14px;
  color: #18181b;
  word-break: break-all;
  background: #fff;
}
.detail-card .dt-val.empty { color: #aaa; font-style: italic; }
.detail-card .dt-section {
  background: #18181b;
  color: #fff;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
@media (max-width: 600px) {
  .detail-card .dt-row { grid-template-columns: 110px 1fr; }
  .detail-card .dt-key { padding: 8px 10px; font-size: 12px; }
  .detail-card .dt-val { padding: 8px 10px; font-size: 12px; }
}

/* ===== Mobile ===== */
@media (max-width: 600px) {
  .container { padding: 24px 16px 60px; }
  .nav-inner { padding: 12px 16px; flex-wrap: wrap; }
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 13px; }
  .card-group { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 22px; }
  .step h2 { font-size: 18px; }
  .bank-grid { grid-template-columns: 1fr; }
}

/* ===== Admin ===== */
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
.admin-table th, .admin-table td { border-bottom: 1px solid #eee; padding: 10px 8px; text-align: left; vertical-align: top; }
.admin-table th { background: #111; color: #fff; font-weight: 600; position: sticky; top: 0; }
.admin-table tr:hover td { background: #fafafa; }
.detail-pre {
  background: #f7f7f7; padding: 10px; border-radius: 6px;
  font-size: 12px; max-width: 360px; max-height: 200px; overflow: auto;
  white-space: pre-wrap; word-break: break-all;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; background: #111; color: #fff;
}
.badge-pending { background: #ffa500; }
.badge-approved { background: #2c8c4a; }
.badge-rejected { background: #d33; }
.del-btn, .ok-btn, .x-btn {
  background: #fff; border: 1px solid #ccc; padding: 5px 10px;
  border-radius: 6px; cursor: pointer; font-size: 12px;
  font-family: inherit; margin-right: 4px;
}
.del-btn { border-color: #d33; color: #d33; }
.del-btn:hover { background: #d33; color: #fff; }
.ok-btn { border-color: #2c8c4a; color: #2c8c4a; }
.ok-btn:hover { background: #2c8c4a; color: #fff; }
.x-btn { border-color: #d33; color: #d33; }
.x-btn:hover { background: #d33; color: #fff; }
.progress-select {
  border: 1px solid #ccc; border-radius: 6px; padding: 5px 8px;
  font-size: 12px; font-family: inherit; cursor: pointer;
}
.memo-textarea {
  width: 100%; min-height: 50px; border: 1px solid #ddd;
  border-radius: 6px; padding: 6px 8px; font-size: 12px;
  font-family: inherit; resize: vertical;
}
.admin-tabs {
  display: flex; gap: 0; border-bottom: 2px solid #eee; margin-bottom: 24px;
}
.admin-tab {
  background: transparent; border: none; padding: 12px 20px;
  font-size: 14px; font-weight: 600; color: #888; cursor: pointer;
  font-family: inherit; border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.admin-tab.active { color: #111; border-bottom-color: #111; }
.admin-pane { display: none; }
.admin-pane.active { display: block; }
.stat-row { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.stat-card {
  background: #f5f5f5; padding: 14px 18px; border-radius: 10px; min-width: 110px;
}
.stat-card .label { font-size: 11px; color: #666; letter-spacing: 1px; }
.stat-card .val { font-size: 22px; font-weight: 700; }
