/* 
  =============================================================================
  GRANDKASTEN - APPLE HUMAN INTERFACE DESIGN SYSTEM (macOS Sequoia & iOS 18)
  =============================================================================
*/

/* --- 1. APPLE CORE DESIGN TOKENS --- */
:root {
  /* Apple System Colors */
  --apple-blue: #0a84ff;
  --apple-blue-hover: #0071e3;
  --apple-blue-active: #005bb5;
  --apple-green: #34c759;
  --apple-green-hover: #30d158;
  --apple-red: #ff3b30;
  --apple-red-hover: #ff453a;
  --apple-orange: #ff9500;
  --apple-yellow: #ffd60a;
  --apple-purple: #af52de;
  --apple-indigo: #5e5ce6;
  --apple-pink: #ff2d55;
  --apple-teal: #64d2ff;

  /* Apple System Grayscale (Dark Mode Standard) */
  --apple-canvas: #000000;
  --apple-bg-base: #121318;
  --apple-surface-1: rgba(255, 255, 255, 0.045);
  --apple-surface-2: rgba(255, 255, 255, 0.075);
  --apple-surface-3: rgba(255, 255, 255, 0.11);
  --apple-surface-elevated: rgba(36, 36, 42, 0.85);

  --apple-text-primary: #f5f5f7;
  --apple-text-secondary: rgba(235, 235, 245, 0.65);
  --apple-text-tertiary: rgba(235, 235, 245, 0.4);
  --apple-text-quaternary: rgba(235, 235, 245, 0.22);

  /* Hairline Borders & Material Highlights */
  --apple-border: rgba(255, 255, 255, 0.09);
  --apple-border-light: rgba(255, 255, 255, 0.15);
  --apple-border-focus: rgba(10, 132, 255, 0.55);
  --apple-highlight-top: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --apple-highlight-card: inset 0 1px 0 rgba(255, 255, 255, 0.07);

  /* Apple Radii (Continuous Squircles - Nicht so eckig) */
  --apple-radius-xs: 8px;
  --apple-radius-sm: 12px;
  --apple-radius-md: 14px;
  --apple-radius-lg: 18px;
  --apple-radius-xl: 22px;
  --apple-radius-modal: 26px;
  --apple-radius-pill: 9999px;

  /* Shadows (Diffuse Ambient Apple Shadows) */
  --apple-shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.25);
  --apple-shadow-md: 0 6px 18px rgba(0, 0, 0, 0.35);
  --apple-shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.45);
  --apple-shadow-modal: 0 28px 70px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.1);

  /* Apple Typography */
  --apple-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", system-ui, sans-serif;
  --apple-font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif;
  --apple-font-mono: "SF Mono", Menlo, Monaco, "JetBrains Mono", Consolas, monospace;

  /* Transitions */
  --apple-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --apple-ease: cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- 2. GLOBAL RESET & APPLE SYSTEM ENVIRONMENT --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  background-color: #0c0d12 !important;
  font-family: var(--apple-font);
  font-size: 13px;
  line-height: 1.45;
  color: var(--apple-text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

input, textarea, code, pre, .selectable, [contenteditable] {
  user-select: text;
  -webkit-user-select: text;
}

/* Authentic macOS Ultra-Thin Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
  background-color: transparent;
}
::-webkit-scrollbar-track {
  background-color: transparent;
}
::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.18);
  border-radius: var(--apple-radius-pill);
  transition: background-color 0.2s ease;
}
::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.38);
}
::-webkit-scrollbar-corner {
  background-color: transparent;
}

/* Selection Highlight */
::selection {
  background: rgba(10, 132, 255, 0.4);
  color: #ffffff;
}

/* --- 3. MAIN WINDOW FRAME & VIBRANCY --- */
#app {
  width: 100vw;
  height: 100vh;
  background: var(--apple-bg-base, #121318) !important;
  backdrop-filter: blur(50px) saturate(200%);
  -webkit-backdrop-filter: blur(50px) saturate(200%);
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  display: flex;
  flex-direction: column;
  overflow: hidden !important;
  position: relative;
}

.main-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

/* --- 4. TITLEBAR & MACOS WINDOW CHROME --- */
header.titlebar {
  height: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--apple-border);
  border-top-left-radius: 22px !important;
  border-top-right-radius: 22px !important;
  position: relative;
  z-index: 100;
  -webkit-app-region: drag;
}

.title-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--apple-text-primary);
  letter-spacing: -0.01em;
}

.title-left img.logo-small {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.admin-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 214, 10, 0.15);
  color: var(--apple-yellow);
  border: 1px solid rgba(255, 214, 10, 0.35);
  text-transform: uppercase;
}

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

/* Window Action Buttons in Titlebar */
.title-right button.win-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--apple-radius-sm) !important;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  color: var(--apple-text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.18s var(--apple-ease);
}

.title-right button.win-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transform: translateY(-1px);
}

.title-right button.win-btn:active {
  transform: scale(0.94);
}

/* Window Controls (Minimieren & Schließen) */
.title-right button.win-btn[title="Minimieren"] {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  margin-left: 6px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--apple-text-secondary) !important;
  font-size: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.18s var(--apple-ease) !important;
}

.title-right button.win-btn[title="Minimieren"]:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  transform: scale(1.08) !important;
}

.title-right button.win-btn[title="Minimieren"] i {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  line-height: 1 !important;
}

.title-right button.win-btn.close {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  background: #ff453a !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 13px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(255, 69, 58, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.15s ease, box-shadow 0.15s ease !important;
}

.title-right button.win-btn.close:hover {
  background: #ff5b52 !important;
  color: #ffffff !important;
  transform: scale(1.08) !important;
  box-shadow: 0 4px 14px rgba(255, 69, 58, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

.title-right button.win-btn.close:active {
  transform: scale(0.92) !important;
}

.title-right button.win-btn.close i {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  line-height: 1 !important;
  color: #ffffff !important;
}

.title-right span.clock {
  font-size: 12px;
  font-weight: 500;
  color: var(--apple-text-secondary);
  font-variant-numeric: tabular-nums;
  padding: 0 8px;
}

/* --- 5. MACOS TOOLBAR SEGMENTED CONTROL NAVIGATION --- */
nav.tabs, .tabs {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 4px 6px !important;
  margin: 6px 18px 8px 18px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--apple-border) !important;
  border-radius: 999px !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25) !important;
  position: relative !important;
  top: auto !important;
  z-index: 50 !important;
  flex-shrink: 0 !important;
  width: auto !important;
  align-self: flex-start !important;
}

nav.tabs button {
  background: transparent !important;
  border: none !important;
  border-radius: 999px !important;
  color: var(--apple-text-secondary) !important;
  font-family: var(--apple-font);
  font-size: 12.5px !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em;
  padding: 6px 15px !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s var(--apple-spring);
  box-shadow: none !important;
  transform: none !important;
  white-space: nowrap;
}

nav.tabs button:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

