/* ZM Playbook Flipbook Library — Matched to zeeshanmahmood.com */
:root {
  --zm-bg: #000000;
  --zm-surface: #111111;
  --zm-surface-2: #181818;
  --zm-border: #262626;
  --zm-lime: #C4FF0E;
  --zm-lime-hover: #D4FF4D;
  --zm-text: #FFFFFF;
  --zm-muted: #A1A1AA;
  --zm-error: #FF4D4F;
  --zm-font-display: 'Barlow Condensed', Impact, sans-serif;
  --zm-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.zm-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   1. Opt-In Shortcode ([zm_playbook_optin])
   ========================================================= */
.zm-optin-wrap {
  font-family: var(--zm-font-body);
  width: 100%;
  max-width: 560px;
}

.zm-optin-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

.zm-optin-input {
  flex: 1 1 240px;
  min-height: 52px;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--zm-font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.zm-optin--lime .zm-optin-input {
  background: #FFFFFF;
  color: #000000;
  border: 2px solid #000000;
}

.zm-optin--lime .zm-optin-input::placeholder {
  color: #52525B;
}

.zm-optin--dark .zm-optin-input {
  background: var(--zm-surface-2);
  color: var(--zm-text);
  border: 1px solid var(--zm-border);
}

.zm-optin--dark .zm-optin-input:focus {
  border-color: var(--zm-lime);
}

.zm-optin-btn {
  flex: 0 0 auto;
  min-height: 52px;
  padding: 12px 28px;
  border-radius: 999px;
  border: none;
  font-family: var(--zm-font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.zm-optin-btn:hover {
  transform: translateY(-1px);
}

.zm-optin-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.zm-optin--lime .zm-optin-btn {
  background: #000000;
  color: #FFFFFF;
}

.zm-optin--lime .zm-optin-btn:hover {
  background: #18181B;
}

.zm-optin--dark .zm-optin-btn {
  background: var(--zm-lime);
  color: #000000;
}

.zm-optin--dark .zm-optin-btn:hover {
  background: var(--zm-lime-hover);
}

.zm-optin-note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.zm-optin--lime .zm-optin-note {
  color: #18181B;
}

.zm-optin--dark .zm-optin-note {
  color: var(--zm-muted);
}

.zm-optin-feedback {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.zm-optin-feedback:empty {
  display: none;
}

.zm-optin--lime .zm-optin-feedback.is-success {
  color: #000000;
  background: rgba(255, 255, 255, 0.72);
  padding: 10px 16px;
  border-radius: 12px;
}

.zm-optin--lime .zm-optin-feedback.is-error {
  color: #7F1D1D;
  background: rgba(255, 255, 255, 0.85);
  padding: 10px 16px;
  border-radius: 12px;
}

.zm-optin--dark .zm-optin-feedback.is-success {
  color: var(--zm-lime);
}

.zm-optin--dark .zm-optin-feedback.is-error {
  color: var(--zm-error);
}

/* =========================================================
   2. Auth, Registration & Library Shell
   ========================================================= */
.zm-pf-shell {
  background: var(--zm-bg);
  color: var(--zm-text);
  font-family: var(--zm-font-body);
  padding: 56px 24px 80px;
  min-height: 70vh;
}

.zm-pf-shell--wide {
  max-width: 1240px;
  margin: 0 auto;
}

.zm-pf-card {
  background: var(--zm-surface);
  border: 1px solid var(--zm-border);
  border-radius: 20px;
  padding: 40px;
  box-sizing: border-box;
}

.zm-pf-card--narrow {
  max-width: 600px;
  margin: 0 auto;
}

.zm-pf-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--zm-lime);
  margin-bottom: 10px;
}

.zm-pf-title {
  margin: 0 0 10px;
  font-family: var(--zm-font-display);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--zm-text);
}

.zm-pf-sub {
  margin: 0 0 26px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--zm-muted);
}

/* Form Elements */
.zm-pf-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.zm-pf-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.zm-pf-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.zm-pf-field label {
  font-size: 13px;
  font-weight: 600;
  color: #E4E4E7;
}

.zm-pf-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--zm-surface-2);
  color: var(--zm-text);
  border: 1px solid var(--zm-border);
  border-radius: 12px;
  padding: 13px 16px;
  font-family: var(--zm-font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease;
}

