:root {
  --bg: #060709;
  --bg-soft: #0a0b0f;
  --surface: rgba(21, 23, 31, 0.68);
  --surface-solid: #13151b;
  --surface-2: rgba(30, 33, 44, 0.75);
  --surface-hover: rgba(38, 42, 55, 0.85);
  --border: #262a37;
  --border-soft: rgba(255, 255, 255, 0.07);
  --text: #f4f5f8;
  --text-secondary: #9498a6;
  --text-tertiary: #666b7a;

  --accent: #7c6cf6;
  --accent-2: #5b8def;
  --accent-cyan: #2dd4ee;
  --accent-hover: #9384ff;
  --accent-soft: rgba(124, 108, 246, 0.14);
  --accent-border: rgba(124, 108, 246, 0.4);

  --success: #2fd980;
  --success-soft: rgba(47, 217, 128, 0.13);
  --danger: #fb5570;
  --danger-soft: rgba(251, 85, 112, 0.13);
  --warning: #f6ad3f;
  --warning-soft: rgba(246, 173, 63, 0.13);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.6);
  --glow-accent: 0 0 0 1px rgba(124, 108, 246, 0.18), 0 8px 30px -6px rgba(124, 108, 246, 0.35);
  --glow-cyan: 0 0 24px -4px rgba(45, 212, 238, 0.45);

  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(680px 620px at 8% -8%, rgba(124, 108, 246, 0.22), transparent 60%),
    radial-gradient(760px 680px at 105% 5%, rgba(45, 212, 238, 0.14), transparent 58%),
    radial-gradient(600px 600px at 40% 115%, rgba(124, 108, 246, 0.14), transparent 60%);
  animation: auroraDrift 22s ease-in-out infinite alternate;
  will-change: transform;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, black 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, black 30%, transparent 78%);
}

@keyframes auroraDrift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-2.5%, 2%, 0) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  .brand-mark::before,
  .badge-success .dot,
  .btn-primary:hover::after {
    animation: none;
  }
}

a { color: inherit; text-decoration: none; }

.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

::selection { background: var(--accent-soft); color: var(--text); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a2f3d; border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #3a3f52; background-clip: padding-box; }

/* ---------- Layout ---------- */

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 264px;
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(10, 11, 15, 0.85), rgba(6, 7, 9, 0.9));
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border-right: 1px solid var(--border-soft);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 5;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
  isolation: isolate;
  box-shadow: 0 4px 14px -4px rgba(124, 108, 246, 0.6);
  flex-shrink: 0;
}

.brand-mark::before {
  content: '';
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: 12px;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-cyan), var(--accent-2), var(--accent));
  filter: blur(5px);
  opacity: 0.7;
  animation: spinGlow 5s linear infinite;
}

@keyframes spinGlow {
  to { transform: rotate(360deg); }
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  background: linear-gradient(120deg, var(--text) 40%, var(--accent-hover) 70%, var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  padding: 8px 12px 6px;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 13.5px;
  transition: background .15s ease, color .15s ease;
}

.nav a .icon { color: var(--text-tertiary); transition: color .15s ease; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a:hover .icon { color: var(--text); }
.nav a.active {
  background: var(--accent-soft);
  color: var(--accent-hover);
  box-shadow: inset 2px 0 0 var(--accent-hover), 0 0 16px -8px rgba(124, 108, 246, 0.6);
}
.nav a.active .icon { color: var(--accent-hover); }

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-soft);
  padding-top: 16px;
}

.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 12px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: white;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px rgba(124, 108, 246, 0.4);
  flex-shrink: 0;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-role {
  font-size: 11.5px;
  color: var(--text-tertiary);
}

.btn-logout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all .15s ease;
}

.btn-logout:hover { background: var(--surface-2); color: var(--text); border-color: var(--border); }

.main {
  flex: 1;
  padding: 36px 44px 60px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

/* ---------- Topbar ---------- */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 30px;
}

.topbar h1 {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.topbar p {
  color: var(--text-secondary);
  margin: 5px 0 0;
  font-size: 13.5px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-hover);
  margin-bottom: 6px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: transform .1s ease, background .15s ease, border-color .15s ease, opacity .15s ease, box-shadow .2s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 6px 20px -6px rgba(124, 108, 246, 0.55);
}
.btn-primary:hover { filter: brightness(1.1); box-shadow: 0 8px 26px -6px rgba(124, 108, 246, 0.7), 0 0 18px -4px rgba(45, 212, 238, 0.4); }

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}

.btn-primary:hover::after {
  animation: btnShimmer 0.9s ease forwards;
}

@keyframes btnShimmer {
  from { left: -60%; }
  to { left: 130%; }
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--surface-hover); border-color: #2c3040; }

