/* bank.css — Crowny Bank 통일 디자인 시스템 v2
   표준 원형: tiomta.com + crowny.org (Claude.ai 스타일)
   light/dark dual theme · 베이지+골드 · TOAU 컬러 · Pretendard
   모든 bank/* 페이지가 이 한 파일을 import 한다.
*/

/* ═══════════════════════════════════════════════════════
   ROOT TOKENS — light (default)
   ═══════════════════════════════════════════════════════ */
:root {
  --bg:          #FAF9F7;
  --bg-card:     #FFFFFF;
  --bg-soft:     #F4F1ED;
  --bg-hover:    #EEEAE4;
  --bg-active:   #E8E3DC;
  --bg-input:    #FFFFFF;
  --bg-code:     #1E1E1E;

  --border:      #E5E2DD;
  --border2:     #D9D2C7;
  --border3:     #D4D0C8;

  --text:        #1A1A1A;
  --text2:       #6B6B6B;
  --text3:       #A0A0A0;

  --accent:      #C9A961;
  --accent-dim:  #A08840;
  --accent-soft: rgba(201,169,97,0.10);
  --accent-glow: rgba(201,169,97,0.22);

  /* TOAU 컬러 — verse/세계관 표준 */
  --t-color:     #22A06B;
  --o-color:     #C9A961;
  --a-color:     #D93025;
  --u-color:     #7C6CDB;
  --t-soft:      rgba(34,160,107,0.10);
  --o-soft:      rgba(201,169,97,0.12);
  --a-soft:      rgba(217,48,37,0.10);
  --u-soft:      rgba(124,108,219,0.10);

  /* 보조 */
  --green:       #22A06B;
  --red:         #D93025;
  --blue:        #2979C9;
  --coral:       #D4743A;
  --purple:      #7C6CDB;

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow:      0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg:   0 4px 24px rgba(0,0,0,0.10);
  --shadow-xl:   0 24px 56px rgba(0,0,0,0.13);

  --radius:      8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-pill: 999px;

  --font: 'Pretendard Variable','Pretendard',-apple-system,BlinkMacSystemFont,'Segoe UI','Noto Sans KR',sans-serif;
  --mono: 'JetBrains Mono','SF Mono',Menlo,monospace;

  --ease:  cubic-bezier(0.4, 0, 0.2, 1);
  --t1:    150ms;
  --t2:    250ms;
}

/* ═══════════════════════════════════════════════════════
   DARK THEME
   ═══════════════════════════════════════════════════════ */
[data-theme="dark"] {
  --bg:          #0F0D14;
  --bg-card:     #1A1622;
  --bg-soft:     #14111C;
  --bg-hover:    #221C2E;
  --bg-active:   #2A2435;
  --bg-input:    #14111C;

  --border:      #2A2435;
  --border2:     #3A3445;
  --border3:     #443D52;

  --text:        #ECECF1;
  --text2:       #B4B4C0;
  --text3:       #7C7C8A;

  --accent:      #D9B870;
  --accent-dim:  #C9A961;
  --accent-soft: rgba(217,184,112,0.12);
  --accent-glow: rgba(217,184,112,0.28);

  --t-color:     #34D399;
  --o-color:     #E0C078;
  --a-color:     #EF4444;
  --u-color:     #9B8BE6;
  --t-soft:      rgba(52,211,153,0.12);
  --o-soft:      rgba(224,192,120,0.12);
  --a-soft:      rgba(239,68,68,0.12);
  --u-soft:      rgba(155,139,230,0.12);

  --green:       #34D399;
  --red:         #EF4444;
  --blue:        #6AB0E8;

  --shadow:      0 1px 3px rgba(0,0,0,0.3), 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg:   0 4px 24px rgba(0,0,0,0.5);
}

/* ═══════════════════════════════════════════════════════
   LEGACY ALIAS — 옛 인라인 :root 변수 호환 (점진 마이그레이션)
   ═══════════════════════════════════════════════════════ */
:root {
  --card: var(--bg-card);
  --card-alt: var(--bg-soft);
  --gold: var(--accent);
  --gold-dim: var(--accent-soft);
  --sub: var(--text2);
  --muted: var(--text2);
  --white: var(--text);
}

/* ═══════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--accent-dim); text-decoration: none; transition: color var(--t1) var(--ease); }
a:hover { color: var(--accent); }
code, pre, .mono { font-family: var(--mono); }
code { background: var(--bg-soft); padding: 2px 7px; border-radius: 6px; font-size: 0.85em; color: var(--text2); border: 1px solid var(--border); }
button { font-family: inherit; cursor: pointer; }

/* ═══════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════ */
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 24px; }

