/* Vidyost Cyberpunk Theme — tweaks over Tailwind CDN. */

:root {
  --vd-bg: #0a0e1a;
  --vd-panel: #111827;
  --vd-accent: #0ea5e9;
  --vd-accent-2: #a855f7;
  --vd-success: #10b981;
  --vd-warn: #f59e0b;
  --vd-danger: #ef4444;
  --vd-muted: #64748b;
}

html, body {
  background: radial-gradient(circle at 20% -10%, rgba(14,165,233,0.15), transparent 40%),
              radial-gradient(circle at 120% 110%, rgba(168,85,247,0.12), transparent 40%),
              var(--vd-bg);
  color: #e2e8f0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
}

.vd-glass {
  background: rgba(17, 24, 39, 0.62);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(148, 163, 184, 0.10);
}

@media (min-width: 1024px) {
  .vd-builder-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }
}

.vd-accent {
  color: var(--vd-accent);
}

.vd-btn {
  background: linear-gradient(135deg, var(--vd-accent) 0%, var(--vd-accent-2) 100%);
  color: white;
  padding: 0.6rem 1.2rem;
  min-height: 48px;
  border-radius: 0.6rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 10px 30px -10px rgba(14,165,233,0.4);
}

.vd-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 40px -8px rgba(168,85,247,0.5); }
.vd-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.vd-btn-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.vd-btn-spinner {
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: rgba(255, 255, 255, 0.98);
  animation: vd-spin 0.8s linear infinite;
  flex: 0 0 auto;
}

.vd-btn-ghost {
  background: rgba(148, 163, 184, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: 0.5rem 1rem;
  min-height: 48px;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.vd-btn-ghost:hover { background: rgba(148, 163, 184, 0.12); }

.vd-chip {
  background: rgba(14,165,233,0.08);
  border: 1px solid rgba(14,165,233,0.3);
  color: var(--vd-accent);
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.75rem;
}

/* Glow headings */
.vd-glow { text-shadow: 0 0 30px rgba(14,165,233,0.5); }

/* BOM table */
.vd-bom { border-collapse: collapse; width: 100%; }
.vd-bom th { text-align: left; color: #94a3b8; font-weight: 500; font-size: 0.8rem; padding: 0.6rem 0.8rem; border-bottom: 1px solid rgba(148,163,184,0.15); }
.vd-bom td { padding: 0.7rem 0.8rem; border-bottom: 1px solid rgba(148,163,184,0.08); }

/* Mobile tweaks */
@media (max-width: 640px) {
  .vd-hide-mobile { display: none; }
  .vd-ticker { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════ */
/* v1.1 engagement UI additions — nudge ticker, bento cards, skeleton, */
/* example strip, toast stack, BOM grid, inputs                        */
/* ═══════════════════════════════════════════════════════════════════ */

/* ─── Nudge ticker (marquee) ─── */
.vd-ticker {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(148,163,184,0.08);
  border-bottom: 1px solid rgba(148,163,184,0.08);
  background: rgba(14,165,233,0.04);
}
.vd-ticker::before, .vd-ticker::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.vd-ticker::before { left: 0; background: linear-gradient(to right, var(--vd-bg), transparent); }
.vd-ticker::after  { right: 0; background: linear-gradient(to left, var(--vd-bg), transparent); }
.vd-ticker-track {
  display: flex; gap: 2.5rem; width: max-content;
  animation: vd-scroll 80s linear infinite;
  padding: 0.6rem 0;
}
.vd-ticker:hover .vd-ticker-track { animation-play-state: paused; }
.vd-ticker-item {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; color: #cbd5e1; white-space: nowrap;
}
.vd-ticker-item .vd-dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--vd-success); box-shadow: 0 0 8px var(--vd-success);
}
@keyframes vd-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── Bento cards (bio-bandish inspired, vidyost-themed) ─── */
.vd-bento {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 900px) { .vd-bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .vd-bento { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .vd-card.large,
  .vd-card.wide {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 150px;
  }
}

.vd-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 1.1rem;
  min-height: 150px;
  border-radius: 1rem;
  background: linear-gradient(160deg, rgba(14,165,233,0.08), rgba(168,85,247,0.04) 60%, rgba(17,24,39,0.6));
  border: 1px solid rgba(148,163,184,0.12);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

.bom-item--need {
  border-color: rgba(96, 165, 250, 0.18);
  background: linear-gradient(180deg, rgba(15,23,42,0.92), rgba(17,24,39,0.72));
}
.bom-item--have {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.42), rgba(15, 23, 42, 0.88));
  box-shadow: 0 18px 34px -24px rgba(16, 185, 129, 0.65);
}

.vd-choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 1rem;
}
.vd-choice-btn {
  min-height: 44px;
  border: none;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.72rem 0.9rem;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.72);
  color: #a5b4fc;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.vd-choice-btn:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.22), 0 12px 26px -18px rgba(14, 165, 233, 0.45);
}
.vd-choice-btn--have { color: #bbf7d0; background: rgba(6, 78, 59, 0.22); }
.vd-choice-btn--need { color: #e0e7ff; background: rgba(30, 41, 59, 0.82); }
.vd-choice-btn--have.is-active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(5, 150, 105, 0.16));
  color: #ecfdf5;
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.22), 0 14px 30px -18px rgba(16, 185, 129, 0.7);
}
.vd-choice-btn--need.is-active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.28));
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.22), 0 16px 34px -20px rgba(96, 165, 250, 0.7);
}
.vd-quote-banner {
  position: relative;
  overflow: hidden;
  border-radius: 1.2rem;
  border: 1px solid rgba(59, 130, 246, 0.26);
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.18), transparent 28%),
    linear-gradient(150deg, rgba(8, 47, 73, 0.96), rgba(15, 23, 42, 0.98) 58%, rgba(30, 41, 59, 0.96));
  padding: 1.2rem;
  box-shadow: 0 24px 60px -34px rgba(59, 130, 246, 0.5);
}
.vd-quote-banner__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.vd-quote-banner__eyebrow {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a7f3d0;
}
.vd-quote-banner__title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #f8fafc;
  margin-top: 0.35rem;
}
.vd-quote-banner__subtitle,
.vd-quote-banner__note {
  font-size: 0.88rem;
  color: #cbd5e1;
  margin-top: 0.4rem;
}
.vd-quote-banner__badge {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #d1fae5;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.vd-quote-banner__pricing {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  margin-top: 1.2rem;
}
.vd-quote-banner__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #94a3b8;
}
.vd-quote-banner__strike {
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.45);
  text-decoration: line-through;
  margin-top: 0.35rem;
}
.vd-quote-banner__coupon,
.vd-quote-banner__refund {
  font-size: 0.76rem;
  font-weight: 700;
  margin-top: 0.35rem;
}
.vd-quote-banner__coupon { color: #86efac; }
.vd-quote-banner__refund { color: #7dd3fc; }
.vd-quote-banner__offer { text-align: right; }
.vd-quote-banner__price {
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  margin-top: 0.35rem;
}
.vd-quote-banner__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.1rem;
}
.vd-btn-ghost--wide {
  width: 100%;
  min-height: 52px;
}
.vd-modal-price-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.95));
  border: 1px solid rgba(59, 130, 246, 0.18);
}
.vd-modal-secondary {
  min-height: 50px;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.82);
  color: #e2e8f0;
  font-weight: 700;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.vd-modal-secondary:hover {
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(59, 130, 246, 0.28);
  transform: translateY(-1px);
}
.vd-quote-success {
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.28);
  color: #d1fae5;
  font-size: 0.84rem;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .vd-choice-row,
  .vd-quote-banner__actions {
    grid-template-columns: 1fr;
  }
  .vd-quote-banner__header,
  .vd-quote-banner__pricing {
    flex-direction: column;
    align-items: flex-start;
  }
  .vd-quote-banner__offer {
    text-align: left;
  }
  .vd-modal-price-card {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
}

