.ap-no-scroll,
.ap-no-scroll body {
  overflow: hidden;
}

.ap-carousel-shell {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(180, 214, 255, 0.18);
  background:
    radial-gradient(circle at top right, rgba(123, 183, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(14, 18, 24, 0.92), rgba(9, 12, 16, 0.92));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
}

.ap-carousel-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 100%);
  opacity: 0.16;
}

.ap-carousel-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.018) 0,
    rgba(255,255,255,0.018) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.05;
  mix-blend-mode: screen;
}

.ap-fragments-carousel-header {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
  padding: 10px 14px;
  border: 1px solid rgba(180, 214, 255, 0.14);
  border-radius: 14px;
  background: rgba(9, 11, 14, 0.76);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.ap-fragments-carousel-label,
.ap-fragments-carousel-status {
  color: #95a3b5;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ap-fragments-carousel-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ap-fragments-carousel-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b7d9ff;
  box-shadow: 0 0 0 5px rgba(183, 217, 255, 0.08), 0 0 18px rgba(183, 217, 255, 0.4);
}

.ap-fragments-carousel-status {
  color: #bcc8d6;
  letter-spacing: 0.08em;
}

.ap-edge-fade-left,
.ap-edge-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 70px;
  z-index: 3;
  pointer-events: none;
}

.ap-edge-fade-left {
  left: 0;
  background: linear-gradient(90deg, rgba(5,7,8,0.92), rgba(5,7,8,0));
}

.ap-edge-fade-right {
  right: 0;
  background: linear-gradient(270deg, rgba(5,7,8,0.92), rgba(5,7,8,0));
}

.ap-carousel-track {
  position: relative;
  z-index: 2;
  display: flex;
  gap: var(--ap-gap, 20px);
  width: max-content;
  animation: apMarquee var(--ap-speed, 32s) linear infinite;
}

.ap-pause-on-hover:hover .ap-carousel-track {
  animation-play-state: paused;
}

.ap-fragment-card {
  position: relative;
  z-index: 2;
  width: var(--ap-card-width, 320px);
  flex: 0 0 var(--ap-card-width, 320px);
}

.ap-fragment-button {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(180, 214, 255, 0.14);
  background: linear-gradient(180deg, rgba(11, 14, 18, 0.88), rgba(8, 10, 13, 0.92));
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 16px 48px rgba(0,0,0,0.28);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.ap-fragment-button::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top right, rgba(123,183,255,0.10), transparent 30%);
  opacity: 0.7;
}

.ap-fragment-button::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.018) 0,
    rgba(255,255,255,0.018) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.05;
  mix-blend-mode: screen;
}

.ap-fragment-button:hover {
  transform: translateY(-4px);
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(183,217,255,0.05) inset,
    0 0 22px rgba(123,183,255,0.08);
  border-color: rgba(180, 214, 255, 0.28);
  background: linear-gradient(180deg, rgba(14, 18, 24, 0.94), rgba(9, 12, 16, 0.94));
}

.ap-fragment-button img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  transition: transform 0.38s ease, filter 0.38s ease;
  image-rendering: auto;
}

.ap-fragment-button:hover img {
  transform: scale(1.018);
  filter: brightness(1.03) contrast(1.02);
}

.ap-hover-ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 0 rgba(183,217,255,0);
  transition: box-shadow 0.28s ease;
}

.ap-fragment-button:hover .ap-hover-ring {
  box-shadow: inset 0 0 0 1px rgba(183,217,255,0.12);
}

.ap-fragment-overlay {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 2;
  display: block;
  margin-top: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(180, 214, 255, 0.14);
  background: rgba(5, 8, 11, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
  text-align: left;
}

.ap-fragment-title,
.ap-fragment-meta {
  display: block;
}

.ap-fragment-title {
  margin: 0;
  color: #e8edf3;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ap-fragment-meta {
  margin-top: 4px;
  color: #95a3b5;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes apMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - (var(--ap-gap, 20px) / 2))); }
}

.ap-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999998;
}

.ap-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 8, 0.92);
  backdrop-filter: blur(16px);
}

.ap-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 1220px);
  max-height: 88vh;
  margin: 5vh auto;
  display: grid;
  place-items: center;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(180, 214, 255, 0.28);
  background: linear-gradient(180deg, rgba(14, 18, 24, 0.95), rgba(9, 12, 16, 0.95));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.ap-lightbox-panel img {
  display: block;
  max-width: 100%;
  max-height: calc(88vh - 28px);
  width: auto;
  height: auto;
  border-radius: 14px;
}

.ap-lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(180, 214, 255, 0.18);
  border-radius: 12px;
  background: rgba(9, 11, 14, 0.82);
  color: #b7d9ff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0,0,0,0.24);
}

.ap-lightbox-close:hover {
  border-color: rgba(180,214,255,0.28);
  box-shadow: 0 14px 34px rgba(0,0,0,0.28), 0 0 16px rgba(123,183,255,0.08);
}