/* ═══════════════════════════════════════════════════════
   NAV (공통)
   ═══════════════════════════════════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(140%) blur(10px);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.brand {
  font-size: 18px; font-weight: 800; letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--accent), var(--u-color));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a { color: var(--text2); font-size: 13.5px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); }
.nav-pill { padding: 5px 12px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-pill); font-size: 11px; color: var(--text2); }
.nav-pill.u { color: var(--u-color); border-color: rgba(124,108,219,0.3); }
.theme-toggle {
  padding: 6px 14px; background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius-pill); font-size: 12px; color: var(--text2);
  transition: background var(--t1);
}
.theme-toggle:hover { background: var(--bg-hover); }

/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
.hero {
  text-align: center;
  padding: 80px 24px 60px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--u-soft);
  border: 1px solid rgba(124,108,219,0.25);
  color: var(--u-color);
  font-size: 11.5px; letter-spacing: 1.5px; font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-badge.accent { background: var(--accent-soft); border-color: rgba(201,169,97,0.3); color: var(--accent-dim); }
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--t-color) 0%, var(--o-color) 50%, var(--a-color) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h1.solid {
  background: none; -webkit-text-fill-color: var(--text); color: var(--text);
}
.hero-sub { color: var(--text2); font-size: 17px; line-height: 1.7; max-width: 600px; margin: 0 auto 16px; }
.hero-quote { color: var(--text2); font-size: 14px; font-style: italic; padding: 14px 20px; border-left: 2px solid var(--accent); background: var(--bg-card); border-radius: 0 8px 8px 0; max-width: 580px; margin: 24px auto 0; }
.hero-quote .src { display: block; margin-top: 6px; color: var(--text3); font-size: 12px; font-style: normal; }

/* ═══════════════════════════════════════════════════════
   SECTION
   ═══════════════════════════════════════════════════════ */
section { padding: 70px 0; }
.section-soft { background: var(--bg-soft); }
.section-header { text-align: center; margin-bottom: 40px; }
.tag {
  display: inline-block;
  color: var(--accent-dim);
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  font-weight: 700; margin-bottom: 14px;
}
.section-header h2 { font-size: clamp(24px, 3.5vw, 32px); font-weight: 700; letter-spacing: -0.5px; margin-bottom: 12px; color: var(--text); }
.section-header p { color: var(--text2); font-size: 15px; line-height: 1.7; max-width: 560px; margin: 0 auto; }

/* ═══════════════════════════════════════════════════════
   BUTTON
   ═══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 14px;
  border: none; cursor: pointer;
  transition: transform var(--t1), box-shadow var(--t1), background var(--t1);
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-ghost {
  background: var(--bg-card); color: var(--text); border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-hover); }
.btn-lg { padding: 16px 32px; font-size: 15px; }

/* ═══════════════════════════════════════════════════════
   CARD
   ═══════════════════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t1);
}
.card:hover { border-color: var(--border2); }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.card p, .card li { color: var(--text2); font-size: 14.5px; line-height: 1.75; }
.card ul { padding-left: 20px; margin-top: 8px; }
.card li { margin-bottom: 6px; }
.card .hl { color: var(--text); font-weight: 600; }
.card .accent { color: var(--accent-dim); font-weight: 600; }

/* DECLARE (선언 박스) */
.declare {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  margin: 28px 0;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--accent);
}
.declare .label { color: var(--accent-dim); font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 700; margin-bottom: 16px; }
.declare h3 { font-size: 22px; font-weight: 700; margin-bottom: 16px; line-height: 1.5; color: var(--text); }
.declare p { color: var(--text2); font-size: 15px; line-height: 1.8; max-width: 640px; margin: 0 auto; }
.declare .accent { color: var(--accent-dim); font-weight: 700; }
.declare .sig { color: var(--text3); font-size: 13px; margin-top: 22px; }

/* QUOTE inside card */
.quote {
  background: var(--bg-soft);
  border-left: 2px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 14px 20px; margin: 16px 0;
  font-style: italic; font-size: 14px; color: var(--text2);
}
.quote .src { display: block; margin-top: 6px; color: var(--text3); font-size: 12px; font-style: normal; }