@media (max-width: 640px) {
  .vd-card { min-height: 132px; padding: 1rem; }
}
.vd-card::before {
  content: ""; position: absolute; top: -30px; right: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,0.18), transparent 70%);
  pointer-events: none;
}
.vd-card:hover {
  transform: translateY(-3px);
  border-color: rgba(14,165,233,0.45);
  box-shadow: 0 20px 40px -20px rgba(14,165,233,0.35);
}
.vd-card-icon {
  width: 42px; height: 42px; border-radius: 0.75rem;
  background: rgba(14,165,233,0.15);
  border: 1px solid rgba(14,165,233,0.35);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 0.6rem;
}
.vd-card-title { font-size: 1rem; font-weight: 600; color: #f1f5f9; margin-bottom: 0.3rem; }
.vd-card-desc  { font-size: 0.82rem; color: #94a3b8; line-height: 1.45; }
.vd-card-cta   {
  margin-top: auto; padding-top: 0.7rem;
  font-size: 0.78rem; font-weight: 600; color: var(--vd-accent);
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.vd-card.large { grid-column: span 2; grid-row: span 2; min-height: 280px; }
.vd-card.wide  { grid-column: span 2; }

/* ─── Skeleton shimmer ─── */
.vd-skel {
  position: relative; overflow: hidden;
  background: rgba(148,163,184,0.08); border-radius: 0.5rem;
}
.vd-skel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(14,165,233,0.08), transparent);
  animation: vd-shimmer 1.6s infinite;
}
@keyframes vd-shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ─── Example strip (horizontal scroll snap) ─── */
.vd-strip {
  display: flex; gap: 1rem; overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
}
.vd-strip::-webkit-scrollbar { height: 4px; }
.vd-strip::-webkit-scrollbar-thumb { background: rgba(14,165,233,0.35); border-radius: 2px; }
.vd-ex {
  flex: 0 0 260px; scroll-snap-align: start;
  border-radius: 0.9rem; padding: 1rem;
  background: linear-gradient(160deg, rgba(17,24,39,0.7), rgba(10,14,26,0.8));
  border: 1px solid rgba(148,163,184,0.1);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
@media (max-width: 640px) { .vd-ex { flex-basis: 220px; } }
.vd-ex:hover { transform: translateY(-2px); border-color: rgba(168,85,247,0.4); }
.vd-ex-emoji { font-size: 1.8rem; margin-bottom: 0.4rem; }
.vd-ex-title { font-size: 0.9rem; font-weight: 600; color: #e2e8f0; margin-bottom: 0.3rem; }
.vd-ex-meta  { font-size: 0.72rem; color: #94a3b8; }

/* ─── Toast stack ─── */
/* Stacked ABOVE the WhatsApp FAB (which sits at bottom:1rem right:1rem z-index:8200)
   so toasts never hide behind the FAB.
   v2.4.0 — raised z-index to 99999 so toasts also float above any modal /
   popup (buy modal, auth dialog, Razorpay iframe container, etc.). This is
   the Lehana-wide rule documented in
   /root/.github/instructions/v2/banner-toast-dnd.instructions.md §Z-Index. */
.vd-toast-stack {
  position: fixed; bottom: 6rem; right: 1.5rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  z-index: 99999; pointer-events: none;
  max-width: 340px;
}
.vd-toast {
  pointer-events: auto;
  position: relative;
  background: rgba(17,24,39,0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(14,165,233,0.3);
  border-left: 3px solid var(--vd-accent);
  padding: 0.7rem 2.3rem 0.7rem 1rem;
  border-radius: 0.6rem;
  font-size: 0.82rem; color: #e2e8f0;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.4);
  animation: vd-toast-in 0.35s ease-out;
}
.vd-toast__dnd {
  position: absolute; top: 0.35rem; right: 0.4rem;
  width: 1.6rem; height: 1.6rem;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: transparent; color: #94a3b8; cursor: pointer;
  border-radius: 0.35rem;
  transition: color 0.15s ease, background 0.15s ease;
}
.vd-toast__dnd:hover { color: #f8fafc; background: rgba(148,163,184,0.18); }
.vd-toast__dnd svg { display: block; }
.vd-toast__slash { opacity: 0; transition: opacity 0.15s ease; }
.vd-toast.is-snoozed .vd-toast__dnd { color: #f87171; }
.vd-toast.is-snoozed .vd-toast__slash { opacity: 1; }
.vd-toast.out { animation: vd-toast-out 0.3s ease-in forwards; }
.vd-toast b { color: var(--vd-accent); }
@keyframes vd-toast-in  { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes vd-toast-out { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }
@media (max-width: 640px) { .vd-toast-stack { bottom: 0.8rem; right: 0.8rem; left: 0.8rem; max-width: none; } }
@media (max-width: 640px) { .vd-toast { padding-bottom: calc(0.8rem + env(safe-area-inset-bottom, 0px)); } }

/* ─── Results categories, BOM grid, step cards ─── */
.vd-section { margin-top: 1.2rem; }
.vd-section-h {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7dd3fc;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-shadow: 0 0 20px rgba(14, 165, 233, 0.22);
}
.vd-section-card,
.vd-article-section {
  position: relative;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 1.15rem;
  background:
    radial-gradient(circle at top right, rgba(14,165,233,0.12), transparent 30%),
    linear-gradient(160deg, rgba(15,23,42,0.96), rgba(17,24,39,0.88) 58%, rgba(30,41,59,0.92));
  border: 1px solid rgba(96, 165, 250, 0.18);
  box-shadow: 0 24px 56px -36px rgba(14, 165, 233, 0.45);
  overflow: hidden;
}
.vd-section-card::before,
.vd-article-section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(14,165,233,0), rgba(14,165,233,0.58), rgba(168,85,247,0.4), rgba(14,165,233,0));
}
.vd-article-title {
  font-size: 1.18rem;
  line-height: 1.35;
  font-weight: 800;
  color: #f8fafc;
  text-shadow: 0 12px 30px rgba(14, 165, 233, 0.16);
}
.vd-article-copy {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #cbd5e1;
}
.vd-article-subgrid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.vd-mini-card {
  padding: 0.95rem 1rem;
  border-radius: 0.95rem;
  background: linear-gradient(180deg, rgba(2,6,23,0.45), rgba(15,23,42,0.82));
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.vd-mini-card__kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 0.45rem;
}
.vd-mini-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
}
.vd-mini-card__copy {
  font-size: 0.84rem;
  line-height: 1.65;
  color: #cbd5e1;
}
.vd-section-note {
  margin-top: 0.95rem;
  padding: 0.8rem 0.95rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(59, 130, 246, 0.18);
  background: rgba(14, 165, 233, 0.08);
  color: #bfdbfe;
  font-size: 0.82rem;
  line-height: 1.6;
}
.vd-tip-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}
.vd-tip-list li {
  position: relative;
  padding-left: 1rem;
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.65;
}
.vd-tip-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--vd-accent);
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.65);
}
.vd-tip-list--danger li::before {
  background: var(--vd-danger);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.55);
}
/* v1.8.0 — circuit schematic SVG card.
   schemdraw renders dark strokes on transparent bg; we wrap in a near-white
   card so lines stay crisp on the cyberpunk dark site. */
