.dash-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-neutral-surface-warm);
  background: var(--white-color);
  box-shadow:
    0 2px 8px rgba(var(--black-color-rgb), 0.05),
    0 0 0 0.5px rgba(var(--black-color-rgb), 0.04);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .dash-card {
    border-radius: var(--radius-2xl);
  }
}

.dash-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    ellipse 300px 200px at var(--mx, 50%) var(--my, 0%),
    rgba(var(--primary-color-rgb), 0.06),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.dash-card:hover::before {
  opacity: 1;
  background: radial-gradient(
    ellipse 350px 250px at var(--mx, 50%) var(--my, 0%),
    rgba(var(--primary-color-rgb), 0.14),
    transparent 70%
  );
}

.dash-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px) scale(1.012);
  box-shadow:
    0 20px 60px -12px rgba(var(--primary-color-rgb), 0.22),
    0 4px 16px rgba(var(--black-color-rgb), 0.07);
}

@media (max-width: 1023px) {
  .dash-card:hover {
    transform: translateY(-1px);
  }
}

.card-title {
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  letter-spacing: -0.04em;
  color: var(--text-color);
  transition: all 0.3s ease;
  line-height: var(--lh-tight);
}

@media (min-width: 640px) {
  .card-title {
    font-size: var(--text-xl);
  }
}

@media (min-width: 1024px) {
  .card-title {
    font-size: 1.35rem;
  }
}

.dash-card:hover .card-title {
  color: var(--color-brand-green-2dba3e);
  text-shadow: 0 0 24px rgba(var(--primary-color-rgb), 0.2);
}

.card-subtitle {
  font-size: var(--text-xs);
  color: var(--text-color-subtle);
  font-weight: var(--fw-regular);
  margin-top: 0.15rem;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

@media (min-width: 640px) {
  .card-subtitle {
    font-size: var(--text-sm);
    margin-top: var(--space-1);
  }
}

.dash-card:hover .card-subtitle {
  color: var(--text-color-muted);
}

.card-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(var(--primary-color-rgb), 0.14);
  border: 1px solid rgba(var(--primary-color-rgb), 0.28);
  color: var(--color-brand-green-3dcc4e);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .card-arrow {
    width: 2.25rem;
    height: 2.25rem;
  }
}

.dash-card:hover .card-arrow {
  background: rgba(var(--primary-color-rgb), 0.24);
  border-color: rgba(var(--primary-color-rgb), 0.45);
  transform: translateX(4px) scale(1.08);
  box-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.2);
}

.card-arrow--count {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  padding: 0 0.35rem;
  min-width: 2rem;
}

@media (min-width: 640px) {
  .card-arrow--count {
    font-size: 0.85rem;
    min-width: 2.25rem;
  }
}

.dash-card:hover .card-arrow--count {
  transform: scale(1.08);
}

.msg-icon-wrap {
  position: relative;
  overflow: visible;
}

.msg-floating-counter {
  position: absolute;
  top: -7px;
  right: -8px;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.32rem;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 2px var(--white-color, #fff),
    0 2px 6px rgba(255, 59, 48, 0.45);
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

@media (min-width: 640px) {
  .msg-floating-counter {
    min-width: 1.25rem;
    height: 1.25rem;
    font-size: 0.72rem;
    top: -8px;
    right: -9px;
  }
}

.dash-card:hover .msg-floating-counter {
  transform: scale(1.08);
}

.card-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.6rem;
  background: rgba(var(--primary-color-rgb), 0.13);
  border: 1px solid rgba(var(--primary-color-rgb), 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-green-3dcc4e);
  transition: all 0.35s ease;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .card-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
  }
}

.dash-card:hover .card-icon {
  background: rgba(var(--primary-color-rgb), 0.2);
  border-color: rgba(var(--primary-color-rgb), 0.4);
  box-shadow: 0 0 24px rgba(var(--primary-color-rgb), 0.18);
  transform: scale(1.05);
}

.modal-backdrop {
  background: rgba(var(--black-color-rgb), 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-box {
  background-color: var(--white-color);
  border: 1px solid rgba(var(--black-color-rgb), 0.12);
  border-radius: var(--radius-xl);
  box-shadow:
    0 25px 50px -12px rgba(var(--black-color-rgb), 0.2),
    0 0 0 1px rgba(var(--black-color-rgb), 0.06);
  overflow: hidden;
}

.modal-footer {
  border-top: 1px solid rgba(var(--black-color-rgb), 0.08);
  background-color: rgba(var(--white-color-rgb), 0.8);
}

.modal-title {
  font-size: var(--modal-title, 1.35rem);
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.modal-desc {
  font-size: var(--modal-subtitle, 1rem);
  color: var(--text-color-muted);
  line-height: 1.625;
}

.icon-box-danger {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: rgba(var(--danger-color-light-rgb), 0.08);
  border: 1px solid rgba(var(--danger-color-light-rgb), 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--danger-color-light);
}

.btn {
  font-weight: var(--fw-bold);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  cursor: pointer;
  flex-shrink: 0;
}

.btn:active {
  transform: scale(0.98);
}

.btn-ghost {
  background-color: var(--color-gray-100);
  border: 1px solid rgba(var(--black-color-rgb), 0.1);
  color: var(--color-gray-700);
  font-weight: var(--fw-semibold);
  padding: 0.625rem var(--space-4);
}

.btn-ghost:hover {
  background-color: var(--color-gray-200);
  border-color: rgba(var(--black-color-rgb), 0.15);
}

.btn-danger {
  background-color: rgba(var(--danger-color-light-rgb), 0.9);
  color: var(--white-color);
  box-shadow: 0 4px 12px -2px rgba(var(--danger-color-light-rgb), 0.25);
  padding: 0.625rem var(--space-4);
  border: none;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color-hover));
  color: var(--black-color);
  font-weight: var(--fw-bold);
  font-size: 0.8rem;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.15);
  font-family: "Outfit", sans-serif;
  white-space: nowrap;
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(var(--primary-color-rgb), 0.25);
  transform: translateY(-1px);
}

@keyframes scaleIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-scale-in {
  animation: scaleIn 0.2s ease-out forwards;
}

@keyframes cardIn {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-animate {
  animation: cardIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.card-animate:nth-child(1) {
  animation-delay: 0.05s;
}
.card-animate:nth-child(2) {
  animation-delay: 0.12s;
}
.card-animate:nth-child(3) {
  animation-delay: 0.19s;
}

@keyframes rotateBorderGlow {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.glow-wrap {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.glow-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  animation: rotateBorderGlow 4s linear infinite;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    transparent 20%,
    rgba(var(--primary-color-rgb), 0.15) 25%,
    rgba(var(--primary-color-rgb), 0.7) 33%,
    rgba(var(--primary-color-rgb), 0.9) 38%,
    rgba(var(--primary-color-rgb), 0.7) 43%,
    rgba(var(--primary-color-rgb), 0.15) 50%,
    transparent 55%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

.glow-inner {
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: var(--white-color);
  z-index: 1;
  pointer-events: none;
}

.progress-track {
  width: 100%;
  height: 4px;
  background: rgba(var(--black-color-rgb), 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-color-hover));
  box-shadow: 0 0 12px rgba(var(--primary-color-rgb), 0.4);
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-fill-job {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--indigo-color-light), var(--indigo-color));
  box-shadow: 0 0 12px rgba(var(--indigo-color-light-rgb), 0.4);
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-track-sm {
  height: 6px;
}

.msg-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--primary-color);
  color: var(--black-color);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.22);
  flex-shrink: 0;
}
