*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; overflow-x: hidden; background: #0f172a; color: #fff; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
  70%  { box-shadow: 0 0 0 10px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.ani-fade  { animation: fadeIn 0.35s ease-out both; }
.ani-scale { animation: fadeInScale 0.3s ease-out both; }
.ani-pulse { animation: pulse-ring 2s ease-in-out infinite; }
.ani-shimmer {
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.10s; }
.delay-3 { animation-delay: 0.15s; }
.delay-4 { animation-delay: 0.20s; }
.delay-5 { animation-delay: 0.25s; }
.delay-6 { animation-delay: 0.30s; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

.cb-card { transition: all 0.15s ease; }
.cb-card:has(input:checked) {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
}
.cb-card input[type="checkbox"] {
  accent-color: #ef4444;
  width: 16px; height: 16px; flex-shrink: 0;
}

.card-bg { background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); }
.card-header-bg { background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); }

.comm-btn { will-change: transform; }
.comm-btn:active { transform: scale(0.98); }

@media print {
  body { background: white !important; color: black !important; }
  nav, footer, button:not(#printable-card *), .no-print { display: none !important; }
  #printable-card {
    box-shadow: none !important;
    border: 2px solid #000 !important;
    border-radius: 12px !important;
    max-width: 3.375in; margin: 0 auto; break-inside: avoid;
  }
}