:root {
  --seller-primary: #155eef;
  --seller-primary-dark: #0f49bd;
  --seller-bg: #f3f6fb;
  --seller-surface: #ffffff;
  --seller-text: #172033;
  --seller-muted: #667085;
  --seller-border: #dfe6ef;
  --seller-sidebar: 250px;
}

*, *::before, *::after { box-sizing: border-box; }
body.seller-body { margin: 0; min-height: 100vh; color: var(--seller-text); background: var(--seller-bg); font-family: "Noto Sans KR", sans-serif; }
.seller-auth-body { min-height: 100vh; margin: 0; padding: 32px 16px; display: grid; place-items: center; color: var(--seller-text); background: radial-gradient(circle at top left, #dbeafe, transparent 35%), #f5f8fc; font-family: "Noto Sans KR", sans-serif; }
.seller-auth-card { width: min(100%, 560px); padding: 32px; border: 1px solid var(--seller-border); border-radius: 24px; background: #fff; box-shadow: 0 24px 70px rgba(15, 42, 76, .12); }
.seller-auth-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; color: var(--seller-text); font-size: 1.1rem; font-weight: 900; text-decoration: none; }
.seller-auth-brand span { color: var(--seller-primary); }
.seller-auth-title { margin: 0; font-size: 1.7rem; font-weight: 900; letter-spacing: -.04em; }
.seller-auth-lead { margin: 8px 0 24px; color: var(--seller-muted); }
.seller-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.seller-form-grid .full { grid-column: 1 / -1; }
.seller-label { display: block; margin-bottom: 6px; color: #344054; font-size: .82rem; font-weight: 800; }
.seller-input, .seller-select, .seller-textarea { width: 100%; border: 1px solid #d0d5dd; border-radius: 11px; padding: 11px 13px; background: #fff; color: var(--seller-text); }
.seller-input:focus, .seller-select:focus, .seller-textarea:focus { outline: 3px solid rgba(21, 94, 239, .12); border-color: var(--seller-primary); }
.seller-btn { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--seller-border); border-radius: 10px; padding: 0 15px; background: #fff; color: #344054; font-weight: 800; text-decoration: none; cursor: pointer; }
.seller-btn:hover { color: var(--seller-primary); border-color: #b2ccff; }
.seller-btn-primary { border-color: var(--seller-primary); color: #fff; background: var(--seller-primary); }
.seller-btn-primary:hover { color: #fff; background: var(--seller-primary-dark); }
.seller-btn-danger { border-color: #fecaca; color: #b42318; background: #fff; }
.seller-auth-submit { width: 100%; margin-top: 20px; }
.seller-auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; color: var(--seller-muted); font-size: .86rem; }
.seller-auth-links a { color: var(--seller-primary); font-weight: 800; text-decoration: none; }
.seller-message { min-height: 22px; margin-top: 12px; color: #b42318; font-size: .86rem; font-weight: 700; }
.seller-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--seller-sidebar); padding: 22px 16px; background: #101828; color: #fff; }
.seller-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 20px; color: #fff; font-weight: 900; text-decoration: none; }
.seller-brand-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: linear-gradient(135deg, #2e90fa, #6172f3); }
.seller-company { margin: 0 8px 22px; padding: 13px; border-radius: 12px; background: rgba(255,255,255,.08); }
.seller-company strong, .seller-company span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seller-company span { margin-top: 3px; color: #98a2b3; font-size: .75rem; }
.seller-nav { display: grid; gap: 5px; }
.seller-nav a { display: flex; align-items: center; gap: 10px; min-height: 43px; padding: 0 12px; border-radius: 9px; color: #d0d5dd; font-size: .9rem; font-weight: 700; text-decoration: none; }
.seller-nav a:hover, .seller-nav a.is-active { color: #fff; background: rgba(46,144,250,.22); }
.seller-nav a i { width: 18px; text-align: center; }
.seller-logout { position: absolute; right: 16px; bottom: 20px; left: 16px; }
.seller-mobile-head { display: none; }
.seller-main { min-height: 100vh; margin-left: var(--seller-sidebar); padding: 30px; }
.seller-page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.seller-page-head h1 { margin: 0; font-size: 1.75rem; font-weight: 900; letter-spacing: -.04em; }
.seller-page-head p { margin: 6px 0 0; color: var(--seller-muted); }
.seller-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.seller-card { padding: 20px; border: 1px solid var(--seller-border); border-radius: 16px; background: var(--seller-surface); box-shadow: 0 1px 3px rgba(16,24,40,.04); }
.seller-stat span { display: block; color: var(--seller-muted); font-size: .82rem; font-weight: 800; }
.seller-stat strong { display: block; margin-top: 8px; color: var(--seller-primary); font-size: 1.65rem; }
.seller-section { margin-top: 18px; }
.seller-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.seller-section-head h2 { margin: 0; font-size: 1.05rem; font-weight: 900; }
.seller-table-wrap { overflow: auto; border: 1px solid var(--seller-border); border-radius: 14px; background: #fff; }
.seller-table { width: 100%; min-width: 780px; border-collapse: collapse; }
.seller-table th, .seller-table td { padding: 13px 14px; border-bottom: 1px solid #edf0f4; vertical-align: middle; text-align: left; }
.seller-table th { color: #475467; background: #f9fafb; font-size: .77rem; font-weight: 900; white-space: nowrap; }
.seller-table td { font-size: .87rem; }
.seller-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 9px; background: #f2f4f7; color: #475467; font-size: .73rem; font-weight: 900; white-space: nowrap; }
.seller-badge.pending, .seller-badge.requested { background: #fffaeb; color: #b54708; }
.seller-badge.approved, .seller-badge.paid { background: #ecfdf3; color: #027a48; }
.seller-badge.rejected, .seller-badge.suspended { background: #fef3f2; color: #b42318; }
.seller-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 14px; }
.seller-product-form { display: none; margin-bottom: 18px; }
.seller-product-form.is-open { display: block; }
.seller-note { padding: 12px 14px; border: 1px solid #b2ddff; border-radius: 11px; color: #175cd3; background: #eff8ff; font-size: .84rem; }
.seller-empty { padding: 36px; color: var(--seller-muted); text-align: center; }
.seller-order-items { display: grid; gap: 5px; min-width: 230px; }
.seller-money { font-weight: 900; white-space: nowrap; }
.mt-3 { margin-top: 1rem; }

@media (max-width: 1050px) { .seller-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .seller-auth-card { padding: 24px 20px; }
  .seller-form-grid { grid-template-columns: 1fr; }
  .seller-form-grid .full { grid-column: auto; }
  .seller-sidebar { display: none; }
  .seller-mobile-head { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; color: #fff; background: #101828; }
  .seller-mobile-head a { color: #fff; font-weight: 900; text-decoration: none; }
  .seller-mobile-nav { display: flex; gap: 10px; overflow-x: auto; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--seller-border); }
  .seller-mobile-nav a { color: var(--seller-muted); font-size: .78rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
  .seller-mobile-nav a.is-active { color: var(--seller-primary); }
  .seller-main { margin-left: 0; padding: 20px 14px 44px; }
  .seller-page-head { align-items: flex-start; flex-direction: column; }
  .seller-page-head h1 { font-size: 1.45rem; }
  .seller-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .seller-card { padding: 16px; }
  .seller-stat strong { font-size: 1.3rem; }
}
