:root {
    --cb-bg-start: #3b070c;
    --cb-bg-end: #140204;
    --cb-primary: #a81c22;
    --cb-accent: #d4af37;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#wpadminbar,
#catfish-cta,
.wp-elce,
#elce-lienhe,
.phone-bar,
[class*="elce-"],
[id*="elce-"],
.btn-popup-lienhe {
    display: none !important;
}

html, body {
    height: 100%;
    margin-top: 0 !important;
    padding-top: 0 !important;
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

body.cb-body {
    min-height: 100vh;
    min-height: 100dvh;
    height: 100dvh;
    width: 100%;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 48%, rgba(212, 175, 55, 0.14) 0%, transparent 56%),
        radial-gradient(circle at 15% 15%, rgba(168, 28, 34, 0.28) 0%, transparent 45%),
        linear-gradient(155deg, var(--cb-bg-start) 0%, var(--cb-bg-end) 100%);
    background-attachment: fixed;
    color: #fff;
}

body.cb-body.cb-has-bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

body.cb-body.cb-has-bg-image::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 3, 4, 0.56) 0%, rgba(12, 3, 4, 0.74) 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 0;
    pointer-events: none;
}

#cb-petals-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ==================== MINIMAL HEADER (SPEAKER LEFT & CLOSE HOME RIGHT) ==================== */
.cb-topbar--minimal {
    position: fixed;
    top: 16px;
    left: 18px;
    right: 18px;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.cb-icon-btn {
    appearance: none;
    pointer-events: auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(12, 4, 5, 0.58);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: all 0.22s ease;
}

.cb-icon-btn:hover {
    background: rgba(212, 175, 55, 0.26);
    border-color: rgba(212, 175, 55, 0.7);
    color: #fff;
    transform: translateY(-1px);
}

.cb-icon-btn.is-active {
    background: linear-gradient(135deg, var(--cb-accent), #f3dc8c);
    color: #240808;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.42);
}

.cb-sound-btn .cb-icon-sound-on { display: none; }
.cb-sound-btn.is-active .cb-icon-sound-on { display: block; }
.cb-sound-btn.is-active .cb-icon-sound-off { display: none; }

.cb-sound-control {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding-right: 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(12, 4, 5, 0.58);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.cb-sound-control .cb-sound-btn {
    border: none;
    background: transparent;
    box-shadow: none;
    width: 40px;
    height: 40px;
}

.cb-sound-control .cb-sound-btn.is-active {
    background: transparent;
    color: #f3dc8c;
    box-shadow: none;
}

.cb-sound-control.is-autoplay-blocked .cb-sound-btn {
    animation: cb-sound-pulse 1.8s ease-in-out infinite;
}

.cb-audio-unlock-hint {
    position: fixed;
    top: 66px;
    left: 16px;
    z-index: 60;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.48);
    background: rgba(12, 4, 5, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #f3dc8c;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
    cursor: pointer;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.cb-audio-unlock-hint[hidden] {
    display: none;
}

.cb-audio-unlock-hint:hover {
    transform: translateY(-1px);
    border-color: rgba(243, 220, 140, 0.75);
}

.cb-audio-unlock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f3dc8c;
    box-shadow: 0 0 0 0 rgba(243, 220, 140, 0.7);
    animation: cb-dot-ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes cb-sound-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

@keyframes cb-dot-ping {
    0% { box-shadow: 0 0 0 0 rgba(243, 220, 140, 0.75); }
    70%, 100% { box-shadow: 0 0 0 7px rgba(243, 220, 140, 0); }
}

.cb-volume-wrap {
    display: flex;
    align-items: center;
    width: 82px;
}

.cb-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 999px;
    outline: none;
    cursor: pointer;
    background: linear-gradient(
        to right,
        var(--cb-accent) 0%,
        var(--cb-accent) var(--cb-vol-pct, 15%),
        rgba(255, 255, 255, 0.22) var(--cb-vol-pct, 15%),
        rgba(255, 255, 255, 0.22) 100%
    );
}

.cb-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #f3dc8c;
    border: 1.5px solid #240808;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.cb-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.16);
}

.cb-volume-slider::-moz-range-thumb {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #f3dc8c;
    border: 1.5px solid #240808;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
    cursor: pointer;
}

@media (max-width: 768px) {
    .cb-volume-wrap {
        width: 62px;
    }
}

/* ==================== STAGE ==================== */
body.cb-body > :not(#cb-petals-canvas):not(.cb-topbar):not(.cb-stage):not(.cb-lightbox):not(script):not(noscript) {
    display: none !important;
}

.cb-stage {
    position: fixed;
    inset: 0;
    z-index: 10;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 82px;
}

.cb-book-shell {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cb-side-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 25;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(15, 5, 6, 0.56);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fef3c7;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.22s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.cb-side-nav:hover:not(:disabled) {
    background: var(--cb-accent);
    border-color: var(--cb-accent);
    color: #240808;
    transform: translateY(-50%) scale(1.06);
}

.cb-side-nav:disabled {
    opacity: 0.24;
    cursor: default;
}

.cb-side-prev { left: 18px; }
.cb-side-next { right: 18px; }

.cb-back-start-btn {
    position: fixed;
    left: 50%;
    bottom: 22px;
    z-index: 35;
    transform: translate(-50%, 10px);
    opacity: 0;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.55);
    background: rgba(12, 4, 5, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #f3dc8c;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.48);
    transition: opacity 0.28s ease, transform 0.28s ease, background 0.2s ease, border-color 0.2s ease;
}

.cb-back-start-btn.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.cb-back-start-btn:hover {
    background: rgba(212, 175, 55, 0.22);
    border-color: rgba(212, 175, 55, 0.9);
    color: #fff8e6;
}

@media (max-width: 768px) {
    .cb-back-start-btn {
        bottom: 66px;
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* ==================== DESKTOP 3D BOOK ==================== */
.cb3d-viewport {
    perspective: 2200px;
    perspective-origin: 50% 48%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cb3d-book {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.94s cubic-bezier(0.22, 0.84, 0.28, 1), opacity 0.25s ease;
    user-select: none;
}

.cb3d-book.is-loading {
    opacity: 0;
}

/* Căn giữa sách khi đóng bìa đầu hoặc bìa cuối */
.cb3d-book.has-front-cover:not(.has-cover-intro).is-cover-front {
    transform: translateX(-25%);
}

.cb3d-book.has-back-cover.is-cover-back {
    transform: translateX(25%);
}

.cb-cover-intro {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    padding: clamp(24px, 4vw, 56px) clamp(28px, 4.5vw, 64px) clamp(24px, 4vw, 56px) clamp(16px, 2.5vw, 36px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.42s ease;
}

.cb3d-book.is-cover-front .cb-cover-intro {
    opacity: 1;
    pointer-events: auto;
}

.cb-cover-intro-inner {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: 100%;
    overflow-y: auto;
    padding: 20px 0 20px 24px;
    color: rgba(252, 246, 234, 0.94);
    text-align: left;
}

.cb-cover-intro-inner::before {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 0;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(to bottom, transparent 0%, rgba(212, 175, 55, 0.85) 22%, rgba(212, 175, 55, 0.85) 78%, transparent 100%);
}

.cb-cover-intro-body {
    font-size: clamp(15px, 1.35vw, 19px);
    line-height: 1.82;
    letter-spacing: 0.012em;
    color: rgba(252, 246, 234, 0.94);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.cb-cover-intro-body h1,
.cb-cover-intro-body h2,
.cb-cover-intro-body h3,
.cb-cover-intro-body strong {
    color: #f3dfa2;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.cb-cover-intro-body h1,
.cb-cover-intro-body h2,
.cb-cover-intro-body h3 {
    margin: 0 0 12px;
    line-height: 1.35;
}

.cb-cover-intro-body p {
    margin: 0 0 14px;
}

.cb-cover-intro-body p:last-child {
    margin-bottom: 0;
}

.cb-intro-audio-btn {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    background: rgba(212, 175, 55, 0.08);
    color: #f3dfa2;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cb-intro-audio-btn:hover {
    background: rgba(212, 175, 55, 0.18);
    border-color: rgba(212, 175, 55, 0.8);
}

.cb-intro-audio-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cb-intro-audio-btn .cb-ia-pause { display: none; }
.cb-intro-audio-btn.is-playing .cb-ia-play { display: none; }
.cb-intro-audio-btn.is-playing .cb-ia-pause { display: inline-block; }
.cb-intro-audio-btn.is-playing {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.85);
}

.cb3d-base {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    z-index: 1;
    cursor: pointer;
}

.cb3d-base.cb3d-base-left {
    left: 0;
    right: auto;
    border-radius: 8px 0 0 8px;
}

.cb3d-base.cb3d-base-right {
    left: auto;
    right: 0;
    border-radius: 0 8px 8px 0;
}

.cb3d-stack-left,
.cb3d-stack-right {
    position: absolute;
    top: 4px;
    bottom: 4px;
    width: calc(50% - 4px);
    pointer-events: none;
    transition: opacity 0.45s ease;
}

.cb3d-stack-left {
    left: 0;
    border-radius: 8px 0 0 8px;
    background: #ede5d4;
    box-shadow:
        -3px 0 0 #dfd4be,
        -6px 0 0 #d0c3ab,
        -12px 18px 40px rgba(0, 0, 0, 0.55);
}

.cb3d-stack-right {
    right: 0;
    border-radius: 0 8px 8px 0;
    background: #ede5d4;
    box-shadow:
        3px 0 0 #dfd4be,
        6px 0 0 #d0c3ab,
        12px 18px 40px rgba(0, 0, 0, 0.55);
}

.cb3d-book.has-front-cover.is-cover-front .cb3d-stack-left,
.cb3d-book.has-back-cover.is-cover-back .cb3d-stack-right {
    opacity: 0;
}

.cb3d-book.has-front-cover.is-cover-front .cb3d-stack-right {
    top: 6px;
    bottom: 6px;
    right: -5px;
    box-shadow:
        2px 0 0 #e6dcc8,
        4px 0 0 #cfc1a7,
        6px 0 0 #b8a789,
        14px 20px 44px rgba(0, 0, 0, 0.62);
}

.cb3d-book.has-back-cover.is-cover-back .cb3d-stack-left {
    top: 6px;
    bottom: 6px;
    left: -5px;
    box-shadow:
        -2px 0 0 #e6dcc8,
        -4px 0 0 #cfc1a7,
        -6px 0 0 #b8a789,
        -14px 20px 44px rgba(0, 0, 0, 0.62);
}

/* Hardcover (Bìa cứng) styling: gờ rãnh gáy sách, độ dày bìa & ánh sáng bề mặt */
.cb3d-face--hardcover .cb-img-wrap {
    background: var(--cb-primary);
}

.cb3d-face--front.cb3d-face--hardcover {
    border-radius: 3px 11px 11px 3px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        inset 0 -2px 3px rgba(0, 0, 0, 0.32),
        inset -2px 0 3px rgba(0, 0, 0, 0.22),
        14px 18px 34px -8px rgba(0, 0, 0, 0.52);
}

.cb3d-face--back.cb3d-face--hardcover {
    border-radius: 11px 3px 3px 11px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        inset 0 -2px 3px rgba(0, 0, 0, 0.32),
        inset 2px 0 3px rgba(0, 0, 0, 0.22),
        -14px 18px 34px -8px rgba(0, 0, 0, 0.52);
}

.cb3d-face--hardcover::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 8;
    background: linear-gradient(128deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 38%, rgba(0, 0, 0, 0.08) 100%);
}

/* Rãnh gấp gáy bìa cứng đặc trưng */
.cb3d-face--hardcover .cb3d-spine-shadow {
    width: 24px;
    z-index: 9;
}

.cb3d-face--hardcover .cb3d-spine-shadow--right {
    left: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.34) 0%,
        rgba(0, 0, 0, 0.14) 50%,
        rgba(255, 255, 255, 0.18) 62%,
        rgba(0, 0, 0, 0.26) 72%,
        rgba(255, 255, 255, 0.14) 82%,
        transparent 100%
    );
}

.cb3d-face--hardcover .cb3d-spine-shadow--left {
    right: 0;
    background: linear-gradient(
        to left,
        rgba(0, 0, 0, 0.34) 0%,
        rgba(0, 0, 0, 0.14) 50%,
        rgba(255, 255, 255, 0.18) 62%,
        rgba(0, 0, 0, 0.26) 72%,
        rgba(255, 255, 255, 0.14) 82%,
        transparent 100%
    );
}

.cb3d-sheet {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    transform-origin: left center;
    transform-style: preserve-3d;
    transform: rotateY(0deg);
    cursor: grab;
}

.cb3d-sheet.is-turning,
.cb3d-sheet.is-dragging {
    will-change: transform;
}

.cb3d-sheet.is-front-rest {
    transform: none !important;
}

.cb3d-sheet.is-front-rest .cb3d-face--back {
    display: none;
}

.cb3d-sheet.is-front-rest .cb3d-face--front {
    transform: none;
}

.cb3d-sheet.is-flipped-rest {
    transform: translateX(-100%) !important;
}

.cb3d-sheet.is-flipped-rest .cb3d-face--front {
    display: none;
}

.cb3d-sheet.is-flipped-rest .cb3d-face--back {
    transform: none;
}

.cb3d-sheet.is-dragging {
    cursor: grabbing;
}

.cb3d-face {
    position: absolute;
    inset: 0;
    transform-style: flat;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background-color: #faf5ea;
    overflow: hidden;
}

.cb3d-face--front {
    transform: rotateY(0deg) translateZ(0.15px);
    border-radius: 0 8px 8px 0;
}

.cb3d-face--back {
    transform: rotateY(180deg) translateZ(0.15px);
    border-radius: 8px 0 0 8px;
}

.cb3d-spine-shadow {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 8px;
    pointer-events: none;
    z-index: 6;
}

.cb3d-spine-shadow--right {
    left: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.015) 45%, transparent 100%);
}

.cb3d-spine-shadow--left {
    right: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.015) 45%, transparent 100%);
}

.cb3d-sheen {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 7;
    opacity: 0;
    background: linear-gradient(
        102deg,
        rgba(0, 0, 0, 0.07) 0%,
        rgba(255, 255, 255, 0.16) 38%,
        rgba(255, 255, 255, 0.04) 58%,
        rgba(0, 0, 0, 0.05) 100%
    );
    background-size: 200% 100%;
}

.cb3d-cast-shadow {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    pointer-events: none;
    opacity: 0;
    transform: translateZ(1px);
}

.cb3d-cast-shadow--left {
    left: 0;
    border-radius: 8px 0 0 8px;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.06) 45%, transparent 100%);
}