.zm-pf-input:focus {
  border-color: var(--zm-lime);
}

.zm-pf-input--disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.zm-pf-login-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.zm-pf-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--zm-muted);
  cursor: pointer;
}

.zm-pf-link {
  color: var(--zm-lime);
  text-decoration: none;
  font-weight: 600;
}

.zm-pf-link:hover {
  text-decoration: underline;
}

/* Buttons */
.zm-pf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  font-family: var(--zm-font-body);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.zm-pf-btn:hover {
  transform: translateY(-1px);
}

.zm-pf-btn--lime {
  background: var(--zm-lime);
  color: #000000;
}

.zm-pf-btn--lime:hover {
  background: var(--zm-lime-hover);
  color: #000000;
}

.zm-pf-btn--ghost {
  background: transparent;
  color: var(--zm-text);
  border: 1px solid var(--zm-border);
}

.zm-pf-btn--ghost:hover {
  border-color: var(--zm-lime);
  color: var(--zm-lime);
}

.zm-pf-btn--sm {
  padding: 10px 20px;
  font-size: 13.5px;
}

.zm-pf-btn--full {
  width: 100%;
  margin-top: 6px;
}

.zm-pf-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

/* Alerts */
.zm-pf-alert {
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
}

.zm-pf-alert p {
  margin: 0 0 6px;
}

.zm-pf-alert p:last-child {
  margin-bottom: 0;
}

.zm-pf-alert--error {
  background: rgba(255, 77, 79, 0.12);
  border: 1px solid rgba(255, 77, 79, 0.45);
  color: #FCA5A5;
}

.zm-pf-alert--success {
  background: rgba(196, 255, 14, 0.12);
  border: 1px solid rgba(196, 255, 14, 0.45);
  color: var(--zm-lime);
}

/* =========================================================
   3. Book Library Grid
   ========================================================= */
.zm-pf-lib-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 28px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--zm-border);
}

.zm-pf-lib-header .zm-pf-sub {
  margin-bottom: 0;
}

.zm-pf-book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.zm-pf-book-card {
  background: var(--zm-surface);
  border: 1px solid var(--zm-border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.zm-pf-book-card:hover {
  border-color: var(--zm-lime);
  transform: translateY(-3px);
}

.zm-pf-book-cover-link {
  display: block;
  text-decoration: none;
}

.zm-pf-book-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #0A0A0A;
}

.zm-pf-book-cover--fallback {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  box-sizing: border-box;
  background: linear-gradient(135deg, #141414 0%, #050505 100%);
  border-bottom: 1px solid var(--zm-border);
}

.zm-pf-fallback-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--zm-lime);
  margin-bottom: 10px;
}

.zm-pf-fallback-title {
  font-family: var(--zm-font-display);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--zm-text);
}

.zm-pf-book-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.zm-pf-book-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--zm-lime);
  margin-bottom: 8px;
}

.zm-pf-book-title {
  margin: 0 0 10px;
  font-family: var(--zm-font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--zm-text);
}

.zm-pf-book-excerpt {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--zm-muted);
  flex: 1;
}

.zm-pf-book-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--zm-border);
}

.zm-pf-book-meta {
  font-size: 12.5px;
  color: var(--zm-muted);
}

/* =========================================================
   4. Interactive PDF Flipbook Reader
   ========================================================= */
.zm-fb-wrapper {
  background: var(--zm-surface);
  border: 1px solid var(--zm-border);
  border-radius: 20px;
  overflow: hidden;
}

.zm-fb-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: #0A0A0A;
  border-bottom: 1px solid var(--zm-border);
}

.zm-fb-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.zm-fb-heading {
  display: flex;
  flex-direction: column;
}

.zm-fb-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--zm-lime);
}