.ap-seed-wrap {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.ap-seed-title {
  margin: 0 0 10px;
  color: #f6f7fb;
}

.ap-seed-intro {
  margin: 0 0 24px;
  color: rgba(246,247,251,0.78);
}

.ap-seed-message {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(180, 214, 255, 0.14);
  background: rgba(255,255,255,0.04);
  color: #f6f7fb;
}

.ap-seed-message-error {
  border-color: rgba(255,100,100,0.25);
}

.ap-seed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ap-seed-item {
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(16,17,20,0.95), rgba(10,11,14,0.95));
  border: 1px solid rgba(180, 214, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.ap-seed-clue {
  display: block;
  margin-bottom: 10px;
  color: rgba(246,247,251,0.72);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.ap-seed-input {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(180, 214, 255, 0.16);
  background: rgba(255,255,255,0.03);
  color: #fff;
  padding: 12px 14px;
  outline: none;
}

.ap-seed-input:focus {
  border-color: rgba(180, 214, 255, 0.30);
  box-shadow: 0 0 0 3px rgba(183, 217, 255, 0.06);
}

.ap-seed-submit {
  margin-top: 22px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 12px;
  border: 1px solid rgba(180, 214, 255, 0.16);
  background: linear-gradient(180deg, #12141a, #0d0f14);
  color: #fff;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0,0,0,0.24);
}

.ap-seed-submit:hover {
  border-color: rgba(180, 214, 255, 0.30);
}

.ap-system-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  animation: apModalFade 0.24s ease;
}

.ap-system-modal--closing {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ap-system-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4,6,9,0.82);
  backdrop-filter: blur(6px);
}

.ap-system-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 520px);
  padding: 34px 34px 28px;
  border-radius: 20px;
  border: 1px solid rgba(180, 214, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(18,20,26,0.96), rgba(10,12,16,0.96)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.015), rgba(255,255,255,0.015) 1px, transparent 1px, transparent 4px);
  box-shadow: 0 28px 80px rgba(0,0,0,0.46);
  transform: scale(1);
  animation: apModalScale 0.24s ease;
}

.ap-system-modal__label {
  margin-bottom: 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.56);
  letter-spacing: 0.18em;
}

.ap-system-modal__heading {
  margin: 0;
  color: #f5f7fc;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: 0.08em;
}

.ap-system-modal__divider {
  height: 1px;
  margin: 18px 0 20px;
  background: linear-gradient(to right, rgba(180, 214, 255, 0.18), rgba(255,255,255,0.04));
}

.ap-system-modal__message {
  color: rgba(245,247,252,0.82);
  line-height: 1.7;
}

.ap-system-modal__message p { margin: 0 0 1em; }

.ap-system-modal__button {
  width: 100%;
  min-height: 52px;
  margin-top: 22px;
  border-radius: 12px;
  border: 1px solid rgba(180, 214, 255, 0.16);
  background: linear-gradient(180deg, rgba(20,22,28,1), rgba(12,14,18,1));
  color: #fff;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.ap-system-modal__button:hover {
  transform: translateY(-1px);
  border-color: rgba(180, 214, 255, 0.30);
  box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}

.ap-system-modal__status {
  margin-top: 14px;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  letter-spacing: 0.14em;
}

@keyframes apModalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes apModalScale {
  from { transform: scale(0.965); }
  to { transform: scale(1); }
}

@media (max-width: 767px) {
  .ap-carousel-shell {
    padding: 16px 12px;
    border-radius: 18px;
  }

  .ap-fragments-carousel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
  }

  .ap-fragments-carousel-status {
    font-size: 11px;
  }

  .ap-fragment-card {
    width: var(--ap-card-width-mobile, 320px);
    flex-basis: var(--ap-card-width-mobile, 320px);
  }

  .ap-fragment-overlay {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 9px 10px;
  }

  .ap-seed-grid { grid-template-columns: 1fr; }

  .ap-system-modal__dialog {
    padding: 24px 20px 20px;
    border-radius: 18px;
  }

  .ap-edge-fade-left,
  .ap-edge-fade-right {
    width: 34px;
  }
}


@media (min-width: 768px) {
  .ap-carousel-shell {
    --ap-visible-desktop: 3;
  }
}

@media (max-width: 767px) {
  .ap-lightbox-panel {
    width: min(94vw, 94vw);
    margin: 3vh auto;
    padding: 10px;
    border-radius: 18px;
  }

  .ap-lightbox-panel img {
    max-height: calc(92vh - 20px);
  }
}


.ap-fragment-title {
  font-size: 11px;
  letter-spacing: 0.14em;
}


@media (max-width: 767px) {
  .ap-carousel-shell {
    overflow: hidden;
  }

  .ap-carousel-track {
    width: 100%;
    animation: none !important;
    will-change: transform;
  }

  .ap-fragment-card {
    width: var(--ap-card-width-mobile, 320px);
    flex: 0 0 100%;
  }

  .ap-fragment-button {
    width: 100%;
  }
}


.ap-carousel-shell {
  position: relative;
  isolation: isolate;
  z-index: 1;
}

.ap-lightbox {
  position: absolute;
  inset: 0;
  z-index: 50;
  animation: apLightboxFadeIn 0.24s ease;
}

.ap-lightbox.ap-lightbox--closing {
  animation: apLightboxFadeOut 0.22s ease forwards;
}

.ap-lightbox-backdrop {
  border-radius: 24px;
}