.cb3d-cast-shadow--right {
    right: 0;
    border-radius: 0 8px 8px 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.06) 45%, transparent 100%);
}

/* ==================== CRISP PAGE IMAGE ==================== */
.cb-img-wrap {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #faf5ea;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.cb-img-wrap--full .cb-page-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.cb-img-wrap--left .cb-page-img,
.cb-img-wrap--right .cb-page-img {
    position: absolute;
    top: 0;
    width: 200%;
    max-width: none;
    height: 100%;
    object-fit: contain;
    display: block;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.cb-img-wrap--left .cb-page-img {
    left: 0;
}

.cb-img-wrap--right .cb-page-img {
    left: -100%;
}

.cb-endpaper {
    width: 100%;
    height: 100%;
    padding: 20px;
    background: linear-gradient(155deg, var(--cb-primary) 0%, #5c0b10 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cb-endpaper-inner {
    width: 100%;
    height: 100%;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 4px;
    display: grid;
    place-items: center;
}

.cb-endpaper-mark {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    transform: rotate(45deg);
    opacity: 0.65;
}

.cb-page-link-badge {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 12;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 99px;
    background: rgba(12, 4, 5, 0.8);
    backdrop-filter: blur(8px);
    color: #fde68a;
    border: 1px solid rgba(212, 175, 55, 0.55);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.cb-page-link-badge:hover {
    transform: translateY(-2px);
    background: var(--cb-accent);
    color: #240808;
}

.cb-page-placeholder {
    width: 100%;
    height: 100%;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(155deg, #fffdf8 0%, #f3e8d2 100%);
    color: #3f2822;
}

.cb-placeholder-box {
    border: 1.5px dashed rgba(180, 138, 62, 0.5);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 300px;
    font-size: 13px;
    line-height: 1.55;
}

.cb-placeholder-num {
    display: inline-block;
    align-self: center;
    padding: 3px 12px;
    border-radius: 99px;
    background: rgba(168, 28, 34, 0.1);
    color: var(--cb-primary);
    font-weight: 700;
    font-size: 12px;
}

/* ==================== MOBILE FULL-IMAGE SLIDE CAROUSEL ==================== */
.cb-mobile-card--intro {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 24px;
}

.cb-mobile-intro-inner {
    max-width: 340px;
    padding: 18px 0 18px 20px;
}

.cb-mobile-intro-inner .cb-cover-intro-body {
    font-size: 17px;
    line-height: 1.72;
}

.cb-mobile-deck {
    display: none;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
    transition: opacity 0.25s ease;
    touch-action: pan-y;
}

.cb-mobile-deck.is-loading {
    opacity: 0;
}

.cb-mobile-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.44s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.cb-mobile-track.is-dragging {
    transition: none;
}

.cb-mobile-card {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    user-select: none;
}

.cb-mobile-card .cb-img-wrap {
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.cb-mobile-card .cb-img-wrap--full .cb-page-img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.52);
}

/* ==================== LIGHTBOX ZOOM ==================== */
.cb-pager-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cb-pager-btn:hover:not(:disabled) {
    background: rgba(212, 175, 55, 0.22);
    border-color: rgba(212, 175, 55, 0.6);
}

.cb-pager-btn:disabled {
    opacity: 0.32;
    cursor: default;
}

.cb-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(6, 2, 3, 0.94);
    backdrop-filter: blur(10px);
    display: none;
    flex-direction: column;
}

.cb-lightbox.is-open {
    display: flex;
}

.cb-lightbox-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: #fef3c7;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cb-lightbox-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cb-lightbox-stage {
    flex: 1;
    min-height: 0;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.cb-lightbox-stage img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.75);
    transition: transform 0.25s ease;
    cursor: zoom-in;
}

.cb-lightbox-stage.is-zoomed {
    align-items: flex-start;
    justify-content: flex-start;
}

.cb-lightbox-stage.is-zoomed img {
    max-width: none;
    max-height: none;
    width: 165%;
    cursor: zoom-out;
}

/* ==================== MOBILE RESPONSIVE ==================== */
@media (max-width: 768px) {
    .cb-topbar--minimal {
        top: 12px;
        left: 12px;
        right: 12px;
    }

    .cb-icon-btn {
        width: 38px;
        height: 38px;
    }

    .cb-stage {
        padding: 16px 12px 58px;
    }

    .cb3d-viewport {
        display: none;
    }

    .cb-mobile-deck {
        display: block;
    }

    /* Giữ 2 nút mũi tên gọn nhẹ phía dưới trên Mobile để dễ bấm ngoài thao tác vuốt */
    .cb-side-nav {
        top: auto;
        bottom: 12px;
        transform: none;
        width: 38px;
        height: 38px;
    }

    .cb-side-nav:hover:not(:disabled) {
        transform: scale(1.06);
    }

    .cb-side-prev { left: calc(50% - 48px); }
    .cb-side-next { right: calc(50% - 48px); }
}