.zm-fb-title {
  margin: 0;
  font-family: var(--zm-font-display);
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--zm-text);
  line-height: 1.1;
}

.zm-fb-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.zm-fb-ctrl-btn {
  background: var(--zm-surface-2);
  color: var(--zm-text);
  border: 1px solid var(--zm-border);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--zm-font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.zm-fb-ctrl-btn:hover:not(:disabled) {
  border-color: var(--zm-lime);
  color: var(--zm-lime);
}

.zm-fb-ctrl-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.zm-fb-page-info {
  font-size: 13px;
  font-weight: 600;
  color: var(--zm-muted);
  padding: 0 8px;
  white-space: nowrap;
}

.zm-fb-stage {
  position: relative;
  min-height: 540px;
  padding: 32px 20px;
  background: radial-gradient(circle at center, #1A1A1A 0%, #050505 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  perspective: 1800px;
}

.zm-fb-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--zm-muted);
  font-size: 14px;
}

.zm-fb-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid var(--zm-border);
  border-top-color: var(--zm-lime);
  border-radius: 50%;
  animation: zmSpin 0.8s linear infinite;
}

@keyframes zmSpin {
  to { transform: rotate(360deg); }
}

.zm-fb-book {
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
  transition: transform 0.35s ease;
}

.zm-fb-book.is-ready {
  display: flex;
}

.zm-fb-book.is-flipping-next {
  animation: zmFlipNext 0.32s ease;
}

.zm-fb-book.is-flipping-prev {
  animation: zmFlipPrev 0.32s ease;
}

@keyframes zmFlipNext {
  0% { transform: rotateY(0deg); }
  50% { transform: rotateY(-10deg) scale(0.98); }
  100% { transform: rotateY(0deg); }
}

@keyframes zmFlipPrev {
  0% { transform: rotateY(0deg); }
  50% { transform: rotateY(10deg) scale(0.98); }
  100% { transform: rotateY(0deg); }
}

.zm-fb-page {
  background: #FFFFFF;
  line-height: 0;
}

.zm-fb-page canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

.zm-fb-spine {
  width: 4px;
  align-self: stretch;
  background: linear-gradient(to right, rgba(0,0,0,0.35), rgba(0,0,0,0.08), rgba(0,0,0,0.35));
}

@media (max-width: 820px) {
  .zm-pf-card {
    padding: 26px 20px;
  }
  .zm-pf-row-2 {
    grid-template-columns: 1fr;
  }
  .zm-fb-spine,
  .zm-fb-page--right.is-hidden-mobile {
    display: none;
  }
}


/* =========================================================
   5. Standalone Page Template Header & Body
   ========================================================= */
body.zm-pf-standalone-body {
  margin: 0;
  padding: 0;
  background: #000000;
  color: #FFFFFF;
}

.zm-pf-topbar {
  background: #000000;
  border-bottom: 1px solid #1F1F1F;
  padding: 18px 24px;
}