.ap-lightbox-panel {
  width: min(calc(100% - 40px), 1180px);
  max-height: calc(100% - 40px);
  margin: 20px auto;
  animation: apLightboxPanelIn 0.26s ease;
}

.ap-lightbox.ap-lightbox--closing .ap-lightbox-panel {
  animation: apLightboxPanelOut 0.22s ease forwards;
}

.ap-lightbox-close {
  top: 14px;
  right: 14px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(180, 214, 255, 0.20);
  border-radius: 14px;
  background:
    radial-gradient(circle at top right, rgba(123, 183, 255, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(14, 18, 24, 0.96), rgba(9, 12, 16, 0.96));
  color: #b7d9ff;
  font-size: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(0,0,0,0.28), inset 0 0 0 1px rgba(255,255,255,0.03);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  z-index: 3;
}

.ap-lightbox-close::before,
.ap-lightbox-close::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 1.5px;
  border-radius: 999px;
  background: #b7d9ff;
  box-shadow: 0 0 10px rgba(183,217,255,0.18);
}

.ap-lightbox-close::before {
  transform: rotate(45deg);
}

.ap-lightbox-close::after {
  transform: rotate(-45deg);
}

.ap-lightbox-close:hover {
  transform: translateY(-1px) scale(1.02);
  border-color: rgba(180,214,255,0.34);
  box-shadow: 0 16px 34px rgba(0,0,0,0.34), 0 0 16px rgba(123,183,255,0.10), inset 0 0 0 1px rgba(255,255,255,0.04);
}

.ap-lightbox-close:focus-visible {
  outline: none;
  border-color: rgba(183,217,255,0.42);
  box-shadow: 0 0 0 3px rgba(183,217,255,0.08), 0 16px 34px rgba(0,0,0,0.34);
}

@keyframes apLightboxFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes apLightboxFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes apLightboxPanelIn {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes apLightboxPanelOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(6px) scale(0.988); }
}

@media (max-width: 767px) {
  .ap-lightbox {
    inset: 0;
  }

  .ap-lightbox-backdrop {
    border-radius: 18px;
  }

  .ap-lightbox-panel {
    width: calc(100% - 20px);
    max-height: calc(100% - 20px);
    margin: 10px auto;
  }

  .ap-lightbox-close {
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
}


.ap-lightbox-panel {
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(180,214,255,0.28) rgba(255,255,255,0.04);
}

.ap-lightbox-panel::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.ap-lightbox-panel::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
}

.ap-lightbox-panel::-webkit-scrollbar-thumb {
  background: rgba(180,214,255,0.26);
  border-radius: 999px;
  border: 2px solid rgba(9,12,16,0.92);
}

.ap-lightbox-panel img {
  cursor: zoom-in;
  transition: transform 0.26s ease, cursor 0.18s ease;
  transform-origin: center top;
}

.ap-lightbox-panel.ap-zoomed {
  overflow: auto;
}

.ap-lightbox-panel.ap-zoomed img {
  max-width: none;
  max-height: none;
  width: min(1600px, 160%);
  cursor: zoom-out;
}

.ap-lightbox-hint {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 3;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(180, 214, 255, 0.14);
  background: rgba(9,11,14,0.78);
  color: #95a3b5;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
  pointer-events: none;
}

.ap-lightbox.ap-lightbox--closing .ap-lightbox-hint {
  opacity: 0;
}

@media (max-width: 767px) {
  .ap-lightbox-panel.ap-zoomed img {
    width: 185%;
  }

  .ap-lightbox-hint {
    top: 10px;
    left: 10px;
    font-size: 9px;
    padding: 7px 9px;
  }
}


.ap-carousel-shell.ap-hover-drag-enabled {
  cursor: grab;
}

.ap-carousel-shell.ap-hover-drag-enabled.ap-dragging {
  cursor: grabbing;
  user-select: none;
}

.ap-carousel-shell.ap-hover-drag-enabled .ap-carousel-track {
  touch-action: pan-y;
}

.ap-carousel-shell.ap-hover-drag-enabled.ap-dragging .ap-fragment-button {
  pointer-events: none;
}


/* Allow fragment viewer to extend beyond carousel and let the page scroll normally */
.ap-carousel-shell {
  overflow: visible;
}

.ap-lightbox {
  overflow: visible;
}

.ap-lightbox-panel {
  max-height: none;
  overflow: visible;
}

.ap-lightbox-panel img {
  max-height: min(86vh, none);
}

@media (max-width: 767px) {
  .ap-lightbox-panel {
    max-height: none;
  }

  .ap-lightbox-panel img {
    max-height: none;
    max-width: 100%;
    height: auto;
  }
}


/* Fragment viewer scrolling fix */
.ap-lightbox {
  position: absolute;
  inset: 0;
  overflow: visible;
}

.ap-lightbox-panel {
  position: relative;
  max-height: min(86vh, 1100px);
  overflow: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.ap-lightbox-panel img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: none !important;
  margin: 0 auto;
}

.ap-lightbox-panel.ap-zoomed {
  overflow: auto !important;
}

.ap-lightbox-panel.ap-zoomed img {
  max-width: none;
  width: min(1600px, 160%);
  height: auto;
  max-height: none !important;
}

