/* ═══════════════════════════════════════════════════════
   admin-6a.css — Blueberry Design System
   Feature: admin (shared)
   Font: system-ui (no external imports)
   Palette: Indigo (#6366f1) → Blue (#3b82f6)
   ═══════════════════════════════════════════════════════ */

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

:root {
  --bg: #030712;
  --bg-elevated: #0f1019;
  --sidebar-bg: rgba(8,8,18,0.6);
  --surface: rgba(17,17,27,0.9);
  --surface-hover: rgba(99,102,241,0.04);
  --surface-active: rgba(99,102,241,0.08);
  --surface-raised: rgba(99,102,241,0.12);
  --border: rgba(99,102,241,0.1);
  --border-hover: rgba(99,102,241,0.3);
  --border-focus: rgba(99,102,241,0.5);
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --accent: #4f46e5;
  --accent-end: #5b21b6;
  --accent-glow: rgba(79,70,229,0.14);
  --accent-glow-strong: rgba(79,70,229,0.34);
  --gradient: linear-gradient(135deg, #4f46e5, #5b21b6);
  --cyan: #22D3EE;
  --cyan-bg: rgba(34,211,238,0.10);
  --red: #EF4444;
  --red-bg: rgba(239,68,68,0.12);
  --yellow: #FBBF24;
  --yellow-bg: rgba(251,191,36,0.10);
  --green: #22C55E;
  --green-bg: rgba(34,197,94,0.10);
  --violet-bg: rgba(99,102,241,0.12);
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --sidebar-width: 220px;
  --sidebar-collapsed: 60px;
  --topbar-h: 64px;
  --trans: 0.16s ease;
}

html { font-size: 14px; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ═══════════════════════════════════════════════
   ANIMATED MESH BACKGROUND
   ═══════════════════════════════════════════════ */
body::after {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(99,102,241,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 80%, rgba(67,56,202,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(99,102,241,0.03) 0%, transparent 70%);
  animation: meshMove 22s ease-in-out infinite alternate;
  pointer-events: none; z-index: 0;
}
@keyframes meshMove {
  0%   { transform: scale(1) translate(0,0); }
  50%  { transform: scale(1.04) translate(-1%,1%); }
  100% { transform: scale(1) translate(1%,-1%); }
}

/* Legacy ambient-glow — kept for HTML compat, visually replaced by body::after */
.ambient-glow {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.ambient-glow::before,
.ambient-glow::after { display: none; }

/* Blur Orb (Blueberry) */
.orb {
  position: fixed; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.12), transparent 70%);
  filter: blur(60px); top: -80px; right: -80px;
  pointer-events: none; z-index: 0;
}

/* ═══════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════ */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  backdrop-filter: blur(12px);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  z-index: 200;
  transition: width 0.16s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
}
.sidebar.collapsed { width: var(--sidebar-collapsed); }

.sidebar-logo {
  padding: 18px 16px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--border);
  height: var(--topbar-h); flex-shrink: 0;
  cursor: pointer; transition: background 0.15s;
}
.sidebar-logo:hover { background: var(--surface-hover); }
.sidebar-logo-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background-color: rgba(255,255,255,0.98);
  background-image: url('https://my-coverband.de/wp-content/uploads/2025/09/LOGO-MY-COVERBAND.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  display: flex; align-items: center; justify-content: center;
  font-size: 0; color: transparent; flex-shrink: 0;
  box-shadow: 0 0 20px var(--accent-glow-strong);
  overflow: hidden;
}
.sidebar-logo-text {
  font-size: 14px; font-weight: 700; color: var(--text-primary);
  letter-spacing: -0.3px; white-space: nowrap;
  opacity: 1; transition: opacity 0.2s;
}
.sidebar.collapsed .sidebar-logo-text { opacity: 0; pointer-events: none; }

.sidebar-nav {
  flex: 1; padding: 12px 8px;
  overflow-y: auto; overflow-x: hidden;
}

.sidebar-item {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius);
  color: var(--text-secondary); font-size: 0.88rem; font-weight: 500;
  cursor: pointer; transition: all 0.15s ease; white-space: nowrap;
  margin-bottom: 2px; text-decoration: none;
  border-left: 3px solid transparent;
}
.sidebar-item:hover { background: var(--surface-active); color: var(--text-primary); }
.sidebar-item.active {
  background: var(--surface-raised);
  color: var(--text-primary);
  border-left-color: var(--accent);
}
.sidebar-item .nav-icon {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0; opacity: 0.6;
}
.sidebar-item.active .nav-icon { opacity: 1; }
.sidebar-item:hover .nav-icon { opacity: 0.9; }
.sidebar-item .nav-label { opacity: 1; transition: opacity 0.2s; }
.sidebar.collapsed .sidebar-item .nav-label { opacity: 0; pointer-events: none; }

.sidebar-badge {
  margin-left: auto;
  background: var(--gradient);
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 1px 7px; border-radius: 10px; line-height: 1.5;
  transition: opacity 0.2s;
}
.sidebar.collapsed .sidebar-badge { opacity: 0; }

.sidebar-divider { height: 1px; background: var(--border); margin: 10px 12px; }

.sidebar-bottom {
  padding: 12px 8px; border-top: 1px solid var(--border); flex-shrink: 0;
}

.sidebar-toggle {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: var(--radius);
  color: var(--text-tertiary); font-size: 12px; cursor: pointer;
  transition: all 0.15s ease; margin-bottom: 8px; white-space: nowrap;
}
.sidebar-toggle:hover { background: var(--surface-hover); color: var(--text-secondary); }
.sidebar-toggle .toggle-icon {
  font-size: 14px; transition: transform 0.25s;
  flex-shrink: 0; width: 20px; text-align: center;
}
.sidebar.collapsed .sidebar-toggle .toggle-icon { transform: rotate(180deg); }
.sidebar-toggle .toggle-label { transition: opacity 0.2s; }
.sidebar.collapsed .sidebar-toggle .toggle-label { opacity: 0; }

.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: var(--radius);
  cursor: pointer; transition: background 0.15s; overflow: hidden;
}
.sidebar-user:hover { background: var(--surface-hover); }
.sidebar-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.sidebar-user-info { min-width: 0; transition: opacity 0.2s; }
.sidebar.collapsed .sidebar-user-info { opacity: 0; pointer-events: none; }
.sidebar-user-name {
  font-size: 12.5px; font-weight: 600; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-user-role { font-size: 11px; color: var(--text-tertiary); }

/* Sidebar user block (dashboard-v3 compat) */
.sidebar-spacer { flex: 1; }
.sidebar-user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700; color: #fff; flex-shrink: 0;
}

/* Nav sections (liquid-v2 compat) */
.nav-section {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(148,163,184,0.4);
  padding: .85rem .85rem .3rem; margin-top: .5rem;
}
.nav-item {
  display: flex; align-items: center; gap: .65rem;
  padding: .6rem .85rem; border-radius: var(--radius);
  color: var(--text-secondary); font-size: .88rem;
  cursor: pointer; transition: all var(--trans);
  text-decoration: none; border: none; background: none;
  width: 100%; text-align: left;
}
.nav-item:hover { background: var(--surface-active); color: var(--text-primary); }
.nav-item.active {
  background: var(--surface-raised); color: var(--text-primary);
  border-left: 2px solid var(--accent);
}
.nav-item svg { flex-shrink: 0; opacity: .7; }

/* ═══════════════════════════════════════════════
   MAIN CONTAINER
   ═══════════════════════════════════════════════ */
