/* ==================== CSS VARIABLES ==================== */
:root {
  --primary: #C49A3C;
  --primary-dark: #A88432;
  --primary-light: #DBBE6E;
  --primary-bg: #FDF9F0;
  --secondary: #B08D3E;
  --secondary-dark: #8C7032;
  --accent: #D4AD4A;
  --success: #22C55E;
  --warning: #EAB308;
  --danger: #EF4444;
  --dark: #1E293B;
  --gray-900: #111827;
  --gray-800: #1F2937;
  --gray-700: #374151;
  --gray-600: #4B5563;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-300: #D1D5DB;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50: #F9FAFB;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --sidebar-width: 260px;
  --transition: all 0.2s ease;
}

/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #F8F9FC;
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.hidden { display: none !important; }

/* ==================== LOGIN SCREEN ==================== */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0F172A;
  position: relative;
  overflow: hidden;
  padding: 20px;
}

.login-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.login-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.login-shape-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #C49A3C 0%, transparent 70%);
  top: -15%;
  right: -10%;
  animation: floatShape1 12s ease-in-out infinite;
}

.login-shape-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #1E40AF 0%, transparent 70%);
  bottom: -10%;
  left: -10%;
  animation: floatShape2 15s ease-in-out infinite;
}

.login-shape-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #7C3AED 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: floatShape3 10s ease-in-out infinite;
}

@keyframes floatShape1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 30px) scale(1.1); }
}
@keyframes floatShape2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.15); }
}
@keyframes floatShape3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.5; }
}

.login-container {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 2;
}

.login-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: 48px 40px 36px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.1);
  animation: loginCardIn 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.login-logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(196,154,60,0.2), rgba(196,154,60,0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(196,154,60,0.2), inset 0 0 20px rgba(196,154,60,0.1);
  border: 2px solid rgba(196,154,60,0.3);
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 0 40px rgba(196,154,60,0.2), inset 0 0 20px rgba(196,154,60,0.1); }
  50% { box-shadow: 0 0 50px rgba(196,154,60,0.35), inset 0 0 20px rgba(196,154,60,0.15); }
}

.login-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-header h1 {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.login-header p {
  color: rgba(255,255,255,0.45);
  font-size: 14px;
  font-weight: 400;
  margin-top: 0;
}

.login-form .form-group {
  margin-bottom: 16px;
}

.login-input-wrap {
  display: flex;
  align-items: center;
  background: #1E293B;
  border: 2px solid #334155;
  border-radius: 14px;
  transition: all 0.3s ease;
}

.login-input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(196,154,60,0.15);
}

.login-input-icon {
  flex-shrink: 0;
  padding-left: 10px;
  padding-right: 10px;
  color: #64748B;
  font-size: 15px;
  transition: color 0.3s;
}

.login-input-wrap:focus-within .login-input-icon {
  color: var(--primary);
}

.login-form input {
  flex: 1;
  min-width: 0;
  padding: 16px 16px 16px 12px;
  border: none;
  border-radius: 0 14px 14px 0;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  transition: all 0.3s ease;
  background: transparent;
  color: #F1F5F9;
  letter-spacing: 0.2px;
}

.login-form input::placeholder {
  color: #64748B;
  font-weight: 400;
}

.login-form input:focus {
  outline: none;
  box-shadow: none;
}

/* Autofill fix - erzwingt dunklen Hintergrund */
.login-form input:-webkit-autofill,
.login-form input:-webkit-autofill:hover,
.login-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: #F1F5F9 !important;
  -webkit-box-shadow: 0 0 0 1000px #1E293B inset !important;
  border: none !important;
  font-size: 15px;
  transition: background-color 5000s ease-in-out 0s;
}

.login-btn {
  margin-top: 8px;
  padding: 14px 24px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary), #D4AA4F) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(196,154,60,0.35) !important;
  transition: all 0.3s ease !important;
  letter-spacing: 0.3px;
}

.login-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 30px rgba(196,154,60,0.45) !important;
}

.login-btn:active {
  transform: translateY(0) !important;
}