.vd-circuit-wrap {
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 0.7rem;
  padding: 1rem;
  overflow-x: auto;
}
.vd-circuit-svg {
  display: block; max-width: 100%; height: auto;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .vd-circuit-wrap { padding: 0.6rem; }
  .vd-section-card,
  .vd-article-section {
    padding: 1rem;
    border-radius: 1rem;
  }
}

/* v1.9.0 — Skeleton placeholder shown while the second-stage circuit
   designer call is in flight. Mimics the schematic layout (rails + blocks
   + wires) with a shimmer so the user knows what's coming. */
.vd-circuit-skel {
  position: relative;
  min-height: 200px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.9rem; padding: 1rem;
}
.vd-circuit-skel-grid {
  position: relative;
  width: 100%; max-width: 520px; height: 160px;
  background:
    linear-gradient(rgba(15,23,42,0.06) 1px, transparent 1px) 0 0/24px 24px,
    linear-gradient(90deg, rgba(15,23,42,0.06) 1px, transparent 1px) 0 0/24px 24px;
  border-radius: 0.4rem;
}
.vd-circuit-skel-rail, .vd-circuit-skel-block, .vd-circuit-skel-wire {
  position: absolute;
  background: linear-gradient(90deg,
    rgba(15,23,42,0.10) 0%,
    rgba(15,23,42,0.22) 50%,
    rgba(15,23,42,0.10) 100%);
  background-size: 200% 100%;
  animation: vdCircuitShimmer 1.6s ease-in-out infinite;
  border-radius: 3px;
}
.vd-circuit-skel-rail-top { left: 8%; right: 8%; top: 12%; height: 4px; }
.vd-circuit-skel-rail-bot { left: 8%; right: 8%; bottom: 12%; height: 4px; }
.vd-circuit-skel-block { width: 80px; height: 60px; border-radius: 6px; }
.vd-circuit-skel-wire { height: 3px; }
.vd-circuit-skel-label {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; color: rgb(71, 85, 105);
}
.vd-circuit-skel-spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(71, 85, 105, 0.25);
  border-top-color: rgb(245, 158, 11);
  animation: vdCircuitSpin 0.8s linear infinite;
}
@keyframes vdCircuitShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes vdCircuitSpin {
  to { transform: rotate(360deg); }
}
.vd-bom-grid {
  display: grid; gap: 0.6rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.vd-bom-card {
  padding: 0.8rem; border-radius: 0.7rem;
  background: rgba(17,24,39,0.6); border: 1px solid rgba(148,163,184,0.1);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.bom-item--need {
  border-color: rgba(96, 165, 250, 0.18);
  background: linear-gradient(180deg, rgba(15,23,42,0.92), rgba(17,24,39,0.72));
}
.bom-item--have {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.42), rgba(15, 23, 42, 0.88));
  box-shadow: 0 18px 34px -24px rgba(16, 185, 129, 0.65);
}
.vd-bom-name { font-weight: 600; color: #e2e8f0; font-size: 0.9rem; margin-bottom: 0.25rem; }
.vd-bom-meta { font-size: 0.72rem; color: #94a3b8; margin-bottom: 0.4rem; }
.vd-bom-price { font-size: 0.85rem; color: var(--vd-accent); font-weight: 600; }
.vd-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 999px;
  background: linear-gradient(135deg, var(--vd-accent), var(--vd-accent-2));
  color: white; font-weight: 700; font-size: 0.78rem; flex-shrink: 0;
}
.vd-source {
  display: inline-block; font-size: 0.68rem;
  padding: 0.12rem 0.45rem; margin: 0 0.2rem 0.2rem 0;
  border-radius: 999px; background: rgba(148,163,184,0.08);
  border: 1px solid rgba(148,163,184,0.15); color: #cbd5e1;
}
.vd-alt {
  font-size: 0.72rem; color: #94a3b8;
  border-left: 2px solid rgba(168,85,247,0.35);
  padding-left: 0.5rem; margin-top: 0.3rem;
}
.vd-pill {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  padding: 0.15rem 0.55rem; border-radius: 999px;
  background: rgba(14,165,233,0.12); color: var(--vd-accent);
  border: 1px solid rgba(14,165,233,0.25);
}
.vd-pill.warn    { background: rgba(245,158,11,0.12); color: var(--vd-warn);    border-color: rgba(245,158,11,0.3); }
.vd-pill.danger  { background: rgba(239,68,68,0.12);  color: var(--vd-danger);  border-color: rgba(239,68,68,0.3); }
.vd-pill.success { background: rgba(16,185,129,0.12); color: var(--vd-success); border-color: rgba(16,185,129,0.3); }
.vd-checkchip {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.75rem; padding: 0.2rem 0.55rem;
  min-height: 40px;
  border-radius: 0.4rem; background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2); color: #a7f3d0;
  margin: 0.15rem;
}

