.header-area.profile-no-breadcrumb,
body:has(.dms-book-profile) .breadcrumb-area,
body:has(.dms-book-profile) .breadcrumb-area-overlay,
.dms-book-profile ~ .footer-section {
    display: none !important;
}

body:has(.dms-book-profile),
body.dms-profile-standalone {
    background: #020611;
    overflow: hidden;
    margin: 0;
}

.dms-book-profile {
    --book-bg: #020611;
    --book-panel: #08111f;
    --book-page: #0b1728;
    --book-page-2: #101d31;
    --book-gold: #ffb000;
    --book-cyan: #22c7d9;
    --book-text: #f8fafc;
    --book-muted: #9ca8ba;
    min-height: 100vh;
    color: var(--book-text);
    background:
        radial-gradient(circle at 14% 18%, rgba(34,199,217,.14), transparent 26%),
        radial-gradient(circle at 88% 16%, rgba(255,176,0,.12), transparent 24%),
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
        var(--book-bg);
    background-size: auto, auto, 42px 42px, 42px 42px, auto;
    overflow: hidden;
}

.dms-book-profile *,
.dms-book-profile *::before,
.dms-book-profile *::after {
    box-sizing: border-box;
    letter-spacing: 0;
}

.book-topbar {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 clamp(18px, 4vw, 70px);
    background: rgba(3, 7, 17, .92);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.book-brand,
.book-actions,
.book-cta-row,
.book-contact {
    display: flex;
    align-items: center;
    gap: 10px;
}

.book-brand {
    color: #fff;
}

.book-brand:hover {
    color: #fff;
}

.book-brand span {
    color: var(--book-gold);
    font-size: 44px;
    font-weight: 900;
    line-height: .8;
}

.book-brand small {
    color: rgba(255,255,255,.56);
    font-size: 10px;
    text-transform: uppercase;
}

.book-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.book-actions a,
.book-actions button,
.book-cta-row a,
.book-cta-row button,
.book-primary-link,
.book-final button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    color: #fff;
    font-weight: 900;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;
    background: rgba(255,255,255,.045);
    cursor: pointer;
}

.book-cta-row button,
.book-primary-link,
.book-final button {
    color: #07101d;
    border: 0;
    background: linear-gradient(135deg, #ffd86a, var(--book-gold));
}

.book-shell {
    position: relative;
    height: calc(100vh - 64px);
    padding: 16px clamp(20px, 4vw, 64px) 64px;
}

.book-stage {
    position: relative;
    height: 100%;
    max-width: 1360px;
    margin: 0 auto;
    perspective: 1800px;
}

.book-spread {
    position: absolute;
    inset: 0;
    display: none;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(255,176,0,.2);
    border-radius: 18px;
    background:
        radial-gradient(circle at 20% 18%, rgba(34,199,217,.14), transparent 26%),
        linear-gradient(145deg, rgba(12, 24, 42, .96), rgba(4, 8, 18, .98));
    box-shadow: 0 34px 90px rgba(0,0,0,.44);
}

.book-spread.is-active {
    display: grid;
}

.book-spread::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 22px;
    transform: translateX(-50%);
    background:
        linear-gradient(90deg, transparent, rgba(0,0,0,.45), transparent);
    z-index: 4;
    pointer-events: none;
}

.book-turner {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    z-index: 20;
    width: 50%;
    display: none;
    transform-style: preserve-3d;
    pointer-events: none;
}

.book-turner-face {
    position: absolute;
    inset: 0;
    overflow: hidden;
    backface-visibility: hidden;
    background: var(--book-page);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 28px 70px rgba(0,0,0,.34);
}

.book-turner-face .book-page {
    width: 100%;
    height: 100%;
}

.book-turner-back {
    transform: rotateY(180deg);
}

.book-stage.turn-forward .book-turner,
.book-stage.turn-back .book-turner {
    display: block;
}

.book-stage.turn-forward .book-turner {
    transform-origin: left center;
    animation: bookPageForward .62s ease-in-out forwards;
}

.book-stage.turn-back .book-turner {
    left: 0;
    transform-origin: right center;
    animation: bookPageBack .62s ease-in-out forwards;
}

