/* Grandkasten v5.0.0 - Premium Overhaul Styles */
:root {
  /* Core Tokens - Apple iOS Premium Dark Mode */
  --bg-main: #000000;
  --bg-surface: rgba(28, 28, 30, 0.65);
  --bg-card: rgba(44, 44, 46, 0.55);
  --bg-input: rgba(58, 58, 60, 0.5);
  
  --border-main: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(255, 255, 255, 0.15);
  
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --text-muted: #636366;
  
  --accent: #0a84ff;
  --accent-secondary: #30d158;
  --accent-glow: rgba(10, 132, 255, 0.3);
  
  --success: #32d74b;
  --warning: #ffd60a;
  --danger: #ff453a;
  --info: #0a84ff;
  
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-md: 0 12px 32px rgba(0,0,0,0.3);
  --shadow-lg: 0 24px 48px rgba(0,0,0,0.4);
  
  --font-main: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
  
  --glass-blur: blur(24px);
  --transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  
  --font-scale: 1;
}

/* --- THEMES --- */

/* Royal Sapphire (Hyper Blue - Das geile blaue Theme!) */
.theme-hyper-blue {
  --bg-main: #030816;
  --bg-surface: rgba(13, 27, 62, 0.8);
  --bg-card: rgba(22, 46, 102, 0.5);
  --bg-input: rgba(6, 15, 38, 0.7);
  --accent: #38bdf8;
  --accent-secondary: #2563eb;
  --accent-glow: rgba(56, 189, 248, 0.4);
  --border-main: rgba(56, 189, 248, 0.25);
  --border-glow: rgba(56, 189, 248, 0.5);
  --text-secondary: #93c5fd;
  --shadow-md: 0 8px 24px rgba(29, 78, 216, 0.35);
}

/* Midnight Gold (VIP Executive) */
.theme-midnight-gold {
  --bg-main: #08080a;
  --bg-surface: rgba(22, 20, 16, 0.85);
  --bg-card: rgba(40, 34, 22, 0.55);
  --bg-input: rgba(12, 11, 8, 0.75);
  --accent: #fbbf24;
  --accent-secondary: #d97706;
  --accent-glow: rgba(251, 191, 36, 0.35);
  --border-main: rgba(251, 191, 36, 0.25);
  --border-glow: rgba(251, 191, 36, 0.45);
  --text-secondary: #fde68a;
  --shadow-md: 0 8px 24px rgba(217, 119, 6, 0.25);
}

/* Miami Sunset (Synthwave) */
.theme-miami-vice {
  --bg-main: #0d051e;
  --bg-surface: rgba(36, 16, 74, 0.8);
  --bg-card: rgba(67, 28, 126, 0.5);
  --bg-input: rgba(18, 7, 42, 0.7);
  --accent: #f43f5e;
  --accent-secondary: #8b5cf6;
  --accent-glow: rgba(244, 63, 94, 0.35);
  --border-main: rgba(244, 63, 94, 0.25);
  --border-glow: rgba(244, 63, 94, 0.45);
  --text-secondary: #fbcfe8;
  --shadow-md: 0 8px 24px rgba(244, 63, 94, 0.3);
}

/* Arctic Frost (Ice Cyber) */
.theme-arctic-frost {
  --bg-main: #05131a;
  --bg-surface: rgba(14, 46, 60, 0.8);
  --bg-card: rgba(21, 74, 98, 0.5);
  --bg-input: rgba(6, 22, 32, 0.7);
  --accent: #22d3ee;
  --accent-secondary: #0891b2;
  --accent-glow: rgba(34, 211, 238, 0.35);
  --border-main: rgba(34, 211, 238, 0.25);
  --border-glow: rgba(34, 211, 238, 0.45);
  --text-secondary: #cffafe;
  --shadow-md: 0 8px 24px rgba(8, 145, 178, 0.3);
}

/* Ruby Deluxe (Blood Syndicate) */
.theme-blood-syndicate {
  --bg-main: #120407;
  --bg-surface: rgba(45, 12, 20, 0.8);
  --bg-card: rgba(82, 20, 36, 0.5);
  --bg-input: rgba(22, 5, 10, 0.7);
  --accent: #fb7185;
  --accent-secondary: #e11d48;
  --accent-glow: rgba(251, 113, 133, 0.35);
  --border-main: rgba(251, 113, 133, 0.25);
  --border-glow: rgba(251, 113, 133, 0.45);
  --text-secondary: #fecdd3;
  --shadow-md: 0 8px 24px rgba(225, 29, 72, 0.3);
}

/* Quantum Amethyst */
.theme-amethyst-matrix {
  --bg-main: #0c0718;
  --bg-surface: rgba(34, 18, 66, 0.8);
  --bg-card: rgba(61, 33, 117, 0.5);
  --bg-input: rgba(16, 9, 32, 0.7);
  --accent: #c084fc;
  --accent-secondary: #9333ea;
  --accent-glow: rgba(192, 132, 252, 0.35);
  --border-main: rgba(192, 132, 252, 0.25);
  --border-glow: rgba(192, 132, 252, 0.45);
  --text-secondary: #e9d5ff;
  --shadow-md: 0 8px 24px rgba(147, 51, 234, 0.3);
}

/* Emerald VIP */
.theme-emerald-vip {
  --bg-main: #041611;
  --bg-surface: rgba(12, 53, 40, 0.8);
  --bg-card: rgba(21, 94, 71, 0.5);
  --bg-input: rgba(5, 26, 19, 0.7);
  --accent: #34d399;
  --accent-secondary: #059669;
  --accent-glow: rgba(52, 211, 153, 0.35);
  --border-main: rgba(52, 211, 153, 0.25);
  --border-glow: rgba(52, 211, 153, 0.45);
  --text-secondary: #a7f3d0;
  --shadow-md: 0 8px 24px rgba(5, 150, 105, 0.3);
}

/* Deep Space */
.theme-deep-space {
  --bg-main: #020408;
  --bg-surface: rgba(10, 15, 28, 0.85);
  --bg-card: rgba(18, 26, 48, 0.6);
  --accent: #a78bfa;
  --accent-secondary: #7c3aed;
  --accent-glow: rgba(167, 139, 250, 0.35);
  --border-main: rgba(167, 139, 250, 0.2);
  --border-glow: rgba(167, 139, 250, 0.4);
}

/* Mission Control */
.theme-mission-control {
  --bg-main: #0f172a;
  --bg-surface: rgba(30, 41, 59, 0.85);
  --bg-card: rgba(51, 65, 85, 0.6);
  --accent: #fba919;
  --accent-secondary: #d97706;
  --accent-glow: rgba(251, 169, 25, 0.35);
  --border-main: rgba(251, 169, 25, 0.22);
  --border-glow: rgba(251, 169, 25, 0.4);
}

/* Cyber Neon */
.theme-cyber-neon {
  --bg-main: #030306;
  --bg-surface: rgba(16, 12, 24, 0.9);
  --bg-card: rgba(32, 20, 48, 0.7);
  --accent: #ff00ff;
  --accent-secondary: #00ffff;
  --accent-glow: rgba(255, 0, 255, 0.45);
  --border-main: rgba(255, 0, 255, 0.3);
  --border-glow: rgba(0, 255, 255, 0.5);
  --text-secondary: #67e8f9;
}

/* Forest */
.theme-forest {
  --bg-main: #061a14;
  --bg-surface: rgba(6, 78, 59, 0.75);
  --bg-card: rgba(4, 120, 87, 0.5);
  --accent: #10b981;
  --accent-secondary: #059669;
  --accent-glow: rgba(16, 185, 129, 0.35);
  --border-main: rgba(16, 185, 129, 0.22);
  --border-glow: rgba(16, 185, 129, 0.4);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
}

input, textarea, select, [contenteditable] {
  -webkit-user-select: auto;
  user-select: auto;
}

html, body {
  background: #030816;
  font-family: var(--font-main);
  color: var(--text-primary);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  user-select: none;
}

#app {
  width: 100vw;
  height: 100vh;
  background: var(--bg-main);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: opacity 0.3s ease;
  border-radius: 0;
  overflow: hidden;
  border: none;
}


/* --- COMPONENTS --- */

/* Premium Buttons */
button, .btn {
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  outline: none;
  background: transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #000;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
  filter: brightness(1.1);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: var(--radius-md);
}

.btn-secondary:hover {
  background: var(--border-main);
  border-color: var(--accent);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
  padding: 10px 20px;
  border-radius: var(--radius-md);
}

.btn-danger:hover {
  background: var(--danger);
  color: white;
}

.win-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 16px;
}

.win-btn:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.win-btn.close:hover {
  background: var(--danger);
  color: white;
}

/* Inputs, Selects, Textareas */
input[type="text"], input[type="password"], input[type="number"], select, textarea, .small-input {
  background: var(--bg-input, rgba(255,255,255,0.05));
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 15px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  width: 100%;
}
input[type="text"]:focus, input[type="password"]:focus, input[type="number"]:focus, select:focus, textarea:focus, .small-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  outline: none;
  background: var(--bg-card);
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}
select option {
  background-color: var(--bg-main, #0d1117);
  color: #fff;
}

::placeholder {
  color: var(--text-muted);
}

/* Custom Checkbox (Toggle Switch) */
.toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 8px 12px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-main);
  transition: var(--transition);
}