.login-btn i {
  transition: transform 0.3s;
}
.login-btn:hover i {
  transform: translateX(4px);
}

.login-footer {
  text-align: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.login-footer span {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.error-message {
  background: rgba(239,68,68,0.12);
  color: #FCA5A5;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 16px;
  border: 1px solid rgba(239,68,68,0.2);
  backdrop-filter: blur(10px);
}

/* Login responsive */
@media (max-width: 480px) {
  .login-card { padding: 36px 24px 28px; }
  .login-header h1 { font-size: 22px; }
  .login-shape-1 { width: 300px; height: 300px; }
  .login-shape-2 { width: 250px; height: 250px; }
  .login-shape-3 { width: 200px; height: 200px; }
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 12px rgba(196,154,60,0.25);
}
.btn-primary:hover { box-shadow: 0 6px 16px rgba(196,154,60,0.35); }

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}
.btn-secondary:hover { background: var(--gray-200); }

.btn-success {
  background: linear-gradient(135deg, var(--success), #059669);
  color: white;
  box-shadow: 0 4px 12px rgba(16,185,129,0.35);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #DC2626);
  color: white;
  box-shadow: 0 4px 12px rgba(239,68,68,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-bg); }

.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-xs { padding: 5px 10px; font-size: 12px; }

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  background: var(--gray-100);
  color: var(--gray-600);
}
.btn-icon:hover { background: var(--gray-200); color: var(--gray-800); }
.btn-icon.danger:hover { background: #FEF2F2; color: var(--danger); }
.btn-icon.success:hover { background: #ECFDF5; color: var(--success); }

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

/* ==================== SIDEBAR ==================== */
.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, #1E293B 0%, #334155 100%);
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 28px 24px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FEFCF6, #FDF5E6);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  border: 2px solid var(--primary-light);
}

.sidebar-logo img {
  width: 85%;
  height: 85%;
  object-fit: contain;
}

.sidebar-header h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.sidebar-subtitle {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-nav {
  list-style: none;
  padding: 16px 12px;
  flex: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition);
  margin-bottom: 4px;
}

.nav-link i {
  width: 20px;
  text-align: center;
  font-size: 16px;
}

.nav-link:hover {
  color: white;
  background: rgba(255,255,255,0.1);
}

.nav-link.active {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 4px 12px rgba(196,154,60,0.3);
}

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ==================== MOBILE HEADER ==================== */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(135deg, #1E293B, #334155);
  color: white;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 99;
  box-shadow: var(--shadow-md);
}

.mobile-header h2 {
  font-size: 18px;
  font-weight: 700;
}

.mobile-header h2 {
  font-size: 16px;
}

.mobile-menu-btn, .mobile-logout-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
}
.mobile-menu-btn:hover, .mobile-logout-btn:hover {
  background: rgba(255,255,255,0.2);
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 32px;
  min-height: 100vh;
}

.page { display: none; animation: fadeIn 0.3s ease; }
.page.active { display: block; }

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

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

.page-header h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.page-header h1 i {
  color: var(--primary);
  margin-right: 8px;
}

.page-subtitle {
  color: var(--gray-500);
  font-size: 14px;
  margin-top: 2px;
}

/* ==================== STATS GRID ==================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-purple .stat-icon { background: #FDF9F0; color: var(--primary); }
.stat-blue .stat-icon { background: #EFF6FF; color: #3B82F6; }
.stat-green .stat-icon { background: #F0FDF4; color: var(--success); }
.stat-orange .stat-icon { background: #FFFBEB; color: var(--warning); }

.stat-info { display: flex; flex-direction: column; }

.stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 500;
}

/* ==================== CARDS ==================== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
}

.card-header h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
}

.card-header h2 i {
  color: var(--primary);
  margin-right: 8px;
}

/* ==================== SEARCH BAR ==================== */
.search-bar {
  position: relative;
  margin-bottom: 24px;
}

.search-bar i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 16px;
}

.search-bar input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
  transition: var(--transition);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(184,134,11,0.1);
}