.main {
  margin-left: var(--sidebar-width);
  min-height: 100vh; position: relative; z-index: 1;
  transition: margin-left 0.16s cubic-bezier(0.4,0,0.2,1);
}
.sidebar.collapsed ~ .main { margin-left: var(--sidebar-collapsed); }

/* ═══════════════════════════════════════════════
   TOPBAR
   ═══════════════════════════════════════════════ */
.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; height: var(--topbar-h);
  background: rgba(3,7,18,0.8);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-title {
  font-size: 15px; font-weight: 700; letter-spacing: -0.3px;
}
#topbarRight { display: flex; align-items: center; gap: 10px; }

/* Logo (gradient text, Blueberry style) */
.logo {
  font-size: 1.25rem; font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; letter-spacing: -0.03em;
  margin-right: auto; white-space: nowrap;
}

/* Topbar Search */
.search-box, .search, .bb-search {
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px; height: 36px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text-tertiary);
  font-size: 13px; min-width: 220px; cursor: text;
  transition: all 0.2s ease;
}
.search-box:hover, .search-box:focus-within,
.search:hover, .bb-search:hover {
  border-color: var(--border-hover); background: rgba(255,255,255,0.05);
}
.search svg { opacity: .5; flex-shrink: 0; }
.search span { opacity: .5; }
.search-box input {
  background: none; border: none; outline: none;
  color: var(--text-primary); font-size: 13px; font-family: inherit; width: 100%;
}
.search-box input::placeholder { color: var(--text-tertiary); }
.search-kbd {
  font-size: 10px; background: rgba(99,102,241,0.08);
  border-radius: 4px; padding: 2px 6px; color: var(--text-tertiary);
  font-weight: 500; white-space: nowrap;
}

/* Topbar Actions */
.topbar-actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; }

/* Icon Buttons (Blueberry topbar) */
.icon-btn {
  width: 34px; height: 34px; border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-secondary);
  transition: all var(--trans); flex-shrink: 0;
}
.icon-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }

/* Avatar (Blueberry topbar) */
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; color: #fff;
  flex-shrink: 0; cursor: pointer;
}

.mobile-menu-btn {
  display: none; width: 36px; height: 36px;
  border-radius: var(--radius);
  align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 18px; cursor: pointer;
  background: none; border: 1px solid var(--border); margin-right: 8px;
  transition: all 0.15s;
}
.mobile-menu-btn:hover { background: var(--surface-hover); color: var(--text-primary); }

/* ── Content ── */
.content { padding: 16px 28px 40px; }

/* ═══════════════════════════════════════════════
   PAGE HEADER
   ═══════════════════════════════════════════════ */
.page-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.page-title { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.03em; }
.page-sub { color: var(--text-secondary); font-size: .85rem; margin-top: .2rem; }
.page-actions { display: flex; gap: .75rem; align-items: center; }

/* ═══════════════════════════════════════════════
   KPI / STAT CARDS
   ═══════════════════════════════════════════════ */
.kpi-section {
  transition: opacity 0.35s ease, margin 0.35s ease;
  overflow: visible;
  opacity: 1;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}
.kpi-section.dimmed { opacity: 0.3; pointer-events: none; }

.stats-grid, .stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px;
}

.stat-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden; cursor: pointer; user-select: none;
  display: flex; flex-direction: column; gap: .75rem;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.12), transparent);
}
.stat-card::after {
  content: ''; position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(99,102,241,0.04), transparent 60%);
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3), 0 0 30px var(--accent-glow);
}
.stat-card:hover::after { opacity: 1; }
.stat-card.active-filter {
  border-color: var(--border-focus);
  box-shadow: 0 0 30px var(--accent-glow-strong);
}
.stat-card.active-filter::after { opacity: 1; }

.stat-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; margin-bottom: 14px; position: relative; z-index: 1;
  background: var(--violet-bg);
}
/* Legacy color variants — all map to indigo now */
.stat-icon.purple { background: var(--violet-bg); }
.stat-icon.cyan { background: var(--cyan-bg); }
.stat-icon.green { background: var(--green-bg); }
.stat-icon.yellow { background: var(--yellow-bg); }

.stat-label {
  font-size: 11.5px; font-weight: 600; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 8px;
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
}
.stat-value-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  position: relative; z-index: 1;
}
.stat-number, .stat-value {
  font-size: 1.9rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1;
  background: linear-gradient(135deg, var(--text-primary) 60%, var(--text-secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-trend {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11.5px; font-weight: 600;
  padding: 3px 8px; border-radius: 20px; margin-bottom: 4px;
}
.stat-trend.up, .trend-up { color: var(--green); background: var(--green-bg); }
.stat-trend.down, .trend-down { color: var(--red); background: var(--red-bg); }
.trend-label { color: var(--text-secondary); background: none; }
.stat-sub {
  font-size: 11.5px; color: var(--text-tertiary); margin-top: 8px;
  position: relative; z-index: 1;
}

.revenue-progress { position: relative; z-index: 1; margin-top: 12px; }
.progress-bar-bg {
  height: 6px; background: rgba(99,102,241,0.08);
  border-radius: 3px; overflow: hidden;
}
.progress-bar-fill {
  height: 100%; border-radius: 3px;
  background: var(--gradient);
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 0 12px var(--accent-glow);
}
.progress-labels {
  display: flex; justify-content: space-between; margin-top: 4px;
}
.progress-labels span {
  font-size: 10.5px; color: var(--text-tertiary); font-weight: 500;
}

/* ═══════════════════════════════════════════════
   GLASS CARD (generic)
   ═══════════════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
}
.card-title { font-size: .95rem; font-weight: 700; }
.card-sub { color: var(--text-secondary); font-size: .8rem; margin-top: .15rem; }
.card-footer {
  margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--border);
}
.card-footer a {
  font-size: .82rem; color: var(--accent); text-decoration: none;
  display: inline-flex; align-items: center; gap: .3rem; transition: opacity var(--trans);
}
.card-footer a:hover { opacity: .75; }

/* ═══════════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════════ */
.table-header-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.table-title { font-size: 15px; font-weight: 700; letter-spacing: -0.3px; }
.table-meta { font-size: 12px; color: var(--text-tertiary); }

.table-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
  position: relative; z-index: 10;
}
.table-toolbar-left { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.table-toolbar-right { display: flex; align-items: center; gap: 8px; }

.filter-tab {
  padding: 5px 12px; font-size: 12px; font-weight: 500;
  color: var(--text-tertiary); cursor: pointer; border-radius: 20px;
  border: 1px solid transparent; transition: all 0.15s ease;
  user-select: none; white-space: nowrap; background: none; font-family: inherit;
}
.filter-tab:hover { color: var(--text-secondary); background: var(--surface); }
.filter-tab.active {
  color: var(--accent); background: var(--violet-bg);
  border-color: rgba(79,70,229,0.28);
}
.filter-tab-count {
  font-size: 10px; color: var(--text-tertiary); margin-left: 3px;
}
.filter-tab.active .filter-tab-count { color: var(--accent); }

.table-search-sm {
  display: flex; align-items: center; gap: 6px;
  padding: 0 10px; height: 32px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 12px; min-width: 160px;
  transition: border-color 0.2s;
}
.table-search-sm:focus-within { border-color: var(--border-hover); }
.table-search-sm input {
  background: none; border: none; outline: none;
  color: var(--text-primary); font-size: 12px; font-family: inherit; width: 100%;
}
.table-search-sm input::placeholder { color: var(--text-tertiary); }

.table-wrapper {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden; backdrop-filter: blur(8px);
}
.table-wrapper::before {
  content: ''; display: block; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.12), transparent);
}
.table-scroll { overflow-x: auto; }
.table-wrap { overflow-x: auto; border-radius: 8px; }

table { width: 100%; border-collapse: collapse; min-width: 950px; font-size: .875rem; }

thead th {
  padding: 11px 14px; text-align: left;
  font-size: 10.5px; font-weight: 600; color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  background: rgba(99,102,241,0.02);
  cursor: pointer; user-select: none; white-space: nowrap;
  transition: color 0.15s; position: relative;
}
thead th:hover { color: var(--text-secondary); }
thead th.sort-active { color: var(--accent); }
thead th .sort-arrow {
  margin-left: 4px; font-size: 9px; opacity: 0.4; transition: opacity 0.15s;
}
thead th:hover .sort-arrow { opacity: 0.8; }
thead th.sort-active .sort-arrow { opacity: 1; color: var(--accent); }
thead th.align-right { text-align: right; }

tbody tr {
  border-bottom: 1px solid rgba(99,102,241,0.05);
  transition: all 0.15s ease; cursor: pointer; position: relative;
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(99,102,241,0.04); }
tbody tr.selected { background: rgba(99,102,241,0.08); }
tbody tr.selected::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--gradient); border-radius: 0 2px 2px 0;
}
tbody tr:focus { outline: none; background: rgba(99,102,241,0.04); }
tbody td {
  padding: 11px 14px; font-size: 12.5px;
  color: var(--text-primary); vertical-align: middle; white-space: nowrap;
}
td.align-right { text-align: right; }
.td-secondary, .td-muted { color: var(--text-secondary); font-size: .82rem; }
.td-mono { font-variant-numeric: tabular-nums; font-weight: 600; }