/* ─── Inputs ─── */
.vd-input, .vd-textarea {
  width: 100%; padding: 0.7rem 0.9rem;
  background: rgba(10,14,26,0.6);
  border: 1px solid rgba(148,163,184,0.18);
  border-radius: 0.6rem;
  color: #e2e8f0; font-size: 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.vd-input:focus, .vd-textarea:focus {
  outline: none; border-color: var(--vd-accent);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.15);
}
.vd-textarea { resize: vertical; min-height: 110px; font-family: inherit; }
.vd-label    { font-size: 0.75rem; color: #94a3b8; margin-bottom: 0.3rem; display: block; font-weight: 500; }

/* ─── Expert band (persistent CTA) ─── */
.vd-expert-band {
  background: linear-gradient(135deg, rgba(168,85,247,0.12), rgba(14,165,233,0.08));
  border: 1px solid rgba(168,85,247,0.3);
  border-radius: 1rem; padding: 1rem 1.2rem;
  display: flex; gap: 0.8rem; align-items: center;
}
@media (max-width: 640px) {
  .vd-expert-band { flex-direction: column; text-align: center; }
  .vd-expert-band .vd-btn,
  .vd-expert-band .vd-btn-ghost { width: 100%; }
  .vd-ticker::before,
  .vd-ticker::after { width: 32px; }
}

/* ─── Calm stacked cards for homepage sections ─── */
.vd-section-copy { max-width: 42rem; }
.vd-flow-stack,
.vd-example-list,
.vd-tier-stack,
.vd-faq-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.vd-flow-card,
.vd-list-card,
.vd-tier-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.2rem;
  border-radius: 1rem;
  background: linear-gradient(160deg, rgba(17,24,39,0.74), rgba(10,14,26,0.88));
  border: 1px solid rgba(148,163,184,0.12);
}
.vd-flow-card,
.vd-list-card {
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.vd-flow-card:hover,
.vd-list-card:hover {
  transform: translateY(-2px);
  border-color: rgba(14,165,233,0.32);
  box-shadow: 0 18px 38px -24px rgba(14,165,233,0.42);
}
.vd-flow-icon,
.vd-list-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.85rem;
  background: rgba(14,165,233,0.12);
  border: 1px solid rgba(14,165,233,0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}
.vd-flow-main,
.vd-list-main {
  flex: 1;
  min-width: 0;
}
.vd-flow-title,
.vd-list-title,
.vd-tier-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
}
.vd-flow-desc,
.vd-list-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-top: 0.35rem;
}
.vd-flow-note,
.vd-list-meta,
.vd-tier-kicker,
.vd-tier-sub {
  font-size: 0.78rem;
  color: #94a3b8;
}
.vd-flow-note,
.vd-list-meta {
  margin-top: 0.55rem;
}
.vd-flow-cta {
  align-self: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--vd-accent);
  white-space: nowrap;
}
.vd-tier-card {
  flex-direction: column;
  gap: 0.75rem;
}
.vd-tier-card--featured {
  border-color: rgba(14,165,233,0.42);
  box-shadow: 0 20px 44px -28px rgba(14,165,233,0.48);
}
.vd-tier-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.vd-tier-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--vd-accent);
}
.vd-tier-sub {
  margin-left: 0.3rem;
}
.vd-bullets {
  display: grid;
  gap: 0.55rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.vd-bullets li {
  font-size: 0.9rem;
  color: #cbd5e1;
  padding-left: 1rem;
  position: relative;
}
.vd-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--vd-accent);
}
@media (max-width: 640px) {
  .vd-flow-card,
  .vd-list-card {
    flex-direction: column;
  }
  .vd-flow-cta {
    align-self: flex-start;
  }
  .vd-toast-stack {
    display: none;
  }
}