@keyframes bookPageForward {
    0% { transform: rotateY(0deg); }
    50% { box-shadow: -18px 0 42px rgba(0,0,0,.34); }
    100% { transform: rotateY(-180deg); }
}

@keyframes bookPageBack {
    0% { transform: rotateY(0deg); }
    50% { box-shadow: 18px 0 42px rgba(0,0,0,.34); }
    100% { transform: rotateY(180deg); }
}

.book-page {
    position: relative;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    padding: clamp(22px, 3vw, 46px);
}

.book-cover-copy,
.book-section-intro,
.book-final {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.book-section-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(circle at 82% 18%, rgba(255,176,0,.08), transparent 26%),
        rgba(4, 10, 21, .48);
}

.book-kicker {
    width: fit-content;
    display: inline-flex;
    margin-bottom: 16px;
    padding: 8px 14px;
    color: var(--book-gold);
    font-size: 13px;
    font-weight: 900;
    border: 1px solid rgba(255,176,0,.28);
    border-radius: 999px;
    background: rgba(255,176,0,.08);
}

.book-cover-copy h1,
.book-section-intro h2,
.book-final h2 {
    color: #fff;
    font-size: clamp(34px, 4.5vw, 66px);
    font-weight: 900;
    line-height: 1.08;
    margin: 0 0 20px;
}

.book-cover-copy p,
.book-section-intro p,
.book-summary,
.book-final p {
    max-width: 680px;
    color: rgba(255,255,255,.72);
    font-size: clamp(16px, 1.3vw, 21px);
    line-height: 1.85;
}

.book-summary {
    margin-top: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(255,255,255,.09);
    border-inline-start: 4px solid var(--book-gold);
    border-radius: 16px;
    background: rgba(255,255,255,.035);
}

.book-cover-visual {
    background:
        linear-gradient(rgba(34,199,217,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34,199,217,.08) 1px, transparent 1px),
        linear-gradient(145deg, rgba(9, 34, 58, .78), rgba(2, 8, 18, .94));
    background-size: 32px 32px, 32px 32px, auto;
}

.book-orbit {
    position: absolute;
    inset: 18%;
    border: 1px solid rgba(34,199,217,.18);
    border-radius: 999px;
}

.book-orbit b,
.book-visual-grid span {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: var(--book-gold);
}

.book-orbit b:nth-child(1) { top: 8%; right: 18%; }
.book-orbit b:nth-child(2) { top: 48%; left: 6%; background: var(--book-cyan); }
.book-orbit b:nth-child(3) { bottom: 12%; right: 34%; }
.book-orbit b:nth-child(4) { bottom: 28%; left: 42%; background: #fff; }

.book-visual-grid span:nth-child(1) { top: 18%; left: 22%; }
.book-visual-grid span:nth-child(2) { top: 28%; right: 18%; background: var(--book-cyan); }
.book-visual-grid span:nth-child(3) { bottom: 18%; left: 30%; background: #fff; }
.book-visual-grid span:nth-child(4) { bottom: 24%; right: 24%; }

.book-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-height: 100%;
    overflow: auto;
    padding-inline-end: 4px;
}

.book-items--steps {
    counter-reset: steps;
}

.book-item {
    min-height: 118px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    background: rgba(3, 10, 22, .7);
}

.book-items--steps .book-item {
    counter-increment: steps;
}

.book-items--steps .book-item::before {
    content: counter(steps, decimal-leading-zero);
    color: var(--book-gold);
    font-size: 24px;
    font-weight: 900;
}

.book-items--steps .book-item i {
    display: none;
}

.book-item i {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--book-gold);
    border: 1px solid rgba(255,176,0,.24);
    border-radius: 14px;
    background: rgba(255,176,0,.08);
}

.book-item strong {
    display: block;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 7px;
}

.book-item small {
    display: block;
    color: var(--book-muted);
    font-size: 14px;
    line-height: 1.65;
}

.book-contact {
    flex-wrap: wrap;
    margin: 20px 0;
}

.book-contact a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    color: #fff;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    background: rgba(255,255,255,.045);
}

.book-final {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
}