/* Priority Bars */
.priority-bar { display: flex; gap: 2px; }
.priority-bar span {
  width: 3.5px; height: 14px; border-radius: 1.5px;
  background: rgba(99,102,241,0.08);
}
.priority-bar.p-high span.f { background: var(--red); box-shadow: 0 0 6px rgba(239,68,68,0.3); }
.priority-bar.p-med span.f { background: var(--yellow); box-shadow: 0 0 6px rgba(251,191,36,0.25); }
.priority-bar.p-low span.f { background: var(--green); box-shadow: 0 0 6px rgba(34,197,94,0.25); }
.priority-bar.p-normal span.f { background: var(--accent); }

/* ═══════════════════════════════════════════════
   STATUS PILLS
   ═══════════════════════════════════════════════ */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1px;
}
.pill-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.pill-offen { background: var(--violet-bg); color: var(--accent); }
.pill-offen .pill-dot { background: var(--accent); }
.pill-bestaetigt { background: var(--cyan-bg); color: var(--cyan); }
.pill-bestaetigt .pill-dot { background: var(--cyan); }
.pill-kritisch { background: var(--red-bg); color: #F87171; }
.pill-kritisch .pill-dot { background: var(--red); }
.pill-warten { background: var(--yellow-bg); color: var(--yellow); }
.pill-warten .pill-dot { background: var(--yellow); }
.pill-entwurf { background: rgba(99,102,241,0.06); color: var(--text-tertiary); }
.pill-entwurf .pill-dot { background: var(--text-tertiary); }
.pill-abgesagt { background: rgba(99,102,241,0.04); color: var(--text-tertiary); }
.pill-abgesagt .pill-dot { background: var(--text-tertiary); }

/* API status pills */
.pill-new { background: var(--violet-bg); color: var(--accent); }
.pill-new .pill-dot { background: var(--accent); }
.pill-matching { background: var(--violet-bg); color: var(--accent); }
.pill-matching .pill-dot { background: var(--accent); }
.pill-awaiting_selection { background: var(--yellow-bg); color: var(--yellow); }
.pill-awaiting_selection .pill-dot { background: var(--yellow); }
.pill-awaiting_artist { background: var(--yellow-bg); color: var(--yellow); }
.pill-awaiting_artist .pill-dot { background: var(--yellow); }
.pill-artist_confirmed { background: var(--cyan-bg); color: var(--cyan); }
.pill-artist_confirmed .pill-dot { background: var(--cyan); }
.pill-contract_pending { background: var(--yellow-bg); color: var(--yellow); }
.pill-contract_pending .pill-dot { background: var(--yellow); }
.pill-contract_signed { background: var(--cyan-bg); color: var(--cyan); }
.pill-contract_signed .pill-dot { background: var(--cyan); }
.pill-payment_pending { background: var(--yellow-bg); color: var(--yellow); }
.pill-payment_pending .pill-dot { background: var(--yellow); }
.pill-payment_received { background: var(--green-bg); color: var(--green); }
.pill-payment_received .pill-dot { background: var(--green); }
.pill-completed { background: var(--green-bg); color: var(--green); }
.pill-completed .pill-dot { background: var(--green); }
.pill-cancelled { background: rgba(99,102,241,0.04); color: var(--text-tertiary); }
.pill-cancelled .pill-dot { background: var(--text-tertiary); }
.pill-archived { background: rgba(99,102,241,0.04); color: var(--text-tertiary); }
.pill-archived .pill-dot { background: var(--text-tertiary); }

/* Events status pills */
.status-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.status-pill.status-offen { background: var(--yellow-bg); color: var(--yellow); }
.status-pill.status-bestaetigt { background: var(--cyan-bg); color: var(--cyan); }
.status-pill.status-cyan { background: var(--cyan-bg); color: var(--cyan); }

tbody tr.selected td .pill { visibility: visible; opacity: 1; }
.date-cell { font-size: 12px; color: var(--text-secondary); }

/* Badges (Blueberry) */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .25rem .7rem; border-radius: 99px;
  font-size: .72rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; white-space: nowrap;
}
.badge-active {
  background: linear-gradient(135deg, rgba(79,70,229,0.28), rgba(59,130,246,0.15));
  color: #a5b4fc; border: 1px solid rgba(99,102,241,0.25);
}
.badge-pending {
  background: var(--yellow-bg); color: var(--yellow);
  border: 1px solid rgba(234,179,8,0.2);
}
.badge-inactive {
  background: rgba(148,163,184,0.08); color: var(--text-secondary);
  border: 1px solid rgba(148,163,184,0.12);
}
.badge-dot {
  width: 5px; height: 5px; border-radius: 50%; background: currentColor;
}

/* Pagination */
.pagination {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-tertiary);
}
.pagination-info { font-size: 11.5px; }
.pagination-btns { display: flex; gap: 4px; }
.page-btn {
  width: 30px; height: 28px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: transparent;
  color: var(--text-secondary); font-size: 11px; font-family: inherit;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.page-btn:hover { border-color: var(--border-hover); color: var(--text-primary); background: var(--surface); }
.page-btn.active {
  background: var(--violet-bg); border-color: var(--border-hover); color: var(--accent);
}
.page-btn:disabled { opacity: 0.3; cursor: default; }

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1.2rem; border-radius: var(--radius);
  font-size: .875rem; font-weight: 600; cursor: pointer;
  transition: all var(--trans); border: none; text-decoration: none;
  font-family: inherit; line-height: 1; white-space: nowrap;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 20px; height: 36px;
  background: var(--gradient);
  border: none; border-radius: var(--radius); color: #fff;
  font-size: 12.5px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
  box-shadow: 0 2px 12px rgba(79,70,229,0.28);
}
.btn-primary:hover {
  box-shadow: 0 4px 20px rgba(67,56,202,0.42);
  transform: translateY(-1px);
}
.btn-primary:disabled {
  opacity: 0.5; cursor: default; transform: none; box-shadow: none;
}

