/* =========================================================
   CropNSort PDF - custom layer on top of Vuexy horizontal theme
   ========================================================= */

:root {
  --site-radius: 1rem;
  --site-radius-sm: 0.75rem;
  --site-section-y: 5rem;
  --site-muted: #f8f7fa;
  /* Every primary tint derives from the live theme colour, so the Template
     Customizer restyles the whole site and not just Bootstrap components. */
  --site-primary-soft: rgba(var(--bs-primary-rgb), 0.08);
  --site-primary-lighter: color-mix(in srgb, var(--bs-primary) 78%, #fff);
  --site-primary-darker: color-mix(in srgb, var(--bs-primary) 82%, #000);
}

[data-bs-theme='dark'] {
  --site-muted: #232637;
  --site-primary-soft: rgba(var(--bs-primary-rgb), 0.18);
}

body {
  overflow-x: hidden;
}

.site-main {
  padding-top: 1.5rem;
  padding-bottom: 0;
}

/* Navbar -------------------------------------------------- */
.site-navbar .app-brand-logo img {
  object-fit: contain;
}

.site-navbar .app-brand-text {
  letter-spacing: -0.02em;
}

.site-navbar .navbar-nav .btn {
  white-space: nowrap;
}

/* Super button — animated conic-gradient border -------------------------
   Ported from the supplied component: the demo's body/layout rules were
   dropped and every size is fluid, so one class works in the toolbar, in a
   hero slot or as a wide CTA on a phone. */
.super-button {
  --sb-ring-width: 2px;
  --sb-core: #0a0a0a;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.45rem, 0.3rem + 0.5vw, 0.75rem);
  max-inline-size: 100%;
  min-inline-size: 0;
  padding: clamp(0.5rem, 0.2rem + 1vw, 0.875rem) clamp(0.9rem, 0.5rem + 1.6vw, 1.75rem);
  border: var(--sb-ring-width) solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  color: #fff;
  font-size: clamp(0.8125rem, 0.72rem + 0.3vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  /* keeps the ::before/::after ring inside this element's stacking context */
  isolation: isolate;
  background: linear-gradient(145deg, #0f0f0f, #1c1c1c);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}

.super-button:is(:hover, :focus, :active) {
  color: #fff;
}

/* rotating conic gradient, visible as the ring around the dark core */
.super-button::before {
  content: '';
  position: absolute;
  inset-block-start: -50%;
  inset-inline-start: -50%;
  inline-size: 200%;
  block-size: 200%;
  background: conic-gradient(from 0deg, #00ffff, #ff00ff, #00ffff);
  animation: super-button-rotate 4s linear infinite;
  pointer-events: none;
  z-index: -2;
}

/* dark core, inset by the border width so the ring shows through */
.super-button::after {
  content: '';
  position: absolute;
  inset: var(--sb-ring-width);
  background: var(--sb-core);
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
}

.super-button .arrow {
  flex: 0 0 auto;
  inline-size: clamp(1rem, 0.85rem + 0.5vw, 1.375rem);
  block-size: clamp(1rem, 0.85rem + 0.5vw, 1.375rem);
  color: #00ffff;
  transition: transform 0.3s ease-in-out;
}

@keyframes super-button-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* hover only for real pointers, so touch devices don't get a stuck state */
@media (hover: hover) and (pointer: fine) {
  .super-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.2);
  }

  .super-button:hover .arrow {
    transform: translateX(6px);
  }
}

.super-button:active {
  transform: scale(0.97);
}

.super-button:focus-visible {
  outline: 2px solid #00ffff;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .super-button,
  .super-button .arrow {
    transition: none;
  }

  .super-button::before {
    animation: none; /* falls back to a static gradient ring */
  }
}

/* Gap between the "Free plan available" button and the first menu item */
#layout-menu .menu-inner-right {
  margin-inline-end: 5mm;
}

/* Compact size for the toolbar instance (keeps the ~34px pill height) */
#layout-menu .menu-inner-right .super-button {
  gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.8125rem;
}

#layout-menu .menu-inner-right .super-button .arrow {
  inline-size: 1rem;
  block-size: 1rem;
}

/* Off-canvas drawer (<xl): give the free-plan CTA its own full-width row */
@media (max-width: 1199.98px) {
  /* menu.js parks the brand after the badge slot — put the brand back on top */
  .layout-horizontal .menu-vertical .container-xxl > .app-brand {
    order: -1;
  }

  #layout-menu .menu-inner-right {
    inline-size: 100%;
    margin-inline: 0;
    padding: 0.25rem 0.75rem 0.75rem;
  }

  #layout-menu .menu-inner-right .super-button {
    inline-size: 100%;
  }
}

