:root{
  --primary:#2E2C55;
  --gradFrom:#A32A4E;
  --gradVia:#6A4990;
  --gradTo:#3196BF;

  --font-head: "Helvetica Neue", Helvetica, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Open Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

h1,h2,h3,h4,nav,button,.ui-label { font-family: var(--font-head); }
body,p,li,td,.longform          { font-family: var(--font-body); }

@keyframes psBgShift{
  0%   { background-position: 0% 30%, 100% 70%, 0% 0%; }
  50%  { background-position: 100% 30%, 0% 70%, 100% 100%; }
  100% { background-position: 0% 30%, 100% 70%, 0% 0%; }
}

/* =========================
   ROUTE WRAP
========================= */
.ps-ebookRoute{ padding: 18px 0 28px; }
.ps-ebookRoute__inner{
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* kill horizontal scroll from theme */
.ps-ebookRoute,
.ps-ebookRoute .ps-pdfShell{
  max-width: 100%;
  overflow-x: clip;
}

/* Back button */
.ps-ebookRoute__back{
  text-decoration:none;
  font-weight:900;
  color:#fff;
  padding:4px 14px;
  border-radius:999px;
  background: linear-gradient(90deg, var(--gradFrom), var(--gradVia), var(--gradTo));
  box-shadow: 0 14px 30px rgba(106,73,144,.22);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
  font-size:14px;
}
.ps-ebookRoute__back:hover{
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 18px 38px rgba(106,73,144,.28);
}

/* =========================
   SHELL
========================= */
.ps-ebookRoute .ps-pdfShell{
  width: 100% !important;
  border-radius: 22px;
  padding: 14px;
  background:
    radial-gradient(900px 500px at 50% 15%, rgba(106,73,144,.16), transparent 60%),
    radial-gradient(900px 500px at 20% 70%, rgba(49,150,191,.14), transparent 55%),
    linear-gradient(135deg, rgba(15,15,25,.02), rgba(15,15,25,.01));
  background-size: 140% 140%, 140% 140%, 200% 200%;
  animation: psBgShift 12s ease-in-out infinite;
  box-shadow: 0 18px 70px rgba(0,0,0,.12);
  border: 1px solid rgba(0,0,0,.06);
}

/* SUPER IMPORTANT: avoid theme GPU transforms around canvas */
.ps-ebookRoute .ps-pdfShell,
.ps-ebookRoute .ps-pdfOne,
.ps-ebookRoute .ps-pdfOne__page,
.ps-ebookRoute #psPdfStage,
.ps-ebookRoute #psCanvas,
.ps-ebookRoute #psFlipLayer{
  filter:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  transform:none !important;
  perspective:none !important;
  rotate:0deg !important;
}

/* hide killed loading nodes */
.ps-ebookRoute [data-ps-killed-loading="1"]{ display:none !important; }

/* =========================
   TOOLBAR
========================= */
.ps-ebookRoute .ps-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;

  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 12px 30px rgba(0,0,0,.10);
  margin-bottom: 12px;
}

.ps-ebookRoute .ps-toolbar__left,
.ps-ebookRoute .ps-toolbar__center,
.ps-ebookRoute .ps-toolbar__right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.ps-ebookRoute .ps-toolbar__left{ flex: 0 0 auto; }
.ps-ebookRoute .ps-toolbar__center{
  flex: 1 1 420px;
  justify-content: center;
  min-width: 0;
}
.ps-ebookRoute .ps-toolbar__right{
  flex: 0 0 auto;
  justify-content: flex-end;
}

.ps-ebookRoute .ps-toolbar__meta,
.ps-ebookRoute .ps-toolbar__badge{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  color: rgba(46,44,85,.85);
  background: rgba(46,44,85,.06);
  font-weight: 900;
  font-size: 14px;
}

.ps-ebookRoute .ps-tbtn{
  appearance:none;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.92);
  border-radius: 12px;
  height: 32px;
  padding: 0 12px;
  font-weight: 900;
  cursor:pointer;
  color: var(--primary);
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.ps-ebookRoute .ps-tbtn:hover{ transform: translateY(-1px); filter: brightness(1.02); box-shadow: 0 14px 28px rgba(0,0,0,.12); }
.ps-ebookRoute .ps-tbtn:active{ transform: translateY(0); }

.ps-ebookRoute .ps-tbtn--ghost{ background: rgba(255,255,255,.6); }
.ps-ebookRoute .ps-tbtn--primary{
  border: 0;
  color: #fff;
  background: linear-gradient(90deg, var(--gradFrom), var(--gradVia), var(--gradTo));
  box-shadow: 0 14px 30px rgba(106,73,144,.22);
}

