/**
 * Sample Report Section
 * 3D PDF Stack Effect with dual frames
 */

.sample-report-section {
  padding: 100px 40px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.sample-report-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
}

.sample-report-arrow {
  position: absolute;
  width: 180px;
  height: auto;
  left: calc(58% + 38px);
  top: calc(48% + 76px);
  transform: translate(-100%, -50%) scaleX(-1) rotate(35deg);
  z-index: 5;
  pointer-events: none;
  opacity: 0.9;
  animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% {
    opacity: 0.9;
    transform: translate(-100%, -50%) scaleX(-1) rotate(35deg) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-100%, -50%) scaleX(-1) rotate(35deg) scale(1.05);
  }
}

/* ========================================
   LEFT COLUMN - PDF STACK WITH PDF.JS
   ======================================== */

.pdf-stack-column {
  position: relative;
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
  padding-right: 20px;
}

.pdf-stack-wrapper {
  position: relative;
  width: 450px;
  height: 600px;
}

.pdf-stack {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

/* Stack Page (rendered from PDF) */
.stack-page {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
  cursor: pointer;
  transform: 
    translateX(calc(var(--index) * -15px)) 
    translateZ(calc(var(--index) * -30px)) 
    rotateY(calc(var(--index) * -2deg));
  z-index: calc(100 - var(--index));
  opacity: calc(1 - var(--index) * 0.05);
}

/* Active (front) page */
.stack-page.active {
  transform: translateZ(0px) rotateY(-8deg) rotateX(2deg);
  z-index: 1000;
  opacity: 1;
}

/* Previous pages (sent to back) */
.stack-page.prev {
  transform: translateX(-200px) translateZ(-100px) rotateY(-15deg);
  opacity: 0;
  pointer-events: none;
}

.stack-page:hover {
  transform: translateZ(10px) rotateY(-8deg) rotateX(2deg) scale(1.02);
  filter: brightness(1.05);
}

/* PDF Canvas Container (Outer Frame) */
.stack-page {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 32px;
  padding: 20px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 8px 20px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.stack-page::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 32px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(147, 197, 253, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* PDF Canvas - rendered PDF content */
.pdf-canvas {
  max-width: 100%;
  max-height: 100%;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  display: block;
}

/* Navigation Controls - RIGHT SIDE */
.navigation-controls {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 1001;
}

.nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #3b82f6;
}

.nav-btn:hover {
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  transform: scale(1.08);
}

.nav-btn:active {
  transform: scale(0.92);
}

.page-counter {
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  min-width: 75px;
  text-align: center;
  margin-top: 8px;
}

/* ========================================
   RIGHT COLUMN - TEXT
   ======================================== */

.sample-report-text {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  max-width: 600px;
}

.sample-report-title {
  font-size: 48px;
  font-weight: 800;
  color: #111827;
  line-height: 1.15;
  margin-bottom: 0;
  letter-spacing: -0.02em;
}

.sample-report-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.sample-report-chips-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 16px; /* Space for the dot outside */
}

.sample-report-action {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 0;
}

.sample-report-action .sample-report-title {
  margin-bottom: 0;
}

.sample-report-subtitle {
  font-size: 18px;
  color: #6b7280;
  margin-bottom: 0;
  line-height: 1.5;
  font-weight: 400;
  max-width: 280px;
}

.sample-report-disclaimer {
  font-size: 14px;
  color: #9ca3af;
  line-height: 1.6;
  margin: 0;
  max-width: 320px;
  font-weight: 400;
}

.sample-report-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: #ffffff;
  transform: translateX(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.feature-text {
  font-size: 16px;
  color: #374151;
  font-weight: 500;
}

.sample-report-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 48px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
  letter-spacing: 0.5px;
}

.sample-report-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.5);
}

/* ========================================
   DARK VARIANT
   ======================================== */

.variant-dark .sample-report-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

.variant-dark .sample-report-title {
  color: #ffffff;
}

.variant-dark .sample-report-subtitle {
  color: #9ca3af;
}

.variant-dark .sample-report-disclaimer {
  color: #6b7280;
}