nav.tabs button.active {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

nav.tabs button i {
  font-size: 13px;
  opacity: 0.85;
}

.tabs-spacer {
  flex: 1;
}

.btn-update-tab {
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.25), rgba(52, 199, 89, 0.25)) !important;
  border: 1px solid rgba(52, 199, 89, 0.4) !important;
  color: var(--apple-green) !important;
  padding: 6px 14px !important;
  border-radius: var(--apple-radius-sm) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
}

/* Apple Auth Segmented Control */
.auth-tabs {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  padding: 3px !important;
  margin: 16px 0 !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid var(--apple-border) !important;
  border-radius: var(--apple-radius-sm) !important;
  width: 100%;
}

.auth-tabs button {
  flex: 1 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 7px !important;
  color: var(--apple-text-secondary) !important;
  font-family: var(--apple-font);
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 7px 0 !important;
  cursor: pointer;
  outline: none;
  transition: all 0.2s var(--apple-spring);
  text-align: center;
}

.auth-tabs button:hover {
  color: #ffffff !important;
}

.auth-tabs button.active {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

/* --- 6. CONTENT AREA & SCROLL CONTAINER --- */
main.content-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 18px 18px 18px;
  display: flex;
  flex-direction: column;
}

main.content:not(.calc-workspace) {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  padding: 2px 20px 20px 20px !important;
  width: 100% !important;
}

/* View Mode Button */
.btn-ansicht {
  height: 38px !important;
  padding: 0 16px !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  color: var(--apple-text-primary) !important;
  font-family: var(--apple-font) !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  cursor: pointer !important;
  transition: all 0.18s var(--apple-spring) !important;
  box-shadow: none !important;
  flex-shrink: 0 !important;
}

.btn-ansicht:hover {
  background: rgba(255, 255, 255, 0.13) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.calc-search-wrapper .search-input {
  padding-left: 38px !important;
  padding-right: 32px !important;
  width: 100% !important;
  height: 38px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  font-size: 13px !important;
  margin-bottom: 0 !important;
}

/* --- 7. APPLE GLASS PANELS & CARDS --- */
.glass-panel,
.result-panel,
.rights-card,
.blitzer-setup-card,
.blitzer-data-card,
.stat-card,
.tool-section,
.top-users-panel,
.activity-graph-container,
.calc-inputs {
  background: var(--apple-surface-1) !important;
  border: 1px solid var(--apple-border) !important;
  border-radius: var(--apple-radius-lg) !important;
  box-shadow: 
    var(--apple-shadow-sm),
    var(--apple-highlight-card) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.glass-panel:hover,
.stat-card:hover,
.tool-section:hover {
  border-color: var(--apple-border-light) !important;
}

/* --- 8. CALCULATOR TAB (MACOS TWO-COLUMN WORKSPACE & STICKY INSPECTOR) --- */
main.content.calc-workspace,
.calc-workspace {
  flex: 1 !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  gap: 14px !important;
  align-items: stretch !important;
  width: 100% !important;
  padding: 4px 18px 8px 18px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* Left Main Column: Search, Toolbar, Catalog */
.calc-main-column {
  flex: 1 !important;
  min-width: 0 !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  overflow-y: auto !important;
  padding-right: 4px !important;
}

.calc-toolbar-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  background: rgba(14, 16, 22, 0.94) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  padding: 8px 0 10px 0 !important;
  margin-top: -2px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}

.calc-search-wrapper {
  position: relative !important;
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
}

.calc-search-wrapper .search-icon {
  position: absolute !important;
  left: 14px !important;
  color: var(--apple-text-tertiary) !important;
  pointer-events: none !important;
  font-size: 13px !important;
}

.calc-search-wrapper .search-input {
  padding-left: 38px !important;
  padding-right: 36px !important;
  width: 100% !important;
  height: 38px !important;
  border-radius: var(--apple-radius-sm) !important;
  margin-bottom: 0 !important;
}

.calc-search-wrapper .search-clear-btn {
  position: absolute !important;
  right: 8px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: none !important;
  color: var(--apple-text-tertiary) !important;
  cursor: pointer !important;
  font-size: 11px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  transition: all 0.15s ease !important;
}

.calc-search-wrapper .search-clear-btn:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  transform: translateY(-50%) scale(1.08) !important;
}

.calc-search-wrapper .search-clear-btn i {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  line-height: 1 !important;
}

.btn-rights-toggle {
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.btn-rights-toggle.active {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

.cat-count-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--apple-text-secondary);
  margin-left: 6px;
}

/* --- 8. CALCULATOR TAB: ULTRA-COMPACT APPLE INSPECTOR PANE (100% VISIBLE, ZERO SCROLLING) --- */
.calc-inspector-sidebar.apple-inspector-pane {
  width: 320px !important;
  min-width: 300px !important;
  max-width: 335px !important;
  flex-shrink: 0 !important;
  height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  background: linear-gradient(180deg, rgba(20, 23, 34, 0.94) 0%, rgba(13, 15, 23, 0.97) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 16px !important;
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(50px) saturate(220%) !important;
  -webkit-backdrop-filter: blur(50px) saturate(220%) !important;
  z-index: 40 !important;
  box-sizing: border-box !important;
  position: relative !important;
}

.calc-inspector-sidebar.apple-inspector-pane::-webkit-scrollbar {
  width: 4px !important;
}

.calc-inspector-sidebar.apple-inspector-pane::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12) !important;
  border-radius: 4px !important;
}

.calc-inspector-sidebar.apple-inspector-pane::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25) !important;
}

.calc-inspector-sidebar.apple-inspector-pane::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(10, 132, 255, 0.6), transparent);
  pointer-events: none;
}

/* Sections inside Inspector Pane */
.insp-section {
  padding: 8px 14px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  box-sizing: border-box !important;
}

.insp-section:last-child {
  border-bottom: none !important;
}

.insp-section-title {
  font-size: 9.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #94a3b8 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
}

.insp-section-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

/* 1. Fine & Wanteds Header */
.insp-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.015) 100%) !important;
  border-top-left-radius: 16px !important;
  border-top-right-radius: 16px !important;
  padding: 10px 14px 8px 14px !important;
  gap: 6px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  position: relative !important;
}

.insp-fine-block {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.insp-fine-display {
  font-family: var(--apple-font-display) !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: #f8fafc !important;
  line-height: 1.1 !important;
  font-variant-numeric: tabular-nums !important;
  transition: all 0.25s ease !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

.insp-fine-display.has-fine {
  color: #38bdf8 !important;
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.45) !important;
}

.insp-stars-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-top: 6px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.result-stars {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.result-stars .star {
  font-size: 14px !important;
  color: rgba(255, 255, 255, 0.15) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.result-stars .star.active {
  color: #fbbf24 !important;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.75)) !important;
  transform: scale(1.1) !important;
}

.result-stars .star.silver {
  color: rgba(255, 255, 255, 0.5) !important;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3)) !important;
}

.wanteds-pill {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #fbbf24 !important;
  background: rgba(245, 158, 11, 0.16) !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
  border-radius: 999px !important;
  padding: 2px 8px !important;
  line-height: 1.2 !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.15) !important;
  letter-spacing: 0.02em !important;
}

