.dihkus-fb-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

.dihkus-fb-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: min(100%, var(--dfb-box-width, 800px));
    max-width: 100%;
}

.dihkus-fb-inline-lead[hidden] {
    display: none !important;
}

.dihkus-fb-inline-lead {
    position: absolute;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.985);
    transform: translateZ(20px);
    -webkit-transform: translateZ(20px);
    overflow-y: auto;
}

.dihkus-fb-inline-lead-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 760px;
    max-height: none;
    overflow: visible;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    padding: 28px;
    box-sizing: border-box;
    margin: 0 auto;
}

.dihkus-fb-inline-lead.is-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    padding: 24px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    align-items: center;
    justify-content: center;
}

.dihkus-fb-inline-lead.is-modal .dihkus-fb-inline-lead-inner {
    width: 100%;
    max-width: 560px;
    max-height: 88vh;
    overflow-y: auto;
}

.dihkus-fb-inline-lead:not(.is-modal) .dihkus-fb-inline-lead-close {
    display: none;
}

.dihkus-fb-inline-lead-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: #e2e8f0;
    color: #0f172a;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.dihkus-fb-book {
    position: relative;
    -webkit-perspective: 2000px;
    perspective: 2000px;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    background: transparent;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.25, 1);
}

.dihkus-fb-sheet {
    position: absolute;
    width: 50%;
    height: 100%;
    top: 0;
    left: 50%;
    transform-origin: left center;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.25, 1);
    cursor: pointer;
    will-change: transform;
    -webkit-transform: translate3d(0, 0, 0) rotateY(0deg);
    transform: translate3d(0, 0, 0) rotateY(0deg);
}

.dihkus-fb-sheet.flipped {
    -webkit-transform: translate3d(0, 0, 0) rotateY(-180deg);
    transform: translate3d(0, 0, 0) rotateY(-180deg);
}

.dihkus-fb-page {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    overflow: hidden;
    background: #fff;
    box-sizing: border-box;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.dihkus-fb-page-front {
    z-index: 2;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.06);
    border-radius: 0;
    -webkit-transform: translate3d(0, 0, 1px);
    transform: translate3d(0, 0, 1px);
}

.dihkus-fb-page-back {
    -webkit-transform: rotateY(180deg) translate3d(0, 0, 1px);
    transform: rotateY(180deg) translate3d(0, 0, 1px);
    z-index: 1;
    box-shadow: -10px 10px 20px rgba(0, 0, 0, 0.06);
    border-radius: 0;
}

.dihkus-fb-page img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.dihkus-fb-empty-page {
    width: 100%;
    height: 100%;
    background: #fff;
}

.dihkus-fb-page-front::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0) 8%);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    pointer-events: none;
    z-index: 10;
}

.dihkus-fb-page-back::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0) 8%);
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    pointer-events: none;
    z-index: 10;
}

.dihkus-fb-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    background: #fff;
    padding: 8px 20px;
    border-radius: 15px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 100;
}

.dihkus-fb-controls-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    padding: 4px 8px;
    border-radius: 24px;
    box-shadow:
        0 8px 20px -6px rgba(15, 23, 42, 0.28),
        0 2px 6px -2px rgba(15, 23, 42, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -2px 6px rgba(15, 23, 42, 0.04);
    transform: translateY(-1px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, filter 0.3s ease;
}

.dihkus-fb-btn .dfb-icon {
    display: inline-block;
    vertical-align: middle;
    flex: none;
}

.dihkus-fb-controls-nav:hover {
    transform: translateY(-3px);
    background: linear-gradient(180deg, #ffffff, #ffffff);
    filter: brightness(1.05);
    box-shadow:
        0 16px 32px -8px rgba(15, 23, 42, 0.38),
        0 4px 10px -4px rgba(15, 23, 42, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -3px 8px rgba(15, 23, 42, 0.05);
}

.dihkus-fb-controls-nav:hover .dihkus-fb-btn {
    background: #e3e3e3;
    color: #0f172a;
    box-shadow:
        0 2px 6px -1px rgba(15, 23, 42, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.dihkus-fb-btn {
    border: none;
    background: #f1f5f9;
    color: #475569;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.dihkus-fb-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.dihkus-fb-btn .dfb-icon {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.dihkus-fb-btn .dfb-sound-on-icon {
    display: inline-block;
}

.dihkus-fb-btn .dfb-sound-off-icon {
    display: none;
}

.dihkus-fb-btn.dfb-sound-off .dfb-sound-on-icon {
    display: none;
}

.dihkus-fb-btn.dfb-sound-off .dfb-sound-off-icon {
    display: inline-block;
}

.dihkus-fb-btn.dfb-sound-off {
    background: #e2e8f0;
    color: #94a3b8;
}

.dihkus-fb-page-num {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    min-width: 110px;
    text-align: center;
}

.dihkus-fb-container.zoomed {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.94) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    z-index: 999999 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 40px 20px !important;
    box-sizing: border-box !important;
}

.dihkus-fb-container.zoomed .dihkus-fb-controls {
    margin-top: 30px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

.dihkus-fb-container.zoomed .dihkus-fb-controls-nav {
    transform: translateY(-1px);
    box-shadow:
        0 12px 28px -6px rgba(15, 23, 42, 0.4),
        0 4px 10px -4px rgba(15, 23, 42, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -2px 6px rgba(15, 23, 42, 0.05);
}