.variant-dark .stack-page {
  background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 8px 20px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.variant-dark .stack-page::before {
  background: linear-gradient(135deg, rgba(252, 211, 77, 0.25), rgba(245, 158, 11, 0.15));
}

.variant-dark .pdf-canvas {
  background: #ffffff;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.variant-dark .nav-btn {
  background: rgba(31, 41, 55, 0.95);
  color: #fcd34d;
}

.variant-dark .nav-btn:hover {
  background: #1f2937;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.variant-dark .page-counter {
  background: rgba(31, 41, 55, 0.95);
  color: #e5e7eb;
}

.variant-dark .feature-item {
  background: rgba(31, 41, 55, 0.8);
  color: #e5e7eb;
}

.variant-dark .feature-item:hover {
  background: #1f2937;
}

.variant-dark .feature-text {
  color: #d1d5db;
}

.variant-dark .sample-report-btn {
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
  color: #000000;
  box-shadow: 0 4px 20px rgba(252, 211, 77, 0.4);
}

.variant-dark .sample-report-btn:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 8px 32px rgba(252, 211, 77, 0.5);
}

.variant-dark .sample-report-arrow {
  filter: brightness(1.2) saturate(0.8);
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes floatPage {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.stack-page.active {
  animation: floatPage 3s ease-in-out infinite;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .sample-report-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .pdf-stack-column {
    min-height: 500px;
    padding-right: 0;
    padding-bottom: 80px; /* Space for buttons below */
  }

  .pdf-stack-wrapper {
    width: 380px;
    height: 500px;
  }

  .sample-report-title {
    font-size: 36px;
  }

  .navigation-controls {
    right: auto;
    top: auto;
    bottom: -70px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
  }
}

@media (max-width: 768px) {
  .sample-report-section {
    padding: 60px 20px 100px;
  }

  .pdf-stack-column {
    padding-bottom: 90px;
  }

  .pdf-stack-wrapper {
    width: 320px;
    height: 420px;
  }

  .sample-report-title {
    font-size: 32px;
  }

  .sample-report-subtitle {
    font-size: 16px;
  }
  
  .sample-report-text {
    padding: 20px 0;
    gap: 24px;
    max-width: 100%;
  }
  
  .sample-report-content {
    flex-direction: column;
    gap: 24px;
  }
  
  .sample-report-action {
    gap: 16px;
  }
  
  .sample-report-chips-wrapper {
    align-items: center;
  }
  
  .vin-pdfstack__chips {
    align-items: center;
  }
  
  .sample-report-disclaimer {
    font-size: 13px;
    max-width: 100%;
  }
  
  .sample-report-arrow {
    display: none;
  }

  .feature-text {
    font-size: 14px;
  }

  .stack-page.active {
    transform: rotateY(-4deg) rotateX(1deg);
  }

  .navigation-controls {
    bottom: -80px;
  }

  .nav-btn {
    width: 42px;
    height: 42px;
  }

  .page-counter {
    font-size: 13px;
    padding: 8px 14px;
  }
}

@media (max-width: 600px) {
  .pdf-stack-wrapper {
    width: 280px;
    height: 380px;
  }

  .stack-page {
    border-radius: 24px;
    padding: 12px;
  }

  .pdf-canvas {
    border-radius: 16px;
  }

  .sample-report-btn {
    width: 100%;
    padding: 16px 32px;
  }

  .navigation-controls {
    bottom: -75px;
    gap: 12px;
  }

  .nav-btn {
    width: 40px;
    height: 40px;
  }

  .page-counter {
    font-size: 12px;
    padding: 6px 12px;
    min-width: 65px;
  }
}

/* ========================================
   VIN PDF STACK - NEW 3D EFFECT
   ======================================== */

.vin-pdfstack, .vin-pdfstack * { box-sizing: border-box; }

.vin-pdfstack__stage{
  display:flex;
  align-items:center;
  justify-content:center;
  perspective:1200px;
}

.vin-pdfstack__stack{
  position:relative;
  width:460px;
  height:580px;
  transform: perspective(1200px) rotateY(12deg);
  transform-style:preserve-3d;
  filter: drop-shadow(0 30px 80px rgba(0,0,0,.35));
}

.vin-pdfstack__page{
  position:absolute;
  inset:0;
  background:#fff;
  border-radius:32px;
  border:1px solid rgba(0,0,0,.10);
  overflow:hidden;
  opacity:0;
  transform: translateX(100px) rotateY(60deg) scale(.86);
  transition: all .45s cubic-bezier(.68,-.55,.265,1.55);
  pointer-events:none;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px;
}

.vin-pdfstack__page.is-active{
  opacity:1;
  transform: translateX(0) rotateY(0) scale(1);
  pointer-events:auto;
  z-index:10;
}

.vin-pdfstack__canvas{ max-width:100%; max-height:100%; display:block; background:#fff; }

/* Chips container */
.vin-pdfstack__chips{
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:flex-start;
}

.vin-pdfstack__chip{
  padding: 6px 14px;
  border-radius: 999px; /* Maximum rounding */
  font-size: 12px;
  font-weight: 500;
  cursor:pointer;
  transition: all .2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  white-space: nowrap;
  min-width: 140px; /* Fixed width based on longest title */
  max-width: 140px; /* Force same width */
  height: 28px; /* Fixed height */
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center; /* Center text */
  text-transform: capitalize; /* Capitalize first letter */
  position: relative; /* For white dot positioning */
}

/* White dot for active chip (outside, to the left) */
.vin-pdfstack__chip.active::before {
  content: '';
  position: absolute;
  left: -12px; /* Outside to the left */
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
}

/* Black dot for light variant */
.variant-light .vin-pdfstack__chip.active::before {
  background: #000000;
}

/* Light variant chips */
.variant-light .vin-pdfstack__chip {
  background: #DBEAFE;
  color: #1E40AF;
  border: 1px solid #93C5FD;
}

.variant-light .vin-pdfstack__chip:hover {
  background: #BFDBFE;
  transform: translateY(-2px);
}

.variant-light .vin-pdfstack__chip.active {
  background: #3B82F6;
  color: #fff;
  border-color: #2563EB;
}

/* Dark variant chips */
.variant-dark .vin-pdfstack__chip {
  background: rgba(254, 243, 199, 0.15);
  color: #FCD34D;
  border: 1px solid rgba(252, 211, 77, 0.3);
}

.variant-dark .vin-pdfstack__chip:hover {
  background: rgba(254, 243, 199, 0.25);
  transform: translateY(-2px);
}

.variant-dark .vin-pdfstack__chip.active {
  background: rgba(252, 211, 77, 0.4);
  color: #FFFBEB;
  border-color: #FCD34D;
}

/* Navigation pill (combined prev/next/counter) */
.vin-pdfstack__nav-pill{
  display:flex;
  align-items:center;
  gap:8px; /* Reduced gap */
  padding: 6px 14px; /* Same as chips */
  border-radius:999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all .2s ease;
  min-width: 140px; /* Same as chips */
  max-width: 140px; /* Force same width */
  height: 28px; /* Match chip height exactly (12px font + 6px top + 6px bottom + borders) */
  box-sizing: border-box;
  justify-content: center;
}

/* Light variant nav */
.variant-light .vin-pdfstack__nav-pill {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Dark variant nav */
.variant-dark .vin-pdfstack__nav-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.vin-pdfstack__nav-btn{
  width:16px; /* Even smaller for compact design */
  height:16px;
  border-radius:50%;
  border:none;
  background: transparent;
  flex-shrink: 0; /* Prevent shrinking */
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: all .2s ease;
  padding: 0;
}

.variant-light .vin-pdfstack__nav-btn {
  color: #1E40AF;
}

.variant-dark .vin-pdfstack__nav-btn {
  color: #fff;
}

.variant-light .vin-pdfstack__nav-btn:hover {
  background: rgba(59, 130, 246, 0.1);
}

.variant-dark .vin-pdfstack__nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.vin-pdfstack__nav-btn:disabled{
  opacity:.3;
  cursor:not-allowed;
}

.vin-pdfstack__nav-btn:disabled:hover{
  background: transparent;
}

.vin-pdfstack__counter{
  font-weight:500; /* Same as chips */
  font-size:12px; /* Same as chips */
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0; /* Prevent shrinking */
}

.variant-light .vin-pdfstack__counter {
  color: #1E40AF;
}

.variant-dark .vin-pdfstack__counter {
  color: #fff;
}

@media (max-width: 768px){
  .vin-pdfstack__stack{ width:320px; height:420px; transform: rotateY(6deg) rotateX(2deg); }
  .vin-pdfstack__btn{ width:46px; height:46px; }
}

/* Logo overlay for mobile */
@media (max-width: 768px){
  .vin-logo-overlay {
    width: 92px !important;
    height: 30px !important;
    top: 25px !important;
    right: 15px !important;
  }
}

/* ========================================
   VIN POPUP STYLES
   ======================================== */

.vin-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.vin-popup {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 48px;
  max-width: 520px;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s ease;
}

.vin-popup-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.vin-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.vin-popup-overlay.active .vin-popup {
  transform: scale(1) translateY(0);
}

.vin-popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: #6b7280;
  z-index: 10;
}

.vin-popup-close:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
  color: #111827;
}

.vin-popup-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.vin-popup-title {
  font-size: 32px;
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.02em;
}

.vin-popup-subtitle {
  font-size: 16px;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

.vin-popup-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vin-input-wrapper {
  position: relative;
}

.vin-popup-input {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 500;
  color: #111827;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 999px;
  outline: none;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: 'Courier New', monospace;
  box-sizing: border-box;
}

.vin-popup-input:focus {
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.vin-popup-input::placeholder {
  color: #9ca3af;
  text-transform: none;
  letter-spacing: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.vin-input-counter {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  pointer-events: none;
}

.vin-popup-input:focus + .vin-input-counter {
  color: #3b82f6;
}

.vin-popup-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 48px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  border: none !important;
  border-radius: 999px !important;
  -webkit-border-radius: 999px !important;
  -moz-border-radius: 999px !important;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
  letter-spacing: 0.5px;
  width: 100%;
  overflow: hidden;
}

.vin-popup-form .vin-popup-submit,
button.vin-popup-submit[type="submit"] {
  border-radius: 999px !important;
  -webkit-border-radius: 999px !important;
}

.vin-popup-submit:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5);
}

.vin-popup-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 8px;
  justify-content: center;
}

.vin-popup-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  background: #DBEAFE;
  color: #1E40AF;
  border: 1px solid #93C5FD;
  transition: all 0.2s ease;
}