/* Every submenu link in this menu shows a real icon, so drop Vuexy's bullet dot */
#layout-menu .menu-sub > .menu-item > .menu-link::before {
  display: none;
}

/* Mobile (off-canvas) menu: Vuexy hides submenu icons below xl — show them */
@media (max-width: 1199.98px) {
  .layout-horizontal .menu-vertical .menu-sub .menu-icon {
    display: block;
    inline-size: 1.25rem;
    block-size: 1.25rem;
    font-size: 1.25rem;
    margin-inline-end: 0.4rem;
  }

  /* keep the nesting readable now that every level shows an icon */
  .layout-horizontal .menu-vertical .menu-inner > .menu-item > .menu-sub > .menu-item > .menu-link {
    padding-inline-start: 1.1rem;
  }

  .layout-horizontal .menu-vertical .menu-inner > .menu-item > .menu-sub .menu-sub > .menu-item > .menu-link {
    padding-inline-start: 1.75rem;
  }
}

/* Desktop dropdown: the 3rd level flies out into its own panel, where Vuexy
   reserves 2.75rem of inline padding for a bullet dot — align it with the
   first submenu level now that the icons replace the dots. */
@media (min-width: 1200px) {
  #layout-menu.menu-horizontal .menu-sub .menu-sub > .menu-item > .menu-link {
    padding-inline-start: 1rem;
  }
}

/* Hero ---------------------------------------------------- */
.site-hero {
  position: relative;
  padding: 4rem 0 3.5rem;
  background:
    radial-gradient(1200px 500px at 90% -10%, rgba(var(--bs-primary-rgb), 0.14), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(255, 159, 67, 0.08), transparent 65%);
}

.site-hero .display-5 {
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.site-hero-subtitle {
  max-width: 34rem;
}

.site-eyebrow {
  background: var(--site-primary-soft);
  color: var(--bs-primary);
  border: 1px solid rgba(var(--bs-primary-rgb), 0.18);
  font-weight: 500;
  padding: 0.55rem 0.9rem;
}

.site-stat-row .site-stat {
  padding: 0.85rem 1rem;
  border-radius: var(--site-radius-sm);
  background: var(--bs-paper-bg);
  border: 1px solid var(--bs-border-color);
  box-shadow: 0 0.25rem 1rem rgba(47, 43, 61, 0.04);
}

.site-hero-art {
  border-radius: 2rem;
  padding: 2rem;
  background:
    radial-gradient(circle at 50% 50%, rgba(var(--bs-primary-rgb), 0.18), rgba(var(--bs-primary-rgb), 0.02) 62%, transparent 70%);
}

.hero-illustration {
  max-height: 430px;
  width: auto;
  filter: drop-shadow(0 1.5rem 2rem rgba(47, 43, 61, 0.12));
}

.hero-float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 99rem;
  background: var(--bs-paper-bg);
  border: 1px solid var(--bs-border-color);
  z-index: 2;
  animation: site-float 6s ease-in-out infinite;
}

.hero-float-card--one {
  top: 12%;
  left: 0;
}

.hero-float-card--two {
  bottom: 12%;
  right: 0;
  animation-delay: 1.6s;
}

@keyframes site-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Marketplace strip --------------------------------------- */
.site-marketplace-strip {
  background: var(--bs-paper-bg);
}

.marketplace-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
  color: var(--bs-body-color);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.marketplace-chip img {
  object-fit: contain;
}

.marketplace-chip:hover {
  background: var(--site-primary-soft);
  color: var(--bs-primary);
  transform: translateY(-1px);
}

/* Sections ------------------------------------------------ */
.site-section {
  padding: var(--site-section-y) 0;
}

.site-section-muted {
  background: var(--site-muted);
}

.site-page-header {
  padding: 2.25rem 0 1.5rem;
  background:
    radial-gradient(900px 360px at 85% 0%, rgba(var(--bs-primary-rgb), 0.1), transparent 65%);
}