.zm-pf-topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.zm-pf-brand {
  font-family: var(--zm-font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #FFFFFF;
  text-decoration: none;
}

.zm-pf-topnav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.zm-pf-nav-link {
  font-family: var(--zm-font-body);
  font-size: 14px;
  font-weight: 600;
  color: #A1A1AA;
  text-decoration: none;
}

.zm-pf-nav-link:hover {
  color: var(--zm-lime);
}

.zm-pf-standalone-main {
  background: #000000;
  min-height: calc(100vh - 70px);
}


/* =========================================================
   6. Full-Screen Flipbook Upgrade & 3D Page-Turn Leaf
   ========================================================= */
.zm-fb-fullscreen-shell {
  width: 100%;
  height: calc(100vh - 64px);
  height: calc(100dvh - 64px);
  display: flex;
  flex-direction: column;
  background: #000000;
}

.zm-fb-fullscreen-shell .zm-fb-wrapper {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  border: none;
  height: 100%;
}

.zm-fb-fullscreen-shell .zm-fb-stage {
  flex: 1 1 auto;
  min-height: 0;
  padding: 18px 20px;
  overflow: auto;
  perspective: 2200px;
}

.zm-fb-ctrl-btn--lime {
  background: var(--zm-lime);
  color: #000000;
  border-color: var(--zm-lime);
  text-decoration: none;
}

.zm-fb-ctrl-btn--lime:hover {
  background: var(--zm-lime-hover);
  color: #000000;
  border-color: var(--zm-lime-hover);
}

.zm-fb-book {
  position: relative;
  transform-style: preserve-3d;
}

.zm-fb-page {
  cursor: pointer;
}

.zm-fb-flip-leaf {
  display: none;
  position: absolute;
  top: 0;
  z-index: 20;
  transform-style: preserve-3d;
  transition: transform 0.52s cubic-bezier(0.645, 0.045, 0.355, 1);
  pointer-events: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.zm-fb-flip-leaf.is-active {
  display: block;
}

.zm-fb-flip-leaf.is-next {
  right: 0;
  transform-origin: left center;
  transform: rotateY(0deg);
}

.zm-fb-flip-leaf.is-next.is-turning {
  transform: rotateY(-180deg);
}

.zm-fb-flip-leaf.is-prev {
  left: 0;
  transform-origin: right center;
  transform: rotateY(0deg);
}

.zm-fb-flip-leaf.is-prev.is-turning {
  transform: rotateY(180deg);
}

.zm-fb-flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #FFFFFF;
  line-height: 0;
}

.zm-fb-flip-back {
  transform: rotateY(180deg);
}


/* =========================================================
   7. Smart 4-Step Registration Wizard & Sticky Library Button
   ========================================================= */
.zm-pf-card--wizard {
  max-width: 720px;
  margin: 0 auto;
}

.zm-pf-opt {
  color: var(--zm-muted);
  font-weight: 400;
}

.zm-wiz-progress {
  margin-bottom: 24px;
}

.zm-wiz-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.zm-wiz-step-pill {
  font-size: 12px;
  font-weight: 700;
  color: var(--zm-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--zm-surface-2);
  border: 1px solid var(--zm-border);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zm-wiz-step-pill.is-active {
  color: #000000;
  background: var(--zm-lime);
  border-color: var(--zm-lime);
}

.zm-wiz-step-pill.is-done {
  color: var(--zm-lime);
  border-color: rgba(196, 255, 14, 0.45);
}

.zm-wiz-bar {
  height: 4px;
  background: var(--zm-surface-2);
  border-radius: 999px;
  overflow: hidden;
}

.zm-wiz-bar-fill {
  height: 100%;
  background: var(--zm-lime);
  transition: width 0.25s ease;
}

.zm-wiz-pane {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.zm-wiz-pane.is-active {
  display: flex;
}

.zm-wiz-choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.zm-wiz-choices--2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.zm-wiz-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  background: var(--zm-surface-2);
  border: 1px solid var(--zm-border);
  border-radius: 11px;
  font-size: 13.5px;
  line-height: 1.4;
  color: #E4E4E7;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.zm-wiz-choice:hover {
  border-color: rgba(196, 255, 14, 0.55);
}

.zm-wiz-choice:has(input:checked) {
  border-color: var(--zm-lime);
  background: rgba(196, 255, 14, 0.1);
  color: #FFFFFF;
}

.zm-wiz-choice input {
  margin: 2px 0 0;
  accent-color: var(--zm-lime);
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.zm-wiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.zm-wiz-nav .zm-pf-btn--lime {
  margin-left: auto;
}

.zm-pf-foot {
  margin: 4px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--zm-muted);
}

/* Sticky Floating Book Library Button */
.zm-sticky-lib-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 9999px;
  background: #C4FF0E;
  color: #000000 !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(196, 255, 14, 0.28), 0 4px 12px rgba(0, 0, 0, 0.45);
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.zm-sticky-lib-btn:hover {
  background: #D4FF4D;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(196, 255, 14, 0.36), 0 6px 16px rgba(0, 0, 0, 0.55);
}

@media (max-width: 640px) {
  .zm-wiz-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .zm-wiz-choices--2col {
    grid-template-columns: 1fr;
  }
  .zm-sticky-lib-btn {
    bottom: 16px;
    right: 16px;
    padding: 11px 18px;
    font-size: 13px;
  }
}


/* Dark-theme native <select> fix */
.zm-pf-shell {
  color-scheme: dark;
}

select.zm-pf-input {
  color-scheme: dark;
  background-color: #181818 !important;
  color: #FFFFFF !important;
  cursor: pointer;
}

select.zm-pf-input option {
  background-color: #181818 !important;
  color: #FFFFFF !important;
}


/* =========================================================
   8. Login Register CTA, Smart Flipbook Bar & 3D Book Look
   ========================================================= */
.zm-pf-login-register-cta {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--zm-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.zm-pf-login-register-cta span {
  font-size: 13px;
  color: var(--zm-muted);
}

/* Smart Pill-Grouped Flipbook Toolbar */
.zm-fb-toolbar {
  padding: 12px 24px !important;
  background: rgba(10, 10, 10, 0.96) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #1F1F1F !important;
}

.zm-fb-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #141414;
  border: 1px solid #262626;
  border-radius: 9999px;
  padding: 4px;
}

.zm-fb-pill-btn {
  background: transparent;
  color: #FFFFFF;
  border: none;
  border-radius: 9999px;
  padding: 7px 14px;
  font-family: var(--zm-font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.zm-fb-pill-btn:hover:not(:disabled) {
  background: #C4FF0E;
  color: #000000;
}

.zm-fb-pill-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.zm-fb-nav-pill .zm-fb-page-info {
  font-size: 12.5px;
  font-weight: 600;
  color: #A1A1AA;
  padding: 0 10px;
}

.zm-fb-icon-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #141414;
  color: #E4E4E7;
  border: 1px solid #262626;
  border-radius: 50%;
  font-family: var(--zm-font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.zm-fb-icon-btn--text {
  width: auto;
  padding: 0 12px;
  border-radius: 9999px;
  font-size: 12px;
}

.zm-fb-icon-btn:hover {
  border-color: #C4FF0E;
  color: #C4FF0E;
}

/* Zoom-Out-to-Fit Entrance Animation */
@keyframes zmZoomFitIn {
  0% {
    opacity: 0;
    transform: scale(1.1) translateY(12px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.zm-fb-book.is-zoom-fit {
  animation: zmZoomFitIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* 3D Physical Book Styling */
.zm-fb-book {
  box-shadow:
    0 32px 72px rgba(0, 0, 0, 0.88),
    0 12px 28px rgba(0, 0, 0, 0.65) !important;
  border-radius: 4px;
}

.zm-fb-book.is-cover .zm-fb-page--right {
  border-radius: 2px 6px 6px 2px;
  box-shadow:
    inset 6px 0 14px rgba(0, 0, 0, 0.25),
    4px 0 0 #E4E4E7,
    5px 0 0 #262626,
    8px 0 0 #D4D4D8,
    9px 0 0 #262626;
}

.zm-fb-book.is-open .zm-fb-page--left {
  position: relative;
  border-radius: 4px 0 0 4px;
  box-shadow:
    -4px 0 0 #E4E4E7,
    -5px 0 0 #262626,
    -8px 0 0 #D4D4D8,
    -9px 0 0 #262626;
}

.zm-fb-book.is-open .zm-fb-page--right {
  position: relative;
  border-radius: 0 4px 4px 0;
  box-shadow:
    4px 0 0 #E4E4E7,
    5px 0 0 #262626,
    8px 0 0 #D4D4D8,
    9px 0 0 #262626;
}

.zm-fb-book.is-open .zm-fb-page--left::after,
.zm-fb-book.is-open .zm-fb-page--right::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  pointer-events: none;
}

.zm-fb-book.is-open .zm-fb-page--left::after {
  right: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0));
}

.zm-fb-book.is-open .zm-fb-page--right::after {
  left: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0));
}


/* Smooth Cover / Back-Cover 3D Open-Close Transition */
.zm-fb-book {
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.18s ease !important;
}

.zm-fb-book.is-switching {
  opacity: 0;
  transform: scale(0.95) rotateY(-8deg);
}

.zm-fb-book.is-switched-in {
  opacity: 1;
  transform: scale(1) rotateY(0deg);
}

.zm-fb-book.is-back-cover .zm-fb-page--left {
  border-radius: 6px 2px 2px 6px;
  box-shadow:
    inset -6px 0 14px rgba(0, 0, 0, 0.25),
    -4px 0 0 #E4E4E7,
    -5px 0 0 #262626,
    -8px 0 0 #D4D4D8,
    -9px 0 0 #262626;
}


/* =========================================================
   9. Realistic 3D Studio Book & Smooth Cover-to-Spread Glide
   ========================================================= */
.zm-fb-stage {
  perspective: 2600px !important;
  background: radial-gradient(ellipse at 50% 45%, #1D2218 0%, #090A09 55%, #000000 100%) !important;
}

.zm-fb-book {
  transform-style: preserve-3d;
  transition: transform 0.62s cubic-bezier(0.25, 1, 0.5, 1) !important;
  box-shadow: none !important;
}

.zm-fb-book.is-cover {
  transform: translateX(-25%) rotateX(3deg);
}

.zm-fb-book.is-open {
  transform: translateX(0%) rotateX(3deg);
}

.zm-fb-book.is-back-cover {
  transform: translateX(25%) rotateX(3deg);
}

.zm-fb-book.is-mobile-single {
  transform: translateX(0%) rotateX(2deg);
}

.zm-fb-book.is-mobile-turning {
  opacity: 0.35;
  transform: scale(0.97);
}

.zm-fb-book.is-cover .zm-fb-page--right,
.zm-fb-book.is-open .zm-fb-page--left,
.zm-fb-book.is-open .zm-fb-page--right,
.zm-fb-book.is-back-cover .zm-fb-page--left {
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.82),
    0 10px 22px rgba(0, 0, 0, 0.55) !important;
}

.zm-fb-flip-leaf {
  transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65) !important;
}

.zm-fb-flip-leaf.is-next {
  left: 50% !important;
  right: auto !important;
  transform-origin: left center !important;
}

.zm-fb-flip-leaf.is-prev {
  right: 50% !important;
  left: auto !important;
  transform-origin: right center !important;
}

.zm-fb-flip-front::after,
.zm-fb-flip-back::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.14), transparent 22%, transparent 82%, rgba(0, 0, 0, 0.08));
}


