/* =====================================================================
   에드에플릭스 · components.css — 버튼 · 카드 · 뱃지 · 폼 · 탭 · 페이지 컴포넌트
   tokens.css 의존.
   ===================================================================== */
/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; font-size: var(--fs-15); font-weight: var(--fw-bold);
  border-radius: var(--radius-sm); background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--line-strong); line-height: 1.2; white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.btn:hover { background: var(--bg-hover); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn.money { background: var(--money); border-color: var(--money); color: #fff; }
.btn.money:hover { background: var(--green-700); border-color: var(--green-700); }
.btn.pop { background: var(--pop); border-color: var(--pop); color: #fff; }
.btn.pop:hover { background: var(--pop-700); border-color: var(--pop-700); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-soft); }
.btn.ghost:hover { background: var(--bg-hover); color: var(--ink); }
.btn.soft { background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); }
.btn.soft:hover { background: var(--brand-100); }
.btn.cream { background: #f6f4ef; border-color: #f6f4ef; color: var(--brand-700); }
.btn.cream:hover { background: #fff; border-color: #fff; }
.btn.gold { background: var(--reward); border-color: var(--reward); color: #2a2008; }
.btn.gold:hover { background: var(--amber-600); border-color: var(--amber-600); color: #fff; }
.btn.lg { padding: 15px 26px; font-size: var(--fs-17); border-radius: var(--radius-md); }
.btn.sm { padding: 7px 13px; font-size: var(--fs-13); }
.btn.block { width: 100%; }
.btn .ic { flex-shrink: 0; }

/* ── Card ──────────────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.card.pad { padding: var(--space-6); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.card-title { font-size: var(--fs-18); font-weight: var(--fw-bold); display: flex; align-items: center; gap: 9px; }
.card-title .emoji { font-size: 20px; }

/* ── Badge / Chip ──────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; font-size: var(--fs-13); font-weight: var(--fw-bold); border-radius: var(--radius-full); white-space: nowrap; line-height: 1.4; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.money   { background: var(--money-soft); color: var(--money-ink); }
.badge.pop     { background: var(--pop-soft); color: var(--pop-ink); }
.badge.brand   { background: var(--brand-soft); color: var(--brand-ink); }
.badge.reward  { background: var(--reward-soft); color: var(--reward-ink); }
.badge.success { background: var(--success-bg); color: var(--success-fg); }
.badge.warning { background: var(--warning-bg); color: var(--warning-fg); }
.badge.neutral { background: var(--neutral-bg); color: var(--neutral-fg); }
.badge.lg { padding: 6px 14px; font-size: var(--fs-14); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px;
  font-size: var(--fs-14); font-weight: var(--fw-bold); border-radius: var(--radius-full);
  background: var(--surface); border: 1.5px solid var(--line-strong); color: var(--ink-soft);
  transition: all var(--dur-fast) var(--ease); white-space: nowrap;
}
.chip:hover { border-color: var(--brand); color: var(--brand-ink); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ── Forms ─────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.label { font-size: var(--fs-14); font-weight: var(--fw-bold); color: var(--ink); display: flex; align-items: center; gap: 6px; }
.label .req { color: var(--pop); }
.input, .select, .textarea {
  width: 100%; padding: 13px 15px; font-size: var(--fs-16);
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  color: var(--ink); transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-faint); }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--brand); box-shadow: var(--shadow-focus); }
.input.error { border-color: var(--pop); }
.field-msg { font-size: var(--fs-13); color: var(--ink-faint); }
.field-msg.err { color: var(--pop); font-weight: var(--fw-medium); }
.input-group { display: flex; gap: var(--space-2); }
.input-affix { position: relative; }
.input-affix .affix { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); font-size: var(--fs-14); font-weight: var(--fw-bold); }

/* ── Tabs / segmented ──────────────────────────────────────────── */
.seg { display: inline-flex; background: var(--surface-sunk); border-radius: var(--radius-md); padding: 4px; gap: 2px; }
.seg button { padding: 9px 18px; font-size: var(--fs-14); font-weight: var(--fw-bold); border-radius: var(--radius-xs); color: var(--ink-soft); transition: all var(--dur-fast) var(--ease); white-space: nowrap; }
.seg button.active { background: var(--surface); color: var(--brand-ink); box-shadow: var(--shadow-sm); }

.tabs { display: flex; gap: var(--space-1); border-bottom: 1.5px solid var(--line); }
.tabs button { padding: 13px 18px; font-size: var(--fs-15); font-weight: var(--fw-bold); color: var(--ink-faint); border-bottom: 2.5px solid transparent; margin-bottom: -1.5px; transition: all var(--dur-fast) var(--ease); }
.tabs button:hover { color: var(--ink); }
.tabs button.active { color: var(--brand-ink); border-bottom-color: var(--brand); }

/* ── Page head ─────────────────────────────────────────────────── */
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-6); }
.ph-eyebrow { font-size: var(--fs-13); font-weight: var(--fw-bold); color: var(--brand); letter-spacing: var(--tracking-wide); display: flex; align-items: center; gap: 7px; margin-bottom: var(--space-2); white-space: nowrap; }
.ph-title { font-family: var(--font-display); font-size: var(--fs-32); color: var(--ink); line-height: 1.1; }
.ph-sub { color: var(--ink-soft); font-size: var(--fs-16); margin-top: var(--space-2); max-width: 620px; }

/* ── Empty state ───────────────────────────────────────────────── */
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--space-10) var(--space-6); gap: var(--space-3); }
.empty .e-emoji { font-size: 56px; filter: grayscale(0.1); }
.empty .e-title { font-size: var(--fs-18); font-weight: var(--fw-bold); }
.empty .e-sub { color: var(--ink-faint); font-size: var(--fs-15); max-width: 360px; }

/* ── Table ─────────────────────────────────────────────────────── */
.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-14); }
.tbl th { text-align: left; padding: 13px 16px; font-size: var(--fs-13); font-weight: var(--fw-bold); color: var(--ink-faint); background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 15px 16px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: var(--surface-2); }
.tbl .r { text-align: right; }
.tbl .strong { color: var(--ink); font-weight: var(--fw-bold); }