/* ═══════════════════════════════════════════════════════
   TABLE
   ═══════════════════════════════════════════════════════ */
.tbl-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th, table.tbl td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
table.tbl th { color: var(--accent-dim); font-weight: 700; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; background: var(--bg-soft); }
table.tbl td.num, table.tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.tbl tr.highlight td { background: var(--accent-soft); color: var(--text); font-weight: 600; }
table.tbl tr:last-child td { border-bottom: none; }

/* ═══════════════════════════════════════════════════════
   STEP GRID (7단계 등)
   ═══════════════════════════════════════════════════════ */
.step-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin: 24px 0; }
@media (max-width: 768px) { .step-grid { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 10px; text-align: center; transition: border-color var(--t1); box-shadow: var(--shadow-sm); }
.step:hover { border-color: var(--accent); }
.step-n { color: var(--text3); font-size: 10px; letter-spacing: 1.5px; font-weight: 700; }
.step-v { color: var(--accent-dim); font-size: 18px; font-weight: 800; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.step-d { color: var(--text3); font-size: 11px; }

/* ═══════════════════════════════════════════════════════
   PAIR (좌우 비교)
   ═══════════════════════════════════════════════════════ */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
@media (max-width: 600px) { .pair { grid-template-columns: 1fr; } }
.pane { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; border-top: 3px solid var(--t-color); box-shadow: var(--shadow-sm); }
.pane.warn { border-top-color: var(--a-color); }
.pane h4 { font-size: 16px; margin-bottom: 8px; font-weight: 700; color: var(--text); }
.pane .verdict { font-size: 13px; font-weight: 700; margin: 6px 0 10px; letter-spacing: 0.5px; }
.pane .verdict.ok { color: var(--t-color); }
.pane .verdict.no { color: var(--a-color); }
.pane p { color: var(--text2); font-size: 13.5px; line-height: 1.7; }

/* ═══════════════════════════════════════════════════════
   KPI (관리자)
   ═══════════════════════════════════════════════════════ */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
@media (max-width: 900px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .kpi-grid { grid-template-columns: 1fr; } }
.kpi { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 22px; position: relative; overflow: hidden; box-shadow: var(--shadow-sm); }
.kpi::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.kpi.t::after { background: var(--t-color); }
.kpi.o::after { background: var(--o-color); }
.kpi.a::after { background: var(--a-color); }
.kpi.u::after { background: var(--u-color); }
.kpi-label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text3); margin-bottom: 8px; font-weight: 700; }
.kpi-value { font-size: 26px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi-sub { color: var(--text3); font-size: 12px; margin-top: 6px; }

/* ═══════════════════════════════════════════════════════
   MEMBER GRID (9인 보드)
   ═══════════════════════════════════════════════════════ */
.member-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .member-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .member-grid { grid-template-columns: 1fr; } }
.member { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; transition: border-color var(--t1); box-shadow: var(--shadow-sm); }
.member:hover { border-color: var(--accent); }
.member.founder { border-color: var(--accent); border-width: 2px; }
.member-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.member-id { font-family: var(--mono); font-size: 12px; color: var(--text); font-weight: 600; }
.member-role { font-size: 10px; letter-spacing: 1px; color: var(--text3); padding: 2px 8px; border-radius: var(--radius-pill); border: 1px solid var(--border); text-transform: uppercase; }
.member.founder .member-role { color: var(--accent-dim); border-color: var(--accent); }
.member-amount { font-size: 18px; color: var(--accent-dim); font-weight: 800; font-variant-numeric: tabular-nums; }
.member-bar { height: 5px; background: var(--bg-soft); border-radius: 3px; overflow: hidden; margin: 10px 0 6px; }
.member-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent-dim), var(--accent)); }
.member-meta { font-size: 11px; color: var(--text3); display: flex; justify-content: space-between; align-items: center; }
.member-status { font-size: 10px; padding: 2px 8px; border-radius: var(--radius-pill); }
.member-status.확정대기 { background: var(--o-soft); color: var(--o-color); }
.member-status.확정 { background: var(--t-soft); color: var(--t-color); }

/* ═══════════════════════════════════════════════════════
   STAGE BARS (7단계 진행 가로 막대)
   ═══════════════════════════════════════════════════════ */
