/* ═══════════════════════════════════════════════════
   VAULT — Restock Activity Feed v4
   No auto-swipe. Static card grid. Login page only.
   Fully scoped to #vrf-root. Zero global rules.
   ═══════════════════════════════════════════════════ */

/* ── Root wrapper — glass box wrapping header + cards ── */
#vrf-root {
  width: 100%;
  margin: 20px 0 0;
  padding: 14px 14px 14px;
  display: none;
  flex-direction: column;
  gap: 10px;

  /* Subtle glass box — dark mode */
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

#vrf-root.vrf-visible {
  display: flex;
}

/* Light mode box */
:root[data-theme="light"] #vrf-root {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* ── Header line ── */
#vrf-header {
  font-size: 11px;
  line-height: 1.5;
  color: rgba(156, 163, 175, 0.85);
  letter-spacing: 0.01em;
  padding: 0;
}

:root[data-theme="light"] #vrf-header {
  color: rgba(107, 114, 128, 0.90);
}

/* Bold highlighted parts of the header */
#vrf-header-bold,
#vrf-header-date {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.90);
}

:root[data-theme="light"] #vrf-header-bold,
:root[data-theme="light"] #vrf-header-date {
  color: rgba(26, 26, 46, 0.88);
}

/* ── Card row ── */
.vrf-row {
  display: grid;
  gap: 8px;
  width: 100%;
}

.vrf-row.vrf-cols-2 {
  grid-template-columns: 1fr 1fr;
}

.vrf-row.vrf-cols-1 {
  grid-template-columns: 1fr;
}

/* ── Individual card ── */
.vrf-card {
  position: relative;
  overflow: hidden;
  /* Glassmorphism dark */
  background: rgba(14, 14, 20, 0.80);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

:root[data-theme="light"] .vrf-card {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(0, 0, 0, 0.09);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.90);
}

/* ── Card inner padding ── */
.vrf-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 9px 10px 10px;
}

/* ── Top row: dot + badge + time ── */
.vrf-top-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.vrf-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: vrf-pulse 1.8s ease-in-out infinite;
}

@keyframes vrf-pulse {
  0%, 100% { opacity: 1;    transform: scale(1);    }
  50%       { opacity: 0.4; transform: scale(0.75); }
}

.vrf-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.28);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #22c55e;
  line-height: 1.5;
  flex-shrink: 0;
  white-space: nowrap;
}

:root[data-theme="light"] .vrf-badge {
  background: rgba(22, 163, 74, 0.11);
  border-color: rgba(22, 163, 74, 0.26);
  color: #16a34a;
}

.vrf-time {
  margin-left: auto;
  font-size: 8px;
  font-weight: 500;
  color: rgba(156, 163, 175, 0.80);
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

:root[data-theme="light"] .vrf-time {
  color: rgba(107, 114, 128, 0.85);
}

/* ── Product name ── */
.vrf-name {
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.90);
  line-height: 1.4;
  letter-spacing: -0.01em;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

:root[data-theme="light"] .vrf-name {
  color: rgba(26, 26, 46, 0.88);
}

/* ── Quantity row ── */
.vrf-qty-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.vrf-qty-icon {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  color: #22c55e;
}

:root[data-theme="light"] .vrf-qty-icon {
  color: #16a34a;
}

.vrf-qty {
  font-size: 9.5px;
  font-weight: 700;
  color: #22c55e;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

:root[data-theme="light"] .vrf-qty {
  color: #16a34a;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .vrf-dot { animation: none; opacity: 1; }
}

/* ── Mobile: stack to single column on tiny screens ── */
@media (max-width: 340px) {
  .vrf-row.vrf-cols-2 {
    grid-template-columns: 1fr;
  }
}