.vin-popup-chip svg {
  color: #10b981;
  flex-shrink: 0;
}

.vin-popup-chip--more {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.2);
  font-style: italic;
}

/* Dark Variant */
.variant-dark .vin-popup-overlay::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.variant-dark .vin-popup {
  background: #1a1a1a;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.variant-dark .vin-popup-close {
  background: rgba(255, 255, 255, 0.1);
  color: #9ca3af;
}

.variant-dark .vin-popup-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.variant-dark .vin-popup-title {
  color: #ffffff !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #ffffff !important;
  background-clip: unset !important;
}

/* Light Variant - White title with yellow accent */
.variant-light .vin-popup-title {
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 70%, #fcd34d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.variant-dark .vin-popup-subtitle {
  color: #9ca3af;
}

.variant-dark .vin-popup-input {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.variant-dark .vin-popup-input:focus {
  border-color: #fcd34d;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(252, 211, 77, 0.1);
}

.variant-dark .vin-popup-input::placeholder {
  color: #6b7280;
}

.variant-dark .vin-input-counter {
  color: #6b7280;
}

.variant-dark .vin-popup-input:focus + .vin-input-counter {
  color: #fcd34d;
}

.variant-dark .vin-popup-submit {
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
  color: #000000;
  box-shadow: 0 4px 16px rgba(252, 211, 77, 0.4);
}

.variant-dark .vin-popup-submit:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 8px 24px rgba(252, 211, 77, 0.5);
}