/* Circuit-pattern background — set color via `color:` on the element. */
.vd-circuit-bg {
  position: relative;
  isolation: isolate;
}
.vd-circuit-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/static/circuit-bg.svg");
  background-repeat: repeat;
  background-size: 600px 600px;
  background-position: center;
  color: var(--vd-accent);
  opacity: 0.10;
  pointer-events: none;
  z-index: -1;
  mask-image: radial-gradient(ellipse at center, black 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 55%, transparent 100%);
}
.vd-circuit-bg--strong::before { opacity: 0.18; }

/* Expert profile card (legacy horizontal — kept for /book-expert page) */
.vd-expert-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.25rem;
  align-items: center;
}
.vd-expert-card img {
  width: 160px;
  height: 160px;
  border-radius: 1rem;
  object-fit: cover;
  border: 1px solid rgba(148,163,184,0.18);
  box-shadow: 0 14px 40px -10px rgba(14,165,233,0.35);
}
.vd-expert-card .vd-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #f1f5f9;
}
.vd-expert-card .vd-role { color: #94a3b8; font-size: 0.95rem; margin-top: 0.15rem; }
.vd-expert-card .vd-meta { color: #cbd5e1; font-size: 0.85rem; margin-top: 0.5rem; line-height: 1.55; }
.vd-expert-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }

@media (max-width: 640px) {
  .vd-expert-card { grid-template-columns: 1fr; text-align: center; }
  .vd-expert-card img { width: 140px; height: 140px; margin: 0 auto; }
  .vd-expert-tags { justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════════════ */
/* v1.7 — Vertical ecosystem cards (bio-bandish style)                  */
/* Photo on top with 3:3.5 aspect ratio, body below. Rendered in a      */
/* responsive grid: 1 col mobile, 2 cols tablet+, all cards same width. */
/* ═══════════════════════════════════════════════════════════════════ */
.vd-eco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.vd-vcard {
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease;
}
.vd-vcard:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 22px 48px -22px rgba(14, 165, 233, 0.55);
}

.vd-vcard__media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 3.5;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(168, 85, 247, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
}
.vd-vcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.vd-vcard:hover .vd-vcard__media img { transform: scale(1.04); }

/* Product mark (Shubh Muhrat) — fills the photo area */
.vd-vcard__media .vd-eco-mark {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.vd-vcard__chip {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(2, 6, 23, 0.78);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ═══════════════════════════════════════════════════════════════════ */
/* v2.3.0 — Public discovery, saved projects, and blueprint actions   */
/* ═══════════════════════════════════════════════════════════════════ */

.vd-community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.vd-community-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.15rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(15, 23, 42, 0.88));
  box-shadow: 0 24px 60px -40px rgba(15, 23, 42, 0.9);
}

.vd-community-card__media,
.vd-activity-card__thumb {
  border: none;
  padding: 0;
  width: 100%;
  background: transparent;
  cursor: pointer;
}

.vd-community-card__image,
.vd-activity-card__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.vd-community-card__media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.24), rgba(249, 115, 22, 0.18));
}

.vd-community-card__fallback,
.vd-activity-card__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: #e0f2fe;
  font-weight: 700;
}

.vd-community-card__fallback {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at top left, rgba(250, 204, 21, 0.26), transparent 38%),
    linear-gradient(135deg, rgba(14, 165, 233, 0.3), rgba(15, 23, 42, 0.92));
}

.vd-community-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem;
}

.vd-community-card__eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}

.vd-community-card__title,
.vd-activity-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
}

.vd-community-card__meta,
.vd-activity-card__meta,
.vd-saved-card__overview {
  font-size: 0.84rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.vd-activity-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.vd-activity-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 0.95rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.72);
}

.vd-activity-card__thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.26), rgba(99, 102, 241, 0.24));
}

.vd-activity-card__icon {
  font-size: 1.6rem;
}

/* Recently Built — single auto-sliding marquee row. One continuous row of
   public builds that drifts on its own; pauses on hover; falls back to a
   static, manually-scrollable row when the user prefers reduced motion. */