.btn-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 18px; height: 36px;
  background: var(--gradient);
  border: none; border-radius: var(--radius); color: #fff;
  font-size: 13px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: all 0.2s ease; white-space: nowrap;
  box-shadow: 0 2px 12px rgba(79,70,229,0.28);
}
.btn-cta:hover {
  box-shadow: 0 4px 24px rgba(67,56,202,0.46);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(99,102,241,0.15); color: var(--accent);
  border: 1px solid rgba(99,102,241,0.25);
}
.btn-secondary:hover { background: rgba(99,102,241,0.22); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 16px; height: 36px;
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text-secondary);
  font-size: 12.5px; font-weight: 500; font-family: inherit;
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.btn-ghost:hover {
  border-color: var(--border-hover); color: var(--text-primary);
  background: var(--surface);
}
.btn-ghost.editing-active {
  border-color: var(--border-focus); color: var(--accent);
  background: var(--violet-bg);
}

.btn-danger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 16px; height: 36px;
  background: transparent; border: 1px solid rgba(239,68,68,0.25);
  border-radius: var(--radius); color: #F87171;
  font-size: 12.5px; font-weight: 500; font-family: inherit;
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.btn-danger:hover { background: var(--red-bg); border-color: rgba(239,68,68,0.4); }

.btn-success {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 16px; height: 36px;
  background: transparent; border: 1px solid rgba(34,197,94,0.25);
  border-radius: var(--radius); color: var(--green);
  font-size: 12.5px; font-weight: 500; font-family: inherit;
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.btn-success:hover { background: var(--green-bg); border-color: rgba(34,197,94,0.4); }

.btn-sm { height: 30px; padding: 0 12px; font-size: 11.5px; }

.btn-assign {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; background: var(--surface);
  border: 1px dashed rgba(99,102,241,0.15);
  border-radius: var(--radius); color: var(--text-secondary);
  font-size: 12px; font-weight: 500; font-family: inherit;
  cursor: pointer; transition: all 0.15s;
}
.btn-assign:hover {
  border-color: var(--border-hover); color: var(--accent);
  background: var(--violet-bg);
}

/* ═══════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease-out;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  width: 92%; max-width: 900px; max-height: 85vh;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden; display: flex; flex-direction: column;
  transform: scale(0.95); transition: transform 0.2s ease-out;
  backdrop-filter: blur(8px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.5), 0 0 80px rgba(99,102,241,0.08);
}
.modal-overlay.open .modal { transform: scale(1); }
.modal::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 100px;
  background: linear-gradient(180deg, rgba(99,102,241,0.06) 0%, transparent 100%);
  pointer-events: none; z-index: 0;
}

.modal-body {
  overflow-y: auto; flex: 1;
  padding: 28px 32px 20px; position: relative; z-index: 1;
}

.modal-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 24px;
}
.modal-header-left { flex: 1; min-width: 0; }
.modal-header-id {
  font-size: 11px; font-weight: 600; color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px;
}
.modal-header-title {
  font-size: 22px; font-weight: 700; letter-spacing: -0.5px;
  color: var(--text-primary); margin-bottom: 10px; line-height: 1.3;
}
.modal-header-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.modal-header-meta .pill { font-size: 11px; }
.modal-header-sub { font-size: 12.5px; color: var(--text-secondary); }

.modal-close {
  width: 36px; height: 36px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-tertiary); font-size: 18px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border);
  transition: all 0.15s; flex-shrink: 0; margin-left: 16px;
}
.modal-close:hover {
  color: var(--text-primary); background: var(--surface-hover);
  border-color: var(--border-hover);
}

/* Info Grid */
.modal-info-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-bottom: 28px;
}
.info-card {
  background: rgba(99,102,241,0.03);
  border: 1px solid rgba(99,102,241,0.08);
  border-radius: var(--radius); padding: 14px 16px;
  backdrop-filter: blur(4px);
}
.info-card-label {
  font-size: 10.5px; font-weight: 600; color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 6px;
}
.info-card-value {
  font-size: 14px; font-weight: 600; color: var(--text-primary); line-height: 1.4;
}
.info-card-value.large { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.info-card-sub { font-size: 11.5px; color: var(--text-tertiary); margin-top: 2px; }
.info-card-value a { color: var(--accent); text-decoration: none; }
.info-card-value a:hover { text-decoration: underline; }

.info-card.editing .info-card-value { display: none; }
.info-card .info-edit-input {
  display: none; width: 100%; padding: 6px 8px;
  background: rgba(99,102,241,0.06);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  color: var(--text-primary); font-size: 13px; font-family: inherit; outline: none;
}
.info-card.editing .info-edit-input { display: block; }

/* Section headings */
.modal-section-title {
  font-size: 13px; font-weight: 700; color: var(--text-primary);
  text-transform: uppercase; letter-spacing: 0.3px;
  margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(99,102,241,0.08);
}

/* Timeline (horizontal) */
.timeline-track {
  display: flex; align-items: flex-start; justify-content: space-between;
  position: relative; margin-bottom: 28px; padding: 0 8px;
}
.timeline-step {
  display: flex; flex-direction: column; align-items: center;
  position: relative; z-index: 1; flex: 1;
}
.timeline-dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--text-tertiary);
  background: rgba(99,102,241,0.06); border: 2px solid rgba(99,102,241,0.12);
  transition: all 0.3s; position: relative;
}
.timeline-step.done .timeline-dot {
  background: var(--accent); border-color: var(--accent);
  color: #fff; box-shadow: 0 0 12px var(--accent-glow);
}
.timeline-step.current .timeline-dot {
  background: var(--accent); border-color: var(--accent-end);
  color: #fff; box-shadow: 0 0 20px var(--accent-glow-strong);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 12px var(--accent-glow); }
  50% { box-shadow: 0 0 24px var(--accent-glow-strong); }
}
.timeline-step.future .timeline-dot {
  background: rgba(99,102,241,0.04); border-color: rgba(99,102,241,0.08);
  color: var(--text-tertiary);
}
.timeline-label {
  font-size: 11px; font-weight: 500; color: var(--text-tertiary);
  margin-top: 8px; text-align: center; white-space: nowrap;
}
.timeline-step.done .timeline-label,
.timeline-step.current .timeline-label { color: var(--text-secondary); }
.timeline-date { font-size: 10px; color: var(--text-tertiary); margin-top: 2px; }

.timeline-line { position: absolute; top: 14px; left: 0; right: 0; height: 2px; z-index: 0; }
.timeline-line-inner {
  position: absolute; top: 0; left: 14px; right: 14px;
  height: 2px; background: rgba(99,102,241,0.08);
}
.timeline-line-fill {
  height: 2px; background: var(--gradient);
  border-radius: 1px; transition: width 0.6s ease;
  box-shadow: 0 0 8px var(--accent-glow);
}

/* Artists Grid (in modal) */
.artists-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px; margin-bottom: 28px;
}
.artist-card {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: rgba(99,102,241,0.03);
  border: 1px solid rgba(99,102,241,0.08);
  border-radius: var(--radius); transition: border-color 0.15s;
}
.artist-card:hover { border-color: var(--border-hover); }
.artist-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.artist-details { flex: 1; min-width: 0; }
.artist-name-text { font-size: 12.5px; font-weight: 600; color: var(--text-primary); }
.artist-role-text { font-size: 11px; color: var(--text-tertiary); }
.artist-status-badge {
  font-size: 10px; font-weight: 600; padding: 2px 7px;
  border-radius: 10px; flex-shrink: 0; white-space: nowrap;
}
.artist-status-badge.confirmed { background: var(--green-bg); color: var(--green); }
.artist-status-badge.pending { background: var(--yellow-bg); color: var(--yellow); }
.artist-status-badge.declined { background: var(--red-bg); color: var(--red); }

