/* Major Farm — Admin panel styles. Glassmorphism tokens ported from
   frontend/src/styles/globals.css so the two panels read as one system. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap&subset=latin,cyrillic,cyrillic-ext');

:root {
  --bg-void: #050509;
  --bg-base: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-sunken: #06060b;

  --bg-wash-cyan-rgb: 0, 212, 255;
  --bg-wash-pink-rgb: 255, 45, 85;

  --glass-1-bg: rgba(255, 255, 255, 0.04);
  --glass-2-bg: rgba(255, 255, 255, 0.06);
  --glass-3-bg: rgba(255, 255, 255, 0.09);
  --glass-blur: 12px;
  --glass-blur-header: 24px;
  --glass-saturation: 150%;
  --glass-border-1: rgba(255, 255, 255, 0.06);
  --glass-border-2: rgba(255, 255, 255, 0.10);
  --glass-border-3: rgba(255, 255, 255, 0.16);
  --glass-dropdown-bg: #0e0e15;

  --text-primary: rgba(245, 245, 247, 1);
  --text-secondary: rgba(245, 245, 247, 0.72);
  --text-tertiary: rgba(245, 245, 247, 0.52);
  --text-muted: rgba(245, 245, 247, 0.36);
  --text-disabled: rgba(245, 245, 247, 0.20);
  --text-inverse: #0a0a0f;

  --accent-cyan: #00D4FF;
  --accent-cyan-hover: #33DDFF;
  --accent-cyan-active: #00A8CC;
  --accent-cyan-glow: rgba(0, 212, 255, 0.35);

  --accent-pink: #FF2D55;
  --accent-pink-hover: #FF5C7A;
  --accent-pink-active: #CC1A3D;
  --accent-pink-glow: rgba(255, 45, 85, 0.35);

  --accent-gradient: linear-gradient(135deg, #00D4FF 0%, #FF2D55 100%);
  --accent-gradient-soft: linear-gradient(135deg, rgba(0, 212, 255, 0.16) 0%, rgba(255, 45, 85, 0.16) 100%);
  --accent-gradient-text: linear-gradient(135deg, #00D4FF 0%, #B84EFF 45%, #FF2D55 100%);

  --status-online: #34D399;
  --status-idle: #FFCC00;
  --status-warning: #FF9F0A;
  --status-error: #FF453A;
  --status-info: #4DB8FF;
  --status-offline: #4A4A55;
  --status-neutral: #8E8E93;

  --status-online-bg: rgba(52, 211, 153, 0.12);
  --status-idle-bg: rgba(255, 204, 0, 0.12);
  --status-warning-bg: rgba(255, 159, 10, 0.12);
  --status-error-bg: rgba(255, 69, 58, 0.14);
  --status-offline-bg: rgba(142, 142, 147, 0.10);

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --border-hover: rgba(0, 212, 255, 0.32);
  --border-focus: rgba(0, 212, 255, 0.60);

  --scrollbar-track: rgba(255, 255, 255, 0.04);
  --scrollbar-thumb: rgba(255, 255, 255, 0.14);
  --scrollbar-thumb-hover: rgba(0, 212, 255, 0.40);

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-3xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.42);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.52);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.62);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.72);
  --shadow-glass-rest: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 8px 24px rgba(0, 0, 0, 0.44);
  --shadow-glass-hover: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 12px 36px rgba(0, 0, 0, 0.56), 0 0 0 1px rgba(0, 212, 255, 0.12);
  --shadow-glow-cyan: 0 0 20px rgba(0, 212, 255, 0.32);
  --shadow-glow-pink: 0 0 20px rgba(255, 45, 85, 0.32);
  --shadow-popover: 0 20px 48px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.08);
  --ring-focus: 0 0 0 2px var(--bg-base), 0 0 0 4px rgba(0, 212, 255, 0.60);

  --t-instant: 80ms;
  --t-fast: 150ms;
  --t-base: 240ms;
  --t-slow: 400ms;
  --ease-out: cubic-bezier(0.16, 1, 0.30, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-ui: 'Inter', -apple-system, 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  --sidebar-w: 240px;
  --topbar-h: 64px;
  --content-pad: 32px;
}

* , *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

html {
  color-scheme: dark;
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--bg-base);
  background-image:
    radial-gradient(ellipse 80% 60% at 12% 8%, rgba(var(--bg-wash-cyan-rgb), 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 88% 92%, rgba(var(--bg-wash-pink-rgb), 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 100% 80% at 50% 50%, rgba(var(--bg-wash-cyan-rgb), 0.04) 0%, transparent 70%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 20px;
}

::selection { background: rgba(0, 212, 255, 0.32); color: var(--text-primary); }

* { scrollbar-width: thin; scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track); }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: var(--scrollbar-track); border-radius: var(--radius-full); }
*::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); background-clip: padding-box; }

.tnum, .mono { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); }

/* === bootstrap splash (rendered by index.html before Vue mounts) === */
.bootstrap-splash {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.bootstrap-glow {
  width: 64px; height: 64px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  filter: blur(8px);
  opacity: 0.75;
  animation: pulse-glow 1.4s ease-in-out infinite;
}
.bootstrap-label {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}
@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.15); opacity: 1; }
}