.variant-dark .vin-popup-chip {
  background: rgba(254, 243, 199, 0.15);
  color: #FCD34D;
  border: 1px solid rgba(252, 211, 77, 0.3);
}

.variant-dark .vin-popup-chip svg {
  color: #10b981;
}

.variant-dark .vin-popup-chip--more {
  background: rgba(252, 211, 77, 0.1);
  color: #fcd34d;
  border: 1px solid rgba(252, 211, 77, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .vin-popup {
    padding: 32px 24px;
    border-radius: 24px;
  }

  .vin-popup-title {
    font-size: 24px;
  }

  .vin-popup-subtitle {
    font-size: 14px;
  }

  .vin-popup-features {
    flex-direction: column;
    align-items: center;
  }
}




    gap: 12px;
  }

  .nav-btn {
    width: 40px;
    height: 40px;
  }

  .page-counter {
    font-size: 12px;
    padding: 6px 12px;
    min-width: 65px;
  }
}

/* ========================================
   VIN PDF STACK - NEW 3D EFFECT
   ======================================== */

.vin-pdfstack, .vin-pdfstack * { box-sizing: border-box; }

.vin-pdfstack__stage{
  display:flex;
  align-items:center;
  justify-content:center;
  perspective:1200px;
}

.vin-pdfstack__stack{
  position:relative;
  width:460px;
  height:580px;
  transform: perspective(1200px) rotateY(12deg);
  transform-style:preserve-3d;
  filter: drop-shadow(0 30px 80px rgba(0,0,0,.35));
}

.vin-pdfstack__page{
  position:absolute;
  inset:0;
  background:#fff;
  border-radius:32px;
  border:1px solid rgba(0,0,0,.10);
  overflow:hidden;
  opacity:0;
  transform: translateX(100px) rotateY(60deg) scale(.86);
  transition: all .45s cubic-bezier(.68,-.55,.265,1.55);
  pointer-events:none;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px;
}

