:root { --primary: #FF6B35; --primary-h: #e55a28; --secondary: #004E89; --dark: #1a1a2e; --bg: #f5f5f7; --white: #fff; --border: #e2e2e8; --text: #333; --text-l: #666; --ok: #10b981; --err: #ef4444; }
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; font-family: 'Noto Sans KR', sans-serif; background: var(--bg); color: var(--text); }
input, select, button { font-family: inherit; font-size: 14px; }
input, select { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 12px; outline: none; }
input:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,107,53,0.1); }
label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14px; color: var(--text); }
.btn-primary { background: var(--primary); color: #fff; border: none; padding: 12px 24px; border-radius: 8px; cursor: pointer; font-weight: 600; width: 100%; transition: background 0.2s; }
.btn-primary:hover { background: var(--primary-h); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border); padding: 8px 16px; border-radius: 8px; cursor: pointer; font-weight: 500; }
.btn-secondary:hover { background: var(--bg); }
.tab-bar { display: flex; margin-bottom: 20px; border-bottom: 2px solid var(--border); }
.tab { flex: 1; padding: 10px; text-align: center; cursor: pointer; border: none; background: none; font-weight: 500; color: var(--text-l); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.page { height: 100vh; }
.login-container { display: flex; align-items: center; justify-content: center; height: 100vh; background: linear-gradient(135deg, var(--dark) 0%, #2d2d5e 100%); position: fixed; top: 0; left: 0; right: 0; bottom: 0; }
.login-card { background: var(--white); border-radius: 16px; padding: 40px; width: 400px; max-width: 90vw; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.login-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 8px; }
.logo-icon { width: 40px; height: 40px; background: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 20px; }
.logo-text { font-size: 24px; font-weight: 700; color: var(--dark); }
.login-title { text-align: center; color: var(--text-l); font-size: 16px; margin-bottom: 24px; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 0 24px; height: 56px; background: var(--white); border-bottom: 1px solid var(--border); }
.topbar-left { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; }
.topbar-center { color: var(--text-l); font-size: 14px; }
.dashboard-content { display: flex; height: calc(100vh - 56px); }
.sidebar { width: 220px; background: var(--white); border-right: 1px solid var(--border); padding: 16px 0; flex-shrink: 0; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 12px 20px; color: var(--text-l); text-decoration: none; cursor: pointer; transition: all 0.2s; font-size: 14px; }
.nav-item:hover { background: var(--bg); color: var(--text); }
.nav-item.active { background: rgba(255,107,53,0.08); color: var(--primary); font-weight: 600; }
.main-content { flex: 1; padding: 32px; overflow-y: auto; }
.section { display: none; }
.section.active { display: block; }
.section h2 { font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.shop-card { background: var(--white); border-radius: 12px; padding: 20px; border: 1px solid var(--border); }
.shop-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.shop-card .badge { display: inline-block; background: rgba(255,107,53,0.1); color: var(--primary); padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 500; }
.shop-card a { color: var(--secondary); text-decoration: none; }
.shop-card a:hover { text-decoration: underline; }
.shop-card-footer { display: flex; gap: 10px; margin-top: 16px; }
.shop-card-footer a { padding: 8px 16px; border-radius: 6px; text-decoration: none; font-size: 13px; font-weight: 500; }
.shop-card-footer .btn-primary { background: var(--primary); color: #fff; }
.shop-card-footer .btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.form-card { background: var(--white); border-radius: 12px; padding: 24px; border: 1px solid var(--border); max-width: 500px; }
.input-suffix { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 12px; overflow: hidden; }
.input-suffix input { border: none; margin: 0; border-radius: 0; }
.input-suffix span { padding: 12px 16px; background: var(--bg); color: var(--text-l); font-size: 13px; white-space: nowrap; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.plan-card { background: var(--white); border-radius: 12px; padding: 24px; border: 1px solid var(--border); text-align: center; }
.plan-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.plan-price { font-size: 28px; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.plan-price small { font-size: 14px; font-weight: 400; color: var(--text-l); }
.plan-card ul { list-style: none; text-align: left; }
.plan-card li { padding: 8px 0; border-bottom: 1px solid var(--bg); font-size: 14px; color: var(--text-l); }
.result-card { margin-top: 20px; padding: 20px; background: rgba(16,185,129,0.08); border-radius: 12px; border: 1px solid rgba(16,185,129,0.2); }
.result-card h3 { color: var(--ok); margin-bottom: 12px; }
.result-card a { color: var(--secondary); }
.result-card code { background: var(--bg); padding: 2px 8px; border-radius: 4px; font-family: monospace; }
.empty-state { text-align: center; padding: 40px; color: var(--text-l); }
.toast { position: fixed; bottom: 20px; right: 20px; padding: 12px 24px; border-radius: 8px; color: #fff; font-size: 14px; z-index: 9999; animation: slideIn 0.3s; }
.toast-success { background: var(--ok); }
.toast-error { background: var(--err); }
.toast-info { background: var(--secondary); }
@keyframes slideIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.stat-card { background: var(--white); border-radius: 12px; padding: 24px; border: 1px solid var(--border); text-align: center; }
.stat-val { font-size: 28px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--text-l); }
.stat-card.stat-primary { border-color: rgba(255,107,53,0.3); background: rgba(255,107,53,0.04); }
.stat-card.stat-primary .stat-val { color: var(--primary); }
#stats-select select { width: auto; display: inline-block; min-width: 200px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.stat-card { background: var(--white); border-radius: 12px; padding: 24px; border: 1px solid var(--border); text-align: center; }
.stat-card .stat-val { font-size: 28px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.stat-card .stat-label { font-size: 13px; color: var(--text-l); }
.stat-card.stat-primary { border-left: 4px solid var(--primary); }
.stat-card.stat-primary .stat-val { color: var(--primary); }