/* === glass surfaces === */
.glass-card {
  background: var(--glass-2-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  border: 1px solid var(--glass-border-2);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-glass-rest);
}

.glass-surface {
  background: var(--glass-1-bg);
  border: 1px solid var(--glass-border-1);
  border-radius: var(--radius-xl);
}

.glass-header {
  background: rgba(10, 10, 15, 0.60);
  backdrop-filter: blur(var(--glass-blur-header)) saturate(var(--glass-saturation));
  -webkit-backdrop-filter: blur(var(--glass-blur-header)) saturate(var(--glass-saturation));
  border-bottom: 1px solid var(--glass-border-1);
}

.grad-text {
  background-image: var(--accent-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* === app shell === */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: rgba(6, 6, 11, 0.72);
  backdrop-filter: blur(var(--glass-blur-header)) saturate(var(--glass-saturation));
  border-right: 1px solid var(--glass-border-1);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 24px 12px;
  border-bottom: 1px solid var(--glass-border-1);
  margin-bottom: 12px;
}

.sidebar-brand .zap {
  width: 32px; height: 32px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  display: grid; place-items: center;
  box-shadow: var(--shadow-glow-cyan);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}
.sidebar-brand .sidebar-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}
.sidebar-brand .brand-name { font-weight: 700; letter-spacing: -0.02em; font-size: 15px; }
.sidebar-brand .brand-sub { font-size: 11px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.08em; }

.nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
  text-decoration: none;
}
.nav-link:hover {
  background: var(--glass-2-bg);
  color: var(--text-primary);
}
.nav-link.active {
  background: var(--glass-3-bg);
  color: var(--text-primary);
  box-shadow: inset 3px 0 0 0 var(--accent-cyan);
  pointer-events: none;
  cursor: default;
}
.nav-link .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
  opacity: 0;
  transition: opacity var(--t-fast);
}
.nav-link.active .dot { opacity: 1; }

.sidebar-footer {
  margin-top: auto;
  padding: 12px;
  border-top: 1px solid var(--glass-border-1);
  color: var(--text-muted);
  font-size: 12px;
  display: flex; flex-direction: column; gap: 6px;
}

/* === main pane === */
.main-pane { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.topbar {
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--content-pad);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar .page-title { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.topbar .who {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-secondary);
  font-size: 13px;
}
.who .avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-gradient-soft);
  border: 1px solid var(--glass-border-2);
  display: grid; place-items: center;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 13px;
}

.content { padding: var(--content-pad); flex: 1; min-width: 0; }