.vin-pdfstack__page.is-active{
  opacity:1;
  transform: translateX(0) rotateY(0) scale(1);
  pointer-events:auto;
  z-index:10;
}

.vin-pdfstack__canvas{ max-width:100%; max-height:100%; display:block; background:#fff; }

/* Chips container */
.vin-pdfstack__chips{
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:flex-start;
}

.vin-pdfstack__chip{
  padding: 6px 14px;
  border-radius: 999px; /* Maximum rounding */
  font-size: 12px;
  font-weight: 500;
  cursor:pointer;
  transition: all .2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  white-space: nowrap;
  min-width: 140px; /* Fixed width based on longest title */
  max-width: 140px; /* Force same width */
  height: 28px; /* Fixed height */
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center; /* Center text */
  text-transform: capitalize; /* Capitalize first letter */
  position: relative; /* For white dot positioning */
}

/* White dot for active chip (outside, to the left) */
.vin-pdfstack__chip.active::before {
  content: '';
  position: absolute;
  left: -12px; /* Outside to the left */
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
}

/* Black dot for light variant */
.variant-light .vin-pdfstack__chip.active::before {
  background: #000000;
}

/* Light variant chips */
.variant-light .vin-pdfstack__chip {
  background: #DBEAFE;
  color: #1E40AF;
  border: 1px solid #93C5FD;
}

.variant-light .vin-pdfstack__chip:hover {
  background: #BFDBFE;
  transform: translateY(-2px);
}

.variant-light .vin-pdfstack__chip.active {
  background: #3B82F6;
  color: #fff;
  border-color: #2563EB;
}

/* Dark variant chips */
.variant-dark .vin-pdfstack__chip {
  background: rgba(254, 243, 199, 0.15);
  color: #FCD34D;
  border: 1px solid rgba(252, 211, 77, 0.3);
}

.variant-dark .vin-pdfstack__chip:hover {
  background: rgba(254, 243, 199, 0.25);
  transform: translateY(-2px);
}

.variant-dark .vin-pdfstack__chip.active {
  background: rgba(252, 211, 77, 0.4);
  color: #FFFBEB;
  border-color: #FCD34D;
}

/* Navigation pill (combined prev/next/counter) */
.vin-pdfstack__nav-pill{
  display:flex;
  align-items:center;
  gap:8px; /* Reduced gap */
  padding: 6px 14px; /* Same as chips */
  border-radius:999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all .2s ease;
  min-width: 140px; /* Same as chips */
  max-width: 140px; /* Force same width */
  height: 28px; /* Match chip height exactly (12px font + 6px top + 6px bottom + borders) */
  box-sizing: border-box;
  justify-content: center;
}

/* Light variant nav */
.variant-light .vin-pdfstack__nav-pill {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Dark variant nav */
.variant-dark .vin-pdfstack__nav-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.vin-pdfstack__nav-btn{
  width:16px; /* Even smaller for compact design */
  height:16px;
  border-radius:50%;
  border:none;
  background: transparent;
  flex-shrink: 0; /* Prevent shrinking */
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: all .2s ease;
  padding: 0;
}

.variant-light .vin-pdfstack__nav-btn {
  color: #1E40AF;
}

.variant-dark .vin-pdfstack__nav-btn {
  color: #fff;
}

.variant-light .vin-pdfstack__nav-btn:hover {
  background: rgba(59, 130, 246, 0.1);
}

.variant-dark .vin-pdfstack__nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.vin-pdfstack__nav-btn:disabled{
  opacity:.3;
  cursor:not-allowed;
}

.vin-pdfstack__nav-btn:disabled:hover{
  background: transparent;
}

.vin-pdfstack__counter{
  font-weight:500; /* Same as chips */
  font-size:12px; /* Same as chips */
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0; /* Prevent shrinking */
}

.variant-light .vin-pdfstack__counter {
  color: #1E40AF;
}

.variant-dark .vin-pdfstack__counter {
  color: #fff;
}

@media (max-width: 768px){
  .vin-pdfstack__stack{ width:320px; height:420px; transform: rotateY(6deg) rotateX(2deg); }
  .vin-pdfstack__btn{ width:46px; height:46px; }
}

/* Logo overlay for mobile */
@media (max-width: 768px){
  .vin-logo-overlay {
    width: 92px !important;
    height: 30px !important;
    top: 25px !important;
    right: 15px !important;
  }
}

