/* UNION STORE admin — clean, professional design system.
   System fonts only (no render-blocking font downloads). Light and dark themes share the same tokens. */

:root {
  color-scheme: light;
  --bg: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef2f7;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-2: #475569;
  --muted: #64748b;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef2ff;
  --success: #047857;
  --success-soft: #d1fae5;
  --warning: #b45309;
  --warning-soft: #fef3c7;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --sidebar-bg: #0f172a;
  --sidebar-text: #cbd5e1;
  --sidebar-muted: #64748b;
  --sidebar-hover: #1e293b;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 12px 28px -14px rgba(15, 23, 42, .18);
  --radius: 12px;
  --radius-sm: 8px;
  --sidebar-w: 264px;
  --topbar-h: 64px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a101e;
  --surface: #111a2e;
  --surface-2: #0e1628;
  --surface-3: #18233b;
  --border: #1f2d47;
  --border-strong: #2c3d5d;
  --text: #e6edf7;
  --text-2: #a9b6cc;
  --muted: #8493ac;
  --accent: #818cf8;
  --accent-hover: #a5b4fc;
  --accent-soft: #1d2347;
  --success: #34d399;
  --success-soft: #0d2b22;
  --warning: #fbbf24;
  --warning-soft: #2e240c;
  --danger: #f87171;
  --danger-soft: #35171c;
  --sidebar-bg: #080d19;
  --sidebar-hover: #131c31;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 3px rgba(0, 0, 0, .35), 0 14px 30px -14px rgba(0, 0, 0, .6);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a101e; --surface: #111a2e; --surface-2: #0e1628; --surface-3: #18233b;
    --border: #1f2d47; --border-strong: #2c3d5d; --text: #e6edf7; --text-2: #a9b6cc; --muted: #8493ac;
    --accent: #818cf8; --accent-hover: #a5b4fc; --accent-soft: #1d2347;
    --success: #34d399; --success-soft: #0d2b22; --warning: #fbbf24; --warning-soft: #2e240c;
    --danger: #f87171; --danger-soft: #35171c;
    --sidebar-bg: #080d19; --sidebar-hover: #131c31;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow: 0 1px 3px rgba(0, 0, 0, .35), 0 14px 30px -14px rgba(0, 0, 0, .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { min-width: 320px; background: var(--bg); color: var(--text); }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
h3 { font-size: 16px; font-weight: 650; }
h4 { font-size: 14px; font-weight: 650; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
small { font-size: 12px; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }

/* ---------- loading ---------- */
.loading-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 16px; color: var(--muted); }
.loader { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.load-error { max-width: 420px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--danger-soft); color: var(--danger); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- buttons ---------- */
.primary-btn, .secondary-btn, .danger-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px;
  border-radius: var(--radius-sm); border: 1px solid transparent; font-weight: 600; font-size: 13px; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, opacity .15s;
}
.primary-btn { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.primary-btn:hover { background: var(--accent-hover); }
.secondary-btn { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.secondary-btn:hover { background: var(--surface-3); }
.danger-btn { background: var(--surface); border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); color: var(--danger); }
.danger-btn:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.compact-action { height: 30px; padding: 0 11px; font-size: 12px; margin: 2px 6px 2px 0; }
button:disabled { opacity: .55; cursor: not-allowed; }
button.busy { position: relative; pointer-events: none; color: transparent !important; }
button.busy::after { content: ""; position: absolute; width: 14px; height: 14px; inset: 0; margin: auto; border-radius: 50%; border: 2px solid var(--border-strong); border-top-color: var(--accent); animation: spin .7s linear infinite; }
.icon-btn { width: 38px; height: 38px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text-2); font-size: 16px; }
.icon-btn:hover { background: var(--surface-3); }
#menu-toggle { display: none; }
.text-btn { background: none; border: 0; padding: 4px 6px; color: var(--sidebar-muted); font-size: 12px; border-radius: 6px; }
.text-btn:hover { color: #fff; background: var(--sidebar-hover); }

/* ---------- forms ---------- */
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text-2); }
input, select, textarea {
  width: 100%; min-height: 38px; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; min-height: 84px; }