/* ==================== INFLUENCER GRID ==================== */
.influencer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.influencer-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  overflow: hidden;
}

.influencer-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.influencer-card-header {
  background: linear-gradient(135deg, #FEFCF8, #FBF3E4);
  padding: 20px 20px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.influencer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  overflow: hidden;
}

.influencer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Profilbild Upload */
.profile-upload-area {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding: 14px;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 2px dashed var(--gray-200);
  transition: border-color 0.2s;
}

.profile-upload-area:hover {
  border-color: var(--primary);
}

.profile-upload-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gray-200), var(--gray-300));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 24px;
  flex-shrink: 0;
  overflow: hidden;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.profile-upload-preview.has-image {
  background: none;
  border-color: var(--primary);
}

.profile-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-upload-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-upload-info p {
  font-size: 11px;
  color: var(--gray-400);
  margin: 0;
}

.profile-upload-btn {
  cursor: pointer;
}

.influencer-name {
  flex: 1;
  min-width: 0;
}

.influencer-name h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.influencer-name .social-links {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.social-links a {
  color: var(--gray-500);
  font-size: 14px;
  transition: var(--transition);
  text-decoration: none;
}

.social-links a:hover { color: var(--primary); }

.influencer-card-body {
  padding: 16px 20px;
}

.influencer-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--gray-600);
}

.influencer-info-row i {
  width: 16px;
  text-align: center;
  color: var(--primary-light);
  font-size: 12px;
}

.influencer-info-row strong {
  color: var(--gray-800);
  margin-left: auto;
}

.influencer-card-footer {
  padding: 12px 20px 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.influencer-card-footer .btn {
  flex: 1;
  justify-content: center;
  min-width: 0;
}

/* ==================== DASHBOARD INFLUENCER LIST ==================== */
.dashboard-influencer-list {
  max-height: 400px;
  overflow-y: auto;
}

.dash-inf-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
  cursor: pointer;
}

.dash-inf-item:hover { background: var(--gray-50); }
.dash-inf-item:last-child { border-bottom: none; }

.dash-inf-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
  overflow: hidden;
  flex-shrink: 0;
  flex-shrink: 0;
}

.dash-inf-info { flex: 1; min-width: 0; }

.dash-inf-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}

.dash-inf-info span {
  font-size: 12px;
  color: var(--gray-500);
}

.dash-inf-stats {
  text-align: right;
}

.dash-inf-stats .amount {
  font-size: 15px;
  font-weight: 700;
  color: var(--success);
}

.dash-inf-stats .sublabel {
  font-size: 11px;
  color: var(--gray-400);
}

/* ==================== TABS ==================== */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: var(--white);
  padding: 6px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  width: fit-content;
}

.tab {
  padding: 10px 20px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: var(--gray-500);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tab:hover { color: var(--gray-700); background: var(--gray-50); }

.tab.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 2px 8px rgba(184,134,11,0.3);
}

/* ==================== AUSZAHLUNGEN LIST ==================== */
.auszahlungen-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auszahlung-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.auszahlung-item:hover {
  box-shadow: var(--shadow-md);
}

.auszahlung-item.paid {
  opacity: 0.7;
  border-left: 4px solid var(--success);
}

.auszahlung-item.unpaid {
  border-left: 4px solid var(--warning);
}

.auszahlung-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.auszahlung-info { flex: 1; min-width: 0; }

.auszahlung-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}

.auszahlung-info .meta {
  font-size: 12px;
  color: var(--gray-500);
  display: flex;
  gap: 12px;
  margin-top: 2px;
  flex-wrap: wrap;
}

.auszahlung-info .meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.auszahlung-amount {
  text-align: right;
  flex-shrink: 0;
}

.auszahlung-amount .amount {
  font-size: 18px;
  font-weight: 800;
  color: var(--success);
}

.auszahlung-amount .sublabel {
  font-size: 11px;
  color: var(--gray-400);
}

.auszahlung-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* ==================== MODAL ==================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(17,24,39,0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalSlideUp 0.3s ease;
}

