*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { min-height: 100vh; background: #0a0e17; color: #e2e8f0; font-family: 'Outfit', 'Segoe UI', sans-serif; overflow-x: hidden; }
.bg-glow-1 { position: fixed; top: -200px; right: -200px; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(168,162,158,0.08) 0%, transparent 70%); pointer-events: none; }
.bg-glow-2 { position: fixed; bottom: -300px; left: -100px; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(192,192,192,0.05) 0%, transparent 70%); pointer-events: none; }
.inner { max-width: 920px; margin: 0 auto; padding: 30px 24px 80px; position: relative; z-index: 1; }

/* Top bar */
.top-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.top-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.top-link { color: #a1a1aa; text-decoration: none; font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.08); transition: all 0.2s; }
.top-link:hover { background: rgba(255,255,255,0.05); color: #e2e8f0; }
.user-badge { font-size: 13px; color: #71717a; background: rgba(255,255,255,0.04); padding: 6px 14px; border-radius: 8px; }

/* Logo */
.logo-row { display: flex; align-items: center; gap: 16px; }
.logo-icon { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, #eab308 0%, #c0c0c0 100%); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; color: #0a0e17; font-family: 'JetBrains Mono', monospace; }
.title { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; background: linear-gradient(135deg, #f1f5f9, #a1a1aa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.subtitle { font-size: 13px; color: #71717a; margin-top: 2px; }

/* Price bar */
.price-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.price-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 12px 20px; display: flex; flex-direction: column; gap: 2px; }
.price-label { font-size: 10px; font-weight: 600; letter-spacing: 1.5px; color: #71717a; }
.price-value { font-size: 22px; font-weight: 700; font-family: 'JetBrains Mono', monospace; color: #e2e8f0; }
.refresh-btn { width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.04); color: #a1a1aa; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.refresh-btn:hover { background: rgba(255,255,255,0.08); color: #e2e8f0; }
.timestamp { font-size: 11px; color: #52525b; margin-left: auto; }

/* Alerts */
.banner, .alert { border-radius: 10px; padding: 12px 16px; font-size: 13px; margin-bottom: 16px; display: none; }
.banner.show { display: block; }
.alert { display: block; }
.banner.error, .alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2); color: #fca5a5; }
.alert-success { background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.2); color: #34d399; }

/* Manual override */
.manual-row { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.manual-fields { display: flex; gap: 10px; }
.check-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #a1a1aa; cursor: pointer; }
.check-label input { accent-color: #c0c0c0; }
.manual-input { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 8px 14px; color: #e2e8f0; font-size: 15px; font-family: 'JetBrains Mono', monospace; width: 130px; outline: none; }
.manual-input:focus { border-color: rgba(255,255,255,0.25); }
.field-label-sm { font-size: 10px; font-weight: 600; letter-spacing: 1px; color: #71717a; display: block; margin-bottom: 4px; }

/* Tabs */
.tabs { display: flex; gap: 4px; margin-bottom: 24px; background: rgba(255,255,255,0.03); border-radius: 14px; padding: 4px; border: 1px solid rgba(255,255,255,0.06); width: fit-content; }
.tab { padding: 10px 24px; border-radius: 10px; border: none; background: transparent; color: #71717a; font-size: 14px; font-weight: 600; cursor: pointer; font-family: 'Outfit', sans-serif; transition: all 0.2s; }
.tab.active { background: rgba(255,255,255,0.08); color: #e2e8f0; }
.tab:hover:not(.active) { color: #a1a1aa; }

/* Panels */
.panel { display: none; }
.panel.active { display: block; }

/* Input row */
.input-row { display: flex; gap: 10px; margin-bottom: 20px; }
.sku-input { flex: 1; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 16px 20px; color: #e2e8f0; font-size: 18px; font-family: 'JetBrains Mono', monospace; outline: none; transition: border-color 0.2s; }
.sku-input:focus { border-color: rgba(255,255,255,0.25); }
.sku-input::placeholder { color: #52525b; }
.go-btn { padding: 16px 28px; border-radius: 14px; border: none; background: linear-gradient(135deg, #eab308 0%, #c0c0c0 100%); color: #0a0e17; font-size: 15px; font-weight: 700; cursor: pointer; font-family: 'Outfit', sans-serif; transition: transform 0.15s; white-space: nowrap; }
.go-btn:hover { transform: translateY(-1px); }

/* Result card */
.result-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(52,211,153,0.2); border-radius: 18px; padding: 28px; margin-bottom: 24px; display: none; animation: fadeIn 0.3s ease; }
.result-card.show { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.result-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.result-sku { font-size: 20px; font-weight: 700; font-family: 'JetBrains Mono', monospace; color: #f1f5f9; }
.result-alt { font-size: 12px; color: #71717a; background: rgba(255,255,255,0.06); padding: 4px 10px; border-radius: 6px; }
.result-main { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.result-price-label { font-size: 10px; font-weight: 600; letter-spacing: 1.5px; color: #34d399; }
.result-price { font-size: 42px; font-weight: 800; font-family: 'JetBrains Mono', monospace; color: #34d399; letter-spacing: -1px; line-height: 1; }
.result-spot { font-size: 14px; color: #a1a1aa; font-family: 'JetBrains Mono', monospace; }
.error-card { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2); border-radius: 14px; padding: 20px; color: #fca5a5; font-size: 15px; margin-bottom: 24px; display: none; }
.error-card.show { display: block; }

/* Metal badges */
.metal-badge, .metal-badge-sm { padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: 1px; font-family: 'JetBrains Mono', monospace; }
.metal-badge-sm { font-size: 10px; padding: 3px 8px; }
.metal-silver { background: rgba(192,192,192,0.15); color: #c0c0c0; }
.metal-gold { background: rgba(234,179,8,0.15); color: #eab308; }

/* Upload */
.upload-zone { border: 2px dashed rgba(255,255,255,0.1); border-radius: 18px; padding: 48px 32px; text-align: center; cursor: pointer; transition: all 0.25s; margin-bottom: 24px; position: relative; }
.upload-zone:hover, .upload-zone.dragover { border-color: rgba(192,192,192,0.3); background: rgba(255,255,255,0.02); }
.upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.4; }
.upload-title { font-size: 16px; font-weight: 600; color: #e2e8f0; margin-bottom: 6px; }
.upload-desc { font-size: 13px; color: #71717a; line-height: 1.5; }
.upload-desc strong { color: #a1a1aa; }
.upload-box { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 18px; padding: 28px; margin-bottom: 24px; }

/* Bulk results */
.bulk-results { display: none; animation: fadeIn 0.3s ease; }
.bulk-results.show { display: block; }
.bulk-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.bulk-title { font-size: 18px; font-weight: 600; color: #e2e8f0; }
.bulk-count { font-size: 13px; color: #71717a; background: rgba(255,255,255,0.04); padding: 6px 14px; border-radius: 8px; margin-top: 6px; }
.bulk-count span { color: #34d399; font-weight: 700; }
.clear-btn { padding: 8px 18px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); background: transparent; color: #a1a1aa; font-size: 13px; cursor: pointer; font-family: 'Outfit', sans-serif; transition: all 0.2s; }
.clear-btn:hover { background: rgba(255,255,255,0.05); color: #e2e8f0; }
.export-btn { padding: 8px 18px; border-radius: 8px; border: none; background: rgba(52,211,153,0.15); color: #34d399; font-size: 13px; font-weight: 600; cursor: pointer; font-family: 'Outfit', sans-serif; transition: all 0.2s; }
.export-btn:hover { background: rgba(52,211,153,0.25); }

/* Table */
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid rgba(255,255,255,0.06); margin-bottom: 20px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { padding: 12px 16px; text-align: left; font-size: 10px; font-weight: 600; letter-spacing: 1.2px; color: #71717a; border-bottom: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.02); }
th.right { text-align: right; }
th.green { color: #34d399; }
td { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.03); color: #a1a1aa; font-family: 'JetBrains Mono', monospace; font-size: 13px; }
td.right { text-align: right; }
td.sku-cell { color: #e2e8f0; font-weight: 600; }
td.current { text-align: right; color: #34d399; font-weight: 700; }
td.not-found { text-align: right; color: #fca5a5; font-style: italic; font-family: 'Outfit', sans-serif; }
tr.data-row { transition: background 0.15s; }
tr.data-row:hover { background: rgba(255,255,255,0.03); }

/* Section titles */
.section-title { font-size: 16px; font-weight: 600; color: #e2e8f0; margin: 28px 0 12px; }

/* Buttons */
.btn-primary { width: 100%; padding: 14px; border-radius: 12px; border: none; background: linear-gradient(135deg, #eab308 0%, #c0c0c0 100%); color: #0a0e17; font-size: 15px; font-weight: 700; cursor: pointer; font-family: 'Outfit', sans-serif; margin-top: 16px; transition: transform 0.15s; }
.btn-primary:hover { transform: translateY(-1px); }
.btn-sm { padding: 5px 14px; border-radius: 6px; border: none; font-size: 12px; font-weight: 600; cursor: pointer; font-family: 'Outfit', sans-serif; transition: all 0.2s; }
.btn-approve { background: rgba(52,211,153,0.15); color: #34d399; }
.btn-approve:hover { background: rgba(52,211,153,0.25); }
.btn-deny { background: rgba(239,68,68,0.1); color: #fca5a5; }
.btn-deny:hover { background: rgba(239,68,68,0.2); }

/* Auth pages */
.auth-container { display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 20px; }
.auth-box { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 18px; padding: 40px; max-width: 440px; width: 100%; }
.auth-title { font-size: 20px; font-weight: 700; background: linear-gradient(135deg, #f1f5f9, #a1a1aa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.auth-heading { font-size: 22px; font-weight: 600; color: #e2e8f0; margin: 24px 0 20px; }
.auth-link { text-align: center; margin-top: 20px; font-size: 13px; color: #71717a; }
.auth-link a { color: #34d399; text-decoration: none; }
.field-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.5px; color: #a1a1aa; margin: 14px 0 6px; }
.field-input { width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 12px 16px; color: #e2e8f0; font-size: 15px; font-family: 'Outfit', sans-serif; outline: none; }
.field-input:focus { border-color: rgba(255,255,255,0.25); }
.file-input { color: #a1a1aa; font-size: 14px; }

/* Pagination */
.pagination { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.page-link { padding: 6px 12px; border-radius: 6px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: #a1a1aa; text-decoration: none; font-size: 13px; transition: all 0.2s; }
.page-link.active { background: rgba(255,255,255,0.1); color: #e2e8f0; }
.page-link:hover { background: rgba(255,255,255,0.08); }

/* Responsive */
@media (max-width: 600px) {
    .inner { padding: 20px 16px 60px; }
    .title { font-size: 20px; }
    .result-price { font-size: 32px; }
    .sku-input { font-size: 16px; padding: 14px 16px; }
    .go-btn { padding: 14px 18px; font-size: 14px; }
    .tabs { width: 100%; }
    .tab { flex: 1; text-align: center; font-size: 13px; padding: 10px 12px; }
    .top-bar { flex-direction: column; align-items: flex-start; }
    .auth-box { padding: 28px 20px; }
}
