
.ft373-books-gallery{max-width:1180px;margin:0 auto;padding:70px 24px;direction:rtl}
.ft373-books-head{text-align:center;margin-bottom:28px}
.ft373-books-head span{display:inline-flex;border-radius:999px;padding:8px 14px;background:#eef2ff;color:#4f46e5;font-weight:900}
.ft373-books-head h1{margin:14px 0 8px;font-size:clamp(28px,4vw,46px);color:#0f172a}
.ft373-books-head p{color:#64748b}
.ft373-books-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:22px}
.ft373-book-card{background:#fff;border:1px solid #e2e8f0;border-radius:26px;overflow:hidden;box-shadow:0 18px 45px rgba(15,23,42,.08)}
.ft373-book-card img{width:100%;height:250px;object-fit:cover;display:block}
.ft373-book-body{padding:20px;text-align:right}
.ft373-book-body h2{font-size:20px;line-height:1.55;margin:0 0 10px}
.ft373-book-body strong{display:inline-flex;color:#4f46e5;font-size:20px;margin-bottom:10px}
.ft373-book-body p{color:#64748b;line-height:1.9}
.ft373-book-body a{display:flex;justify-content:center;align-items:center;min-height:48px;border-radius:16px;background:linear-gradient(135deg,#4f46e5,#06b6d4);color:#fff;font-weight:900;text-decoration:none;margin-top:14px}
.ft373-books-empty{background:#fff;border:1px dashed #cbd5e1;border-radius:22px;padding:30px;text-align:center;color:#64748b}
.ft373-book-stats-fields{background:#fff;border:1px solid #e2e8f0;border-radius:22px;padding:18px;margin:18px 0;box-shadow:0 12px 30px rgba(15,23,42,.06);direction:rtl;text-align:right}
.ft373-book-stats-fields h3{margin:0 0 6px;color:#0f172a}
.ft373-book-stats-fields p{margin:0 0 14px;color:#64748b}
.ft373-book-stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.ft373-book-stat-field{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:12px}
.ft373-book-stat-field strong,.ft373-book-stat-field label{display:block;margin-bottom:6px;font-weight:900}
.ft373-book-stat-field label{color:#64748b;font-size:12px;margin-top:8px}
.ft373-book-stat-field input{width:100%;border:1px solid #cbd5e1;border-radius:12px;padding:10px;box-sizing:border-box}
@media(max-width:760px){.ft373-book-stats-grid{grid-template-columns:1fr}}

/* v2.374 — dynamic stats cards */
.ft373-stats-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}
.ft373-add-stat{border:0;border-radius:14px;background:linear-gradient(135deg,#4f46e5,#06b6d4);color:#fff;font-weight:900;padding:11px 15px;cursor:pointer}
.ft373-remove-stat{position:absolute;top:10px;left:10px;width:30px;height:30px;border:0;border-radius:999px;background:#fee2e2;color:#b91c1c;font-weight:900;cursor:pointer}
.ft373-book-stat-field{position:relative;padding-top:44px!important}
.ft373-book-stats-public{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:0;background:rgba(255,255,255,.76);border:1px solid rgba(226,232,240,.85);border-radius:24px;overflow:hidden;box-shadow:0 14px 35px rgba(15,23,42,.06);margin:26px 0;direction:rtl}
.ft373-book-stat-public{text-align:center;padding:18px 16px;border-inline-start:1px solid rgba(226,232,240,.9)}
.ft373-book-stat-public:first-child{border-inline-start:0}
.ft373-book-stat-public small{display:block;color:#64748b;font-weight:900;margin-bottom:8px}
.ft373-book-stat-public strong{display:block;color:#22c8df;font-size:28px;font-weight:950;line-height:1;margin-bottom:8px}
.ft373-book-stat-public span{display:block;color:#64748b;font-weight:800}
@media(max-width:760px){.ft373-stats-head{align-items:stretch;flex-direction:column}.ft373-add-stat{width:100%}}

/* v2.375 — restored precise book page stats and gallery cards */
.ft373-book-cover{display:block;height:250px;background:linear-gradient(135deg,#ede9fe,#e0f2fe)}
.ft373-book-cover img{width:100%;height:100%;object-fit:cover;display:block}
.ft373-book-placeholder{height:100%;display:flex;align-items:center;justify-content:center;font-size:4rem}
.ft375-book-stats .eb-qs-item{min-width:0}
.ft375-book-stats .eb-qs-title{display:block;color:var(--text-secondary,#64748b);font-weight:900;font-size:.78rem;margin-bottom:8px}
.ft375-book-stats .eb-qs-num{display:block}
.ft375-book-stats .eb-qs-label{display:block}
.ft373-stats-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}
.ft373-add-stat{border:0;border-radius:14px;background:linear-gradient(135deg,#4f46e5,#06b6d4);color:#fff;font-weight:900;padding:11px 15px;cursor:pointer}
.ft373-remove-stat{position:absolute;top:10px;left:10px;width:30px;height:30px;border:0;border-radius:999px;background:#fee2e2;color:#b91c1c;font-weight:900;cursor:pointer}
.ft373-book-stat-field{position:relative;padding-top:44px!important}
@media(max-width:760px){.ft373-stats-head{align-items:stretch;flex-direction:column}.ft373-add-stat{width:100%}}

/* v2.376 — book sections professional editor */
.ft376-book-sections-editor{direction:rtl;text-align:right;background:#fff;border:1px solid #e2e8f0;border-radius:24px;padding:20px;margin:22px 0;box-shadow:0 14px 35px rgba(15,23,42,.06)}
.ft376-book-sections-editor>h3{margin:0 0 6px;color:#0f172a}
.ft376-book-sections-editor>p{margin:0 0 18px;color:#64748b}
.ft376-editor-block{background:#f8fafc;border:1px solid #e2e8f0;border-radius:20px;padding:16px;margin-top:16px}
.ft376-editor-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.ft376-editor-head h4{margin:0;color:#0f172a}
.ft376-editor-head button{border:0;border-radius:14px;background:linear-gradient(135deg,#4f46e5,#06b6d4);color:#fff;font-weight:900;padding:10px 14px;cursor:pointer}
.ft376-editor-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}
.ft376-editor-row{position:relative;background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:44px 12px 12px}
.ft376-remove{position:absolute;top:10px;left:10px;width:30px;height:30px;border:0;border-radius:999px;background:#fee2e2;color:#b91c1c;font-weight:900;cursor:pointer}
.ft376-editor-row label{display:block;font-size:12px;color:#64748b;font-weight:900;margin:8px 0 5px}
.ft376-editor-row input,.ft376-editor-row textarea,.ft376-editor-row select{width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:12px;padding:10px;background:#fff}
.eb-cover-wrap{position:relative}
.ft376-book-badges{position:absolute;inset:0;pointer-events:none;z-index:5}
.ft376-book-badge{position:absolute;display:inline-flex;align-items:center;justify-content:center;max-width:220px;padding:10px 14px;border-radius:16px;background:rgba(255,255,255,.88);border:1px solid rgba(226,232,240,.85);box-shadow:0 16px 35px rgba(15,23,42,.16);font-weight:900;color:#334155;backdrop-filter:blur(10px)}
.ft376-pos-top-right{top:18px;right:18px}
.ft376-pos-top-left{top:18px;left:18px}
.ft376-pos-bottom-right{bottom:18px;right:18px}
.ft376-pos-bottom-left{bottom:18px;left:18px}
@media(max-width:760px){.ft376-editor-head{align-items:stretch;flex-direction:column}.ft376-editor-head button{width:100%}.ft376-editor-list{grid-template-columns:1fr}}


/* v2.377 — Book edit page layout + badge preview */

/* Make the edit page use available space */
body.ft377-books-edit-mode .ft377-book-edit-container,
body.ft377-books-edit-mode .ft377-book-edit-wide-parent{
  width:100%!important;
  max-width:1320px!important;
  margin-inline:auto!important;
  box-sizing:border-box!important;
}

body.ft377-books-edit-mode .ft377-book-edit-form{
  width:100%!important;
  max-width:100%!important;
  margin:0 auto!important;
  box-sizing:border-box!important;
}

body.ft377-books-edit-mode .ft377-book-edit-form > *{
  max-width:100%!important;
}

/* Flatten the layout only around the actual book edit form */
body.ft377-books-edit-mode .ft377-book-edit-wide-parent:has(.ft377-book-edit-form),
body.ft377-books-edit-mode .ft377-book-edit-container:has(.ft377-book-edit-form){
  display:block!important;
  grid-template-columns:1fr!important;
}

body.ft377-books-edit-mode .ft373-book-stats-fields,
body.ft377-books-edit-mode .ft376-book-sections-editor{
  width:100%!important;
  max-width:100%!important;
}

body.ft377-books-edit-mode .ft376-editor-list,
body.ft377-books-edit-mode .ft373-book-stats-grid{
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr))!important;
}

/* Reduce the empty area on the left of the form */
body.ft377-books-edit-mode .ft-admin-content,
body.ft377-books-edit-mode .ft-platform-main{
  align-items:stretch!important;
}

.ft377-badge-preview{
  background:linear-gradient(135deg,#f8fafc,#eef2ff);
  border:1px solid #dbeafe;
  border-radius:22px;
  padding:16px;
  margin:14px 0 18px;
  box-shadow:0 14px 34px rgba(15,23,42,.07);
}

.ft377-badge-preview-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.ft377-badge-preview-head strong{
  color:#0f172a;
  font-weight:950;
}

.ft377-badge-preview-head span{
  color:#64748b;
  font-size:13px;
  font-weight:800;
}

.ft377-cover-preview{
  position:relative;
  min-height:320px;
  border-radius:22px;
  overflow:hidden;
  background:linear-gradient(135deg,#1e1b4b,#0f172a);
  border:1px solid rgba(255,255,255,.5);
}

.ft377-cover-preview img{
  width:100%;
  height:380px;
  object-fit:cover;
  display:none;
}

.ft377-cover-empty{
  min-height:320px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#cbd5e1;
  font-weight:900;
  text-align:center;
  padding:20px;
}

.ft377-badge-layer{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:5;
}

.ft377-preview-badge{
  position:absolute;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  max-width:230px;
  padding:10px 14px;
  border-radius:16px;
  background:rgba(255,255,255,.9);
  border:1px solid rgba(226,232,240,.9);
  box-shadow:0 16px 35px rgba(15,23,42,.18);
  font-weight:950;
  color:#334155;
  backdrop-filter:blur(10px);
}

.ft377-preview-badge.ft376-pos-top-right{top:18px;right:18px}
.ft377-preview-badge.ft376-pos-top-left{top:18px;left:18px}
.ft377-preview-badge.ft376-pos-bottom-right{bottom:18px;right:18px}
.ft377-preview-badge.ft376-pos-bottom-left{bottom:18px;left:18px}

@media(max-width:900px){
  body.ft377-books-edit-mode .ft377-book-edit-container,
  body.ft377-books-edit-mode .ft377-book-edit-wide-parent{
    max-width:100%!important;
  }
  .ft377-badge-preview-head{
    align-items:flex-start;
    flex-direction:column;
  }
  .ft377-cover-preview img{
    height:300px;
  }
}

/* v2.378 — make real existing floating badges visible as editable rows */
.ft376-editor-block[data-ft376-list="badges"]{
  border-color:#bfdbfe;
  background:linear-gradient(135deg,#f8fbff,#eef6ff);
}
.ft376-editor-block[data-ft376-list="badges"] .ft376-editor-row{
  box-shadow:0 10px 24px rgba(37,99,235,.06);
}
.ft376-editor-block[data-ft376-list="badges"] .ft376-editor-head h4::after{
  content:" — العناصر الظاهرة فعليًا على غلاف الكتاب";
  color:#64748b;
  font-size:12px;
  font-weight:800;
}


/* v2.379 — keep advanced editors scoped to real edit page only */
body:not(.ft377-books-edit-mode) .ft373-book-stats-fields,
body:not(.ft377-books-edit-mode) .ft376-book-sections-editor,
body:not(.ft377-books-edit-mode) .ft377-badge-preview{
  max-width:100%;
}

/* When not in edit mode, do not let old injected sections affect book list layout */
body:not(.ft377-books-edit-mode) .ft373-book-stats-fields:empty,
body:not(.ft377-books-edit-mode) .ft376-book-sections-editor:empty{
  display:none!important;
}


/* v2.380 — protect sidebar from v2.377 wide-layout leakage */
body.ft377-books-edit-mode:not(.ft380-book-edit-ok) .ft377-book-edit-wide-parent,
body.ft377-books-edit-mode:not(.ft380-book-edit-ok) .ft377-book-edit-container{
  max-width:initial!important;
  width:auto!important;
  margin-inline:initial!important;
  display:initial!important;
}

body.ft380-book-edit-ok .ft-sidebar,
body.ft380-book-edit-ok .ft-admin-sidebar,
body.ft380-book-edit-ok aside,
body.ft380-book-edit-ok nav{
  max-width:inherit!important;
}

body.ft380-book-edit-ok .ft380-real-book-edit-form{
  width:100%!important;
  max-width:1180px!important;
  margin:0 auto!important;
  display:block!important;
}

body.ft380-book-edit-ok .ft380-real-book-edit-form .ft-books-pro-form-grid{
  width:100%!important;
  max-width:100%!important;
}

/* Only actual form may use full editor width */
body.ft380-book-edit-ok .ft380-real-book-edit-form .ft373-book-stats-fields,
body.ft380-book-edit-ok .ft380-real-book-edit-form .ft376-book-sections-editor{
  width:100%!important;
  max-width:100%!important;
}


/* v2.381 — neutralize old layout hijack classes */
body.ft377-books-edit-mode .ft377-book-edit-wide-parent,
body.ft377-books-edit-mode .ft377-book-edit-container,
body.ft380-book-edit-ok .ft377-book-edit-wide-parent,
body.ft380-book-edit-ok .ft377-book-edit-container{
  width:auto!important;
  max-width:none!important;
  margin-inline:initial!important;
  display:revert!important;
  grid-template-columns:revert!important;
}

body.ft377-books-edit-mode .ft377-book-edit-form,
body.ft380-book-edit-ok .ft380-real-book-edit-form{
  width:100%!important;
  max-width:1180px!important;
  margin-inline:auto!important;
}

.ft381-book-advanced-editors{
  grid-column:1/-1!important;
  width:100%!important;
  max-width:100%!important;
}

.ft381-book-advanced-editors .ft373-book-stats-fields,
.ft381-book-advanced-editors .ft376-book-sections-editor{
  margin:0 0 18px!important;
  width:100%!important;
  max-width:100%!important;
}

.ft381-admin-denied{
  min-height:70vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:60px 20px;
  background:
    radial-gradient(circle at 10% 90%, rgba(34,211,238,.18), transparent 24%),
    radial-gradient(circle at 95% 20%, rgba(124,58,237,.16), transparent 28%),
    linear-gradient(135deg,#f8fbff,#f3ecff);
}

.ft381-admin-denied-card{
  width:min(620px,100%);
  text-align:center;
  background:rgba(255,255,255,.9);
  border:1px solid #e2e8f0;
  border-radius:32px;
  padding:42px 34px;
  box-shadow:0 28px 70px rgba(15,23,42,.14);
}

.ft381-denied-icon{
  width:74px;
  height:74px;
  display:grid;
  place-items:center;
  margin:0 auto 16px;
  border-radius:24px;
  background:linear-gradient(135deg,#4f46e5,#06b6d4);
  color:#fff;
  font-size:34px;
}

.ft381-admin-denied-card span{
  display:inline-flex;
  padding:7px 12px;
  border-radius:999px;
  background:#eef2ff;
  color:#4f46e5;
  font-weight:900;
  margin-bottom:12px;
}

.ft381-admin-denied-card h1{
  margin:0 0 12px;
  color:#0f172a;
  font-size:clamp(28px,4vw,44px);
}

.ft381-admin-denied-card p{
  color:#64748b;
  line-height:1.9;
  margin:0 auto 22px;
  max-width:480px;
}

.ft381-denied-login{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 26px;
  border-radius:16px;
  background:linear-gradient(135deg,#4f46e5,#7c3aed);
  color:#fff!important;
  text-decoration:none!important;
  font-weight:950;
}


/* v2.382 — Floating badges pro: transparent, smaller, animated, many positions, collision-safe */
.ft376-book-badges,
.ft377-badge-layer{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:8;
}

.ft376-book-badge,
.ft377-preview-badge{
  --ft382-x:0px;
  --ft382-y:0px;
  position:absolute;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  width:max-content;
  max-width:min(46%, 210px);
  min-height:34px;
  padding:7px 11px;
  border-radius:14px;
  color:#1e293b;
  font-weight:900;
  font-size:clamp(11px, .82vw, 14px);
  line-height:1.25;
  text-align:center;
  background:rgba(255,255,255,.28) !important;
  border:1px solid rgba(255,255,255,.34) !important;
  box-shadow:0 10px 26px rgba(15,23,42,.13), inset 0 1px 0 rgba(255,255,255,.35) !important;
  backdrop-filter:blur(9px) saturate(1.25);
  -webkit-backdrop-filter:blur(9px) saturate(1.25);
  text-shadow:0 1px 10px rgba(255,255,255,.55);
  pointer-events:none;
  transform:translate3d(var(--ft382-x), var(--ft382-y), 0);
  animation:ft382BadgeFloat 4.8s ease-in-out infinite;
  transition:top .25s ease,right .25s ease,bottom .25s ease,left .25s ease,transform .25s ease,opacity .25s ease;
}

.ft376-book-badge:nth-child(2n),
.ft377-preview-badge:nth-child(2n){ animation-delay:.55s; }
.ft376-book-badge:nth-child(3n),
.ft377-preview-badge:nth-child(3n){ animation-delay:1.1s; }

@keyframes ft382BadgeFloat{
  0%,100%{ transform:translate3d(var(--ft382-x), calc(var(--ft382-y) - 1px), 0); }
  50%{ transform:translate3d(var(--ft382-x), calc(var(--ft382-y) + 5px), 0); }
}

/* position presets */
.ft376-pos-top-right{top:14px;right:14px}
.ft376-pos-top-center{top:14px;left:50%;--ft382-x:-50%}
.ft376-pos-top-left{top:14px;left:14px}

.ft376-pos-middle-right{top:50%;right:14px;--ft382-y:-50%}
.ft376-pos-middle-left{top:50%;left:14px;--ft382-y:-50%}

.ft376-pos-bottom-right{bottom:14px;right:14px}
.ft376-pos-bottom-center{bottom:14px;left:50%;--ft382-x:-50%}
.ft376-pos-bottom-left{bottom:14px;left:14px}

/* aliases for inside-cover positions */
.ft376-pos-cover-top-right{top:14px;right:14px}
.ft376-pos-cover-top-left{top:14px;left:14px}
.ft376-pos-cover-bottom-right{bottom:14px;right:14px}
.ft376-pos-cover-bottom-left{bottom:14px;left:14px}

/* collision prevention: duplicate badges in same position stack gently */
.ft382-stack-2.ft376-pos-top-right,
.ft382-stack-2.ft376-pos-cover-top-right{--ft382-y:44px}
.ft382-stack-3.ft376-pos-top-right,
.ft382-stack-3.ft376-pos-cover-top-right{--ft382-y:88px}
.ft382-stack-4.ft376-pos-top-right,
.ft382-stack-4.ft376-pos-cover-top-right{--ft382-y:132px}

.ft382-stack-2.ft376-pos-top-left,
.ft382-stack-2.ft376-pos-cover-top-left{--ft382-y:44px}
.ft382-stack-3.ft376-pos-top-left,
.ft382-stack-3.ft376-pos-cover-top-left{--ft382-y:88px}
.ft382-stack-4.ft376-pos-top-left,
.ft382-stack-4.ft376-pos-cover-top-left{--ft382-y:132px}

.ft382-stack-2.ft376-pos-bottom-right,
.ft382-stack-2.ft376-pos-cover-bottom-right{--ft382-y:-44px}
.ft382-stack-3.ft376-pos-bottom-right,
.ft382-stack-3.ft376-pos-cover-bottom-right{--ft382-y:-88px}
.ft382-stack-4.ft376-pos-bottom-right,
.ft382-stack-4.ft376-pos-cover-bottom-right{--ft382-y:-132px}

.ft382-stack-2.ft376-pos-bottom-left,
.ft382-stack-2.ft376-pos-cover-bottom-left{--ft382-y:-44px}
.ft382-stack-3.ft376-pos-bottom-left,
.ft382-stack-3.ft376-pos-cover-bottom-left{--ft382-y:-88px}
.ft382-stack-4.ft376-pos-bottom-left,
.ft382-stack-4.ft376-pos-cover-bottom-left{--ft382-y:-132px}

.ft382-stack-2.ft376-pos-top-center{--ft382-x:-50%;--ft382-y:42px}
.ft382-stack-3.ft376-pos-top-center{--ft382-x:-50%;--ft382-y:84px}
.ft382-stack-2.ft376-pos-bottom-center{--ft382-x:-50%;--ft382-y:-42px}
.ft382-stack-3.ft376-pos-bottom-center{--ft382-x:-50%;--ft382-y:-84px}

.ft382-stack-2.ft376-pos-middle-right{--ft382-y:calc(-50% + 42px)}
.ft382-stack-3.ft376-pos-middle-right{--ft382-y:calc(-50% + 84px)}
.ft382-stack-2.ft376-pos-middle-left{--ft382-y:calc(-50% + 42px)}
.ft382-stack-3.ft376-pos-middle-left{--ft382-y:calc(-50% + 84px)}

/* Keep editor preview matching the public book page */
.ft377-cover-preview .ft377-preview-badge{
  background:rgba(255,255,255,.30) !important;
  border-color:rgba(255,255,255,.35) !important;
}

/* Compact editor select rows */
.ft376-editor-block[data-ft376-list="badges"] select{
  min-height:42px;
}

/* Mobile: prevent badges from becoming too large */
@media(max-width:760px){
  .ft376-book-badge,
  .ft377-preview-badge{
    max-width:44%;
    min-height:30px;
    padding:6px 9px;
    font-size:11px;
    border-radius:12px;
  }
}


/* v2.383 — fully soft transparent edges for floating badges */
.ft376-book-badge,
.ft377-preview-badge{
  background:
    radial-gradient(
      ellipse at center,
      rgba(255,255,255,.42) 0%,
      rgba(255,255,255,.30) 42%,
      rgba(255,255,255,.14) 70%,
      rgba(255,255,255,0) 100%
    ) !important;
  border:0 !important;
  outline:0 !important;
  box-shadow:
    0 10px 24px rgba(15,23,42,.10),
    inset 0 1px 10px rgba(255,255,255,.20) !important;
  -webkit-mask-image:
    radial-gradient(
      ellipse at center,
      #000 0%,
      #000 58%,
      rgba(0,0,0,.68) 76%,
      rgba(0,0,0,0) 100%
    );
  mask-image:
    radial-gradient(
      ellipse at center,
      #000 0%,
      #000 58%,
      rgba(0,0,0,.68) 76%,
      rgba(0,0,0,0) 100%
    );
}

/* Extra soft halo behind the badge, without a visible rectangular edge */
.ft376-book-badge::before,
.ft377-preview-badge::before{
  content:"";
  position:absolute;
  inset:-8px;
  z-index:-1;
  border-radius:inherit;
  background:
    radial-gradient(
      ellipse at center,
      rgba(255,255,255,.22) 0%,
      rgba(255,255,255,.10) 52%,
      rgba(255,255,255,0) 100%
    );
  filter:blur(8px);
  opacity:.9;
}

/* Keep text readable while the edges fade out */
.ft376-book-badge,
.ft377-preview-badge{
  text-shadow:
    0 1px 1px rgba(255,255,255,.55),
    0 0 10px rgba(255,255,255,.45);
}

/* On dark covers, keep a tiny invisible depth but no hard frame */
.eb-cover-wrap .ft376-book-badge,
.ft377-cover-preview .ft377-preview-badge{
  box-shadow:
    0 8px 22px rgba(15,23,42,.14),
    inset 0 1px 8px rgba(255,255,255,.18) !important;
}


/* v2.384 — unified book price display */
.ft384-book-price{
  unicode-bidi:plaintext;
  white-space:nowrap;
}


/* v2.385 — Harmonized book page background */
body.page-template-page-ebook,
body:has(.eb-hero),
body:has(.eb-section-inner){
  background:
    radial-gradient(circle at 18% 6%, rgba(168,85,247,.075), transparent 30%),
    radial-gradient(circle at 88% 72%, rgba(14,165,233,.085), transparent 34%),
    linear-gradient(180deg,#fbf9ff 0%,#f7f3ff 44%,#f6f4ff 100%) !important;
}

/* Remove harsh horizontal color bands while keeping depth */
.eb-hero,
.ft-section,
.eb-pricing-section,
.eb-features-section,
.eb-toc-section,
.eb-author-section,
.eb-faq-section,
.eb-final-cta,
section[class*="eb-"],
section[class*="book"]{
  background:transparent !important;
  background-color:transparent !important;
}

/* Add a single soft overlay for page continuity */
.eb-hero::before,
.ft-section::before{
  opacity:.18 !important;
}

.ft-section{
  position:relative;
  isolation:isolate;
}

.ft-section::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    linear-gradient(180deg,rgba(255,255,255,.34),rgba(255,255,255,.08));
}

/* Cards should define sections, not background blocks */
.eb-feature-card,
.eb-toc-card,
.eb-price-card,
.eb-author-card,
.eb-final-card,
.eb-stats-card,
.eb-download-card,
.eb-section-inner > .card{
  background:rgba(255,255,255,.72) !important;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-color:rgba(226,232,240,.62) !important;
}

/* Smoother spacing transition around the price area */
.eb-final-cta,
.eb-pricing-section{
  padding-top:clamp(70px,8vw,120px) !important;
  padding-bottom:clamp(70px,8vw,120px) !important;
}

/* Secure download denied page */
.ft385-download-denied{
  min-height:70vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:60px 20px;
  background:
    radial-gradient(circle at 12% 88%, rgba(34,211,238,.16), transparent 25%),
    radial-gradient(circle at 90% 10%, rgba(124,58,237,.14), transparent 28%),
    linear-gradient(135deg,#fbf9ff,#f4f8ff);
}
.ft385-download-card{
  width:min(560px,100%);
  text-align:center;
  background:rgba(255,255,255,.88);
  border:1px solid rgba(226,232,240,.8);
  border-radius:30px;
  padding:38px 30px;
  box-shadow:0 28px 70px rgba(15,23,42,.12);
}
.ft385-download-icon{
  width:70px;
  height:70px;
  display:grid;
  place-items:center;
  margin:0 auto 16px;
  border-radius:24px;
  background:linear-gradient(135deg,#4f46e5,#06b6d4);
  color:#fff;
  font-size:32px;
}
.ft385-download-card h1{
  margin:0 0 12px;
  color:#0f172a;
}
.ft385-download-card p{
  color:#64748b;
  line-height:1.9;
  margin:0 0 22px;
}
.ft385-download-card a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 22px;
  border-radius:16px;
  background:linear-gradient(135deg,#4f46e5,#06b6d4);
  color:#fff !important;
  text-decoration:none !important;
  font-weight:900;
}


/* v2.386 — Book edit full-width workspace */
body.ft386-book-edit-workspace .ft-fa-panel,
body.ft386-book-edit-workspace .ft380-book-edit-stable-shell,
body.ft386-book-edit-workspace .ft-fa-card,
body.ft386-book-edit-workspace .ft-books-pro-edit-shell{
  width:100% !important;
  max-width:1320px !important;
  margin-inline:auto !important;
  box-sizing:border-box !important;
}

body.ft386-book-edit-workspace .ft380-book-edit-stable-shell{
  padding:clamp(18px,2.2vw,34px) !important;
}

body.ft386-book-edit-workspace form{
  width:100% !important;
  max-width:100% !important;
}

body.ft386-book-edit-workspace .ft-books-pro-form-grid,
body.ft386-book-edit-workspace .ft-fa-form-grid,
body.ft386-book-edit-workspace .ft-form-grid{
  display:grid !important;
  grid-template-columns:repeat(12,minmax(0,1fr)) !important;
  gap:18px !important;
  align-items:start !important;
  width:100% !important;
  max-width:100% !important;
}

body.ft386-book-edit-workspace .ft-books-pro-box,
body.ft386-book-edit-workspace .ft-fa-field,
body.ft386-book-edit-workspace .ft-field,
body.ft386-book-edit-workspace .ft-books-pro-form-grid > *,
body.ft386-book-edit-workspace .ft-fa-form-grid > *{
  grid-column:span 6 !important;
  min-width:0 !important;
}

body.ft386-book-edit-workspace .ft-books-pro-box.full,
body.ft386-book-edit-workspace .ft-fa-field.full,
body.ft386-book-edit-workspace .full,
body.ft386-book-edit-workspace .ft381-book-advanced-editors,
body.ft386-book-edit-workspace .ft373-book-stats-fields,
body.ft386-book-edit-workspace .ft376-book-sections-editor,
body.ft386-book-edit-workspace textarea{
  grid-column:1 / -1 !important;
}

body.ft386-book-edit-workspace .ft373-book-stats-grid,
body.ft386-book-edit-workspace .ft376-editor-list{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr)) !important;
  gap:16px !important;
  width:100% !important;
}

body.ft386-book-edit-workspace .ft376-editor-block,
body.ft386-book-edit-workspace .ft373-book-stats-fields{
  width:100% !important;
  max-width:100% !important;
}

body.ft386-book-edit-workspace input,
body.ft386-book-edit-workspace textarea,
body.ft386-book-edit-workspace select{
  width:100% !important;
  box-sizing:border-box !important;
}

body.ft386-book-edit-workspace .ft380-real-book-edit-form,
body.ft386-book-edit-workspace .ft377-book-edit-form{
  max-width:1320px !important;
  width:100% !important;
}

body.ft386-book-edit-workspace aside,
body.ft386-book-edit-workspace nav,
body.ft386-book-edit-workspace .ft-sidebar,
body.ft386-book-edit-workspace .ft-admin-sidebar{
  width:auto !important;
  max-width:inherit !important;
}

@media (min-width: 1100px){
  body.ft386-book-edit-workspace .ft-platform-content,
  body.ft386-book-edit-workspace .ft-admin-content,
  body.ft386-book-edit-workspace main{
    max-width:none !important;
  }
}

@media (max-width: 900px){
  body.ft386-book-edit-workspace .ft-books-pro-form-grid,
  body.ft386-book-edit-workspace .ft-fa-form-grid,
  body.ft386-book-edit-workspace .ft-form-grid{
    grid-template-columns:1fr !important;
  }
  body.ft386-book-edit-workspace .ft-books-pro-box,
  body.ft386-book-edit-workspace .ft-fa-field,
  body.ft386-book-edit-workspace .ft-field,
  body.ft386-book-edit-workspace .ft-books-pro-form-grid > *,
  body.ft386-book-edit-workspace .ft-fa-form-grid > *{
    grid-column:1 / -1 !important;
  }
}


/* v2.387 — Real fix: center and expand the Book Edit preparation form */
body.ft387-book-edit-page{
  --ft387-admin-sidebar-width: 300px;
}

/* The screenshot shows the form trapped inside a narrow right column.
   This targets the exact edit panel and lets it occupy the content area. */
body.ft387-book-edit-page .ft380-book-edit-stable-shell,
body.ft387-book-edit-page .ft-fa-panel.ft380-book-edit-stable-shell,
body.ft387-book-edit-page .ft-fa-panel:has(form.ft387-book-edit-form),
body.ft387-book-edit-page .ft-books-pro-edit-shell,
body.ft387-book-edit-page .ft387-book-edit-panel{
  width: calc(100vw - var(--ft387-admin-sidebar-width) - 96px) !important;
  max-width: 1280px !important;
  min-width: min(980px, calc(100vw - var(--ft387-admin-sidebar-width) - 96px)) !important;
  margin-right: 0 !important;
  margin-left: auto !important;
  padding: clamp(22px, 2.4vw, 36px) !important;
  box-sizing: border-box !important;
}

/* Keep the form itself full width */
body.ft387-book-edit-page form.ft387-book-edit-form,
body.ft387-book-edit-page .ft387-book-edit-panel form,
body.ft387-book-edit-page .ft380-book-edit-stable-shell form{
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

/* Convert the visible edit area into a real spacious grid */
body.ft387-book-edit-page form.ft387-book-edit-form > div,
body.ft387-book-edit-page .ft380-book-edit-stable-shell form > div,
body.ft387-book-edit-page .ft-books-pro-form-grid,
body.ft387-book-edit-page .ft-fa-form-grid,
body.ft387-book-edit-page .ft-form-grid{
  width: 100% !important;
  max-width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  gap: 20px !important;
  align-items: start !important;
}

/* Two wide columns instead of a compressed right-side strip */
body.ft387-book-edit-page .ft-books-pro-box,
body.ft387-book-edit-page .ft-fa-field,
body.ft387-book-edit-page .ft-field,
body.ft387-book-edit-page form.ft387-book-edit-form > div > *,
body.ft387-book-edit-page .ft380-book-edit-stable-shell form > div > *{
  grid-column: span 6 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* Full width sections */
body.ft387-book-edit-page .ft-books-pro-box.full,
body.ft387-book-edit-page .ft-fa-field.full,
body.ft387-book-edit-page .full,
body.ft387-book-edit-page .ft381-book-advanced-editors,
body.ft387-book-edit-page .ft373-book-stats-fields,
body.ft387-book-edit-page .ft376-book-sections-editor,
body.ft387-book-edit-page textarea,
body.ft387-book-edit-page .ft387-full-row{
  grid-column: 1 / -1 !important;
}

/* Inputs should breathe */
body.ft387-book-edit-page input,
body.ft387-book-edit-page select,
body.ft387-book-edit-page textarea{
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Advanced editor cards spread across the available width */
body.ft387-book-edit-page .ft373-book-stats-grid,
body.ft387-book-edit-page .ft376-editor-list{
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 18px !important;
  width: 100% !important;
}

/* The back button should not reserve a huge empty column */
body.ft387-book-edit-page .ft-books-back,
body.ft387-book-edit-page .ft-return-button{
  justify-self: start !important;
}

/* Protect the sidebar/menu from wide layout rules */
body.ft387-book-edit-page aside,
body.ft387-book-edit-page nav,
body.ft387-book-edit-page .ft-sidebar,
body.ft387-book-edit-page .ft-admin-sidebar,
body.ft387-book-edit-page [class*="sidebar"]{
  width: auto !important;
  max-width: inherit !important;
  min-width: 0 !important;
}

/* If the content wrapper is a flex/grid row, make the main content grow */
body.ft387-book-edit-page main,
body.ft387-book-edit-page .ft-admin-content,
body.ft387-book-edit-page .ft-platform-content,
body.ft387-book-edit-page .ft-admin-main,
body.ft387-book-edit-page .ft-platform-main{
  max-width: none !important;
}

/* Medium screens */
@media (max-width: 1200px){
  body.ft387-book-edit-page{
    --ft387-admin-sidebar-width: 260px;
  }
  body.ft387-book-edit-page .ft380-book-edit-stable-shell,
  body.ft387-book-edit-page .ft-fa-panel.ft380-book-edit-stable-shell,
  body.ft387-book-edit-page .ft-fa-panel:has(form.ft387-book-edit-form),
  body.ft387-book-edit-page .ft-books-pro-edit-shell,
  body.ft387-book-edit-page .ft387-book-edit-panel{
    width: calc(100vw - var(--ft387-admin-sidebar-width) - 50px) !important;
    min-width: 0 !important;
  }
}

/* Mobile/tablet */
@media (max-width: 900px){
  body.ft387-book-edit-page .ft380-book-edit-stable-shell,
  body.ft387-book-edit-page .ft-fa-panel.ft380-book-edit-stable-shell,
  body.ft387-book-edit-page .ft-fa-panel:has(form.ft387-book-edit-form),
  body.ft387-book-edit-page .ft-books-pro-edit-shell,
  body.ft387-book-edit-page .ft387-book-edit-panel{
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-inline: auto !important;
  }

  body.ft387-book-edit-page form.ft387-book-edit-form > div,
  body.ft387-book-edit-page .ft380-book-edit-stable-shell form > div,
  body.ft387-book-edit-page .ft-books-pro-form-grid,
  body.ft387-book-edit-page .ft-fa-form-grid,
  body.ft387-book-edit-page .ft-form-grid{
    grid-template-columns: 1fr !important;
  }

  body.ft387-book-edit-page .ft-books-pro-box,
  body.ft387-book-edit-page .ft-fa-field,
  body.ft387-book-edit-page .ft-field,
  body.ft387-book-edit-page form.ft387-book-edit-form > div > *,
  body.ft387-book-edit-page .ft380-book-edit-stable-shell form > div > *{
    grid-column: 1 / -1 !important;
  }
}


/* v2.388 fallback — actual PHP-rendered book editor classes */
.ft388-wide-book-editor{
  width:100%!important;
  max-width:1280px!important;
  margin-inline:auto!important;
}
.ft388-wide-book-editor .ft-fa-form{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}
.ft388-wide-book-editor .ft-books-pro-form-grid{
  width:100%!important;
  max-width:100%!important;
  display:grid!important;
  grid-template-columns:repeat(12,minmax(0,1fr))!important;
  gap:20px!important;
}
.ft388-wide-book-editor .ft-books-pro-box{
  grid-column:span 6!important;
  width:100%!important;
  max-width:100%!important;
}
.ft388-wide-book-editor .ft-books-pro-box.full,
.ft388-wide-book-editor .ft381-book-advanced-editors,
.ft388-wide-book-editor .ft373-book-stats-fields,
.ft388-wide-book-editor .ft376-book-sections-editor{
  grid-column:1/-1!important;
}
@media(max-width:1100px){
  .ft388-wide-book-editor .ft-books-pro-form-grid{grid-template-columns:1fr!important}
  .ft388-wide-book-editor .ft-books-pro-box{grid-column:1/-1!important}
}


/* v2.389 — clean layout for “أقسام صفحة هذا الكتاب” */
.ft388-wide-book-editor .ft-book-override-controls{
  width:100%!important;
  max-width:100%!important;
}
.ft388-wide-book-editor .ft-book-override-controls h4{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:12px;
  background:linear-gradient(135deg,#2563eb,#7c3aed);
  color:#fff!important;
  margin:18px 0 14px!important;
}
.ft389-book-sections-editor{
  width:100%;
  display:grid;
  gap:10px;
}
.ft389-book-sections-head{
  display:grid;
  grid-template-columns:150px minmax(240px,1fr) 150px;
  gap:14px;
  align-items:center;
  padding:0 18px 6px;
  color:#64748b;
  font-weight:900;
  font-size:13px;
}
.ft389-section-row{
  display:grid!important;
  grid-template-columns:150px minmax(240px,1fr) 150px!important;
  gap:14px!important;
  align-items:center!important;
  background:rgba(248,250,252,.92)!important;
  border:1px solid #dbeafe!important;
  border-radius:18px!important;
  padding:14px 16px!important;
  margin:0!important;
}
.ft389-section-state{
  display:flex;
  align-items:center;
  gap:10px;
}
.ft389-dot{
  width:14px;
  height:14px;
  border-radius:999px;
  display:inline-block;
  box-shadow:0 8px 18px rgba(15,23,42,.12);
}
.ft389-dot.is-on{background:#22c55e}
.ft389-dot.is-off{background:#94a3b8}
.ft389-switch{
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
  font-weight:900!important;
  color:#334155!important;
  white-space:nowrap!important;
}
.ft389-switch input{
  width:18px!important;
  height:18px!important;
  accent-color:#2563eb;
}
.ft389-section-label{
  display:flex;
  flex-direction:column;
  gap:4px;
  text-align:right;
  min-width:0;
}
.ft389-section-label strong{
  font-size:15px;
  color:#0f172a;
}
.ft389-section-label small{
  color:#94a3b8;
  font-size:12px;
  direction:ltr;
  text-align:right;
}
.ft389-section-order{
  display:grid;
  gap:5px;
}
.ft389-section-order label{
  color:#475569;
  font-weight:900;
  font-size:12px;
}
.ft389-section-order input{
  min-height:40px!important;
  text-align:center!important;
  border-radius:12px!important;
}
@media(max-width:780px){
  .ft389-book-sections-head{display:none}
  .ft389-section-row{
    grid-template-columns:1fr!important;
  }
  .ft389-section-state{
    justify-content:space-between;
  }
}


/* v2.390 — duplicate book button */
.ft390-duplicate-book-btn{
  background:linear-gradient(135deg,#8b5cf6,#06b6d4)!important;
  color:#fff!important;
  border-color:transparent!important;
  box-shadow:0 12px 26px rgba(99,102,241,.18)!important;
}
.ft390-duplicate-book-btn:hover{
  transform:translateY(-1px);
  filter:saturate(1.08);
}
.ft390-duplicate-book-btn::before{
  content:"⧉";
  margin-inline-end:6px;
  font-weight:900;
}
.ft-fa-notice.error{
  background:#fff1f2!important;
  border-color:#fecdd3!important;
  color:#9f1239!important;
}


/* v2.391 — book admin hard fixes */

/* Duplicate button visible and compact */
.ft391-duplicate-book-btn,
.ft390-duplicate-book-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  min-height:42px!important;
  padding:0 16px!important;
  border-radius:14px!important;
  background:linear-gradient(135deg,#7c3aed,#06b6d4)!important;
  color:#fff!important;
  border:0!important;
  font-weight:900!important;
  text-decoration:none!important;
  box-shadow:0 12px 26px rgba(99,102,241,.18)!important;
}
.ft391-duplicate-book-btn::before,
.ft390-duplicate-book-btn::before{
  content:"⧉";
  font-weight:900;
}

/* Theme default checkbox: keep checkbox beside text, not far away */
.ft388-wide-book-editor label,
.ft387-book-edit-page label{
  gap:8px;
}
.ft388-wide-book-editor input[type="checkbox"],
.ft387-book-edit-page input[type="checkbox"]{
  width:auto!important;
  min-width:18px!important;
  max-width:18px!important;
  height:18px!important;
  margin-inline:8px!important;
  vertical-align:middle!important;
}
.ft388-wide-book-editor .ft-fa-field:has(input[type="checkbox"]),
.ft388-wide-book-editor .ft-books-pro-box:has(input[type="checkbox"]){
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px 12px!important;
}
.ft388-wide-book-editor .ft-fa-field:has(input[type="checkbox"]) label,
.ft388-wide-book-editor .ft-books-pro-box:has(input[type="checkbox"]) label{
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
  width:auto!important;
}

/* Floating badges: restore old clean style — text + icon only, no visible container */
.ft376-book-badge,
.ft377-preview-badge,
.eb-cover-wrap .ft376-book-badge,
.ft377-cover-preview .ft377-preview-badge{
  background:transparent!important;
  background-image:none!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  -webkit-mask-image:none!important;
  mask-image:none!important;
  border-radius:0!important;
  padding:0!important;
  min-height:auto!important;
  color:#fff!important;
  font-weight:900!important;
  text-shadow:
    0 2px 6px rgba(15,23,42,.85),
    0 0 14px rgba(15,23,42,.55),
    0 1px 0 rgba(0,0,0,.35)!important;
}
.ft376-book-badge::before,
.ft377-preview-badge::before,
.ft376-book-badge::after,
.ft377-preview-badge::after{
  display:none!important;
  content:none!important;
}
.ft376-book-badge span,
.ft377-preview-badge span{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  padding:0!important;
}


/* v2.392 — make duplicate button match existing admin action buttons */
.ft392-duplicate-book-btn,
.ft391-duplicate-book-btn,
.ft390-duplicate-book-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:42px!important;
  padding:0 16px!important;
  border-radius:14px!important;
  background:#f4f7ff!important;
  color:#2b43b8!important;
  border:1px solid #dbe4ff!important;
  box-shadow:none!important;
  font-weight:900!important;
  text-decoration:none!important;
  gap:6px!important;
}
.ft392-duplicate-book-btn::before,
.ft391-duplicate-book-btn::before,
.ft390-duplicate-book-btn::before{
  content:"⧉";
  font-weight:900;
  color:inherit;
}
.ft392-duplicate-book-btn:hover,
.ft391-duplicate-book-btn:hover,
.ft390-duplicate-book-btn:hover{
  background:#eaf0ff!important;
  color:#1d36a3!important;
  transform:none!important;
  filter:none!important;
}

/* v2.392 — extra strong floating badge cleanup: icon/text only */
[class*="badge"][class*="book"],
[class*="floating"][class*="book"],
.ft376-book-badge,
.ft377-preview-badge,
.eb-cover-wrap .ft376-book-badge,
.ft377-cover-preview .ft377-preview-badge{
  background:transparent!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  padding:0!important;
  border-radius:0!important;
}
.ft376-book-badge,
.ft377-preview-badge{
  color:#fff!important;
  text-shadow:0 2px 7px rgba(0,0,0,.9),0 0 14px rgba(0,0,0,.55)!important;
}
.ft376-book-badge *,
.ft377-preview-badge *{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}

/* v2.392 notice */
.ft392-notice{
  margin:12px 0 18px!important;
}


/* v2.393 — duplicate button visual reset */
.ft393-duplicate-book-btn,
.ft392-duplicate-book-btn,
.ft391-duplicate-book-btn,
.ft390-duplicate-book-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:42px!important;
  padding:0 16px!important;
  border-radius:14px!important;
  background:#f4f7ff!important;
  color:#2b43b8!important;
  border:1px solid #dbe4ff!important;
  box-shadow:none!important;
  font-weight:900!important;
  text-decoration:none!important;
  gap:6px!important;
}
.ft393-duplicate-book-btn::before,
.ft392-duplicate-book-btn::before,
.ft391-duplicate-book-btn::before,
.ft390-duplicate-book-btn::before{
  content:"⧉";
}


/* v2.394 — duplicate button route fix visual consistency */
.ft393-duplicate-book-btn,
.ft392-duplicate-book-btn,
.ft391-duplicate-book-btn,
.ft390-duplicate-book-btn{
  background:#f4f7ff!important;
  color:#2b43b8!important;
  border:1px solid #dbe4ff!important;
  box-shadow:none!important;
}


/* v2.395 — duplicate button must look exactly like other light action buttons */
.ft393-duplicate-book-btn,
.ft392-duplicate-book-btn,
.ft391-duplicate-book-btn,
.ft390-duplicate-book-btn{
  font-family:inherit!important;
  font-size:inherit!important;
  line-height:inherit!important;
  letter-spacing:inherit!important;
  background:#f4f7ff!important;
  color:#2b43b8!important;
  border:1px solid #dbe4ff!important;
  box-shadow:none!important;
  text-decoration:none!important;
}
.ft393-duplicate-book-btn::before,
.ft392-duplicate-book-btn::before,
.ft391-duplicate-book-btn::before,
.ft390-duplicate-book-btn::before{
  content:none!important;
  display:none!important;
}


/* v2.396 — duplicate button exact light-button match */
.ft396-duplicate-book-btn,
.ft393-duplicate-book-btn,
.ft392-duplicate-book-btn,
.ft391-duplicate-book-btn,
.ft390-duplicate-book-btn{
  font-family:inherit!important;
  font-size:inherit!important;
  line-height:inherit!important;
  letter-spacing:inherit!important;
  background:#f4f7ff!important;
  color:#2b43b8!important;
  border:1px solid #dbe4ff!important;
  box-shadow:none!important;
  text-decoration:none!important;
}
.ft396-duplicate-book-btn::before,
.ft393-duplicate-book-btn::before,
.ft392-duplicate-book-btn::before,
.ft391-duplicate-book-btn::before,
.ft390-duplicate-book-btn::before{
  content:none!important;
  display:none!important;
}


/* v2.397 — hide any second duplicate button instantly to prevent reload flicker */
.ft-books-pro-actions .ft396-duplicate-book-btn ~ .ft396-duplicate-book-btn,
.ft-books-pro-actions .ft396-duplicate-book-btn ~ .ft393-duplicate-book-btn,
.ft-books-pro-actions .ft396-duplicate-book-btn ~ .ft392-duplicate-book-btn,
.ft-books-pro-actions .ft396-duplicate-book-btn ~ .ft391-duplicate-book-btn,
.ft-books-pro-actions .ft396-duplicate-book-btn ~ .ft390-duplicate-book-btn,
.ft-books-pro-actions .ft393-duplicate-book-btn ~ .ft396-duplicate-book-btn,
.ft-books-pro-actions .ft392-duplicate-book-btn ~ .ft396-duplicate-book-btn,
.ft-books-pro-actions .ft391-duplicate-book-btn ~ .ft396-duplicate-book-btn,
.ft-books-pro-actions .ft390-duplicate-book-btn ~ .ft396-duplicate-book-btn{
  display:none!important;
}


/* v2.399 — safe button styling only */
.ft396-duplicate-book-btn{
  font-family:inherit!important;
  font-size:inherit!important;
  line-height:inherit!important;
  letter-spacing:inherit!important;
  background:#f4f7ff!important;
  color:#2b43b8!important;
  border:1px solid #dbe4ff!important;
  box-shadow:none!important;
  text-decoration:none!important;
}
.ft396-duplicate-book-btn::before{content:none!important;display:none!important;}
