/**
 * GeminiBook - Master Frontend Stylesheet
 * Consolidated from all frontend pages (Home, Prompt, Page, Category, Contact-Us)
 */

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: #f8fafc;
  color: #334155;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { color: inherit; font: inherit; }
button { border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid rgb(59 130 246 / .42); outline-offset: 3px; }
.promptsbook-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;
}

/* ==========================================================================
   404 Fallback Box Page
   ========================================================================== */
.box { max-width: 540px; margin: 40px auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 40px 30px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); text-align: center; }
.box h1 { font-size: 28px; color: #0f172a; margin-bottom: 12px; }
.box p { font-size: 15px; color: #64748b; line-height: 1.6; margin-bottom: 24px; }
a.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: 8px; background: #5b55d9; color: #fff; text-decoration: none; font-weight: 600; }
a.btn:hover { background: #4c46bd; }

/* ==========================================================================
   Navbar
   ========================================================================== */
.promptsbook-navbar {
  position: relative;
  z-index: 500;
  display: flex;
  align-items: center;
  height: 68px;
  padding: 0 20px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.promptsbook-navbar-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: auto;
  gap: 16px;
}
.promptsbook-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.promptsbook-brand-logo,
.promptsbook-footer-logo {
  display: block;
  transform-origin: center;
  animation: promptsbook-gemini-logo-rotate 3s linear infinite;
  will-change: transform;
}
@keyframes promptsbook-gemini-logo-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.promptsbook-brand-info {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.promptsbook-brand-name {
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.promptsbook-brand-tagline {
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .07em;
}
.promptsbook-nav-panel {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
}
.promptsbook-panel-header { display: none; }
.promptsbook-nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}
.promptsbook-menu-item { position: relative; }
.promptsbook-menu-link {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 8px;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease;
}
.promptsbook-menu-icon {
  display: inline-block;
  position: relative;
  top: -1px;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  flex-shrink: 0;
  vertical-align: middle;
}
.promptsbook-nav-menu > .promptsbook-menu-item:hover > .promptsbook-menu-link,
.promptsbook-nav-menu > .promptsbook-menu-item:focus-within > .promptsbook-menu-link {
  color: #334155;
  background: #eff6ff;
}
.promptsbook-chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #64748b;
  transition: transform .18s ease;
}

/* Submenu - Single level (No 3rd-level nested submenus) */
.promptsbook-sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 100;
  min-width: 220px;
  padding: 8px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #f8fbff;
  box-shadow: 0 12px 40px rgb(15 23 42 / .14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.promptsbook-sub-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  right: 0;
  left: 0;
  height: 10px;
}
.promptsbook-menu-item.promptsbook-is-active > .promptsbook-sub-menu,
.promptsbook-menu-item:hover > .promptsbook-sub-menu,
.promptsbook-menu-item:focus-within > .promptsbook-sub-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.promptsbook-sub-menu > .promptsbook-menu-item > .promptsbook-menu-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  color: #475569;
  font-size: 13.5px;
  font-weight: 500;
  transition: color .18s ease, background .18s ease;
}
.promptsbook-sub-menu > .promptsbook-menu-item:hover > .promptsbook-menu-link,
.promptsbook-sub-menu > .promptsbook-menu-item:focus-within > .promptsbook-menu-link {
  color: #1e40af;
  background: #eff6ff;
}

/* Navbar Right Controls */
.promptsbook-nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.promptsbook-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  transition: color .18s ease, background .18s ease;
}
.promptsbook-icon-btn:hover { color: #334155; background: #eff6ff; }
.promptsbook-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 8px;
  background: #5b55d9;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: background .18s ease, transform .12s;
}
.promptsbook-cta-btn:hover { background: #4c46bd; transform: translateY(-1px); }
.promptsbook-bar-cta { margin-left: 8px; }
.promptsbook-hamburger-btn { display: none; }
.promptsbook-menu-close-icon { display: none; }

/* Search Overlay & Modal */
.promptsbook-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  background: rgb(15 23 42 / .75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
}
.promptsbook-search-overlay.promptsbook-is-open { opacity: 1; visibility: visible; }
.promptsbook-search-modal {
  position: relative;
  width: min(560px, calc(100% - 32px));
  max-height: calc(100vh - 120px);
  padding: 48px 14px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 64px rgb(15 23 42 / .18);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transform: translateY(-10px);
  transition: transform .2s;
}
.promptsbook-search-modal::-webkit-scrollbar { display: none; width: 0; height: 0; }
.promptsbook-search-overlay.promptsbook-is-open .promptsbook-search-modal { transform: none; }
.promptsbook-search-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.promptsbook-search-close:hover,
.promptsbook-search-close:focus-visible { background: #e2e8f0; color: #334155; }
.promptsbook-search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.promptsbook-search-field svg { flex-shrink: 0; color: #64748b; }
.promptsbook-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #334155;
  font: 15px Inter, system-ui, sans-serif;
}
.promptsbook-search-input::placeholder { color: #64748b; }
.promptsbook-search-hint { margin-top: 9px; padding: 0 2px; color: #64748b; font-size: 11.5px; }
.promptsbook-search-hint kbd {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #f1f5f9;
  color: #64748b;
  font: 10px Inter, system-ui, sans-serif;
}
.promptsbook-trending-searches {
  margin-top: 1rem;
  padding: .9rem;
  border: 1px solid #374151;
  border-radius: .75rem;
  background: #0f172a;
}
.promptsbook-trending-title {
  margin: 0 0 .65rem;
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.3;
}
.promptsbook-trending-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem;
}
.promptsbook-trending-item {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 2.15rem;
  gap: .45rem;
  padding: .42rem .55rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  color: #fff;
  cursor: pointer;
  font-size: .76rem;
  line-height: 1.25;
  text-align: left;
  transition: border-color .18s ease, filter .18s ease;
}
.promptsbook-trending-item:hover,
.promptsbook-trending-item:focus-visible { border-color: currentColor; filter: brightness(.92); }
.promptsbook-trending-index { flex: 0 0 auto; color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .02em; }
.promptsbook-trending-item--blue { background: #4285f4; }
.promptsbook-trending-item--red { background: #ea4335; }
.promptsbook-trending-item--green { background: #34a853; }
.promptsbook-trending-item--purple { background: #8b5cf6; }
.promptsbook-trending-item--teal { background: #14b8a6; }

/* Mobile Navbar Styles */
@media (max-width: 1024px) {
  .promptsbook-navbar-inner { justify-content: space-between; }
  .promptsbook-nav-right { margin-left: auto; }
  .promptsbook-hamburger-btn { display: flex; }
  .promptsbook-bar-cta { display: none; }
  .promptsbook-navbar.promptsbook-menu-open { z-index: 9000; }
  .promptsbook-navbar.promptsbook-menu-open::after {
    content: "";
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 8050;
    height: 78px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
  }
  .promptsbook-navbar.promptsbook-menu-open .promptsbook-bar-cta {
    position: fixed;
    right: 18px;
    bottom: 16px;
    left: 18px;
    z-index: 8100;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    margin: 0;
    padding: 13px;
    text-align: center;
    font-size: 15px;
    transform: none !important;
  }
  .promptsbook-nav-panel {
    position: fixed;
    top: 68px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 8000;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: #fff;
    overscroll-behavior: contain;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .32s cubic-bezier(.4, 0, .2, 1), visibility .32s;
  }
  .promptsbook-nav-panel::-webkit-scrollbar { display: none; width: 0; height: 0; }
  .promptsbook-nav-panel.promptsbook-is-open { transform: none; visibility: visible; }
  .promptsbook-navbar.promptsbook-menu-open .promptsbook-brand,
  .promptsbook-navbar.promptsbook-menu-open .promptsbook-nav-right { position: relative; z-index: 9001; }
  .promptsbook-navbar.promptsbook-menu-open .promptsbook-menu-open-icon { display: none; }
  .promptsbook-navbar.promptsbook-menu-open .promptsbook-menu-close-icon { display: block; }
  .promptsbook-panel-header { display: none; }
  .promptsbook-nav-menu {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 10px 88px;
  }
  .promptsbook-nav-menu > .promptsbook-menu-item + .promptsbook-menu-item { margin-top: 8px; }
  .promptsbook-sub-menu > .promptsbook-menu-item + .promptsbook-menu-item { margin-top: 4px; }
  .promptsbook-menu-link { justify-content: flex-start; gap: 10px; white-space: normal; }
  .promptsbook-nav-menu > .promptsbook-menu-item > .promptsbook-menu-link {
    padding: 12px 14px;
    color: #334155;
    font-size: 15px;
    font-weight: 500;
  }
  .promptsbook-sub-menu {
    position: static;
    display: none;
    min-width: 0;
    margin-left: 6px;
    padding: 8px 0 8px 14px;
    border: 0;
    border-left: 2px solid #dbeafe;
    border-radius: 0;
    background: #f8fbff;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    overflow: visible;
  }
  .promptsbook-sub-menu::before { display: none; }
  .promptsbook-menu-item.promptsbook-is-expanded > .promptsbook-sub-menu { display: block; }
  .promptsbook-nav-menu > .promptsbook-menu-item.promptsbook-is-expanded > .promptsbook-menu-link {
    background: #eef6ff !important;
    color: #315b8f !important;
  }
  .promptsbook-sub-menu > .promptsbook-menu-item > .promptsbook-menu-link {
    padding: 10px 14px;
    color: #475569 !important;
    font-size: 14px;
    font-weight: 400;
  }
  .promptsbook-menu-link .promptsbook-chevron {
    width: 18px;
    height: 18px;
    margin-left: auto;
    transform: none !important;
    opacity: 1;
  }
  .promptsbook-menu-item.promptsbook-is-expanded > .promptsbook-menu-link .promptsbook-chevron {
    transform: rotate(180deg) !important;
  }
}
@media (max-width: 600px) {
  .promptsbook-navbar { padding: 0 12px; }
  .promptsbook-navbar-inner { gap: 8px; }
  .promptsbook-brand { gap: 8px; min-width: 0; }
  .promptsbook-brand-logo { width: 32px; height: 32px; }
  .promptsbook-brand-info { min-width: 0; }
  .promptsbook-brand-name { margin-bottom: 5px; font-size: 15px; white-space: nowrap; }
  .promptsbook-brand-tagline { overflow: hidden; font-size: 9px; letter-spacing: .045em; text-overflow: ellipsis; white-space: nowrap; }
  .promptsbook-nav-right { gap: 2px; }
  .promptsbook-icon-btn { width: 36px; height: 36px; }
  .promptsbook-search-overlay { padding-top: 16px; }
  .promptsbook-search-modal { width: calc(100% - 20px); max-height: calc(100vh - 32px); margin: 0 10px; padding: 48px 12px 12px; }
  .promptsbook-search-close { display: inline-flex; width: 28px; height: 28px; top: 9px; right: 9px; border-radius: 6px; }
  .promptsbook-trending-list { grid-template-columns: 1fr; gap: .4rem; }
  .promptsbook-trending-item { min-height: 2.35rem; padding: .5rem .65rem; font-size: .8rem; }
}

/* ==========================================================================
   Advertisements
   ========================================================================== */
.promptsbook-final-ad-slot {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(970px, calc(100% - 40px));
  height: 250px;
  min-height: 250px;
  margin: 24px auto 32px;
  border: 1px dashed #d9d8f8;
  border-radius: 12px;
  background: #fafaff;
  color: #a5aed0;
  overflow: hidden;
  contain: layout paint;
}
.promptsbook-final-ad-slot--grid {
  grid-column: 1 / -1;
  width: min(970px, 100%);
  margin: 24px auto;
}
.promptsbook-final-ad-slot--detail {
  width: 100%;
  max-width: 100%;
  margin: 20px 0 0 0;
}
.promptsbook-final-ad-slot ins.adsbygoogle {
  display: block;
  width: 100%;
}
.promptsbook-final-ad-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font: 600 10px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  pointer-events: none;
}
@media (max-width: 680px) {
  .promptsbook-final-ad-slot {
    width: 300px;
    max-width: calc(100vw - 32px);
    height: 250px;
    min-height: 250px;
    margin: 20px auto 28px;
  }
  .promptsbook-final-ad-slot--grid {
    width: 300px;
    max-width: 100%;
    margin: 22px auto;
  }
  .promptsbook-final-ad-slot--detail {
    width: 100%;
    max-width: 100%;
    margin: 16px 0 0 0;
  }
}

/* ==========================================================================
   Hero Section (Full Width, No Image, Clean Center Alignment)
   ========================================================================== */
.promptsbook-hero {
  --hero-ink: #172033;
  --hero-muted: #64748b;
  --hero-border: #e2e8f0;
  --hero-accent: #5b55d9;
  --hero-accent-dark: #4741b8;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(48px, 6vw, 84px) 20px clamp(40px, 5vw, 68px);
  background: #f7f8fc;
  color: var(--hero-ink);
  text-align: center;
}
.promptsbook-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 25%, rgb(91 85 217 / .10), transparent 28rem),
              linear-gradient(135deg, transparent 0 68%, rgb(225 229 246 / .5) 68% 100%);
  pointer-events: none;
}
.promptsbook-hero-wrap {
  width: min(100%, 1120px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.promptsbook-hero-content {
  width: 100%;
  max-width: 920px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.promptsbook-hero-title {
  width: 100%;
  max-width: 920px;
  margin: 0;
  color: var(--hero-ink);
  font-size: clamp(28px, 4.5vw, 54px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.12;
  text-wrap: balance;
}
.promptsbook-hero-title em {
  color: var(--hero-accent);
  font-style: normal;
}
.promptsbook-hero-title-line {
  display: inline;
}
.promptsbook-hero-description {
  width: 100%;
  max-width: 680px;
  margin: 20px auto 0;
  color: var(--hero-muted);
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.75;
  text-align: center;
}
.promptsbook-hero-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  margin-top: 24px;
}
.promptsbook-hero-share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 6px;
  border: 1px solid var(--hero-border);
  border-radius: 12px;
  background: rgb(255 255 255 / .84);
  box-shadow: 0 4px 12px rgb(15 23 42 / .04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
  cursor: pointer;
}
.promptsbook-hero-share-button:hover,
.promptsbook-hero-share-button:focus-visible {
  border-color: #c8c9f6;
  background: #fff;
  box-shadow: 0 8px 18px rgb(15 23 42 / .09);
  transform: translateY(-2px);
}
.promptsbook-hero-share-button svg {
  display: block;
  width: 26px;
  height: 26px;
  max-width: 100%;
  max-height: 100%;
}
.promptsbook-hero-share-button--copy svg {
  width: 24px;
  height: 24px;
}
@media (max-width: 640px) {
  .promptsbook-hero { padding: 40px 16px 46px; }
  .promptsbook-hero-title { font-size: 26px; line-height: 1.2; }
  .promptsbook-hero-description { font-size: 14.5px; margin-top: 14px; }
  .promptsbook-hero-share { gap: 8px; margin-top: 20px; }
  .promptsbook-hero-share-button { width: 39px; height: 39px; padding: 5px; }
}

/* ==========================================================================
   Prompt Cards Grid Section (Directly after Hero - No Heading/H2)
   ========================================================================== */
.promptsbook-prompt-section {
  position: relative;
  padding: clamp(40px, 5vw, 64px) 20px 48px;
  background: #fff;
  color: #172033;
  border-top: 1px solid #eef2f7;
}
.promptsbook-prompt-wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
}
.promptsbook-prompt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 0;
}
.promptsbook-prompt-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgb(15 23 42 / .06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.promptsbook-prompt-card:hover {
  border-color: #d9d8f8;
  box-shadow: 0 16px 36px rgb(15 23 42 / .10);
  transform: translateY(-3px);
}
.promptsbook-prompt-image-button {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #eef2f7;
  background: #e9edf8;
  cursor: zoom-in;
  overflow: hidden;
}
.promptsbook-prompt-image-button:focus-visible { outline-offset: -4px; }
.promptsbook-prompt-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  transition: transform .35s ease;
}
.promptsbook-prompt-image-button:hover .promptsbook-prompt-image,
.promptsbook-prompt-image-button:focus-visible .promptsbook-prompt-image {
  transform: scale(1.035);
}
.promptsbook-prompt-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 19px 19px 20px;
}
.promptsbook-card-title-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.promptsbook-card-title-link:hover .promptsbook-prompt-card-title,
.promptsbook-card-title-link:focus-visible .promptsbook-prompt-card-title {
  color: #5b55d9;
}
.promptsbook-prompt-card-title {
  margin: 0 0 8px;
  color: #172033;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.3;
  transition: color .18s ease;
}
.promptsbook-card-category-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 9px;
}
.promptsbook-card-pinned-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8.5px;
  border-radius: 999px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.2px;
  user-select: none;
}
.promptsbook-card-pinned-badge svg {
  width: 11.5px;
  height: 11.5px;
  flex-shrink: 0;
  fill: #d97706;
}
.promptsbook-card-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3.5px 10px;
  border-radius: 999px;
  background: #f4f3ff;
  border: 1px solid #d9d8f8;
  color: #5b55d9;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.25;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .12s ease;
}
.promptsbook-card-category-badge:hover,
.promptsbook-card-category-badge:focus-visible {
  background: #5b55d9;
  border-color: #5b55d9;
  color: #ffffff;
  transform: translateY(-1px);
}
.promptsbook-card-category-badge svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.promptsbook-prompt-box {
  height: 135px;
  max-height: 135px;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0;
  padding: 9px 11px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  overscroll-behavior: contain;
}
.promptsbook-prompt-box:focus-visible {
  outline: 2px solid #5b55d9;
  outline-offset: 1px;
}
.promptsbook-prompt-box::-webkit-scrollbar {
  width: 5px;
}
.promptsbook-prompt-box::-webkit-scrollbar-track {
  background: transparent;
}
.promptsbook-prompt-box::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.promptsbook-prompt-box::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
.promptsbook-prompt-text {
  margin: 0;
  color: #475569;
  font-size: 13.5px;
  line-height: 1.55;
  text-align: justify;
  text-justify: inter-word;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.promptsbook-prompt-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 100%;
  min-height: 40px;
  margin-top: 10px;
  padding: 9px 15px;
  border: 1px solid #d9d8f8;
  border-radius: 9px;
  background: #f4f3ff;
  color: #4c46bd;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.promptsbook-prompt-copy-icon {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-right: 8px;
}
.promptsbook-prompt-copy-icon[hidden] { display: none; }
.promptsbook-prompt-copied-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-right: 8px;
}
.promptsbook-prompt-copied-icon[hidden] { display: none; }
.promptsbook-prompt-copy--copied {
  border-color: #b7e8ca;
  background: #effcf4;
  color: #166534;
}
.promptsbook-prompt-copy:hover,
.promptsbook-prompt-copy:focus-visible {
  border-color: #5b55d9;
  background: #5b55d9;
  color: #fff;
  box-shadow: 0 8px 18px rgb(91 85 217 / .18);
  transform: translateY(-1px);
}
.promptsbook-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 48px auto 0;
}
.promptsbook-pagination-pages {
  display: flex;
  align-items: center;
  gap: 10px;
}
.promptsbook-pagination-button,
.promptsbook-pagination-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 42px;
  padding: 0 15px;
  border: 1px solid #d9d8f8;
  border-radius: 10px;
  background: #fff;
  color: #4c46bd;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.promptsbook-pagination-icon {
  display: block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-right: 6px;
}
.promptsbook-pagination-icon-next { margin-right: 0; margin-left: 6px; }
.promptsbook-pagination-page { min-width: 42px; padding: 0; background: #f4f3ff; }
.promptsbook-pagination-page[aria-current="page"] {
  border-color: #5b55d9;
  background: #5b55d9;
  color: #fff;
  box-shadow: 0 8px 18px rgb(91 85 217 / .18);
}
.promptsbook-pagination-button:hover,
.promptsbook-pagination-button:focus-visible,
.promptsbook-pagination-page:hover,
.promptsbook-pagination-page:focus-visible {
  border-color: #5b55d9;
  background: #5b55d9;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgb(91 85 217 / .18);
}
@media (max-width: 900px) {
  .promptsbook-prompt-grid { gap: 18px; }
  .promptsbook-prompt-card-body { padding: 17px; }
  .promptsbook-prompt-box {
    height: 140px;
    max-height: 140px;
  }
  .promptsbook-prompt-text {
    font-size: 13px;
    line-height: 1.5;
  }
}
@media (max-width: 680px) {
  .promptsbook-prompt-section { padding: 40px 16px 36px; }
  .promptsbook-prompt-card-title { font-size: 15px; }
  .promptsbook-prompt-grid { grid-template-columns: 1fr; gap: 18px; }
  .promptsbook-prompt-card-body { padding: 18px; }
  .promptsbook-prompt-box {
    height: 175px;
    max-height: 175px;
    padding: 11px 13px;
  }
  .promptsbook-prompt-box .promptsbook-prompt-text {
    font-size: 13.5px;
    line-height: 1.55;
  }
  .promptsbook-pagination { flex-direction: column; gap: 14px; margin-top: 36px; }
  .promptsbook-pagination-pages { gap: 12px; }
  .promptsbook-pagination-button { min-width: 132px; }
}



/* ==========================================================================
   Prompt Hero Section (Two-Column Layout for Prompt Page)
   ========================================================================== */
.pb-prompt-hero {
  background: #fff;
  border-top: 1px solid #eef2f7;
  padding: clamp(32px, 4vw, 56px) 20px clamp(40px, 5vw, 64px);
}
.pb-prompt-hero-wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

/* LEFT COLUMN */
.pb-prompt-hero-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Prompt Image — fixed aspect ratio with popup zoom preview */
.pb-prompt-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  background: #e9edf8;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 28px rgb(15 23 42 / .08);
  contain: layout paint;
}
.pb-prompt-image-button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
  text-align: inherit;
}
.pb-prompt-image-button:focus-visible {
  outline: 3px solid #5b55d9;
  outline-offset: -3px;
}
.pb-prompt-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  transition: transform .35s ease;
}
.pb-prompt-image-button:hover .pb-prompt-image,
.pb-prompt-image-button:focus-visible .pb-prompt-image {
  transform: scale(1.035);
}