/* ── Utilities ─────────────────────────────────────────────────── */
.row { display: flex; align-items: center; gap: var(--space-3); }
.row.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; }
.gap-2 { gap: var(--space-2); } .gap-3 { gap: var(--space-3); } .gap-4 { gap: var(--space-4); } .gap-5 { gap: var(--space-5); } .gap-6 { gap: var(--space-6); }
.between { justify-content: space-between; }
.center { align-items: center; justify-content: center; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--ink-faint); }
.soft-ink { color: var(--ink-soft); }
.money-ink { color: var(--money); }
.grid { display: grid; gap: var(--space-5); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Toast ─────────────────────────────────────────────────────── */
.toast-wrap { position: fixed; bottom: var(--space-7); left: 50%; transform: translateX(-50%); z-index: var(--z-toast); display: flex; flex-direction: column; gap: var(--space-2); align-items: center; }
.toast { background: var(--gray-900); color: #fff; padding: 13px 20px; border-radius: var(--radius-full); font-size: var(--fs-14); font-weight: var(--fw-bold); box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 9px; animation: toastIn var(--dur) var(--ease-emph); }
[data-theme="dark"] .toast { background: var(--surface-2); border: 1px solid var(--line-strong); }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }



/* ===== 페이지 컴포넌트 (히어로/광고카드/마이페이지/관리자 등) ===== */
/* =====================================================================
   에드에플릭스 · Page styles (홈/광고/상세/인증/마이페이지/랭킹/게시판)
   ===================================================================== */

/* ── Divider ───────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--line); margin: var(--space-2) 0; }

/* 숫자(금액)는 Inter로 또렷하게 */
.hs-val, .ad-reward-val, .reward-big, .kpi-val, .payout-big, .rank-amt, .podium-amt, .stat-num
{ font-family: var(--font-num); font-weight: 800; letter-spacing: -0.03em; }

/* ── HERO ──────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(42vw 62vh at 86% -12%, rgba(157,227,194,0.40), transparent 62%),
    radial-gradient(38vw 52vh at 6% 112%, rgba(220,179,95,0.28), transparent 60%),
    linear-gradient(140deg, var(--brand-700) 0%, var(--brand-500) 100%);
  padding: var(--space-10) var(--space-9) calc(var(--space-12) + var(--space-6));
  color: #fff;
}
.hero-glow { position: absolute; width: 560px; height: 560px; right: -140px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(211,172,90,0.4), transparent 66%); filter: blur(10px); }px); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 0.9fr; gap: var(--space-9); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: var(--space-5); align-items: flex-start; }
.hero-h1 { font-size: clamp(36px, 4.8vw, 60px); line-height: 1.16; letter-spacing: -0.02em; width: 100%; }
.hero-h1 .hl { color: var(--amber-400); }
.hero-sub { font-size: var(--fs-18); line-height: 1.7; color: rgba(255,255,255,0.86); max-width: 480px; }
.hero-stats { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius-xl); padding: var(--space-6); backdrop-filter: blur(8px); display: flex; flex-direction: column; gap: var(--space-4); }
.hero-stat { display: flex; flex-direction: column; gap: 4px; }
.hs-label { font-size: var(--fs-14); color: rgba(255,255,255,0.7); font-weight: 600; }
.hs-val { font-size: var(--fs-40); line-height: 1; }
.hs-val em { font-size: 0.5em; font-style: normal; font-family: var(--font-sans); font-weight: 700; margin-left: 3px; }
.hero-stat.sm .hs-val { font-size: var(--fs-24); }
.hero-stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); padding-top: var(--space-4); border-top: 1px solid rgba(255,255,255,0.16); }
.hero-mini { font-size: var(--fs-14); color: rgba(255,255,255,0.9); display: flex; align-items: center; gap: 7px; }
.hero-mini b { font-family: var(--font-num); }
.dot-live { width: 9px; height: 9px; border-radius: 50%; background: var(--green-400); box-shadow: 0 0 0 0 rgba(52,211,153,0.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,0.6); } 70% { box-shadow: 0 0 0 10px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }

/* ── Feature cards ─────────────────────────────────────────────── */
.feature-card { gap: var(--space-3); padding: var(--space-6); }
.feature-emoji { font-size: 38px; }
.feature-title { font-size: var(--fs-20); font-weight: var(--fw-bold); }

/* ── Ad card ───────────────────────────────────────────────────── */
.ad-grid { gap: var(--space-5); }
.ad-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.ad-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.ad-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; padding: var(--space-4); display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(150deg, var(--brand-500), var(--brand-800)); }
.ad-thumb-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04); mix-blend-mode: soft-light; opacity: 0.95; }
.ad-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,44,32,0.18), rgba(8,20,15,0.66)); }
.ad-thumb > .ad-thumb-top, .ad-thumb > .ad-merchant { position: relative; z-index: 1; }
.ad-thumb-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-2); }
.ad-cat { font-size: var(--fs-13); font-weight: 700; color: #fff; background: rgba(255,255,255,0.16); padding: 5px 11px; border-radius: var(--radius-full); backdrop-filter: blur(6px); white-space: nowrap; }
.ad-hot { font-size: var(--fs-12); font-weight: 800; color: #fff; background: var(--pop); padding: 5px 10px; border-radius: var(--radius-full); box-shadow: var(--shadow-sm); }
.ad-merchant { font-size: var(--fs-20); font-weight: 700; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.45); letter-spacing: -0.01em; }
.ad-merchant.lg { font-size: var(--fs-32); }
.ad-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ad-body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.ad-title { font-size: var(--fs-17); font-weight: var(--fw-bold); line-height: 1.4; flex: 1; }
.ad-reward { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-2); padding: var(--space-3); background: var(--money-soft); border-radius: var(--radius-md); }
.ad-reward-label { font-size: var(--fs-12); font-weight: 700; color: var(--money-ink); }
.ad-reward-val { font-size: var(--fs-28); color: var(--money); line-height: 1; }
.ad-reward-val em { font-size: 0.5em; font-style: normal; font-family: var(--font-sans); font-weight: 800; margin-left: 2px; }
.ad-plus { display: flex; flex-direction: column; align-items: flex-end; font-size: var(--fs-12); color: var(--money-ink); font-weight: 700; }
.ad-plus b { font-size: var(--fs-15); }
.ad-foot { display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-13); }
.ad-conv { display: flex; align-items: center; gap: 5px; color: var(--ink-faint); font-weight: 700; }
.ad-go { display: flex; align-items: center; gap: 5px; color: var(--brand-ink); font-weight: 800; }