.ps-ebookRoute .ps-zoomVal{
  min-width: 76px;
  text-align:center;
  font-weight: 900;
  color: rgba(46,44,85,.85);
  font-size: 14px;
}

.ps-ebookRoute .ps-jump{ display:flex; align-items:center; gap:8px; }
.ps-ebookRoute .ps-jump__lbl{ font-weight: 900; color: rgba(46,44,85,.75); font-size: 14px; }
.ps-ebookRoute .ps-jump__in{
  width: 86px;
  height: 32px;
  border-radius: 12px;
  padding: 0 12px;
  font-weight: 900;
  color: var(--primary);
  outline:none;
  background: linear-gradient(180deg,#fff,#f3f4f8);
  border: 1px solid rgba(0,0,0,.18);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.08),
              0 8px 18px rgba(0,0,0,.08);
  font-size: 14px;
}

/* =========================
   LAYOUT
========================= */
.ps-ebookRoute .ps-layout{
  display:grid;
  grid-template-columns: 260px 1fr;
  gap: 14px;
  align-items:start;
}

.ps-ebookRoute .ps-view,
.ps-ebookRoute .ps-pdfOne,
.ps-ebookRoute .ps-pdfOne__page,
.ps-ebookRoute #psPdfStage{
  min-width: 0 !important;
}

/* sidebar thumbs */
.ps-ebookRoute .ps-thumbs{
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 14px 40px rgba(0,0,0,.10);
  overflow:hidden;
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 140px);
}
.ps-ebookRoute .ps-thumbs__head{
  padding: 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-weight: 900;
  color: rgba(46,44,85,.86);
  background: rgba(46,44,85,.05);
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-size: 16px;
}
.ps-ebookRoute .ps-thumbs__list{
  max-height: calc(100vh - 220px);
  overflow:auto;
  padding: 10px;
  display:grid;
  gap: 10px;
}
.ps-ebookRoute .ps-thumb{
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 12px 26px rgba(0,0,0,.08);
  overflow:hidden;
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.ps-ebookRoute .ps-thumb:hover{ transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0,0,0,.12); filter: brightness(1.01); }
.ps-ebookRoute .ps-thumb.is-active{ border-color: rgba(106,73,144,.42); box-shadow: 0 18px 44px rgba(106,73,144,.16); }
.ps-ebookRoute .ps-thumb__canvasWrap{ padding: 10px; background: linear-gradient(180deg, #fbfbfd, #f4f5f9); }
.ps-ebookRoute .ps-thumb__canvas{ width:100%; height:auto; display:block; border-radius: 10px; background:#fff; }
.ps-ebookRoute .ps-thumb__meta{ padding: 8px 10px 10px; display:flex; align-items:center; justify-content:space-between; gap: 10px; }
.ps-ebookRoute .ps-thumb__label{ font-weight: 900; color: rgba(46,44,85,.86); font-size: 13px; }
.ps-ebookRoute .ps-thumb__lock{
  font-size: 12px;
  font-weight: 900;
  color: rgba(0,0,0,.55);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.05);
}

/* =========================
   VIEWER
========================= */
.ps-ebookRoute .ps-pdfOne{
  position:relative;
  height: min(82vh, 900px);
  border-radius: 18px;
  overflow:hidden;
  background: radial-gradient(1200px 600px at 50% 30%, rgba(106,73,144,.10), transparent 55%),
              linear-gradient(135deg, rgba(163,42,78,.05), rgba(49,150,191,.05));
  box-shadow: 0 16px 50px rgba(0,0,0,.12);
  display:flex;
  align-items:stretch;
}

.ps-ebookRoute .ps-pdfOne__page{
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.ps-ebookRoute #psPdfStage{
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 18px;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

.ps-ebookRoute #psPdfStage.is-pan{
  place-items: start center;
  align-content: start;
  justify-items: center;
  overflow-y: auto;
  overflow-x: hidden;
}

.ps-ebookRoute #psCanvas{
  display:block;
  transform: none !important;
  max-width: none !important;
  max-height: none !important;
  width: auto;
  height: auto;
  background:#fff;
  border-radius: 10px;
  box-shadow: 0 14px 46px rgba(0,0,0,.16);
}

.ps-ebookRoute #psFlipLayer{
  position:absolute !important;
  left:0;
  top:0;
  width: 0;
  height: 0;
  pointer-events:none;
  display:none;
  z-index: 30;
}