.haftzeit-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #38bdf8 !important;
  background: rgba(14, 165, 233, 0.16) !important;
  border: 1px solid rgba(14, 165, 233, 0.4) !important;
  border-radius: 999px !important;
  padding: 2px 8px !important;
  line-height: 1.2 !important;
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.15) !important;
}

/* 2. Action: Apple Copy Button & Compact Akte Box */
.insp-action {
  padding: 6px 14px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
}

.insp-action-bar {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.apple-btn-copy {
  flex: 1 !important;
  height: 32px !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, #0a84ff 0%, #0066cc 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  font-family: var(--apple-font) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  box-shadow: 
    0 4px 14px rgba(10, 132, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.apple-btn-copy:hover:not(:disabled) {
  filter: brightness(1.1) !important;
  box-shadow: 
    0 6px 18px rgba(10, 132, 255, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
  transform: translateY(-1px) !important;
}

.apple-btn-copy:active:not(:disabled) {
  transform: scale(0.98) !important;
}

.apple-btn-copy:disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

.apple-btn-copy.copied {
  background: linear-gradient(135deg, #30d158 0%, #248a3d 100%) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 4px 16px rgba(48, 209, 88, 0.5) !important;
}

.apple-btn-reset {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--apple-text-tertiary) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  transition: all 0.2s ease !important;
}

.apple-btn-reset:hover {
  background: rgba(239, 68, 68, 0.18) !important;
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  transform: rotate(-45deg) !important;
}

.apple-akte-box {
  background: rgba(0, 0, 0, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 8px !important;
  padding: 4px 10px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  height: 27px !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.apple-akte-box:hover {
  background: rgba(10, 132, 255, 0.08) !important;
  border-color: rgba(10, 132, 255, 0.4) !important;
  box-shadow: 0 0 12px rgba(10, 132, 255, 0.2) !important;
}

.apple-akte-box.copied {
  border-color: rgba(48, 209, 88, 0.6) !important;
  background: rgba(48, 209, 88, 0.12) !important;
}

.akte-dot-indicator {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: #0a84ff !important;
  box-shadow: 0 0 6px #0a84ff !important;
  flex-shrink: 0 !important;
}

.apple-akte-text {
  font-family: Consolas, 'SF Mono', monospace !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  color: #f1f5f9 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  flex: 1 !important;
  line-height: 1.2 !important;
}

.apple-akte-text.empty {
  color: #64748b !important;
  font-style: italic !important;
}

.apple-akte-icon {
  font-size: 11px !important;
  color: #64748b !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
}

.apple-akte-box:hover .apple-akte-icon {
  color: #38bdf8 !important;
}

/* 3. Selected Offenses */
.insp-offenses-section {
  flex: 0 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 8px 14px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  gap: 6px !important;
  box-sizing: border-box !important;
}

.insp-link-clear {
  background: none !important;
  border: none !important;
  color: #f87171 !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  opacity: 0.85 !important;
  transition: all 0.15s !important;
  display: inline-flex !important;
  align-items: center !important;
}

.insp-link-clear:hover {
  opacity: 1 !important;
  background: rgba(239, 68, 68, 0.15) !important;
  color: #ef4444 !important;
}

.insp-empty-hint {
  height: 44px !important;
  min-height: 44px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 6px 12px !important;
  color: #94a3b8 !important;
  font-size: 11px !important;
  border-radius: 9px !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px dashed rgba(255, 255, 255, 0.1) !important;
  box-sizing: border-box !important;
}

.insp-empty-icon-wrap {
  width: 26px !important;
  height: 26px !important;
  border-radius: 7px !important;
  background: rgba(10, 132, 255, 0.12) !important;
  color: #38bdf8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  flex-shrink: 0 !important;
  margin-bottom: 0 !important;
}

.insp-empty-text-wrap {
  display: flex !important;
  flex-direction: column !important;
  gap: 1px !important;
  text-align: left !important;
  overflow: hidden !important;
  line-height: 1.2 !important;
}

.insp-empty-title {
  font-weight: 600 !important;
  color: #cbd5e1 !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
}

.insp-empty-sub {
  font-size: 9.5px !important;
  color: #64748b !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  overflow: hidden !important;
}

.insp-chips-wrap {
  max-height: 130px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  overflow-y: auto !important;
  padding-right: 3px !important;
}

.insp-chip {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 3px 8px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 7px !important;
  font-size: 11px !important;
  min-height: 24px !important;
  box-sizing: border-box !important;
  transition: all 0.15s ease !important;
}

.insp-chip:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(10, 132, 255, 0.3) !important;
  transform: translateX(2px) !important;
}

.insp-chip-id {
  font-family: var(--apple-font-mono) !important;
  font-size: 9.5px !important;
  font-weight: 700 !important;
  color: #38bdf8 !important;
  background: rgba(14, 165, 233, 0.15) !important;
  border: 1px solid rgba(14, 165, 233, 0.3) !important;
  padding: 1px 5px !important;
  border-radius: 4px !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.insp-chip-id:hover {
  background: #0ea5e9 !important;
  color: #ffffff !important;
}

.insp-chip-name {
  flex: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  color: #f1f5f9 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
}

.insp-chip-fine {
  font-weight: 700 !important;
  color: #34d399 !important;
  font-size: 11px !important;
  font-variant-numeric: tabular-nums !important;
  flex-shrink: 0 !important;
}

.insp-chip-del {
  background: none !important;
  border: none !important;
  color: #94a3b8 !important;
  font-size: 10px !important;
  cursor: pointer !important;
  padding: 2px !important;
  line-height: 1 !important;
  border-radius: 3px !important;
  transition: all 0.15s !important;
}

.insp-chip-del:hover {
  color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.2) !important;
}

/* 4. Options: Segmented Pill Toggles */
.insp-options {
  padding: 8px 14px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.insp-pills-row {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 6px !important;
  width: 100% !important;
}

.insp-pill-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 30px !important;
  padding: 0 10px !important;
  font-family: var(--apple-font) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  outline: none !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  transition: all 0.18s ease !important;
}

.insp-pill-toggle:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.insp-pill-toggle:disabled,
.insp-pill-toggle.is-disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  pointer-events: auto !important;
  filter: grayscale(0.6) !important;
}

.insp-pill-icon {
  font-size: 11px !important;
  opacity: 0.85 !important;
  flex-shrink: 0 !important;
}

.insp-pill-dot {
  display: none !important;
}

.insp-pill-toggle.pill-reue.active {
  background: rgba(48, 209, 88, 0.18) !important;
  border-color: rgba(48, 209, 88, 0.5) !important;
  color: #34d399 !important;
  box-shadow: 0 0 12px rgba(48, 209, 88, 0.25) !important;
}

.insp-pill-toggle.pill-reue.active .insp-pill-dot {
  background: #34d399 !important;
  box-shadow: 0 0 8px #34d399 !important;
}

.insp-pill-toggle.pill-repeat.active {
  background: rgba(255, 159, 10, 0.18) !important;
  border-color: rgba(255, 159, 10, 0.5) !important;
  color: #fbbf24 !important;
  box-shadow: 0 0 12px rgba(255, 159, 10, 0.25) !important;
}

.insp-pill-toggle.pill-repeat.active .insp-pill-dot {
  background: #fbbf24 !important;
  box-shadow: 0 0 8px #fbbf24 !important;
}

.insp-pill-toggle.pill-long.active {
  background: rgba(56, 189, 248, 0.18) !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
  color: #38bdf8 !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25) !important;
}

.insp-pill-toggle.pill-long.active .insp-pill-dot {
  background: #38bdf8 !important;
  box-shadow: 0 0 8px #38bdf8 !important;
}

.insp-pill-toggle.pill-sys-error.active {
  background: rgba(239, 68, 68, 0.18) !important;
  border-color: rgba(239, 68, 68, 0.5) !important;
  color: #f87171 !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.25) !important;
}

.insp-pill-toggle.pill-sys-error.active .insp-pill-dot {
  background: #f87171 !important;
  box-shadow: 0 0 8px #f87171 !important;
}

/* Legal Warning / Zusatzinfos Box */
.insp-warning-box {
  margin-top: 8px !important;
  padding: 7px 10px !important;
  border-radius: 9px !important;
  background: rgba(239, 68, 68, 0.11) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  animation: fadeIn 0.2s ease !important;
}

.insp-warning-header {
  font-size: 9.5px !important;
  font-weight: 700 !important;
  color: #f87171 !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  letter-spacing: 0.4px !important;
  text-transform: uppercase !important;
}

.insp-warning-items {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

.insp-warning-item {
  font-size: 10.5px !important;
  font-weight: 600 !important;
  color: #fecaca !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
}

.insp-warning-item i {
  font-size: 9.5px !important;
  color: #f87171 !important;
}

/* 5. Details: Ergonomic 2-Row Layout */
.insp-details {
  padding: 8px 14px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.insp-field {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

.insp-field label {
  font-size: 9px !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
}

.insp-input {
  width: 100% !important;
  height: 30px !important;
  padding: 4px 10px !important;
  font-family: var(--apple-font) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #ffffff !important;
  background: rgba(0, 0, 0, 0.28) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.insp-input:focus {
  border-color: #0a84ff !important;
  background: rgba(10, 132, 255, 0.08) !important;
  box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.25) !important;
}

/* 6. Tools: Quick Access Colored Tiles */
.insp-tools {
  margin-top: auto !important;
  flex-shrink: 0 !important;
  padding: 10px 14px 12px 14px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-bottom: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.insp-tools-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 6px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.insp-btn-tool {
  height: 32px !important;
  padding: 0 9px !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #e2e8f0 !important;
  font-family: var(--apple-font) !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 7px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-sizing: border-box !important;
  position: relative !important;
  overflow: hidden !important;
}

.tool-icon-badge {
  width: 20px !important;
  height: 20px !important;
  border-radius: 5px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 10.5px !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
}

/* 4 Tailored Themes */
.tool-rechte .tool-icon-badge {
  background: rgba(245, 158, 11, 0.2) !important;
  color: #fbbf24 !important;
}
.tool-rechte:hover {
  background: rgba(245, 158, 11, 0.1) !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.2) !important;
  transform: translateY(-2px) !important;
}

.tool-anwaelte .tool-icon-badge {
  background: rgba(14, 165, 233, 0.2) !important;
  color: #38bdf8 !important;
}
.tool-anwaelte:hover {
  background: rgba(14, 165, 233, 0.1) !important;
  border-color: rgba(14, 165, 233, 0.4) !important;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.2) !important;
  transform: translateY(-2px) !important;
}

.tool-gesetzbuch .tool-icon-badge {
  background: rgba(168, 85, 247, 0.2) !important;
  color: #c084fc !important;
}
.tool-gesetzbuch:hover {
  background: rgba(168, 85, 247, 0.1) !important;
  border-color: rgba(168, 85, 247, 0.4) !important;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.2) !important;
  transform: translateY(-2px) !important;
}

.tool-kalender .tool-icon-badge {
  background: rgba(16, 185, 129, 0.2) !important;
  color: #34d399 !important;
}
.tool-kalender:hover {
  background: rgba(16, 185, 129, 0.1) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2) !important;
  transform: translateY(-2px) !important;
}

/* Legacy result panel compatibility */
.result-panel {
  padding: 18px 24px !important;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
}

.result-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.result-fine {
  font-family: var(--apple-font-display);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-shadow: 0 2px 14px rgba(255, 214, 10, 0.25);
}

.result-stars {
  display: flex;
  align-items: center;
  gap: 6px;
}

.result-stars .star {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: transform 0.2s var(--apple-spring), color 0.2s ease;
}

.result-stars .star.active {
  color: var(--apple-yellow);
  text-shadow: 0 0 12px rgba(255, 214, 10, 0.5);
  transform: scale(1.05);
}

.result-stars .star.silver {
  color: rgba(255, 255, 255, 0.45);
}

.result-stars .star:hover {
  transform: scale(1.25);
}

/* Genuine iOS Toggle Switches */
.result-options {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 10px;
  border-top: 1px solid var(--apple-border);
}

label.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--apple-text-secondary);
  transition: color 0.15s ease;
}

label.toggle:hover {
  color: var(--apple-text-primary);
}

label.toggle input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 38px;
  height: 22px;
  background: rgba(120, 120, 128, 0.32);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  outline: none;
  border: none !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: background 0.25s var(--apple-spring);
  margin: 0;
  padding: 0 !important;
  flex-shrink: 0;
}

label.toggle input[type="checkbox"]::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s var(--apple-spring);
}