/* === forms === */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 500; color: var(--text-secondary); letter-spacing: 0.01em; }
.field .hint { font-size: 12px; color: var(--text-muted); }

.input, .select, .textarea {
  background: var(--glass-1-bg);
  border: 1px solid var(--glass-border-2);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 14px;
  outline: none;
  transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), background var(--t-fast);
  width: 100%;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--border-hover); }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.16);
  background: var(--glass-2-bg);
}
.input.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }
.textarea { resize: vertical; min-height: 88px; }
.input-error, .input.input-error, .textarea.input-error {
  border-color: #FF3B30 !important;
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.14);
}

/* === buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border-2);
  background: var(--glass-2-bg);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:hover { background: var(--glass-3-bg); border-color: var(--border-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-glow-cyan);
}
.btn-primary:hover { filter: brightness(1.10); box-shadow: var(--shadow-glow-cyan), var(--shadow-glow-pink); }

.btn-danger {
  background: var(--status-error-bg);
  border-color: rgba(255, 69, 58, 0.32);
  color: var(--status-error);
}
.btn-danger:hover { background: rgba(255, 69, 58, 0.20); }

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

.btn-sm { padding: 6px 10px; font-size: 12px; border-radius: var(--radius-sm); }

/* === stat cards === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card { padding: 20px; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; }
.stat-card .stat-label {
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.stat-card .stat-value {
  font-size: 32px; font-weight: 700; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}
.stat-card .stat-delta { font-size: 12px; color: var(--text-tertiary); }
.stat-card .stat-delta.up { color: var(--status-online); }
.stat-card .stat-delta.down { color: var(--status-error); }
.stat-card .stat-accent {
  position: absolute;
  right: -30px; top: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.22;
}
.stat-card.accent-cyan .stat-accent { background: var(--accent-cyan); }
.stat-card.accent-pink .stat-accent { background: var(--accent-pink); }
.stat-card.accent-green .stat-accent { background: var(--status-online); }
.stat-card.accent-yellow .stat-accent { background: var(--status-idle); }
.stat-card.accent-red .stat-accent { background: var(--status-error); }
.stat-card.accent-purple .stat-accent { background: #B84EFF; }

/* === panels/sections === */
.section-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0 0 16px 0;
  color: var(--text-primary);
}
.panel { padding: 20px; margin-bottom: 24px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 12px; flex-wrap: wrap; }

/* === table === */
.table-wrap { overflow: auto; border-radius: var(--radius-xl); }
table.data {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  min-width: 720px;
}
table.data thead th {
  text-align: left;
  padding: 12px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  font-weight: 600;
  border-bottom: 1px solid var(--glass-border-2);
  background: rgba(10, 10, 15, 0.42);
  position: sticky; top: 0; z-index: 1;
}
table.data tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--glass-border-1);
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
table.data tbody tr:hover td { background: rgba(255, 255, 255, 0.03); }
table.data tbody tr:last-child td { border-bottom: none; }
table.data td.mono, table.data td .mono { font-family: var(--font-mono); }
table.data td.strong { color: var(--text-primary); font-weight: 500; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.badge.tier-TRIAL { background: var(--status-offline-bg); color: var(--status-neutral); border-color: rgba(142,142,147,0.25); }
.badge.tier-STANDARD { background: var(--status-idle-bg); color: var(--status-idle); border-color: rgba(255,204,0,0.25); }
.badge.tier-PRO { background: rgba(0, 212, 255, 0.12); color: var(--accent-cyan); border-color: rgba(0, 212, 255, 0.25); }
.badge.tier-ENTERPRISE { background: var(--accent-gradient-soft); color: var(--text-primary); border-color: rgba(184, 78, 255, 0.35); }

.badge.status-active { background: var(--status-online-bg); color: var(--status-online); border-color: rgba(52, 211, 153, 0.25); }
.badge.status-expired { background: var(--status-warning-bg); color: var(--status-warning); border-color: rgba(255, 159, 10, 0.25); }
.badge.status-revoked { background: var(--status-error-bg); color: var(--status-error); border-color: rgba(255, 69, 58, 0.25); }
.badge.status-unactivated { background: var(--glass-2-bg); color: var(--text-tertiary); border-color: var(--glass-border-2); }
.badge.status-online { background: var(--status-online-bg); color: var(--status-online); }

.actions-row { display: flex; gap: 6px; }

/* === toolbar / filters === */
.toolbar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-bottom: 16px;
}
.toolbar .grow { flex: 1; min-width: 180px; }
.toolbar .input, .toolbar .select { padding: 8px 12px; font-size: 13px; }

