/* ─── UTILITIES ─── */
.toast-container { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; }
.toast {
  background: rgba(15,15,30,.96); backdrop-filter: blur(20px);
  border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  padding: 10px 18px; color: #f3f4f6; font-size: .82rem; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,.5); max-width: 85vw; pointer-events: auto;
  animation: toastIn .3s var(--ease-smooth);
}
.toast.success { border-color: rgba(16,185,129,.4); }
.toast.error { border-color: rgba(239,68,68,.4); }
.toast.fade-out { animation: toastOut .3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(16px); } }

.skeleton { background: linear-gradient(90deg, rgba(255,255,255,.02) 25%, rgba(139,92,246,.06) 50%, rgba(255,255,255,.02) 75%); background-size: 400px 100%; animation: shimmer .8s ease-in-out infinite; border-radius: var(--radius-md); }
.skeleton-card { width: 170px; height: 310px; }
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }

.shortcuts-modal, .filters-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.8); backdrop-filter: blur(8px); }
.shortcuts-content, .filters-content {
  background: rgba(15,15,30,.98); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); padding: 24px; max-width: 440px; width: 90vw;
}
.shortcuts-close, .filters-close { position: absolute; top: 10px; right: 14px; background: none; border: none; color: var(--text-muted); font-size: 1.4rem; cursor: pointer; }
.shortcuts-grid { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.shortcut-row { display: flex; justify-content: space-between; padding: 6px; border-bottom: 1px solid rgba(255,255,255,.03); }
.shortcut-row kbd { background: var(--primary-surface); padding: 2px 7px; border-radius: 4px; font-family: monospace; color: var(--primary-bright); font-size: .75rem; }

.keyboard-hint { position: fixed; bottom: 20px; left: 20px; z-index: 100; padding: 8px 14px; background: rgba(0,0,0,.5); backdrop-filter: blur(12px); border-radius: var(--radius-sm); border: 1px solid var(--border-subtle); font-size: .68rem; color: var(--text-subtle); opacity: 0; transition: opacity .3s; }
.keyboard-hint.show { opacity: 1; }
.keyboard-hint kbd { display: inline-block; padding: 1px 5px; margin: 0 2px; background: var(--primary-surface); border-radius: 3px; font-family: monospace; font-size: .65rem; color: var(--primary-bright); }

.back-to-top {
  position: fixed; bottom: 20px; right: 20px; z-index: 998;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none; color: #fff; font-size: 1.2rem; font-weight: 700;
  cursor: pointer; opacity: 0; visibility: hidden;
  transition: all var(--dur-quick) var(--ease-out);
  box-shadow: 0 4px 20px rgba(139,92,246,.3);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px) scale(1.08); box-shadow: 0 8px 28px rgba(139,92,246,.5); }

.site-footer {
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.5));
  border-top: 1px solid var(--border-subtle);
  margin-top: 60px; padding: 50px 48px 36px; text-align: center;
}
.footer-inner { max-width: 1000px; margin: 0 auto; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; }
.footer-peacock { width: 30px; border-radius: 4px; }
.footer-name { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--primary-bright); }
.footer-tag { color: var(--text-muted); font-size: .82rem; margin-bottom: 16px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: .78rem; transition: color var(--dur-fast); }
.footer-links a:hover { color: var(--primary-bright); }

.welcome-overlay {
  position: fixed; inset: 0; z-index: 99999;
  background: radial-gradient(ellipse at center, #1a0a2e 0%, var(--canvas) 60%);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .8s ease, visibility .8s ease;
}
.welcome-overlay.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.welcome-peacock { width: 120px; border-radius: 12px; filter: drop-shadow(0 0 30px var(--primary-glow)); margin-bottom: 20px; animation: welcomeBob 2s ease-in-out infinite; }
@keyframes welcomeBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.welcome-title { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; background: linear-gradient(135deg, var(--primary-bright), var(--accent-light)); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 6px; }
.welcome-subtitle { font-size: 1.1rem; color: var(--primary-bright); }
.welcome-tagline { font-size: .85rem; color: var(--text-muted); margin: 8px 0 24px; }
.welcome-loader { width: 50px; height: 3px; margin: 0 auto; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; }
.welcome-loader::after { content: ''; display: block; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, var(--primary-light), transparent); animation: welcomeLoad 1.5s infinite; }
@keyframes welcomeLoad { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

.filters-content { position: relative; }
.filter-group { margin-bottom: 12px; }
.filter-group label { display: block; color: var(--text-muted); font-size: .72rem; font-weight: 600; margin-bottom: 4px; text-transform: uppercase; }
.filter-group select { width: 100%; padding: 7px 10px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-sm); color: #f3f4f6; font-size: .8rem; }
.apply-filters { width: 100%; padding: 9px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; border: none; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; }

.search-autocomplete { padding: 10px 0; display: flex; gap: 6px; flex-wrap: wrap; }
.search-chip { padding: 3px 10px; background: var(--primary-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-full); color: var(--primary-bright); font-size: .74rem; cursor: pointer; }
.search-chip:hover { background: rgba(139,92,246,.25); }

.page { display: none; }
.page.active { display: block; animation: fadeIn .3s ease; }
main { padding-top: 0; position: relative; z-index: 1; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 768px) {
  .site-footer { padding: 36px 16px 24px; }
  .site-footer { padding: 36px 16px 24px; }
}