/* ── Ad detail ─────────────────────────────────────────────────── */
.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-6); align-items: start; }
.ad-hero { aspect-ratio: 16/7; border-radius: var(--radius-lg); padding: var(--space-7); display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; position: relative; overflow: hidden; box-shadow: var(--shadow-md); background: linear-gradient(150deg, var(--brand-500), var(--brand-800)); }
.ad-hero > * { position: relative; z-index: 1; }
.ad-hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04); mix-blend-mode: soft-light; opacity: 0.95; z-index: 0; }
.ad-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,44,32,0.22), rgba(8,20,15,0.6)); z-index: 0; }
.file-list { display: flex; flex-direction: column; gap: var(--space-2); }
.file-row { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-md); }
.file-emoji { font-size: 26px; }
.file-name { font-weight: 700; }
.reward-panel { gap: var(--space-4); position: sticky; top: calc(var(--topbar-h) + var(--space-5)); }
.reward-big { font-size: var(--fs-48); color: var(--money); line-height: 1; }
.reward-big em { font-size: 0.42em; font-style: normal; font-family: var(--font-sans); font-weight: 800; margin-left: 4px; }
.reward-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-2); padding: var(--space-4) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.reward-stats > div { display: flex; flex-direction: column; gap: 3px; }
.reward-stats span { font-size: var(--fs-12); }
.reward-stats b { font-size: var(--fs-17); font-weight: 800; }
.link-box { display: flex; flex-direction: column; gap: var(--space-2); }
.link-row { display: flex; gap: var(--space-2); }
.link-row .input { font-size: var(--fs-12); padding: 11px; }
.tip-list { display: flex; flex-direction: column; gap: var(--space-3); list-style: none; }
.tip-list li { font-size: var(--fs-15); color: var(--ink-soft); line-height: 1.5; }