label.toggle input[type="checkbox"]:checked {
  background: var(--apple-green) !important;
}

label.toggle input[type="checkbox"]:checked::after {
  transform: translateX(16px);
}

/* Rights Section */
.rights-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rights-buttons {
  display: flex;
  gap: 10px;
}

.rights-card {
  padding: 16px 20px !important;
  border-radius: var(--apple-radius-md) !important;
  background: var(--apple-surface-2) !important;
}

.rights-header {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.rights-list-modern li {
  color: var(--apple-text-secondary);
  font-size: 13px;
  margin-bottom: 6px;
}

/* Grouped Form Inputs (Apple Inset Style) */
.calc-inputs {
  padding: 14px 18px !important;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}

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

.input-group label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--apple-text-tertiary);
}

/* Apple Form Fields (Inputs & Selects) */
input[type="text"],
input[type="number"],
input[type="password"],
input[type="date"],
input[type="time"],
select,
textarea {
  background: rgba(255, 255, 255, 0.055) !important;
  border: 1px solid var(--apple-border) !important;
  border-radius: var(--apple-radius-sm) !important;
  color: #ffffff !important;
  font-family: var(--apple-font) !important;
  font-size: 13px !important;
  padding: 8px 12px !important;
  outline: none !important;
  transition: all 0.2s var(--apple-ease);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

input:focus,
select:focus,
textarea:focus {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: var(--apple-blue) !important;
  box-shadow: 
    0 0 0 3px rgba(10, 132, 255, 0.25),
    inset 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* Search Bar (Spotlight Style) */
.search-input {
  background: rgba(255, 255, 255, 0.065) !important;
  border: 1px solid var(--apple-border) !important;
  border-radius: var(--apple-radius-md) !important;
  font-size: 13.5px !important;
  height: 40px !important;
  transition: all 0.2s var(--apple-spring) !important;
}

.search-input:focus {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: var(--apple-blue) !important;
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.3) !important;
}

/* Akte Box (Apple Code View) */
.akte-box {
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid var(--apple-border) !important;
  border-radius: var(--apple-radius-md) !important;
  padding: 12px 16px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.akte-box:hover {
  background: rgba(0, 0, 0, 0.55) !important;
  border-color: var(--apple-border-light) !important;
}

.akte-box code {
  font-family: var(--apple-font-mono) !important;
  font-size: 13px;
  color: var(--apple-teal);
  letter-spacing: -0.01em;
}

.copy-hint {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--apple-text-tertiary);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Action Buttons */
.result-actions {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.result-actions .akte-box {
  flex: 1;
}

/* --- 9. APPLE SYSTEM BUTTONS --- */
button.btn-primary,
.btn-primary {
  background: var(--apple-blue) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: var(--apple-radius-sm) !important;
  color: #ffffff !important;
  font-family: var(--apple-font);
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
  padding: 8px 18px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 
    0 2px 6px rgba(0, 113, 227, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  transition: all 0.18s var(--apple-spring);
}

button.btn-primary:hover,
.btn-primary:hover {
  background: var(--apple-blue-hover) !important;
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.5) !important;
  transform: translateY(-1px);
}

button.btn-primary:active,
.btn-primary:active {
  transform: scale(0.97);
}

button.btn-secondary,
.btn-secondary,
.btn-reset {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid var(--apple-border) !important;
  border-radius: var(--apple-radius-sm) !important;
  color: var(--apple-text-primary) !important;
  font-family: var(--apple-font);
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em;
  padding: 8px 16px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  transition: all 0.18s var(--apple-spring);
}

button.btn-secondary:hover,
.btn-secondary:hover,
.btn-reset:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: var(--apple-border-light) !important;
  transform: translateY(-1px);
}

button.btn-secondary:active,
.btn-secondary:active,
.btn-reset:active {
  transform: scale(0.97);
}

.btn-reset {
  color: var(--apple-red) !important;
  background: rgba(255, 59, 48, 0.1) !important;
  border-color: rgba(255, 59, 48, 0.25) !important;
}

.btn-reset:hover {
  background: rgba(255, 59, 48, 0.2) !important;
  border-color: rgba(255, 59, 48, 0.4) !important;
}

/* --- 10. OFFENSE CATALOG & CARDS --- */
.offense-catalog {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cat-header {
  font-family: var(--apple-font-display);
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--apple-text-tertiary) !important;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 5px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Base Offense Card */
.offense-card {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 7px !important;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease !important;
  user-select: none;
  box-sizing: border-box !important;
}

.offense-card:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  transform: translateY(-1px);
}

.offense-card:active {
  transform: scale(0.99);
}

.offense-card.selected {
  background: rgba(10, 132, 255, 0.14) !important;
  border-color: var(--apple-blue) !important;
  box-shadow: 
    0 2px 10px rgba(10, 132, 255, 0.2),
    inset 0 0 0 1px rgba(10, 132, 255, 0.4) !important;
}

.offense-id {
  font-family: var(--apple-font-mono) !important;
  font-size: 9.5px !important;
  font-weight: 700 !important;
  color: #2997ff !important;
  padding: 1.5px 5px !important;
  border-radius: 4px !important;
  background: rgba(10, 132, 255, 0.1) !important;
  border: 1px solid rgba(10, 132, 255, 0.2) !important;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap !important;
}

.offense-id:hover {
  background: rgba(10, 132, 255, 0.25) !important;
  color: #ffffff !important;
  border-color: rgba(10, 132, 255, 0.45) !important;
}

.offense-fine {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #30d158 !important;
  background: rgba(48, 209, 88, 0.08) !important;
  border: 1px solid rgba(48, 209, 88, 0.2) !important;
  padding: 1px 6px !important;
  border-radius: 4px !important;
  font-variant-numeric: tabular-nums !important;
  white-space: nowrap !important;
}

.offense-name {
  font-size: 11.5px !important;
  font-weight: 500 !important;
  color: #f5f5f7 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.3 !important;
}

.offense-stars {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
}

.offense-stars .star {
  font-size: 9.5px !important;
  color: rgba(255, 255, 255, 0.15) !important;
}

.offense-stars .star.mandatory {
  color: #ffb300 !important;
}

.offense-stars .star.voluntary {
  color: rgba(255, 255, 255, 0.2) !important;
}

.offense-stars .star.voluntary.active {
  color: #ff9f0a !important;
}

/* === LIST VIEW (Ultra-Sleek macOS Table Row) === */
.offense-grid.list-view {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

.offense-grid.list-view .offense-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 4px 10px !important;
  min-height: 32px !important;
  height: 32px !important;
  border-radius: 6px !important;
}

.offense-grid.list-view .offense-card:hover {
  transform: none !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.offense-grid.list-view .offense-card.selected {
  transform: none !important;
}

.offense-grid.list-view .offense-card-header {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

.offense-grid.list-view .offense-id {
  min-width: 62px !important;
  text-align: center !important;
}

.offense-grid.list-view .offense-name {
  flex: 1 !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: 11.5px !important;
  margin: 0 !important;
}

.offense-grid.list-view .offense-stars-wrapper {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
  margin-left: auto !important;
}

.offense-grid.list-view .offense-fine-card {
  display: none !important;
}

.offense-grid.list-view .offense-fine-list {
  display: inline-flex !important;
}

/* === GRID / RASTER VIEW (Sleek Compact Cards) === */
.offense-grid:not(.list-view) {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  gap: 7px !important;
}

.offense-grid:not(.list-view) .offense-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: 8px 10px !important;
  min-height: 76px !important;
  gap: 6px !important;
  border-radius: 8px !important;
}

.offense-grid:not(.list-view) .offense-card-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.offense-grid:not(.list-view) .offense-name {
  font-size: 11px !important;
  line-height: 1.25 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.offense-grid:not(.list-view) .offense-fine-card {
  display: inline-flex !important;
}

.offense-grid:not(.list-view) .offense-fine-list {
  display: none !important;
}

/* --- 11. TRACKER TAB (APPLE HEALTH / FITNESS METRICS) --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.stat-card {
  padding: 16px !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  border-radius: var(--apple-radius-md) !important;
}

.stat-value {
  font-family: var(--apple-font-display);
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--apple-text-tertiary);
}

/* Live Activity Duty Pill */
.duty-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--apple-surface-1);
  border: 1px solid var(--apple-border);
  border-radius: var(--apple-radius-md);
}

.duty-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--apple-text-secondary);
}