.site-lead {
  max-width: 48rem;
}

/* Tool cards ---------------------------------------------- */
.tool-card {
  border-radius: var(--site-radius);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.75rem 2rem rgba(47, 43, 61, 0.12) !important;
}

.tool-card .tool-icon-box {
  width: 4rem;
  height: 4rem;
}

.tool-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.85rem;
  background: var(--site-primary-soft);
  border: 1px solid rgba(var(--bs-primary-rgb), 0.12);
  flex-shrink: 0;
}

.tool-icon-box img {
  object-fit: contain;
}

.tool-icon-box-sm {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.65rem;
}

.tool-hero-art img {
  max-height: 240px;
  width: auto;
  filter: drop-shadow(0 1.25rem 1.5rem rgba(47, 43, 61, 0.1));
}

.related-tool:last-of-type {
  border-bottom: 0;
}

.related-tool:hover {
  color: var(--bs-primary);
}

.tool-filter .btn {
  border-radius: 99rem;
}

/* Feature / step cards ------------------------------------ */
.step-card,
.feature-tile {
  border-radius: var(--site-radius);
}

.step-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.75rem 1.75rem rgba(47, 43, 61, 0.1) !important;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--site-primary-soft);
  color: var(--bs-primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.8rem;
  font-size: 1.35rem;
}

.site-check-list li {
  margin-bottom: 0.65rem;
  color: var(--bs-body-color);
}

/* Pricing ------------------------------------------------- */
.plan-card {
  border-radius: var(--site-radius);
  position: relative;
  overflow: hidden;
}

.plan-card-featured {
  box-shadow: 0 1rem 2.5rem rgba(var(--bs-primary-rgb), 0.18) !important;
}

/* The package the signed-in visitor already owns: a tinted card plus a green
 * "Current plan" badge so it stands apart from the "Best value" card. */
.plan-card-current {
  box-shadow: 0 1rem 2.5rem rgba(var(--bs-primary-rgb), 0.26) !important;
  background-image: linear-gradient(180deg, rgba(var(--bs-primary-rgb), 0.08), rgba(var(--bs-primary-rgb), 0) 55%);
}

/* The matching column in the comparison table. */
.plan-compare-current {
  background-color: rgba(var(--bs-success-rgb), 0.1) !important;
}

/* lives in the card's top-right group, level with the crown badge, so it can
   never paint over it */
.plan-ribbon {
  font-weight: 500;
}

.plan-features li {
  font-size: 0.9rem;
}

/* UPI payment popup ---------------------------------------- */
.plan-payment-dialog {
  max-width: 840px;
}

.plan-payment-dialog .modal-header {
  align-items: center;
}

.plan-payment-dialog .modal-header .btn-close {
  position: static;
  inset: auto;
  margin: 0 0 0 auto;
  transform: none;
}

.plan-payment-dialog .modal-header .btn-close:hover,
.plan-payment-dialog .modal-header .btn-close:focus,
.plan-payment-dialog .modal-header .btn-close:active {
  transform: none;
}

.plan-payment-dialog .modal-body {
  padding: 1rem 1.25rem;
}

.plan-payment-dialog .modal-header,
.plan-payment-dialog .modal-footer {
  padding: 0.65rem 1.25rem;
}

.plan-payment-dialog .plan-payment-card {
  border-color: var(--bs-border-color, #dee2e6);
  box-shadow: none;
}

.plan-payment-dialog .plan-payment-card .card-body {
  padding: 0.85rem;
}

.plan-payment-qr {
  width: 212px;
  max-width: 100%;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: var(--bs-border-radius-lg, 0.5rem);
}

.plan-payment-qr canvas,
.plan-payment-qr img {
  display: block;
  width: 194px !important;
  height: 194px !important;
  max-width: 100%;
}

/* The popup is a fixed, non-scrollable view on desktop when it fits. On very
   short windows the normal modal scroll is kept so nothing is clipped. */
@media (min-width: 768px) and (min-height: 700px) {
  #planPaymentModal {
    overflow: hidden;
  }

  #planPaymentModal .modal-dialog {
    margin: 1rem auto;
  }
}

@media (max-width: 575.98px) {
  .plan-payment-dialog .modal-body {
    padding: 0.9rem;
  }
}