.toggle-wrapper:hover {
  border-color: var(--accent);
}

.premium-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.premium-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255,255,255,0.1);
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--accent);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* --- LAYOUT --- */

.titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-main);
  z-index: 100;
  -webkit-app-region: drag;
}

.title-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 12px;
}

.title-right {
  display: flex;
  align-items: center;
  gap: 8px;
  -webkit-app-region: no-drag;
}

.clock {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(0,0,0,0.3);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin: 0 10px;
}

.tabs {
  display: flex;
  gap: 4px;
  padding: 6px 14px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--border-main);
}

.tabs button {
  padding: 5px 12px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
}

.tabs-spacer { flex: 1; }
.btn-update-tab { padding: 4px 12px; font-size: 11px; }

.tabs button.active {
  background: var(--bg-card);
  color: var(--accent);
  border: 1px solid var(--accent-glow);
  box-shadow: 0 0 10px var(--accent-glow);
}

.main-app {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.content {
  flex: 1;
  padding: 14px 18px;
  overflow-y: auto;
  min-height: 0;
  z-index: 1;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-main);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* --- LOGIN SCREEN --- */
.login-screen {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #1a1c2e 0%, #0a0b14 100%);
  position: relative;
}

.login-box {
  width: 400px;
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  z-index: 10;
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-header .logo {
  font-size: 56px;
  margin-bottom: 16px;
  display: block;
}

.login-header h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--accent);
  margin-bottom: 8px;
}

.login-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(0,0,0,0.4);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.auth-tabs button {
  padding: 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.auth-tabs button.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.auth-error {
  background: rgba(239, 68, 68, 0.15);
  border-left: 4px solid var(--danger);
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 13px;
  color: #ffa1a1;
}

/* --- CARDS & GRIDS --- */
.offense-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.offense-card {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  padding: 10px 12px;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  will-change: transform;
}

.offense-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  background: rgba(255,255,255,0.05);
}

.offense-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  background: rgba(0, 210, 255, 0.05);
}

.offense-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.offense-id {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
}

.offense-fine {
  font-weight: 800;
  color: var(--success);
}

.offense-name {
  font-weight: 600;
  line-height: 1.3;
  font-size: 12px;
}

/* Stars */
.offense-stars {
  display: flex;
  gap: 4px;
}

.star {
  font-size: 13px;
  color: rgba(255,255,255,0.1);
  transition: var(--transition);
  display: inline-block;
}

.star.active {
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

.star.clickable {
  cursor: pointer;
  animation: star-pulse 2s infinite ease-in-out;
  color: rgba(251, 191, 36, 0.4);
}

.star.clickable:hover {
  transform: scale(1.3) !important;
  color: #fbbf24;
  animation: none;
}

@keyframes star-pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
}

/* --- CALCULATOR TOOLS --- */
.calc-inputs {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 12px;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.5fr 1.2fr;
  gap: 10px;
}

.input-group {
  display: flex;
  flex-direction: column;
}

.input-group label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 800;
  display: block;
  letter-spacing: 0.5px;
}

/* Result Panel */
.result-panel {
  background: linear-gradient(135deg, var(--bg-surface), rgba(0,0,0,0.5));
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--accent-glow);
  border-radius: var(--radius-xl);
  padding: 16px 20px;
  margin-top: 12px;
  box-shadow: var(--shadow-lg);
}

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

.result-fine {
  font-size: 28px;
  font-weight: 900;
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
}

.result-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.akte-box {
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}

.akte-box:hover {
  border-color: var(--accent);
  background: rgba(0,0,0,0.7);
}

.copy-hint {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* --- SETTINGS --- */
.settings-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-modal {
  width: 500px;
  max-width: 90vw;
  max-height: 80vh;
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 24px;
  overflow-y: auto;
}

.settings-section {
  margin-bottom: 32px;
}

.settings-section h2 {
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-main);
  padding-bottom: 10px;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-height: 380px;
  overflow-y: auto;
  padding: 4px;
  margin: -4px;
}

.theme-card {
  background: transparent;
  border: 2px solid transparent;
  padding: 10px;
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border-main);
}

.theme-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
}

.theme-card.active {
  border: 1px solid var(--accent);
  background: rgba(0, 210, 255, 0.05);
}

.theme-preview {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.theme-card:hover .theme-preview {
  transform: scale(1.1);
}

.theme-card span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  display: block;
}

/* --- SPECIAL TOOLS (New v5.0) --- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}

.tool-card:hover {
  border-color: var(--accent);
  background: rgba(255,255,255,0.05);
}

.tool-icon {
  font-size: 40px;
  margin-bottom: 16px;
  display: block;
}

.tool-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.tool-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Restricted Zones (Sperrzonen) */
.zone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.zone-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  padding: 16px;
  border-radius: var(--radius-md);
  text-align: left;
  transition: var(--transition);
}

.zone-btn:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
}

.zone-name { font-weight: 700; display: block; margin-bottom: 4px; }
.zone-time { font-size: 11px; color: var(--text-muted); display: block; }
.zone-hint { font-size: 9px; opacity: 0.5; margin-top: 4px; }

/* Event Calendar */
.event-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.cal-day {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  padding: 12px;
  min-height: 150px;
}

.cal-day.today {
  border-color: var(--accent);
  background: rgba(0, 210, 255, 0.05);
}

.day-name {
  font-weight: 800;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
  text-align: center;
}

.day-event {
  font-size: 11px;
  padding: 4px 6px;
  background: rgba(0,0,0,0.3);
  border-radius: 4px;
  margin-bottom: 4px;
  border-left: 2px solid var(--accent);
}

/* Profile Switcher */
.profile-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-main);
  backdrop-filter: var(--glass-blur);
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.profile-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  overflow: hidden;
}

.profile-details h4 { font-size: 14px; margin: 0; }
.profile-details p { font-size: 12px; color: var(--text-secondary); margin: 0; }

/* Admin Panel */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
}

.stat-card {
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-main);
  text-align: center;
}

.stat-value { font-size: 32px; font-weight: 900; color: var(--accent); }
.stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.content > div {
  animation: fadeIn 0.4s ease-out forwards;
}

[v-cloak] { display: none; }

/* --- LOGIN EXTRAS --- */
.login-header .credit {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-top: 6px;
}

.api-config-link {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.api-config-link:hover { color: var(--accent); }

.api-config-box {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.api-config-buttons {
  display: flex;
  gap: 8px;
}

/* --- TITLEBAR EXTRAS --- */
.logo-small { font-size: 18px; }

.admin-badge {
  font-size: 10px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #000;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

/* --- EVENT BANNER --- */
.event-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  z-index: 50;
}
.event-banner.tow_towed { background: rgba(16,185,129,0.15); border-bottom: 1px solid rgba(16,185,129,0.3); }
.event-banner.tow_flash { background: rgba(245,158,11,0.15); border-bottom: 1px solid rgba(245,158,11,0.3); }
.event-info { display: flex; align-items: center; gap: 8px; }
.event-icon { font-size: 16px; }
.event-timer { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); }

/* --- SMALL INPUT --- */
.small-input {
  padding: 10px 14px;
  font-size: 13px;
}

/* --- BUTTON SIZES --- */
button.small, .btn-secondary.small, .btn-danger.small {
  padding: 5px 12px;
  font-size: 11px;
}

/* --- CALCULATOR TAB --- */
.result-panel { margin-top: 0; margin-bottom: 20px; }

.result-actions {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-reset {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-main);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 12px;
  align-self: flex-end;
  transition: var(--transition);
}
.btn-reset:hover { color: var(--danger); border-color: var(--danger); }

.rights-section {
  margin-bottom: 20px;
}
.rights-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.rights-text {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 12px;
  line-height: 1.8;
  cursor: pointer;
  transition: var(--transition);
}
.rights-text:hover { border-color: var(--accent); }

.input-group.full-width { grid-column: 1 / -1; }

.official-warning {
  margin-top: 6px;
  font-size: 11px;
  color: var(--warning);
  font-weight: 600;
}

.info-box {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 16px;
}
.info-item {
  font-size: 12px;
  color: var(--warning);
  padding: 3px 0;
}

.search-input {
  width: 100%;
  margin-bottom: 20px;
  padding-left: 40px !important;
}

/* Offense Catalog */
.offense-catalog { display: flex; flex-direction: column; gap: 28px; }

.cat-header {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 800;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-main);
}