/* ── Split home ────────────────────────────────────────────────── */
.split-home { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-6); align-items: start; }
.rank-list { display: flex; flex-direction: column; }
.rank-row { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) 0; }
.rank-row.lined { padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--line); }
.rank-row.lined:last-child { border-bottom: 0; }
.rank-num { font-family: var(--font-num); font-weight: 800; font-size: var(--fs-17); width: 28px; text-align: center; color: var(--ink-faint); }
.rank-num.n1 { color: #f59e0b; } .rank-num.n2 { color: #94a3b8; } .rank-num.n3 { color: #c2864e; }
.avatar.sm { width: 38px; height: 38px; font-size: var(--fs-15); }
.avatar.lg { width: 64px; height: 64px; font-size: var(--fs-24); }
.rank-name { font-weight: 700; }
.rank-amt { font-size: var(--fs-20); line-height: 1; }
.rank-amt em { font-size: 0.55em; font-style: normal; font-family: var(--font-sans); font-weight: 800; margin-left: 2px; }

/* ── Join cards ────────────────────────────────────────────────── */
.join-card { border-radius: var(--radius-lg); padding: var(--space-6); cursor: pointer; color: #fff; display: flex; flex-direction: column; gap: var(--space-2); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); position: relative; overflow: hidden; }
.join-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.join-card.marketer { background: linear-gradient(135deg, var(--brand-600), var(--brand-800)); }
.join-card.merchant { background: linear-gradient(135deg, var(--gray-800), var(--gray-950)); }
.join-emoji { font-size: 36px; }
.join-title { font-size: var(--fs-22); font-weight: 800; }
.join-card p { color: rgba(255,255,255,0.85); font-size: var(--fs-15); }
.join-go { font-weight: 800; display: flex; align-items: center; gap: 6px; margin-top: var(--space-2); }

/* ── CTA band ──────────────────────────────────────────────────── */
.cta-band { background: radial-gradient(40vw 60vh at 90% -20%, rgba(157,227,194,0.3), transparent 60%), linear-gradient(120deg, var(--brand-700), var(--brand-500)); border-radius: var(--radius-2xl); padding: var(--space-9); display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; box-shadow: var(--shadow-brand); }

/* ── Auth ──────────────────────────────────────────────────────── */
.auth-screen { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-aside { background: radial-gradient(40vw 50vh at 88% 10%, rgba(157,227,194,0.32), transparent 60%), linear-gradient(150deg, var(--brand-700), var(--brand-500)); padding: var(--space-10); display: flex; align-items: center; position: relative; overflow: hidden; }
.auth-aside::after { content: ''; position: absolute; width: 460px; height: 460px; border-radius: 50%; right: -160px; bottom: -160px; background: radial-gradient(circle, rgba(211,172,90,0.34), transparent 66%); }rent 65%); }
.auth-aside-inner { position: relative; z-index: 1; max-width: 440px; }
.auth-aside-stats { display: flex; gap: var(--space-8); margin-top: var(--space-9); }
.auth-aside-stats div { display: flex; flex-direction: column; }
.auth-aside-stats .disp { font-size: var(--fs-32); color: #fff; }
.auth-aside-stats small { color: rgba(255,255,255,0.7); font-size: var(--fs-14); font-weight: 600; }
.auth-form-side { display: flex; align-items: center; justify-content: center; padding: var(--space-8); background: var(--bg); }
.auth-card { width: 100%; max-width: 400px; }
.auth-divider { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-5) 0; color: var(--ink-faint); font-size: var(--fs-13); }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.input-affix .input { padding-right: 46px; }

/* ── Steps ─────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; position: relative; }
.step-ico { width: 56px; height: 56px; border-radius: 50%; border: 2.5px solid; display: grid; place-items: center; font-size: 26px; background: var(--surface); z-index: 1; }
.step-line { position: absolute; top: 28px; left: 60%; width: 80%; height: 2.5px; background: var(--line-strong); z-index: 0; }
.step-t { font-weight: 800; font-size: var(--fs-15); margin-top: 4px; }
.step-d { font-size: var(--fs-13); line-height: 1.4; }
.check-box { display: flex; align-items: center; gap: 9px; font-size: var(--fs-14); color: var(--ink-soft); }
.check-box input { width: 18px; height: 18px; }

/* ── KPI cards ─────────────────────────────────────────────────── */
.kpi-card { gap: var(--space-2); position: relative; }
.kpi-card.hl { background: linear-gradient(135deg, var(--brand), var(--brand-800)); border-color: transparent; color: #fff; box-shadow: var(--shadow-brand); }
.kpi-card.hl .kpi-label, .kpi-card.hl .kpi-val { color: #fff; }
.kpi-emoji { font-size: 26px; }
.kpi-label { font-size: var(--fs-14); font-weight: 700; color: var(--ink-soft); }
.kpi-val { font-size: var(--fs-32); line-height: 1; color: var(--ink); }
.kpi-val em { font-size: 0.46em; font-style: normal; font-family: var(--font-sans); font-weight: 800; margin-left: 3px; }

/* ── Mypage grid + chart ───────────────────────────────────────── */
.mypage-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--space-6); align-items: start; }
.chart-wrap { width: 100%; }
.bar-chart { width: 100%; height: 220px; }
.bc-label { font-size: 12px; fill: var(--ink-faint); font-family: var(--font-sans); font-weight: 600; }
.bc-val { font-size: 13px; fill: var(--brand); font-family: var(--font-num); font-weight: 800; }
.grade-now { display: flex; align-items: center; gap: var(--space-3); }
.grade-emoji { font-size: 44px; }
.grade-name { font-size: var(--fs-24); }
.grade-track { display: flex; justify-content: space-between; gap: 6px; margin-top: var(--space-2); }
.grade-dot { flex: 1; aspect-ratio: 1; max-width: 46px; border-radius: 50%; background: var(--surface-sunk); display: grid; place-items: center; font-size: 18px; filter: grayscale(1); opacity: 0.55; }
.grade-dot.on { filter: none; opacity: 1; background: var(--brand-soft); }

/* ── Payout ────────────────────────────────────────────────────── */
.payout { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-6); align-items: center; }
.payout-info { display: flex; flex-direction: column; gap: var(--space-2); }
.payout-big { font-size: var(--fs-40); color: var(--money); line-height: 1; }
.payout-big em { font-size: 0.46em; font-style: normal; font-family: var(--font-sans); font-weight: 800; margin-left: 3px; }
.payout-detail { display: flex; flex-direction: column; gap: var(--space-3); padding-left: var(--space-6); border-left: 1px solid var(--line); }
.payout-detail > div { display: flex; align-items: center; justify-content: space-between; }
.payout-detail b { font-size: var(--fs-16); }