@media (max-width: 767px) {
  .ap-lightbox-panel {
    max-height: 88vh;
    overflow: auto !important;
  }

  .ap-lightbox-panel.ap-zoomed img {
    width: 185%;
  }
}


/* Initial fragment view should fit full fragment within the viewer before manual magnify */
.ap-lightbox-panel {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.ap-lightbox-panel img {
  width: auto;
  max-width: 100%;
  max-height: calc(86vh - 28px) !important;
  height: auto;
  object-fit: contain;
}

.ap-lightbox-panel.ap-zoomed img {
  max-width: none;
  max-height: none !important;
  width: min(1600px, 160%);
  height: auto;
  object-fit: unset;
}

@media (max-width: 767px) {
  .ap-lightbox-panel img {
    max-height: calc(88vh - 20px) !important;
  }

  .ap-lightbox-panel.ap-zoomed img {
    width: 185%;
  }
}


/* Keep fragment motion visually contained inside the system carousel */
.ap-carousel-shell {
  overflow: visible;
}

.ap-carousel-viewport {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-radius: 18px;
  padding: 2px 0;
}

.ap-carousel-track {
  position: relative;
  z-index: 2;
}

.ap-edge-fade-left,
.ap-edge-fade-right {
  z-index: 4;
}

@media (max-width: 767px) {
  .ap-carousel-viewport {
    border-radius: 14px;
  }
}


/* Extra internal breathing room so hover-scale never clips the fragment top edge */
.ap-carousel-viewport {
  padding-top: 10px;
  padding-bottom: 10px;
}

.ap-fragment-button {
  overflow: visible;
}

.ap-fragment-button img {
  transform-origin: center center;
}

@media (max-width: 767px) {
  .ap-carousel-viewport {
    padding-top: 6px;
    padding-bottom: 6px;
  }
}


/* Fix inner fragment panel corners so gradient/glow layers follow the same radius */
.ap-fragment-card,
.ap-fragment-button,
.ap-fragment-button img,
.ap-fragment-overlay {
  border-radius: 18px;
}

.ap-fragment-card {
  overflow: hidden;
}

.ap-fragment-button {
  border-radius: 18px;
  overflow: hidden;
  background: transparent;
}

.ap-fragment-button img {
  border-radius: 14px;
}

.ap-fragment-card::before,
.ap-fragment-card::after {
  border-radius: inherit;
}

.ap-fragment-overlay {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

@media (max-width: 767px) {
  .ap-fragment-card,
  .ap-fragment-button,
  .ap-fragment-overlay {
    border-radius: 16px;
  }

  .ap-fragment-button img {
    border-radius: 12px;
  }
}


/* Ensure actual fragment images match container radius perfectly */
.ap-fragment-button img {
  border-radius: 16px !important;
  display: block;
}

.ap-fragment-card {
  border-radius: 18px;
  overflow: hidden;
}

.ap-fragment-button {
  border-radius: 18px;
  overflow: hidden;
}

@media (max-width: 767px) {
  .ap-fragment-button img {
    border-radius: 14px !important;
  }
}


/* Book hero */
.ap-book-hero {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(180, 214, 255, 0.28);
  background: linear-gradient(180deg, rgba(14, 18, 24, 0.92), rgba(9, 12, 16, 0.92));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
}

.ap-book-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top right, rgba(123, 183, 255, 0.12), transparent 28%);
}

.ap-book-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: center;
}

.ap-book-hero__terminal {
  display: grid;
  gap: 8px;
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 12px;
  line-height: 1.55;
  color: #b7d9ff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 18px;
  margin-bottom: 24px;
  background: rgba(5, 8, 11, 0.78);
  border: 1px solid rgba(180, 214, 255, 0.14);
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.ap-book-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.ap-book-hero__chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(180, 214, 255, 0.14);
  background: rgba(255,255,255,0.03);
  color: #bcc8d6;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ap-book-hero__title {
  margin: 0;
  color: #e8edf3;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ap-book-hero__subtitle {
  margin: 16px 0 0;
  max-width: 760px;
  color: #95a3b5;
  font-size: 17px;
  line-height: 1.8;
}

.ap-book-hero__actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.ap-book-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid rgba(180, 214, 255, 0.28);
  background: linear-gradient(180deg, rgba(183,217,255,0.09), rgba(183,217,255,0.04));
  color: #b7d9ff;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), 0 10px 26px rgba(0,0,0,0.22);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.ap-book-hero__button:hover {
  transform: translateY(-1px);
  border-color: rgba(183,217,255,0.45);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 14px 34px rgba(0,0,0,0.28), 0 0 18px rgba(123,183,255,0.1);
}

.ap-book-hero__button--amazon {
  border-color: rgba(255, 190, 95, 0.38) !important;
  background: linear-gradient(180deg, rgba(255, 176, 62, 0.18), rgba(255, 153, 0, 0.08)) !important;
  color: #ffd89a !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 10px 26px rgba(0,0,0,0.24), 0 0 18px rgba(255,153,0,0.08);
}

.ap-book-hero__button--amazon:hover {
  border-color: rgba(255, 190, 95, 0.62) !important;
  color: #fff2d6 !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 14px 34px rgba(0,0,0,0.30), 0 0 24px rgba(255,153,0,0.16) !important;
}