.modal-large { max-width: 640px; }

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--gray-100);
}

.modal-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
}

.modal-header h2 i {
  color: var(--primary);
  margin-right: 8px;
}

.modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray-500);
  font-size: 16px;
  transition: var(--transition);
}

.modal-close:hover { background: var(--gray-200); color: var(--gray-800); }

.modal-body {
  padding: 24px 28px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 20px;
  margin-top: 8px;
  border-top: 1px solid var(--gray-100);
}

/* ==================== FORMS ==================== */
.form-section {
  margin-bottom: 24px;
}

.form-section h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-section h3 i {
  color: var(--primary);
}

.form-group {
  margin-bottom: 14px;
  flex: 1;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.form-group label i {
  margin-right: 4px;
  color: var(--primary-light);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
  color: var(--gray-800);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(184,134,11,0.1);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236B7280'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-row {
  display: flex;
  gap: 14px;
}

.form-vertical .form-group {
  margin-bottom: 18px;
}

/* ==================== UMSATZ INFO CARD ==================== */
.umsatz-info-card {
  background: linear-gradient(135deg, #FEFCF8, #FBF3E4);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 20px;
  border: 1px solid #EDE0C8;
}

.umsatz-info-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.umsatz-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 14px;
  color: var(--gray-600);
}

/* ==================== UMSATZ VORSCHAU ==================== */
.umsatz-vorschau {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 16px;
}

.vorschau-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 14px;
  color: var(--gray-600);
}

.vorschau-row.highlight {
  font-size: 16px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid #BBF7D0;
}

.vorschau-row.highlight strong {
  color: var(--success);
  font-size: 18px;
}

/* ==================== DETAIL MODAL ==================== */
.modal-xlarge { max-width: 860px; }

.detail-top {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.detail-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 240px;
}

.detail-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
}

.detail-profile-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
}

.detail-profile-info .detail-meta {
  display: flex;
  gap: 12px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.detail-profile-info .detail-meta a,
.detail-profile-info .detail-meta span {
  font-size: 13px;
  color: var(--gray-500);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.detail-profile-info .detail-meta a:hover {
  color: var(--primary);
}

.detail-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}

.detail-info-item {
  padding: 12px 14px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
}

.detail-info-item label {
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: block;
  margin-bottom: 4px;
}

.detail-info-item span {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}

/* Umsatz Summary Cards */
.umsatz-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.umsatz-summary-card {
  padding: 18px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--gray-200);
}