/* === modal === */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(5, 5, 9, 0.72);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  z-index: 100;
  padding: 24px;
  animation: mfadein var(--t-base) var(--ease-out);
}
.modal {
  background: var(--glass-dropdown-bg);
  border: 1px solid var(--glass-border-2);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-popover);
  max-width: 720px;
  width: 100%;
  max-height: 88vh;
  overflow: auto;
  padding: 24px;
  animation: mzoomin var(--t-base) var(--ease-spring);
}
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal-head h3 { margin: 0; font-size: 18px; font-weight: 600; }

@keyframes mfadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes mzoomin { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }

/* === login === */
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 420px;
  padding: 32px;
  animation: mzoomin var(--t-slow) var(--ease-spring);
}
.login-brand {
  display: flex; align-items: center; gap: 14px;
  justify-content: center;
  margin-bottom: 24px;
}
.login-brand .zap {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  display: grid; place-items: center;
  box-shadow: var(--shadow-glow-cyan);
  color: #fff;
  font-weight: 800;
  font-size: 22px;
}
.login-brand .titles h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.login-brand .titles p { margin: 0; font-size: 12px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.08em; }

.login-error {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--status-error-bg);
  border: 1px solid rgba(255, 69, 58, 0.32);
  color: var(--status-error);
  font-size: 13px;
  margin-bottom: 16px;
}

.login-footer {
  margin-top: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
}

/* === keygen === */
.keygen-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.2fr);
  gap: 24px;
}
@media (max-width: 900px) { .keygen-grid { grid-template-columns: 1fr; } }

.keygen-result { padding: 24px; }
.keygen-keybox {
  font-family: var(--font-mono);
  font-size: 22px;
  letter-spacing: 0.06em;
  padding: 20px;
  background: var(--glass-1-bg);
  border: 1px dashed var(--glass-border-3);
  border-radius: var(--radius-xl);
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 16px;
  word-break: break-all;
}
.kv-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--glass-border-1); font-size: 13px; }
.kv-row:last-child { border-bottom: none; }
.kv-row .k { color: var(--text-tertiary); }
.kv-row .v { color: var(--text-primary); font-variant-numeric: tabular-nums; }
.kv-row .v.mono { font-family: var(--font-mono); }

/* === charts === */
.chart-svg { display: block; width: 100%; height: auto; }
.chart-tooltip {
  position: absolute;
  padding: 8px 12px;
  background: var(--glass-dropdown-bg);
  border: 1px solid var(--glass-border-2);
  border-radius: var(--radius-md);
  font-size: 12px;
  pointer-events: none;
  box-shadow: var(--shadow-popover);
  z-index: 20;
  white-space: nowrap;
}

/* === feed === */
.feed { display: flex; flex-direction: column; gap: 6px; }
.feed .row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--glass-1-bg);
  border: 1px solid var(--glass-border-1);
  font-size: 13px;
}
.feed .row .action {
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--glass-2-bg);
  color: var(--text-secondary);
}
.feed .row .action.create { background: rgba(52,211,153,0.14); color: var(--status-online); }
.feed .row .action.revoke { background: var(--status-error-bg); color: var(--status-error); }
.feed .row .action.activate { background: rgba(0, 212, 255, 0.14); color: var(--accent-cyan); }
.feed .row .action.extend { background: var(--status-warning-bg); color: var(--status-warning); }
.feed .row .action.login { background: var(--accent-gradient-soft); color: var(--text-primary); }
.feed .row .time { color: var(--text-muted); font-size: 12px; margin-left: auto; font-variant-numeric: tabular-nums; }
.feed .row .who { color: var(--text-tertiary); font-family: var(--font-mono); }