.check-label { flex-direction: row; align-items: center; gap: 10px; }
.check-label input { width: 16px; min-height: 0; height: 16px; accent-color: var(--accent); }
.stack-form { display: flex; flex-direction: column; gap: 14px; }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(1100px 500px at 50% -10%, var(--accent-soft), transparent), var(--bg); }
.login-card { width: min(420px, 100%); display: flex; flex-direction: column; gap: 12px; padding: 36px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.login-card h1 { margin-top: -4px; }
.login-card .stack-form { margin-top: 10px; }
.security-note { margin-top: 4px; font-size: 12px; color: var(--muted); }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, #6366f1, #4f46e5); color: #fff; font-weight: 800; font-size: 22px; box-shadow: 0 8px 20px -8px rgba(79, 70, 229, .6); }
.brand-mark.small { width: 38px; height: 38px; font-size: 18px; border-radius: 11px; flex: none; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- layout ---------- */
.app-shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--sidebar-bg); color: var(--sidebar-text); border-right: 1px solid rgba(255, 255, 255, .04); z-index: 40; }
.brand-row { display: flex; align-items: center; gap: 12px; padding: 20px 18px 16px; }
.brand-row strong { display: block; color: #fff; font-size: 15px; letter-spacing: .01em; }
.brand-row small { display: block; margin-top: 1px; color: var(--sidebar-muted); font-size: 10px; letter-spacing: .14em; }
.main-nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding: 4px 12px 12px; }
.nav-label { margin: 18px 10px 6px; font-size: 10px; font-weight: 700; letter-spacing: .14em; color: var(--sidebar-muted); }
.nav-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--sidebar-text); font-size: 13px; font-weight: 500; text-align: left; transition: background .15s, color .15s; }
.nav-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item:hover { background: var(--sidebar-hover); color: #fff; }
.nav-item.active { background: rgba(99, 102, 241, .18); color: #fff; box-shadow: inset 3px 0 0 #818cf8; }
.sidebar-bottom { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-top: 1px solid rgba(255, 255, 255, .06); font-size: 12px; color: var(--sidebar-muted); }
.sidebar-bottom .text-btn { margin-left: auto; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .2); }
.main-area { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; min-height: var(--topbar-h); padding: 10px 28px; background: var(--surface); background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar h2 { font-size: 18px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.owner-email { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--muted); }
.page-content { flex: 1; width: 100%; max-width: 1480px; margin: 0 auto; padding: 28px; display: flex; flex-direction: column; gap: 22px; }
.app-footer { padding: 16px 28px 24px; font-size: 12px; color: var(--muted); text-align: center; }
.welcome-row, .resource-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.welcome-row p, .resource-toolbar p { margin-top: 4px; }
.toolbar-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------- status + bot maintenance switch ---------- */
.status-pill { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-3); color: var(--text-2); }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill.online { background: var(--success-soft); color: var(--success); }
.status-pill.pending { background: var(--warning-soft); color: var(--warning); }
.maint-switch { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 6px 0 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 13px; font-weight: 600; transition: background .15s, border-color .15s, color .15s; }
.maint-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.switch-track { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--border-strong); transition: background .2s; }
.switch-thumb { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s; }
.maint-switch:hover { border-color: var(--text-2); }
.maint-switch.on { background: var(--warning-soft); border-color: var(--warning); color: var(--warning); }
.maint-switch.on .maint-dot, .maint-switch.on .switch-track { background: var(--warning); }
.maint-switch.on .switch-thumb { transform: translateX(16px); }