.duty-status.active {
  color: var(--apple-green);
}

.duty-status.active i {
  color: var(--apple-green);
  filter: drop-shadow(0 0 6px rgba(52, 199, 89, 0.6));
}

/* --- 12. BLITZER TAB (APPLE RADAR HUD) --- */
.blitzer-setup-card {
  padding: 16px 20px !important;
}

.zone-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.zone-pill-btn {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid var(--apple-border) !important;
  border-radius: var(--apple-radius-pill) !important;
  padding: 6px 14px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--apple-text-secondary) !important;
  cursor: pointer;
  transition: all 0.15s ease;
}

.zone-pill-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

.zone-pill-btn.active {
  background: var(--apple-blue) !important;
  border-color: var(--apple-blue) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(10, 132, 255, 0.35) !important;
}

.btn-scan-massive {
  width: 100%;
  padding: 16px 24px !important;
  border-radius: var(--apple-radius-lg) !important;
  background: linear-gradient(135deg, #0a84ff 0%, #0071e3 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  box-shadow: 
    0 8px 24px rgba(10, 132, 255, 0.4),
    var(--apple-highlight-top) !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s var(--apple-spring);
}

.btn-scan-massive:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(10, 132, 255, 0.55) !important;
}

.btn-scan-massive:active {
  transform: scale(0.99);
}