.star.mandatory { color: #ef4444; }
.star.voluntary { color: rgba(255,255,255,0.15); }
.star.voluntary.active { color: #fbbf24; }
.star.voluntary.silver { color: rgba(255,255,255,0.3); }
.star.big { font-size: 28px; }

/* --- TRACKER TAB --- */
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  justify-content: center;
}

.duty-card { 
  border-color: var(--accent-glow); 
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px;
}
.duty-card .stat-value {
  font-size: 26px;
  white-space: nowrap;
}

.duty-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(30, 30, 32, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 24px;
  border-radius: var(--radius-xl);
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}
.duty-control.active {
  background: rgba(40, 167, 69, 0.05);
  border-color: rgba(40, 167, 69, 0.3);
  box-shadow: 0 0 20px rgba(40, 167, 69, 0.1);
}
.duty-info { display: flex; align-items: center; gap: 20px; }
.duty-status { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.duty-status i { transition: all 0.3s ease; }
.duty-status.active { color: var(--success); }
.duty-status.active i { animation: pulse-dot 1.5s infinite; color: var(--success); text-shadow: 0 0 8px var(--success); }
.duty-timer { font-family: var(--font-mono); font-size: 24px; font-weight: 700; color: var(--text-primary); letter-spacing: 1px; }
.duty-status.active + .duty-timer { color: var(--success); text-shadow: 0 0 10px rgba(40,167,69,0.3); }

@keyframes pulse-dot {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

.btn-duty {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 10px 24px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-duty:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
.btn-duty.active {
  background: rgba(16,185,129,0.15);
  border-color: var(--success);
  color: var(--success);
}
.btn-duty:hover { border-color: var(--accent); }

.week-filter {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.week-filter button {
  padding: 6px 14px;
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-main);
}
.week-filter button.active {
  color: var(--accent);
  border-color: var(--accent-glow);
  background: rgba(0,210,255,0.05);
}

.add-entry {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.add-entry select, .add-entry input { flex: 1; }
.add-entry button { flex-shrink: 0; width: 40px; padding: 0; font-size: 20px; }

.week-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.week-points { color: var(--accent); font-weight: 700; }

.history-list { display: flex; flex-direction: column; gap: 6px; }

.history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 13px;
}
.history-item:hover { border-color: var(--border-glow); }

.type-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.type-badge.arrest { background: rgba(239,68,68,0.15); color: var(--danger); }
.type-badge.fine { background: rgba(245,158,11,0.15); color: var(--warning); }
.type-badge.event { background: rgba(59,130,246,0.15); color: var(--info); }
.type-badge.tow_towed { background: rgba(16,185,129,0.15); color: var(--success); }
.type-badge.tow_flash { background: rgba(245,158,11,0.15); color: var(--warning); }

.person-name { flex: 1; font-weight: 500; }
.points { color: var(--success); font-weight: 700; font-family: var(--font-mono); }
.time { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }

.delete-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}
.delete-btn:hover { background: var(--danger); color: white; }

/* --- LAWS TAB --- */
.law-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.law-tabs button {
  padding: 6px 14px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-main);
}
.law-tabs button.active {
  color: var(--accent);
  border-color: var(--accent-glow);
  background: rgba(0,210,255,0.05);
}

.law-list { display: flex; flex-direction: column; gap: 12px; }

.law-card {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
}
.law-card:hover { border-color: var(--border-glow); }
.law-card-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
}
.law-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}
.law-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 6px;
}

/* --- TOOLS TAB --- */
.tool-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.tool-section h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}
.tool-section-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.tow-grid { display: flex; flex-direction: column; gap: 8px; }
.tow-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tow-row label { font-size: 11px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; display: block; margin-bottom: 4px; }
.tow-row input, .tow-row select { font-size: 12px; padding: 8px 10px; }

.tow-result-box {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  padding: 14px;
}
.tow-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 4px 0;
}
.tow-result-row .diff { color: var(--warning); font-weight: 700; font-family: var(--font-mono); }
.tow-result-row .fine { color: var(--success); font-weight: 700; font-family: var(--font-mono); }

.abschlepp-grid { display: flex; flex-direction: column; gap: 8px; }
.abschlepp-row { display: grid; grid-template-columns: 100px 1fr; align-items: center; gap: 10px; }
.abschlepp-row label { font-size: 11px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; }
.abschlepp-row input, .abschlepp-row select { font-size: 12px; padding: 8px 10px; }

.akte-box.small { font-size: 11px; padding: 10px 14px; }

.prison-result { margin-top: 12px; text-align: center; }
.prison-time strong { color: var(--accent); font-size: 22px; }
.prison-release { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* --- ADMIN TAB --- */
.admin-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding: 12px 24px;
  background: rgba(30, 30, 32, 0.4);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.admin-header-row h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  letter-spacing: 0.5px;
}
.admin-header-row h3 i {
  color: var(--accent);
}

.admin-tabs-mini {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px;
  border-radius: 12px;
  gap: 4px;
  flex: 1;
  justify-content: center;
  max-width: fit-content;
  margin: 0 auto;
}
.admin-tabs-mini button {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  transition: all 0.3s ease;
  cursor: pointer;
}
.admin-tabs-mini button:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}
.admin-tabs-mini button.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.admin-stats-grid { margin-bottom: 20px; }

.activity-graph-container {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}
.activity-graph-container h4 { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; }

.activity-graph {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
}
.graph-bar-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}
.graph-bar {
  width: 100%;
  background: linear-gradient(180deg, var(--accent), var(--accent-secondary));
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: height 0.5s ease;
}
.graph-label { font-size: 10px; color: var(--text-muted); }

.admin-content-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }

.top-users-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.top-users-panel h4 { font-size: 13px; font-weight: 700; margin-bottom: 12px; }

.top-user-list { display: flex; flex-direction: column; gap: 8px; }
.top-user-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius-sm);
}
.top-user-item .rank { font-weight: 900; color: var(--accent); font-size: 14px; width: 24px; }
.top-user-item .user-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.top-user-item .name { font-size: 13px; font-weight: 600; }
.top-user-item .org { font-size: 11px; color: var(--text-muted); }
.top-user-item .score { font-size: 12px; font-weight: 700; color: var(--success); font-family: var(--font-mono); }

.recent-activity-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  padding: 16px;
  grid-column: 1 / -1;
}
.recent-activity-panel h4 { font-size: 13px; font-weight: 700; margin-bottom: 12px; }

.activity-stream { display: flex; flex-direction: column; gap: 6px; }
.stream-item { display: flex; gap: 10px; font-size: 12px; padding: 6px 0; border-bottom: 1px solid var(--border-main); }
.stream-time { color: var(--text-muted); font-family: var(--font-mono); flex-shrink: 0; }

.admin-filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.admin-filter-row select, .admin-filter-row input[type="date"] {
  flex: 1;
  min-width: 120px;
  padding: 8px 12px;
  font-size: 12px;
}

.admin-entries { display: flex; flex-direction: column; gap: 8px; max-height: 400px; overflow-y: auto; }

.admin-entry {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.admin-entry-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.admin-entry-type { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; text-transform: uppercase; }
.admin-entry-type.arrest { background: rgba(239,68,68,0.15); color: var(--danger); }
.admin-entry-type.fine { background: rgba(245,158,11,0.15); color: var(--warning); }
.admin-entry-type.event { background: rgba(59,130,246,0.15); color: var(--info); }
.admin-entry-type.akte { background: rgba(139,92,246,0.15); color: #8b5cf6; }
.admin-entry-user { font-weight: 700; font-size: 13px; }
.admin-entry-org { font-size: 11px; color: var(--text-muted); }
.admin-entry-body { display: flex; gap: 12px; align-items: center; font-size: 12px; color: var(--text-secondary); }
.admin-entry-points { color: var(--success); font-weight: 700; font-family: var(--font-mono); margin-left: auto; }
.admin-entry-time { color: var(--text-muted); font-family: var(--font-mono); font-size: 11px; }

.loading { text-align: center; color: var(--text-muted); font-size: 13px; padding: 20px; }
.no-entries { text-align: center; color: var(--text-muted); font-size: 13px; padding: 30px; }

/* Admin Events */
.event-management-box {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.event-management-box h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.active-details { font-size: 13px; line-height: 1.8; color: var(--text-secondary); }

.org-comparison-list { display: flex; flex-direction: column; gap: 10px; }
.comp-info { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 4px; }
.comp-org { font-weight: 600; }
.comp-val { color: var(--accent); font-family: var(--font-mono); }
.comp-bar-bg { height: 6px; background: rgba(255,255,255,0.05); border-radius: 4px; overflow: hidden; }
.comp-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-secondary)); border-radius: 4px; transition: width 0.6s ease; }

.mini-logs { display: flex; flex-direction: column; gap: 4px; max-height: 200px; overflow-y: auto; }
.mini-log-item { font-size: 12px; padding: 6px 10px; background: rgba(0,0,0,0.2); border-radius: var(--radius-sm); }

.admin-event-list { max-height: 400px; overflow-y: auto; }
.admin-event-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-main);
  font-size: 12px;
}
.admin-event-left { color: var(--text-secondary); }
.admin-event-left strong { display: block; font-family: var(--font-mono); color: var(--text-primary); margin-bottom: 2px; }
.admin-event-right { text-align: right; }
.admin-event-actions { margin-top: 4px; }

/* Whitelist */
.whitelist-add-box {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}
.whitelist-add-box h4 { font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.whitelist-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; }
.whitelist-grid input, .whitelist-grid select { padding: 8px 12px; font-size: 12px; }

.whitelist-list-container { background: var(--bg-card); border: 1px solid var(--border-main); border-radius: var(--radius-lg); padding: 16px; }
.list-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.list-header h4 { font-size: 13px; font-weight: 700; }
.mini-search { width: 180px; padding: 6px 12px; font-size: 12px; }

