.aura-pdf-showcase {
  --pages-per-view: 3;
  --page-gap: 24px;
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0B2F7A;
  padding: 10px;
  box-sizing: border-box;
}
.aura-pdf-showcase *, .aura-pdf-showcase *::before, .aura-pdf-showcase *::after { box-sizing: border-box; }

.aura-pdf-preview-track {
  display: flex;
  gap: var(--page-gap);
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.aura-pdf-page-card {
  position: relative;
  flex: 0 0 calc((100% - ((var(--pages-per-view) - 1) * var(--page-gap))) / var(--pages-per-view));
  height: 560px;
  background: #fff;
  overflow: hidden;
  scroll-snap-align: start;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.aura-pdf-canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.aura-pdf-page-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.96);
  z-index: 2;
  transition: opacity .25s ease, visibility .25s ease;
}
.aura-pdf-page-card.is-loaded .aura-pdf-page-loading { opacity: 0; visibility: hidden; }

.aura-pdf-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(11,47,122,.18);
  border-top-color: #0B2F7A;
  border-radius: 50%;
  animation: auraPdfSpin .8s linear infinite;
}
@keyframes auraPdfSpin { to { transform: rotate(360deg); } }

.aura-pdf-page-number {
  position: absolute;
  right: 10px;
  bottom: 10px;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  z-index: 3;
}

.aura-pdf-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
}

.aura-pdf-button {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 13px 30px;
  border: 3px solid #fff;
  border-radius: 12px;
  background: transparent;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.aura-pdf-button:hover, .aura-pdf-button:focus {
  background: #fff;
  color: #0B2F7A;
  text-decoration: none;
  transform: translateY(-1px);
}

.aura-pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,.82);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}
.aura-pdf-modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

.aura-pdf-modal-dialog {
  position: relative;
  width: 92%;
  max-width: 1500px;
  height: 90vh;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.aura-pdf-reader-frame { display: block; width: 100%; height: 100%; border: 0; background: #fff; }

.aura-pdf-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.72);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,.25);
}
.aura-pdf-modal-close svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
body.aura-pdf-modal-open { overflow: hidden !important; }

@media (max-width: 1024px) {
  .aura-pdf-actions { gap: 16px; }
  .aura-pdf-modal { padding: 14px; }
}

@media (max-width: 767px) {
  .aura-pdf-preview-track { padding-bottom: 8px; }
  .aura-pdf-actions { justify-content: center; width: 100%; }
  .aura-pdf-button { flex: 1 1 calc(50% - 8px); min-width: 0; }
  .aura-pdf-modal { padding: 8px; }
  .aura-pdf-modal-dialog { width: 100%; height: 92vh; border-radius: 10px; }
  .aura-pdf-modal-close { top: 8px; right: 8px; width: 40px; height: 40px; }
}

@media (max-width: 420px) {
  .aura-pdf-actions { flex-direction: column; }
  .aura-pdf-button { width: 100%; flex-basis: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .aura-pdf-preview-track { scroll-behavior: auto; }
  .aura-pdf-button, .aura-pdf-modal, .aura-pdf-page-loading { transition: none !important; }
  .aura-pdf-spinner { animation: none; }
}