/* ── Podium ────────────────────────────────────────────────────── */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); align-items: end; max-width: 760px; margin: 0 auto; }
.podium-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5) var(--space-4) 0; display: flex; flex-direction: column; align-items: center; gap: 6px; box-shadow: var(--shadow-sm); overflow: hidden; }
.podium-medal { font-size: 32px; }
.podium-name { font-weight: 800; font-size: var(--fs-17); }
.podium-amt { font-size: var(--fs-22); margin: var(--space-2) 0; }
.podium-amt em { font-size: 0.5em; font-style: normal; font-family: var(--font-sans); font-weight: 800; margin-left: 2px; }
.podium-base { width: 100%; text-align: center; font-family: var(--font-num); font-weight: 900; color: #fff; padding: var(--space-2); }
.podium-col.p1 { transform: translateY(-20px); }
.podium-col.p1 .podium-base { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.podium-col.p2 .podium-base { background: linear-gradient(135deg, #cbd5e1, #94a3b8); }
.podium-col.p3 .podium-base { background: linear-gradient(135deg, #d8a574, #c2864e); }

/* ── Board ─────────────────────────────────────────────────────── */
.board-row { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--line); }
.board-row:last-child { border-bottom: 0; }
.board-row:hover { background: var(--surface-2); }
.board-title { font-weight: 600; }
.badge.sm { padding: 2px 8px; font-size: 11px; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--space-6); }
  .detail-grid, .mypage-grid, .split-home, .payout { grid-template-columns: 1fr; }
  .reward-panel { position: static; }
  .auth-aside { display: none; }
  .auth-screen { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero { padding: var(--space-7) var(--space-5) var(--space-10); border-radius: var(--radius-xl); }
  .cta-band { padding: var(--space-6); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
  .step-line { display: none; }
  .payout-detail { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: var(--space-4); }
  .podium-amt { font-size: var(--fs-16); }
  .podium-col { padding: var(--space-3) var(--space-2) 0; }
  .avatar.lg { width: 48px; height: 48px; font-size: var(--fs-20); }
}

/* =====================================================================
   추가 페이지 (아카에드란?/홍보방법/멘토링/프로모션/관리자)
   ===================================================================== */
.role-card { gap: var(--space-2); border-top: 3px solid var(--brand); }
.role-emoji { font-size: 34px; }
.role-title { font-size: var(--fs-20); font-weight: var(--fw-bold); }
.role-items { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: var(--space-2); }
.role-items li { display: flex; align-items: center; gap: 8px; font-size: var(--fs-15); color: var(--ink-soft); }
.role-items li svg { color: var(--money); flex-shrink: 0; }

.flow-band { display: flex; align-items: center; justify-content: center; gap: var(--space-5); padding: var(--space-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.flow-arrows { font-size: 26px; color: var(--ink-faint); }

.promo-card { flex-direction: row; align-items: flex-start; gap: var(--space-4); }
.promo-emoji { font-size: 38px; flex-shrink: 0; line-height: 1; }

.level-row { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2) var(--space-1); }
.level-step { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 58px; }
.level-step-emoji { font-size: 26px; }
.level-step-name { font-weight: var(--fw-bold); font-size: var(--fs-14); }
.level-arrow { color: var(--ink-faint); font-size: 16px; }

.mentoring-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: start; }

.promo-challenge { gap: var(--space-3); }
.promo-calc { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-2) 0; }
.promo-calc > div { display: flex; flex-direction: column; gap: 2px; }
.promo-calc .muted { font-size: var(--fs-12); font-weight: 600; }
.promo-calc b { font-size: var(--fs-17); color: var(--ink); }
.promo-plus { font-size: var(--fs-20); color: var(--ink-faint); font-weight: 700; }
.promo-final { display: flex; flex-direction: column; gap: 2px; padding: var(--space-4); background: var(--money-soft); border-radius: var(--radius-md); }
.promo-final .muted { font-size: var(--fs-12); font-weight: 700; color: var(--money-ink); }

.admin-tabs { overflow-x: auto; flex-wrap: nowrap; }
.admin-tabs button { white-space: nowrap; flex-shrink: 0; }

@media (max-width: 1024px) {
  .mentoring-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .promo-card { flex-direction: column; }
  .flow-band { flex-direction: column; gap: var(--space-2); }
}