.umsatz-summary-card.total {
  background: linear-gradient(135deg, #FEFCF8, #FBF3E4);
  border-color: #EDE0C8;
}

.umsatz-summary-card.provision {
  background: #F0FDF4;
  border-color: #BBF7D0;
}

.umsatz-summary-card.offen {
  background: #FFF7ED;
  border-color: #FED7AA;
}

.umsatz-summary-card .summary-value {
  font-size: 24px;
  font-weight: 800;
  display: block;
  margin-bottom: 2px;
  letter-spacing: -0.5px;
}

.umsatz-summary-card.total .summary-value { color: var(--primary-dark); }
.umsatz-summary-card.provision .summary-value { color: #059669; }
.umsatz-summary-card.offen .summary-value { color: #D97706; }

.umsatz-summary-card .summary-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Umsatz-Historie Header */
.umsatz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-200);
}

.umsatz-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.umsatz-header h3 i {
  color: var(--primary);
}

.umsatz-count {
  background: var(--primary-bg);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
}

/* Umsatz Table - grösser */
.detail-umsatz-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.detail-umsatz-table th {
  text-align: left;
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: var(--gray-50);
  border-bottom: 2px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 1;
}

.detail-umsatz-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.detail-umsatz-table th:last-child { border-radius: 0 var(--radius-sm) 0 0; }

.detail-umsatz-table td {
  padding: 16px;
  font-size: 15px;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}

.detail-umsatz-table tr:hover td {
  background: var(--primary-bg);
}

.detail-umsatz-table tr:last-child td {
  border-bottom: none;
}

/* Umsatz Zeilen-Styling */
.umsatz-datum {
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
}

.umsatz-betrag {
  font-weight: 700;
  font-size: 16px;
}

.umsatz-differenz {
  font-weight: 600;
}

.umsatz-differenz.positiv { color: var(--success); }
.umsatz-differenz.negativ { color: var(--danger); }

.umsatz-provision {
  font-size: 17px;
  font-weight: 800;
  color: var(--success);
}

.umsatz-scroll {
  max-height: 420px;
  overflow-y: auto;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

@media (max-width: 768px) {
  .modal-xlarge { max-width: 95vw; }
  .detail-info-grid { grid-template-columns: 1fr 1fr; }
  .umsatz-summary { grid-template-columns: 1fr; }
  .umsatz-summary-card .summary-value { font-size: 20px; }
  .detail-umsatz-table td { padding: 12px 10px; font-size: 13px; }
  .umsatz-provision { font-size: 14px; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.badge-success { background: #D1FAE5; color: #065F46; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-info { background: #DBEAFE; color: #1E40AF; }

/* ==================== TOAST ==================== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 22px;
  border-radius: var(--radius);
  color: white;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  animation: toastIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.success { background: linear-gradient(135deg, var(--success), #059669); }
.toast.error { background: linear-gradient(135deg, var(--danger), #DC2626); }
.toast.info { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-400);
  font-size: 15px;
  line-height: 1.8;
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 12px;
  display: block;
  color: var(--gray-300);
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-header {
    display: flex;
  }

  .main-content {
    margin-left: 0;
    padding: 80px 16px 24px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-card {
    padding: 16px;
    gap: 12px;
  }

  .stat-icon { width: 40px; height: 40px; font-size: 18px; }
  .stat-value { font-size: 20px; }

  .influencer-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .modal-content {
    max-height: 95vh;
    border-radius: var(--radius-lg);
  }

  .detail-info-grid {
    grid-template-columns: 1fr;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-header h1 { font-size: 22px; }

  .auszahlung-item {
    flex-wrap: wrap;
  }

  .auszahlung-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================== SETTINGS GRID ==================== */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================== ADMIN USER LIST ==================== */
.admin-user-list {
  max-height: 400px;
  overflow-y: auto;
}

.admin-user-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}

.admin-user-item:last-child { border-bottom: none; }
.admin-user-item:hover { background: var(--gray-50); }

.admin-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4A3728, var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  flex-shrink: 0;
}

.admin-user-info {
  flex: 1;
  min-width: 0;
}

.admin-user-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}

.admin-user-info span {
  font-size: 12px;
  color: var(--gray-500);
}

.admin-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: #FDF9F0;
  color: var(--primary-dark);
  margin-left: 6px;
}

.admin-user-actions {
  flex-shrink: 0;
}

/* ==================== ANGEFRAGT PIPELINE ==================== */

/* Wochenziel Karte */
.weekly-goal-card {
  background: linear-gradient(135deg, #334155, #475569);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 20px;
  color: white;
  display: flex;
  align-items: center;
  gap: 28px;
}

.weekly-welcome {
  flex: 1;
}

.weekly-welcome h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}

.weekly-welcome h2 span {
  color: #FDE68A;
}

.weekly-welcome p {
  font-size: 13px;
  opacity: 0.8;
  margin: 0;
}

.weekly-progress {
  flex: 1;
  min-width: 240px;
}

.weekly-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.weekly-progress-label {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.9;
}

.weekly-progress-count {
  font-size: 24px;
  font-weight: 800;
}

.weekly-progress-count span {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.7;
}

.weekly-bar-bg {
  width: 100%;
  height: 14px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.weekly-bar-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, #FDE68A, #FBBF24);
  transition: width 0.6s ease;
  min-width: 4px;
}

.weekly-bar-fill.complete {
  background: linear-gradient(90deg, #6EE7B7, #34D399);
}

.weekly-status {
  font-size: 12px;
  margin-top: 6px;
  opacity: 0.85;
}

.weekly-status i {
  margin-right: 4px;
}

@media (max-width: 768px) {
  .weekly-goal-card {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }
  .weekly-progress { min-width: unset; width: 100%; }
}

/* Pipeline Stats */
.pipeline-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.pipeline-stat {
  padding: 16px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--gray-200);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pipeline-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pipeline-stat .stat-num {
  font-size: 28px;
  font-weight: 800;
  display: block;
  margin-bottom: 2px;
}

.pipeline-stat .stat-txt {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pipeline-stat.s-angeschrieben {
  background: #EFF6FF;
  border-color: #BFDBFE;
}
.pipeline-stat.s-angeschrieben .stat-num { color: #2563EB; }
.pipeline-stat.s-angeschrieben .stat-txt { color: #60A5FA; }

.pipeline-stat.s-paket {
  background: #FFF7ED;
  border-color: #FED7AA;
}
.pipeline-stat.s-paket .stat-num { color: #D97706; }
.pipeline-stat.s-paket .stat-txt { color: #F59E0B; }

.pipeline-stat.s-aktiv {
  background: #F0FDF4;
  border-color: #BBF7D0;
}
.pipeline-stat.s-aktiv .stat-num { color: #059669; }
.pipeline-stat.s-aktiv .stat-txt { color: #34D399; }

.pipeline-stat.s-erfasst {
  background: linear-gradient(135deg, #FEFCF8, #FBF3E4);
  border-color: #EDE0C8;
}
.pipeline-stat.s-erfasst .stat-num { color: var(--primary-dark); }
.pipeline-stat.s-erfasst .stat-txt { color: var(--primary); }

/* Filter Tabs */
.pipeline-filter {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

/* Admin-Filter Dropdown */
.admin-filter-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all 0.2s;
}

.admin-filter-wrap:hover {
  border-color: var(--primary);
}

.admin-filter-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  font-size: 13px;
  flex-shrink: 0;
}

.admin-filter-wrap select {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  outline: none;
  padding: 8px 32px 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  background: transparent;
  cursor: pointer;
  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='%239CA3AF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  min-width: 140px;
}

/* Akquise Liste */
.akquise-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Akquise Karte */
.akquise-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: box-shadow 0.2s, transform 0.15s;
}

.akquise-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* Plattform Icon */
.akquise-plattform {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.akquise-plattform.has-img {
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gray-200);
}

.akquise-plattform.tiktok {
  background: #000;
  color: #fff;
}

.akquise-plattform.instagram {
  background: linear-gradient(135deg, #833AB4, #FD1D1D, #F77737);
  color: #fff;
}

/* Akquise Info */
.akquise-info {
  flex: 1;
  min-width: 0;
}

.akquise-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.akquise-info .akquise-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--gray-500);
}

.akquise-info .akquise-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.akquise-info .akquise-meta i {
  font-size: 11px;
}

/* Status Badge - grösser */
.akquise-status-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 160px;
}

.pipeline-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.pipeline-badge.status-angeschrieben {
  background: #DBEAFE;
  color: #1D4ED8;
}

.pipeline-badge.status-paket_gesendet {
  background: #FFEDD5;
  color: #C2410C;
}

.pipeline-badge.status-angekommen {
  background: #D1FAE5;
  color: #065F46;
}

.pipeline-badge.status-rabattcode_erstellt {
  background: #EDE9FE;
  color: #6D28D9;
}

.pipeline-badge.status-video_gepostet {
  background: #FCE7F3;
  color: #BE185D;
}

.pipeline-badge.status-startguthaben_gesendet {
  background: #FEF3C7;
  color: #92400E;
}

.pipeline-badge.status-als_influencer_erfasst {
  background: linear-gradient(135deg, #FEFCF8, #FBF3E4);
  color: var(--primary-dark);
}

/* Ankunft Info */
.akquise-ankunft {
  font-size: 12px;
  color: var(--gray-500);
  text-align: center;
}

.akquise-ankunft strong {
  color: var(--dark);
}

/* Akquise Actions */
.akquise-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* Status-Steps im Modal */
.status-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 16px 0;
}

.status-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  position: relative;
}

.status-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 18px;
  top: 46px;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.status-step.completed:not(:last-child)::after {
  background: var(--success);
}

.status-step.current:not(:last-child)::after {
  background: linear-gradient(to bottom, var(--primary) 50%, var(--gray-200) 50%);
}

.step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  border: 2px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-400);
  z-index: 1;
}

.status-step.completed .step-dot {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.status-step.current .step-dot {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 0 0 4px var(--primary-bg);
}

.step-content {
  flex: 1;
}

.step-content h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
}

.status-step.pending .step-content h4 {
  color: var(--gray-400);
}

.step-content p {
  font-size: 12px;
  color: var(--gray-500);
  margin: 0;
}

.step-action {
  margin-top: 10px;
}

/* ===== VORLAGEN ===== */
.vorlagen-hint {
  background: var(--primary-bg);
  border: 1px solid var(--primary-light);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 20px;
}
.vorlagen-hint i { color: var(--primary); margin-right: 6px; }

.vorlagen-list, .vorlagen-list-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.vorlagen-list {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.vorlage-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.vorlage-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.07);
}

.vorlage-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
}
.vorlage-card-header h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.vorlage-card-header h4 .vorlage-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

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

.vorlage-card-body {
  padding: 14px 16px;
}
.vorlage-card-body pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--gray-700);
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.btn-copy:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.btn-copy.copied {
  background: var(--success);
}