.stage-bars { display: flex; flex-direction: column; gap: 10px; }
.stage-row { display: grid; grid-template-columns: 70px 1fr 110px; gap: 12px; align-items: center; font-size: 13px; }
.stage-label { color: var(--text3); font-size: 11px; letter-spacing: 1px; font-weight: 700; }
.stage-bar { height: 8px; background: var(--bg-soft); border-radius: 4px; overflow: hidden; }
.stage-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent-dim), var(--accent)); }
.stage-num { font-variant-numeric: tabular-nums; color: var(--text); text-align: right; font-weight: 700; }

/* ═══════════════════════════════════════════════════════
   TIMELINE (13년 약속)
   ═══════════════════════════════════════════════════════ */
.tl { display: flex; justify-content: space-between; position: relative; margin-top: 32px; padding: 0 10px; }
.tl::before { content: ''; position: absolute; top: 11px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, var(--accent), var(--border), var(--accent)); }
.tl-item { text-align: center; flex: 1; position: relative; z-index: 1; }
.tl-dot { width: 22px; height: 22px; background: var(--accent); border: 3px solid var(--bg); border-radius: 50%; margin: 0 auto 12px; box-shadow: 0 0 0 2px var(--accent-soft); }
.tl-date { font-weight: 700; color: var(--accent-dim); font-size: 12.5px; }
.tl-text { font-size: 12px; color: var(--text2); margin-top: 6px; padding: 0 4px; line-height: 1.5; }
@media (max-width: 600px) {
  .tl { flex-direction: column; gap: 22px; }
  .tl::before { display: none; }
}

/* ═══════════════════════════════════════════════════════
   PRODUCT GRID (3대 자산 등)
   ═══════════════════════════════════════════════════════ */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
@media (max-width: 600px) { .products { grid-template-columns: 1fr; } }
.product { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 20px; text-align: center; box-shadow: var(--shadow-sm); }
.product-icon { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 800; }
.product-icon.t { background: var(--t-soft); color: var(--t-color); }
.product-icon.o { background: var(--o-soft); color: var(--o-color); }
.product-icon.a { background: var(--a-soft); color: var(--a-color); }
.product-name { color: var(--text); font-weight: 700; font-size: 15px; }
.product-price { color: var(--accent-dim); font-weight: 800; font-size: 17px; margin: 6px 0; font-variant-numeric: tabular-nums; }
.product-qty { color: var(--text3); font-size: 12px; }

/* ═══════════════════════════════════════════════════════
   RULE TAG (셀코어 룰 표시)
   ═══════════════════════════════════════════════════════ */
.rule-tag { display: inline-block; font-size: 10px; color: var(--text3); background: var(--bg-soft); border: 1px solid var(--border); padding: 2px 8px; border-radius: var(--radius); font-family: var(--mono); margin-left: 8px; }

/* ═══════════════════════════════════════════════════════
   INFO BOX
   ═══════════════════════════════════════════════════════ */
.info-box { background: var(--bg-soft); border-radius: var(--radius); padding: 16px 20px; margin-top: 14px; border-left: 3px solid var(--accent); }
.info-box p { margin: 4px 0; font-size: 13.5px; color: var(--text2); }

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
footer { padding: 60px 24px 40px; border-top: 1px solid var(--border); margin-top: 80px; background: var(--bg-soft); }
.foot-inner { max-width: 1080px; margin: 0 auto; text-align: center; }
.foot-meta { color: var(--text3); font-size: 13px; }
.foot-sign { color: var(--accent-dim); font-weight: 700; font-size: 14px; margin: 8px 0 16px; }
.disclaimer { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-top: 22px; text-align: left; max-width: 760px; margin-left: auto; margin-right: auto; }
.disclaimer h4 { color: var(--text3); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px; font-weight: 700; }
.disclaimer p { color: var(--text3); font-size: 12.5px; line-height: 1.7; margin: 4px 0; }

/* ═══════════════════════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════════════════════ */
.gold { color: var(--accent-dim); font-weight: 700; }
.hl { color: var(--text); font-weight: 700; }
.muted { color: var(--text3); }
.center { text-align: center; }
.gap-12 { margin-top: 12px; }
.gap-24 { margin-top: 24px; }

/* Theme toggle (dark/light) — 텍스트만 사용 */
.theme-toggle .icon-dark, .theme-toggle .icon-light { font-size: 11px; margin-left: 6px; letter-spacing: 0.5px; }
.theme-toggle .icon-dark { display: inline; }
.theme-toggle .icon-light { display: none; }
[data-theme="dark"] .theme-toggle .icon-dark { display: none; }
[data-theme="dark"] .theme-toggle .icon-light { display: inline; }