/* arrows */
.ps-ebookRoute .ps-nav{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width: 52px;
  height: 72px;
  border:0;
  cursor:pointer;
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
  transition: transform .18s ease, background .18s ease, filter .18s ease, box-shadow .18s ease;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 25;
}
.ps-ebookRoute .ps-nav:hover{
  transform: translateY(-50%) scale(1.04);
  background:#fff;
  filter: brightness(1.02);
  box-shadow: 0 18px 48px rgba(0,0,0,.20);
}
.ps-ebookRoute .ps-nav--prev{ left: 14px; }
.ps-ebookRoute .ps-nav--next{ right: 14px; }
.ps-ebookRoute .ps-nav__icon{ font-size: 34px; line-height: 1; color: var(--primary); font-weight: 900; }
.ps-ebookRoute .ps-nav:disabled{ opacity:.45; cursor:not-allowed; filter: grayscale(1); }

/* bottom */
.ps-ebookRoute .ps-ebookRoute__bottom{
  margin-top: 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
}
.ps-ebookRoute .ps-ebookRoute__pager{ color: rgba(0,0,0,.65); font-weight: 900; }
.ps-ebookRoute .ps-ebookRoute__hint{ margin:0; color: rgba(0,0,0,.65); font-size: 13px; }

/* =========================
   LOADER
========================= */
.ps-ebookRoute .ps-pdfLoader{
  position:absolute;
  inset:0;
  display:none !important;
  align-items:center;
  justify-content:center;
  z-index: 40;
  pointer-events:none;
}
.ps-ebookRoute .ps-pdfLoader.is-on{ display:flex !important; }
.ps-ebookRoute .ps-pdfLoader__pill{
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  font-weight: 900;
  color: rgba(46,44,85,.85);
}

/* =========================
   GATE (Modal)
========================= */
.ps-ebookRoute .ps-ebookGate{ position: fixed; inset:0; z-index: 999999; display:none; }
.ps-ebookRoute .ps-ebookGate.is-open{ display:block; }
.ps-ebookRoute .ps-ebookGate__backdrop{
  position:absolute;
  inset:0;
  background: rgba(10,10,20,0.72);
  backdrop-filter: blur(7px);
}
.ps-ebookRoute .ps-ebookGate__modal{
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%,-50%);
  width: min(520px, calc(100% - 18px));
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0,0,0,.40);
  max-height: min(86vh, 720px);
  overflow: hidden;
  padding: 16px;
  display:flex;
  flex-direction: column;
}
.ps-ebookRoute .ps-ebookGate__title{ margin: 0 0 6px; color: var(--primary); font-size: 18px; font-weight: 900; }
.ps-ebookRoute .ps-ebookGate__sub{ margin: 0 0 12px; color: rgba(0,0,0,.68); font-size: 13px; }

.ps-ebookRoute .ps-ebookGate__form{
  flex:1 1 auto;
  overflow:auto;
  padding-right: 8px;
}
.ps-ebookRoute .ps-ebookGate__form::-webkit-scrollbar{ width: 10px; }
.ps-ebookRoute .ps-ebookGate__form::-webkit-scrollbar-thumb{ background: rgba(0,0,0,.22); border-radius: 999px; }
.ps-ebookRoute .ps-ebookGate__form::-webkit-scrollbar-track{ background: transparent; }

/* CF7 spacing/pro look */
.ps-ebookRoute .ps-ebookGate__form .wpcf7,
.ps-ebookRoute .ps-ebookGate__form .wpcf7 form{
  width: 100% !important;
  max-width: 100% !important;
}
.ps-ebookRoute .ps-ebookGate__form .wpcf7 form p{
  margin: 0 0 10px !important;
  display: grid !important;
  gap: 6px !important;
}
.ps-ebookRoute .ps-ebookGate__form .wpcf7-form-control-wrap{
  display:block !important;
  width:100% !important;
}
.ps-ebookRoute .ps-ebookGate__form input[type="text"],
.ps-ebookRoute .ps-ebookGate__form input[type="email"],
.ps-ebookRoute .ps-ebookGate__form input[type="tel"],
.ps-ebookRoute .ps-ebookGate__form select,
.ps-ebookRoute .ps-ebookGate__form textarea{
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  border: 1px solid rgba(0,0,0,.14) !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  background:#fff !important;
  font-size: 13px !important;
}
.ps-ebookRoute .ps-ebookGate__form .wpcf7-submit{
  width:100% !important;
  border:0 !important;
  border-radius:999px !important;
  padding: 12px 16px !important;
  color:#fff !important;
  font-weight:900 !important;
  cursor:pointer !important;
  background: linear-gradient(90deg, var(--gradFrom), var(--gradVia), var(--gradTo)) !important;
}