.btn-icon-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--gray-400);
  cursor: pointer;
  transition: all .2s;
  font-size: 13px;
}
.btn-icon-sm:hover {
  background: var(--gray-100);
  color: var(--danger);
}

.vorlage-edit-btn:hover {
  color: var(--primary);
}

.vorlagen-add-area {
  background: var(--gray-50);
  border: 2px dashed var(--gray-200);
  border-radius: 12px;
  padding: 20px;
}
.vorlagen-add-area label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
}
.vorlagen-add-area input,
.vorlagen-add-area textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .2s;
  background: #fff;
}
.vorlagen-add-area input:focus,
.vorlagen-add-area textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-bg);
}

/* Responsive */
@media (max-width: 768px) {
  .pipeline-stats { grid-template-columns: repeat(2, 1fr); }
  .pipeline-filter { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .pipeline-filter .tab { white-space: nowrap; font-size: 12px; }
  .admin-filter-wrap { margin-top: 6px; }
  .admin-filter-wrap select { min-width: 120px; }
  .akquise-card { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
  .akquise-status-area { align-items: flex-start; flex-direction: row; min-width: unset; }
  .akquise-actions { width: 100%; justify-content: flex-end; }
  .vorlagen-list { max-height: 300px; }
  .vorlagen-add-area { padding: 16px; }
  .vorlage-card-actions { flex-wrap: wrap; }
  .vorlage-card-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .top-inf-row { flex-direction: column; text-align: center; }
  .top-inf-stats { justify-content: center; }
  .log-item { padding: 14px; }
  .log-meta { flex-direction: column; gap: 4px; }
}

/* ===== TOP INFLUENCERIN DER WOCHE ===== */
.top-influencer-content { padding: 20px 24px; }

.top-inf-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 4px 0;
}

.top-inf-avatar {
  position: relative;
  flex-shrink: 0;
}

.top-inf-crown {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  color: #D4AA4F;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.top-inf-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #D4AA4F;
  overflow: hidden;
}

.top-inf-info {
  flex: 1;
  min-width: 0;
}

.top-inf-info h3 {
  margin: 0 0 2px;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
}

.top-inf-stats {
  display: flex;
  gap: 24px;
}

.top-inf-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.top-inf-stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.top-inf-stat-label {
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== AKTIVITÄTSLOG ===== */
.log-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.log-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--gray-100);
  transition: box-shadow 0.2s;
}

.log-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.log-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.log-content {
  flex: 1;
  min-width: 0;
}

.log-beschreibung {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.4;
}

.log-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--gray-400);
}

.log-meta i {
  margin-right: 4px;
  width: 12px;
}