.whitelist-table { display: flex; flex-direction: column; gap: 6px; max-height: 350px; overflow-y: auto; }
.whitelist-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius-sm);
}
.w-info { display: flex; align-items: center; gap: 8px; }
.w-info .name { font-size: 13px; font-weight: 600; }
.w-info .org { font-size: 11px; color: var(--text-muted); }
.w-meta { display: flex; align-items: center; gap: 8px; }
.added-by { font-size: 11px; color: var(--text-muted); }

/* User Management */
.user-management-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.user-management-header h4 { font-size: 13px; font-weight: 700; }
.user-table { display: flex; flex-direction: column; gap: 6px; max-height: 450px; overflow-y: auto; }
.user-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
}
.u-info { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.u-info strong { font-weight: 700; }
.u-info span { color: var(--text-muted); font-size: 12px; }
.u-actions { display: flex; align-items: center; gap: 8px; }
.u-actions select { padding: 5px 10px; font-size: 12px; width: auto; }

.badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  color: var(--text-muted);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: var(--glass-blur);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background-color 0.3s, border-color 0.3s, color 0.3s;
  z-index: 9999;
  white-space: pre-wrap;
  word-break: break-all;
  max-width: 80vw;
  max-height: 50vh;
  overflow-y: auto;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.success { border-color: rgba(16,185,129,0.4); color: var(--success); }
.toast.error { border-color: rgba(239,68,68,0.4); color: var(--danger); }
.toast.info { border-color: var(--accent-glow); color: var(--accent); }

/* --- MODALS --- */
.modal-register {
  width: 1000px;
  max-width: 95vw;
  height: 90vh;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.modal-calendar {
  width: 800px;
  max-width: 95vw;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(0,0,0,0.2);
  border-bottom: 1px solid var(--border-main);
}
.modal-header h2, .modal-header h3 { margin: 0; }
.modal-iframe-container {
  flex: 1;
  background: #fff;
}
.modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Title bar extras */
.title-by {
  font-size: calc(10px * var(--font-scale, 1));
  opacity: 0.5;
  font-weight: 400;
}

/* Rights copy hint */
.rights-copy-hint {
  font-size: calc(10px * var(--font-scale, 1));
  text-align: center;
  margin-top: 6px;
  opacity: 0.6;
}

/* Event calendar */
.event-cal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
}
.cal-day {
  background: rgba(255,255,255,0.03);
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.05);
  min-height: 100px;
}
.day-event {
  font-size: 10px;
  margin-bottom: 4px;
  padding: 4px;
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
  line-height: 1.5;
}
.day-event-time { opacity: 0.6; }
.day-event-loc { font-size: 9px; color: var(--text-muted); }

/* Rating modal */
.rating-modal {
  max-width: 400px;
  text-align: center;
  border-color: var(--accent-glow);
  box-shadow: 0 0 50px var(--accent-glow);
}
.rating-icon {
  font-size: 56px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px var(--accent));
  display: block;
}
.rating-title {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 12px;
}
.rating-desc {
  opacity: 0.7;
  font-size: 13px;
  margin-bottom: 30px;
  line-height: 1.6;
}
.rating-stars {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 35px;
}
.rating-star {
  font-size: 42px;
  cursor: pointer;
  transition: transform 0.2s, color 0.2s;
  color: rgba(255,255,255,0.1);
}
.rating-star.active {
  color: var(--accent);
  transform: scale(1.1);
}
.rating-star:hover { transform: scale(1.15); color: var(--accent); }
.rating-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.btn-rating {
  height: 50px;
  font-size: 16px;
  font-weight: 700;
  width: 100%;
}
.btn-skip { opacity: 0.6; }

/* Settings extras */
.settings-input-gap { margin-top: 15px; }
.settings-api-buttons {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}
.btn-update-check {
  width: 100%;
  height: 36px;
  font-size: 12px;
}

/* Auth form spacing */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Tools tab layout */
.tools-tab {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tools-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.tools-row-funk { grid-template-columns: 1fr 1.5fr; }

.timer-display {
  font-size: 32px;
  font-weight: 900;
  text-align: center;
  font-family: var(--font-mono);
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
  margin: 12px 0;
  letter-spacing: 2px;
}

.timer-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.timer-controls {
  display: flex;
  gap: 8px;
}
.timer-controls .btn-primary,
.timer-controls .btn-secondary {
  flex: 1;
}

.notes-textarea {
  margin-top: 10px;
  background: rgba(0,0,0,0.4);
  border-color: var(--border-main);
  resize: vertical;
}

.btn-full { width: 100%; margin-top: 8px; }

/* Admin Events extras */
.admin-events-view { display: flex; flex-direction: column; gap: 20px; }
.marathon-leaderboard {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.marathon-leaderboard h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.leader-logs-mini { margin-top: 20px; }
.leader-logs-mini h4 { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.admin-event-logs {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.admin-event-logs h4 { font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.admin-event-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.admin-event-controls select,
.admin-event-controls input[type="date"] {
  flex: 1;
  min-width: 100px;
  padding: 7px 10px;
  font-size: 12px;
}

.event-form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.event-form-row .input-group { flex: 1; }

.btn-mt { margin-top: 14px; }

/* Funkcodes list */
.funkcodes-list {
  max-height: 250px;
  overflow-y: auto;
  background: rgba(0,0,0,0.3);
  padding: 12px;
  border-radius: var(--radius-md);
}
.funkcode-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.funkcode-row strong { color: var(--accent); }
.funkcode-row span { opacity: 0.8; text-align: right; max-width: 60%; }

/* --- NEW BLITZER TAB (AUTO-OCR RADAR OVERHAUL) --- */
.btn-blitzer-tab {
  position: relative;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.15), rgba(58, 123, 213, 0.15)) !important;
  border: 1px solid rgba(0, 210, 255, 0.4) !important;
  font-weight: 600 !important;
}
.btn-blitzer-tab.active {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.35), rgba(58, 123, 213, 0.35)) !important;
  border-color: #00d2ff !important;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}
.hot-badge {
  background: #ff0055;
  color: #fff;
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 4px;
  margin-left: 4px;
  font-weight: bold;
  text-transform: uppercase;
  animation: pulse-hot 1.5s infinite;
}
@keyframes pulse-hot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

.blitzer-tab {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 24px;
}
.blitzer-tab > div {
  flex-shrink: 0;
}

/* Setup Card */
.blitzer-setup-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.blitzer-setup-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00d2ff, #3a7bd5, #6366f1);
}
.setup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.setup-title-box h3 {
  font-size: 1.05em;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.setup-title-box p {
  font-size: 0.8em;
  color: var(--text-secondary);
}
.setup-status-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78em;
  font-weight: 600;
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
  white-space: nowrap;
}
.setup-status-badge.ready {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.35);
}