/* Budget Breakdown */
.budget-table { width: 100%; margin-bottom: 28px; }
.budget-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid rgba(99,102,241,0.05);
}
.budget-row:last-child { border-bottom: none; }
.budget-row .b-label { font-size: 12.5px; color: var(--text-secondary); }
.budget-row .b-value {
  font-size: 12.5px; font-weight: 600; color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.budget-row.total {
  border-top: 1px solid rgba(99,102,241,0.1);
  border-bottom: none; padding-top: 10px; margin-top: 4px;
}
.budget-row.total .b-label { font-weight: 700; color: var(--text-primary); }
.budget-row.total .b-value { font-size: 16px; font-weight: 800; color: var(--cyan); }

/* Notes */
.notes-list { margin-bottom: 20px; }
.note-item {
  padding: 10px 14px; background: rgba(99,102,241,0.02);
  border: 1px solid rgba(99,102,241,0.06);
  border-radius: var(--radius); margin-bottom: 8px;
}
.note-item:last-child { margin-bottom: 0; }
.note-header { display: flex; justify-content: space-between; margin-bottom: 4px; }
.note-author { font-size: 11.5px; font-weight: 600; color: var(--text-secondary); }
.note-date { font-size: 10.5px; color: var(--text-tertiary); }
.note-text { font-size: 12.5px; color: var(--text-primary); line-height: 1.5; }

.note-textarea {
  width: 100%; padding: 10px 14px;
  background: rgba(99,102,241,0.03);
  border: 1px solid rgba(99,102,241,0.08);
  border-radius: var(--radius);
  color: var(--text-primary); font-size: 12.5px;
  font-family: inherit; resize: vertical; min-height: 60px;
  outline: none; transition: border-color 0.2s;
}
.note-textarea:focus { border-color: var(--border-hover); }
.note-textarea::placeholder { color: var(--text-tertiary); }

/* Modal Footer */
.modal-footer {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 32px; border-top: 1px solid var(--border);
  background: var(--bg-elevated); position: relative; z-index: 2; flex-shrink: 0;
}
.modal-footer-right { margin-left: auto; display: flex; gap: 10px; }

/* ═══════════════════════════════════════════════
   LOGIN
   ═══════════════════════════════════════════════ */
.login-container {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.login-box {
  width: 100%; max-width: 380px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  backdrop-filter: blur(8px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.4), 0 0 60px rgba(99,102,241,0.06);
  position: relative; overflow: hidden;
}
.login-box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient);
}
.login-logo {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin-bottom: 32px;
}
.login-logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: #fff;
  box-shadow: 0 0 24px var(--accent-glow-strong);
}
.login-logo-text {
  font-size: 18px; font-weight: 700; color: var(--text-primary);
  letter-spacing: -0.3px;
}
.login-error {
  background: var(--red-bg); color: #F87171; border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius); padding: 10px 14px;
  font-size: 12.5px; font-weight: 500; margin-bottom: 16px; display: none;
}
.login-error.visible { display: block; }
.login-input {
  width: 100%; padding: 10px 14px; margin-bottom: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text-primary);
  font-size: 14px; font-family: inherit; outline: none;
  transition: border-color 0.2s;
}
.login-input:focus { border-color: var(--border-focus); }
.login-input::placeholder { color: var(--text-tertiary); }
.login-btn {
  width: 100%; padding: 11px; border: none;
  background: var(--gradient);
  border-radius: var(--radius); color: #fff;
  font-size: 14px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: all 0.2s;
  box-shadow: 0 2px 12px rgba(79,70,229,0.28);
}
.login-btn:hover {
  box-shadow: 0 4px 24px rgba(67,56,202,0.46);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════ */
.toast-6a {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 24px; border-radius: 10px;
  font-size: 13px; font-weight: 500; font-family: inherit;
  z-index: 9000; pointer-events: none;
  opacity: 0; transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  backdrop-filter: blur(12px);
}
.toast-6a.active {
  opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto;
}
.toast-6a.success { background: rgba(34,197,94,0.15); color: var(--green); border: 1px solid rgba(34,197,94,0.2); }
.toast-6a.error { background: rgba(239,68,68,0.15); color: #F87171; border: 1px solid rgba(239,68,68,0.2); }
.toast-6a.info { background: rgba(99,102,241,0.15); color: var(--accent); border: 1px solid rgba(79,70,229,0.28); }
.toast-6a.warning { background: rgba(251,191,36,0.15); color: var(--yellow); border: 1px solid rgba(251,191,36,0.2); }

/* ═══════════════════════════════════════════════
   FORM ELEMENTS
   ═══════════════════════════════════════════════ */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 11px; font-weight: 600;
  color: var(--text-secondary); text-transform: uppercase;
  letter-spacing: 0.4px; margin-bottom: 6px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%; padding: 9px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text-primary);
  font-size: 13px; font-family: inherit; outline: none;
  transition: border-color 0.2s; appearance: none; -webkit-appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px rgba(99,102,241,0.15);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-tertiary); }
.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='rgba(148,163,184,0.5)' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 32px;
}
.form-select option { background: var(--bg-elevated); color: var(--text-primary); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-hint { font-size: 11px; color: var(--text-tertiary); margin-top: 4px; }
.form-required { color: var(--red); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-checkbox {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; font-size: 13px; color: var(--text-secondary);
}
.form-checkbox input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); }

/* ═══════════════════════════════════════════════
   SETTINGS ZONES
   ═══════════════════════════════════════════════ */
.settings-zone {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px; margin-bottom: 14px;
  backdrop-filter: blur(8px);
}
.settings-zone-title {
  font-size: 0.95rem; font-weight: 700; color: var(--text-primary);
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(99,102,241,0.08);
}
.settings-zone--warning { border-color: rgba(251,191,36,0.15); }
.settings-zone--warning .settings-zone-title { color: var(--yellow); }
.settings-zone--danger { border-color: rgba(239,68,68,0.15); }
.settings-zone--danger .settings-zone-title { color: #F87171; }
.settings-zone--info { border-color: rgba(34,211,238,0.15); }
.settings-zone--info .settings-zone-title { color: var(--cyan); }
.settings-zone--hub { border-color: rgba(99,102,241,0.15); }
.settings-zone--hub .settings-zone-title { color: var(--accent); }

.settings-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 10px 0; border-bottom: 1px solid rgba(99,102,241,0.05);
  flex-wrap: nowrap;
}
.settings-row:last-child { border-bottom: none; }
.settings-row-info { flex: 1; min-width: 0; overflow: hidden; }
.settings-row-label { font-size: 12.5px; font-weight: 600; color: var(--text-primary); }
.settings-row-desc {
  font-size: 11px; color: var(--text-tertiary); margin-top: 2px;
  line-height: 1.35; max-width: 480px;
}
/* Keep toggle/button on the right, never push to new line */
.settings-row > .toggle-switch,
.settings-row > .toggle-switch-mini,
.settings-row > select,
.settings-row > button { flex-shrink: 0; }

.settings-zone-header { margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(99,102,241,0.08); }
.settings-zone-header .settings-zone-title { margin-bottom: 3px; padding-bottom: 0; border-bottom: none; }
.settings-zone-desc { font-size: 11.5px; color: var(--text-tertiary); line-height: 1.4; }

.settings-subgroup {
  margin-top: 6px; margin-bottom: 6px;
  padding: 6px 10px; border-radius: var(--radius);
  background: rgba(99,102,241,0.02);
  border-left: 2px solid rgba(99,102,241,0.1);
}
.settings-subgroup-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--text-tertiary); font-weight: 700; margin-bottom: 4px;
}