/* Share Buttons below image */
.pb-share-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pb-share-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: .06em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.pb-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 12px rgb(15 23 42 / .04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
  cursor: pointer;
  text-decoration: none;
}
.pb-share-btn:hover,
.pb-share-btn:focus-visible {
  border-color: #c8c9f6;
  background: #fff;
  box-shadow: 0 8px 18px rgb(15 23 42 / .09);
  transform: translateY(-2px);
}
.pb-share-btn svg {
  display: block;
  width: 26px;
  height: 26px;
  max-width: 100%;
  max-height: 100%;
}
.pb-share-btn--copy svg { width: 24px; height: 24px; }

/* RIGHT COLUMN */
.pb-prompt-hero-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

/* Category Badges / Tags Wrap (Above Title) */
.pb-category-badges-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* Individual Category Tag Badge */
.pb-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #f4f3ff;
  border: 1px solid #d9d8f8;
  color: #5b55d9;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  width: fit-content;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .12s ease;
}
.pb-category-badge:hover,
.pb-category-badge:focus-visible {
  background: #5b55d9;
  border-color: #5b55d9;
  color: #fff;
  transform: translateY(-1px);
}
.pb-category-badge svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* Prompt Title H1 */
.pb-prompt-title {
  margin: 0;
  color: #0f172a;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.15;
  text-wrap: balance;
}