/* --- 13. MACOS SHEETS & MODALS (ZERO OVERLAPS, STRICT STACKING) --- */
.settings-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(0, 0, 0, 0.65) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 99999 !important;
  animation: modalBackdropFade 0.25s ease-out !important;
}

.settings-overlay[style*="display: none"],
.settings-overlay[hidden] {
  display: none !important;
}

/* Base Modal Surface */
.settings-modal,
.modal-content,
.modal-calendar-window,
.modal-history-window,
.support-modal-window,
.modal-gesetzbuch-window,
.modal-register-window,
.modal-rights-window {
  background: var(--apple-surface-elevated) !important;
  border: 1px solid var(--apple-border-light) !important;
  border-radius: var(--apple-radius-modal) !important;
  box-shadow: var(--apple-shadow-modal) !important;
  backdrop-filter: blur(40px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(180%) !important;
  animation: modalSheetSlide 0.3s var(--apple-spring);
}

/* Dedicated dimensions for each modal type (No squishing!) */
.settings-modal,
.support-modal-window {
  width: 560px !important;
  max-width: 92vw !important;
  max-height: 85vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 24px !important;
}

.modal-history-window {
  width: 860px !important;
  max-width: 95vw !important;
  max-height: 86vh !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

.modal-calendar-window {
  width: 780px !important;
  max-width: 94vw !important;
  max-height: 86vh !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 22px 24px !important;
}

.modal-gesetzbuch-window {
  width: 1120px !important;
  max-width: 96vw !important;
  height: 88vh !important;
  padding: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Fixed Bottom Profile Bar (Zero Overlap with Inspector or Modals) */
.profile-bar {
  flex-shrink: 0 !important;
  height: 44px !important;
  padding: 0 16px !important;
  z-index: 100 !important;
  position: relative !important;
  background: rgba(14, 16, 22, 0.96) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
}

@keyframes modalBackdropFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSheetSlide {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(14px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  padding: 14px 20px !important;
  border-bottom: 1px solid var(--apple-border) !important;
  background: rgba(255, 255, 255, 0.02) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3,
.modal-header h2 {
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  margin: 0 !important;
}

/* --- PIXEL-PERFECT CENTERED CLOSE BUTTONS (MODALS & POPUPS) --- */
.win-btn,
.win-btn.close,
button.win-btn.close,
.modal-header .win-btn.close,
.ar-header-right .win-btn.close,
.rights-modal-header .win-btn.close,
.delete-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  vertical-align: middle !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  border: none !important;
  outline: none !important;
}

.win-btn.close,
button.win-btn.close,
.modal-header .win-btn.close,
.ar-header-right .win-btn.close,
.rights-modal-header .win-btn.close {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  border-radius: 50% !important;
  background: #ff453a !important; /* Premium Apple Red */
  color: #ffffff !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(255, 69, 58, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.15s ease, box-shadow 0.15s ease !important;
  flex-shrink: 0 !important;
}

.win-btn.close:hover,
button.win-btn.close:hover,
.modal-header .win-btn.close:hover,
.ar-header-right .win-btn.close:hover,
.rights-modal-header .win-btn.close:hover {
  background: #ff5b52 !important;
  color: #ffffff !important;
  transform: scale(1.08) !important;
  box-shadow: 0 4px 14px rgba(255, 69, 58, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

.win-btn.close:active,
button.win-btn.close:active,
.modal-header .win-btn.close:active,
.ar-header-right .win-btn.close:active,
.rights-modal-header .win-btn.close:active {
  transform: scale(0.92) !important;
}

.win-btn.close i,
button.win-btn.close i,
.modal-header .win-btn.close i,
.ar-header-right .win-btn.close i,
.rights-modal-header .win-btn.close i {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  font-size: 13px !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #ffffff !important;
  transform: none !important;
}

.delete-btn {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  border-radius: 50% !important;
  background: rgba(255, 59, 48, 0.12) !important;
  color: #ff453a !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
  flex-shrink: 0 !important;
}

.delete-btn:hover {
  background: #ff453a !important;
  color: #ffffff !important;
  transform: scale(1.1) !important;
}

.delete-btn i {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  line-height: 1 !important;
}

/* --- 14. DATA TABLES (APPLE HIG STANDARD) --- */
table.anwalts-table,
table.history-table,
table.duty-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--apple-text-tertiary);
  border-bottom: 1px solid var(--apple-border);
}

table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--apple-text-primary);
  font-variant-numeric: tabular-nums;
}

table tr:hover td {
  background: rgba(255, 255, 255, 0.035);
}

/* --- 15. CENTERED MIRANDA RIGHTS MODAL (APPLE SEQUOIA) --- */
.modal-rights-window {
  width: 520px;
  max-width: 92vw;
  background: var(--apple-surface-elevated) !important;
  border: 1px solid var(--apple-border-light) !important;
  border-radius: var(--apple-radius-modal) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(40px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(180%) !important;
  animation: modalSheetSlide 0.3s var(--apple-spring);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-rights-header {
  padding: 16px 20px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rights-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rights-header-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(10, 132, 255, 0.15);
  border: 1px solid rgba(10, 132, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  font-size: 16px;
}

.rights-header-title h3 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.rights-header-title span {
  font-size: 11.5px;
  color: var(--apple-text-tertiary);
}

.modal-rights-body {
  padding: 18px 20px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rights-banner-notice {
  padding: 9px 13px;
  border-radius: 9px;
  background: rgba(10, 132, 255, 0.1);
  border: 1px solid rgba(10, 132, 255, 0.25);
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rights-list-cards {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rights-item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 13px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.15s ease;
}

.rights-item-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

.rights-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(10, 132, 255, 0.18);
  border: 1px solid rgba(10, 132, 255, 0.35);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rights-text {
  font-size: 12.5px;
  color: var(--apple-text-primary);
  line-height: 1.35;
}

.rights-text strong {
  color: #ffffff;
}

.rights-closing-prompt {
  margin-top: 6px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 159, 10, 0.12);
  border: 1px solid rgba(255, 159, 10, 0.3);
  color: #ff9f0a;
  font-size: 14.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-shadow: 0 0 10px rgba(255, 159, 10, 0.35);
}

/* --- 16. APPLE SEQUOIA ANWALTSREGISTER WINDOW --- */
.modal-register-window {
  width: 1080px;
  max-width: 95vw;
  height: 86vh;
  background: var(--apple-surface-elevated) !important;
  border: 1px solid var(--apple-border-light) !important;
  border-radius: var(--apple-radius-modal) !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(40px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(180%) !important;
  animation: modalSheetSlide 0.3s var(--apple-spring);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Top Header */
.ar-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  flex-shrink: 0;
}

.ar-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.ar-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.3), rgba(0, 113, 227, 0.15));
  border: 1px solid rgba(10, 132, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  font-size: 17px;
}

.ar-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.ar-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--apple-text-tertiary);
  margin-top: 2px;
}

.ar-count-badge {
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--apple-text-secondary);
  font-weight: 600;
}

.ar-meta-sep {
  opacity: 0.4;
}

/* Search & Filter Center */
.ar-header-center {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 520px;
}

.ar-search-box {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.ar-search-icon {
  position: absolute;
  left: 12px;
  color: var(--apple-text-tertiary);
  font-size: 12px;
  pointer-events: none;
}

.ar-search-input {
  width: 100%;
  height: 35px;
  padding: 0 28px 0 34px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #ffffff;
  font-family: var(--apple-font);
  font-size: 12px;
  outline: none;
  transition: all 0.18s ease;
}

.ar-search-input:focus {
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.25);
  background: rgba(0, 0, 0, 0.5);
}

.ar-search-clear {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: var(--apple-text-tertiary);
  font-size: 12px;
  cursor: pointer;
  padding: 4px;
}

.ar-status-select {
  height: 35px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--apple-text-secondary);
  font-family: var(--apple-font);
  font-size: 11.5px;
  outline: none;
  cursor: pointer;
}

/* Header Right */
.ar-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ar-btn-refresh {
  height: 35px;
  padding: 0 13px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--apple-text-secondary);
  font-family: var(--apple-font);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.ar-btn-refresh:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Navigation Segmented Row */
.ar-nav-row {
  padding: 9px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.22);
  flex-shrink: 0;
  overflow-x: auto;
}