.vd-recent-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.vd-recent-marquee__track {
  display: flex;
  gap: 0.85rem;
  width: max-content;
  will-change: transform;
  animation: vd-recent-scroll var(--vd-recent-duration, 40s) linear infinite;
}
.vd-recent-marquee:hover .vd-recent-marquee__track {
  animation-play-state: paused;
}
@keyframes vd-recent-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(var(--vd-recent-shift, -50%)); }
}
.vd-recent-card {
  flex: 0 0 auto;
  width: 230px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.72);
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.vd-recent-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(15, 23, 42, 0.95);
  transform: translateY(-2px);
}
.vd-recent-card__thumb {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.26), rgba(99, 102, 241, 0.24));
}
.vd-recent-card__image { width: 100%; height: 100%; object-fit: cover; }
.vd-recent-card__icon { font-size: 1.5rem; }
.vd-recent-card__body { min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.vd-recent-card__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vd-recent-card__meta {
  font-size: 0.76rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 640px) {
  .vd-recent-card { width: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .vd-recent-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .vd-recent-marquee__track { animation: none; }
}

.vd-inline-link {
  border: none;
  background: transparent;
  color: var(--vd-accent);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.vd-inline-link--quiet {
  color: #cbd5e1;
}

.vd-inline-link--danger {
  color: #fda4af;
}

.vd-blueprint-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.vd-material-btn {
  min-height: 50px;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.76);
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.8rem 1rem;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.vd-material-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 18px 38px -26px rgba(56, 189, 248, 0.5);
}

.vd-material-btn.is-saved {
  border-color: rgba(16, 185, 129, 0.35);
  color: #d1fae5;
  background: rgba(6, 78, 59, 0.34);
}

.vd-blueprint-email {
  margin-top: 0.9rem;
  padding: 0.95rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.76);
}

.vd-blueprint-email__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
}

.vd-blueprint-email__hint {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  color: #94a3b8;
}

.vd-saved-card {
  min-height: 100%;
}

.vd-saved-card__overview {
  margin-top: 0.15rem;
}

.vd-saved-card__actions {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 1rem 1rem;
}

@media (max-width: 768px) {
  .vd-blueprint-actions,
  .vd-blueprint-email__row {
    grid-template-columns: 1fr;
  }

  .vd-activity-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .vd-activity-card .vd-inline-link {
    grid-column: 1 / -1;
    justify-self: flex-start;
  }
}

.vd-vcard__body {
  padding: 1rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.vd-vcard__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.25;
}
.vd-vcard__role {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 0.25rem;
  line-height: 1.4;
}
.vd-vcard__meta {
  font-size: 0.78rem;
  color: #cbd5e1;
  margin-top: 0.6rem;
  line-height: 1.55;
  flex: 1;
}
.vd-vcard__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.7rem;
}
.vd-vcard__tags .vd-chip {
  font-size: 0.65rem;
  padding: 0.2rem 0.55rem;
}
.vd-vcard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}
.vd-vcard__actions .vd-btn,
.vd-vcard__actions .vd-btn-ghost {
  font-size: 0.75rem;
  padding: 0.4rem 0.75rem;
}

/* ═══════════════════════════════════════════════════════════════════ */
/* v1.7 — Loading text: glow + typing caret                             */
/* Used by #loading-text during AI generation. Slowed cycle to ~2s per  */
/* phrase (was 650ms) and added a soft pulsing glow + a blinking caret  */
/* so the user always feels something is alive even on long calls.     */
/* ═══════════════════════════════════════════════════════════════════ */
#loading-text {
  display: inline-block;
  position: relative;
  color: #e0f2fe;
  text-shadow:
    0 0 6px rgba(56, 189, 248, 0.55),
    0 0 14px rgba(56, 189, 248, 0.25);
  animation: vd-loading-glow 2.6s ease-in-out infinite;
  letter-spacing: 0.01em;
}
#loading-text::after {
  content: '▍';
  display: inline-block;
  margin-left: 2px;
  color: #38bdf8;
  animation: vd-loading-caret 0.9s steps(2, end) infinite;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
}
#loading-text.vd-loading-typing {
  animation: vd-loading-glow 2.6s ease-in-out infinite,
             vd-loading-fadein 0.45s ease-out;
}