/* Crown badge on the featured plan — ported from the supplied button.
   The demo's layout/body rules are dropped and it is no longer a <button>
   (here it is decorative), but the gradient and the hover sweep are kept. */
.crown-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: fit-content;
  padding: 0.8em 1.1em;
  gap: 0.4rem;
  border: none;
  border-radius: 30px;
  background: linear-gradient(
      15deg,
      #880088,
      #aa2068,
      #cc3f47,
      #de6f3d,
      #f09f33,
      #de6f3d,
      #cc3f47,
      #aa2068,
      #880088
    )
    no-repeat;
  background-size: 300%;
  background-position: left center;
  transition: background 0.3s ease;
}

.crown-badge svg {
  flex: 0 0 auto;
  inline-size: 23px;
  block-size: auto;
  fill: #f09f33;
  transition: fill 0.3s ease;
}

/* Hover only where a real pointer exists, so touch devices keep the idle state */
@media (hover: hover) and (pointer: fine) {
  .crown-badge:hover {
    background-size: 320%;
    background-position: right center;
  }

  .crown-badge:hover svg {
    fill: #fff;
  }
}

@media (prefers-reduced-motion: reduce) {
  .crown-badge,
  .crown-badge svg {
    transition: none;
  }
}

.plan-compare thead th {
  white-space: nowrap;
  font-size: 0.85rem;
  vertical-align: top;
  padding: 1rem;
}

.plan-compare td,
.plan-compare tbody th {
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
}

/* The top package gets a gradient instead of a flat label colour, so a
 * Diamond Package stands out from the cheaper tiers in light and dark mode.
 * Lives in the shared stylesheet because the tools pages show it too. */
.badge-plan-diamond {
  color: #fff;
  background-image: linear-gradient(135deg, #7367f0 0%, #9e95f5 45%, #34d1d1 100%);
}

/* pan number card ----------------------------------------- */
.pan-numbers-card {
  overflow: hidden;
  border-radius: var(--site-radius);
}

.pan-numbers-header {
  background:
    radial-gradient(42rem 18rem at 100% 0%, rgba(var(--bs-primary-rgb), 0.16), transparent 68%),
    linear-gradient(180deg, var(--site-primary-soft), transparent 82%);
}

.pan-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  font-size: 1.35rem;
}

.pan-summary {
  line-height: 1.65;
}

.pan-summary .d-block {
  position: relative;
  padding-left: 1rem;
}

.pan-summary .d-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--bs-primary);
  opacity: 0.55;
}

.pan-on-file {
  padding: 1rem 1.15rem;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--site-radius-sm);
  background: var(--site-muted);
}

.pan-stat-card {
  background: #fafafa;
}

.pan-add-form {
  /* No background/border/padding — handled by wrapper */
}

.pan-add-form .form-control {
  font-weight: 600;
}

/* Reviews ------------------------------------------------- */
.review-scroller {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.25rem 0.25rem 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.review-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  border-radius: var(--site-radius);
}

.review-card .avatar-initial {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Accordion ------------------------------------------------ */
.site-accordion .accordion-item {
  border: 0;
  border-radius: var(--site-radius-sm) !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
  box-shadow: 0 0.25rem 1rem rgba(47, 43, 61, 0.05);
}

.site-accordion .accordion-button {
  font-weight: 500;
  padding: 1rem 1.25rem;
}

.site-accordion .accordion-button:not(.collapsed) {
  color: var(--bs-primary);
  background: var(--site-primary-soft);
  box-shadow: none;
}

.site-accordion .accordion-body {
  padding: 0.25rem 1.25rem 1.25rem;
  font-size: 0.925rem;
}

/* CTA ------------------------------------------------------ */
.cta-banner {
  border-radius: 1.5rem;
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(255, 255, 255, 0.18), transparent 55%),
    linear-gradient(135deg, var(--bs-primary) 0%, var(--site-primary-lighter) 55%, var(--site-primary-darker) 100%);
  box-shadow: 0 1.5rem 3rem rgba(var(--bs-primary-rgb), 0.28);
}

.cta-banner .text-white-50 {
  color: rgba(255, 255, 255, 0.78) !important;
}

/* Shimmer button (CTA) ------------------------------------- */
@property --shimmer-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes shimmer-rotate-in {
  to {
    --shimmer-angle: 18deg;
  }
}