/* ═══════════════════════════════════════════════
   TOGGLE SWITCH
   ═══════════════════════════════════════════════ */
.toggle-switch {
  position: relative;
  width: 132px;
  height: 38px;
  background: var(--surface);
  border-radius: 19px;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  padding: 3px;
  flex-shrink: 0;
}
.toggle-switch.active { background: #22c55e; }
.toggle-color-green.active { background: #22c55e; }
.toggle-color-orange.active { background: #f59e0b; }
.toggle-color-red.active { background: #dc2626; }
.toggle-color-blue.active { background: #3b82f6; }

.toggle-switch .toggle-label {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 7px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255,255,255,0.4);
  z-index: 1;
  transition: color 0.3s;
  user-select: none;
}
.toggle-switch.active .toggle-label { color: rgba(255,255,255,0.5); }
.toggle-switch .toggle-label.active { color: #e5e5e5; }
.toggle-switch.active .toggle-label.active { color: white; }
.toggle-switch .toggle-slider {
  position: absolute;
  width: 62px;
  height: 32px;
  background: var(--bg);
  border-radius: 16px;
  transition: left 0.3s cubic-bezier(0.4,0,0.2,1);
  left: 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.toggle-switch.active .toggle-slider { left: calc(100% - 65px); }

.toggle-switch-mini {
  position: relative; width: 110px; height: 32px;
  background: var(--surface); border-radius: 16px;
  cursor: pointer; transition: background 0.3s;
  display: flex; align-items: center; padding: 2px; flex-shrink: 0;
}
.toggle-switch-mini.active { background: #22c55e; }
.toggle-color-green.toggle-switch-mini.active { background: #22c55e; }
.toggle-color-orange.toggle-switch-mini.active { background: #f59e0b; }
.toggle-color-red.toggle-switch-mini.active { background: #dc2626; }
.toggle-switch-mini .toggle-label {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 6px;
  text-align: center;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255,255,255,0.4);
  z-index: 1;
  transition: color 0.3s;
  user-select: none;
}
.toggle-switch-mini.active .toggle-label { color: rgba(255,255,255,0.5); }
.toggle-switch-mini .toggle-label.active { color: #e5e5e5; }
.toggle-switch-mini.active .toggle-label.active { color: white; }
.toggle-switch-mini .toggle-slider-mini {
  position: absolute; width: 52px; height: 28px;
  background: var(--bg); border-radius: 14px;
  transition: left 0.3s cubic-bezier(0.4,0,0.2,1); left: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.toggle-switch-mini.active .toggle-slider-mini { left: calc(100% - 54px); }

/* ═══════════════════════════════════════════════
   MODULE CONFIG
   ═══════════════════════════════════════════════ */
.module-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px;
}
.module-card {
  background: rgba(99,102,241,0.03);
  border: 1px solid rgba(99,102,241,0.08);
  border-radius: var(--radius); padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
  transition: border-color 0.15s;
}
.module-card:hover { border-color: var(--border-hover); }
.module-card.enabled { border-color: rgba(99,102,241,0.25); }
.module-card-icon { font-size: 18px; flex-shrink: 0; }
.module-card-info { flex: 1; min-width: 0; }
.module-card-name { font-size: 12.5px; font-weight: 600; color: var(--text-primary); }
.module-card-desc { font-size: 10.5px; color: var(--text-tertiary); line-height: 1.3; }
.module-card-core {
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--accent); font-weight: 700; margin-top: 3px;
}

/* ═══════════════════════════════════════════════
   ACTIVITY LOG
   ═══════════════════════════════════════════════ */
.activity-list { display: flex; flex-direction: column; gap: 8px; }
.activity-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s;
}
.activity-item:hover { border-color: var(--border-hover); }
.activity-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0; background: var(--surface);
}
.activity-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gradient); flex-shrink: 0; margin-top: .35rem;
}
.activity-content { flex: 1; min-width: 0; }
.activity-text { font-size: 13px; color: var(--text-primary); line-height: 1.5; }
.activity-time { font-size: .75rem; color: var(--text-secondary); white-space: nowrap; }
.activity-meta { font-size: 11px; color: var(--text-tertiary); margin-top: 4px; }

/* Action list (dashboard-v3 compat) */
.action-list { display: flex; flex-direction: column; gap: .6rem; }
.action-item {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .75rem; border-radius: var(--radius);
  background: rgba(99,102,241,0.02);
  border: 1px solid transparent; transition: border-color var(--trans);
}
.action-item:hover { border-color: var(--border); }
.action-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: .35rem;
}
.action-dot.critical, .action-dot-red { background: var(--red); box-shadow: 0 0 6px rgba(239,68,68,0.4); }
.action-dot.warning, .action-dot-yellow { background: var(--yellow); box-shadow: 0 0 6px rgba(251,191,36,0.4); }
.action-dot.info, .action-dot-indigo { background: var(--accent); box-shadow: 0 0 6px var(--accent-glow); }
.action-info { display: flex; flex-direction: column; gap: .2rem; flex: 1; min-width: 0; }
.action-title {
  font-size: 13px; font-weight: 600; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.action-hint { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; line-height: 1.3; }
.action-badge {
  font-size: 11px; color: var(--text-tertiary); flex-shrink: 0; white-space: nowrap;
  padding: .2rem .6rem; border-radius: var(--radius-sm);
  background: rgba(99,102,241,0.06); border: 1px solid var(--border); margin-top: .15rem;
}

/* ═══════════════════════════════════════════════
   ARTISTS LIST
   ═══════════════════════════════════════════════ */
.artist-list-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  cursor: pointer; transition: all 0.15s; margin-bottom: 8px;
}
.artist-list-item:hover { border-color: var(--border-hover); background: var(--surface-hover); }
.artist-list-item.inactive { opacity: 0.5; }
.artist-list-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0;
  overflow: hidden;
}
.artist-list-avatar.has-image {
  background: #000;
}
.artist-list-avatar img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 24%;
  display: block; transform: scale(1.08); transform-origin: center;
  background: #000;
}
.artist-list-info { flex: 1; min-width: 0; }
.artist-list-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.artist-list-roles { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.artist-list-status {
  font-size: 11px; font-weight: 600; padding: 3px 10px;
  border-radius: 20px; flex-shrink: 0;
}
.artist-list-status.active { background: var(--green-bg); color: var(--green); }
.artist-list-status.paused { background: var(--yellow-bg); color: var(--yellow); }
.artist-list-status.disabled { background: rgba(99,102,241,0.06); color: var(--text-tertiary); }

/* ═══════════════════════════════════════════════
   DANGER CONFIRM MODAL
   ═══════════════════════════════════════════════ */
.danger-modal-overlay {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.danger-modal-overlay.open { opacity: 1; pointer-events: all; }
.danger-modal {
  width: 92%; max-width: 500px;
  background: var(--bg-elevated);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}
.danger-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 0;
}
.danger-modal-title { font-size: 16px; font-weight: 700; color: #F87171; }
.danger-modal-body { padding: 16px 24px 20px; }
.danger-modal-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 16px 24px; border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════
   EMPTY STATE / LOADING
   ═══════════════════════════════════════════════ */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-tertiary); }
.empty-state-icon { font-size: 36px; margin-bottom: 16px; opacity: 0.5; }
.empty-state-title { font-size: 16px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state-text { font-size: 13px; color: var(--text-tertiary); max-width: 400px; margin: 0 auto; }

.spinner {
  display: flex; align-items: center; justify-content: center;
  padding: 40px; color: var(--text-tertiary); font-size: 13px; gap: 10px;
}
.spinner::before {
  content: ''; width: 20px; height: 20px;
  border: 2px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════
   SECTION HEADER / TAB BAR
   ═══════════════════════════════════════════════ */
.section-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px;
}
.section-title { font-size: 15px; font-weight: 700; letter-spacing: -0.3px; }
.section-subtitle { font-size: 12px; color: var(--text-tertiary); }

.tab-bar {
  display: flex; gap: 4px; margin-bottom: 20px;
  border-bottom: 1px solid var(--border); padding-bottom: 0;
}
.tab-btn {
  padding: 8px 16px; font-size: 13px; font-weight: 500;
  color: var(--text-tertiary); background: none; border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer; font-family: inherit; transition: all 0.15s; margin-bottom: -1px;
}
.tab-btn:hover { color: var(--text-secondary); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ═══════════════════════════════════════════════
   SCROLLBAR (Indigo-tinted)
   ═══════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(79,70,229,0.28); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(67,56,202,0.42); }

/* ═══════════════════════════════════════════════
   DASHBOARD WIDGETS
   ═══════════════════════════════════════════════ */
.dashboard-widgets {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.widget {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  backdrop-filter: blur(8px);
}
.widget-full { grid-column: 1 / -1; }
.widget-header {
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  font-size: 13px; font-weight: 700; color: var(--text-primary);
  display: flex; align-items: center; gap: 8px;
}
.widget-body { padding: 0 18px; }
.widget-footer { padding: 10px 18px; border-top: 1px solid rgba(99,102,241,0.05); }
.widget-footer a {
  font-size: 12px; color: var(--accent); text-decoration: none; font-weight: 600;
}
.widget-footer a:hover { text-decoration: underline; }
.widget-empty { text-align: center; padding: 24px; color: var(--text-tertiary); font-size: 12px; }

/* Event Mini Cards */
.event-mini {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid rgba(99,102,241,0.05);
  cursor: pointer; transition: background 0.1s;
}
.event-mini:last-child { border-bottom: none; }
.event-mini:hover { background: var(--surface-hover); margin: 0 -18px; padding: 12px 18px; border-radius: var(--radius); }
.event-mini-date { flex-shrink: 0; width: 44px; text-align: center; }
.event-mini-day { font-size: 18px; font-weight: 700; color: var(--text-primary); line-height: 1; }
.event-mini-month { font-size: 9px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-tertiary); }
.event-mini-info { flex: 1; min-width: 0; }
.event-mini-title { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.event-mini-meta { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; }
.artist-tag {
  display: inline-block; font-size: 10px; padding: 1px 7px; border-radius: 8px;
  background: var(--violet-bg); color: var(--accent);
  border: 1px solid rgba(79,70,229,0.28); margin-top: 4px; margin-right: 4px;
}

/* Quick Stats */
.quick-stat {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid rgba(99,102,241,0.05);
}
.quick-stat:last-child { border-bottom: none; }
.quick-stat-label { font-size: 12px; color: var(--text-tertiary); }
.quick-stat-value { font-size: 13px; font-weight: 600; color: var(--text-primary); }

/* Activity Mini */
.activity-mini {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid rgba(99,102,241,0.05);
}
.activity-mini:last-child { border-bottom: none; }
.activity-mini-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.activity-mini-text { font-size: 12px; color: var(--text-secondary); flex: 1; line-height: 1.4; }
.activity-mini-time { font-size: 10px; color: var(--text-tertiary); flex-shrink: 0; white-space: nowrap; }

/* Main Grid (liquid-v2 compat) */
.main-grid { display: grid; grid-template-columns: 1fr 320px; gap: 1.25rem; }

/* Chart elements (liquid-v2 compat) */
.chart-card { display: flex; flex-direction: column; gap: 1rem; }
.chart-placeholder {
  height: 200px; background: rgba(99,102,241,0.03); border-radius: var(--radius);
  border: 1px solid rgba(99,102,241,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: .85rem;
  position: relative; overflow: hidden;
}
.chart-placeholder::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(99,102,241,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.chart-bars {
  display: flex; align-items: flex-end; gap: 6px; padding: 1rem;
  position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
}
.bar {
  flex: 1; border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, rgba(99,102,241,0.5), rgba(59,130,246,0.3));
  min-height: 8px;
}
.chart-label { z-index: 1; font-size: .75rem; letter-spacing: .04em; }

/* ═══════════════════════════════════════════════
   PAGE LOAD ANIMATIONS (S1 — Soft Slide)
   Referenz: static/mockups/animations_demo.html
   ═══════════════════════════════════════════════ */
@keyframes s1-slide {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes s1-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes s1-scaleup {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes s1-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sidebar { animation: s1-slide .22s cubic-bezier(.25,.46,.45,.94) both; }
.topbar { opacity: 0; animation: s1-fade .22s ease-out .03s forwards; }
.content { opacity: 0; animation: s1-fade .2s ease-out .04s forwards; }

/* KPI Block + Cards */
.kpi-section { opacity: 0; animation: s1-scaleup .24s ease-out .05s forwards; }
.kpi-section .stat-card { opacity: 0; animation: s1-rise .2s ease-out forwards; }
.kpi-section .stat-card:nth-child(1) { animation-delay: .06s; }
.kpi-section .stat-card:nth-child(2) { animation-delay: .08s; }
.kpi-section .stat-card:nth-child(3) { animation-delay: .1s; }
.kpi-section .stat-card:nth-child(4) { animation-delay: .12s; }
.kpi-section .stat-card:nth-child(5) { animation-delay: .14s; }

/* Table flow (like demo: toolbar -> table) */
.table-header-bar,
.table-toolbar,
.tab-bar,
.cal-nav { opacity: 0; animation: s1-fade .18s ease-out .12s forwards; }
.table-wrapper,
.pagination { opacity: 0; animation: s1-rise .22s ease-out .14s forwards; }

/* Other shared blocks to keep panel-wide animation feel */
.dashboard-widgets,
.widget,
.settings-zone,
.module-card,
.timeline-item,
.cal-grid,
.card,
.artist-list-item,
.hub-card,
.hubs-grid,
#events-content > .empty-state,
#artistsList .empty-state,
#masterDataList .empty-state,
#activityList .empty-state,
#hubList .empty-state {
  opacity: 0;
  animation: s1-rise .22s ease-out .12s forwards;
}

.events-view-toolbar .filter-tabs { margin-bottom: 0; }

/* Legacy fallback (ohne JS-Hooks) */
.activity-list .activity-item:not(.bb-enter-item),
.timeline .timeline-item:not(.bb-enter-item),
#artistsList .artist-list-item:not(.bb-enter-item),
#masterDataList .artist-list-item:not(.bb-enter-item),
.hubs-grid .hub-card:not(.bb-enter-item) {
  opacity: 0;
  animation: s1-rise .2s ease-out forwards;
}

.activity-list .activity-item:not(.bb-enter-item):nth-child(1),
.timeline .timeline-item:not(.bb-enter-item):nth-child(1),
#artistsList .artist-list-item:not(.bb-enter-item):nth-child(1),
#masterDataList .artist-list-item:not(.bb-enter-item):nth-child(1),
.hubs-grid .hub-card:not(.bb-enter-item):nth-child(1) { animation-delay: .46s; }

.activity-list .activity-item:not(.bb-enter-item):nth-child(2),
.timeline .timeline-item:not(.bb-enter-item):nth-child(2),
#artistsList .artist-list-item:not(.bb-enter-item):nth-child(2),
#masterDataList .artist-list-item:not(.bb-enter-item):nth-child(2),
.hubs-grid .hub-card:not(.bb-enter-item):nth-child(2) { animation-delay: .50s; }

.activity-list .activity-item:not(.bb-enter-item):nth-child(3),
.timeline .timeline-item:not(.bb-enter-item):nth-child(3),
#artistsList .artist-list-item:not(.bb-enter-item):nth-child(3),
#masterDataList .artist-list-item:not(.bb-enter-item):nth-child(3),
.hubs-grid .hub-card:not(.bb-enter-item):nth-child(3) { animation-delay: .54s; }

.activity-list .activity-item:not(.bb-enter-item):nth-child(4),
.timeline .timeline-item:not(.bb-enter-item):nth-child(4),
#artistsList .artist-list-item:not(.bb-enter-item):nth-child(4),
#masterDataList .artist-list-item:not(.bb-enter-item):nth-child(4),
.hubs-grid .hub-card:not(.bb-enter-item):nth-child(4) { animation-delay: .58s; }

.activity-list .activity-item:not(.bb-enter-item):nth-child(5),
.timeline .timeline-item:not(.bb-enter-item):nth-child(5),
#artistsList .artist-list-item:not(.bb-enter-item):nth-child(5),
#masterDataList .artist-list-item:not(.bb-enter-item):nth-child(5),
.hubs-grid .hub-card:not(.bb-enter-item):nth-child(5) { animation-delay: .62s; }

.activity-list .activity-item:not(.bb-enter-item):nth-child(6),
.timeline .timeline-item:not(.bb-enter-item):nth-child(6),
#artistsList .artist-list-item:not(.bb-enter-item):nth-child(6),
#masterDataList .artist-list-item:not(.bb-enter-item):nth-child(6),
.hubs-grid .hub-card:not(.bb-enter-item):nth-child(6) { animation-delay: .66s; }

/* Generische, skalierbare Enter-Reveal-Logik */
.activity-list .bb-enter-item,
.timeline .bb-enter-item,
#activityList .bb-enter-item,
#artistsList .bb-enter-item,
#masterDataList .bb-enter-item,
.hubs-grid .bb-enter-item,
#hubList .bb-enter-item {
  opacity: 0;
  transform: translateY(10px);
}

.bb-enter-ready .bb-enter-item {
  --bb-enter-base-delay: .46s;
  --bb-enter-step-delay: .04s;
  --bb-enter-max-delay: 1.06s;
  animation: s1-rise .2s ease-out forwards;
  animation-delay: min(
    calc(var(--bb-enter-base-delay) + (var(--enter-index, 0) * var(--bb-enter-step-delay))),
    var(--bb-enter-max-delay)
  );
}

.login-container { animation: s1-rise .24s ease-out both; }

@media (prefers-reduced-motion: reduce) {
  .sidebar,
  .topbar,
  .content,
  .kpi-section,
  .kpi-section .stat-card,
  .table-header-bar,
  .table-toolbar,
  .table-wrapper,
  .pagination,
  .dashboard-widgets,
  .widget,
  .settings-zone,
  .module-card,
  .activity-item,
  .timeline-item,
  .cal-grid,
  .card,
  .artist-list-item,
  .hub-card,
  .hubs-grid,
  .tab-bar,
  .cal-nav,
  #events-content > .empty-state,
  #artistsList .empty-state,
  #masterDataList .empty-state,
  #activityList .empty-state,
  #hubList .empty-state,
  .bb-enter-item,
  .login-container {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ═══════════════════════════════════════════════
   EVENTS TIMELINE
   ═══════════════════════════════════════════════ */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: ''; position: absolute; left: 16px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-today {
  position: relative; padding: 8px 0 8px 20px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--accent);
}
.timeline-today::before {
  content: ''; position: absolute; left: -30px; top: 50%; transform: translateY(-50%);
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent-glow);
}
.timeline-item {
  position: relative; margin-bottom: 16px;
  display: flex; gap: 16px; align-items: flex-start;
}
.timeline-item::before {
  content: ''; position: absolute; left: -30px; top: 18px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--border);
}
.timeline-item.past { opacity: 0.5; }
.timeline-date-day { font-size: 20px; font-weight: 700; color: var(--text-primary); line-height: 1; }
.timeline-date-month {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-tertiary); margin-top: 2px;
}
.timeline-card {
  flex: 1; background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 14px 18px;
  cursor: pointer; transition: all 0.15s;
}
.timeline-card:hover { border-color: var(--border-hover); box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.timeline-card-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px;
}
.timeline-card-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.timeline-card-meta { font-size: 12px; color: var(--text-tertiary); margin-top: 4px; }
.timeline-card-artists { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

/* ═══════════════════════════════════════════════
   EVENTS CALENDAR
   ═══════════════════════════════════════════════ */
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.cal-header {
  background: var(--bg-elevated); padding: 8px; text-align: center;
  font-size: 11px; font-weight: 600; color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.cal-day {
  background: var(--bg); padding: 8px; min-height: 70px;
  cursor: default; transition: background 0.15s;
}
.cal-day.has-event { cursor: pointer; }
.cal-day.has-event:hover { background: var(--bg-elevated); }
.cal-day.today { background: rgba(99,102,241,0.05); }
.cal-day.other-month { opacity: 0.3; }
.cal-day-num { font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; }
.cal-day.today .cal-day-num { color: var(--accent); }
.cal-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); display: inline-block; margin: 1px;
}
.cal-nav {
  display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 16px;
}
.cal-nav-btn {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-primary); border-radius: var(--radius);
  padding: 6px 12px; cursor: pointer; font-size: 14px; transition: all 0.15s;
}
.cal-nav-btn:hover { border-color: var(--accent); color: var(--accent); }
.cal-nav-title {
  font-size: 16px; font-weight: 600; color: var(--text-primary);
  min-width: 160px; text-align: center;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%) !important;
    width: var(--sidebar-width) !important;
    z-index: 300; box-shadow: 8px 0 30px rgba(0,0,0,0.5);
  }
  .sidebar.mobile-open { transform: translateX(0) !important; }
  .main { margin-left: 0 !important; }
  .mobile-menu-btn { display: flex; }
  .search-box, .search { min-width: 160px; }
  .topbar { padding: 0 16px; }
  .content { padding: 20px 16px 40px; }
  .modal-info-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .main-grid { grid-template-columns: 1fr; }
  .dashboard-widgets { grid-template-columns: 1fr; }
  .widget-full { grid-column: 1; }
}

@media (max-width: 768px) {
  .stats-grid, .stats-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-number, .stat-value { font-size: 24px; }
  .stat-card { padding: 14px 16px; }
  .modal { width: 100%; max-width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
  .modal-body { padding: 20px 16px; }
  .modal-footer { padding: 12px 16px; flex-wrap: wrap; }
  .modal-info-grid { grid-template-columns: 1fr; }
  .artists-grid { grid-template-columns: 1fr; }
  .timeline-track { overflow-x: auto; padding-bottom: 8px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .page-header { flex-direction: column; align-items: flex-start; }
  .search, .search-box { width: 160px; }
}

@media (max-width: 500px) {
  /* Mobile: KPI-Karten wie in "Anfragen" immer in 2er-Reihen */
  .stats-grid, .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .stat-card {
    padding: 12px 14px;
  }
  .stat-number, .stat-value {
    font-size: 22px;
  }

  .table-toolbar { flex-direction: column; align-items: stretch; }
  .table-toolbar-left { flex-wrap: wrap; }
  .modal-footer { gap: 6px; }
  .modal-footer .btn-ghost, .modal-footer .btn-primary, .modal-footer .btn-danger {
    font-size: 11px; padding: 0 12px; height: 32px;
  }
}