/* === pagination === */
.pager { display: flex; align-items: center; justify-content: space-between; padding: 12px 4px; font-size: 13px; color: var(--text-tertiary); }
.pager .actions { display: flex; gap: 8px; }

/* === toast === */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--glass-dropdown-bg);
  border: 1px solid var(--glass-border-2);
  box-shadow: var(--shadow-popover);
  color: var(--text-primary);
  font-size: 13px;
  min-width: 240px;
  animation: mzoomin var(--t-base) var(--ease-spring);
}
.toast.ok { border-color: rgba(52, 211, 153, 0.35); box-shadow: var(--shadow-popover), 0 0 24px rgba(52, 211, 153, 0.18); }
.toast.err { border-color: rgba(255, 69, 58, 0.35); box-shadow: var(--shadow-popover), 0 0 24px rgba(255, 69, 58, 0.18); }

/* === misc === */
.empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.spacer-lg { height: 32px; }

/* mobile */
@media (max-width: 720px) {
  :root { --sidebar-w: 72px; --content-pad: 16px; }
  .sidebar-brand .brand-name, .sidebar-brand .brand-sub,
  .nav-link span:not(.dot), .sidebar-footer { display: none; }
  .sidebar-brand { justify-content: center; padding: 8px 0 16px 0; }
  .nav-link { justify-content: center; }
  .keygen-keybox { font-size: 15px; }
}

/* === MAJORTEAM BRAND TOKENS === */
/* Mirrors frontend/src/styles/globals.css so the two panels share
   the brand accent and glow filters. */
:root {
  --brand-yellow: #FDD600;
  --brand-yellow-bright: #FFE033;
  --brand-yellow-deep: #F4A800;
  --brand-yellow-rgb: 253, 214, 0;
  --brand-yellow-glow: rgba(253, 214, 0, 0.55);
  --brand-yellow-glow-soft: rgba(253, 214, 0, 0.25);
  --brand-gradient: linear-gradient(135deg, #FDD600 0%, #FFCB08 50%, #F4A800 100%);
  --brand-gradient-dim: linear-gradient(135deg, rgba(253, 214, 0, 0.72) 0%, rgba(244, 168, 0, 0.72) 100%);
}

.brand-glow-filter {
  filter:
    drop-shadow(0 0 12px var(--brand-yellow-glow))
    drop-shadow(0 0 24px var(--brand-yellow-glow-soft));
}

.brand-glow-filter-soft {
  filter:
    drop-shadow(0 0 6px var(--brand-yellow-glow-soft))
    drop-shadow(0 0 14px var(--brand-yellow-glow-soft));
}

@keyframes brand-pulse-glow {
  0%, 100% {
    filter:
      drop-shadow(0 0 10px var(--brand-yellow-glow))
      drop-shadow(0 0 20px var(--brand-yellow-glow-soft));
  }
  50% {
    filter:
      drop-shadow(0 0 18px var(--brand-yellow-glow))
      drop-shadow(0 0 36px var(--brand-yellow-glow-soft));
  }
}

.brand-glow-animated {
  animation: brand-pulse-glow 3s ease-in-out infinite;
}

.brand-text-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.brand-logo {
  display: inline-block;
  vertical-align: middle;
  user-select: none;
  -webkit-user-drag: none;
}

.bootstrap-splash .bootstrap-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin: 0 auto 12px auto;
  display: block;
  position: relative;
  z-index: 1;
}

.login-brand .login-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}