/* =========================
   TOOLTIP
========================= */
.ps-ebookRoute .ps-thumbTip{
  position: fixed;
  z-index: 100000;
  width: 240px;
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 26px 70px rgba(0,0,0,.22);
  padding: 10px;
  display:none;
  transform: translateY(6px) scale(.98);
  opacity: 0;
  transition: opacity .12s ease, transform .12s ease;
  pointer-events:none;
}
.ps-ebookRoute .ps-thumbTip.is-open{
  display:block;
  opacity: 1;
  transform: translateY(0) scale(1);
}
.ps-ebookRoute .ps-thumbTip__c{ width:100%; height:auto; display:block; border-radius: 12px; background:#fff; }
.ps-ebookRoute .ps-thumbTip__label{ margin-top: 8px; font-weight: 900; color: rgba(46,44,85,.85); text-align:center; }

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px){
  .ps-ebookRoute .ps-layout{ grid-template-columns: 1fr !important; }
  .ps-ebookRoute .ps-thumbs{ display:none !important; }
  .ps-ebookRoute .ps-toolbar__center{ flex: 1 1 100% !important; justify-content: flex-start !important; }
  .ps-ebookRoute .ps-toolbar__right{ justify-content: flex-start !important; }
}

@media (max-width: 560px){
  .ps-ebookRoute .ps-toolbar{ padding: 10px !important; }
  .ps-ebookRoute .ps-toolbar__left,
  .ps-ebookRoute .ps-toolbar__center,
  .ps-ebookRoute .ps-toolbar__right{
    flex: 1 1 100% !important;
    justify-content: flex-start !important;
  }
  .ps-ebookRoute .ps-nav{ width: 44px !important; height: 64px !important; border-radius: 14px !important; }
  .ps-ebookRoute .ps-nav--prev{ left: 10px !important; }
  .ps-ebookRoute .ps-nav--next{ right: 10px !important; }
  .ps-ebookRoute #psPdfStage{ padding: 14px !important; }
}

/* hard force: remove any rotate UI if exists */
#psRotateBtn, .ps-rotate, [data-rotate]{ display:none !important; }
.ps-flipLayer{
  position:absolute;
  pointer-events:none;
  z-index: 999;
  perspective: 1400px;
  transform-style: preserve-3d;
}

.ps-flipUnder{
  position:absolute;
  inset:0;
  border-radius: 10px;
  overflow:hidden;
  opacity: 1; /* ✅ important */
  background:#fff;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}

.ps-flipUnder img{
  width:100%;
  height:100%;
  object-fit: contain;
  display:block;
  background:#fff;
}

.ps-flipSheet{
  position:absolute;
  inset:0;
  border-radius: 10px;
  overflow:hidden;
  background:#fff;
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
  will-change: transform, opacity;
}

.ps-flipSheet img{
  width:100%;
  height:100%;
  object-fit: contain;
  display:block;
  background:#fff;
}

/* more realistic shadows */
.ps-flip--next .ps-flipUnder{
  background: #fff;
}

.ps-flip--prev .ps-flipUnder{
  background: #fff;
}

.ps-flip--next .ps-flipSheet{
  transform-origin: left center;
  animation: psPageTurnNext 680ms cubic-bezier(.2,.85,.2,1) forwards;
}

.ps-flip--prev .ps-flipSheet{
  transform-origin: right center;
  animation: psPageTurnPrev 680ms cubic-bezier(.2,.85,.2,1) forwards;
}

@keyframes psPageTurnNext{
  0%{ transform: rotateY(0deg); }
  40%{ transform: rotateY(-85deg); }
  100%{ transform: rotateY(-175deg); opacity:0; }
}

@keyframes psPageTurnPrev{
  0%{ transform: rotateY(0deg); }
  40%{ transform: rotateY(85deg); }
  100%{ transform: rotateY(175deg); opacity:0; }
}

/* =========================================================
   REALISTIC BOOK FLIP (NO SPINE SHADOW)
========================================================= */
.ps-flipLayer{
  position:absolute;
  pointer-events:none;
  z-index: 999;
  perspective: 1600px;
  transform-style: preserve-3d;
  --psShade: .25; /* updated by JS */
  --psGlow:  .10; /* updated by JS */
}

/* Under page (next/prev) */
.ps-flipUnder{
  position:absolute;
  inset:0;
  border-radius: 10px;
  overflow:hidden;
  background:#fff;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
  transform: translateZ(0);
}
.ps-underImg{
  width:100%;
  height:100%;
  object-fit: contain;
  display:block;
  background:#fff;
  filter: contrast(1.02) saturate(1.02);
}
/* keep very light only (no center band) */
.ps-underDim{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.04);
  opacity: .35;
  pointer-events:none;
}

