:root {
  --bg: #0b0f17;
  --card: rgba(255, 255, 255, 0.007);
  --card2: rgba(255, 255, 255, 0.007);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(148, 163, 184, 0.95);
  --accent: #008080;
  --accent2: rgba(11, 110, 105, 0.055);
  --accent3: rgba(255, 77, 77, 0.103);
  --radius: 18px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: none;
  font-family: Inter, system-ui, sans-serif;
  color: #e6e6e6;
  min-height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding-top: 72px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;

  background:
    radial-gradient(circle at top, #141824, #0b0d12),
    radial-gradient(circle at bottom, rgba(0, 128, 128, 0.12), transparent 60%);

  background-repeat: no-repeat;
  background-size: cover;
}

body {
  position: relative;
  overflow-x: hidden;
}

.nebula {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 185, 177, 0.2), transparent 70%);
  filter: blur(180px);
  pointer-events: none;
  z-index: 0;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.nebula1 {
  top: -200px;
  left: -100px;
  width: 700px;
  height: 700px;
  animation: floatNebula1 80s infinite;
  opacity: 0.7;
}

.nebula2 {
  bottom: -250px;
  left: 50px;
  width: 600px;
  height: 600px;
  animation: floatNebula2 100s infinite;
  opacity: 0.6;
}

.nebula3 {
  top: 20%;
  left: 40%;
  width: 800px;
  height: 800px;
  animation: floatNebula3 120s infinite;
  opacity: 0.5;
}

.nebula4 {
  top: 50%;
  right: 20%;
  width: 650px;
  height: 650px;
  animation: floatNebula4 90s infinite;
  opacity: 0.55;
}

.nebula5 {
  bottom: 10%;
  right: 10%;
  width: 750px;
  height: 750px;
  animation: floatNebula5 110s infinite;
  opacity: 0.6;
}

@keyframes floatNebula1 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(-50px, 30px) scale(1.05);
  }
  50% {
    transform: translate(-80px, 60px) scale(1.1);
  }
  75% {
    transform: translate(-30px, 20px) scale(1.08);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes floatNebula2 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(40px, -30px) scale(1.03);
  }
  50% {
    transform: translate(60px, -50px) scale(1.06);
  }
  75% {
    transform: translate(20px, -20px) scale(1.04);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes floatNebula3 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(-20px, 40px) scale(1.04);
  }
  50% {
    transform: translate(-40px, 80px) scale(1.07);
  }
  75% {
    transform: translate(-10px, 30px) scale(1.05);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes floatNebula4 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -50px) scale(1.03);
  }
  50% {
    transform: translate(50px, -70px) scale(1.06);
  }
  75% {
    transform: translate(20px, -30px) scale(1.04);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes floatNebula5 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(-60px, 40px) scale(1.05);
  }
  50% {
    transform: translate(-80px, 60px) scale(1.08);
  }
  75% {
    transform: translate(-40px, 20px) scale(1.06);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

.dash {
  width: 100%;
  max-width: 720px;
}

.topbar {
  text-align: center;
  margin-bottom: 18px;
}

.topbar h1 {
  font-size: 28px;
  margin: 0;
  font-weight: 900;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.card {
  background: linear-gradient(135deg, var(--card), var(--accent2));
  border: 1px solid rgba(15, 185, 177, 0.18);
  border-radius: var(--radius);
  padding: 18px;
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.35);
  transition: 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

label {
  font-size: 12px;
  color: var(--muted);
}

input {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 185, 177, 0.15);
}

.btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #12d6cd);
  color: white;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s;
}

.btn:hover {
  transform: scale(1.02);
}

.card-header {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 12px;
}

.progress-wrap {
  height: 10px;
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #6cf);
  transition: width 0.8s ease-in-out;
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  margin-top: 8px;
  margin-left: 250px;
}

.status-bestätigt {
  background: rgba(15, 185, 177, 0.12);
  border: 1px solid rgba(15, 185, 177, 0.35);
  color: #0fb9b1;
}