.ap-book-hero__visual {
  display: flex;
  justify-content: center;
}

.ap-book-hero__image-shell {
  position: relative;
  width: min(100%, 420px);
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(180, 214, 255, 0.14);
  background: linear-gradient(180deg, rgba(11,14,18,0.88), rgba(8,10,13,0.92));
  box-shadow: 0 16px 48px rgba(0,0,0,0.28);
}

.ap-book-hero__image-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 100%);
  opacity: 0.16;
}

.ap-book-hero__image-shell img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .ap-book-hero__inner {
    grid-template-columns: 1fr;
  }

  .ap-book-hero__visual {
    order: -1;
  }
}

@media (max-width: 700px) {
  .ap-book-hero {
    padding: 18px 16px 16px;
    border-radius: 18px;
  }

  .ap-book-hero__terminal {
    padding: 14px;
    font-size: 11px;
  }

  .ap-book-hero__title {
    font-size: 32px;
  }

  .ap-book-hero__subtitle {
    font-size: 15px;
  }

  .ap-book-hero__image-shell {
    padding: 12px;
    border-radius: 18px;
  }

  .ap-book-hero__image-shell img {
    border-radius: 14px;
  }
}


/* WooCommerce checkout styling */
body.ap-checkout-theme.woocommerce-checkout {
  background:
    radial-gradient(circle at top center, rgba(110, 165, 255, 0.08), transparent 26%),
    linear-gradient(180deg, #06080b 0%, #050607 100%);
}

.ap-checkout-theme .woocommerce {
  color: #e8edf3;
}

.ap-checkout-theme .woocommerce-checkout,
.ap-checkout-theme .woocommerce-cart,
.ap-checkout-theme .woocommerce-account {
  color: #e8edf3;
}

.ap-checkout-theme .woocommerce form.checkout,
.ap-checkout-theme .woocommerce .col2-set,
.ap-checkout-theme #order_review,
.ap-checkout-theme .woocommerce-checkout-review-order-table,
.ap-checkout-theme .woocommerce form .form-row input.input-text,
.ap-checkout-theme .woocommerce form .form-row textarea,
.ap-checkout-theme .select2-container--default .select2-selection--single,
.ap-checkout-theme .select2-dropdown {
  color: #e8edf3;
}

.ap-checkout-theme .woocommerce-checkout #customer_details,
.ap-checkout-theme .woocommerce-checkout #order_review_heading,
.ap-checkout-theme .woocommerce-checkout #order_review,
.ap-checkout-theme .woocommerce-billing-fields,
.ap-checkout-theme .woocommerce-additional-fields,
.ap-checkout-theme .woocommerce form.login,
.ap-checkout-theme .woocommerce form.checkout_coupon {
  position: relative;
  border: 1px solid rgba(180, 214, 255, 0.14);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(14, 18, 24, 0.92), rgba(9, 12, 16, 0.92));
  box-shadow: 0 24px 80px rgba(0,0,0,0.30);
  padding: 24px;
}

.ap-checkout-theme .woocommerce-checkout #order_review_heading {
  margin-top: 24px;
  margin-bottom: 0;
  padding-bottom: 16px;
}

.ap-checkout-theme .woocommerce-checkout #customer_details {
  margin-bottom: 24px;
}

.ap-checkout-theme .woocommerce-checkout #customer_details .col-1,
.ap-checkout-theme .woocommerce-checkout #customer_details .col-2 {
  width: 100%;
  float: none;
  margin-bottom: 24px;
}

.ap-checkout-theme .woocommerce h3,
.ap-checkout-theme .woocommerce h2,
.ap-checkout-theme .woocommerce-checkout #order_review_heading {
  color: #e8edf3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ap-checkout-theme .woocommerce form .form-row label {
  color: #bcc8d6;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ap-checkout-theme .woocommerce form .form-row input.input-text,
.ap-checkout-theme .woocommerce form .form-row textarea,
.ap-checkout-theme .select2-container--default .select2-selection--single {
  min-height: 48px;
  border-radius: 14px !important;
  border: 1px solid rgba(180, 214, 255, 0.14) !important;
  background: rgba(5, 8, 11, 0.78) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
  color: #e8edf3 !important;
  padding: 12px 14px !important;
}

.ap-checkout-theme .woocommerce form .form-row textarea {
  min-height: 120px;
}

.ap-checkout-theme .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #e8edf3 !important;
  line-height: 24px !important;
  padding-left: 0 !important;
}

.ap-checkout-theme .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 46px !important;
}

.ap-checkout-theme .woocommerce table.shop_table {
  border: 1px solid rgba(180, 214, 255, 0.14);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(5, 8, 11, 0.40);
}

.ap-checkout-theme .woocommerce table.shop_table th,
.ap-checkout-theme .woocommerce table.shop_table td {
  border-color: rgba(180, 214, 255, 0.08);
  color: #bcc8d6;
}

.ap-checkout-theme .woocommerce table.shop_table th {
  color: #e8edf3;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
}

.ap-checkout-theme .woocommerce-checkout-payment {
  background: transparent !important;
  border-radius: 0 !important;
}

.ap-checkout-theme #payment ul.payment_methods {
  border-bottom: 1px solid rgba(180, 214, 255, 0.08);
}