@keyframes shimmer-rotate-out {
  from {
    --shimmer-angle: 18deg;
  }
  to {
    --shimmer-angle: 0deg;
  }
}

.shimmer-button {
  display: inline-block;
  position: relative;
  appearance: none;
  border: none;
  outline: none;
  /* fluid sizing: viewport-relative at the low end, capped so it never blows up */
  padding: clamp(0.75rem, 0.6rem + 0.5vw, 1.05rem) clamp(1.6rem, 1.1rem + 1.5vw, 2.5rem);
  font-family: inherit;
  font-weight: 600;
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.0625rem);
  line-height: 1.35;
  color: #1a1a2e;
  text-align: center;
  text-decoration: none;
  overflow: hidden;
  border-radius: clamp(0.6rem, 0.5rem + 0.35vw, 0.85rem);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow:
    0 5px 10px rgba(124, 125, 190, 0.33),
    0 5px 20px rgba(124, 125, 190, 0.22),
    0 10px 50px rgba(124, 125, 190, 0.22);
  background: conic-gradient(
    from 0deg at 50% 50%,
    #d3d7e9 0%,
    #b3b6e3 5%,
    #ceb8ec 10%,
    #b0cbda 15%,
    #d5e5ec 20%,
    #b3b6e3 25%,
    #aed8d5 30%,
    #c8e1de 35%,
    #aed8d5 40%,
    #a3cedb 45%,
    #d3d7e9 50%,
    #c8e1de 55%,
    #a2cdd8 60%,
    #c1e2da 70%,
    #a3cedb 75%,
    #e5f4fa 80%,
    #d5e5ec 85%,
    #d1d3e4 90%,
    #d3d7e9 95%,
    #d3d7e9 100%
  );
  transition: box-shadow 0.18s ease-in-out, transform 0.18s ease-in-out;
}

/* core.css's "a:hover" is (0-1-1) and would outrank ".shimmer-button" (0-1-0),
   repainting the label purple mid-hover — so the colour is pinned in every state. */
.shimmer-button:is(:hover, :focus, :focus-visible, :active, :visited) {
  color: #1a1a2e;
}

.shimmer-button::before {
  content: '';
  display: block;
  position: absolute;
  inset: 0;
  opacity: 1;
  background: conic-gradient(
    from var(--shimmer-angle) at 50% 50%,
    #e4e7f7 0%,
    #ffffff00 5%,
    #ffffff00 20%,
    white 25%,
    #ffffff00 30%,
    #ffffff00 40%,
    #e4e7f7 45%,
    #ffffff00 50%,
    #ffffff00 70%,
    white 75%,
    #ffffff00 80%,
    #ffffff00 95%,
    #e4e7f7 100%
  );
  animation: shimmer-rotate-out 0.33s ease-in-out forwards;
  transition: opacity 0.18s ease-in-out;
}

.shimmer-button > span {
  position: relative;
}

/* Hover only where a real pointer exists, so touch devices keep the idle state */
@media (hover: hover) and (pointer: fine) {
  .shimmer-button:hover {
    box-shadow:
      0 5px 10px rgba(90, 91, 173, 0.33),
      0 10px 40px rgba(79, 80, 159, 0.22);
  }

  .shimmer-button:hover::before {
    opacity: 0.66;
    animation: shimmer-rotate-in 0.33s ease-in-out forwards;
  }
}

.shimmer-button:active {
  box-shadow:
    0 5px 10px rgba(90, 91, 173, 0.33),
    0 10px 40px rgba(79, 80, 159, 0.22);
  transform: translateY(1px);
}

.shimmer-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
  box-shadow:
    0 5px 10px rgba(90, 91, 173, 0.33),
    0 10px 40px rgba(79, 80, 159, 0.22);
}

@media (prefers-reduced-motion: reduce) {
  .shimmer-button,
  .shimmer-button::before {
    animation: none;
    transition: none;
  }
}

/* Upload --------------------------------------------------- */
.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.25rem 1.25rem;
  border: 1.5px dashed rgba(var(--bs-primary-rgb), 0.4);
  border-radius: var(--site-radius);
  background: var(--site-primary-soft);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.upload-zone:hover,