.setup-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 14px;
  align-items: start;
}
@media (max-width: 768px) {
  .setup-grid { grid-template-columns: 1fr; }
}
.setup-grid .input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.setup-grid label {
  font-size: 0.8em;
  font-weight: 600;
  color: var(--text-secondary);
}
.blitzer-input {
  background: var(--bg-input);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  color: var(--text-primary);
  font-size: 0.9em;
  width: 100%;
  transition: var(--transition);
}
.blitzer-input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Zone Pill Buttons */
.zone-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.zone-pill-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 6px 12px;
  color: var(--text-secondary);
  font-size: 0.8em;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.zone-pill-btn:hover {
  background: rgba(0, 210, 255, 0.15);
  color: #fff;
  border-color: rgba(0, 210, 255, 0.35);
  transform: translateY(-1px);
}
.zone-pill-btn.active {
  background: linear-gradient(135deg, #00d2ff, #3a7bd5);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(0, 210, 255, 0.4);
}

/* Scan Section */
.blitzer-scan-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.btn-scan-massive {
  position: relative;
  background: linear-gradient(135deg, #00d2ff, #3a7bd5);
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  color: #ffffff;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 210, 255, 0.3);
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.btn-scan-massive:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.45);
  filter: brightness(1.08);
}
.btn-scan-massive:disabled {
  cursor: wait;
  background: linear-gradient(135deg, #334155, #475569);
  box-shadow: none;
}
.scan-btn-content {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
.scan-icon {
  font-size: 18px;
  background: rgba(255, 255, 255, 0.2);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.scan-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.scan-title {
  font-size: 0.95em;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.scan-subtitle {
  font-size: 0.75em;
  opacity: 0.88;
}
.hotkey-badge {
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78em;
  font-weight: 700;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  z-index: 2;
  white-space: nowrap;
}
.scan-laser-animation {
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: laser-sweep 1.4s infinite linear;
  z-index: 1;
}
@keyframes laser-sweep {
  0% { left: -100%; }
  100% { left: 100%; }
}

.blitzer-error-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: #fca5a5;
  font-size: 0.83em;
  line-height: 1.4;
}
.blitzer-error-banner .err-icon {
  font-size: 1.2em;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Data Card */
.blitzer-data-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.blitzer-data-card.hasData {
  border-color: rgba(0, 210, 255, 0.4);
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.12);
}
.data-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.data-card-header h4 {
  font-size: 0.95em;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.data-source-tag {
  font-size: 0.75em;
  background: rgba(255,255,255,0.06);
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--text-secondary);
}
.data-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.1fr 1fr;
  gap: 12px;
}
@media (max-width: 768px) {
  .data-grid { grid-template-columns: 1fr; }
}
.data-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.data-field label {
  font-size: 0.78em;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
}
.input-with-btn {
  display: flex;
  gap: 6px;
}
.plate-input {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 1px;
  color: #00ffff;
}
.btn-copy-mini {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 0 10px;
  font-size: 0.78em;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-copy-mini:hover {
  background: rgba(0, 210, 255, 0.2);
  border-color: var(--accent);
}
.speed-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.speed-input {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05em;
  color: #ff9f43;
  padding-right: 48px;
}
.speed-unit {
  position: absolute;
  right: 10px;
  color: var(--text-muted);
  font-size: 0.8em;
  pointer-events: none;
}

/* Scan Preview Box */
.scan-preview-box {
  margin-top: 12px;
  border-top: 1px dashed rgba(255,255,255,0.1);
  padding-top: 10px;
}
.preview-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78em;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 5px 10px;
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
  transition: var(--transition);
}
.preview-toggle:hover { color: #fff; background: rgba(0,0,0,0.3); }
.preview-content {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.preview-img {
  max-width: 100%;
  max-height: 180px;
  border: 1px solid var(--border-main);
  border-radius: 6px;
}
.preview-ocr-text {
  width: 100%;
  background: rgba(0,0,0,0.4);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.78em;
}
.ocr-label { display: block; color: var(--text-muted); margin-bottom: 4px; font-size: 0.88em; }

/* Result Verdict Card */
.blitzer-result-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.result-verdict {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
}
.result-verdict.speeding {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
}
.verdict-main {
  display: flex;
  align-items: center;
  gap: 12px;
}
.verdict-diff {
  font-size: 1.15em;
  font-weight: 800;
  color: #ffffff;
}
.result-verdict.speeding .verdict-diff { color: #ff5252; }
.verdict-fine {
  font-size: 1.3em;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #10b981;
}
.result-verdict.speeding .verdict-fine { color: #ff9f43; }
.verdict-details {
  display: flex;
  align-items: center;
  gap: 10px;
}
.verdict-paragraph {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.9em;
}
.warning-badge {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.78em;
  font-weight: 700;
}
.ok-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.78em;
  font-weight: 700;
}

/* Akte Preview Box */
.blitzer-akte-preview {
  background: rgba(0,0,0,0.4);
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  cursor: pointer;
  transition: var(--transition);
}
.blitzer-akte-preview:hover {
  border-color: var(--accent);
  background: rgba(0, 210, 255, 0.08);
}
.akte-label {
  font-size: 0.75em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.akte-code {
  font-family: var(--font-mono);
  font-size: 0.95em;
  color: #00ffff;
  display: block;
}

/* Action Buttons */
.blitzer-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
}
@media (max-width: 600px) {
  .blitzer-actions { grid-template-columns: 1fr; }
}
.btn-action-plate {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}
.btn-action-plate:hover {
  background: rgba(51, 65, 85, 0.9);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.btn-action-akte {
  background: linear-gradient(135deg, #10b981, #059669);
  border: 1px solid rgba(16, 185, 129, 0.5);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}
.btn-action-akte:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
  filter: brightness(1.08);
}
.btn-icon {
  font-size: 18px;
  background: rgba(0,0,0,0.2);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}
.btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.btn-text strong {
  font-size: 0.9em;
  letter-spacing: 0.2px;
  margin-bottom: 1px;
}
.btn-text small {
  font-size: 0.72em;
  opacity: 0.85;
}

.blitzer-reset-row {
  margin-top: 2px;
}
.btn-reset-next {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 8px;
  color: var(--text-secondary);
  font-size: 0.8em;
  cursor: pointer;
  transition: var(--transition);
}
.btn-reset-next:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}


/* ============================================================
   ANWALTSREGISTER (CSV-basiert, kein iframe)
   ============================================================ */
.anwalts-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  background: transparent;
}
.anwalts-loading {
  padding: 40px;
  text-align: center;
  color: var(--text-muted, #aaa);
  font-size: 1rem;
}
.anwalts-error {
  padding: 20px;
  color: var(--danger, #ef4444);
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.6;
}
.anwalts-footer {
  padding: 8px 20px;
  border-top: 1px solid var(--border-main, rgba(255,255,255,0.1));
  font-size: 0.75rem;
  color: var(--text-muted, #aaa);
  display: flex;
  align-items: center;
  gap: 6px;
}
.anwalts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.anwalts-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent, #f59e0b);
  margin-bottom: 8px;
}
.anwalts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.anwalts-table th {
  text-align: left;
  padding: 5px 8px;
  color: var(--text-muted, #aaa);
  border-bottom: 1px solid var(--border-main, rgba(255,255,255,0.1));
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.anwalts-table td {
  padding: 5px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-main, #f3f4f6);
}
.anwalts-table tr:hover td { background: rgba(255,255,255,0.04); }
.anwalts-table tr.row-expired td { color: var(--danger, #ef4444); opacity: 0.6; }
.cell-expired { text-decoration: line-through; }

.anw-orga-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.anw-orga-badge.orga-lspd  { background: rgba(59,130,246,0.25); color: #93c5fd; }
.anw-orga-badge.orga-sahp  { background: rgba(245,158,11,0.25); color: #fcd34d; }
.anw-orga-badge.orga-fib   { background: rgba(124,58,237,0.25); color: #c4b5fd; }
.anw-orga-badge.orga-gov   { background: rgba(16,185,129,0.25); color: #6ee7b7; }
.anw-orga-badge.orga-ems   { background: rgba(239,68,68,0.25);  color: #fca5a5; }
.anw-orga-badge.orga-ng    { background: rgba(100,116,139,0.25);color: #cbd5e1; }

/* ============================================================
   GESETZBUCH MODAL
   ============================================================ */
.modal-gesetzbuch {
  width: 1100px;
  max-width: 96vw;
  height: 92vh;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.gesetzbuch-tabs-wrap {
  background: rgba(0,0,0,0.2);
  border-bottom: 1px solid var(--border-main, rgba(255,255,255,0.1));
  padding: 0 20px;
  overflow-x: auto;
}
.gesetzbuch-tabs {
  display: flex;
  gap: 4px;
  padding: 6px 0;
  white-space: nowrap;
}
.gesetzbuch-tab {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted, #aaa);
  cursor: pointer;
  transition: all 0.15s;
}
.gesetzbuch-tab:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-main, #fff);
}
.gesetzbuch-tab.active {
  background: var(--accent-glow, rgba(245,158,11,0.15));
  border-color: var(--accent, #f59e0b);
  color: var(--accent, #f59e0b);
}
.gesetzbuch-body-area {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.gesetzbuch-loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  font-size: 1.1rem;
  color: var(--text-muted, #aaa);
  z-index: 5;
}
.gesetzbuch-content {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 20px 24px;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-main, #f3f4f6);
  background: rgba(0,0,0,0.15);
}
.gesetzbuch-content h1,
.gesetzbuch-content h2,
.gesetzbuch-content h3 {
  color: var(--accent, #f59e0b);
  margin: 16px 0 8px;
}
.gesetzbuch-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 10px 0;
}
.gesetzbuch-content td,
.gesetzbuch-content th {
  border: 1px solid rgba(255,255,255,0.1);
  padding: 5px 8px;
  font-size: 0.8rem;
}
.gesetzbuch-foot {
  padding: 6px 20px;
  border-top: 1px solid var(--border-main, rgba(255,255,255,0.1));
  font-size: 0.75rem;
  color: var(--text-muted, #aaa);
}


/* --- LIST VIEW OVERRIDES --- */
.offense-grid.list-view {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.offense-grid.list-view .offense-card {
  display: grid;
  grid-template-columns: 80px 1fr 100px 100px;
  align-items: center;
  gap: 15px;
  padding: 6px 12px;
  flex-direction: row;
}

.offense-grid.list-view .offense-id {
  text-align: left;
}

.offense-grid.list-view .offense-name {
  text-align: left;
  margin: 0;
}

.offense-grid.list-view .offense-fine {
  text-align: right;
  margin: 0;
}

.offense-grid.list-view .offense-stars {
  text-align: right;
  justify-content: flex-end;
}

/* --- RECHTE CARD STYLING --- */
.rechte-card {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  padding: 15px 20px;
  margin-top: 15px;
  margin-bottom: 15px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: var(--transition);
}

.rechte-card:hover {
  border-color: var(--accent);
  background: rgba(255,255,255,0.03);
}

.rechte-header {
  font-size: 1.1em;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-main);
  padding-bottom: 8px;
}

.rechte-list {
  margin: 0;
  padding-left: 20px;
  font-family: var(--font-main);
  line-height: 1.6;
}

.rechte-list li {
  margin-bottom: 5px;
}

.rechte-important {
  font-weight: bold;
  color: var(--warning);
  margin-top: 10px;
}

.rights-copy-hint {
  font-size: 0.8em;
  color: var(--text-muted);
  text-align: right;
  margin-top: 10px;
  font-style: italic;
}


/* --- 3D LOGIN STYLES --- */
#vanta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.login-screen {
  overflow: hidden;
}



.grand-loader {
  position: absolute;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.loader-ring {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(245, 158, 11, 0.1);
  border-left-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.loader-text {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 4px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: 0.5; } }
/* Enhanced Eventkalender styles */
.modal-calendar .event-cal {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  align-items: start;
}
.modal-calendar {
  width: 90% !important;
  max-width: 900px !important;
}
.modal-calendar .cal-day {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}
.modal-calendar .cal-day.today {
  border-color: var(--accent);
  background: rgba(0, 210, 255, 0.05);
  box-shadow: 0 0 15px rgba(0,210,255,0.1);
}
.modal-calendar .day-name {
  display: block;
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--accent);
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 5px;
}
.modal-calendar .day-event {
  background: rgba(0,0,0,0.3);
  padding: 8px;
  border-radius: 6px;
  margin-bottom: 8px;
  border-left: 3px solid var(--accent);
  font-size: 0.9em;
}

/* Profile Modal Fix */
.modal-overlay {
  background: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(8px) !important;
  z-index: 10000 !important;
}
.modal-content.glass-panel {
  background: var(--bg-panel) !important;
  border: 1px solid rgba(0,210,255,0.2) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8), inset 0 0 15px rgba(255,255,255,0.05) !important;
}

/* Premium Vue Transitions */
.fade-enter-active, .fade-leave-active {
  transition: opacity 0.2s ease-in-out;
}
.fade-enter-from, .fade-leave-to {
  opacity: 0;
}

.fade-slow-enter-active, .fade-slow-leave-active {
  transition: opacity 1.5s ease-in-out;
}
.fade-slow-enter-from, .fade-slow-leave-to {
  opacity: 0;
}

/* Redesign Loader */
.grand-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 100;
}
.loader-ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid rgba(0, 210, 255, 0.1);
  border-top-color: var(--accent);
  border-left-color: var(--accent);
  animation: pulse-spin 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.4), inset 0 0 10px rgba(0, 210, 255, 0.2);
}
.loader-text {
  margin-top: 20px;
  font-size: 0.9em;
  letter-spacing: 4px;
  font-weight: 600;
  color: var(--text-muted);
  animation: pulse-text 2s ease-in-out infinite;
}

@keyframes pulse-spin {
  0% { transform: rotate(0deg) scale(0.9); opacity: 0.7; }
  50% { transform: rotate(180deg) scale(1.1); opacity: 1; }
  100% { transform: rotate(360deg) scale(0.9); opacity: 0.7; }
}
@keyframes pulse-text {
  0%, 100% { opacity: 0.5; text-shadow: none; }
  50% { opacity: 1; color: var(--accent); text-shadow: 0 0 10px var(--accent); }
}

/* Content Area Wrapper for Zoom */
.content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  transform-origin: top left;
}

/* Enhanced Login Box */
.login-box-animated {
  animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(30px);
}
@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.login-box.glass-panel {
  background: rgba(10, 15, 30, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 210, 255, 0.25);
  box-shadow: 0 0 40px rgba(0, 210, 255, 0.15), inset 0 0 20px rgba(0, 210, 255, 0.05);
  position: relative;
  overflow: hidden;
}
.login-box.glass-panel::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(0, 210, 255, 0.1), transparent);
  transform: skewX(-20deg);
  animation: shine 4s infinite;
}
@keyframes shine {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}



/* --- PREMIUM APPLE-LIKE LAYOUT --- */
.app-body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-main);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 12px;
  z-index: 10;
}

.sidebar-top, .sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar button {
  justify-content: flex-start;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  transition: opacity 0.2s cubic-bezier(0.25, 1, 0.5, 1), transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.2s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.2s cubic-bezier(0.25, 1, 0.5, 1), color 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.sidebar button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  transform: translateX(4px);
}

.sidebar button.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.sidebar button i {
  width: 24px;
  font-size: 16px;
  text-align: center;
}

.user-profile-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-top: 10px;
  border-radius: 12px;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border-main);
  cursor: pointer;
  transition: all 0.2s;
}

.user-profile-mini:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--accent);
}

.user-profile-mini .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.user-profile-mini .user-info {
  display: flex;
  flex-direction: column;
}
.user-profile-mini .name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.user-profile-mini .org {
  font-size: 11px;
  color: var(--text-muted);
}

/* Dashboard */
.dashboard-header {
  margin-bottom: 24px;
}
.dashboard-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  backdrop-filter: blur(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.dash-card.action-card {
  cursor: pointer;
}
.dash-card.action-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.dash-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--accent);
}
.dash-icon.active {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
}
.dash-info {
  display: flex;
  flex-direction: column;
}
.dash-val {
  font-size: 22px;
  font-weight: 700;
}
.dash-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* Spotlight Search */
.spotlight-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 15vh;
}
.spotlight-modal {
  width: 600px;
  background: var(--bg-surface);
  border: 1px solid var(--border-main);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.spotlight-input-container {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-main);
}
.spotlight-input-container i {
  font-size: 20px;
  color: var(--text-muted);
  margin-right: 16px;
}
.spotlight-input-container input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 22px;
  color: var(--text-primary);
  outline: none;
  box-shadow: none;
}
.spotlight-results {
  max-height: 350px;
  overflow-y: auto;
  padding: 8px 0;
}
.spotlight-item {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.1s;
}
.spotlight-item.selected, .spotlight-item:hover {
  background: rgba(255,255,255,0.08);
}
.spotlight-icon {
  width: 32px;
  font-size: 18px;
  color: var(--text-secondary);
}
.spotlight-info {
  display: flex;
  flex-direction: column;
}
.spotlight-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}
.spotlight-desc {
  font-size: 12px;
  color: var(--text-muted);
}
.spotlight-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
}

/* Toast System */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.toast-message {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-main);
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  width: 320px;
  pointer-events: auto;
}
.toast-message.success { border-left: 4px solid var(--success); }
.toast-message.error { border-left: 4px solid var(--danger); }
.toast-message.info { border-left: 4px solid var(--info); }
.toast-icon { font-size: 24px; }
.toast-message.success .toast-icon { color: var(--success); }
.toast-message.error .toast-icon { color: var(--danger); }
.toast-message.info .toast-icon { color: var(--info); }
.toast-content { display: flex; flex-direction: column; }
.toast-title { font-weight: 600; font-size: 14px; }
.toast-desc { font-size: 12px; color: var(--text-secondary); }

/* Animations */
.toast-anim-enter-active, .toast-anim-leave-active {
  transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1), transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.toast-anim-enter-from {
  opacity: 0;
  transform: translateX(50px);
}
.toast-anim-leave-to {
  opacity: 0;
  transform: translateX(50px);
}


/* Modern Range Sliders */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  background: transparent;
  margin: 10px 0;
}
input[type="range"]:focus {
  outline: none;
}
input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.05);
}
input[type="range"]::-webkit-slider-thumb {
  border: 2px solid var(--bg-surface);
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -7px;
  box-shadow: 0 0 10px var(--accent-glow);
  transition: transform 0.1s;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Upgraded Blitzer Scan Button */
.btn-scan-massive {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
  border: none !important;
  border-radius: 16px !important;
  color: white;
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3) !important;
}
.btn-scan-massive:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px rgba(59, 130, 246, 0.5) !important;
}
.btn-scan-massive.scanning {
  animation: pulse-scan 2s infinite !important;
}
@keyframes pulse-scan {
  0% { transform: scale(1); opacity: 1; }
  70% { transform: scale(1.1); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}


/* --- APPLE DESIGN UPGRADES --- */

/* 1. Sleek Checkboxes as Apple Toggles */
.result-options .toggle input[type="checkbox"],
.settings-section input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 44px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: background 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  vertical-align: middle;
  margin-right: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.result-options .toggle input[type="checkbox"]::after,
.settings-section input[type="checkbox"]::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.result-options .toggle input[type="checkbox"]:checked,
.settings-section input[type="checkbox"]:checked {
  background: #34c759; /* Apple iOS Green */
  border-color: #34c759;
}
.result-options .toggle input[type="checkbox"]:checked::after,
.settings-section input[type="checkbox"]:checked::after {
  transform: translateX(20px);
}

/* 2. Premium Inputs & Selects */
input.login-input, input.blitzer-input, input[type="text"], input[type="number"], select {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  color: var(--text-primary) !important;
  font-size: 14px !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}
input[type="text"]:focus, input[type="number"]:focus, select:focus {
  outline: none !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: #007aff !important; /* iOS Blue */
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.3) !important;
}