.ap-checkout-theme #payment div.payment_box {
  background: rgba(5, 8, 11, 0.60) !important;
  color: #bcc8d6 !important;
  border-radius: 14px;
}

.ap-checkout-theme #payment div.payment_box::before {
  border-bottom-color: rgba(5, 8, 11, 0.60) !important;
}

.ap-checkout-theme .woocommerce #payment #place_order,
.ap-checkout-theme .woocommerce-page #payment #place_order,
.ap-checkout-theme .woocommerce a.button,
.ap-checkout-theme .woocommerce button.button,
.ap-checkout-theme .woocommerce input.button,
.ap-checkout-theme .woocommerce #respond input#submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 12px !important;
  border: 1px solid rgba(180, 214, 255, 0.28) !important;
  background: linear-gradient(180deg, rgba(183,217,255,0.09), rgba(183,217,255,0.04)) !important;
  color: #b7d9ff !important;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), 0 10px 26px rgba(0,0,0,0.22);
}

.ap-checkout-theme .woocommerce #payment #place_order:hover,
.ap-checkout-theme .woocommerce-page #payment #place_order:hover,
.ap-checkout-theme .woocommerce a.button:hover,
.ap-checkout-theme .woocommerce button.button:hover,
.ap-checkout-theme .woocommerce input.button:hover,
.ap-checkout-theme .woocommerce #respond input#submit:hover {
  transform: translateY(-1px);
  border-color: rgba(183,217,255,0.45) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 14px 34px rgba(0,0,0,0.28), 0 0 18px rgba(123,183,255,0.1);
}

.ap-checkout-theme .woocommerce-info,
.ap-checkout-theme .woocommerce-message,
.ap-checkout-theme .woocommerce-error {
  border-radius: 14px;
  border-top: none;
  border-left: 2px solid #b7d9ff;
  background: rgba(183,217,255,0.05);
  color: #bcc8d6;
}

.ap-checkout-theme .woocommerce-checkout .checkout_coupon input.input-text {
  width: 100%;
}

@media (max-width: 768px) {
  .ap-checkout-theme .woocommerce-checkout #customer_details,
  .ap-checkout-theme .woocommerce-checkout #order_review_heading,
  .ap-checkout-theme .woocommerce-checkout #order_review,
  .ap-checkout-theme .woocommerce-billing-fields,
  .ap-checkout-theme .woocommerce-additional-fields {
    padding: 18px;
    border-radius: 18px;
  }
}


/* Hero cover image improvements */
.ap-book-hero__image-shell {
  display: block;
  width: min(100%, 420px);
  max-width: 420px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(180, 214, 255, 0.14);
  background: linear-gradient(180deg, rgba(11,14,18,0.88), rgba(8,10,13,0.92));
  box-shadow: 0 16px 48px rgba(0,0,0,0.28);
  aspect-ratio: auto;
}

.ap-book-hero__image-button {
  cursor: pointer;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.ap-book-hero__image-button:hover {
  transform: translateY(-2px);
  border-color: rgba(183,217,255,0.28);
  box-shadow: 0 22px 56px rgba(0,0,0,0.34), 0 0 22px rgba(123,183,255,0.08);
}

.ap-book-hero__image-shell img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  position: relative;
  z-index: 1;
  transition: transform .38s ease, filter .38s ease;
}

.ap-book-hero__image-button:hover img {
  transform: scale(1.02);
  filter: brightness(1.03) contrast(1.02);
}

.ap-book-hero__image-shell::before {
  border-radius: inherit;
}

.ap-book-hero__image-button {
  overflow: hidden;
}

.ap-hero-lightbox {
  position: absolute;
  inset: 0;
  z-index: 50;
  animation: apHeroLightboxFadeIn .24s ease;
}

.ap-hero-lightbox.ap-hero-lightbox--closing {
  animation: apHeroLightboxFadeOut .22s ease forwards;
}

.ap-hero-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: rgba(4, 6, 8, 0.92);
  backdrop-filter: blur(16px);
}

.ap-hero-lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), 1180px);
  max-height: min(86vh, 1100px);
  margin: 20px auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(180, 214, 255, 0.28);
  background: linear-gradient(180deg, rgba(14, 18, 24, 0.95), rgba(9, 12, 16, 0.95));
  box-shadow: 0 24px 80px rgba(0,0,0,0.45);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.ap-hero-lightbox__panel img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(86vh - 28px);
  height: auto;
  border-radius: 14px;
  cursor: zoom-in;
  transition: transform .26s ease, cursor .18s ease;
  transform-origin: center top;
}

.ap-hero-lightbox__panel.ap-zoomed img {
  max-width: none;
  max-height: none;
  width: min(1600px, 160%);
  cursor: zoom-out;
}

.ap-hero-lightbox__hint {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 3;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(180, 214, 255, 0.14);
  background: rgba(9,11,14,0.78);
  color: #95a3b5;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
  pointer-events: none;
}

.ap-hero-lightbox__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(180, 214, 255, 0.20);
  border-radius: 14px;
  background:
    radial-gradient(circle at top right, rgba(123, 183, 255, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(14, 18, 24, 0.96), rgba(9, 12, 16, 0.96));
  box-shadow: 0 12px 28px rgba(0,0,0,0.28), inset 0 0 0 1px rgba(255,255,255,0.03);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  z-index: 3;
  cursor: pointer;
}

