body {
  background: radial-gradient(circle at top right, #f6efe2 0, #f7f9f9 45%);
  overflow-x: hidden;
}

.premium-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  border-radius: 2.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.5);
  overflow: hidden;
  transition: all 0.5s ease;
}

.premium-card:hover {
  border-color: #c29231;
  box-shadow: 0 20px 50px rgba(194, 146, 49, 0.18);
  transform: translateY(-4px);
}

.premium-button {
  border-radius: 9999px;
  padding: 0.85rem 2.2rem;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.premium-button-primary {
  background: #c29231;
  color: #fff;
}

.premium-button-primary:hover {
  background: #9f7422;
}

.premium-button-accent {
  background: #c29231;
  color: #fff;
}

.premium-button-accent:hover {
  background: #9f7422;
}

.badge-soon {
  position: absolute;
  top: -0.45rem;
  right: -0.2rem;
  background: #9f7422;
  color: #fff;
  font-size: 0.5rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 9999px;
  padding: 0.2rem 0.45rem;
}

.table-wrap {
  overflow-x: auto;
}

.lang-circle {
  width: 11rem;
  height: 11rem;
  border-radius: 9999px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.pdf-stage {
  width: 100%;
  max-width: 100%;
  min-height: calc(100vh - 230px);
  background: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
}

.pdf-frame {
  display: block;
  width: 100%;
  max-width: 100%;
  height: calc(100vh - 230px);
  min-height: calc(100vh - 230px);
  border: 0;
  background: #ffffff;
}

.pdf-mobile-fallback {
  min-height: 55dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  text-align: center;
}

.pdfjs-shell {
  background: #fff;
  border: 1px solid #e8d8bd;
  border-radius: 1rem;
  overflow: hidden;
}

.pdfjs-toolbar {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  background: #f8f1e4;
  border-bottom: 1px solid #e8d8bd;
}

.pdfjs-status {
  text-align: center;
  font-size: 0.72rem;
  color: #9f7422;
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid #f1e6d3;
}

.pdfjs-pages {
  height: calc(100vh - 280px);
  max-height: calc(100vh - 280px);
  overflow: auto;
  padding: 1rem 0.75rem 1rem;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pdfjs-page-wrap {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 1.25rem;
}

.pdfjs-page-label {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9f7422;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.pdfjs-canvas {
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
  background: #fff;
}

.pdf-download-row {
  padding-top: 0.4rem;
}

.pdf-image-pages {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pdf-image-page {
  width: 100%;
  border-radius: 0.8rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 26px rgba(27, 28, 31, 0.08);
  border: 1px solid #e9dfd0;
}

.pdf-page-image {
  display: block;
  width: 100%;
  height: auto;
}

.pdfjs-toolbar .premium-button[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

.pdf-mobile-embed {
  height: calc(100vh - 220px);
  max-height: calc(100vh - 220px);
}

@supports (height: 100dvh) {
  .pdf-mobile-embed {
    height: calc(100dvh - 220px);
    max-height: calc(100dvh - 220px);
  }
}

@supports (height: 100dvh) {
  .pdfjs-pages {
    height: calc(100dvh - 280px);
    max-height: calc(100dvh - 280px);
  }
}

@media (max-width: 640px) {
  .premium-button {
    padding: 0.7rem 1.1rem;
    letter-spacing: 0.14em;
  }

  .lang-circle {
    width: 9.5rem;
    height: 9.5rem;
  }

  .pdf-stage,
  .pdf-frame {
    min-height: calc(100dvh - 220px);
    height: calc(100dvh - 220px);
    border-radius: 0;
  }

  .pdf-view-shell {
    padding-bottom: 0;
  }

  .pdf-view-header {
    margin-bottom: 0;
    padding-top: 0.25rem;
    padding-bottom: 0.5rem;
  }

  .pdf-view-content {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
    background: #ffffff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pdf-view-website-btn {
    padding: 0.85rem 0 1.2rem;
  }

  .pdfjs-toolbar {
    padding: 0.6rem;
    gap: 0.4rem;
  }

  .pdf-mobile-embed {
    height: calc(100vh - 190px);
    max-height: calc(100vh - 190px);
  }

  .pdfjs-pages {
    height: calc(100vh - 240px);
    max-height: calc(100vh - 240px);
    padding: 0.75rem 0.4rem 1rem;
  }

  .pdf-image-pages {
    gap: 0.8rem;
  }

  .pdf-image-page {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }

  @supports (height: 100dvh) {
    .pdf-mobile-embed {
      height: calc(100dvh - 190px);
      max-height: calc(100dvh - 190px);
    }

    .pdfjs-pages {
      height: calc(100dvh - 240px);
      max-height: calc(100dvh - 240px);
    }
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  nav .max-w-7xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .premium-button {
    padding: 0.72rem 1.25rem;
    font-size: 0.54rem;
    letter-spacing: 0.16em;
  }

  .lang-circle {
    width: 9.75rem;
    height: 9.75rem;
  }

  .lang-circle span:first-child {
    font-size: 2.2rem;
  }

  .pdf-view-header h2 {
    font-size: 1.7rem;
  }

  .pdfjs-toolbar {
    padding: 0.7rem;
    gap: 0.45rem;
  }

  .pdfjs-pages {
    height: calc(100vh - 260px);
    max-height: calc(100vh - 260px);
  }

  @supports (height: 100dvh) {
    .pdfjs-pages {
      height: calc(100dvh - 260px);
      max-height: calc(100dvh - 260px);
    }
  }
}

/* ─── QR Image Menu ──────────────────────────────────────────────────────── */

.qr-menu-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.75rem 0.5rem 1rem;
}

.qr-menu-images {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 0.5rem;
}

.qr-menu-images img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 0 1.25rem;
  /* No filter, no transform, no background-size — raw image display */
}

@media (max-width: 600px) {
  .qr-menu-images {
    padding: 0;
  }

  .qr-menu-images img {
    margin: 0 0 0.75rem;
  }
}