.btn-danger {
  background: transparent;
  color: var(--danger);
  border-color: rgba(251, 85, 112, 0.35);
}
.btn-danger:hover { background: var(--danger-soft); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

.btn-sm { padding: 7px 12px; font-size: 12.5px; }
.btn-icon { padding: 8px; }
.btn-block { width: 100%; justify-content: center; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .15s ease;
}
.icon-btn:hover { background: var(--surface-hover); color: var(--text); border-color: #2c3040; }
.icon-btn.danger:hover { color: var(--danger); background: var(--danger-soft); border-color: rgba(251,85,112,0.3); }

.action-group { display: flex; gap: 6px; }

/* ---------- Cards / Stats ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-cyan), transparent);
  opacity: 0.7;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-border);
  box-shadow: var(--glow-accent);
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.stat-icon.violet { background: var(--accent-soft); color: var(--accent-hover); }
.stat-icon.blue { background: rgba(91, 141, 239, 0.14); color: #7fa8f2; }
.stat-icon.green { background: var(--success-soft); color: var(--success); }
.stat-icon.amber { background: var(--warning-soft); color: var(--warning); }

.stat-label {
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 6px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.panel {
  background: var(--surface);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent), transparent);
  opacity: 0.55;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.panel h2 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

.panel .hint { margin: 2px 0 0; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ---------- Table ---------- */

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

th, td {
  text-align: left;
  padding: 13px 12px;
  border-bottom: 1px solid var(--border-soft);
}

th {
  color: var(--text-tertiary);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tbody tr { transition: background .12s ease; }
tbody tr:hover { background: var(--surface-2); box-shadow: inset 2px 0 0 var(--accent); }
tbody tr:last-child td { border-bottom: none; }

.link-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.5);
}

.avatar-0 { background: linear-gradient(135deg, #7c6cf6, #5b8def); }
.avatar-1 { background: linear-gradient(135deg, #2fd980, #1fae9a); }
.avatar-2 { background: linear-gradient(135deg, #f6ad3f, #f57c5b); }
.avatar-3 { background: linear-gradient(135deg, #fb5570, #f6739c); }
.avatar-4 { background: linear-gradient(135deg, #5b8def, #3fd0e6); }
.avatar-5 { background: linear-gradient(135deg, #b18cf5, #7c6cf6); }

.link-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.link-cell .short {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.link-cell .short:hover { color: var(--accent-hover); }

.link-cell .target {
  color: var(--text-tertiary);
  font-size: 12.5px;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
}

.badge .dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

.badge-success { background: var(--success-soft); color: var(--success); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-muted { background: var(--surface-2); color: var(--text-tertiary); }
.badge-amber { background: var(--warning-soft); color: var(--warning); }

.badge-success .dot {
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(47, 217, 128, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(47, 217, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 217, 128, 0); }
}

/* ---------- Forms ---------- */

.form-card {
  max-width: 580px;
  background: var(--surface);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-cyan), transparent);
  opacity: 0.6;
}

.form-group { margin-bottom: 18px; }
.form-group:last-of-type { margin-bottom: 0; }

.form-group label {
  display: block;
  margin-bottom: 7px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.input-wrap { position: relative; }

.input-wrap .icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
}

input[type=text], input[type=url], input[type=email], input[type=password],
input[type=number], input[type=date], input[type=datetime-local], select {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 13.5px;
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.input-wrap input, .input-wrap select { padding-left: 38px; }

input::placeholder { color: var(--text-tertiary); }

input:focus, select:focus {
  outline: none;
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 0 16px -6px rgba(45, 212, 238, 0.5);
}

.input-wrap:focus-within .icon { color: var(--accent-hover); }

select { appearance: none; background-image: none; cursor: pointer; }

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}

.checkbox-row input { width: auto; accent-color: var(--accent); }

.hint { font-size: 12px; color: var(--text-tertiary); margin-top: 7px; }

.divider { height: 1px; background: var(--border-soft); margin: 22px 0; }

.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 13.5px;
  line-height: 1.4;
}

.alert-error {
  background: var(--danger-soft);
  color: #ff96a8;
  border: 1px solid rgba(251, 85, 112, 0.25);
}

.alert .icon { flex-shrink: 0; margin-top: 1px; color: var(--danger); }

/* ---------- Auth ---------- */

.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg), var(--glow-accent);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent), transparent);
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  text-align: center;
}

.auth-brand .brand-mark { width: 44px; height: 44px; border-radius: 13px; }
.auth-brand h1 { font-size: 19px; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
.auth-brand p { margin: 0; color: var(--text-secondary); font-size: 13px; }

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

.auth-footer a { color: var(--accent-hover); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* ---------- Filters ---------- */

.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.filters .input-wrap { flex: 1; min-width: 220px; }
.filters select { width: auto; min-width: 170px; }

/* ---------- Empty state ---------- */

.empty-state {
  text-align: center;
  padding: 56px 20px;
  color: var(--text-secondary);
}

.empty-state .icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.empty-state h3 { margin: 0 0 6px; font-size: 15px; color: var(--text); }
.empty-state p { margin: 0 0 18px; font-size: 13.5px; }

/* ---------- QR / copy box ---------- */

.copy-input {
  display: flex;
  gap: 8px;
}

.copy-input input {
  flex: 1;
  font-family: var(--font-mono);
  color: var(--accent-hover);
}

.qr-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 22px;
  background: white;
  border-radius: var(--radius-md);
}

.qr-card img { display: block; border-radius: 6px; }

.qr-download {
  font-size: 12.5px;
  font-weight: 700;
  color: #14161d;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Breakdown lists ---------- */

.breakdown-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
}

.breakdown-row .label {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breakdown-row .bar-track {
  width: 90px;
  height: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
  flex-shrink: 0;
}

.breakdown-row .bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
}

.breakdown-row .count {
  width: 32px;
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

/* ---------- Utility ---------- */

.text-muted { color: var(--text-secondary); }
.mono { font-family: var(--font-mono); }

canvas#clicksChart, canvas#linkChart {
  filter: drop-shadow(0 0 10px rgba(124, 108, 246, 0.25));
}
.mt-0 { margin-top: 0; }

@media (max-width: 900px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: relative; flex-direction: row; align-items: center; overflow-x: auto; padding: 14px 16px; }
  .sidebar-footer { margin-top: 0; border-top: none; padding-top: 0; margin-left: auto; }
  .user-card { display: none; }
  .nav { flex-direction: row; }
  .nav-label { display: none; }
  .main { padding: 22px 18px; }
  .form-row, .stat-grid { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; }
}