/* ---------- panels and cards ---------- */
.panel, .notice-panel, .stat-card, .action-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.panel { padding: 22px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.panel-heading p { margin-top: 2px; }
.notice-panel { padding: 16px 20px; border-left: 3px solid var(--accent); }
.notice-panel p { margin-top: 2px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.stat-card { display: flex; flex-direction: column; gap: 4px; padding: 20px; }
.stat-card span { font-size: 13px; font-weight: 500; color: var(--muted); }
.stat-card strong { font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.stat-card small { color: var(--muted); }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.quick-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; text-align: left; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); transition: border-color .15s, transform .15s, box-shadow .15s, background .15s; }
.quick-card:hover { border-color: var(--accent); background: var(--surface); box-shadow: var(--shadow); transform: translateY(-1px); }
.quick-card strong { font-size: 14px; }
.quick-card small { color: var(--muted); }
.quick-icon { width: 36px; height: 36px; display: grid; place-items: center; margin-bottom: 8px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 16px; font-weight: 700; }
.action-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.action-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.button-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- tables ---------- */
.table-panel { padding: 0; overflow: hidden; }
.table-wrap { overflow: auto; max-height: calc(100vh - 250px); min-height: 160px; padding: 0; }
.table-wrap > h3, .table-wrap > .product-first-header, .table-wrap > .product-select-grid, .table-wrap > .selected-product-details, .table-wrap > .primary-btn { margin: 20px 20px 0; }
.table-wrap > .maintenance-toolbar { margin: 18px 20px 0; }
.table-wrap > .data-table { margin: 0; }
.table-wrap > .primary-btn { margin-bottom: 14px; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.data-table th { position: sticky; top: 0; z-index: 2; padding: 11px 16px; text-align: left; white-space: nowrap; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--border); }
.data-table td { max-width: 320px; padding: 12px 16px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; border-bottom: 1px solid var(--border); }
.data-table tbody tr { transition: background .1s; }
.data-table tbody tr:hover td { background: var(--surface-2); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td:last-child { white-space: nowrap; max-width: none; }
.empty-state { padding: 56px 20px; text-align: center; }
.search-note { margin: 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 500; }

/* ---------- search ---------- */
.search-box { position: relative; display: flex; align-items: center; flex: 1 1 280px; min-width: 240px; max-width: 420px; }
.search-box input { height: 38px; padding: 0 76px 0 38px; }
.search-box input[type="search"]::-webkit-search-cancel-button, .search-box input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.search-icon { position: absolute; left: 12px; width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.search-go { position: absolute; right: 4px; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 7px; background: var(--accent); }
.search-go:hover { background: var(--accent-hover); }
.search-go svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
.search-clear { position: absolute; right: 40px; width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface-3); color: var(--text-2); font-size: 16px; line-height: 1; }
.search-clear:hover { background: var(--border-strong); }

/* ---------- badges, chips ---------- */
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.status-badge.active { background: var(--success-soft); color: var(--success); }
.status-badge.maintenance { background: var(--warning-soft); color: var(--warning); }
.maintenance-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 14px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: 12px; font-weight: 600; transition: all .15s; }
.chip:hover { background: var(--surface-3); }
.chip.selected { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- product-first plans view ---------- */
.product-first-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-select-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; padding-bottom: 20px; }
.product-select-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; text-align: left; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); transition: border-color .15s, transform .15s, box-shadow .15s; }
.product-select-card:hover { border-color: var(--accent); background: var(--surface); box-shadow: var(--shadow); transform: translateY(-1px); }
.product-select-card span { color: var(--text-2); font-size: 12px; }
.product-select-card small { color: var(--muted); }
.selected-product-details { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.selected-product-details h3 { flex: 1 0 100%; }
.selected-product-details p { flex: 1 0 100%; }

/* ---------- owner tools ---------- */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 18px; align-items: start; }
.tools-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.tools-card h3, .tools-card h4 { margin: 0; }
.tools-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.tools-buttons .compact-action { height: 34px; margin: 0; }
.controls-group { display: flex; flex-direction: column; gap: 12px; padding-bottom: 8px; }
.controls-group h4 { margin-top: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* ---------- dialogs and toasts ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(8, 13, 25, .55); backdrop-filter: blur(3px); animation: fade .15s ease-out; }
.modal-box { width: min(520px, 100%); max-height: 90vh; overflow: auto; display: flex; flex-direction: column; gap: 14px; padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .45); animation: pop .18s ease-out; }
.modal-box.wide { width: min(720px, 100%); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.modal-error { min-height: 18px; color: var(--danger); font-size: 12px; }
.report-text { margin: 0; padding: 16px; max-height: 55vh; overflow: auto; white-space: pre-wrap; word-break: break-word; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 1100; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 40px)); }
.toast { padding: 12px 16px; border: 1px solid var(--border); border-left: 4px solid var(--success); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); box-shadow: var(--shadow); font-size: 13px; animation: slide .2s ease-out; }
.toast.error { border-left-color: var(--danger); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes slide { from { opacity: 0; transform: translateX(14px); } }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(290px, 86vw); transform: translateX(-102%); transition: transform .22s ease; box-shadow: none; }
  .sidebar.open { transform: none; box-shadow: 0 0 0 100vmax rgba(8, 13, 25, .5); }
  #menu-toggle { display: inline-grid; }
  .topbar, .page-content { padding-left: 16px; padding-right: 16px; }
  .owner-email { display: none; }
}
@media (max-width: 640px) {
  .page-content { padding-top: 20px; gap: 18px; }
  .topbar { gap: 10px; }
  .topbar .eyebrow { display: none; }
  .maint-switch { padding-left: 10px; }
  #connection-status { display: none; }
  .search-box { max-width: none; flex-basis: 100%; }
  .toolbar-controls { width: 100%; }
  .toolbar-controls .primary-btn, .toolbar-controls .secondary-btn { flex: 1; }
  .tools-grid { grid-template-columns: minmax(0, 1fr); }
  .modal-box { padding: 18px; }
  .toast-region { right: 12px; left: 12px; bottom: 12px; max-width: none; }
  .table-wrap { max-height: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- icons ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nav-icon, .quick-icon svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-icon { opacity: .8; }
.nav-item:hover .nav-icon, .nav-item.active .nav-icon { opacity: 1; }