.ap-hero-lightbox__close::before,
.ap-hero-lightbox__close::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 1.5px;
  border-radius: 999px;
  background: #b7d9ff;
  box-shadow: 0 0 10px rgba(183,217,255,0.18);
  left: 50%;
  top: 50%;
  transform-origin: center;
}

.ap-hero-lightbox__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.ap-hero-lightbox__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.ap-hero-lightbox__close:hover {
  transform: translateY(-1px) scale(1.02);
  border-color: rgba(180,214,255,0.34);
  box-shadow: 0 16px 34px rgba(0,0,0,0.34), 0 0 16px rgba(123,183,255,0.10), inset 0 0 0 1px rgba(255,255,255,0.04);
}

@keyframes apHeroLightboxFadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes apHeroLightboxFadeOut { from { opacity:1; } to { opacity:0; } }

@media (max-width: 700px) {
  .ap-book-hero__image-shell {
    padding: 12px;
    border-radius: 18px;
  }

  .ap-book-hero__image-shell img {
    border-radius: 14px;
  }

  .ap-hero-lightbox__backdrop {
    border-radius: 18px;
  }

  .ap-hero-lightbox__panel {
    width: calc(100% - 20px);
    max-height: 88vh;
    margin: 10px auto;
  }

  .ap-hero-lightbox__panel img {
    max-height: calc(88vh - 20px);
  }

  .ap-hero-lightbox__panel.ap-zoomed img {
    width: 185%;
  }

  .ap-hero-lightbox__close {
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .ap-hero-lightbox__hint {
    top: 10px;
    left: 10px;
    font-size: 9px;
    padding: 7px 9px;
  }
}


/* Hero cover should remain portrait and show full image cleanly */
.ap-book-hero__visual {
  align-self: stretch;
}

.ap-book-hero__image-shell {
  width: min(100%, 420px);
  aspect-ratio: 2 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ap-book-hero__image-shell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(5, 8, 11, 0.35);
}

/* Hero lightbox should open on page viewport, not be trapped in hero container */
.ap-hero-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
}

.ap-hero-lightbox__backdrop {
  position: fixed;
  inset: 0;
  border-radius: 0;
}

.ap-hero-lightbox__panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(calc(100vw - 40px), 1180px);
  max-width: 1180px;
  max-height: min(88vh, 1100px);
  margin: 0;
}

.ap-hero-lightbox__panel img {
  max-height: calc(88vh - 28px);
}

@media (max-width: 700px) {
  .ap-book-hero__image-shell {
    width: min(100%, 360px);
    aspect-ratio: 2 / 3;
  }

  .ap-hero-lightbox__panel {
    width: calc(100vw - 20px);
    max-height: 88vh;
  }

  .ap-hero-lightbox__panel img {
    max-height: calc(88vh - 20px);
  }
}


/* Hero visual alignment and true portrait image rendering */
.ap-book-hero__inner {
  align-items: start;
}

.ap-book-hero__visual {
  align-self: start;
  justify-content: flex-end;
}