@keyframes vd-loading-glow {
  0%, 100% {
    text-shadow:
      0 0 6px rgba(56, 189, 248, 0.45),
      0 0 14px rgba(56, 189, 248, 0.18);
    opacity: 0.92;
  }
  50% {
    text-shadow:
      0 0 10px rgba(56, 189, 248, 0.85),
      0 0 22px rgba(56, 189, 248, 0.45),
      0 0 32px rgba(168, 85, 247, 0.25);
    opacity: 1;
  }
}
@keyframes vd-loading-caret {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
@keyframes vd-loading-fadein {
  0% { opacity: 0; transform: translateY(2px); filter: blur(2px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@media (prefers-reduced-motion: reduce) {
  #loading-text,
  #loading-text::after { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════════ */
/* v1.6 — Ecosystem product mark                                        */
/* Used in place of a portrait when the ecosystem entry is a PRODUCT    */
/* (e.g. Shubh Muhrat). Same 160×160 footprint as .vd-expert-card img   */
/* so every card row stays visually identical.                          */
/* ═══════════════════════════════════════════════════════════════════ */
.vd-eco-mark {
  width: 160px;
  height: 160px;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #b8860b 0%, #c5963a 45%, #9b2335 100%);
  color: #fff8e6;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
  border: 1px solid rgba(255, 215, 130, 0.45);
  box-shadow: 0 14px 40px -10px rgba(155,35,53,0.45), 0 2px 0 rgba(255,255,255,0.06) inset;
  font-family: 'Cormorant Garamond', Georgia, serif;
  letter-spacing: 0.02em;
}
.vd-eco-mark span { font-size: 2.4rem; font-weight: 700; line-height: 1; }
.vd-eco-mark small { font-size: 0.9rem; font-weight: 600; opacity: 0.92; margin-top: 0.35rem; letter-spacing: 0.18em; text-transform: uppercase; }
.vd-eco-mark--shubh { background: linear-gradient(135deg, #b8860b 0%, #c5963a 45%, #9b2335 100%); }

@media (max-width: 640px) {
  .vd-eco-mark { width: 140px; height: 140px; margin: 0 auto; }
  .vd-eco-mark span { font-size: 2.1rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   v2.0.0 — Photorealistic render: dual-diagram layout, media viewer, buttons
   ═══════════════════════════════════════════════════════════════════════════ */

/* v2.2.0 — Stacked diagrams (schematic on top, photo below) so each render
   can use the full width of the results pane. Previously was 2-col side-by-
   side which wasted horizontal room and cramped both images on desktop. */
.vd-diagram-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

/* Card header label ("Schematic Diagram" / "Photorealistic Render") */
.vd-diagram-card-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: #64748b; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.3rem;
}

/* Photo wrap — dark bg, opaque image fills it */
.vd-photo-wrap {
  background: #0b1120;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0.7rem;
  overflow: hidden;
  position: relative;
}
.vd-photo-img {
  display: block; width: 100%; height: auto;
  cursor: zoom-in;
  transition: transform 0.2s ease;
  border-radius: 0;
}
.vd-photo-img:hover { transform: scale(1.012); }

/* Photo skeleton — breadboard shimmer */
.vd-photo-skel {
  min-height: 200px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.6rem;
  background: linear-gradient(135deg,
    rgba(11,17,32,1) 0%,
    rgba(30,44,68,0.9) 50%,
    rgba(11,17,32,1) 100%);
  background-size: 200% 100%;
  animation: vdCircuitShimmer 1.8s ease-in-out infinite;
  border-radius: 0.7rem;
  padding: 1.5rem;
}
.vd-photo-skel-icon { font-size: 2rem; opacity: 0.4; }
.vd-photo-skel-label {
  font-size: 0.78rem; color: #475569;
  display: flex; align-items: center; gap: 0.4rem;
}

/* Icon-style action buttons (Expand / Download / Zoom) */
.vd-diagram-actions {
  display: flex; gap: 0.35rem; flex-wrap: wrap; padding: 0.45rem 0.5rem 0.5rem;
  background: rgba(15,23,42,0.6);
}
.vd-icon-btn {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.32rem 0.65rem; border-radius: 0.4rem;
  border: 1px solid rgba(148,163,184,0.18);
  font-size: 0.7rem; font-weight: 600; cursor: pointer;
  background: rgba(15,23,42,0.7); color: #94a3b8;
  text-decoration: none; transition: all 0.15s; white-space: nowrap;
  line-height: 1.4;
}
.vd-icon-btn:hover {
  background: rgba(14,165,233,0.12); border-color: rgba(14,165,233,0.5);
  color: #38bdf8;
}
.vd-icon-btn--accent {
  background: linear-gradient(135deg, rgba(14,165,233,0.15), rgba(99,102,241,0.12));
  border-color: rgba(14,165,233,0.35); color: #7dd3fc;
}
.vd-icon-btn--accent:hover {
  background: linear-gradient(135deg, rgba(14,165,233,0.28), rgba(99,102,241,0.2));
  color: #e0f2fe;
}
.vd-lock-card {
  border-radius: 0.9rem;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.16);
}
.vd-lock-card__art {
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(140deg, rgba(8, 47, 73, 0.72), rgba(15, 23, 42, 0.95)),
    url('/static/circuit-bg.svg') center / 420px repeat;
}
.vd-lock-card__art::after {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(10px);
  background: rgba(15, 23, 42, 0.28);
}
.vd-lock-card__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(14, 165, 233, 0.2), transparent 48%);
}
.vd-lock-card__lock {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 18px 42px -28px rgba(56, 189, 248, 0.55);
  font-size: 1.8rem;
}
.vd-lock-card__title,
.vd-lock-card__message {
  padding: 0 1rem;
  text-align: center;
}
.vd-lock-card__title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #f8fafc;
  margin-top: 1rem;
}
.vd-lock-card__message {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-top: 0.45rem;
}
.vd-lock-card .vd-diagram-actions {
  margin-top: 1rem;
}

.vd-wa-shell {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 8200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.8rem;
}
.vd-wa-fab {
  min-height: 58px;
  border-radius: 999px;
  border: none;
  padding: 0.85rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, #16a34a, #0f766e);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 20px 42px -20px rgba(22, 163, 74, 0.8);
}
.vd-wa-fab__icon { font-size: 1.2rem; }
.vd-wa-panel {
  width: min(360px, calc(100vw - 1.5rem));
  border-radius: 1rem;
  border: 1px solid rgba(34, 197, 94, 0.24);
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 28px 60px -30px rgba(15, 23, 42, 0.9);
  padding: 1rem;
}
.vd-wa-panel__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.vd-wa-panel__eyebrow {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #86efac;
}
.vd-wa-panel__title {
  font-size: 1rem;
  font-weight: 800;
  color: #f8fafc;
  margin-top: 0.3rem;
}
.vd-wa-panel__close {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 1.5rem;
  line-height: 1;
}
.vd-wa-panel__input {
  width: 100%;
  margin-top: 0.9rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.82);
  color: #e2e8f0;
  padding: 0.85rem 0.95rem;
  resize: vertical;
  min-height: 110px;
}
.vd-wa-panel__cta {
  width: 100%;
  margin-top: 0.8rem;
  min-height: 48px;
  border-radius: 0.85rem;
  border: none;
  background: linear-gradient(135deg, #22c55e, #0f766e);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 18px 34px -22px rgba(34, 197, 94, 0.82);
}
.vd-wa-panel__hint {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: #cbd5e1;
  line-height: 1.45;
}
@media (max-width: 640px) {
  .vd-wa-shell {
    right: 0.8rem;
    bottom: calc(0.8rem + env(safe-area-inset-bottom, 0px));
  }
  .vd-wa-fab { width: 58px; justify-content: center; padding: 0; }
  .vd-wa-fab__label { display: none; }
  .vd-wa-panel { width: min(360px, calc(100vw - 1rem)); }
}

/* ── DND / snooze toggle for social-proof toasts ─────────────────────────── */
/* Frontend-only (sessionStorage). Lives next to the WhatsApp FAB. */
.vd-dnd-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.85);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -18px rgba(15, 23, 42, 0.8);
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.vd-dnd-btn:hover { transform: translateY(-1px); color: #f8fafc; }
.vd-dnd-btn__icon { display: block; }
.vd-dnd-btn__slash { opacity: 0; transition: opacity 0.15s ease; }
.vd-dnd-btn.is-muted { color: #f87171; background: rgba(127, 29, 29, 0.55); border-color: rgba(248, 113, 113, 0.45); }
.vd-dnd-btn.is-muted .vd-dnd-btn__slash { opacity: 1; }

/* ── Form required-field glow highlight (scroll-and-glow helper) ──────────
   Used by scrollToInvalidField(). Platform rule: never block with a plain
   "please enter X" toast — always scroll the offending field into view and
   glow a red ring around it for 3s. Documented in
   /root/.github/instructions/v2/form-error-ux.instructions.md */
@keyframes vd-field-glow {
  0%   { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.0); border-color: rgba(248,113,113,0.0); }
  25%  { box-shadow: 0 0 0 6px rgba(248, 113, 113, 0.45); border-color: rgba(248,113,113,0.95); }
  75%  { box-shadow: 0 0 0 6px rgba(248, 113, 113, 0.35); border-color: rgba(248,113,113,0.9); }
  100% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.0); border-color: rgba(248,113,113,0.0); }
}
.vd-field-glow { animation: vd-field-glow 3s ease-in-out; }

/* ── Pagination arrows for community builds feed ─────────────────────────
   Simple ← / → buttons below the grid. Documented in release notes; tune
   COMMUNITY_PAGE_SIZE in index.html. */
.vd-pager {
  margin-top: 1.1rem;
  display: flex; justify-content: center; align-items: center; gap: 0.8rem;
  color: #cbd5e1; font-size: 0.82rem;
}
.vd-pager-btn {
  width: 2.2rem; height: 2.2rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.85);
  color: #e2e8f0;
  font-size: 1rem; line-height: 1;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.vd-pager-btn:hover:not(:disabled) { transform: translateY(-1px); background: rgba(14, 165, 233, 0.18); }
.vd-pager-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.vd-pager-label { font-weight: 600; color: #94a3b8; }

/* ── Payment loading overlay spinner (inside procurement modal) ──────────── */
.vd-payment-loading-spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(59, 130, 246, 0.25);
  border-top-color: #60a5fa;
  animation: vd-spin 0.9s linear infinite;
}
@keyframes vd-spin { to { transform: rotate(360deg); } }

/* ── "Requested Quote" success state on the Request Quote button ─────────── */
/* No transition — swap is immediate per spec. */
.vd-requested-btn {
  background: linear-gradient(135deg, #10b981, #047857) !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
  cursor: default;
}
.vd-requested-btn:disabled { opacity: 1; }

/* ── One-shot glow on the Pay button after Request Quote ─────────────────── */
.vd-pay-glow {
  animation: vd-pay-pulse 0.85s ease-out 3;
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.9);
}
@keyframes vd-pay-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.9); }
  50%  { box-shadow: 0 0 0 14px rgba(59, 130, 246, 0);  }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);     }
}

