/* FidgetVault — fintech-posh + blocky */
:root {
  --fv-base: #0b0f17;
  --fv-porcelain: #f7f7fb;
  --fv-mint: #38f2c5;
  --fv-royal: #4f46e5;
  --fv-line: #a7a7b3;
  --fv-shadow: rgba(11, 15, 23, 0.35);
}

html.light {
  --fv-base: #f7f7fb;
  --fv-porcelain: #0b0f17;
  --fv-shadow: rgba(15, 23, 42, 0.12);
}

html,
body {
  min-height: 100%;
}

.fv-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.fv-wrap {
  position: relative;
  z-index: 1;
}

/* Focus rings — visible for a11y */
:focus-visible {
  outline: 2px solid var(--fv-mint);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.fv-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fv-reveal.fv-reveal-in {
  opacity: 1;
  transform: translateY(0);
}

.fv-btn-press:active {
  transform: translateY(2px);
  box-shadow: none !important;
}

/* Drawer cart */
#cart-drawer[hidden] {
  display: none;
}

.cart-drawer-panel {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

#cart-drawer:not([hidden]) .cart-drawer-panel {
  transform: translateX(0);
}

/* Toast */
#toast-root {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast-item {
  animation: fvToastIn 0.35s ease;
}

@keyframes fvToastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