.ar-segmented-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ar-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--apple-text-secondary);
  font-family: var(--apple-font);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s var(--apple-spring);
}

.ar-nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.ar-nav-item.active {
  background: rgba(10, 132, 255, 0.2) !important;
  border-color: #0a84ff !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(10, 132, 255, 0.35) !important;
  font-weight: 600 !important;
}

.ar-pill-num {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 700;
}

/* Main Scrollable Body */
.ar-body-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ar-loading-state,
.ar-error-state,
.ar-empty-state {
  text-align: center;
  padding: 45px 20px;
  color: var(--apple-text-tertiary);
}

.ar-loading-state i,
.ar-error-state i,
.ar-empty-state i {
  font-size: 28px;
  margin-bottom: 12px;
  opacity: 0.6;
}

.ar-content-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ar-card-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.ar-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ar-section-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.ar-section-dot.dot-blue { background: #0a84ff; box-shadow: 0 0 6px #0a84ff; }
.ar-section-dot.dot-purple { background: #bf5af2; box-shadow: 0 0 6px #bf5af2; }
.ar-section-dot.dot-amber { background: #ff9f0a; box-shadow: 0 0 6px #ff9f0a; }

.ar-section-header h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.ar-section-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--apple-text-secondary);
}

.ar-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.ar-table th {
  padding: 8px 16px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--apple-text-tertiary);
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.15);
}

.ar-table td {
  padding: 9px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--apple-text-primary);
  vertical-align: middle;
}

.ar-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.td-name {
  color: #ffffff !important;
  font-weight: 600;
}

/* Status Tags */
.ar-tag-valid {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2.5px 8px;
  border-radius: 6px;
  background: rgba(52, 199, 89, 0.14);
  border: 1px solid rgba(52, 199, 89, 0.35);
  color: #30d158;
  font-size: 11px;
  font-weight: 600;
}

.ar-tag-expired {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2.5px 8px;
  border-radius: 6px;
  background: rgba(255, 69, 58, 0.14);
  border: 1px solid rgba(255, 69, 58, 0.35);
  color: #ff453a;
  font-size: 11px;
  font-weight: 600;
}

.ar-tag-muted {
  color: var(--apple-text-tertiary);
}

/* Orga Pills */
.ar-orga-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.orga-lspd { background: rgba(10, 132, 255, 0.18); color: #0a84ff; border: 1px solid rgba(10, 132, 255, 0.4); }
.orga-fib  { background: rgba(255, 159, 10, 0.18); color: #ff9f0a; border: 1px solid rgba(255, 159, 10, 0.4); }
.orga-sahp { background: rgba(175, 82, 222, 0.18); color: #bf5af2; border: 1px solid rgba(175, 82, 222, 0.4); }
.orga-ems  { background: rgba(255, 45, 85, 0.18); color: #ff375f; border: 1px solid rgba(255, 45, 85, 0.4); }
.orga-ng   { background: rgba(48, 209, 88, 0.18); color: #30d158; border: 1px solid rgba(48, 209, 88, 0.4); }
.orga-gov  { background: rgba(255, 214, 10, 0.18); color: #ffd60a; border: 1px solid rgba(255, 214, 10, 0.4); }

.ar-role-pill {
  display: inline-flex;
  align-items: center;
  padding: 2.5px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--apple-text-secondary);
  font-size: 11px;
  font-weight: 500;
}

/* Phone Pill */
.ar-phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--apple-text-secondary);
  font-family: var(--apple-font-mono);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ar-phone-pill:hover {
  background: rgba(10, 132, 255, 0.15);
  border-color: rgba(10, 132, 255, 0.35);
  color: #38bdf8;
}

.ar-copy-icon {
  font-size: 10px;
  opacity: 0.6;
}

/* Footer Bar */
.ar-window-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
  flex-shrink: 0;
  font-size: 11px;
  color: var(--apple-text-tertiary);
}

.ar-footer-legend {
  display: flex;
  align-items: center;
  gap: 14px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.legend-dot.valid { background: #30d158; box-shadow: 0 0 5px #30d158; }
.legend-dot.expired { background: #ff453a; box-shadow: 0 0 5px #ff453a; }

/* ==========================================================================
   WEB-VERSION SPECIFIC ENHANCEMENTS
   ========================================================================== */

/* Web Version Header Badges */
.web-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-desktop-app {
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.22), rgba(48, 209, 88, 0.22)) !important;
  border: 1px solid rgba(10, 132, 255, 0.4) !important;
  color: #ffffff !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  padding: 4px 10px !important;
  border-radius: 7px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.btn-desktop-app:hover {
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.4), rgba(48, 209, 88, 0.4)) !important;
  border-color: rgba(56, 189, 248, 0.7) !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35) !important;
  transform: translateY(-1px);
}

/* Tracker Web Limit Container & Progress Bar */
.tracker-limit-banner {
  background: rgba(28, 28, 35, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.tracker-limit-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.tracker-limit-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tracker-limit-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tracker-limit-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 159, 10, 0.2);
  color: #ff9f0a;
  border: 1px solid rgba(255, 159, 10, 0.3);
}

.tracker-limit-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
}

.tracker-limit-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0a84ff, #30d158);
  transition: width 0.4s ease;
}

