/* ==========================================================================
   BuyVCC Elementor widgets — premium fintech aesthetic
   Tokens (kept consistent with the rest of the site):
     navy:    #0d0f1f / #12152b / #1a1e38
     border:  #2a2f52
     purple:  #7c3aed → #a855f7
     text:    #e2e8f0 / muted #94a3b8
   ========================================================================== */

/* Honour reduced motion globally for these widgets */
@media (prefers-reduced-motion: reduce) {
  .bvc-stats-bar *,
  .bvc-timeline *,
  .bvc-faq__panel,
  .bvc-live * {
    animation: none !important;
    transition: none !important;
  }
}

/* ── Stats Bar ──────────────────────────────────────────────────────────── */
.bvc-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  padding: 36px 28px;
  background: linear-gradient(135deg, #12152b 0%, #1a1e38 100%);
  border: 1px solid #2a2f52;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.bvc-stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 50% at 50% 0%, rgba(124, 58, 237, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.bvc-stat {
  text-align: center;
  position: relative;
  z-index: 1;
}

.bvc-stat__value {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #a855f7;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}

.bvc-stats-bar--gradient .bvc-stat__value {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bvc-stat__label {
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .bvc-stats-bar { padding: 28px 20px; gap: 28px; grid-template-columns: 1fr 1fr; }
  .bvc-stat__value { font-size: 32px; }
  .bvc-stat__label { font-size: 11px; }
}

/* ── Process Timeline ───────────────────────────────────────────────────── */
.bvc-timeline {
  display: grid;
  grid-template-columns: repeat(var(--bvc-step-count, 3), 1fr);
  gap: 24px;
  padding: 32px 0;
  position: relative;
  --bvc-node-size: 64px;
}
.bvc-timeline[data-count="3"] { --bvc-step-count: 3; }
.bvc-timeline[data-count="4"] { --bvc-step-count: 4; }
.bvc-timeline[data-count="5"] { --bvc-step-count: 5; }

/* Connecting line behind the nodes */
.bvc-timeline__track {
  position: absolute;
  top: calc(32px + var(--bvc-node-size) / 2 - 1px);
  left: calc(100% / var(--bvc-step-count) / 2);
  right: calc(100% / var(--bvc-step-count) / 2);
  height: 2px;
  background: linear-gradient(90deg,
    rgba(124, 58, 237, 0.15),
    rgba(168, 85, 247, 0.6),
    rgba(124, 58, 237, 0.15));
  z-index: 0;
}

.bvc-timeline__step {
  position: relative;
  text-align: center;
  z-index: 1;
}

.bvc-timeline__node {
  width: var(--bvc-node-size);
  height: var(--bvc-node-size);
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a1e38 0%, #12152b 100%);
  border: 2px solid #2a2f52;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.32s ease,
              box-shadow 0.32s ease;
}
.bvc-timeline__step:hover .bvc-timeline__node {
  transform: translateY(-4px);
  border-color: #7c3aed;
  box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.12),
              0 12px 28px rgba(0, 0, 0, 0.4);
}

.bvc-timeline__num {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.bvc-timeline__icon {
  font-size: 26px;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bvc-timeline__icon svg { width: 26px; height: 26px; fill: #a855f7; }

.bvc-timeline__title {
  font-size: 17px;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.bvc-timeline__desc {
  font-size: 14px;
  line-height: 1.55;
  color: #94a3b8;
  margin: 0 auto;
  max-width: 280px;
}

/* Scroll-in stagger */
.bvc-timeline--anim .bvc-timeline__step {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease,
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--bvc-step-i, 0) * 120ms);
}
.bvc-timeline--anim.bvc-in .bvc-timeline__step {
  opacity: 1;
  transform: none;
}

@media (max-width: 768px) {
  .bvc-timeline {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 16px 0;
  }
  .bvc-timeline__track {
    left: 50%;
    right: auto;
    top: 32px;
    bottom: 32px;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg,
      rgba(124, 58, 237, 0.15),
      rgba(168, 85, 247, 0.6),
      rgba(124, 58, 237, 0.15));
  }
}

/* ── FAQ Accordion ──────────────────────────────────────────────────────── */
.bvc-faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bvc-faq__item {
  background: #12152b;
  border: 1px solid #2a2f52;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.22s ease, background 0.22s ease;
}
.bvc-faq__item:hover { border-color: rgba(124, 58, 237, 0.45); }
.bvc-faq__item:has(.bvc-faq__btn[aria-expanded="true"]) {
  border-color: rgba(124, 58, 237, 0.6);
  background: linear-gradient(180deg, #161a35 0%, #12152b 100%);
}

.bvc-faq__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: #e2e8f0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: color 0.22s ease;
}
.bvc-faq__btn:hover { color: #a855f7; }
.bvc-faq__btn:focus-visible {
  outline: 2px solid #a855f7;
  outline-offset: -2px;
  border-radius: 12px;
}

.bvc-faq__q { flex: 1; min-width: 0; }

.bvc-faq__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), color 0.22s ease;
}
.bvc-faq__btn[aria-expanded="true"] .bvc-faq__icon {
  transform: rotate(180deg);
  color: #a855f7;
}
.bvc-faq__icon svg { width: 16px; height: 16px; }

.bvc-faq__panel {
  overflow: hidden;
  height: 0;
  transition: height 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.bvc-faq__panel:not([hidden]) { display: block; }

.bvc-faq__a {
  padding: 0 22px 20px;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.65;
}
.bvc-faq__a p:first-child { margin-top: 0; }
.bvc-faq__a p:last-child  { margin-bottom: 0; }
.bvc-faq__a a { color: #a855f7; text-decoration: underline; }

/* ── Live Activity Feed ─────────────────────────────────────────────────── */
.bvc-live {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px 12px 14px;
  background: rgba(18, 21, 43, 0.85);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  max-width: 100%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.bvc-live__pulse {
  position: relative;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.bvc-live__dot {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
}
.bvc-live__ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #10b981;
  opacity: 0;
  animation: bvc-pulse 1.6s ease-out infinite;
}
@keyframes bvc-pulse {
  0%   { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}

.bvc-live__msg {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 22px;
}

.bvc-live__item {
  font-size: 14px;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.bvc-live__item.is-active {
  position: relative;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.bvc-live__item strong { color: #e2e8f0; font-weight: 600; }
.bvc-live__time {
  display: inline-block;
  margin-left: 6px;
  color: #94a3b8;
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .bvc-live {
    display: flex;
    border-radius: 14px;
    padding: 12px 14px;
  }
  .bvc-live__item { white-space: normal; line-height: 1.4; }
  .bvc-live__time { display: block; margin-left: 0; margin-top: 2px; }
}

/* ── Card Preview (3D) ──────────────────────────────────────────────────── */
.bvc-card3d {
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  padding: 16px;
}

.bvc-card3d__face {
  --bvc-card-from: #1a1e38;
  --bvc-card-to:   #7c3aed;
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1.586 / 1;            /* ISO-7810 ID-1 */
  border-radius: 18px;
  background: linear-gradient(135deg, var(--bvc-card-from) 0%, var(--bvc-card-to) 130%);
  padding: 22px 24px 20px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  color: #f8fafc;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 8px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: 'Courier New', ui-monospace, monospace;
}
.bvc-card3d--tilt:hover .bvc-card3d__face {
  transform: rotateY(-8deg) rotateX(6deg) translateY(-4px);
}

/* Soft sheen following the card shape */
.bvc-card3d__sheen {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 80% -10%, rgba(255, 255, 255, 0.18) 0%, transparent 60%),
    linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%);
  pointer-events: none;
}

.bvc-card3d__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.bvc-card3d__brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.bvc-card3d__brand strong {
  display: inline;
  color: #a855f7;
  font-weight: 700;
}
.bvc-card3d__brand small {
  margin-top: 6px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}
.bvc-card3d__wave { width: 22px; height: 22px; opacity: 0.85; }

/* EMV chip */
.bvc-card3d__chip {
  width: 38px;
  height: 28px;
  border-radius: 5px;
  background: linear-gradient(135deg, #d4af37 0%, #f5d76e 50%, #b8860b 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 1px;
  padding: 3px;
  margin: 4px 0 0;
  align-self: center;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.bvc-card3d__chip span {
  background: rgba(120, 80, 0, 0.4);
  border-radius: 1px;
}

.bvc-card3d__number {
  font-size: 22px;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.bvc-card3d__bottom {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: end;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.bvc-card3d__bottom small {
  display: block;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  margin-bottom: 3px;
}
.bvc-card3d__bottom span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
}
.bvc-card3d__network {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 18px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.05em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

@media (max-width: 480px) {
  .bvc-card3d__face { padding: 18px 18px 16px; }
  .bvc-card3d__brand { font-size: 16px; }
  .bvc-card3d__number { font-size: 18px; letter-spacing: 0.04em; }
  .bvc-card3d__bottom span { font-size: 11px; }
  .bvc-card3d__network { font-size: 14px; }
}