.ap-book-hero__image-shell,
.ap-book-hero__image-button {
  width: min(100%, 420px);
  max-width: 420px;
  aspect-ratio: 2 / 3 !important;
  min-height: 0;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.ap-book-hero__image-shell img,
.ap-book-hero__image-button img {
  width: 100%;
  height: 100%;
  aspect-ratio: 2 / 3 !important;
  object-fit: contain !important;
  object-position: center top;
  display: block;
  background: rgba(5, 8, 11, 0.35);
}

@media (max-width: 900px) {
  .ap-book-hero__visual {
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .ap-book-hero__image-shell,
  .ap-book-hero__image-button {
    width: min(100%, 360px);
    max-width: 360px;
    aspect-ratio: 2 / 3 !important;
    padding: 12px;
  }

  .ap-book-hero__image-shell img,
  .ap-book-hero__image-button img {
    aspect-ratio: 2 / 3 !important;
  }
}


/* Final hero cover fit fix */
.ap-book-hero__image-shell,
.ap-book-hero__image-button {
  width: min(100%, 420px) !important;
  max-width: 420px !important;
  aspect-ratio: 2 / 3 !important;
  align-self: start;
  overflow: hidden;
}

.ap-book-hero__image-shell img,
.ap-book-hero__image-button img {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center top !important;
  border-radius: 18px !important;
  display: block;
}

@media (max-width: 700px) {
  .ap-book-hero__image-shell,
  .ap-book-hero__image-button {
    width: min(100%, 360px) !important;
    max-width: 360px !important;
  }

  .ap-book-hero__image-shell img,
  .ap-book-hero__image-button img {
    border-radius: 14px !important;
  }
}


/* Hero cover spacing + gentler magnify */
.ap-book-hero__image-shell,
.ap-book-hero__image-button {
  padding: 18px !important;
}

.ap-hero-lightbox__panel.ap-zoomed img {
  width: min(1300px, 125%) !important;
  max-width: none;
  max-height: none;
  object-position: center top !important;
}

@media (max-width: 700px) {
  .ap-book-hero__image-shell,
  .ap-book-hero__image-button {
    padding: 12px !important;
  }

  .ap-hero-lightbox__panel.ap-zoomed img {
    width: 145% !important;
  }
}


/* Hero subtitle HTML formatting */
.ap-book-hero__subtitle p {
  margin: 0 0 14px;
  line-height: 1.75;
}

.ap-book-hero__subtitle p:last-child {
  margin-bottom: 0;
}

.ap-book-hero__subtitle br + br {
  display: block;
  content: "";
  margin-top: 8px;
}


/* Seed phrase interaction notices */
.ap-seed-inline-notice,
.ap-seed-message {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border-left: 2px solid #b7d9ff;
  border: 1px solid rgba(180,214,255,0.14);
  border-left-width: 2px;
  background: rgba(183,217,255,0.05);
  color: #bcc8d6;
  line-height: 1.7;
}

.ap-seed-inline-notice.is-visible {
  display: block;
}

.ap-seed-input.ap-seed-input--error {
  border-color: rgba(255,120,120,0.55) !important;
  box-shadow: 0 0 0 3px rgba(255,120,120,0.08);
}


/* Mobile carousel: one fragment at a time, cleaner motion */
@media (max-width: 767px) {
  .ap-carousel-viewport {
    overflow: hidden !important;
  }

  .ap-carousel-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: var(--ap-gap, 16px);
    width: 100% !important;
    animation: none !important;
    transform: translateX(0);
    will-change: transform;
  }

  .ap-fragment-card {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}


@media (max-width: 767px) {
  .ap-carousel-viewport {
    overflow: hidden !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .ap-carousel-track {
    gap: 0 !important;
  }

  .ap-fragment-card {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
}


@media (max-width: 767px) {
  .ap-carousel-viewport {
    touch-action: pan-y;
  }

  .ap-carousel-track {
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
  }
}


/* Smoother mobile carousel + gentler lightbox magnify */
@media (max-width: 767px) {
  .ap-carousel-track {
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important;
  }

  .ap-lightbox-panel.ap-zoomed img {
    width: 130% !important;
  }

  .ap-hero-lightbox__panel.ap-zoomed img {
    width: 125% !important;
  }
}


/* True zoom-and-pan inside lightboxes: image expands beyond panel so full image can be scrolled */
.ap-lightbox-panel,
.ap-hero-lightbox__panel {
  overflow: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  align-items: flex-start !important;
  justify-content: flex-start !important;
}

.ap-lightbox-panel img,
.ap-hero-lightbox__panel img {
  flex: 0 0 auto;
  display: block;
  margin: 0 auto;
}

.ap-lightbox-panel.ap-zoomed img {
  width: auto !important;
  max-width: none !important;
  max-height: none !important;
  height: auto !important;
  min-width: 140% !important;
}

.ap-hero-lightbox__panel.ap-zoomed img {
  width: auto !important;
  max-width: none !important;
  max-height: none !important;
  height: auto !important;
  min-width: 140% !important;
}

@media (max-width: 767px) {
  .ap-lightbox-panel.ap-zoomed img,
  .ap-hero-lightbox__panel.ap-zoomed img {
    min-width: 160% !important;
  }
}

.ap-home-excerpt {
  max-width: 720px;
  margin: 60px auto 40px;
  padding: 0 20px;
  color: #bfc7d5;
  text-align: center;
}
.ap-home-excerpt p {
  margin: 0 0 18px;
  line-height: 1.7;
  font-size: 15px;
}


/* Cleaner desktop hold-and-drag behavior */
.ap-carousel-shell.ap-hover-drag-enabled {
  cursor: grab;
}

.ap-carousel-shell.ap-hover-drag-enabled.ap-dragging {
  cursor: grabbing;
}

.ap-carousel-shell.ap-hover-drag-enabled .ap-fragment-button {
  pointer-events: auto;
}

.ap-carousel-shell.ap-hover-drag-enabled.ap-dragging .ap-fragment-button {
  pointer-events: none;
}

.ap-carousel-shell.ap-hover-drag-enabled .ap-carousel-track {
  user-select: none;
  -webkit-user-select: none;
}

/* Drag to pan inside zoomed lightbox images */
.ap-lightbox-panel.ap-zoomed img,
.ap-hero-lightbox__panel.ap-zoomed img {
  cursor: grab !important;
}

.ap-lightbox-panel.ap-zoomed.ap-pan-active img,
.ap-hero-lightbox__panel.ap-zoomed.ap-pan-active img {
  cursor: grabbing !important;
}

/* Prevent native image dragging inside carousel so fragment drags the carousel */
.ap-fragment-button,
.ap-fragment-button img {
  -webkit-user-drag: none;
  user-select: none;
}

.ap-fragment-button img {
  pointer-events: none;
}

.ap-fragment-button img {
  pointer-events: none !important;
}



/* Reduce only fragment lightbox magnification */
.ap-lightbox-panel.ap-zoomed img {
  width: auto !important;
  min-width: 118% !important;
  max-width: none !important;
}

@media (max-width: 767px) {
  .ap-lightbox-panel.ap-zoomed img {
    min-width: 132% !important;
  }
}