/* The flipping page */
.ps-flipSheet{
  position:absolute;
  inset:0;
  border-radius: 10px;
  overflow:hidden;
  background:#fff;
  transform-style: preserve-3d;
  box-shadow:
    0 18px 42px rgba(0,0,0,.20),
    inset 0 0 0 1px rgba(0,0,0,.06);
  will-change: transform, opacity, filter;
}
.ps-topImg{
  width:100%;
  height:100%;
  object-fit: contain;
  display:block;
  background:#fff;
}

/* Edge curl highlight line */
.ps-edgeCurl{
  position:absolute;
  top:0; bottom:0;
  width: 28px;
  pointer-events:none;
  opacity: 0;
  transform: translateZ(1px);
}

/* Dynamic shade & glow overlays */
.ps-flipShade{
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity: 1;
}
.ps-flipGlow{
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity: 1;
}

/* Paper texture already present */


/* Paper texture */
.ps-paperTex{
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.10;
  mix-blend-mode: multiply;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.02) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.015) 0 1px, transparent 1px 4px);
}

/* Dynamic shade & glow overlays */
.ps-flipShade{ position:absolute; inset:0; pointer-events:none; }
.ps-flipGlow{ position:absolute; inset:0; pointer-events:none; }

/* NEXT */
.ps-flip--next .ps-flipSheet{
  transform-origin: left center;
  animation: psRealTurnNext 720ms cubic-bezier(.18,.88,.18,1) forwards;
}
.ps-flip--next .ps-flipShade{
  background: linear-gradient(90deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,var(--psShade)) 55%,
    rgba(0,0,0,0.04) 100%);
}
.ps-flip--next .ps-flipGlow{
  background: radial-gradient(closest-side at 0% 50%,
    rgba(255,255,255,var(--psGlow)) 0%,
    rgba(255,255,255,0) 70%);
}
.ps-flip--next .ps-edgeCurl{
  left: 6px;
  opacity: 1;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.55) 0%,
    rgba(255,255,255,0.12) 55%,
    rgba(0,0,0,0.08) 100%);
}

/* PREV */
.ps-flip--prev .ps-flipSheet{
  transform-origin: right center;
  animation: psRealTurnPrev 720ms cubic-bezier(.18,.88,.18,1) forwards;
}
.ps-flip--prev .ps-flipShade{
  background: linear-gradient(270deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,var(--psShade)) 55%,
    rgba(0,0,0,0.04) 100%);
}
.ps-flip--prev .ps-flipGlow{
  background: radial-gradient(closest-side at 100% 50%,
    rgba(255,255,255,var(--psGlow)) 0%,
    rgba(255,255,255,0) 70%);
}
.ps-flip--prev .ps-edgeCurl{
  right: 6px;
  opacity: 1;
  background: linear-gradient(270deg,
    rgba(255,255,255,0.55) 0%,
    rgba(255,255,255,0.12) 55%,
    rgba(0,0,0,0.08) 100%);
}

/* Turn keyframes */
@keyframes psRealTurnNext{
  0%   { transform: rotateY(0deg) translateZ(0); opacity:1; }
  35%  { transform: rotateY(-85deg) translateZ(8px); }
  75%  { transform: rotateY(-155deg) translateZ(2px); opacity:.95; }
  100% { transform: rotateY(-178deg) translateZ(0); opacity:0; }
}
@keyframes psRealTurnPrev{
  0%   { transform: rotateY(0deg) translateZ(0); opacity:1; }
  35%  { transform: rotateY(85deg) translateZ(8px); }
  75%  { transform: rotateY(155deg) translateZ(2px); opacity:.95; }
  100% { transform: rotateY(178deg) translateZ(0); opacity:0; }
}

/* Reduce motion users */
@media (prefers-reduced-motion: reduce){
  .ps-flip--next .ps-flipSheet,
  .ps-flip--prev .ps-flipSheet{ animation: none !important; opacity:0 !important; }
}

/* HARD KILL (safety): if any older CSS still exists */
.ps-spineShadow{ display:none !important; }














/* ✅ FIX: Flip animation enable (override theme/previous kills) */
#psFlipLayer{
  perspective: 1600px !important;
  transform-style: preserve-3d !important;
  -webkit-transform-style: preserve-3d !important;
}

/* IMPORTANT: allow sheet to animate (parent par transform none se effect nahi aana chahiye) */
#psFlipLayer .ps-flipSheet{
  transform-style: preserve-3d !important;
  -webkit-transform-style: preserve-3d !important;
}

/* keep backface hidden */
#psFlipLayer .ps-topImg,
#psFlipLayer .ps-underImg{
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}