/* 3. Refined Buttons */
.btn-primary {
  background: #007aff !important; /* iOS Blue */
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 10px 20px !important;
  font-weight: 500 !important;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(0, 122, 255, 0.3) !important;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s !important;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 122, 255, 0.4) !important;
  filter: brightness(1.1);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--text-primary) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 10px !important;
  padding: 10px 20px !important;
  font-weight: 500 !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.2s, transform 0.2s, background-color 0.2s, border-color 0.2s, color 0.2s !important;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}
.win-btn.close {
  background: #ff3b30 !important; /* Apple Red */
  border-radius: 5px;
  color: white !important;
}
.win-btn.close:hover {
  filter: brightness(1.2);
}

/* 4. Glassmorphism Panels */
.glass-panel, .result-card, .blitzer-setup-card, .blitzer-data-card, .blitzer-result-card, .settings-modal {
  background: rgba(20, 20, 25, 0.6) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4) !important;
}
\n
/* --- DEEP MACOS DESIGN INJECTION --- */

/* 1. Custom WebKit Scrollbars (macOS Style) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* 2. Glassmorphism Header & Tabs */
header.titlebar {
  background: rgba(20, 20, 25, 0.6) !important;
  backdrop-filter: blur(25px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(200%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
}
nav.tabs {
  background: rgba(30, 30, 35, 0.7) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  position: sticky;
  top: 30px;
  z-index: 900;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* 3. Typography & Dash-Card Enhancements */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.dash-card {
  padding: 20px 24px !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
}
.dash-card:hover {
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

/* 4. Elegant Transitions */
.content-area, .settings-modal, .rights-section {
  animation: fade-in-up 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


input[type="range"]:focus, input[type="range"]:active {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}
input[type="range"]::-webkit-slider-runnable-track {
  background: rgba(255, 255, 255, 0.2) !important;
  border: none !important;
}
input[type="range"]::-webkit-slider-thumb {
  background: #ff9500 !important; /* Apple Orange */
  border: 2px solid rgba(255,255,255,0.8) !important;
  box-shadow: 0 0 10px rgba(255, 149, 0, 0.5) !important;
}
.rights-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.rights-header {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rights-list {
  margin: 0;
  padding-left: 20px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-primary);
}
.rights-list li {
  margin-bottom: 6px;
}
.rights-highlight {
  color: #f87171;
  font-weight: bold;
  margin-top: 10px;
}
.rights-copy-hint {
  margin-top: 15px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0.7;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 8px;
}


/* Grandkasten Neue Themes */
.theme-ocean {
  --bg-main: #061524 !important;
  --bg-surface: rgba(2, 44, 73, 0.85) !important;
  --bg-card: rgba(8, 71, 114, 0.55) !important;
  --bg-input: rgba(3, 27, 45, 0.75) !important;
  --accent: #0ea5e9 !important;
  --accent-secondary: #0284c7 !important;
  --accent-glow: rgba(14, 165, 233, 0.35) !important;
  --border-main: rgba(14, 165, 233, 0.25) !important;
  --border-glow: rgba(14, 165, 233, 0.45) !important;
  --text-secondary: #bae6fd !important;
}

.theme-emerald {
  --bg-main: #021f14 !important;
  --bg-surface: rgba(4, 60, 40, 0.85) !important;
  --bg-card: rgba(6, 92, 60, 0.55) !important;
  --bg-input: rgba(2, 38, 25, 0.75) !important;
  --accent: #10b981 !important;
  --accent-secondary: #059669 !important;
  --accent-glow: rgba(16, 185, 129, 0.35) !important;
  --border-main: rgba(16, 185, 129, 0.25) !important;
  --border-glow: rgba(16, 185, 129, 0.45) !important;
  --text-secondary: #a7f3d0 !important;
}

.theme-amethyst {
  --bg-main: #140b24 !important;
  --bg-surface: rgba(45, 22, 85, 0.85) !important;
  --bg-card: rgba(72, 36, 133, 0.55) !important;
  --bg-input: rgba(29, 14, 55, 0.75) !important;
  --accent: #8b5cf6 !important;
  --accent-secondary: #7c3aed !important;
  --accent-glow: rgba(139, 92, 246, 0.35) !important;
  --border-main: rgba(139, 92, 246, 0.25) !important;
  --border-glow: rgba(139, 92, 246, 0.45) !important;
  --text-secondary: #ddd6fe !important;
}

.theme-midnight {
  --bg-main: #000000 !important;
  --bg-surface: rgba(20, 20, 20, 0.85) !important;
  --bg-card: rgba(30, 30, 30, 0.55) !important;
  --bg-input: rgba(10, 10, 10, 0.75) !important;
  --accent: #6b7280 !important;
  --accent-secondary: #4b5563 !important;
  --accent-glow: rgba(107, 114, 128, 0.35) !important;
  --border-main: rgba(107, 114, 128, 0.25) !important;
  --border-glow: rgba(107, 114, 128, 0.45) !important;
  --text-secondary: #e5e7eb !important;
}


/* ============================================================
   SELECT DROPDOWN DARK FIX
   (native <option> erbt kein CSS-Theme auf Windows)
   ============================================================ */
select {
  background: var(--bg-input, #0a0c14) !important;
  color: var(--text-primary, #ffffff) !important;
  border: 1px solid var(--border-main, rgba(255,255,255,0.08));
}

select option {
  background: #1a1d2a !important;
  color: #ffffff !important;
}

select option:checked,
select option:hover {
  background: var(--accent, #00d2ff) !important;
  color: #000000 !important;
}

/* Modal Overlay (Profil bearbeiten) */
.modal-overlay {
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
}

.modal-content.glass-panel {
  background: var(--bg-surface, rgba(15,20,35,0.95));
  border: 1px solid var(--border-glow, rgba(255,255,255,0.12));
  border-radius: var(--radius-xl, 14px);
  color: var(--text-primary, #fff);
}

.modal-content .input-group label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted, #64748b);
  display: block;
  margin-bottom: 6px;
}

.login-input {
  background: var(--bg-input, rgba(5,10,20,0.5)) !important;
  color: var(--text-primary, #ffffff) !important;
  border: 1px solid var(--border-main, rgba(255,255,255,0.08));
  border-radius: var(--radius-md, 7px);
  padding: 10px 14px;
  width: 100%;
  font-size: 13px;
}

.login-input:focus {
  border-color: var(--accent, #00d2ff);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-glow, rgba(0,210,255,0.2));
}

/* Eventkalender day-event extras */
.day-event-time {
  color: var(--accent, #00d2ff);
  font-family: var(--font-mono);
  font-size: 11px;
}

.day-event-loc {
  font-size: 10px;
  color: var(--text-muted, #64748b);
}

/* --- APPLE PREMIUM OVERHAUL OVERRIDES --- */
.modal-calendar {
  width: 95vw !important;
  max-width: 1400px !important;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-main);
  margin-bottom: 5px;
}
.day-event {
  background: var(--bg-input);
  padding: 12px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent);
  transition: var(--transition);
}
.day-event:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* --- Law Book Native Text --- */
.gesetzbuch-content.native-text {
  padding: 20px;
  overflow-y: auto;
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
}
.law-line {
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 4px;
}
.law-line:hover {
  background: var(--bg-input);
}
.law-heading {
  font-weight: 700;
  font-size: 1.1em;
  color: var(--accent);
  margin-top: 15px;
  border-bottom: 1px solid var(--border-main);
  padding-bottom: 5px;
}
.law-search-box {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}
input[type="range"]::-webkit-slider-runnable-track {
  background: rgba(255, 255, 255, 0.2) !important;
  border: none !important;
}
input[type="range"]::-webkit-slider-thumb {
  background: #ff9500 !important; /* Apple Orange */
  border: 2px solid rgba(255,255,255,0.8) !important;
  box-shadow: 0 0 10px rgba(255, 149, 0, 0.5) !important;
}
.rights-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.rights-header {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rights-list {
  margin: 0;
  padding-left: 20px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-primary);
}
.rights-list li {
  margin-bottom: 6px;
}
.rights-highlight {
  color: #f87171;
  font-weight: bold;
  margin-top: 10px;
}
.rights-copy-hint {
  margin-top: 15px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0.7;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 8px;
}
 
 
/* Grandkasten Neue Themes */
.theme-ocean {
  --bg-main: #061524 !important;
  --bg-surface: rgba(2, 44, 73, 0.85) !important;
  --bg-card: rgba(8, 71, 114, 0.55) !important;
  --bg-input: rgba(3, 27, 45, 0.75) !important;
  --accent: #0ea5e9 !important;
  --accent-secondary: #0284c7 !important;
  --accent-glow: rgba(14, 165, 233, 0.35) !important;
  --border-main: rgba(14, 165, 233, 0.25) !important;
  --border-glow: rgba(14, 165, 233, 0.45) !important;
  --text-secondary: #bae6fd !important;
}

.theme-emerald {
  --bg-main: #021f14 !important;
  --bg-surface: rgba(4, 60, 40, 0.85) !important;
  --bg-card: rgba(6, 92, 60, 0.55) !important;
  --bg-input: rgba(2, 38, 25, 0.75) !important;
  --accent: #10b981 !important;
  --accent-secondary: #059669 !important;
  --accent-glow: rgba(16, 185, 129, 0.35) !important;
  --border-main: rgba(16, 185, 129, 0.25) !important;
  --border-glow: rgba(16, 185, 129, 0.45) !important;
  --text-secondary: #a7f3d0 !important;
}

.theme-amethyst {
  --bg-main: #140b24 !important;
  --bg-surface: rgba(45, 22, 85, 0.85) !important;
  --bg-card: rgba(72, 36, 133, 0.55) !important;
  --bg-input: rgba(29, 14, 55, 0.75) !important;
  --accent: #8b5cf6 !important;
  --accent-secondary: #7c3aed !important;
  --accent-glow: rgba(139, 92, 246, 0.35) !important;
  --border-main: rgba(139, 92, 246, 0.25) !important;
  --border-glow: rgba(139, 92, 246, 0.45) !important;
  --text-secondary: #ddd6fe !important;
}

.theme-midnight {
  --bg-main: #000000 !important;
  --bg-surface: rgba(20, 20, 20, 0.85) !important;
  --bg-card: rgba(30, 30, 30, 0.55) !important;
  --bg-input: rgba(10, 10, 10, 0.75) !important;
  --accent: #6b7280 !important;
  --accent-secondary: #4b5563 !important;
  --accent-glow: rgba(107, 114, 128, 0.35) !important;
  --border-main: rgba(107, 114, 128, 0.25) !important;
  --border-glow: rgba(107, 114, 128, 0.45) !important;
  --text-secondary: #e5e7eb !important;
}


/* ============================================================
   SELECT DROPDOWN DARK FIX
   (native <option> erbt kein CSS-Theme auf Windows)
   ============================================================ */
select {
  background: var(--bg-input, #0a0c14) !important;
  color: var(--text-primary, #ffffff) !important;
  border: 1px solid var(--border-main, rgba(255,255,255,0.08));
}

select option {
  background: #1a1d2a !important;
  color: #ffffff !important;
}

select option:checked,
select option:hover {
  background: var(--accent, #00d2ff) !important;
  color: #000000 !important;
}

/* Modal Overlay (Profil bearbeiten) */
.modal-overlay {
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
}

.modal-content.glass-panel {
  background: var(--bg-surface, rgba(15,20,35,0.95));
  border: 1px solid var(--border-glow, rgba(255,255,255,0.12));
  border-radius: var(--radius-xl, 14px);
  color: var(--text-primary, #fff);
}

.modal-content .input-group label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted, #64748b);
  display: block;
  margin-bottom: 6px;
}

.login-input {
  background: var(--bg-input, rgba(5,10,20,0.5)) !important;
  color: var(--text-primary, #ffffff) !important;
  border: 1px solid var(--border-main, rgba(255,255,255,0.08));
  border-radius: var(--radius-md, 7px);
  padding: 10px 14px;
  width: 100%;
  font-size: 13px;
}

.login-input:focus {
  border-color: var(--accent, #00d2ff);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-glow, rgba(0,210,255,0.2));
}

/* Eventkalender day-event extras */
.day-event-time {
  color: var(--accent, #00d2ff);
  font-family: var(--font-mono);
  font-size: 11px;
}

.day-event-loc {
  font-size: 10px;
  color: var(--text-muted, #64748b);
}

/* --- APPLE PREMIUM OVERHAUL OVERRIDES --- */
.modal-calendar {
  width: 95vw !important;
  max-width: 1400px !important;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-main);
  margin-bottom: 5px;
}
.day-event {
  background: var(--bg-input);
  padding: 12px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent);
  transition: var(--transition);
}
.day-event:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* --- Law Book Native Text --- */
.gesetzbuch-content.native-text {
  padding: 20px;
  overflow-y: auto;
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
}
.law-line {
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 4px;
}
.law-line:hover {
  background: var(--bg-input);
}
.law-heading {
  font-weight: 700;
  font-size: 1.1em;
  color: var(--accent);
  margin-top: 15px;
  border-bottom: 1px solid var(--border-main);
  padding-bottom: 5px;
}
.law-search-box {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  padding: 0 10px;
  color: var(--text-secondary);
}
.law-search-box input {
  border: none;
  background: transparent;
  color: var(--text-primary);
  padding: 8px;
  outline: none;
}

/* Restoring calendar layout */
.modal-calendar {
  width: 95vw !important;
  max-width: 1400px !important;
  height: 85vh !important;
  display: flex;
  flex-direction: column;
}
.event-cal {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 15px;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 10px;
  flex: 1;
}
.cal-day {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  backdrop-filter: var(--glass-blur);
  min-width: 220px;
  flex-shrink: 0;
}
.cal-day.today {
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
}

/* Gesetzbuch Layout & Inhaltsverzeichnis */
.gesetzbuch-toc {
  width: 320px;
  flex-shrink: 0;
  border-right: 1px solid var(--border-main);
  background: var(--bg-panel, rgba(255,255,255,0.05));
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.toc-item {
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-primary);
  transition: all 0.2s ease;
  white-space: normal;
  word-wrap: break-word;
}
.toc-item:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  border-left: 3px solid var(--accent);
}
.gesetzbuch-content.native-text {
  font-size: 0.95rem !important; /* Smaller, readable font */
  line-height: 1.5;
  padding: 20px 30px;
}\n.law-separator { border-top: 1px dashed var(--border-main); margin-top: 15px; margin-bottom: 15px; padding-top: 0; padding-bottom: 0; background: transparent; }\n/* ========================================================================= */
/* ? APPLE PREMIUM OVERHAUL - AUTOMATIC INJECTION */
/* ========================================================================= */

:root {
  --apple-blur: blur(20px);
  --apple-bg: rgba(28, 28, 30, 0.7);
  --apple-border: rgba(255, 255, 255, 0.1);
  --apple-border-light: rgba(255, 255, 255, 0.2);
  --apple-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --apple-radius: 14px;
  --apple-radius-sm: 8px;
  --apple-accent: #0A84FF;
  --apple-text: #F5F5F7;
  --apple-muted: #86868B;
}

/* Force SF Pro / Apple System Font Everywhere */
body, input, button, select, textarea {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
}
* {
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

/* App Background & Titlebar */
#app {
  border-radius: 0 !important;
  box-shadow: none !important;
}

.titlebar {
  background: rgba(30, 30, 32, 0.6) !important;
  backdrop-filter: var(--apple-blur) !important;
  border-bottom: 1px solid var(--apple-border) !important;
  height: 48px !important;
  display: flex !important;
  padding: 0 16px !important;
  align-items: center !important;
  box-shadow: none !important;
}

.titlebar span {
  font-weight: 500 !important;
  color: var(--apple-text) !important;
  font-size: 13px !important;
}

/* Glassmorphism Tabs */
.tabs {
  background: rgba(20, 20, 22, 0.65) !important;
  backdrop-filter: var(--apple-blur) !important;
  border-bottom: 1px solid var(--apple-border) !important;
  padding: 8px 12px !important;
  gap: 8px !important;
}

.tabs button {
  background: transparent !important;
  border-radius: 20px !important;
  border: none !important;
  color: var(--apple-muted) !important;
  border-radius: var(--apple-radius-sm) !important;
  padding: 6px 14px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
}

.tabs button:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--apple-text) !important;
}

.tabs button.active {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

/* Content Area */
.content-area {
  background: rgba(18, 18, 20, 0.8) !important;
  backdrop-filter: var(--apple-blur) !important;
}

/* Modern Inputs */
input, select, textarea, .login-input, .small-input {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--apple-border) !important;
  border-radius: var(--apple-radius-sm) !important;
  color: #fff !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
  transition: all 0.2s ease !important;
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: var(--apple-accent) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.3) !important;
}

/* Sleek Apple Buttons */
button.btn-primary, button.primary-btn {
  background: var(--apple-accent) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--apple-radius-sm) !important;
  padding: 8px 16px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 10px rgba(10, 132, 255, 0.3) !important;
}

button.btn-primary:hover, button.primary-btn:hover {
  background: #2b93ff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 15px rgba(10, 132, 255, 0.4) !important;
}

button.btn-secondary {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid var(--apple-border) !important;
  color: var(--apple-text) !important;
  border-radius: var(--apple-radius-sm) !important;
}

button.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15) !important;
}

/* Beautiful Cards (Glassmorphism) */
.result-panel, .setup-header, .rights-card, .tool-section, .stat-card, .history-item {
  background: var(--apple-bg) !important;
  border: 1px solid var(--apple-border) !important;
  backdrop-filter: var(--apple-blur) !important;
  border-radius: var(--apple-radius) !important;
  box-shadow: var(--apple-shadow) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.result-panel:hover, .tool-section:hover, .stat-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5) !important;
  border-color: var(--apple-border-light) !important;
}

/* Refined Scrollbars */
::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
}
::-webkit-scrollbar-track {
  background: transparent !important;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2) !important;
  border-radius: 10px !important;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3) !important;
}

/* Modals */
.modal-content, .settings-modal {
  background: rgba(30, 30, 32, 0.85) !important;
  backdrop-filter: var(--apple-blur) !important;
  border: 1px solid var(--apple-border-light) !important;
  border-radius: var(--apple-radius) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6) !important;
}

/* Gesetzbuch Search Highlights */
mark.gesetz-highlight {
  background-color: rgba(255, 214, 10, 0.3) !important;
  color: #fff !important;
  border-radius: 4px !important;
  padding: 2px 4px !important;
  border: 1px solid rgba(255, 214, 10, 0.6) !important;
}

mark.gesetz-highlight.gesetz-highlight-active {
  background-color: var(--accent) !important;
  color: #fff !important;
  border: 1px solid #fff !important;
  box-shadow: 0 0 12px var(--accent-glow) !important;
}


/* Fix v-cloak issue causing flash of unstyled content */
[v-cloak] {
  display: none !important;
}

/* Custom Button Styles (Modern Apple Dark) */
.btn-ansicht, .btn-profil-design {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 8px 16px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-ansicht:hover, .btn-profil-design:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  box-shadow: 0 4px 15px var(--accent-glow);
  transform: translateY(-1px);
}
