/* ================= HARBOR V14: DEEP SPACE EDITION ================ */

:root {
  --hue: 220; /* Standard Blau */
  
  /* Farben - Alle basieren jetzt dynamisch auf --hue */
  --accent: hsl(var(--hue), 100%, 60%);
  --accent-dim: hsl(var(--hue), 50%, 15%);
  --accent-glow: hsla(var(--hue), 100%, 60%, 0.6);
  --accent-hover: hsl(var(--hue), 100%, 75%); 

  --bg-deep: #020203; 
  --bg-glass: rgba(20, 20, 30, 0.7);
  --bg-glass-border: rgba(255, 255, 255, 0.08);
  
  --text-main: #ffffff;
  --text-muted: #a0a0b0;
  
  --font-sans: "Outfit", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  
  --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
  --discord-color: #5865F2;
}

/* ================= BASE & RESET ================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { 
  scroll-behavior: smooth; 
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  overflow-x: hidden;
  position: relative;
  perspective: 1000px;
  min-height: 100vh;
  
  /* Noise Texture + Gradient Background */
  background: 
    radial-gradient(circle at 50% 0%, #1a1f35 0%, var(--bg-deep) 60%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
  background-attachment: fixed;
}

/* ================= UI COMPONENTS ================ */

/* Tooltip Icon */
.info-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: hsla(var(--hue), 100%, 50%, 0.15); color: var(--accent);
  font-size: 0.75rem; font-weight: bold; font-family: var(--font-mono);
  cursor: help; margin-left: 8px; border: 1px solid hsla(var(--hue), 100%, 50%, 0.3);
  position: relative; transition: 0.2s;
}
.info-icon:hover { background: var(--accent); color: #fff; box-shadow: 0 0 10px var(--accent-glow); }
.info-icon::after {
  content: attr(data-tooltip); position: absolute; bottom: 140%; left: 50%;
  transform: translateX(-50%) scale(0.9); background: #111; border: 1px solid #333;
  color: #eee; padding: 8px 12px; border-radius: 6px; font-size: 0.75rem;
  width: max-content; max-width: 220px; text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5); opacity: 0; pointer-events: none;
  transition: 0.2s ease; z-index: 100; line-height: 1.4;
}
/* Standard Hover Verhalten */
.info-icon:hover::after { opacity: 1; transform: translateX(-50%) scale(1); }

/* === FIX: Tooltips in Pricing Cards nach LINKS verschieben === */
/* Damit sie nicht aus dem Bildschirm ragen */
.pricing-card .info-icon::after {
  left: auto;        /* Standard-Zentrierung aufheben */
  right: 0;          /* Rechts bündig am Icon ausrichten */
  transform: translateX(10%) scale(0.9) !important; /* Leicht nach rechts, aber nicht zentriert */
  bottom: 160%;      /* Etwas höher, damit es nicht im Text hängt */
  text-align: right; /* Text rechtsbündig sieht hier oft besser aus */
}

.pricing-card .info-icon:hover::after {
  transform: translateX(0) scale(1) !important; /* Beim Hovern an Ort und Stelle bleiben */
}

/* Cookie Banner */
.cookie-banner {
  position: fixed; bottom: 20px; left: 20px; right: 20px; max-width: 400px;
  background: rgba(10, 10, 15, 0.95); border: 1px solid var(--accent);
  border-radius: 16px; padding: 20px; z-index: 10000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5); backdrop-filter: blur(10px);
  transform: translateY(150%); transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-text { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 15px; line-height: 1.5; }
.cookie-btn {
  width: 100%; padding: 10px; background: var(--accent); color: #fff;
  font-weight: 700; border: none; border-radius: 8px; cursor: pointer; transition: 0.2s;
}
.cookie-btn:hover { transform: scale(1.02); box-shadow: 0 0 15px var(--accent-glow); }

/* Discord Button */
.discord-login-btn {
  display: flex; align-items: center; gap: 8px; background-color: var(--discord-color);
  color: #fff; font-weight: 600; padding: 8px 20px; border-radius: 8px;
  text-decoration: none; transition: all 0.3s ease; font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3); border: 1px solid rgba(255,255,255,0.1);
}
.discord-login-btn:hover {
  background-color: #4752c4; transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(88, 101, 242, 0.5);
}

/* ================= ANIMATIONS & BLOBS ================ */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.float-anim:not(:hover) { animation: float 6s ease-in-out infinite; }

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s var(--ease-out); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

.blob-layer { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.15;
  transition: transform 0.1s linear, background 0.5s ease;
}
.blob-1 {
  top: -10%; left: -10%; width: 600px; height: 600px; background: var(--accent);
  animation: pulseBlob 12s infinite alternate;
}
.blob-2 {
  bottom: -10%; right: -10%; width: 500px; height: 500px; background: hsl(var(--hue), 80%, 40%); 
  animation: pulseBlob 16s infinite alternate-reverse;
}
@keyframes pulseBlob { 0% { transform: scale(1); opacity: 0.1; } 100% { transform: scale(1.1); opacity: 0.2; } }