.book-final span {
    color: var(--book-gold);
    font-size: 70px;
    font-weight: 900;
    line-height: .8;
}

.book-arrow {
    position: absolute;
    top: 50%;
    z-index: 8;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    background: rgba(3, 7, 17, .72);
    transform: translateY(-50%);
}

.book-arrow-prev { right: 20px; }
.book-arrow-next { left: 20px; }

.book-footer {
    position: absolute;
    right: clamp(20px, 4vw, 64px);
    bottom: 10px;
    left: clamp(20px, 4vw, 64px);
    z-index: 9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    max-width: 1360px;
    margin: 0 auto;
}

.book-progress {
    min-width: 88px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #fff;
    font-weight: 900;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    background: rgba(3, 7, 17, .86);
}

.book-toc {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.book-toc button {
    min-height: 42px;
    padding: 0 14px;
    color: rgba(255,255,255,.72);
    font-weight: 900;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 999px;
    background: rgba(255,255,255,.045);
}

.book-toc button.active,
.book-toc button:hover {
    color: var(--book-gold);
    border-color: rgba(255,176,0,.34);
}

.book-share-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0,0,0,.72);
}

.book-share-modal.is-open {
    display: flex;
}

.book-share-card {
    width: min(520px, 100%);
    position: relative;
    padding: 28px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    background: #08111f;
}

.book-share-card > button {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    width: 34px;
    height: 34px;
    color: #fff;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    background: rgba(255,255,255,.06);
}

.book-share-card h2 {
    color: #fff;
    font-weight: 900;
    margin-bottom: 16px;
}

.book-empty {
    color: var(--book-muted);
    font-size: 16px;
    line-height: 1.8;
}

.book-share-input-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.book-share-card input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    color: #fff;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    background: rgba(0,0,0,.24);
}

.book-share-card a {
    display: inline-flex;
    margin: 14px 10px 0 0;
    color: var(--book-gold);
    font-weight: 900;
}

@media (max-width: 991px) {
    body:has(.dms-book-profile),
    body.dms-profile-standalone {
        overflow: auto;
    }

    .book-topbar {
        height: auto;
        min-height: 74px;
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 18px;
    }

    .book-shell {
        height: auto;
        min-height: calc(100vh - 64px);
        padding: 12px 12px 92px;
    }

    .book-stage {
        height: auto;
        min-height: 0;
    }

    .book-spread,
    .book-spread.is-active {
        position: relative;
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .book-spread::before {
        display: none;
    }

    .book-page {
        min-height: 360px;
        padding: 22px;
    }

    .book-items {
        grid-template-columns: 1fr;
    }

    .book-footer {
        position: fixed;
        right: 10px;
        bottom: 10px;
        left: 10px;
        align-items: stretch;
        flex-direction: column;
        padding: 10px;
        border: 1px solid rgba(255,255,255,.1);
        border-radius: 16px;
        background: rgba(3, 7, 17, .92);
        backdrop-filter: blur(14px);
    }

    .book-toc {
        max-height: 96px;
        overflow: auto;
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .book-brand span {
        font-size: 36px;
    }

    .book-brand small {
        font-size: 9px;
    }

    .book-actions a,
    .book-actions button,
    .book-cta-row a,
    .book-cta-row button,
    .book-contact a {
        width: 100%;
    }

    .book-actions,
    .book-cta-row,
    .book-contact {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .book-cover-copy h1,
    .book-section-intro h2 {
        font-size: 30px;
        line-height: 1.18;
    }

    .book-cover-copy p,
    .book-section-intro p,
    .book-summary,
    .book-final p {
        font-size: 15px;
        line-height: 1.75;
    }

    .book-page {
        min-height: 320px;
    }

    .book-item {
        min-height: 104px;
        grid-template-columns: 44px minmax(0, 1fr);
        padding: 16px;
    }

    .book-item i {
        width: 44px;
        height: 44px;
    }

    .book-arrow {
        width: 46px;
        height: 46px;
    }

    .book-arrow-prev { right: 8px; }
    .book-arrow-next { left: 8px; }

    .book-toc button {
        min-height: 44px;
        padding: 0 12px;
    }
}