/* Prompt Text Container */
.pb-prompt-container {
  position: relative;
  border: 1px solid #d9d8f8;
  border-radius: 16px;
  background: #f8f7ff;
  overflow: hidden;
}
.pb-prompt-container-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #ede9ff;
  background: #efedff;
}
.pb-prompt-container-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #5b55d9;
  user-select: none;
  white-space: nowrap;
}

/* Copy Prompt Button */
.pb-prompt-copy-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 144px;
  min-width: 144px;
  height: 44px;
  min-height: 44px;
  padding: 0 16px;
  box-sizing: border-box;
  flex-shrink: 0;
  border: 1px solid rgb(255 255 255 / .24);
  border-radius: 9999px;
  background: linear-gradient(135deg, #534cd6 0%, #685ff0 50%, #7e73f8 100%);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  user-select: none;
  box-shadow: 0 4px 14px rgb(83 76 214 / .32), 0 1px 2px rgb(15 23 42 / .08), inset 0 1px 0 rgb(255 255 255 / .25);
  transition: transform .18s ease, box-shadow .22s ease, background .25s ease, border-color .25s ease, filter .18s ease;
  will-change: transform, box-shadow;
}
.pb-prompt-copy-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 25%, rgb(255 255 255 / .28) 50%, transparent 75%);
  transform: translateX(-100%);
  transition: transform .48s ease;
  pointer-events: none;
}
.pb-prompt-copy-btn:hover::before,
.pb-prompt-copy-btn:focus-visible::before {
  transform: translateX(100%);
}
.pb-prompt-copy-btn:hover,
.pb-prompt-copy-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgb(83 76 214 / .44), 0 2px 6px rgb(15 23 42 / .1), inset 0 1px 0 rgb(255 255 255 / .35);
  filter: brightness(1.05);
}
.pb-prompt-copy-btn:active {
  transform: translateY(0) scale(.98);
  box-shadow: 0 2px 8px rgb(83 76 214 / .28);
}
:focus-visible.pb-prompt-copy-btn {
  outline: 3px solid rgb(99 102 241 / .45);
  outline-offset: 3px;
}
.pb-prompt-copy-btn svg {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  vertical-align: middle;
}
.pb-prompt-copy-btn [hidden] {
  display: none !important;
}
.pb-copy-label {
  display: inline-block;
  line-height: 1;
}
.pb-prompt-copy-btn--copied {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  border-color: rgb(255 255 255 / .35) !important;
  box-shadow: 0 4px 18px rgb(16 185 129 / .48), 0 0 16px rgb(16 185 129 / .32), inset 0 1px 0 rgb(255 255 255 / .32) !important;
  filter: none !important;
  transform: translateY(-1px) !important;
}
.pb-prompt-copy-btn--copied::before {
  display: none;
}
@keyframes pb-check-bounce {
  0% { transform: scale(0.4) rotate(-12deg); opacity: 0; }
  60% { transform: scale(1.22) rotate(3deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.pb-prompt-copy-btn--copied .pb-copied-icon {
  display: inline-block;
  animation: pb-check-bounce .3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Prompt Text & Clean Paragraphs — Fixed Height Scrollable Box */
.pb-prompt-text-wrap {
  height: 220px;
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px 20px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  overscroll-behavior: contain;
}
.pb-prompt-text-wrap:focus-visible {
  outline: 2px solid #5b55d9;
  outline-offset: -2px;
}
.pb-prompt-text-wrap::-webkit-scrollbar {
  width: 6px;
}
.pb-prompt-text-wrap::-webkit-scrollbar-track {
  background: transparent;
}
.pb-prompt-text-wrap::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.pb-prompt-text-wrap::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
.pb-prompt-text {
  margin: 0 0 14px;
  color: #334155;
  font-size: 15px;
  line-height: 1.75;
  text-align: justify;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.pb-prompt-text:last-child {
  margin-bottom: 0;
}

/* Meta Info Row */
.pb-prompt-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 4px;
}
.pb-prompt-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 500;
}
.pb-prompt-meta-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #94a3b8;
}

/* Responsive */
@media (max-width: 860px) {
  .pb-prompt-hero-wrap {
    grid-template-columns: 280px 1fr;
    gap: 24px;
  }
}
@media (max-width: 680px) {
  .pb-prompt-hero {
    padding: 28px 16px 40px;
  }
  .pb-prompt-hero-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .pb-prompt-image-wrap {
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
  }
  .pb-share-row { justify-content: center; }
  .pb-prompt-title { font-size: 22px; }
  .pb-prompt-container-header {
    padding: 10px 14px;
  }
  .pb-prompt-text-wrap {
    height: 180px;
    max-height: 180px;
    padding: 14px 16px;
  }
}
@media (max-width: 380px) {
  .pb-prompt-container-header {
    padding: 8px 10px;
    gap: 8px;
  }
  .pb-prompt-container-label {
    font-size: 10.5px;
  }
}

/* ==========================================================================
   Page Content Box & Comprehensive Typography CSS (.page-content)
   ========================================================================== */
.promptsbook-page-section {
  padding: clamp(40px, 6vw, 76px) 20px clamp(56px, 7vw, 92px);
  background: #f8fafc;
}
.promptsbook-page-wrap {
  width: min(100%, 880px);
  margin: 0 auto;
}

/* Main Content Box */
.page-content {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 14px 40px rgb(15 23 42 / .05);
  padding: clamp(28px, 5.5vw, 64px);
  color: #334155;
  font-size: 16px;
  line-height: 1.72;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Headings (h2, h3, h4, h5, h6) */
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
  color: #0f172a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-weight: 700;
  letter-spacing: -.025em;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  text-wrap: balance;
}

.page-content > :first-child {
  margin-top: 0 !important;
}

.page-content h1 {
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.2;
  letter-spacing: -.035em;
  padding-bottom: 0.4em;
  border-bottom: 1px solid #f1f5f9;
}

.page-content h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.25;
  letter-spacing: -.03em;
  padding-bottom: 0.35em;
  border-bottom: 1px solid #f1f5f9;
}

.page-content h3 {
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.3;
}

.page-content h4 {
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.35;
  color: #1e293b;
}

.page-content h5 {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.4;
  color: #334155;
  font-weight: 600;
}

.page-content h6 {
  font-size: 14px;
  line-height: 1.45;
  color: #5b55d9;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Text & Paragraphs (p) */
.page-content p {
  margin-top: 0;
  margin-bottom: 1.2em;
  line-height: 1.72;
  color: #334155;
}

.page-content p:last-child {
  margin-bottom: 0;
}

.page-content .lead,
.page-content p.lead {
  font-size: clamp(17px, 1.6vw, 18.5px);
  line-height: 1.75;
  color: #475569;
  font-weight: 400;
}

.page-content strong,
.page-content b {
  color: #0f172a;
  font-weight: 700;
}

.page-content em,
.page-content i {
  font-style: italic;
}

.page-content mark {
  background: #fef08a;
  color: #713f12;
  padding: 0.12em 0.35em;
  border-radius: 4px;
}

/* Hyperlinks (a) */
.page-content a {
  color: #4741b8;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: rgb(91 85 217 / .45);
  transition: color .18s ease, text-decoration-color .18s ease;
}

.page-content a:hover,
.page-content a:focus-visible {
  color: #312b9a;
  text-decoration-color: #312b9a;
}

/* Lists (ul, ol, li) */
.page-content ul,
.page-content ol {
  margin-top: 0;
  margin-bottom: 1.2em;
  padding-left: 1.75em;
}

.page-content ul {
  list-style: disc;
}

.page-content ol {
  list-style: decimal;
}

.page-content li {
  margin-bottom: 0.5em;
  line-height: 1.68;
  color: #334155;
}

.page-content li:last-child {
  margin-bottom: 0;
}

.page-content li::marker {
  color: #5b55d9;
  font-weight: 700;
}

/* Sub-list styling for nested bullet points */
.page-content ul ul {
  list-style: circle;
  margin-top: 0.45em;
  margin-bottom: 0.45em;
  padding-left: 1.5em;
}

.page-content ul ul ul {
  list-style: square;
}

.page-content ol ol {
  list-style: lower-alpha;
  margin-top: 0.45em;
  margin-bottom: 0.45em;
  padding-left: 1.5em;
}

.page-content ol ol ol {
  list-style: lower-roman;
}

.page-content ol ul {
  list-style: circle;
  margin-top: 0.45em;
  margin-bottom: 0.45em;
  padding-left: 1.5em;
}

.page-content ul ol {
  list-style: decimal;
  margin-top: 0.45em;
  margin-bottom: 0.45em;
  padding-left: 1.5em;
}

/* Blockquotes (blockquote) */
.page-content blockquote {
  margin: 1.5em 0;
  padding: 1.25rem 1.6rem;
  border-left: 4px solid #5b55d9;
  border-radius: 0 14px 14px 0;
  background: #f5f4fe;
  color: #334155;
  font-style: italic;
  font-size: 1.025rem;
  line-height: 1.72;
}

.page-content blockquote p {
  margin-bottom: 0.65em;
  color: inherit;
  font-style: italic;
}

.page-content blockquote p:last-child {
  margin-bottom: 0;
}

.page-content blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 700;
  color: #5b55d9;
}

/* Tables (table, th, td) & Responsive Wrapper */
.page-content .table-responsive,
.page-content .page-table-wrapper {
  width: 100%;
  margin: 1.6em 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgb(15 23 42 / .03);
}

.page-content table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.page-content .table-responsive table,
.page-content .page-table-wrapper table {
  margin: 0;
  border: 0;
}

.page-content > table {
  margin: 1.6em 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

.page-content caption {
  padding: 0.85rem 1.15rem;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.page-content th,
.page-content td {
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}

.page-content th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.page-content tbody tr:last-child td {
  border-bottom: none;
}

.page-content tbody tr:hover td {
  background: #f8fafc;
}

/* Horizontal Rules (hr) */
.page-content hr {
  margin: 2.25em 0;
  border: 0;
  height: 1px;
  background-color: #e2e8f0;
}

/* Code Blocks (code, pre) */
.page-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.875em;
  padding: 0.2em 0.45em;
  border-radius: 6px;
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}

.page-content pre {
  margin: 1.6em 0;
  padding: 1.2rem 1.35rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  background: #0f172a;
  color: #f1f5f9;
  line-height: 1.68;
  font-size: 0.875rem;
  border: 1px solid #1e293b;
}

.page-content pre code {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  white-space: pre;
}

/* Responsive typography tweaks */
@media (max-width: 640px) {
  .promptsbook-page-section {
    padding: 32px 14px 48px;
  }
  .page-content {
    padding: 24px 18px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.68;
  }
  .page-content ul,
  .page-content ol {
    padding-left: 1.4em;
  }
  .page-content blockquote {
    padding: 1rem 1.15rem;
    margin: 1.25em 0;
    font-size: 0.95rem;
  }
  .page-content th,
  .page-content td {
    padding: 0.75rem 0.85rem;
    font-size: 0.875rem;
  }
}

/* ==========================================================================
   Contact Form Section
   ========================================================================== */
.promptsbook-contact-section {
  position: relative;
  padding: clamp(56px, 7vw, 88px) 20px 48px;
  background: #fff;
  color: #172033;
  border-top: 1px solid #eef2f7;
}
.promptsbook-contact-wrap {
  width: min(920px, 100%);
  margin: 0 auto;
}
.promptsbook-contact-box {
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 50px rgb(15 23 42 / .07);
}
.promptsbook-contact-heading {
  max-width: 680px;
  margin: 0 auto 34px;
  text-align: center;
}
.promptsbook-contact-heading h2 {
  margin: 0;
  color: #172033;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1.12;
}
.promptsbook-contact-heading p {
  margin: 16px auto 0;
  color: #64748b;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.7;
}
.promptsbook-contact-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.5;
}
.promptsbook-contact-notice--success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.promptsbook-contact-notice--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.promptsbook-contact-notice svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}
.promptsbook-contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
  max-width: 760px;
  margin: 0 auto;
}
.promptsbook-contact-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.promptsbook-contact-field--full {
  grid-column: 1 / -1;
}
.promptsbook-contact-field label {
  color: #334155;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.promptsbook-contact-field input,
.promptsbook-contact-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #f8fafc;
  color: #172033;
  font: 15px/1.5 Inter, ui-sans-serif, system-ui, sans-serif;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.promptsbook-contact-field input {
  height: 48px;
  min-height: 44px;
  padding: 0 14px;
}
.promptsbook-contact-field textarea {
  min-height: 150px;
  padding: 13px 14px;
  resize: vertical;
}
.promptsbook-contact-field input::placeholder,
.promptsbook-contact-field textarea::placeholder {
  color: #94a3b8;
}
.promptsbook-contact-field input:focus,
.promptsbook-contact-field textarea:focus {
  border-color: #5b55d9;
  background: #fff;
  outline: 0;
  box-shadow: 0 0 0 4px rgb(91 85 217 / .16);
}
.promptsbook-contact-submit {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 4px;
  padding: 12px 28px;
  border: 1px solid #5b55d9;
  border-radius: 10px;
  background: #5b55d9;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
  box-shadow: 0 8px 18px rgb(91 85 217 / .2);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.promptsbook-contact-submit:hover {
  border-color: #4741b8;
  background: #4741b8;
  box-shadow: 0 12px 24px rgb(71 65 184 / .25);
  transform: translateY(-2px);
}
.promptsbook-contact-submit:focus-visible {
  outline: 3px solid rgb(91 85 217 / .42);
  outline-offset: 3px;
}
.promptsbook-contact-submit:disabled {
  opacity: .7;
  cursor: not-allowed;
  transform: none;
}
.promptsbook-contact-rules {
  max-width: 760px;
  margin: 48px auto 0;
  padding-top: 32px;
  border-top: 1px solid #e2e8f0;
}
.promptsbook-contact-rules h2 {
  margin: 0;
  color: #172033;
  font-size: clamp(22px, 2.8vw, 30px);
  letter-spacing: -.04em;
  line-height: 1.25;
  font-weight: 700;
}
.promptsbook-contact-rules > p {
  margin: 12px 0 20px;
  color: #64748b;
  font-size: 15px;
  line-height: 1.7;
}
.promptsbook-contact-rules ol {
  margin: 0;
  padding-left: 1.4rem;
  color: #475569;
  font-size: 14.5px;
  line-height: 1.75;
}
.promptsbook-contact-rules li {
  margin: .65rem 0;
  padding-left: .25rem;
}
.promptsbook-contact-rules li::marker {
  color: #5b55d9;
  font-weight: 700;
}

@media (max-width: 680px) {
  .promptsbook-contact-section { padding: 48px 16px 36px; }
  .promptsbook-contact-box { padding: 24px 18px; border-radius: 18px; }
  .promptsbook-contact-heading { margin-bottom: 24px; }
  .promptsbook-contact-heading h2 { font-size: clamp(26px, 8vw, 36px); }
  .promptsbook-contact-form { grid-template-columns: 1fr; gap: 16px; }
  .promptsbook-contact-field--full,
  .promptsbook-contact-submit { grid-column: auto; }
  .promptsbook-contact-submit { width: 100%; min-height: 48px; }
  .promptsbook-contact-rules { margin-top: 36px; padding-top: 24px; }
  .promptsbook-contact-rules ol { font-size: 14px; }
}
@media (max-width: 360px) {
  .promptsbook-contact-section { padding-right: 12px; padding-left: 12px; }
  .promptsbook-contact-box { padding-right: 14px; padding-left: 14px; }
}

/* ==========================================================================
   Content / Editorial Article Section
   ========================================================================== */
.promptsbook-content-section {
  padding: clamp(64px, 8vw, 96px) 20px 48px;
  background: #fff;
  color: #172033;
}
.promptsbook-content-wrap {
  width: min(920px, 100%);
  margin: 0 auto;
}
.promptsbook-content-box {
  padding: clamp(28px, 5vw, 60px);
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 50px rgb(15 23 42 / .07);
}
.promptsbook-content-body {
  max-width: 760px;
  margin: 0 auto;
  color: #475569;
  font-size: 16px;
  line-height: 1.8;
}
.promptsbook-content-body h2,
.promptsbook-content-body h3,
.promptsbook-content-body h4,
.promptsbook-content-body h5,
.promptsbook-content-body h6 {
  color: #172033;
  letter-spacing: -.03em;
  line-height: 1.2;
}
.promptsbook-content-body h2 { margin: 2.4em 0 .65em; font-size: clamp(25px, 3vw, 34px); }
.promptsbook-content-body h3 { margin: 2em 0 .55em; font-size: clamp(20px, 2.4vw, 26px); }
.promptsbook-content-body h4 { margin: 1.7em 0 .5em; color: #172033; font-size: clamp(18px, 2vw, 22px); letter-spacing: -.025em; line-height: 1.25; }
.promptsbook-content-body h5 { margin: 1.5em 0 .45em; color: #334155; font-size: clamp(16px, 1.7vw, 19px); line-height: 1.3; }
.promptsbook-content-body h6 { margin: 1.35em 0 .4em; color: #5b55d9; font-size: clamp(14px, 1.4vw, 16px); letter-spacing: .02em; line-height: 1.35; text-transform: uppercase; }
.promptsbook-content-body p { margin: 0 0 1.15em; }
.promptsbook-content-body strong { color: #172033; font-weight: 800; }
.promptsbook-content-body em { color: #5b55d9; }
.promptsbook-content-body a { color: #4c46bd; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.promptsbook-content-body a:hover,
.promptsbook-content-body a:focus-visible { color: #302b9a; }
.promptsbook-content-body ul,
.promptsbook-content-body ol { margin: 0 0 1.35em; padding-left: 1.35em; }
.promptsbook-content-body li { margin: .35em 0; padding-left: .25em; }
.promptsbook-content-body li::marker { color: #5b55d9; font-weight: 800; }
.promptsbook-content-body blockquote {
  margin: 1.7em 0;
  padding: 1.1rem 1.25rem;
  border-left: 4px solid #5b55d9;
  border-radius: 0 12px 12px 0;
  background: #f4f3ff;
  color: #3d3a71;
  font-size: 1.04em;
}
.promptsbook-content-body blockquote p { margin: 0; }
.promptsbook-content-body blockquote cite {
  display: block;
  margin-top: .65rem;
  color: #6b67a8;
  font-size: .8em;
  font-style: normal;
  font-weight: 700;
}
.promptsbook-content-figure { margin: 2em 0 2.2em; }
.promptsbook-content-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 14px 30px rgb(15 23 42 / .12);
}
.promptsbook-content-figure figcaption { margin-top: .7rem; color: #64748b; font-size: .82em; text-align: center; }
.promptsbook-content-table-wrap { margin: 1.5em 0; overflow: hidden; border: 1px solid #e2e8f0; border-radius: 12px; }
.promptsbook-content-table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; background: #fff; font-size: .9em; }
.promptsbook-content-table caption { padding: .85rem 1rem; background: #f8fafc; color: #172033; font-size: .9em; font-weight: 800; text-align: left; }
.promptsbook-content-table th,
.promptsbook-content-table td { padding: .8rem 1rem; border-top: 1px solid #e2e8f0; text-align: left; vertical-align: top; overflow-wrap: anywhere; word-break: break-word; }
.promptsbook-content-table th { background: #f8fafc; color: #334155; font-weight: 800; }
.promptsbook-content-code {
  margin: 1.5em 0;
  overflow: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  padding: 1.1rem 1.2rem;
  border-radius: 12px;
  background: #172033;
  color: #e2e8f0;
  font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.promptsbook-content-body hr { margin: 2.5rem 0; border: 0; border-top: 1px solid #e2e8f0; }
@media (max-width: 680px) {
  .promptsbook-content-section { padding: 56px 16px 36px; }
  .promptsbook-content-box { padding: 24px 18px; border-radius: 18px; }
  .promptsbook-content-body { font-size: 15px; line-height: 1.75; }
  .promptsbook-content-figure img { max-height: 360px; }
}

/* ==========================================================================
   Author Section
   ========================================================================== */
.promptsbook-author-section {
  width: min(860px, 100%);
  margin: 0 auto;
}
.promptsbook-author-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 30px;
  width: min(860px, calc(100vw - 2rem));
  box-sizing: border-box;
  margin: 48px auto 0;
  padding: 26px 30px;
  border: 3px solid transparent;
  border-top-color: rgb(66 133 244);
  border-right-color: rgb(234 67 53);
  border-bottom-color: rgb(251 188 4);
  border-left-color: rgb(52 168 83);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgb(15 23 42 / .06);
}
.promptsbook-author-avatar-wrap {
  position: relative;
  display: flex;
  flex: 0 0 132px;
  width: 132px;
  height: 132px;
}
.promptsbook-author-avatar-ring {
  position: relative;
  display: grid;
  flex: 0 0 132px;
  place-items: center;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  background: #fff;
}
.promptsbook-author-avatar-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 3px solid transparent;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #4285f4, #7c83ff, #b96cf4, #34a853, #fbbc05, #ea4335, #4285f4) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: promptsbook-author-ring-spin 7s linear infinite;
}
@keyframes promptsbook-author-ring-spin { to { transform: rotate(360deg); } }
.promptsbook-author-avatar-core {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  border-radius: 50%;
  overflow: hidden;
  background: #f8fafc;
  box-shadow: 0 0 0 2px rgb(255 255 255 / .9);
}
.promptsbook-author-avatar { display: block; width: 100%; height: 100%; object-fit: cover; }
.promptsbook-author-verified-badge {
  position: absolute;
  right: -8px;
  bottom: -8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
}
.promptsbook-author-verified-badge svg { display: block; width: 24px; height: 24px; }
.promptsbook-author-verified-badge::after {
  content: "Verified";
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  padding: 5px 8px;
  border-radius: 6px;
  background: #172033;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease;
}
.promptsbook-author-verified-badge:hover::after,
.promptsbook-author-verified-badge:focus-visible::after { opacity: 1; transform: translateY(0); }
.promptsbook-author-box-content { flex: 1 1 0; width: 100%; min-width: 0; }
.promptsbook-author-name { margin: 0; color: #0f172a; font-size: 21px; line-height: 1.3; font-weight: 700; }
.promptsbook-author-name + .promptsbook-author-description { margin-top: 7px; }
.promptsbook-author-description {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  min-width: 0;
  margin: 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (max-width: 680px) {
  .promptsbook-author-section { width: 100%; }
  .promptsbook-author-box {
    flex-direction: column;
    gap: 18px;
    width: calc(100vw - 2rem);
    margin-top: 36px;
    padding: 24px 16px;
    text-align: center;
  }
  .promptsbook-author-avatar-wrap { flex-basis: 124px; width: 124px; height: 124px; }
  .promptsbook-author-avatar-ring { flex-basis: 124px; width: 124px; height: 124px; }
  .promptsbook-author-description { font-size: 14px; gap: 4px; }
}

/* ==========================================================================
   Disclaimer Section
   ========================================================================== */
.promptsbook-disclaimer {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: min(76rem, calc(100vw - 2rem));
  max-width: none;
  box-sizing: border-box;
  margin: 48px auto;
  padding: .9rem 1rem;
  border: 1px solid #374151;
  border-radius: .75rem;
  background: #20242b;
  color: #fff;
  font-size: .875rem;
  line-height: 1.55;
}
.promptsbook-disclaimer svg {
  flex: 0 0 clamp(3.25rem, 8vw, 4.5rem);
  width: clamp(3.25rem, 8vw, 4.5rem);
  height: auto;
  margin-top: 0;
}
.promptsbook-disclaimer p { margin: 0; color: #fff; }
@media (max-width: 640px) {
  .promptsbook-disclaimer {
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    width: calc(100vw - 2rem);
    margin: 36px auto;
    padding: .8rem .85rem;
    font-size: .8125rem;
    text-align: justify;
  }
  .promptsbook-disclaimer svg {
    flex-basis: clamp(2.75rem, 16vw, 3.5rem);
    width: clamp(2.75rem, 16vw, 3.5rem);
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.promptsbook-site-footer {
  padding: 3.5rem 24px 1.25rem;
  background: #0f172a;
  color: #cbd5e1;
}
.promptsbook-footer-inner {
  width: min(100%, 1120px);
  margin-inline: auto;
}
.promptsbook-footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.8fr);
  gap: 3rem;
  align-items: start;
}
.promptsbook-footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.promptsbook-footer-logo { display: block; flex: 0 0 auto; }
.promptsbook-footer-brand-name {
  display: block;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.25;
}
.promptsbook-footer-tagline {
  display: block;
  margin-top: 0.18rem;
  color: #94a3b8;
  font-size: 0.82rem;
  line-height: 1.4;
}
.promptsbook-footer-description {
  max-width: 560px;
  margin: 1rem 0 0;
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.75;
}
.promptsbook-footer-links-title {
  margin: 0 0 0.9rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}
.promptsbook-footer-links {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.promptsbook-footer-links a {
  color: #cbd5e1;
  font-size: 0.92rem;
  text-decoration: none;
}
.promptsbook-footer-links a:hover,
.promptsbook-footer-links a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.promptsbook-footer-credit {
  margin: 2.5rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgb(148 163 184 / 0.22);
  color: #94a3b8;
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
}
@media (max-width: 640px) {
  .promptsbook-site-footer { padding-inline: 16px; }
  .promptsbook-footer-main { grid-template-columns: 1fr; gap: 2rem; }
}

/* ==========================================================================
   Modals, Floating Actions & Toast
   ========================================================================== */
.promptsbook-hero-lightbox[hidden],
.promptsbook-hero-toast[hidden] { display: none; }
.promptsbook-hero-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
  background: rgb(13 18 34 / .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.promptsbook-hero-lightbox-dialog {
  position: relative;
  width: fit-content;
  max-width: 100%;
  max-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.promptsbook-hero-lightbox-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 68px);
  border-radius: 14px;
  box-shadow: 0 24px 80px rgb(0 0 0 / .38);
}
.promptsbook-hero-lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid rgb(255 255 255 / .32);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 22px rgb(0 0 0 / .22);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}
.promptsbook-hero-lightbox-close:hover,
.promptsbook-hero-lightbox-close:focus-visible {
  background: #f0efff;
  transform: scale(1.06);
}
.promptsbook-hero-lightbox-close svg { display: block; width: 100%; height: 100%; }
.promptsbook-hero-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  max-width: calc(100% - 40px);
  padding: 11px 15px 11px 11px;
  border: 1px solid #c8f0da;
  border-radius: 12px;
  background: #fff;
  color: #166534;
  box-shadow: 0 14px 36px rgb(15 23 42 / .15);
  font-size: 13px;
  font-weight: 800;
  animation: promptsbook-hero-toast-in .22s ease both;
  transform: translateX(-50%);
}
.promptsbook-hero-toast svg { width: 22px; height: 22px; flex: 0 0 22px; }
@keyframes promptsbook-hero-toast-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translateX(-50%); }
}

/* Google "Prefer us on Google" Floating CTA Button */
.promptsbook-google-cta-button {
  position: fixed;
  left: clamp(1rem, 2vw, 1.5rem);
  bottom: clamp(1rem, 2vw, 1.5rem);
  z-index: 1000;
  display: inline-flex;
  max-width: calc(100vw - 2rem);
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  overflow: hidden;
  border: 1px solid #333333;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  box-shadow: 0 0.35rem 1rem rgb(0 0 0 / 0.35);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  animation: promptsbook-google-cta-pulse 2.8s ease-in-out infinite;
  transition: background 0.2s ease, box-shadow 0.2s ease, outline 0.15s ease;
}
.promptsbook-google-cta-button:hover,
.promptsbook-google-cta-button:focus-visible {
  background: #222222;
  color: #ffffff;
  box-shadow: 0 0.5rem 1.4rem rgb(0 0 0 / 0.45);
  outline: 2px solid #555555;
  outline-offset: 3px;
}
.promptsbook-google-cta-icon {
  display: block;
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
}
@keyframes promptsbook-google-cta-pulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.018); }
}
@media (max-width: 640px) {
  .promptsbook-google-cta-button {
    left: 1rem;
    bottom: 1rem;
    min-height: 2.6rem;
    padding: 0.58rem 0.85rem;
    gap: 0.42rem;
    font-size: 0.76rem;
  }
  .promptsbook-google-cta-icon { width: 1.25rem; height: 1.25rem; }
}

/* Scroll To Top Button */
#scrollToTop {
  position: fixed;
  right: clamp(1rem, 2vw, 1.5rem);
  bottom: clamp(1rem, 2vw, 1.5rem);
  z-index: 1000;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0.35rem 1rem rgb(15 23 42 / 0.18);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
}
#scrollToTop.promptsbook-is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#scrollToTop:hover,
#scrollToTop:focus-visible {
  background: #fff5f5;
  outline: 2px solid #ff4141;
  outline-offset: 3px;
}
#scrollToTop svg {
  display: block;
  width: 1.45rem;
  height: 1.45rem;
}
@media (max-width: 640px) {
  #scrollToTop {
    right: 1rem;
    bottom: 1rem;
    width: 2.6rem;
    height: 2.6rem;
  }
  #scrollToTop svg {
    width: 1.35rem;
    height: 1.35rem;
  }
}

/* Accessibility reduced motion */
@media (prefers-reduced-motion: reduce) {
  .promptsbook-brand-logo,
  .promptsbook-footer-logo,
  .promptsbook-author-avatar-ring::before,
  .promptsbook-google-cta-button {
    animation: none;
  }
  .promptsbook-hero-toast { animation: none; }
  .pb-prompt-copy-btn, .pb-prompt-copy-btn--copied .pb-copied-icon { animation: none !important; transition: none !important; }
  .promptsbook-prompt-card,
  .promptsbook-prompt-image,
  .promptsbook-prompt-copy,
  .promptsbook-hero-share-button,
  .promptsbook-hero-lightbox-close {
    transition: none;
  }
}
.promptsbook-pagination-page[aria-current="page"],
.promptsbook-pagination-page.is-active,
.promptsbook-pagination-page.active {
  border-color: #5b55d9 !important;
  background: #5b55d9 !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgb(91 85 217 / .18);
}
.promptsbook-final-ad-slot:empty {
  display: none !important;
  margin: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  border: 0 !important;
}

/* ==========================================================================
   Dark Mode Theme Support
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  body {
    background: #0b0f19;
    color: #cbd5e1;
  }
  .promptsbook-navbar {
    background: #0f172a;
    border-bottom-color: #1e293b;
  }
  .promptsbook-brand-name {
    color: #f8fafc;
  }
  .promptsbook-brand-tagline {
    color: #94a3b8;
  }
  .promptsbook-nav-menu > .promptsbook-menu-item > .promptsbook-menu-link {
    color: #94a3b8;
  }
  .promptsbook-nav-menu > .promptsbook-menu-item:hover > .promptsbook-menu-link,
  .promptsbook-nav-menu > .promptsbook-menu-item:focus-within > .promptsbook-menu-link {
    color: #f8fafc;
    background: #1e293b;
  }
  .promptsbook-sub-menu {
    border-color: #334155;
    background: #1e293b;
    box-shadow: 0 12px 40px rgb(0 0 0 / .45);
  }
  .promptsbook-sub-menu > .promptsbook-menu-item > .promptsbook-menu-link {
    color: #cbd5e1;
  }
  .promptsbook-sub-menu > .promptsbook-menu-item:hover > .promptsbook-menu-link,
  .promptsbook-sub-menu > .promptsbook-menu-item:focus-within > .promptsbook-menu-link {
    color: #93c5fd;
    background: #273549;
  }
  .promptsbook-icon-btn {
    color: #94a3b8;
  }
  .promptsbook-icon-btn:hover {
    color: #f8fafc;
    background: #1e293b;
  }
  .promptsbook-final-ad-slot {
    border-color: #2e384d;
    background: #111827;
    color: #64748b;
  }
  .promptsbook-hero {
    background: #0d121f;
    --hero-ink: #f8fafc;
    --hero-muted: #94a3b8;
    --hero-border: #1e293b;
  }
  .promptsbook-hero-share-button {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 12px rgb(0 0 0 / .2);
  }
  .promptsbook-hero-share-button:hover,
  .promptsbook-hero-share-button:focus-visible {
    background: #28374d;
    border-color: #475569;
  }
  .promptsbook-contact-section {
    background: #0b0f19;
    color: #e2e8f0;
    border-top-color: #1e293b;
  }
  .promptsbook-contact-box {
    background: #0f172a;
    border-color: #1e293b;
    box-shadow: 0 18px 50px rgb(0 0 0 / .35);
  }
  .promptsbook-contact-heading h2 {
    color: #f8fafc;
  }
  .promptsbook-contact-heading p {
    color: #94a3b8;
  }
  .promptsbook-contact-field label {
    color: #cbd5e1;
  }
  .promptsbook-contact-field input,
  .promptsbook-contact-field textarea {
    background: #0b0f19;
    border-color: #243042;
    color: #f8fafc;
  }
  .promptsbook-contact-field input::placeholder,
  .promptsbook-contact-field textarea::placeholder {
    color: #64748b;
  }
  .promptsbook-contact-field input:focus,
  .promptsbook-contact-field textarea:focus {
    border-color: #7c83ff;
    background: #0b0f19;
    box-shadow: 0 0 0 4px rgb(124 131 255 / .22);
  }
  .promptsbook-contact-rules {
    border-top-color: #1e293b;
  }
  .promptsbook-contact-rules h2 {
    color: #f8fafc;
  }
  .promptsbook-contact-rules > p {
    color: #94a3b8;
  }
  .promptsbook-contact-rules ol {
    color: #cbd5e1;
  }
  .promptsbook-contact-rules li::marker {
    color: #818cf8;
  }
  .promptsbook-author-box {
    background: #0f172a;
    box-shadow: 0 12px 30px rgb(0 0 0 / .3);
  }
  .promptsbook-author-avatar-ring {
    background: #0f172a;
  }
  .promptsbook-author-avatar-core {
    background: #1e293b;
    box-shadow: 0 0 0 2px rgb(15 23 42 / .9);
  }
  .promptsbook-author-name {
    color: #f8fafc;
  }
  .promptsbook-author-description {
    color: #94a3b8;
  }
  .promptsbook-prompt-box {
    background: #0f172a;
    border-color: #243042;
    scrollbar-color: #475569 transparent;
  }
  .promptsbook-prompt-box::-webkit-scrollbar-thumb {
    background: #475569;
  }
  .promptsbook-prompt-box .promptsbook-prompt-text {
    color: #cbd5e1;
  }
  .pb-prompt-container {
    background: #0f172a;
    border-color: #243042;
  }
  .pb-prompt-container-header {
    background: #172033;
    border-bottom-color: #243042;
  }
  .pb-prompt-text-wrap {
    scrollbar-color: #475569 transparent;
  }
  .pb-prompt-text-wrap::-webkit-scrollbar-thumb {
    background: #475569;
  }
  .pb-prompt-text {
    color: #cbd5e1;
  }
}

/* Accessibility reduced motion */
@media (prefers-reduced-motion: reduce) {
  .promptsbook-brand-logo,
  .promptsbook-footer-logo,
  .promptsbook-author-avatar-ring::before,
  .promptsbook-google-cta-button {
    animation: none;
  }
  .promptsbook-hero-toast { animation: none; }
  .promptsbook-hero-share-button,
  .promptsbook-contact-submit {
    transition: none;
  }
}

/* ==========================================================================
   Dynamic & AJAX Pagination Styling
   ========================================================================== */
.promptsbook-ajax-pagination {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 48px auto 0 !important;
  width: 100% !important;
  text-align: center !important;
}

.promptsbook-load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 230px;
  height: 50px;
  padding: 0 36px;
  border: 1px solid #5b55d9;
  border-radius: 9999px;
  background: #5b55d9;
  color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 8px 24px -4px rgba(91, 85, 217, 0.38);
  transition: all 0.22s ease;
  user-select: none;
  text-decoration: none;
  outline: none;
}

.promptsbook-load-more-btn:hover {
  background: #4c46bd;
  border-color: #4c46bd;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(91, 85, 217, 0.48);
}

.promptsbook-load-more-btn:active {
  transform: scale(0.98);
  box-shadow: 0 4px 12px rgba(91, 85, 217, 0.25);
}

.promptsbook-load-more-btn:disabled,
.promptsbook-load-more-btn.is-loading {
  opacity: 0.88;
  cursor: not-allowed;
  transform: none;
}

.promptsbook-btn-icon,
.promptsbook-btn-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.promptsbook-spinner-svg {
  display: inline-block;
  width: 18px;
  height: 18px;
  animation: pbSpinAnim 0.85s linear infinite;
  transform-origin: center center;
}

@keyframes pbSpinAnim {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.promptsbook-infinite-sentinel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 16px 0;
}

.promptsbook-infinite-loader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  background: #f4f3ff;
  border: 1px solid #d9d8f8;
  border-radius: 9999px;
  color: #4c46bd;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(91, 85, 217, 0.12);
}

.promptsbook-infinite-loader .promptsbook-spinner-svg {
  width: 18px;
  height: 18px;
  color: #5b55d9;
}

.promptsbook-pagination-end {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 24px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 9999px;
  color: #64748b;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.promptsbook-load-more-btn.is-hidden,
.promptsbook-load-more-btn[hidden] {
  display: none !important;
}

.promptsbook-infinite-sentinel.is-hidden,
.promptsbook-infinite-sentinel[hidden] {
  display: none !important;
}

.promptsbook-pagination-end.is-hidden,
.promptsbook-pagination-end[hidden] {
  display: none !important;
}

.promptsbook-card-fade-in {
  animation: pbCardFadeInAnim 0.35s ease-out forwards !important;
}

@keyframes pbCardFadeInAnim {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 680px) {
  .promptsbook-load-more-btn {
    width: 100% !important;
    max-width: 290px !important;
  }
}

.promptsbook-pagination {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  margin: 48px auto 0 !important;
  width: 100% !important;
  user-select: none !important;
}

.promptsbook-pagination-pages {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.promptsbook-pagination-button,
.promptsbook-pagination-page {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 42px !important;
  min-width: 42px !important;
  padding: 0 16px !important;
  border: 1px solid #d9d8f8 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #4c46bd !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(91, 85, 217, 0.06) !important;
  transition: all 0.18s ease !important;
  outline: none !important;
  box-sizing: border-box !important;
}

.promptsbook-pagination-page {
  min-width: 42px !important;
  padding: 0 12px !important;
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
}

.promptsbook-pagination-ellipsis {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 32px !important;
  height: 42px !important;
  color: #94a3b8 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 2px !important;
  user-select: none !important;
}

.promptsbook-pagination-page:hover:not(:disabled):not(.is-active),
.promptsbook-pagination-button:hover:not(:disabled) {
  background: #f4f3ff !important;
  border-color: #5b55d9 !important;
  color: #5b55d9 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 14px rgba(91, 85, 217, 0.15) !important;
}

.promptsbook-pagination-page.is-active,
.promptsbook-pagination-page.active,
.promptsbook-pagination-page[aria-current="page"] {
  background: #5b55d9 !important;
  border-color: #5b55d9 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(91, 85, 217, 0.35) !important;
  cursor: default !important;
  transform: none !important;
}

.promptsbook-pagination-button:disabled,
.promptsbook-pagination-button[disabled] {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  border-color: #e2e8f0 !important;
  color: #94a3b8 !important;
  background: #f8fafc !important;
  box-shadow: none !important;
  transform: none !important;
}

.promptsbook-pagination-icon {
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  margin-right: 6px !important;
  flex-shrink: 0 !important;
}

.promptsbook-pagination-icon-next {
  margin-right: 0 !important;
  margin-left: 6px !important;
}

@media (max-width: 680px) {
  .promptsbook-pagination {
    gap: 12px !important;
    margin-top: 36px !important;
  }
  .promptsbook-pagination-button {
    min-width: 120px !important;
  }
}
