* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Heebo', sans-serif; }
body { background: linear-gradient(135deg, #0f0c29 0%, #1a1a3e 50%, #24243e 100%); min-height: 100vh; color: #e2e8f0; }
#app { max-width: 1400px; margin: 0 auto; padding: 24px; }
.glass { background: rgba(255,255,255,0.06); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.12); border-radius: 20px; box-shadow: 0 8px 32px rgba(0,0,0,0.3); margin-bottom: 16px; }
.hero { padding: 28px 32px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.title { font-size: 44px; font-weight: 900; background: linear-gradient(135deg, #c084fc, #60a5fa, #34d399); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { color: rgba(255,255,255,0.5); font-size: 15px; margin-top: 6px; }
.topbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn { cursor: pointer; border-radius: 12px; border: none; padding: 10px 18px; font-size: 14px; font-weight: 700; transition: all 0.2s; }
.btn.primary { background: linear-gradient(135deg, #7c3aed, #2563eb); color: white; box-shadow: 0 0 20px rgba(124,58,237,0.35); }
.btn.primary:hover { box-shadow: 0 0 30px rgba(124,58,237,0.6); transform: translateY(-1px); }
.btn.ghost { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.85); }
.btn.ghost:hover { background: rgba(255,255,255,0.15); transform: translateY(-1px); }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(8, minmax(0,1fr)); gap: 10px; margin-bottom: 16px; }
.stat-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 16px 10px; text-align: center; cursor: pointer; transition: all 0.2s; user-select: none; }
.stat-card:hover { background: rgba(255,255,255,0.14); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
.stat-card.active { border-color: rgba(139,92,246,0.6); background: rgba(139,92,246,0.15); }
.stat-num { font-size: 28px; font-weight: 800; }
.stat-label { color: rgba(255,255,255,0.45); font-size: 11px; margin-top: 4px; }

/* Guide */
.guide-section { padding: 20px 24px; }
.guide-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.guide-tab { padding: 8px 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7); cursor: pointer; font-size: 13px; font-weight: 600; transition: all 0.2s; }
.guide-tab.active { background: rgba(124,58,237,0.25); border-color: rgba(124,58,237,0.5); color: white; }
.guide-content { display: none; }
.guide-content.active { display: block; }
.guide-step { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.guide-num { min-width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg,#7c3aed,#2563eb); color: white; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.guide-text { font-size: 13px; color: rgba(255,255,255,0.8); line-height: 1.6; }
.guide-text strong { color: #c4b5fd; }
.app-badge { display: inline-block; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; padding: 2px 10px; font-size: 12px; color: #93c5fd; margin: 2px; }

/* Filters */
.controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.search-input { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; color: white; padding: 10px 16px; font-size: 13px; outline: none; width: 220px; transition: all 0.2s; }
.search-input::placeholder { color: rgba(255,255,255,0.3); }
.search-input:focus { border-color: rgba(139,92,246,0.6); box-shadow: 0 0 0 3px rgba(139,92,246,0.15); }
.glass-select { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; color: white; padding: 10px 14px; font-size: 13px; outline: none; cursor: pointer; }
.glass-select option { background: #1e1b4b; color: white; }

/* Bulk bar */
#bulkBar { padding: 12px 20px; display: none; align-items: center; gap: 12px; flex-wrap: wrap; }
#bulkActions { display: none; align-items: center; gap: 10px; }

/* Table */
.section-title { font-size: 20px; font-weight: 700; }
.toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.hint { color: rgba(255,255,255,0.4); font-size: 13px; }
.progress-track { width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #7c3aed, #60a5fa); border-radius: 999px; transition: width 0.3s ease; }
table { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
thead th { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.45); text-align: right; padding: 10px 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
thead th.no-sort { cursor: default; }
thead th:not(.no-sort):hover { color: white; }
thead th.sorted-asc::after { content: " ▲"; color: #a78bfa; }
thead th.sorted-desc::after { content: " ▼"; color: #a78bfa; }
tbody tr { background: rgba(255,255,255,0.04); transition: all 0.2s; }
tbody tr:hover { background: rgba(255,255,255,0.09); }
tbody tr.expired-row { border-right: 3px solid rgba(239,68,68,0.5); }
tbody td { padding: 10px 8px; font-size: 13px; vertical-align: middle; border-top: 1px solid rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.04); }

/* Priority badge — emoji only, small */
.priority-badge { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; font-size: 18px; cursor: default; transition: transform 0.15s; }
.priority-badge:hover { transform: scale(1.3); }

/* Code */
.code-line { display: flex; align-items: center; gap: 6px; }
.code-pill { display: inline-block; direction: ltr; background: rgba(168,85,247,0.12); border: 1px solid rgba(168,85,247,0.25); color: #d8b4fe; border-radius: 8px; padding: 3px 8px; font-family: ui-monospace, monospace; font-size: 11px; word-break: break-all; max-width: 160px; }
button.copy-btn { background: rgba(168,85,247,0.15); border: 1px solid rgba(168,85,247,0.3); color: #d8b4fe; border-radius: 8px; padding: 3px 8px; font-size: 12px; cursor: pointer; transition: all 0.2s; }
button.copy-btn:hover { background: rgba(168,85,247,0.35); }
.copy-ok { color: #86efac; font-size: 11px; display: none; }

/* Status dropdown */
.status-select { border-radius: 10px; padding: 5px 10px; font-size: 12px; font-weight: 700; cursor: pointer; border: 1px solid transparent; outline: none; transition: all 0.2s; color: white; }
.status-select.s-new     { background: rgba(52,211,153,0.15);  border-color: rgba(52,211,153,0.3); }
.status-select.s-used    { background: rgba(96,165,250,0.15);  border-color: rgba(96,165,250,0.3); }
.status-select.s-expired { background: rgba(239,68,68,0.15);   border-color: rgba(239,68,68,0.3); }
.status-select.s-unknown { background: rgba(251,146,60,0.15);  border-color: rgba(251,146,60,0.3); }
.status-select option { background: #1e1b4b; }

/* Vendor link */
.vendor-link { color: #93c5fd; font-weight: 600; text-decoration: none; transition: color 0.2s; white-space: nowrap; }
.vendor-link:hover { color: #c4b5fd; text-decoration: underline; }
.vendor-name { color: #93c5fd; font-weight: 600; }

/* Tooltip */
.has-tooltip { position: relative; cursor: help; color: rgba(255,255,255,0.7); font-size: 12px; line-height: 1.5; max-width: 200px; display: inline-block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.has-tooltip::after { content: attr(data-tooltip); position: absolute; bottom: calc(100% + 6px); right: 0; background: rgba(15,23,42,0.97); border: 1px solid rgba(139,92,246,0.4); border-radius: 10px; padding: 10px 14px; font-size: 12px; color: #e2e8f0; white-space: pre-wrap; max-width: 320px; min-width: 160px; width: max-content; box-shadow: 0 8px 30px rgba(0,0,0,0.6); z-index: 100; opacity: 0; pointer-events: none; transition: opacity 0.15s; direction: rtl; text-align: right; line-height: 1.6; }
.has-tooltip:hover::after { opacity: 1; }

/* Checkbox */
input[type=checkbox].row-check { width: 16px; height: 16px; cursor: pointer; accent-color: #7c3aed; }
#selectAll { width: 16px; height: 16px; cursor: pointer; accent-color: #7c3aed; }

/* Charts */
#chartsSection { padding: 24px; margin-bottom: 16px; }

@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(4,1fr); } .hero { flex-direction: column; } }
@media (max-width: 600px) { .stats-grid { grid-template-columns: repeat(2,1fr); } }