/* Shared Korean/Latin typography. Font: Pretendard v1.3.9, SIL OFL 1.1. */
@font-face {
  font-family: "Pretendard Variable";
  src: url("/fonts/PretendardVariable.9599f12fd42f.woff2") format("woff2");
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}
:root {
  --font-ui: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  font-family: var(--font-ui);
}
body { font-family: var(--font-ui); letter-spacing: -.015em; line-height: 1.6; }
button, input, select, textarea { font-family: var(--font-ui); }
h1, h2, h3 { letter-spacing: -.025em; word-break: keep-all; overflow-wrap: anywhere; }
h1, .page-heading h1, .auth-form h1 { font-weight: 700; line-height: 1.35; }
h2, h3, .section-heading h2 { font-weight: 600; line-height: 1.45; }
.page-heading h1 { font-size: 28px; }
.page-heading p { line-height: 1.65; letter-spacing: -.015em; }
.section-heading h2, .panel > h2 { font-size: 18px; }
.brand { font-weight: 700; letter-spacing: -.035em; }
.brand-symbol { font-weight: 600; letter-spacing: -.075em; padding: 0 2px 3px 0; }
.brand-light { font-weight: 500; }
.btn, .nav-item, .filter-btn, .tab, .link-btn { font-weight: 600; letter-spacing: -.015em; }
.nav-item.active { font-weight: 600; }
.product-name { font-size: 24px; font-weight: 600; line-height: 1.35; letter-spacing: -.025em; }
.product-price, .stat-value, .balance-total { font-weight: 600; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.club-content-grid .balance-total { font-size: 38px; font-weight: 600; letter-spacing: -.025em; }
.card-middle .card-plan { font-size: 28px; font-weight: 600; line-height: 1.35; letter-spacing: -.025em; }
.club-intro h1 { font-size: clamp(40px, 4.2vw, 56px); font-weight: 600; line-height: 1.12; letter-spacing: -.04em; }
.club-intro h1 em { font-style: normal; font-weight: inherit; }
.club-signature, .club-kicker, .auth-brand-mark { font-style: normal; }
.club-kicker { font-size: 13px; font-weight: 500; letter-spacing: .01em; }
.club-signature { font-size: 12px; font-weight: 500; }
.detail-grid, .activity-info, .benefit-list { letter-spacing: -.015em; }

/* Notes have a consistent inset, quieter surface and explicit sibling spacing. */
.info-strip, .notice, .panel > p.notice {
  padding: 12px 14px;
  border: 1px solid #e2e8f2;
  border-radius: 12px;
  background: #f3f6fb;
  color: #596980;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.info-strip { gap: 9px; }
.info-strip > svg { width: 17px; height: 17px; margin-top: 2px; color: #6c7fa0; }
.info-strip > span { flex: 1; min-width: 0; }
.commission-summary { margin-bottom: 16px; }
.marketing-panel > .table-wrap { width: 100%; margin-inline: 0; }
.marketing-panel > .table-wrap + .notice { margin: 16px 0 0; }
.commission-rates table { font-size: 13px; }
.commission-rates thead th { padding: 12px; background: #f3f6fb; color: #61718a; font-weight: 500; }
.commission-rates tbody th { padding: 15px 12px; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: #43536b; font-weight: 500; }
.commission-rates tbody td { padding: 15px 12px; color: #33465f; font-weight: 500; font-variant-numeric: tabular-nums; }
.commission-rates tbody tr:last-child th { border-bottom: 0; }
.reward-stats .status-value { font-weight: 600; word-break: keep-all; overflow-wrap: normal; }
@media (max-width: 767px) {
  .page-heading h1 { font-size: 24px; }
  .page-heading p { font-size: 13px; }
  .section-heading h2, .panel > h2 { font-size: 18px; }
  .product-name { font-size: 24px; }
  .club-intro h1 { font-size: clamp(34px, 10vw, 42px); line-height: 1.15; }
  .club-signature { position: static; max-width: none; margin-top: 12px; text-align: left; }
  .club-content-grid .balance-total { font-size: 36px; }
  .card-middle .card-plan { font-size: 25px; }
  .app-shell .info-strip, .app-shell .notice, .modal .notice { font-size: 13px !important; line-height: 1.65; }
  .reward-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .reward-stats .stat-card { padding: 15px 16px; border-radius: 16px; }
  .reward-stats .primary-stat { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .reward-stats .primary-stat .stat-value { margin: 0; font-size: 26px; line-height: 1.3; white-space: nowrap; }
  .reward-stats .primary-stat .stat-value small { display: inline; margin-left: 7px; font-weight: 500; }
  .reward-stats .status-value { margin-top: 7px; font-size: 16px; line-height: 1.45; }
  .commission-rates thead th, .commission-rates tbody th, .commission-rates tbody td { padding: 13px 10px; }
}
@media (max-width: 359px) {
  .reward-stats .stat-card { padding: 14px 12px; }
  .reward-stats .status-value { font-size: 15px; }
  .commission-rates table { font-size: 12px; }
  .commission-rates thead th, .commission-rates tbody th, .commission-rates tbody td { padding-inline: 8px; }
}

/* Commission operations keep the same compact white-and-blue rhythm. */
.commission-rules { display: grid; gap: 18px; margin-top: 22px; }
.commission-rules article { display: flex; align-items: flex-start; gap: 12px; }
.commission-rules article > span { display: grid; place-items: center; flex: 0 0 28px; height: 28px; border-radius: 8px; color: #5b78ae; background: #eef3fc; font-size: 11px; font-weight: 600; }
.commission-rules h3 { margin: 1px 0 5px; font-size: 14px; font-weight: 600; }
.commission-rules p { color: #77859a; font-size: 13px; line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; }
.center-panel > .btn { margin-top: 16px; }
.center-status-caption, .settlement-caption { margin-top: 12px; color: #78869a; font-size: 13px; line-height: 1.6; }
.payout-notice { margin-top: 16px; }
.withdrawal-list .activity-info small { overflow-wrap: anywhere; }
.settlement-schedule { display: flex; align-items: center; gap: 28px; padding: 6px 0 22px; color: #7f92b1; }
.settlement-schedule div { display: grid; gap: 5px; }
.settlement-schedule div span { color: #7d8ba0; font-size: 12px; }
.settlement-schedule strong { color: #365888; font-size: 24px; font-weight: 600; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.settlement-tools { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.settlement-tools > span { color: #7d8ba0; font-size: 12px; }
.settlement-panel .table-wrap { width: 100%; margin-inline: 0; }
.upgrade-panel { margin-block: 20px; }
.upgrade-options { display: grid; gap: 12px; margin-top: 18px; }
.upgrade-option { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.upgrade-option:last-child { border-bottom: 0; }
.upgrade-option h3 { margin: 0 0 5px; font-size: 15px; }
.upgrade-option p, .upgrade-option small { color: #7d8ba0; font-size: 12px; }
.upgrade-option > div { min-width: 0; }
.upgrade-option .btn { flex-shrink: 0; }
@media (max-width: 767px) {
 .settlement-schedule { gap: 16px; }
 .settlement-schedule strong { font-size: 21px; }
 .settlement-tools { align-items: stretch; }
 .settlement-tools .btn { width: 100%; }
 .reward-stats .status-value small { display: block; margin-top: 3px; font-size: 10px; font-weight: 400; }
 .upgrade-option { align-items: stretch; flex-direction: column; gap: 10px; }
 .upgrade-option .btn { width: 100%; }
}

.auth-form .auth-preview-notice { margin: 18px 0; font-size: 13px; line-height: 1.65; }

.auth-form .preview-auth-tabs { display: none; }

.auth-demo .btn + .btn { margin-top: 10px; }

/* Simulation and order tools share the membership surface and type scale. */
.simulation-member-notice { display: flex; gap: 9px; align-items: center; margin: 0 0 18px; padding: 11px 14px; border: 1px solid #dde7f5; border-radius: 12px; color: #5d7293; background: #f2f7ff; font-size: 12px; line-height: 1.6; }
.simulation-member-notice > svg { flex: 0 0 18px; width: 18px; }
.simulation-member-notice strong { font-weight: 600; }
.simulation-dashboard { display: grid; gap: 20px; min-width: 0; }
.simulation-dashboard .panel { min-width: 0; margin: 0; }
.simulation-dashboard .section-heading { flex-wrap: wrap; gap: 8px; }
.simulation-period, .simulation-caption, .simulation-unit, .simulation-period-note, .simulation-scroll-hint { color: #73829a; font-size: 12px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }
.simulation-period strong { color: #536c91; font-weight: 500; }
.simulation-clock-current { display: flex; align-items: center; gap: 13px; margin: 22px 0 18px; color: #7293c4; }
.simulation-clock-current > svg { width: 32px; height: 32px; }
.simulation-clock-current > div { display: grid; gap: 5px; }
.simulation-clock-current span { color: #71829b; font-size: 12px; }
.simulation-clock-current strong { color: #335c98; font-size: 24px; line-height: 1.4; font-weight: 600; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.simulation-clock-tools { display: grid; grid-template-columns: minmax(200px,1fr) auto auto; align-items: end; gap: 10px; margin-top: 20px; }
.simulation-clock-tools .field, .admin-order-tools .field { margin: 0; min-width: 0; }
.simulation-clock-tools .field input, .admin-order-tools input, .admin-order-tools select { width: 100%; min-width: 0; min-height: 44px; padding: 11px 12px; border: 1px solid #dfe6f0; border-radius: 10px; background: #fff; color: #3f5370; font: inherit; font-size: 13px; }
.simulation-clock-tools .field label, .admin-order-tools label { display: block; margin-bottom: 8px; color: #6d7d94; font-size: 12px; font-weight: 500; }
.simulation-clock-tools .btn { white-space: nowrap; min-height: 44px; }
.simulation-clock-tools input:disabled, .simulation-dashboard .btn:disabled { opacity: .5; cursor: not-allowed; }
.simulation-settlement-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 17px 0 13px; padding-top: 17px; border-top: 1px solid #e7edf5; }
.simulation-settlement-tools > span { color: #73829a; font-size: 12px; }
.simulation-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.simulation-stat { min-width: 0; padding: 21px 20px; border: 1px solid #e3eaf3; border-radius: 17px; background: #fff; }
.simulation-stat > span { color: #6a7d9a; font-size: 12px; }
.simulation-stat > strong { display: block; margin: 12px 0 9px; color: #355c95; font-size: clamp(18px,1.8vw,27px); font-weight: 600; line-height: 1.3; letter-spacing: -.025em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.simulation-stat > strong small { display: block; margin-top: 4px; color: #8d9db3; font-size: 10px; font-weight: 500; letter-spacing: 0; }
.simulation-stat p { color: #8391a5; font-size: 11px; line-height: 1.65; word-break: keep-all; }
.simulation-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 28px; margin: 0; }
.simulation-metrics > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid #edf1f7; }
.simulation-metrics dt { color: #7b8ba2; font-size: 12px; }
.simulation-metrics dd { margin: 0; color: #435e85; font-size: 14px; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.simulation-metrics.compact { grid-template-columns: 1fr; }
.simulation-metrics.compact > div:last-child { border-bottom: 0; }
.simulation-statuses { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin: 20px 0 15px; }
.simulation-statuses > span { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 9px; background: #f3f6fb; color: #7b8ca6; font-size: 11px; }
.simulation-statuses strong { color: #57729a; font-weight: 500; white-space: nowrap; }
.simulation-period-note { margin-top: 7px; color: #587cac; }
.simulation-scroll-hint { margin: 14px 0 8px; font-size: 11px; }
.simulation-dashboard .simulation-daily-scroll { width: 100%; max-width: 100%; margin: 0; border: 1px solid #e4ebf5; border-radius: 12px; }
.simulation-daily-table { width: 100%; min-width: 980px; border-collapse: separate; border-spacing: 0; font-size: 12px; font-variant-numeric: tabular-nums; }
.simulation-daily-table thead th { padding: 13px 12px; background: #f3f7fc; color: #6b7f9d; font-size: 11px; font-weight: 500; text-align: right; white-space: nowrap; }
.simulation-daily-table th small { display: block; margin-top: 4px; font-size: 10px; font-weight: 400; }
.simulation-daily-table tbody td, .simulation-daily-table tbody th { padding: 12px; border-bottom: 1px solid #edf1f7; color: #5b7190; font-weight: 400; text-align: right; white-space: nowrap; }
.simulation-daily-table tr > :first-child { position: sticky; left: 0; background: #f8faff; text-align: left; }
.simulation-daily-table thead tr > :first-child { background: #edf3fb; }
.simulation-daily-table tbody tr:last-child > * { border-bottom: 0; }
.simulation-detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; min-width: 0; }
.admin-order-tools { display: grid; grid-template-columns: minmax(180px,2fr) minmax(130px,1fr) minmax(150px,1fr); gap: 12px; padding-bottom: 22px; border-bottom: 1px solid #e7edf5; }
.orders-result-count { color: #7d8da6; font-size: 12px; white-space: nowrap; }
.admin-orders-panel .section-heading { flex-wrap: wrap; gap: 8px; }
.admin-orders-panel #admin-order-results { margin-top: 16px; }
.purchase-order .order-heading { display: grid; justify-items: start; gap: 7px; margin-bottom: 6px; }
.purchase-order .order-kind { margin: 0; padding: 4px 7px; border-radius: 6px; font-size: 10px; font-weight: 500; }
.purchase-order .order-approved-at { color: #7b96b9; }
.purchase-order .activity-info > small { line-height: 1.8; }
@media (max-width: 1100px) {
 .simulation-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .simulation-stat > strong { font-size: 25px; }
}
@media (max-width: 767px) {
 .admin-filter-row { flex-wrap: wrap; overflow: visible; }
 .simulation-dashboard { gap: 16px; }
 .simulation-clock-current { gap: 10px; margin-block: 18px; }
 .simulation-clock-current > svg { width: 26px; height: 26px; }
 .simulation-clock-current strong { font-size: 19px; }
 .simulation-clock-tools { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
 .simulation-clock-tools .field { grid-column: 1 / -1; }
 .simulation-clock-tools .btn { padding-inline: 10px; font-size: 12px; }
 .simulation-clock-tools input { max-width: 100%; box-sizing: border-box; }
 .simulation-settlement-tools { align-items: stretch; flex-direction: column; }
 .simulation-stats { gap: 10px; }
 .simulation-stat { padding: 17px 14px; border-radius: 14px; }
 .simulation-stat > strong { font-size: 21px; }
 .simulation-stat p { font-size: 10px; }
 .simulation-metrics { grid-template-columns: 1fr; }
 .simulation-metrics dd { font-size: 13px; }
 .simulation-statuses { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
 .simulation-statuses > span { padding: 9px 10px; font-size: 10px; }
 .simulation-detail-grid { grid-template-columns: 1fr; gap: 16px; }
 .admin-order-tools { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 10px; }
 .admin-order-tools .order-search-field { grid-column: 1 / -1; }
 .purchase-order { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 10px; }
 .purchase-order > .activity-icon { width: 34px; height: 34px; min-width: 34px; margin-top: 3px; }
 .purchase-order > .activity-info { min-width: 0; }
 .purchase-order > .activity-value { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: auto; margin-left: 0; text-align: left; }
 .purchase-order > .activity-value > strong { font-size: 13px; }
 .purchase-order > .activity-value > .badge { margin: 0; }
 .purchase-order .activity-info strong { font-size: 13px; line-height: 1.6; }
 .purchase-order .activity-info small { font-size: 10px; }
 .purchase-order .admin-actions { width: 100%; justify-content: flex-start; margin: 2px 0 0; }
}