.upload-zone.is-dragover {
  border-color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), 0.14);
}

.upload-zone:focus-within {
  outline: 3px solid var(--bs-primary);
  outline-offset: 3px;
}

.upload-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 99rem;
  font-size: 1.6rem;
}

.card-option {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--site-radius-sm);
  background: var(--bs-paper-bg);
  margin: 0;
}

.card-option .form-check-input {
  margin-top: 0.15rem;
}

.card-option .form-check-label {
  font-size: 0.875rem;
  cursor: pointer;
}

.label-options-grid {
  --bs-gutter-x: 10mm;
}

/* Premium "Paid" badge used on label options */
.badge-paid {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  overflow: hidden;
  vertical-align: middle;
  padding: 0.2rem 0.55rem 0.2rem 0.45rem;
  border: 0;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  color: #4a3300;
  background-image: linear-gradient(135deg, #fff6d3 0%, #ffd75e 22%, #f2a900 58%, #c98a00 100%);
  box-shadow:
    0 1px 1px rgba(93, 60, 0, 0.25),
    0 6px 14px -6px rgba(242, 169, 0, 0.85),
    inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.badge-paid i {
  font-size: 0.9em;
}

/* Moving sheen */
.badge-paid::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: skewX(-20deg);
  animation: badge-paid-shine 3.2s ease-in-out infinite;
}

@keyframes badge-paid-shine {
  0%,
  55% {
    left: -60%;
  }
  100% {
    left: 140%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .badge-paid::after {
    animation: none;
  }
}

/* Footer --------------------------------------------------- */
.site-footer {
  background: var(--bs-paper-bg);
  margin-top: 2rem;
}

.site-footer-lead {
  max-width: 24rem;
}

.site-footer-links li {
  margin-bottom: 0.5rem;
}

.site-footer-links a {
  color: var(--bs-secondary-color);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

.site-footer-links a:hover {
  color: var(--bs-primary);
  text-decoration: underline;
}

.site-footer-bottom-link {
  color: var(--bs-secondary-color);
  text-decoration: none;
}

.site-footer-bottom-link:hover {
  color: var(--bs-primary);
}

/* Auth ----------------------------------------------------- */
.site-auth-section {
  padding: 3rem 0 4rem;
}

.auth-card {
  border-radius: 1.25rem;
}

.auth-aside {
  background:
    radial-gradient(500px 300px at 10% 0%, rgba(255, 255, 255, 0.2), transparent 55%),
    linear-gradient(150deg, var(--bs-primary) 0%, var(--site-primary-darker) 100%);
}

.auth-benefits li {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.65rem;
  font-size: 0.925rem;
}

.auth-aside .icon-base {
  color: rgba(255, 255, 255, 0.9);
}

/* Blog ----------------------------------------------------- */
.blog-card {
  border-radius: var(--site-radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.75rem 1.75rem rgba(47, 43, 61, 0.1) !important;
}

.blog-featured {
  border-radius: 1.25rem;
}

.blog-featured-media {
  min-height: 16rem;
  overflow: hidden;
}

.blog-cover-image,
.blog-card-cover {
  width: 100%;
  object-fit: cover;
}

.blog-cover-image {
  max-height: 24rem;
}

.blog-card-cover {
  aspect-ratio: 16 / 9;
}

.blog-article-cover {
  display: block;
  width: 100%;
  max-height: 34rem;
  object-fit: cover;
}

/* Legal / content ------------------------------------------ */
.legal-content .h4:first-child {
  margin-top: 0 !important;
}

.legal-content p {
  line-height: 1.75;
}

.site-sticky {
  top: 7rem;
}

.site-footer .badge {
  font-weight: 500;
}

.merge-pdf-file-list:empty {
  display: none;
}

.merge-pdf-file-list .list-group-item {
  min-inline-size: 0;
}

.merge-pdf-file-list [draggable='true'] {
  cursor: grab;
}

.merge-pdf-file-list [draggable='true']:active {
  cursor: grabbing;
}

/* PDF processing overlay ---------------------------------- */
.pdf-processing-overlay[hidden] {
  display: none;
}

.pdf-processing-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  inline-size: 100%;
  block-size: 100vh;
  block-size: 100dvh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(15, 18, 30, 0.78);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.pdf-processing-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.pdf-processing-loader__graphic {
  display: block;
  inline-size: 100px;
  block-size: 100px;
  overflow: visible;
}

.pdf-loader-shield-track {
  fill: none;
  stroke: #d0d0d0;
  stroke-width: 2.5;
}

.pdf-loader-shield {
  fill: none;
  stroke: #4f8cff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 30 70;
  animation: pdf-loader-shield-move 2s linear infinite;
}

.pdf-loader-page {
  fill: #fff;
  stroke: #4f8cff;
  stroke-width: 1.8;
  stroke-linejoin: round;
  transform-box: fill-box;
  transform-origin: center;
  animation: pdf-loader-page-pulse 1.5s ease-in-out infinite;
}

.pdf-loader-page-fold,
.pdf-loader-page-lines {
  fill: none;
  stroke: #4f8cff;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pdf-loader-scan {
  stroke: #4f8cff;
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0;
  animation: pdf-loader-scan 1.8s ease-in-out infinite;
}

.pdf-processing-loader__stages {
  position: relative;
  min-inline-size: 8rem;
  block-size: 1.5rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5rem;
  text-align: center;
}

.pdf-processing-loader__stages > span {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: pdf-loader-stage 4s linear infinite both;
}

.pdf-processing-loader__stages > span:nth-child(2) {
  animation-delay: 1s;
}

.pdf-processing-loader__stages > span:nth-child(3) {
  animation-delay: 2s;
}

.pdf-processing-loader__stages > span:nth-child(4) {
  animation-delay: 3s;
}

@keyframes pdf-loader-shield-move {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

@keyframes pdf-loader-page-pulse {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes pdf-loader-scan {
  0% { opacity: 0; transform: translateY(-5px); }
  20%, 80% { opacity: 1; }
  100% { opacity: 0; transform: translateY(35px); }
}

@keyframes pdf-loader-stage {
  0%, 5% { opacity: 0; }
  8%, 20% { opacity: 1; }
  23%, 100% { opacity: 0; }
}

/* Breadcrumb ----------------------------------------------- */
.breadcrumb a {
  color: var(--bs-secondary-color);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--bs-primary);
}

/* Dark mode tweaks ----------------------------------------- */
[data-bs-theme='dark'] .site-hero {
  background:
    radial-gradient(1200px 500px at 90% -10%, rgba(var(--bs-primary-rgb), 0.24), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(255, 159, 67, 0.08), transparent 65%);
}

[data-bs-theme='dark'] .site-stat-row .site-stat,
[data-bs-theme='dark'] .tool-card,
[data-bs-theme='dark'] .site-footer {
  border-color: rgba(255, 255, 255, 0.06);
}

[data-bs-theme='dark'] .site-footer {
  background: var(--bs-paper-bg);
}

[data-bs-theme='dark'] .upload-zone {
  background: rgba(var(--bs-primary-rgb), 0.12);
}

[data-bs-theme='dark'] .row-bordered {
  border-color: var(--bs-border-color);
}

/* Responsive ----------------------------------------------- */
@media (max-width: 991.98px) {
  :root {
    --site-section-y: 3.5rem;
  }

  .site-hero {
    padding: 2.5rem 0 2rem;
  }

  .hero-illustration {
    max-height: 320px;
  }

  .hero-float-card {
    display: none;
  }

  .site-main {
    padding-top: 1rem;
  }
}

@media (max-width: 575.98px) {
  .site-hero .display-5,
  .site-page-header .display-6 {
    font-size: 2rem;
  }

  .review-card {
    flex-basis: 85vw;
  }

  .site-hero-art {
    padding: 0.75rem;
  }

  .site-footer .row > div {
    margin-bottom: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pdf-loader-shield,
  .pdf-loader-page,
  .pdf-loader-scan {
    animation: none;
  }

  .pdf-processing-loader__stages > span {
    display: none;
    animation: none;
  }

  .pdf-processing-loader__stages > span:first-child {
    display: inline;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

[id] {
  scroll-margin-top: 8rem;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

/* The bundled theme hides its customizer below 1200px; keep the settings
   drawer available on tablet and mobile layouts too. */
@media (max-width: 1200px) {
  body #template-customizer {
    display: flex;
    visibility: visible;
    inline-size: min(400px, 100vw);
    max-inline-size: 100vw;
  }
}
