:root {
    --ink: #071827;
    --muted: #64748b;
    --teal: #0f8f7f;
    --teal-dark: #0b4d5a;
    --gold: #d5a82f;
    --bg: #edf4f7;
    --card: #ffffff;
    --line: rgba(15, 23, 42, .12);
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: var(--bg); }
a { color: inherit; }

.book-hero, .admin-hero {
    color: #fff;
    background: radial-gradient(circle at 82% 12%, rgba(15, 143, 127, .8), transparent 36%),
        linear-gradient(135deg, #061826, #0b4d5a 55%, #0f8f7f);
    padding: 28px clamp(18px, 4vw, 54px) 72px;
}
.book-nav, .admin-hero nav {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 44px;
}
.book-nav a, .admin-hero nav a {
    text-decoration: none;
    font-weight: 800;
    color: #dffbf5;
}
.book-hero-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
    gap: 44px;
    align-items: center;
}
.book-kicker {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(209, 250, 229, .92);
    color: #087365;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 900;
}
.book-hero h1, .admin-hero h1 { font-size: clamp(2.4rem, 7vw, 5rem); line-height: .95; margin: 22px 0 18px; }
.admin-hero h1 { font-size: clamp(2rem, 5vw, 4rem); }
.book-subtitle { font-size: clamp(1.25rem, 3vw, 2rem); font-weight: 800; color: #fff; }
.book-hero p, .admin-hero p { color: #d7fff7; font-size: 1.08rem; line-height: 1.65; }
.book-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.book-btn, .mini-btn {
    border: 0;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 14px;
    font-weight: 900;
}
.book-btn { padding: 14px 18px; min-height: 48px; }
.book-btn.primary { color: #fff; background: linear-gradient(135deg, #0f8f7f, #0b4d5a); box-shadow: 0 14px 28px rgba(15, 143, 127, .26); }
.book-btn.secondary { color: #073b43; background: #dffbf5; }
.mini-btn { padding: 8px 10px; background: #e5f7f4; color: #087365; font-size: 12px; }
.mini-btn.primary { color: #fff; background: linear-gradient(135deg, #0f8f7f, #0b4d5a); }
.mini-btn.danger { background: #fee2e2; color: #b91c1c; }
.book-cover {
    justify-self: center;
    width: min(360px, 100%);
}
.book-cover img, .cover-placeholder {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.cover-placeholder {
    background: linear-gradient(145deg, #fff, #dffbf5);
    color: #071827;
    display: grid;
    place-content: center;
    text-align: center;
    padding: 28px;
}
.cover-placeholder strong { font-size: 2.2rem; }
.cover-placeholder span { margin-top: 16px; color: var(--muted); }

main { max-width: 1180px; margin: -42px auto 0; padding: 0 18px 56px; }
.book-section, .admin-card {
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: clamp(22px, 4vw, 42px);
    margin-bottom: 24px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
    scroll-margin-top: 88px;
}
.book-section h2, .admin-card h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin: 12px 0 18px; }
.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 36px; }
.book-card-grid, .book-package-grid, .admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}
.admin-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.book-card, .book-package, .book-meta, .book-list article {
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 22px;
    background: #fff;
}
.book-card span { color: var(--teal); font-weight: 900; text-transform: uppercase; font-size: 12px; }
.book-card h3, .book-package h3 { margin: 10px 0; }
.book-card p, .book-list p, .book-meta p, .book-package p { color: var(--muted); line-height: 1.55; }
.book-package.featured { border: 2px solid var(--gold); transform: translateY(-4px); }
.book-package.inquiry-package {
    background:
        radial-gradient(circle at 92% 10%, rgba(15, 143, 127, .16), transparent 34%),
        #fff;
}
.book-package.inquiry-package p {
    font-size: 1.05rem;
    line-height: 1.7;
}
.book-package.inquiry-package .book-btn {
    margin-top: auto;
}
.order-section { scroll-margin-top: 88px; }
.order-section-hidden {
    display: none;
}
.order-section-open {
    display: grid;
}
.book-price { font-size: 2rem; display: block; margin: 18px 0; color: #073b43; }
.book-package ul { padding-left: 20px; color: #334155; line-height: 1.7; }
.book-list { display: grid; gap: 12px; }
.book-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.book-gallery img { width: 100%; border-radius: 18px; display: block; }
.book-gallery figcaption { color: var(--muted); margin-top: 6px; }
.author-photo { width: 180px; border-radius: 22px; margin-top: 16px; }

.book-form, .newsletter-form, .admin-form { display: grid; gap: 14px; }
.book-form label, .admin-form label { display: grid; gap: 7px; font-weight: 800; }
input, textarea, select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 13px 14px;
    font: inherit;
    background: #fff;
}
textarea { min-height: 96px; resize: vertical; }
.newsletter { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #071827; color: #fff; }
.newsletter p { color: #d8fff8; }
.newsletter-form { display: flex; min-width: min(460px, 100%); }
.book-faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 12px; }
.book-faq summary { cursor: pointer; font-weight: 900; }
.book-footer { text-align: center; color: var(--muted); padding: 32px 18px 44px; }
.book-alert { max-width: 1180px; margin: 18px auto; padding: 16px 18px; border-radius: 16px; font-weight: 800; }
.book-alert.success { background: #dcfce7; color: #166534; }
.book-alert.error { background: #fee2e2; color: #991b1b; }

.book-admin { background: #edf4f7; }
.admin-page { max-width: 1280px; }
.admin-page.narrow { max-width: 760px; }
.admin-hero .book-btn { margin-top: 18px; }
.section-title { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 16px; }
.section-title h2 { margin: 0; font-size: 1.5rem; }
.responsive-table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
th { color: #64748b; font-size: 12px; text-transform: uppercase; }
.table-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.table-actions form { margin: 0; }
.admin-form.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-form .wide { grid-column: 1 / -1; }
.admin-form .check { display: flex; grid-template-columns: auto 1fr; align-items: center; }
.admin-form .check input { width: auto; }
.muted { color: var(--muted); }
.section-editors { display: grid; gap: 12px; margin-top: 18px; }
.section-editor {
    border: 1px solid #dbe7ef;
    border-radius: 18px;
    background: #f8fbfc;
    overflow: hidden;
}
.section-editor summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 15px 16px;
    font-weight: 900;
}
.section-editor summary::-webkit-details-marker { display: none; }
.section-editor summary small {
    display: block;
    color: var(--muted);
    font-weight: 700;
    margin-top: 4px;
}
.section-editor[open] summary { border-bottom: 1px solid #dbe7ef; background: #fff; }
.section-editor .admin-form { padding: 16px; }
.editor-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

@media (max-width: 780px) {
    .book-hero-grid, .split, .admin-grid.two, .admin-form.grid { grid-template-columns: 1fr; }
    .book-hero { padding-bottom: 56px; }
    .book-nav, .admin-hero nav, .newsletter { align-items: flex-start; flex-direction: column; }
    .book-actions, .newsletter-form { flex-direction: column; width: 100%; }
    .book-btn, .newsletter-form input { width: 100%; }
    main { margin-top: -28px; }
    .book-section, .admin-card { border-radius: 22px; }
}

.cms-tabs {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: -18px 0 22px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}
.cms-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 13px;
    border-radius: 999px;
    background: #e5f7f4;
    color: #073b43;
    text-decoration: none;
    font-weight: 900;
    font-size: 13px;
}
.cms-tabs a:hover { background: #d1fae5; }
.edit-intro { border: 2px solid rgba(15, 143, 127, .22); }
.section-anchor { scroll-margin-top: 90px; }
.section-editor:target {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(15, 143, 127, .14);
}
@media (max-width: 780px) {
    .cms-tabs { position: static; margin-top: 0; }
    .cms-tabs a { width: calc(50% - 5px); }
}
/* Book landing premium v2 */
.book-premium .book-nav div{display:flex;gap:18px;flex-wrap:wrap}.premium-hero{padding-bottom:96px}.premium-hero .book-hero-grid{align-items:center}.premium-hero h1{max-width:850px}.social-proof{margin-top:18px;font-weight:800;color:#dffbf5!important}.mockup-cover{perspective:1200px}.mockup-cover img,.mockup-cover .cover-placeholder{transform:rotateY(-10deg) rotateX(2deg);border:10px solid rgba(255,255,255,.18);background:#fff}.mockup-cover:after{content:"";display:block;width:72%;height:18px;margin:24px auto 0;background:radial-gradient(ellipse,rgba(0,0,0,.28),transparent 70%)}.sticky-book-cta{position:sticky;top:0;z-index:30;display:flex;justify-content:center;padding:10px;background:rgba(7,24,39,.86);backdrop-filter:blur(10px)}.sticky-book-cta a{color:#fff;background:linear-gradient(135deg,#0f8f7f,#0b4d5a);padding:11px 22px;border-radius:999px;text-decoration:none;font-weight:900;box-shadow:0 10px 24px rgba(0,0,0,.18)}.trust-strip{max-width:1180px;margin:0 auto 24px;padding:18px;display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.trust-strip article{background:#fff;border:1px solid var(--line);border-radius:20px;padding:22px;text-align:center;box-shadow:0 16px 38px rgba(15,23,42,.07)}.trust-strip strong{display:block;font-size:clamp(1.8rem,4vw,3rem);color:var(--teal-dark)}.trust-strip span{display:block;color:var(--muted);font-weight:800}.why-section p{font-size:1.12rem;line-height:1.75}.why-points{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.why-points span,.company-badges span,.author-stats span{display:inline-flex;align-items:center;gap:8px;padding:10px 13px;border-radius:999px;background:#e5f7f4;color:#073b43;font-weight:900}.timeline-list{display:grid;gap:16px;position:relative}.timeline-list:before{content:"";position:absolute;left:19px;top:10px;bottom:10px;width:3px;background:#d6ebe7}.timeline-list article{position:relative;display:grid;grid-template-columns:auto 1fr;gap:18px;padding:18px 18px 18px 54px;border:1px solid var(--line);border-radius:22px;background:#fff}.timeline-list article:before{content:"";position:absolute;left:10px;top:28px;width:21px;height:21px;border-radius:50%;background:var(--teal);box-shadow:0 0 0 6px #e5f7f4}.timeline-list img{width:90px;height:90px;object-fit:cover;border-radius:16px}.timeline-list small{color:var(--teal);font-weight:900}.timeline-list h3{margin:5px 0}.chapter-showcase{display:grid;gap:14px;margin-bottom:22px}.chapter-showcase article{display:grid;grid-template-columns:minmax(0,.35fr) minmax(0,1fr);gap:18px;padding:20px;border:1px solid var(--line);border-radius:22px;background:#fff}.chapter-showcase img{width:100%;height:160px;object-fit:cover;border-radius:18px}.chapter-showcase blockquote,.author-section blockquote{margin:16px 0 0;padding:16px 18px;border-left:4px solid var(--gold);background:#fff8e1;border-radius:12px;color:#5b4311;font-weight:800}.author-section .author-photo{box-shadow:0 18px 44px rgba(15,23,42,.18)}.author-stats,.author-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.author-links a{font-weight:900;color:var(--teal-dark)}.companies-section{text-align:center}.company-badges{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:22px}.company-badges img{max-width:80px;max-height:34px;object-fit:contain}.bonus-card small{display:inline-block;margin-top:10px;color:var(--teal);font-weight:900}.package-badge{display:inline-flex;margin-bottom:12px;background:#fff3c4;color:#7a5600;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.order-section .book-form{grid-template-columns:repeat(2,minmax(0,1fr))}.order-section .book-form .wide,.order-section .book-form button{grid-column:1/-1}.thank-you{border-left:6px solid var(--teal)}.lead-magnet{background:radial-gradient(circle at 90% 10%,rgba(15,143,127,.35),transparent 34%),#071827}.review-photo{width:58px;height:58px;border-radius:50%;object-fit:cover;margin-bottom:12px}.final-cta{text-align:center;color:#fff;background:radial-gradient(circle at 80% 20%,rgba(15,143,127,.85),transparent 40%),linear-gradient(135deg,#071827,#0b4d5a)}.final-cta h2{font-size:clamp(2rem,6vw,4rem)}.final-cta p{color:#dffbf5;font-size:1.25rem;font-weight:800}.final-cta .book-btn{margin-top:14px}@media(max-width:900px){.trust-strip{grid-template-columns:1fr 1fr}.book-premium .book-nav div{display:none}.chapter-showcase article{grid-template-columns:1fr}.order-section .book-form{grid-template-columns:1fr}.order-section .book-form .wide,.order-section .book-form button{grid-column:auto}}@media(max-width:780px){.premium-hero{padding-bottom:64px}.premium-hero h1{font-size:clamp(2.1rem,11vw,3.7rem)}.mockup-cover img,.mockup-cover .cover-placeholder{transform:none;max-width:260px;margin:auto}.sticky-book-cta{bottom:0;top:auto;position:fixed;left:0;right:0}.book-footer{padding-bottom:86px}.trust-strip{grid-template-columns:1fr;margin-top:8px}.timeline-list:before{display:none}.timeline-list article{padding:18px;grid-template-columns:1fr}.timeline-list article:before{display:none}.newsletter-form{min-width:0}.book-actions .book-btn{width:100%}}

/* Book ecosystem positioning sections */
.custom-book-section {
    position: relative;
    overflow: hidden;
}
.custom-book-section:before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 92% 8%, rgba(15, 143, 127, .10), transparent 34%);
}
.custom-book-section > * {
    position: relative;
}
.custom-section-head {
    max-width: 860px;
    margin-bottom: 24px;
}
.custom-section-head h2 {
    margin-bottom: 8px;
}
.custom-section-head p {
    color: var(--muted);
    line-height: 1.7;
    font-size: 1.05rem;
}
.custom-section-subtitle {
    color: #073b43 !important;
    font-weight: 900;
    font-size: clamp(1.1rem, 2.2vw, 1.45rem) !important;
    margin: 0 0 12px;
}
.custom-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.ecosystem-section .custom-card-grid,
.after-purchase-section .custom-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.custom-book-card {
    min-height: 100%;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.custom-book-card:hover {
    transform: translateY(-4px);
    border-color: rgba(15, 143, 127, .35);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .10);
}
.custom-book-card .custom-card-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #e5f7f4;
    color: #073b43;
    font-size: 1.45rem;
    text-transform: none;
    letter-spacing: 0;
}
.custom-book-card h3 {
    margin-top: 16px;
}
.custom-section-cta {
    margin-top: 22px;
    display: flex;
    justify-content: flex-start;
}
.living-book-section {
    border-color: rgba(213, 168, 47, .34);
    background: linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(255, 248, 225, .92));
}
.ecosystem-section {
    background: radial-gradient(circle at 88% 12%, rgba(15, 143, 127, .18), transparent 36%), #ffffff;
}
.book-hp {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
}
.book-meta-pills,
.bonus-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}
.book-meta-pills span,
.bonus-links a,
.bonus-links article {
    border: 1px solid rgba(15, 143, 127, .18);
    background: rgba(229, 247, 244, .82);
    color: #073b43;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 800;
    text-decoration: none;
}
.bonus-links article {
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.bonus-links article a {
    display: inline-flex;
    width: fit-content;
}
.video-card,
.author-stats {
    border: 1px solid rgba(15, 143, 127, .18);
    background: rgba(255, 255, 255, .84);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}
.review-photo {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(15, 143, 127, .18);
}
.review-link {
    display: inline-flex;
    margin-top: 10px;
    color: #0f8f7f;
    font-weight: 900;
    text-decoration: none;
}
.inline-status-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.inline-status-form select {
    width: auto;
    min-width: 130px;
    padding: 8px 10px;
}

/* Book CMS visual consistency layer */
body.book-public,
body.book-admin {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.book-public h1,
body.book-public h2,
body.book-public h3,
body.book-admin h1,
body.book-admin h2,
body.book-admin h3 {
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: -.025em;
    color: inherit;
}
body.book-public p,
body.book-public li,
body.book-public small,
body.book-public a,
body.book-public label,
body.book-public input,
body.book-public select,
body.book-public textarea,
body.book-admin p,
body.book-admin li,
body.book-admin small,
body.book-admin a,
body.book-admin label,
body.book-admin input,
body.book-admin select,
body.book-admin textarea,
body.book-admin td {
    font-size: 1rem;
    line-height: 1.62;
    overflow-wrap: anywhere;
}
.book-section,
.admin-card,
.custom-book-card,
.book-card,
.book-package,
.book-meta,
.book-list article,
.video-card,
.author-stats {
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, .10);
    box-shadow: 0 16px 38px rgba(15, 23, 42, .08);
}
.book-section,
.admin-card {
    padding: clamp(24px, 4vw, 42px);
    margin-bottom: 24px;
}
.book-section h2,
.admin-card h2 {
    font-size: clamp(1.7rem, 3.6vw, 2.65rem);
    line-height: 1.08;
    margin: 10px 0 16px;
}
.book-card h3,
.book-package h3,
.custom-book-card h3 {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.22;
}
.book-kicker,
.package-badge,
.book-card span,
th {
    font-size: .76rem;
    line-height: 1.1;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.book-btn,
.mini-btn,
.sticky-book-cta a,
.custom-section-cta a {
    min-height: 44px;
    border-radius: 14px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: .95rem;
    font-weight: 900;
    line-height: 1.15;
}
.mini-btn {
    min-height: 34px;
    font-size: .78rem;
}
input,
select,
textarea,
button {
    font-family: Arial, Helvetica, sans-serif;
}
.book-form input,
.book-form select,
.book-form textarea,
.newsletter-form input,
.admin-form input,
.admin-form select,
.admin-form textarea,
.inline-status-form select {
    border-radius: 14px;
    font-size: 1rem;
    line-height: 1.3;
}
.book-form label,
.admin-form label {
    font-size: .92rem;
    line-height: 1.35;
}
.book-card p,
.book-list p,
.book-meta p,
.book-package p,
.custom-section-head p,
.custom-book-card p {
    color: var(--muted);
    line-height: 1.62;
}
.book-card-grid,
.book-package-grid,
.admin-grid {
    gap: 18px;
}
.book-meta-pills span,
.bonus-links a,
.bonus-links article,
.why-points span,
.company-badges span,
.company-badges a {
    font-size: .9rem;
    line-height: 1.2;
}
.company-badges .company-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: #e5f7f4;
    color: #073b43;
    font-weight: 900;
    text-decoration: none;
}
.company-badges a.company-badge {
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.company-badges a.company-badge:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 143, 127, .38);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .12);
}
.reader-stories-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 92% 12%, rgba(15, 143, 127, .16), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, .99), rgba(247, 252, 252, .96));
}
.reader-stories-head {
    max-width: 820px;
    margin-bottom: 24px;
}
.reader-stories-head p {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
}
.reader-empty-card {
    max-width: 760px;
    margin: 18px auto 0;
    padding: clamp(28px, 5vw, 46px);
    text-align: center;
    border: 1px solid rgba(15, 143, 127, .18);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(229, 247, 244, .92), rgba(255, 255, 255, .96));
    box-shadow: 0 24px 56px rgba(15, 23, 42, .08);
}
.reader-empty-card p {
    margin: 0 auto 20px;
    max-width: 560px;
    color: #173449;
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.55;
}
.reader-story-grid {
    align-items: stretch;
}
.reader-story-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.reader-story-card blockquote {
    margin: 0;
    padding: 0 0 0 18px;
    border-left: 4px solid var(--gold);
    color: #102033;
    font-size: 1.12rem;
    font-weight: 900;
    line-height: 1.45;
}
.reader-story-card p {
    color: var(--muted);
    line-height: 1.65;
}
.reader-story-card h3 {
    margin-top: auto;
}
.reader-story-card small {
    color: var(--teal-dark);
    font-weight: 800;
}
.reader-review-form-wrap {
    max-width: 860px;
    margin: 26px auto 0;
    border: 1px solid rgba(15, 143, 127, .18);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
    overflow: hidden;
}
.reader-review-form-wrap summary {
    cursor: pointer;
    padding: 18px 22px;
    color: var(--teal-dark);
    font-weight: 900;
    list-style: none;
}
.reader-review-form-wrap summary::-webkit-details-marker {
    display: none;
}
.reader-review-form-hidden-summary:not([open]) {
    display: none;
}
.reader-review-form-hidden-summary summary {
    display: none;
}
.reader-review-form {
    padding: 0 22px 22px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.reader-review-form h3,
.reader-review-form .wide,
.reader-review-form button {
    grid-column: 1 / -1;
}
.reader-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #173449;
    font-weight: 800;
}
.reader-consent input {
    width: auto;
    margin-top: 3px;
}
.review-photo,
.author-photo {
    object-fit: cover;
}
.chapters-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 92% 8%, rgba(15, 143, 127, .18), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(244, 250, 252, .96));
}
.chapters-section:before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: linear-gradient(90deg, var(--teal), var(--gold));
}
.chapters-head {
    max-width: 760px;
    margin-bottom: 24px;
}
.chapters-head h2 {
    margin-bottom: 10px;
}
.chapters-head p {
    color: var(--muted);
    font-size: 1.06rem;
    line-height: 1.65;
}
.chapters-section .chapter-showcase {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}
.chapters-section .chapter-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    min-height: 220px;
    padding: 22px;
    border: 1px solid rgba(15, 143, 127, .14);
    border-radius: 26px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 16px 38px rgba(15, 23, 42, .08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.chapters-section .chapter-card:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 143, 127, .32);
    box-shadow: 0 22px 50px rgba(15, 23, 42, .12);
}
.chapters-section .chapter-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    box-shadow: 0 12px 24px rgba(15, 143, 127, .24);
    font-size: .95rem;
    font-weight: 900;
    letter-spacing: .04em;
}
.chapters-section .chapter-card img {
    grid-column: 1 / -1;
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 20px;
}
.chapters-section .chapter-content {
    min-width: 0;
}
.chapters-section .chapter-content h3 {
    margin: 2px 0 10px;
    color: #071827;
    font-size: clamp(1.08rem, 2vw, 1.35rem);
    line-height: 1.22;
}
.chapters-section .chapter-content p {
    margin: 0;
    color: #475569;
    line-height: 1.62;
}
.chapters-section .chapter-content blockquote {
    position: relative;
    margin: 16px 0 0;
    padding: 14px 16px 14px 18px;
    border-left: 4px solid var(--gold);
    border-radius: 16px;
    color: #5b4311;
    background: linear-gradient(135deg, #fff8e1, #fff3c4);
    box-shadow: inset 0 0 0 1px rgba(213, 168, 47, .18);
    font-size: .92rem;
    font-weight: 850;
    line-height: 1.45;
}
.chapter-sample-btn {
    width: fit-content;
}
.book-inline-toolbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 14px;
    color: #fff;
    background: linear-gradient(135deg, #071827, #0f8f7f);
    box-shadow: 0 12px 26px rgba(15, 23, 42, .2);
}
.book-inline-toolbar strong,
.book-inline-toolbar span,
.book-inline-toolbar a {
    color: #fff;
    font-size: .9rem;
    line-height: 1.25;
}
.book-inline-toolbar a {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    text-decoration: none;
    font-weight: 900;
}
body.book-edit-mode {
    padding-right: 340px;
}
.book-editor-sidebar {
    position: fixed;
    top: 66px;
    right: 18px;
    z-index: 1001;
    width: 310px;
    max-height: calc(100vh - 84px);
    overflow: auto;
    border: 1px solid rgba(15, 23, 42, .14);
    border-radius: 22px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
    backdrop-filter: blur(10px);
}
.book-editor-panel {
    padding: 0;
}
.book-editor-panel summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    color: #fff;
    background: linear-gradient(135deg, #071827, #0f8f7f);
    font-weight: 900;
}
.book-editor-panel summary::-webkit-details-marker {
    display: none;
}
.book-editor-panel summary small {
    color: #dffbf5;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.book-editor-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
}
.book-editor-actions a,
.book-editor-section-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 7px 10px;
    border-radius: 999px;
    color: #073b43;
    background: #e5f7f4;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 900;
}
.book-editor-actions a:first-child {
    color: #fff;
    background: linear-gradient(135deg, #0f8f7f, #0b4d5a);
}
.book-editor-section-list {
    display: grid;
    gap: 8px;
    padding: 12px;
}
.book-editor-section-item {
    display: grid;
    gap: 9px;
    padding: 11px;
    border: 1px solid rgba(15, 23, 42, .10);
    border-left: 4px solid #0f8f7f;
    border-radius: 16px;
    background: #fff;
}
.book-editor-section-item.is-hidden {
    border-left-color: #d5a82f;
    background: #fffaf0;
}
.book-editor-section-item strong {
    display: block;
    color: #071827;
    font-size: .9rem;
    line-height: 1.25;
}
.book-editor-section-item span {
    display: inline-flex;
    margin-top: 4px;
    color: #64748b;
    font-size: .75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.book-editor-section-item.is-hidden span {
    color: #a16207;
}
.book-editor-section-actions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}
.book-editor-section-actions a:last-child {
    color: #fff;
    background: #0b4d5a;
}
.book-edit-mode .book-hero,
.book-edit-mode .book-section,
.book-edit-mode .trust-strip {
    position: relative;
    outline: 2px dashed rgba(15, 143, 127, .35);
    outline-offset: 5px;
}
.book-inline-edit-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 25;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #fff !important;
    background: linear-gradient(135deg, #0f8f7f, #0b4d5a);
    box-shadow: 0 12px 24px rgba(15, 23, 42, .22);
    font-size: .78rem !important;
    font-weight: 900;
    line-height: 1.1 !important;
    text-decoration: none;
    letter-spacing: .02em;
}
.book-inline-edit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, .26);
}
.block-editor-page .admin-page {
    max-width: 980px;
}
.block-editor-header p {
    max-width: 760px;
}
.block-editor-layout .admin-card {
    position: relative;
}
.single-block-editor {
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 18px;
    background: #fff;
    margin-bottom: 14px;
    overflow: hidden;
}
.single-block-editor summary {
    cursor: pointer;
}
.single-block-editor[open] summary {
    border-bottom: 1px solid rgba(15, 23, 42, .08);
}
.secure-payment-note {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(15, 143, 127, .22);
    border-radius: 16px;
    background: rgba(15, 143, 127, .08);
    color: #164e4a;
    font-size: .92rem;
}
.payment-result-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}
.payment-result-card {
    width: min(680px, 100%);
    margin: 0;
    text-align: center;
}
.payment-result-card h1 {
    margin: 12px 0;
}
.payment-result-card .book-btn {
    margin-top: 18px;
}
.payment-state {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eef2f7;
    color: #526070;
    font-weight: 800;
}
.payment-state.is-ready {
    background: #dcfce7;
    color: #166534;
}
.payment-state.is-off {
    background: #fee2e2;
    color: #991b1b;
}
.payment-config-summary {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
}
.payment-config-summary div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
}
.payment-config-summary dt {
    color: #64748b;
}
.payment-config-summary dd {
    margin: 0;
    font-weight: 800;
    text-align: right;
}
.payment-url-list {
    display: grid;
    gap: 10px;
    margin: 16px 0;
}
.payment-url-list code {
    display: block;
    overflow-wrap: anywhere;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f5f8fb;
    color: #0f3d4a;
}
.checkbox-row {
    display: flex !important;
    align-items: center;
    gap: 10px;
}
.checkbox-row input {
    width: 20px !important;
    height: 20px;
}
@media (max-width: 980px) {
    body.book-edit-mode {
        padding-right: 0;
    }
    .book-editor-sidebar {
        position: sticky;
        top: 0;
        right: auto;
        width: auto;
        max-height: none;
        margin: 10px 12px 14px;
        border-radius: 18px;
    }
    .book-editor-section-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .chapters-section .chapter-showcase {
        grid-template-columns: 1fr;
    }
    .chapters-section .chapter-card {
        min-height: 0;
    }
    .custom-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 780px) {
    .book-inline-toolbar {
        justify-content: flex-start;
        padding-bottom: 12px;
    }
    .book-inline-toolbar span {
        flex-basis: 100%;
    }
    .book-editor-section-list {
        grid-template-columns: 1fr;
    }
    .chapters-section {
        padding: 22px 16px;
    }
    .chapters-head {
        margin-bottom: 18px;
    }
    .chapters-section .chapter-card {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 18px;
        border-radius: 22px;
    }
    .chapters-section .chapter-number {
        width: 42px;
        height: 42px;
        border-radius: 15px;
    }
    .chapters-section .chapter-content blockquote {
        font-size: .88rem;
    }
    .book-inline-edit-btn {
        top: 8px;
        right: 8px;
        padding: 7px 10px;
        font-size: .72rem !important;
    }
    .custom-card-grid,
    .ecosystem-section .custom-card-grid,
    .after-purchase-section .custom-card-grid {
        grid-template-columns: 1fr;
    }
    .custom-book-card {
        padding: 20px;
    }
    .reader-review-form {
        grid-template-columns: 1fr;
    }
    .reader-empty-card {
        padding: 24px 18px;
    }
    .reader-review-form-wrap summary {
        padding: 16px 18px;
    }
    .reader-review-form {
        padding: 0 18px 18px;
    }
}