.status-in_vorbereitung {
  background: rgba(241, 196, 15, 0.12);
  border: 1px solid rgba(241, 196, 15, 0.35);
  color: #f1c40f;
}

.status-verpackt {
  background: rgba(155, 89, 182, 0.12);
  border: 1px solid rgba(155, 89, 182, 0.35);
  color: #b57cff;
}

.status-unterwegs {
  background: rgba(52, 152, 219, 0.12);
  border: 1px solid rgba(52, 152, 219, 0.35);
  color: #4aa3ff;
}

.status-zugestellt {
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.35);
  color: #2ecc71;
}

.status-storniert {
  background: rgba(231, 76, 60, 0.12);
  border: 1px solid rgba(231, 76, 60, 0.35);
  color: #e74c3c;
}

.status-problem {
  background: rgba(255, 77, 77, 0.12);
  border: 1px solid rgba(255, 77, 77, 0.35);
  color: #ff4d4d;
}

p {
  margin: 6px 0;
  color: var(--muted);
}

b {
  color: white;
}

hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 12px 0;
}

.card-error {
  border: 1px solid rgba(255, 77, 77, 0.5) !important;
  box-shadow: 0 0 25px rgba(255, 77, 77, 0.15);
  background: linear-gradient(135deg, var(--card), var(--accent3));
  animation: dangerPulse 2s infinite;
}

.progress-bar-error {
  background: linear-gradient(90deg, #ff4d4d, #ff2e2e) !important;
  animation: dangerPulse 2s infinite;
}

@keyframes dangerPulse {
  0% {
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.1);
  }
  50% {
    box-shadow: 0 0 25px rgba(255, 77, 77, 0.25);
  }
  100% {
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.1);
  }
}

.status-verzögert {
  background: rgba(241, 196, 15, 0.15);
  border: 1px solid rgba(241, 196, 15, 0.5);
  color: #f1c40f;
  animation: blinkWarn 1.2s infinite;
}

@keyframes blinkWarn {
  0% {
    opacity: 1;
    box-shadow: 0 0 0 rgba(241, 196, 15, 0);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 18px rgba(241, 196, 15, 0.35);
  }
  100% {
    opacity: 1;
    box-shadow: 0 0 0 rgba(241, 196, 15, 0);
  }
}

.timeline {
  margin-top: 14px;
  border-left: 2px solid #2a2f3a;
  padding-left: 22px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.timeline-item {
  position: relative;
  margin-bottom: 18px;
  padding-left: 10px;
}

.timeline-dot {
  position: absolute;
  left: -12px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(79, 140, 255, 0.5);
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline-content b {
  font-size: 13px;
  color: #e8ecf5;
}

.timeline-content .muted {
  font-size: 12px;
  opacity: 0.7;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  margin-bottom: 6px;
}

.step.done .dot {
  background: #0fb9b1;
}

.step.active .dot {
  background: #f1c40f;
  box-shadow: 0 0 10px rgba(241, 196, 15, 0.4);
}

.step.done span,
.step.active span {
  color: white;
  font-weight: 600;
}

.history {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.history h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
}

.history-item {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.8);
}

.site-credit {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);

  letter-spacing: 0.4px;
  opacity: 15%;
}

.site-credit .heart {
  color: #ff4d6d;
  margin: 0 4px;
}

.site-credit .credit-name {
  color: #0fb9b1;
  font-weight: 500;
}

.note-list {
  margin: 5px 0 0 15px;
  padding: 0;
  list-style: none;
}

.note-list li {
  margin-bottom: 4px;
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);

  background: rgba(20, 25, 35, 0.95);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;

  font-size: 14px;
  font-weight: 600;

  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);

  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  border-color: rgba(46, 204, 113, 05);
  box-shadow: 0 0 15px rgba(46, 204, 113, 0.4);
}

.toast.error {
  border-color: rgba(231, 76, 60, 0.5);
  box-shadow: 0 0 15px rgba(231, 76, 60, 0.4);
}

.toast.warn {
  border-color: rgba(241, 196, 15, 0.5);
  box-shadow: 0 0 15px rgba(241, 196, 15, 0.4);
}