/* ── Full-screen media viewer modal ───────────────────────────────────────── */
#vd-media-modal {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.93);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 0.75rem; overscroll-behavior: contain;
}
#vd-media-modal.open { display: flex; }
#vd-media-modal-close {
  position: absolute; top: 0.8rem; right: 0.9rem;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(30,41,59,0.9); border: 1px solid rgba(148,163,184,0.25);
  color: #94a3b8; font-size: 1.3rem; cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
#vd-media-modal-close:hover { color: #f87171; background: rgba(239,68,68,0.2); }
#vd-media-modal-img {
  max-width: 88vw; max-height: 78vh;
  object-fit: contain; border-radius: 0.5rem;
  cursor: grab; user-select: none;
  transform-origin: center center;
  transition: transform 0.18s ease;
  touch-action: pinch-zoom;
}
#vd-media-modal-img.grabbing { cursor: grabbing; }
#vd-modal-toolbar {
  display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap;
  justify-content: center;
}
.vd-modal-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 0.5rem;
  background: rgba(30,41,59,0.9); border: 1px solid rgba(148,163,184,0.22);
  color: #cbd5e1; font-size: 1rem; cursor: pointer; transition: all 0.15s;
  text-decoration: none; flex-shrink: 0;
}
.vd-modal-btn:hover { background: rgba(14,165,233,0.2); border-color: #0ea5e9; color: #fff; }
@media (max-width: 640px) {
  #vd-media-modal-img { max-width: 96vw; max-height: 72vh; }
  .vd-modal-btn { width: 48px; height: 48px; font-size: 1.15rem; }
}
/* Custom Scroller for modals */
.custom-scroller::-webkit-scrollbar {
  width: 8px;
}
.custom-scroller::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.3);
  border-radius: 4px;
}
.custom-scroller::-webkit-scrollbar-thumb {
  background: rgba(71, 85, 105, 0.5);
  border-radius: 4px;
}
.custom-scroller::-webkit-scrollbar-thumb:hover {
  background: rgba(71, 85, 105, 0.8);
}