/* =========================================================
   10. Zero-Scroll Viewport Lock & Centered Cover Fix
   ========================================================= */
html:has(.zm-fb-fullscreen-shell),
body.zm-pf-standalone-body:has(.zm-fb-fullscreen-shell) {
  height: 100vh !important;
  height: 100dvh !important;
  overflow: hidden !important;
  margin: 0 !important;
}

body.zm-pf-standalone-body:has(.zm-fb-fullscreen-shell) {
  display: flex !important;
  flex-direction: column !important;
}

body.zm-pf-standalone-body:has(.zm-fb-fullscreen-shell) .zm-pf-standalone-main {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

body.zm-pf-standalone-body:has(.zm-fb-fullscreen-shell) .zm-fb-fullscreen-shell {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
}

body.zm-pf-standalone-body:has(.zm-fb-fullscreen-shell) .zm-fb-stage {
  overflow: hidden !important;
}

body.zm-pf-standalone-body:has(.zm-fb-fullscreen-shell) .zm-fb-stage.is-zoomed {
  overflow: auto !important;
}

@keyframes zmStageZoomFit {
  0% {
    opacity: 0;
    transform: scale(1.06);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.zm-fb-stage.is-zoom-fit {
  animation: zmStageZoomFit 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Ensure is-zoom-fit never overrides translateX(-25% / +25%) on bookEl */
.zm-fb-book.is-zoom-fit {
  animation: none !important;
}