/* Boot Screen */
#boot-layer {
  position: fixed; inset: 0; background: #000; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-mono); color: var(--accent); transition: opacity 0.6s ease-out;
}
.boot-log { font-size: 0.9rem; margin-bottom: 20px; opacity: 0.8; letter-spacing: 1px; }
.progress-bar { width: 200px; height: 2px; background: #222; position: relative; overflow: hidden; }
.progress-fill {
  position: absolute; top: 0; left: 0; height: 100%; width: 0%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
  animation: load 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes load { to { width: 100%; } }

/* ================= HEADER & NAV ================ */
.site-header {
  position: fixed; top: 0; width: 100%; height: 80px; z-index: 100;
  background: rgba(5, 5, 7, 0.7); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bg-glass-border); display: flex; align-items: center;
}
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.brand { font-size: 1.5rem; font-weight: 800; letter-spacing: -1px; display: flex; align-items: center; gap: 8px; color: #fff; }
.brand-code { color: var(--accent); font-family: var(--font-mono); opacity: 0.8; }

.nav-pills { display: flex; background: rgba(255,255,255,0.03); padding: 5px; border-radius: 12px; border: 1px solid var(--bg-glass-border); }
.nav-item { padding: 8px 20px; color: var(--text-muted); font-size: 0.9rem; font-weight: 500; border-radius: 8px; transition: 0.3s; text-decoration: none;}
.nav-item:hover, .nav-item.active { color: #fff; background: rgba(255,255,255,0.08); }

.theme-group { display: flex; gap: 10px; margin-left: 5px; border-left: 1px solid var(--bg-glass-border); padding-left: 15px; }
.theme-dot { width: 12px; height: 12px; border-radius: 50%; cursor: pointer; transition: 0.3s; opacity: 0.5; }
.theme-dot:hover, .theme-dot.active { opacity: 1; transform: scale(1.3); box-shadow: 0 0 0 2px #fff; }

/* Navigation Extras */
.nav-separator { width: 1px; height: 18px; background: rgba(255, 255, 255, 0.2); margin: 0 8px; align-self: center; }
.nav-dropdown-container { position: relative; display: flex; align-items: center; }
.dropdown-btn {
  background: none; border: none; cursor: pointer; font-family: var(--font-sans);
  font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
  display: flex; align-items: center; padding: 8px 20px; border-radius: 8px; transition: 0.3s;
}
.dropdown-btn:hover, .dropdown-btn.active { color: #fff; background: rgba(255,255,255,0.08); }

.custom-dropdown {
  position: absolute; top: calc(100% + 15px); left: 50%; transform: translateX(-50%) translateY(-10px);
  width: 200px; background: #0a0a0c; border: 1px solid var(--bg-glass-border);
  border-radius: 12px; padding: 6px; box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  opacity: 0; pointer-events: none; transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1); z-index: 1000;
}
.custom-dropdown.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

.dropdown-entry {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  color: #d1d5db; text-decoration: none; border-radius: 8px;
  transition: 0.2s; font-size: 0.9rem; font-weight: 500;
}
.dropdown-entry:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.icon-box { display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: 0.2s; }
.dropdown-entry:hover .icon-box { color: var(--accent); }

/* ================= HERO & SERVICES GRID ================ */
.hero-section { padding-top: 140px; padding-bottom: 100px; }
.bento-grid { display: grid; gap: 24px; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; }

/* Tilt Cards (Hero, Services, Pricing) */
.tilt-card, .pricing-card {
  background: rgba(255,255,255,0.02); border: 1px solid var(--bg-glass-border);
  border-radius: 24px; padding: 40px; backdrop-filter: blur(20px);
  position: relative; 
  /* overflow: hidden;  <-- ENTFERNT, damit Tooltips rausragen können */
  transform-style: preserve-3d;
  transition: all 0.3s ease-out; will-change: transform;
}

/* WICHTIG: Damit der Glow-Effekt trotzdem runde Ecken hat */
.tilt-card::after, .pricing-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: 0.5s;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.03), transparent 40%); z-index: 2;
  border-radius: 24px; /* <--- NEU: Damit der Glow nicht eckig übersteht */
}
.tilt-card:hover::after, .pricing-card:hover::after { opacity: 1; }
.tilt-card:hover, .pricing-card:hover { 
  border-color: var(--accent-hover); box-shadow: 0 0 30px -5px var(--accent-glow); 
}

/* Hero Text */
.hero-text { grid-row: span 2; display: flex; flex-direction: column; justify-content: center; }
.status-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  background: var(--accent-dim); border: 1px solid var(--accent); color: var(--accent);
  font-family: var(--font-mono); font-size: 0.75rem; border-radius: 8px; margin-bottom: 24px; width: fit-content;
}
.status-blink { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: blink 2s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-h1 { font-size: clamp(2.8rem, 5vw, 4rem); line-height: 1.1; font-weight: 800; margin-bottom: 24px; }
.gradient-text { 
  background: linear-gradient(to right, #fff, var(--accent)); 
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; 
}
.hero-desc { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 40px; max-width: 500px; line-height: 1.7; }
.btn-glass {
  display: inline-flex; padding: 16px 32px; background: var(--accent); color: #fff;
  font-weight: 600; border-radius: 12px; transition: 0.3s; box-shadow: 0 0 20px var(--accent-glow);
  text-decoration: none;
}
.btn-glass:hover { transform: translateY(-3px); box-shadow: 0 10px 40px var(--accent-glow); }

/* Terminal */
.hero-terminal {
  min-height: 320px; font-family: var(--font-mono); font-size: 0.85rem;
  background: #08080a; border: 1px solid var(--bg-glass-border); display: flex; flex-direction: column;
}
.term-header {
  padding: 12px 20px; background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--bg-glass-border);
  display: flex; justify-content: space-between; color: var(--text-muted); font-size: 0.75rem;
}
.term-body { padding: 20px; color: #a9b1d6; flex-grow: 1; overflow-y: auto; }
.cmd-line { margin-bottom: 6px; display: flex; gap: 10px; font-family: "JetBrains Mono", monospace; }
.prompt { color: var(--accent); }

/* Stats */
.hero-stats { display: flex; justify-content: space-around; align-items: center; padding: 20px; }
.stat-box { text-align: center; }
.stat-val { font-size: 2rem; font-weight: 800; color: #fff; }
.stat-lbl { color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; margin-top: 5px;}

/* Services */
.section-title { text-align: center; font-size: 2.2rem; margin-bottom: 60px; font-weight: 700; margin-top: 100px; }
.service-grid-5 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 100px; }
.grid-span-2 { grid-column: span 3; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.service-card {
  background: rgba(20,20,25,0.4); border: 1px solid var(--bg-glass-border); border-radius: 20px; padding: 30px;
  transition: 0.3s; position: relative; overflow: hidden; display: flex; flex-direction: column;
}
.service-card:hover {
  transform: translateY(-8px); border-color: var(--accent-hover);
  background: rgba(255,255,255,0.03); box-shadow: 0 15px 40px -10px var(--accent-glow);
}
.s-badge { font-size: 0.7rem; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; color: var(--accent); margin-bottom: 15px; display: block; }
.s-title { font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.s-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; flex-grow: 1; line-height: 1.6;}
.s-link { font-size: 0.9rem; font-weight: 600; color: #fff; display: flex; align-items: center; gap: 5px; opacity: 0.8; transition: 0.2s; text-decoration: none;}
.service-card:hover .s-link { opacity: 1; gap: 10px; color: var(--accent-hover); }

/* ================= FOOTER ================ */
.site-footer {
  border-top: 1px solid var(--bg-glass-border); padding: 80px 0 40px 0;
  background: linear-gradient(to bottom, var(--bg-deep), #000); font-size: 0.9rem;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-col h4 { color: #fff; margin-bottom: 20px; font-weight: 600; }
.footer-col a { display: block; color: var(--text-muted); margin-bottom: 12px; transition: 0.2s; text-decoration: none; }
.footer-col a:hover { color: var(--accent); padding-left: 5px; }

.social-links { display: flex; gap: 10px; }
.social-btn { 
  display: inline-block !important; padding: 6px 12px; border: 1px solid var(--bg-glass-border); 
  border-radius: 6px; color: #fff !important; font-size: 0.8rem; 
}
.social-btn:hover { border-color: var(--accent); background: rgba(255,255,255,0.05); padding-left: 6px !important; }
.footer-bottom { text-align: center; color: rgba(255,255,255,0.2); font-size: 0.8rem; padding-top: 40px; border-top: 1px solid var(--bg-glass-border); }

@media (max-width: 900px) {
  .bento-grid, .service-grid-5, .grid-span-2 { grid-template-columns: 1fr; grid-column: span 1; }
  .hero-terminal { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .social-links { justify-content: center; }
}

/* ================= USER DROPDOWN ================ */
.user-profile-group { position: relative; }
.user-profile-trigger {
  display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.05); 
  border: 1px solid var(--bg-glass-border); padding: 6px 14px 6px 6px; border-radius: 99px; cursor: pointer; transition: all 0.3s ease;
}
.user-profile-trigger:hover, .user-profile-trigger[aria-expanded="true"] {
  background: rgba(255,255,255,0.1); border-color: var(--accent); box-shadow: 0 0 15px var(--accent-glow);
}
.user-avatar { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--accent); object-fit: cover; }
.user-dropdown-panel {
  position: absolute; top: calc(100% + 15px); right: 0; width: 240px;
  background: #050507; border: 1px solid var(--bg-glass-border); border-radius: 16px; padding: 8px;
  opacity: 0; pointer-events: none; transform: translateY(-10px) scale(0.95);
  transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1); box-shadow: 0 20px 50px -10px rgba(0,0,0,0.8); z-index: 2000;
}
.user-dropdown-panel[data-open="true"] { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.panel-user-info { padding: 12px; border-bottom: 1px solid var(--bg-glass-border); margin-bottom: 8px; }
.user-role {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 800;
  color: var(--accent); background: var(--accent-dim); padding: 2px 6px; border-radius: 4px;
}
.panel-action-link {
  display: flex; align-items: center; padding: 10px 12px; color: var(--text-muted);
  font-size: 0.9rem; border-radius: 8px; transition: 0.2s; font-weight: 500; text-decoration: none;
}
.panel-action-link:hover { background: rgba(255,255,255,0.05); color: #fff; padding-left: 16px; }

/* ================= PRICING & CATEGORIES ================ */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 40px; align-items: stretch; }
.pricing-card {
  border-radius: 16px; padding: 30px; display: flex; flex-direction: column; justify-content: space-between;
}
.popular-badge {
  position: absolute; top: -12px; right: 20px; background: var(--accent); color: #fff;
  font-size: 0.7rem; font-weight: 800; padding: 4px 10px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 0 10px var(--accent-glow);
}
.p-header { margin-bottom: 20px; }
.p-name { font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 5px; }
.p-desc { font-size: 0.9rem; color: var(--text-muted); height: 40px; }
.p-price { font-size: 2.2rem; font-weight: 800; color: #fff; margin-bottom: 5px; margin-top:15px;}
.p-period { font-size: 0.9rem; color: var(--text-muted); font-weight: 400; }
.p-bill-info {
  background: rgba(255,255,255,0.05); display: inline-block; font-size: 0.75rem;
  padding: 4px 8px; border-radius: 4px; color: var(--text-muted); margin-bottom: 30px;
}
.p-features { list-style: none; flex-grow: 1; margin-bottom: 30px; }
.p-features li { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 0.95rem; color: #d1d5db; line-height: 1.4; }
.check { color: var(--accent-hover); font-weight: 800; min-width: 20px;}

.btn-pricing {
  display: block; text-align: center; padding: 14px; border-radius: 8px; background: transparent;
  border: 1px solid var(--bg-glass-border); color: #fff; font-weight: 600; text-decoration: none; transition: 0.3s; margin-top: auto; 
}
.btn-pricing:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.highlight-btn { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 15px var(--accent-glow); }
.highlight-btn:hover { background: var(--accent); opacity: 0.9; transform: scale(1.02); }

/* ============================================================ */
/* 🌫️ BLUR-FADE ANIMATION (Statt Pop-In) */
/* ============================================================ */

/* Die neue Animation: Startet unscharf, wird scharf */
@keyframes blurFadeIn {
    0% {
        opacity: 0;
        filter: blur(8px);
        transform: translateY(5px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

/* Die Klasse, die die Animation auslöst */
.pop-in {
    opacity: 0; /* Startzustand */
    animation: blurFadeIn 0.4s ease-out forwards;
}

/* Optional: Verzögerung bleibt erhalten (für gestaffelte Erscheinung) */
/* Das steuert dein JS per inline style, also hier nix nötig */

.category-header { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; margin-top: 60px; }
.cat-title { font-size: 1.8rem; font-weight: 700; color: #fff; white-space: nowrap; }
.cat-line { height: 1px; background: var(--bg-glass-border); width: 100%; flex-grow: 1; }
.cat-desc { color: var(--text-muted); margin-bottom: 30px; max-width: 600px; }

/* ================= TICKET DASHBOARD OVERLAY ================= */
.overlay-backdrop {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 10000;
  background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(15px);
  display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.overlay-backdrop.active { opacity: 1; visibility: visible; }

.overlay-container {
  width: 100%; max-width: 1000px; height: auto; max-height: 85vh;
  background: rgba(10, 10, 15, 0.85); border: 1px solid var(--bg-glass-border);
  border-radius: 24px; padding: 40px; box-shadow: 0 0 80px -20px var(--accent-dim);
  display: flex; flex-direction: column; overflow-y: auto;
  transform: scale(0.95) translateY(20px); opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.overlay-backdrop.active .overlay-container { transform: scale(1) translateY(0); opacity: 1; }

/* Ticket UI */
.ticket-header { 
  display: flex; justify-content: space-between; align-items: center; 
  margin-bottom: 30px; flex-shrink: 0; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 20px;
}
.ticket-title { font-size: 1.8rem; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 12px; letter-spacing: -0.5px; }
.ticket-title svg { stroke: var(--accent); filter: drop-shadow(0 0 8px var(--accent-glow)); }
.ticket-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-top: 5px; margin-left: 40px; }

.btn-ticket-action {
  background: var(--accent); color: #fff; border: none; padding: 10px 24px; border-radius: 12px; font-weight: 700; 
  cursor: pointer; transition: 0.3s; box-shadow: 0 0 20px var(--accent-dim);
}
.btn-ticket-action:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 0 30px var(--accent-glow); }

.btn-close-overlay {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); 
  color: #fff; width: 40px; height: 40px; border-radius: 12px; cursor: pointer; display: grid; place-items: center; margin-left: 10px; transition: 0.2s;
}
.btn-close-overlay:hover { background: rgba(255, 50, 50, 0.2); border-color: rgba(255, 50, 50, 0.5); color: #ff5f57; }

/* Stats & Filter */
.ticket-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 30px; }
.t-stat-card {
  position: relative; border-radius: 16px; padding: 20px;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
  overflow: hidden; display: flex; flex-direction: column; gap: 5px; transition: 0.3s;
}
.t-stat-card.active-theme { border-color: var(--accent); background: linear-gradient(145deg, var(--accent-dim), transparent); }
.t-stat-card.active-theme .ts-val { color: var(--accent-hover); text-shadow: 0 0 20px var(--accent-dim); }
.ts-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); letter-spacing: 1px; }
.ts-val { font-size: 2.2rem; font-weight: 800; color: #fff; line-height: 1; }
.ts-icon { position: absolute; right: 20px; bottom: 20px; font-size: 1.5rem; opacity: 0.1; color: #fff; }

.ticket-filter-bar { margin-bottom: 20px; }
.search-wrapper { position: relative; }
.search-wrapper svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); transition:0.3s; }
.t-search-input {
  width: 100%; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); 
  color: #fff; padding: 14px 14px 14px 50px; border-radius: 12px; font-family: var(--font-sans); transition: 0.3s; font-size: 0.95rem;
}
.t-search-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 20px var(--accent-dim); background: rgba(0,0,0,0.5); }
.t-search-input:focus + svg { color: var(--accent); }

/* Ticket List */
#ticket-list-container { display: flex; flex-direction: column; gap: 0; width: 100%; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; overflow: hidden; }
.ticket-item {
  display: grid; grid-template-columns: 50px 1fr auto 40px; align-items: center; gap: 15px;
  padding: 20px 25px; border-bottom: 1px solid rgba(255,255,255,0.03); background: transparent;
  cursor: pointer; transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94); position: relative;
}
.ticket-item:last-child { border-bottom: none; }
.ticket-item:hover { background: rgba(255,255,255,0.03); }
.ti-status-dot { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 10px currentColor; position: relative; left: 10px; }
.st-open .ti-status-dot { background-color: var(--accent); color: var(--accent); }
.st-closed .ti-status-dot { background-color: var(--text-muted); color: transparent; opacity: 0.3; box-shadow: none; }

.ti-content { display: flex; flex-direction: column; gap: 4px; }
.ti-subject { color: #fff; font-weight: 500; font-size: 0.95rem; transition: 0.2s; }
.ticket-item:hover .ti-subject { color: var(--accent-hover); }
.ti-meta { color: var(--text-muted); font-size: 0.8rem; font-family: var(--font-mono); opacity: 0.7; }
.ti-badge-small {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 10px;
  border-radius: 6px; border: 1px solid rgba(255,255,255,0.1); color: var(--text-muted);
}
.st-open .ti-badge-small { color: var(--accent); border-color: var(--accent-dim); background: rgba(var(--accent), 0.1); }
.ti-arrow { color: var(--text-muted); opacity: 0; transform: translateX(-10px); transition: 0.3s; }
.ticket-item:hover .ti-arrow { opacity: 1; transform: translateX(0); color: var(--accent); }

/* Update Indicator */
.ticket-item.ticket-has-update { background: rgba(250, 204, 21, 0.12); border-left: 2px solid #facc15; }
.ticket-item.ticket-has-update .ti-subject { color: #facc15; }

/* Tabs */
.ticket-tabs { display: inline-flex; gap: 8px; margin-bottom: 12px; }
.ticket-tab { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.1); background: transparent; color: var(--text-muted); font-size: 0.8rem; cursor: pointer; transition: 0.2s; }
.ticket-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Ticket Detail View */
.td-section { background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; padding: 20px; position: relative; }
.td-section::before { content: ""; position: absolute; top: -1px; left: 10px; right: 10px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); }
.td-header-row { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; }
.btn-back { background: transparent; border: none; color: #fff; cursor: pointer; opacity: 0.7; transition: 0.2s; display: grid; place-items: center; }
.btn-back:hover { opacity: 1; transform: translateX(-3px); color: var(--accent); }

.td-status-badge {
  background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 12px; border-radius: 6px; font-size: 0.75rem; font-weight: 800; letter-spacing: 1px;
}
.td-status-badge.active-theme { background: var(--accent-dim); color: var(--accent); border-color: var(--accent); }
.td-id-badge { background: rgba(255,255,255,0.05); color: var(--text-muted); padding: 6px 10px; border-radius: 6px; font-size: 0.8rem; font-family: var(--font-mono); }
.btn-close-ticket {
  background: transparent; border: 1px solid rgba(255,255,255,0.1); color: var(--text-muted);
  padding: 8px 14px; border-radius: 8px; font-size: 0.8rem; cursor: pointer;
  display: flex; align-items: center; gap: 6px; transition: 0.2s;
}
.btn-close-ticket:hover { border-color: #ef4444; color: #ef4444; background: rgba(239, 68, 68, 0.1); }

.td-meta-grid { display: flex; gap: 15px; }
.td-meta-box {
  flex: 1; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
  padding: 12px 16px; border-radius: 10px; display: flex; align-items: center; gap: 10px;
  color: #94a3b8; font-size: 0.85rem; font-family: var(--font-mono);
}

.td-chat-area { min-height: 260px; max-height: 360px; display: flex; flex-direction: column; }
/* === SCROLL CONTAINER & SCROLLBARS === */

/* Der Container, in dem gescrollt wird */
.td-chat-scroll {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* Hoch/Runter scrollen erlaubt */
    overflow-x: hidden; /* Links/Rechts scrollen VERBOTEN */
    padding-right: 5px; /* Platz für Scrollbar */
    
    /* Scrollbar Styling für Firefox */
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

/* Scrollbar Styling für Chrome/Edge/Safari */
.td-chat-scroll::-webkit-scrollbar {
    width: 6px;
}
.td-chat-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.td-chat-scroll::-webkit-scrollbar-thumb {
    background-color: #333;
    border-radius: 10px;
}
.td-chat-scroll::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}
.td-box-header { display: flex; justify-content: space-between; margin-bottom: 20px; }
.td-box-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: #fff; }
.td-msg-count { background: rgba(255,255,255,0.1); padding: 4px 8px; border-radius: 4px; font-size: 0.7rem; }
.td-chat-empty { display: flex; flex-direction: column; align-items: center; color: var(--text-muted); }
.td-empty-icon { width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,0.03); display: grid; place-items: center; color: rgba(255,255,255,0.2); }

.td-textarea {
  width: 100%; background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px; padding: 15px; color: #fff; font-family: var(--font-sans);
  min-height: 80px; resize: vertical; margin-bottom: 15px; transition: 0.2s;
}
.td-textarea:focus { outline: none; border-color: var(--accent); background: rgba(0,0,0,0.4); }
.td-input-actions { display: flex; justify-content: space-between; align-items: center; }
.td-btn-attach {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #ccc;
  padding: 8px 14px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 0.85rem; transition: 0.2s;
}
.td-btn-attach:hover { background: rgba(255,255,255,0.1); }
.td-btn-send {
  background: var(--accent); border: none; color: #fff; padding: 10px 24px; border-radius: 8px; font-weight: 700; cursor: pointer;
  box-shadow: 0 0 15px var(--accent-glow); transition: 0.2s;
}
.td-btn-send:hover { background: var(--accent-hover); transform: scale(1.02); }


/* ================= ADMIN DASHBOARD GRID ================= */
.admin-mode-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    background: #050505; /* Darker BG for Admin */
    border-radius: 16px;
    border: 1px solid #222;
    min-height: 400px;
    max-height: 650px;
    overflow-y: auto;
}

.admin-mode-container::-webkit-scrollbar { width: 6px; }
.admin-mode-container::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

/* Filter Buttons */
.admin-filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    padding: 15px;
    border-bottom: 1px solid #222;
    position: sticky; top: 0; background: #050505; z-index: 11;
}

.af-btn {
    background: rgba(255,255,255,0.03);
    border: 1px solid #333;
    color: #888;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: flex; align-items: center; gap: 6px;
}
.af-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
.af-btn.active { background: #fff; color: #000; border-color: #fff; }
.af-btn.btn-prio-high.active { background: #ef4444; color: #fff; border-color: #ef4444; }
.af-btn.btn-prio-med.active { background: #f97316; color: #fff; border-color: #f97316; }

.count-badge { background: rgba(0,0,0,0.3); padding: 1px 5px; border-radius: 4px; font-size: 0.7em; }

/* Header Zeile */
.admin-grid-header {
    display: grid;
    grid-template-columns: 50px 90px 70px 1fr 140px 120px 30px;
    gap: 10px;
    padding: 10px 15px;
    border-bottom: 1px solid #222;
    color: #555;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-items: center;
    background: #050505;
}

/* Grid Rows */
.admin-grid-row {
    display: grid;
    grid-template-columns: 50px 90px 70px 1fr 140px 120px 30px;
    gap: 10px;
    padding: 8px 15px;
    border-radius: 6px;
    background: rgba(255,255,255,0.02);
    border: 1px solid transparent;
    color: #ccc;
    font-size: 0.8rem;
    align-items: center;
    cursor: pointer;
    transition: all 0.1s ease;
    margin: 0 10px;
}

.admin-grid-row:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }

/* Spalten Styles */
.ac-id { font-family: "JetBrains Mono", monospace; color: #444; font-size: 0.75rem; }
.ac-subj { font-weight: 600; color: #eee; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.ac-user { display: flex; flex-direction: column; line-height: 1.1; font-size: 0.75rem; }
.ac-user span { color: #ddd; }
.ac-date { font-family: "JetBrains Mono", monospace; font-size: 0.7rem; color: #555; }

/* Badges in Admin Grid */
.ac-status { font-size: 0.6rem; font-weight: 800; text-transform: uppercase; padding: 2px 6px; border-radius: 3px; width: fit-content; text-align: center; }
.st-open { background: rgba(59, 130, 246, 0.1); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.2); }
.st-answered { background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }
.st-closed { background: rgba(255,255,255,0.03); color: #444; }

.ac-prio { font-weight: 800; font-size: 0.65rem; text-transform: uppercase; }
.pr-high { color: #ef4444; } 
.pr-med { color: #f97316; }
.pr-low { color: #333; }


/* ================= DISCORD STYLE CLEAN (Fixes) ================= */

.td-chat-content {
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%; /* Wichtig: Nicht breiter als Eltern-Element */
}

.chat-message-row {
    display: flex;
    gap: 16px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.02);
    width: 100%; /* Volle Breite nutzen */
    box-sizing: border-box; /* Padding mit einberechnen */
}

.chat-message-row:hover {
    background: rgba(255,255,255,0.02);
    /* Trick für Hover-Hintergrund über die volle Breite ohne Scrollbalken */
    margin-left: -20px; 
    margin-right: -20px; 
    padding-left: 20px; 
    padding-right: 20px;
    width: calc(100% + 40px); 
}

.chat-avatar-col {
    flex-shrink: 0; /* Avatar darf nicht gedrückt werden */
    padding-top: 2px;
}
.chat-avatar-img {
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-content-col {
    display: flex;
    flex-direction: column;
    min-width: 0; /* GANZ WICHTIG: Erlaubt dem Flex-Item kleiner zu werden, damit Text umbricht */
    flex-grow: 1;
}

.chat-meta-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
    flex-wrap: wrap; /* Falls der Name extrem lang ist */
}

.chat-username { font-weight: 600; font-size: 1rem; cursor: pointer; }
.role-admin { color: #ef4444; }
.role-user  { color: #fff; }

.chat-badge {
    background: #5865F2; color: #fff;
    font-size: 0.6rem; font-weight: 700; padding: 1px 4px; border-radius: 3px;
}

.chat-timestamp { color: #72767d; font-size: 0.75rem; margin-left: 4px; }

/* DER TEXT FIX */
.chat-text-content {
    color: #dcddde;
    font-size: 0.95rem;
    line-height: 1.4;
    white-space: pre-wrap; /* Zeilenumbrüche und Leerzeichen behalten */
    word-break: break-word; /* Lange Wörter ohne Leerzeichen umbrechen */
    overflow-wrap: anywhere; /* Sicherstellen, dass alles umbricht */
    max-width: 100%; /* Nicht breiter als der Container */
}

.chat-text-content img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    margin-top: 6px;
}

/* ... (VORHERIGER CODE) ... */

/* === MODERN MODAL & AI SCAN === */

.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(8px);
  z-index: 20000; display: flex; align-items: center; justify-content: center;
}

.modal-content {
  width: 100%; max-width: 480px; background: #08080a; 
  border: 1px solid rgba(255,255,255,0.08); border-radius: 24px;
  padding: 30px; position: relative; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}
/* Subtle Glow Border Animation */
.modal-content::before {
  content: ""; position: absolute; inset: 0; border-radius: 24px; padding: 1px;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}

.input-label { display: block; color: #fff; font-size: 0.8rem; font-weight: 600; margin-bottom: 8px; letter-spacing: 0.5px; }

.modern-input {
  width: 100%; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  color: #fff; padding: 14px 16px; border-radius: 12px; font-family: var(--font-sans);
  font-size: 0.95rem; transition: all 0.3s ease;
}
.modern-input:focus {
  outline: none; background: rgba(255,255,255,0.06); border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--hue), 100%, 60%, 0.1);
}

.btn-submit-ai {
  width: 100%; background: linear-gradient(135deg, var(--accent), #2563eb);
  color: white; border: none; padding: 14px; border-radius: 12px;
  font-weight: 700; font-size: 1rem; cursor: pointer; display: flex; 
  align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4); transition: 0.3s;
}
.btn-submit-ai:hover { transform: translateY(-2px); box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.6); }

/* SCAN ANIMATION UI */
.scan-svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.scan-bg { fill: none; stroke: rgba(255,255,255,0.1); stroke-width: 6; }
/* Suche diesen Block und ersetze ihn (drop-shadow ist weg): */
.scan-progress {
  fill: none; 
  stroke: var(--accent); 
  stroke-width: 6;
  stroke-dasharray: 283; 
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 0.5s ease; 
  stroke-linecap: round;
  /* HIER WAR DER ÜBELTÄTER (filter: drop-shadow) - WEG DAMIT! */
}

/* Optional: Wenn du trotzdem Glow willst, mach es über den Container, das ist sauberer: */
.scan-circle {
  position: relative; width: 120px; height: 120px; margin: 0 auto 30px;
  /* Runder Glow statt eckiger Filter */
  box-shadow: 0 0 30px -10px rgba(59, 130, 246, 0.3); 
  border-radius: 50%;
}
.scan-percentage {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 1.5rem; font-weight: 800; color: #fff;
}

.scan-status { color: #fff; font-size: 1.1rem; margin-bottom: 20px; font-weight: 600; }
.scan-details { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; width: fit-content; margin: 0 auto; }
.scan-step { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 10px; opacity: 0.5; transition: 0.3s; }
.scan-step.active { opacity: 1; color: #fff; }
.scan-step.done { color: var(--accent); }
.step-icon { font-weight: bold; }

/* AI TAGS */
.ai-tag-container { display: flex; gap: 10px; justify-content: center; margin-bottom: 10px; }
.ai-tag {
  background: rgba(255,255,255,0.1); padding: 4px 10px; border-radius: 6px;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.1); color: #fff;
}

/* === NEUE LIVE VALIDATION STYLES === */

.label-row {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px;
}

.live-feedback {
    font-family: var(--font-mono); font-size: 0.7rem; 
    color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px;
    transition: color 0.3s; font-weight: 600;
}
.live-feedback.good { color: #10b981; } /* Grün */
.live-feedback.warn { color: #facc15; } /* Gelb */
.live-feedback.bad { color: #ef4444; }  /* Rot */

/* Fehler Input Style (Dunkelrot) */
.modern-input.input-error {
    border-color: #7f1d1d; 
    background: rgba(127, 29, 29, 0.1);
    box-shadow: 0 0 0 1px #7f1d1d;
}

.grammar-hint {
    margin-top: 6px; font-size: 0.75rem; color: #f87171; 
    background: rgba(127, 29, 29, 0.2); padding: 4px 8px; border-radius: 4px;
    border-left: 2px solid #ef4444; display: inline-block;
    animation: reveal 0.3s ease-out;
}

/* Pre Analysis Box (Der Balken unten) */
.pre-analysis-box {
    margin-top: 20px; padding: 15px; border-radius: 12px;
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
    transition: opacity 0.5s ease;
}
.pa-row {
    display: flex; align-items: center; gap: 10px; font-size: 0.8rem; color: #fff; margin-bottom: 6px;
}
.pa-bar-bg {
    flex-grow: 1; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden;
}
.pa-bar-fill {
    height: 100%; background: var(--accent); width: 0%; transition: width 0.5s ease, background 0.3s;
}
.pa-status {
    font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); text-align: right;
}

/* Button States (Disabled = Unsichtbar/Inaktiv) */
.btn-submit-ai.disabled-state {
    opacity: 0.3; pointer-events: none; filter: grayscale(1); cursor: not-allowed;
}
/* Damit der Button smooth erscheint */
.btn-submit-ai {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* ============================================================ */
/* 🚀 HARBOR COMMAND CENTER (ADMIN DASHBOARD V2) */
/* ============================================================ */

/* Container Reset - Maximale Fläche nutzen */
.admin-mode-container {
    background: #030304;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    height: 600px; /* Feste Höhe für Scrolling */
    overflow: hidden;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
}

/* --- TOOLBAR (Oben) --- */
.admin-toolbar {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.01);
}

.admin-filter-group {
    display: flex;
    gap: 8px;
    background: rgba(0,0,0,0.3);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}

.af-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.af-btn:hover { color: #fff; background: rgba(255,255,255,0.05); }

/* Active States für Filter */
.af-btn.active { background: rgba(255,255,255,0.1); color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.af-btn.active.btn-prio-high { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.af-btn.active.btn-prio-med { background: rgba(249, 115, 22, 0.2); color: #f97316; }
.af-btn.active.btn-closed { background: rgba(255,255,255,0.05); color: #888; }


/* --- DATA GRID (Die Tabelle) --- */
/* Definition der Spaltenbreiten für Header UND Rows */
.grid-layout {
    display: grid;
    /* ID | Status | Prio | Subject (flex) | User | Updated | Arrow */
    grid-template-columns: 60px 100px 90px 1fr 140px 110px 40px; 
    gap: 15px;
    align-items: center;
    padding: 0 20px;
}

.admin-grid-header {
    padding: 15px 20px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

#admin-grid-content {
    overflow-y: auto;
    flex-grow: 1;
    padding-top: 5px;
}

/* Scrollbar schick machen */
#admin-grid-content::-webkit-scrollbar { width: 6px; }
#admin-grid-content::-webkit-scrollbar-track { background: #030304; }
#admin-grid-content::-webkit-scrollbar-thumb { background: #222; border-radius: 3px; }

/* --- TICKET ROWS --- */
.admin-row {
    padding: 12px 0;
    margin: 4px 10px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 0.85rem;
}

.admin-row:hover {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.08);
    transform: translateX(2px);
}

/* Zellen Styles */
.cell-id { font-family: var(--font-mono); color: #555; }
.cell-subj { font-weight: 600; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-user { color: #94a3b8; display: flex; align-items: center; gap: 6px; }
.cell-user img { width: 18px; height: 18px; border-radius: 50%; }
.cell-date { font-family: var(--font-mono); font-size: 0.75rem; color: #64748b; }
.cell-arrow { color: var(--accent); opacity: 0; transition: 0.2s; transform: translateX(-5px); }
.admin-row:hover .cell-arrow { opacity: 1; transform: translateX(0); }

/* BADGES (Pills) */
.status-pill, .prio-pill {
    display: inline-block; padding: 3px 8px; border-radius: 4px;
    font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
    text-align: center; min-width: 70px;
}

/* Status Farben */
.st-open { background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }
.st-closed { background: rgba(255, 255, 255, 0.05); color: #666; border: 1px solid rgba(255, 255, 255, 0.05); text-decoration: line-through; }

/* Prio Farben */
.pr-high { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); box-shadow: 0 0 10px rgba(239, 68, 68, 0.1); }
.pr-med { color: #f97316; }
.pr-low { color: #64748b; }

/* ============================================================ */
/* 🎫 USER TICKET CARDS (Modern List Design) */
/* ============================================================ */

/* Container für die Liste */
.user-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px 0;
    max-height: 500px;
    overflow-y: auto;
}

/* Scrollbar schön machen */
.user-list-wrapper::-webkit-scrollbar { width: 6px; }
.user-list-wrapper::-webkit-scrollbar-track { background: transparent; }
.user-list-wrapper::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

/* Die einzelne Ticket Karte */
.ticket-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Hover Effekt: Leichter Glow und Lift */
.ticket-card:hover {
    transform: translateY(-3px) scale(1.01);
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
    background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}

/* Accent Border links für Status */
.ticket-card::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: var(--text-muted); transition: 0.3s;
}
.ticket-card.status-open::before { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.ticket-card.status-closed::before { background: #333; }

/* Inhalt der Karte */
.tc-main { display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }

.tc-header { display: flex; align-items: center; gap: 10px; }
.tc-id { font-family: var(--font-mono); font-size: 0.75rem; color: #666; background: rgba(0,0,0,0.3); padding: 2px 6px; border-radius: 4px; }
.tc-date { font-size: 0.75rem; color: #666; }

.tc-subject { 
    font-size: 1.1rem; font-weight: 600; color: #fff; 
    transition: 0.2s; line-height: 1.4;
}
.ticket-card:hover .tc-subject { color: var(--accent-hover); }

.tc-meta { font-size: 0.85rem; color: #888; display: flex; align-items: center; gap: 8px; }
.tc-category-badge { 
    font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; font-weight: bold; 
    border: 1px solid rgba(255,255,255,0.1); padding: 2px 8px; border-radius: 99px; color: #aaa;
}

/* Pfeil Rechts */
.tc-action {
    width: 40px; height: 40px; border-radius: 50%; 
    background: rgba(255,255,255,0.05); display: grid; place-items: center;
    color: #fff; transition: 0.3s; margin-left: 20px;
}
.ticket-card:hover .tc-action { background: var(--accent); box-shadow: 0 0 15px var(--accent-glow); }

/* Empty State (Viel schöner als nur Text) */
.empty-state-box {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 60px 20px; text-align: center; border: 2px dashed rgba(255,255,255,0.05);
    border-radius: 16px; margin-top: 20px;
}
.empty-icon { font-size: 3rem; margin-bottom: 15px; opacity: 0.2; filter: grayscale(1); }
.empty-title { font-size: 1.1rem; font-weight: 600; color: #fff; margin-bottom: 5px; }
.empty-desc { font-size: 0.9rem; color: #666; max-width: 300px; }

/* === TEAM BADGE IM CHAT === */
.team-badge {
    background: #ef4444; /* Rot für Admins */
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
    vertical-align: middle;
}

/* === CUSTOM CONFIRM BOX === */
.confirm-box {
    background: #0a0a0c;
    border: 1px solid rgba(239, 68, 68, 0.3); /* Roter Rand */
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    max-width: 350px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 30px rgba(239, 68, 68, 0.1);
    position: relative;
}

.confirm-icon {
    width: 60px; height: 60px; background: rgba(239, 68, 68, 0.1);
    border-radius: 50%; display: grid; place-items: center; margin: 0 auto 15px auto;
}

.confirm-actions {
    display: grid; grid-template-columns: 1fr 1fr; gap: 15px;
}

.btn-cancel {
    background: transparent; border: 1px solid rgba(255,255,255,0.1);
    color: #fff; padding: 10px; border-radius: 8px; cursor: pointer; transition: 0.2s;
}
.btn-cancel:hover { background: rgba(255,255,255,0.05); }

.btn-danger {
    background: #ef4444; border: none; color: #fff;
    padding: 10px; border-radius: 8px; cursor: pointer; font-weight: 700;
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3); transition: 0.2s;
}
.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(239, 68, 68, 0.5); }

/* ============================================================ */
/* 👤 ADMIN PROFILE BOX (Command Center Header) */
/* ============================================================ */

.admin-profile-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    margin-bottom: 20px;
}

.admin-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
    box-shadow: 0 0 20px var(--accent-glow);
}

.admin-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-name {
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
}

.admin-stats {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.admin-stats strong {
    color: var(--accent);
}

/* User sieht: "Du wirst betreut von..." */
.claimer-info-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0. 2);
    border-radius: 10px;
    margin-bottom: 15px;
}

.claimer-info-box img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #10b981;
}

.claimer-info-box span {
    font-size: 0.85rem;
    color: #10b981;
}

.claimer-info-box strong {
    color: #fff;
}

/* Unclaimed Badge in Admin Grid */
.badge-unclaimed {
    background: rgba(250, 204, 21, 0.1);
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.3);
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================================ */
/* 🔔 CUSTOM NOTIFY (Statt Browser Alert) */
/* ============================================================ */

.custom-notify {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 12px;
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 99999;
    animation: slideIn 0.3s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    max-width: 400px;
}

.custom-notify.error {
    border-color: #ef4444;
    background: linear-gradient(135deg, rgba(239,68,68,0.2), #1a1a2e);
}

.custom-notify.success {
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(16,185,129,0. 2), #1a1a2e);
}

.custom-notify button {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    margin-left: auto;
}

.custom-notify button:hover {
    color: #fff;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === ADMIN DASHBOARD HEADER === */
.admin-profile-box {
    background: linear-gradient(145deg, rgba(20,20,25,0.8), rgba(10,10,12,0.9));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}
/* Subtiler Glow Effekt hinter dem Avatar */
.admin-profile-box::before {
    content: ""; position: absolute; top: 50%; left: 40px; width: 100px; height: 100px;
    background: var(--accent); filter: blur(60px); opacity: 0.15; transform: translate(-50%, -50%); pointer-events: none;
}

.admin-avatar {
    width: 70px; height: 70px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.1);
    object-fit: cover; background: #222;
}
.online-dot {
    width: 14px; height: 14px; background: #10b981; border: 2px solid #111;
    border-radius: 50%; position: absolute; bottom: 2px; right: 2px;
}

.admin-info { display: flex; flex-direction: column; justify-content: center; }
.admin-name { font-size: 1.4rem; font-weight: 800; color: #fff; letter-spacing: -0.5px; }

.star-rating-display { display: flex; gap: 2px; margin-top: 5px; }
.star { font-size: 1rem; color: #444; transition: color 0.3s; }
.star.filled { color: #facc15; text-shadow: 0 0 10px rgba(250, 204, 21, 0.4); }

.stat-mini-label { font-size: 0.65rem; font-weight: 800; color: #666; letter-spacing: 1px; }
.stat-mini-val { font-size: 1.5rem; font-weight: 800; color: #fff; }

/* Claim Button im Detail View */
.claim-overlay {
    position: absolute; inset: 0; 
    background: rgba(0,0,0,0.8); backdrop-filter: blur(5px);
    z-index: 10; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 15px;
    border-radius: 16px;
}
.claim-text { color: #fff; font-weight: 600; max-width: 80%; text-align: center; }
.btn-claim-big {
    background: var(--accent); color: #fff; border: none; padding: 12px 30px;
    font-size: 1rem; font-weight: 700; border-radius: 12px; cursor: pointer;
    box-shadow: 0 0 20px var(--accent-glow); transition: 0.2s;
}
.btn-claim-big:hover { transform: scale(1.05); }

/* Support Info Box (über dem Chat) */
.support-info-bar {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    animation: popIn 0.3s ease;
}
.sib-avatar { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #10b981; object-fit: cover; }
.sib-text { font-size: 0.85rem; color: #10b981; }
.sib-stars { color: #facc15; font-weight: bold; letter-spacing: 2px; font-size: 0.9rem; }

/* Rating Actions (User View) */
.rating-actions-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}
.btn-rate-yes {
    background: #facc15; color: #000; font-weight: 800; border: none; padding: 12px; border-radius: 8px; cursor: pointer;
    transition: 0.2s; box-shadow: 0 0 15px rgba(250, 204, 21, 0.3);
}
.btn-rate-yes:hover { transform: scale(1.02); background: #fbbf24; }

.btn-rate-no {
    background: rgba(255,255,255,0.05); color: #888; border: 1px solid rgba(255,255,255,0.1); padding: 12px; border-radius: 8px; cursor: pointer; font-weight: 600; transition: 0.2s;
}
.btn-rate-no:hover { background: rgba(255,50,50,0.1); color: #ef4444; border-color: #ef4444; }

/* Standard Zustand (unsichtbar) */
.dropdown-menu {
    position: absolute;
    top: 100%; 
    right: 0;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 10px;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none; /* Nicht klickbar wenn unsichtbar */
    transition: 0.2s ease;
    display: flex; 
    flex-direction: column;
    z-index: 100;
    min-width: 150px;
}

/* Aktivierter Zustand (sichtbar) */
.dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all; /* Jetzt klickbar */
}


/* ================= DROPDOWN MENÜS (Hilfe & Team) ================= */

/* Container für relative Positionierung */
.nav-dropdown-container {
    position: relative;
    display: inline-block;
}

/* Das Menü selbst (Standard: Unsichtbar) */
.custom-dropdown {
    position: absolute;
    top: 120%; /* Etwas Abstand nach unten */
    right: 0;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Die Klasse, die JS hinzufügt -> Macht es sichtbar */
.custom-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Links im Dropdown */
.dropdown-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
}

.dropdown-entry:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}
.dropdown-entry:hover .icon-box {
    color: #fff;
}

/* Pfeil-Animation beim Button */
.dropdown-btn svg {
    transition: transform 0.2s;
}
.dropdown-btn.active svg {
    transform: rotate(180deg);
}

/* === NEUES USER DASHBOARD DESIGN === */

/* Filter Leiste nach rechts und clean */
.filter-toolbar-user {
    display: flex;
    justify-content: flex-end; /* Nach rechts schieben */
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.filter-tab-btn {
    background: none;
    border: none;
    color: #666;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 5px 0;
    position: relative;
    transition: 0.3s;
}

.filter-tab-btn:hover { color: #ccc; }

.filter-tab-btn.active {
    color: #fff;
}

.filter-tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: -11px; /* Auf die Linie setzen */
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 -2px 10px var(--accent);
}

/* Dezente Rating Buttons (User Chat) */
.rating-actions-compact {
    display: flex;
    gap: 15px;
    justify-content: center; /* Mittig */
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.btn-rate-small {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-rate-gold {
    background: rgba(250, 204, 21, 0.1);
    color: #facc15;
    border-color: rgba(250, 204, 21, 0.3);
}
.btn-rate-gold:hover {
    background: #facc15;
    color: #000;
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.2);
}

.btn-rate-dark {
    background: rgba(255,255,255,0.03);
    color: #888;
}
.btn-rate-dark:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

/* Karten-Anpassung: Pending Rating subtiler */
.pending-rating-badge {
    font-size: 0.65rem;
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(250, 204, 21, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ================= START: NEW CSS BLOCK ================= */

/* User Dashboard Header (Angelehnt an Admin) */
.admin-profile-box {
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* Filter Tabs (Aktiv / Archiv) */
.filter-toolbar-user {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.filter-tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #666;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.filter-tab-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.filter-tab-btn.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Detail View Fixes */
.td-input-area {
    margin-top: auto; /* Drückt input nach unten */
}

/* Ghosting Fix: Container verstecken */
#ticket-list-container[style*="display: none"] {
    display: none !important; /* Erzwingen */
}
/* ================= END: NEW CSS BLOCK ================= */

/* === USER DASHBOARD REDESIGN === */

/* 1. Header Clean & Centered */
.user-dash-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 0 30px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease;
}

.udp-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.1);
    margin-bottom: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.udp-info {
    text-align: center;
    margin-bottom: 20px;
}

.udp-info h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
}

.udp-stats-text {
    margin-top: 8px;
    color: #888;
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 4px 16px;
    border-radius: 20px;
    display: inline-block;
}

.udp-actions {
    display: flex;
    gap: 10px;
}

.btn-refresh-minimal {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display:grid; place-items:center;
}
.btn-refresh-minimal:hover { background: rgba(255,255,255,0.1); }

.btn-new-ticket-minimal {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0 20px;
    height: 40px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    box-shadow: 0 0 15px var(--accent-glow);
}

/* 2. Split View Grid */
.user-split-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% 50% Split */
    gap: 40px;
    height: 100%;
    min-height: 300px;
}

.split-col {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.col-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-weight: 800;
    padding-left: 5px;
    display: flex; align-items: center; gap: 8px;
}

.ticket-col-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 20px;
}

/* 3. Modern Cards (Keine Animation beim Laden!) */
.t-card-modern {
    background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 18px;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
    position: relative;
}

.t-card-modern:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
}

.t-card-modern.is-open { border-left: 3px solid #10b981; }
.t-card-modern.is-closed { border-left: 3px solid #333; opacity: 0.6; filter: grayscale(0.8); }
.t-card-modern.is-closed:hover { opacity: 1; filter: grayscale(0); }

.tm-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.tm-id { font-family: var(--font-mono); color: #555; font-size: 0.75rem; }
.tm-date { font-size: 0.75rem; color: #666; }

.tm-subject {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.tm-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tm-cat-badge {
    background: rgba(255,255,255,0.05);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Mobile Anpassung */
@media (max-width: 800px) {
    .user-split-container { grid-template-columns: 1fr; gap: 30px; }
}