.tracker-limit-bar-fill.near-limit {
  background: linear-gradient(90deg, #ff9f0a, #ff453a);
}

.tracker-limit-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--apple-text-secondary, #86868b);
  white-space: nowrap;
}

/* First-visit Name Onboarding Modal */
.onboarding-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
}

.onboarding-card {
  width: 90%;
  max-width: 440px;
  background: rgba(22, 24, 34, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(10, 132, 255, 0.25);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.onboarding-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.onboarding-logo img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 210, 255, 0.3);
  object-fit: contain;
}

.onboarding-card h2,
.onboarding-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.onboarding-subtitle {
  font-size: 13px;
  color: #86868b;
  margin-bottom: 24px;
  line-height: 1.4;
}

.onboarding-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.onboarding-input-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.onboarding-input-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: #a1a1aa;
  display: flex;
  align-items: center;
  gap: 6px;
}

.onboarding-input-group input,
.onboarding-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  color: #ffffff;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}

.onboarding-input-group input:focus,
.onboarding-input:focus {
  border-color: #0a84ff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.25);
}

.onboarding-btn {
  width: 100%;
  background: #0a84ff;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(10, 132, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.onboarding-btn:hover {
  background: #0071e3;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(10, 132, 255, 0.45);
}

.onboarding-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.onboarding-footnote {
  font-size: 11.5px;
  color: #86868b;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.4;
}

/* 8. Fix v-cloak */
[v-cloak] {
  display: none !important;
}

/* 9. Einsatz-Details Ergonomic 2-Row Grid */
.insp-grid-fields {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 6px 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

select.insp-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer !important;
  padding-right: 22px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  background-size: 10px !important;
}

select.insp-select option {
  background: #131722 !important;
  color: #f1f5f9 !important;
  padding: 6px 10px !important;
}

select.insp-select.has-orga {
  border-color: rgba(14, 165, 233, 0.5) !important;
  background-color: rgba(14, 165, 233, 0.12) !important;
  color: #38bdf8 !important;
  font-weight: 600 !important;
}

/* ==========================================================================
   COOKIE / DATENSCHUTZ BANNER & LEGAL MODAL
   ========================================================================== */

/* Cookie Banner */
.gk-cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 880px;
  background: rgba(18, 20, 28, 0.95);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(0, 210, 255, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 210, 255, 0.18);
  border-radius: 16px;
  padding: 16px 22px;
  z-index: 999990;
}

.gk-cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.gk-cookie-text {
  flex: 1;
  min-width: 260px;
  text-align: left;
}

.gk-cookie-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.gk-cookie-title i {
  color: #00d2ff;
  font-size: 15px;
}

.gk-cookie-text p {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

.gk-cookie-link-btn {
  background: none;
  border: none;
  color: #00d2ff;
  cursor: pointer;
  text-decoration: underline;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
  font-weight: 600;
  display: inline;
  transition: color 0.15s;
}

.gk-cookie-link-btn:hover {
  color: #38bdf8;
  text-decoration: none;
}

.gk-cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.gk-cookie-btn {
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gk-cookie-btn-sec {
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 9px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  transition: all 0.2s;
}

.gk-cookie-btn-sec:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* Cookie Transition */
.cookie-slide-enter-active,
.cookie-slide-leave-active {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-slide-enter-from,
.cookie-slide-leave-to {
  opacity: 0;
  transform: translate(-50%, 25px);
}

@media (max-width: 650px) {
  .gk-cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .gk-cookie-actions {
    width: 100%;
    flex-direction: column;
  }
  .gk-cookie-btn,
  .gk-cookie-btn-sec {
    width: 100%;
    justify-content: center;
  }
}

/* Legal Modal (Impressum & Datenschutz) */
.legal-modal-window {
  max-width: 700px !important;
  width: 94% !important;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: rgba(20, 22, 32, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(0, 210, 255, 0.2) !important;
  border-radius: 20px !important;
  padding: 24px 28px !important;
}

.legal-modal-sub {
  font-size: 12.5px;
  color: #86868b;
  margin: -4px 0 16px 0;
  text-align: left;
}

.legal-nav-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
}

.legal-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.legal-tab-btn.active {
  color: #ffffff;
  background: rgba(10, 132, 255, 0.25);
  border-color: rgba(10, 132, 255, 0.5);
  box-shadow: 0 0 14px rgba(10, 132, 255, 0.25);
}

.legal-content-panel {
  flex: 1;
  overflow-y: auto;
  text-align: left;
  font-size: 13px;
  line-height: 1.6;
  color: #cbd5e1;
  padding-right: 10px;
  max-height: 52vh;
}

.legal-content-panel h4 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-content-panel h5 {
  font-size: 13.5px;
  font-weight: 700;
  color: #38bdf8;
  margin: 16px 0 6px 0;
}

.legal-content-panel p {
  margin: 0 0 10px 0;
  color: #94a3b8;
}

.legal-content-panel strong {
  color: #f1f5f9;
}

.legal-link {
  color: #38bdf8;
  text-decoration: underline;
  word-break: break-all;
  transition: color 0.15s;
}

.legal-link:hover {
  color: #7dd3fc;
  text-decoration: none;
}

.legal-modal-actions {
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

/* Tab App Badge */
.tab-badge-app {
  font-size: 10px;
  font-weight: 700;
  padding: 1.5px 7px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Minimal Blitzerechner in Tools */
.blitzer-minimal-section {
  background: rgba(20, 22, 32, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.blitzer-minimal-section:hover {
  border-color: rgba(0, 210, 255, 0.25);
  box-shadow: 0 6px 24px rgba(0, 210, 255, 0.1);
}

.blitzer-minimal-section label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted, #86868b);
  letter-spacing: 0.5px;
}

.blitzer-minimal-section input,
.blitzer-minimal-section select {
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
}

.blitzer-minimal-section input:focus,
.blitzer-minimal-section select:focus {
  border-color: #0a84ff !important;
  box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.25);
}

/* App-Only Feature Card */
.app-feature-card {
  transition: all 0.2s ease;
}

.app-feature-card:hover {
  background: rgba(0, 0, 0, 0.35) !important;
  border-color: rgba(10, 132, 255, 0.35) !important;
}

.tracker-app-notice {
  transition: all 0.2s ease;
}

.tracker-app-notice:hover {
  border-color: rgba(10, 132, 255, 0.45) !important;
  box-shadow: 0 8px 30px rgba(10, 132, 255, 0.15) !important;
}


