/**
 * WP Flipbook 3D - Frontend Styles (MAGAZINE STYLE - FULL WIDTH WITH ARROWS)
 * FIXED: Mobile responsive - no white space, bigger buttons, zoom support
 */

/* ==========================================================================
   Import Google Fonts
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   Reset untuk menghilangkan white space
   ========================================================================== */
body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}


.wd-sidebar-opener.wd-action-btn.wd-style-icon.wd-burger-icon.wd-hide-lg {
    display:none;
}
/* ==========================================================================
   Main Container - FULL WIDTH
   ========================================================================== */
.wp-flipbook-main-container {
    margin: 0 auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
    background: #f8f6f2;
    position: relative;
}

.flipbook-single-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: #f8f6f2;
}

.flipbook-error {
    padding: 20px;
    background: #fef0f0;
    border: 1px solid #fcc1c1;
    border-radius: 8px;
    color: #d63638;
    text-align: center;
}

/* ==========================================================================
   HEADER / TITLE
   ========================================================================== */
.flipbook-magazine-header {
    text-align: center;
    margin-bottom: 10px;
    padding: 12px 20px 10px;
    border-bottom: 2px solid #e8e3d8;
    position: relative;
    background: #f8f6f2;
}

.flipbook-magazine-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: #d4a373;
}

.flipbook-title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 900;
    font-size: clamp(22px, 3vw, 38px);
    color: #1e293b;
    margin: 0 0 2px;
    letter-spacing: 0.5px;
}

.flipbook-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(10px, 0.8vw, 13px);
    color: #8a7f72;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin: 0;
}

/* ==========================================================================
   AUTH BADGE
   ========================================================================== */
.flipbook-auth-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 5px 14px;
    margin: 0 20px 8px;
    background: #ffffff;
    border: 1px solid #e8e3d8;
    border-radius: 30px;
    color: #2d2a24;
    font-size: 11px;
    flex-wrap: wrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.flipbook-auth-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #d4a373;
}

.flipbook-auth-badge .username {
    font-weight: 600;
    color: #1e293b;
}

.flipbook-logout-btn {
    padding: 2px 12px;
    background: transparent;
    border: 1.5px solid #d4a373;
    border-radius: 20px;
    color: #d4a373;
    cursor: pointer;
    font-size: 9px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.flipbook-logout-btn:hover {
    background: #d4a373;
    color: #fff;
}

/* ==========================================================================
   MAIN WRAPPER - POSISI RELATIVE UNTUK ARROW
   ========================================================================== */
.flipbook-main-wrapper {
    position: relative !important;
    width: 100%;
    background: #f5f0eb;
    overflow: visible !important;
    padding: 0 70px !important;
    box-sizing: border-box;
}

.flipbook-3d-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: #f5f0eb;
    overflow: visible !important;
}

/* ==========================================================================
   NAV ARROWS - SAMPING KIRI DAN KANAN BUKU
   ========================================================================== */
.flipbook-nav-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 9999 !important;
    width: 48px !important;
    height: 48px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #1e293b !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12) !important;
    transition: all 0.3s ease !important;
    opacity: 1 !important;
    visibility: visible !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

.flipbook-nav-arrow .dashicons {
    font-size: 28px !important;
    width: 28px !important;
    height: 28px !important;
}

.flipbook-nav-arrow-left {
    left: 8px !important;
}

.flipbook-nav-arrow-right {
    right: 8px !important;
}

.flipbook-nav-arrow:hover {
    background: #ffffff !important;
    box-shadow: 0 8px 35px rgba(0,0,0,0.2) !important;
    transform: translateY(-50%) scale(1.05) !important;
    border-color: #d4a373 !important;
}

.flipbook-nav-arrow:active {
    transform: translateY(-50%) scale(0.92) !important;
}

.flipbook-nav-arrow:disabled {
    opacity: 0.2 !important;
    cursor: not-allowed !important;
    transform: translateY(-50%) scale(1) !important;
    pointer-events: none !important;
}

/* ==========================================================================
   BOOK SHADOW
   ========================================================================== */
.flipbook-book-shadow {
    position: absolute;
    bottom: -20px;
    left: 5%;
    right: 5%;
    height: 40px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.12) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    transition: all 0.5s ease;
}

/* ==========================================================================
   FLIPBOOK WRAPPER
   ========================================================================== */
.flipbook-wrapper {
    position: relative;
    margin: 10px auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-radius: 4px;
    overflow: hidden;
    background: #f5f0eb;
    transition: box-shadow 0.5s ease;
}

.flipbook-wrapper:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

/* ==========================================================================
   FLIPBOOK CORE
   ========================================================================== */
.flipbook {
    width: 100% !important;
    height: 100% !important;
    background: #f5f0eb;
}

.flipbook .flipbook-page {
    background: #fff;
    position: relative;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.02);
}

.flipbook .page-content {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.flipbook .page-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #fff;
    pointer-events: none;
    user-select: none;
}

.flipbook .page-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: #fff;
    font-size: 14px;
    text-align: center;
    font-family: 'Playfair Display', serif;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.flipbook .flipbook-page:hover .page-caption {
    transform: translateY(0);
}

/* ==========================================================================
   ZOOM CONTAINER - UNTUK DRAG/GESER DAN PINCH ZOOM
   ========================================================================== */
.flipbook-zoom-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: grab;
    touch-action: none;
}

.flipbook-zoom-container:active {
    cursor: grabbing;
}

.flipbook-zoom-content {
    position: relative;
    width: 100%;
    height: 100%;
    transform-origin: center center;
    transition: transform 0.1s ease;
    will-change: transform;
}

/* ==========================================================================
   CONTROLS
   ========================================================================== */
.flipbook-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #ffffff;
    border-top: 1px solid #f0ebe3;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.04);
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

.flipbook-controls-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 6px;
}

.flipbook-controls-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    width: 100%;
}

.flipbook-navigation {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.flipbook-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.flipbook-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 10px;
    background: transparent;
    border: 1.5px solid #e8e3d8;
    border-radius: 30px;
    color: #4a443c;
    cursor: pointer;
    font-size: 10px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-height: 28px;
    min-width: 28px;
}

.flipbook-btn:hover {
    background: #f5f0eb;
    border-color: #d4a373;
    color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.flipbook-btn:active {
    transform: translateY(0);
}

.flipbook-btn.active {
    background: #1e293b;
    border-color: #1e293b;
    color: #fff;
}

.flipbook-btn.active:hover {
    background: #2d3748;
    border-color: #2d3748;
}

.flipbook-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.flipbook-btn .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
}

.flipbook-btn .btn-text {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ==========================================================================
   PAGE INDICATOR
   ========================================================================== */
.page-indicator {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 2px 12px;
    background: #f8f6f2;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 500;
    color: #4a443c;
    min-width: 60px;
    justify-content: center;
    border: 1px solid #f0ebe3;
    font-family: 'Inter', sans-serif;
    display:none;
}

.current-page {
    color: #1e293b;
    font-weight: 700;
    font-size: 14px;
    font-family: 'Playfair Display', serif;
}

.page-separator {
    color: #d4a373;
    font-weight: 300;
}

.total-pages {
    color: #8a7f72;
    font-weight: 400;
    font-size: 11px;
}

/* ==========================================================================
   ZOOM CONTROLS
   ========================================================================== */
.zoom-controls {
    display: flex;
    align-items: center;
    gap: 2px;
    background: #f8f6f2;
    border: 1px solid #f0ebe3;
    border-radius: 30px;
    padding: 1px 3px;
}

.zoom-controls .flipbook-btn {
    padding: 1px 5px;
    border: none;
    background: transparent;
    min-width: 22px;
    justify-content: center;
    min-height: 22px;
    font-size: 9px;
    border-radius: 50%;
}

.zoom-controls .flipbook-btn:hover {
    background: #e8e3d8;
}

.zoom-controls .zoom-level {
    min-width: 32px;
    text-align: center;
    font-size: 9px;
    font-weight: 600;
    color: #4a443c;
    padding: 0 2px;
    font-family: 'Inter', sans-serif;
}

.zoom-controls .flipbook-btn .dashicons {
    font-size: 10px;
    width: 10px;
    height: 10px;
}

/* ==========================================================================
   FULLSCREEN BUTTON
   ========================================================================== */
.flipbook-btn[data-action="fullscreen"] {
    background: #1e293b;
    border-color: #1e293b;
    color: #fff;
}

.flipbook-btn[data-action="fullscreen"]:hover {
    background: #2d3748;
    border-color: #2d3748;
    box-shadow: 0 4px 15px rgba(30, 41, 59, 0.25);
}

/* ==========================================================================
   FULLSCREEN MODE - FIXED
   ========================================================================== */
.flipbook-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    background: #1a1614 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

body.flipbook-fullscreen-active {
    overflow: hidden !important;
}

.flipbook-fullscreen .flipbook-single-container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #1a1614 !important;
    height: 77vh !important;
    display: flex !important;
    flex-direction: column !important;
}

.flipbook-fullscreen .wp-flipbook-main-container {
    margin: 0 !important;
    padding: 0 !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    background: #1a1614 !important;
    height: 100% !important;
}

.flipbook-fullscreen .flipbook-main-wrapper {
    flex: 1 !important;
    background: #1a1614 !important;
    padding: 0 50px !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.flipbook-fullscreen .flipbook-3d-container {
    flex: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
    background: #1a1614 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.flipbook-fullscreen .flipbook-wrapper {
    height: calc(100vh - 130px) !important;
    min-height: auto !important;
    max-height: none !important;
    margin: 0 auto !important;
    border-radius: 4px !important;
    box-shadow: 0 0 80px rgba(0,0,0,0.6) !important;
    width: auto !important;
    aspect-ratio: 3/2 !important;
    max-width: 92% !important;
}

.flipbook-fullscreen .flipbook {
    height: 100% !important;
}

.flipbook-fullscreen .flipbook-controls {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 100000 !important;
    background: rgba(26, 22, 20, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 0 !important;
    padding: 10px 20px !important;
    margin: 0 !important;
    box-shadow: 0 -4px 40px rgba(0,0,0,0.5) !important;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.flipbook-fullscreen .flipbook-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 32px !important;
    min-width: 32px !important;
    padding: 4px 12px !important;
    font-size: 11px !important;
    border-radius: 30px !important;
}

.flipbook-fullscreen .flipbook-btn:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-2px) !important;
}

.flipbook-fullscreen .flipbook-btn .dashicons {
    font-size: 14px !important;
    width: 14px !important;
    height: 14px !important;
    color: #ffffff !important;
}

.flipbook-fullscreen .page-indicator {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 4px 14px !important;
    min-width: 60px !important;
    font-size: 12px !important;
    display:none !important;
}

.flipbook-fullscreen .current-page {
    color: #d4a373 !important;
    font-size: 15px !important;
}

.flipbook-fullscreen .zoom-controls {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 2px 6px !important;
    border-radius: 30px !important;
}

.flipbook-fullscreen .zoom-controls .flipbook-btn {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    min-width: 26px !important;
    min-height: 26px !important;
    padding: 2px 6px !important;
}

.flipbook-fullscreen .zoom-controls .zoom-level {
    color: #ffffff !important;
    min-width: 32px !important;
    font-size: 10px !important;
}

.flipbook-fullscreen .flipbook-nav-arrow {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 100000 !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

.flipbook-fullscreen .flipbook-nav-arrow .dashicons {
    color: #ffffff !important;
}

.flipbook-fullscreen .flipbook-nav-arrow-left {
    left: 10px !important;
}

.flipbook-fullscreen .flipbook-nav-arrow-right {
    right: 10px !important;
}

.flipbook-fullscreen .flipbook-title,
.flipbook-fullscreen .flipbook-auth-badge,
.flipbook-fullscreen .flipbook-magazine-header,
.flipbook-fullscreen .flipbook-book-shadow {
    display: none !important;
}

.flipbook-close-fullscreen {
    position: fixed !important;
    top: 12px !important;
    right: 16px !important;
    z-index: 100001 !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: #ffffff !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.flipbook-close-fullscreen:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.08) !important;
}

.flipbook-close-fullscreen .dashicons {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
    color: #ffffff !important;
}

/* ==========================================================================
   RESPONSIVE - PERBAIKAN UNTUK HP (TIDAK ADA SPACE PUTIH)
   ========================================================================== */

/* Desktop Large */
@media (min-width: 1200px) {
    .flipbook-main-wrapper {
        padding: 0 80px !important;
    }
    
    .flipbook-wrapper {
        height: calc(100vh - 200px) !important;
        min-height: 500px;
        max-height: 800px;
        width: 85% !important;
    }
    
    .flipbook-nav-arrow {
        width: 55px !important;
        height: 55px !important;
        z-index: 0 !important;
    }
    
    .flipbook-nav-arrow-left {
        left: 12px !important;
    }
    
    .flipbook-nav-arrow-right {
        right: 12px !important;
    }
    
    .flipbook-nav-arrow .dashicons {
        font-size: 32px !important;
        width: 32px !important;
        height: 32px !important;
    }
}

/* Desktop */
@media (min-width: 992px) and (max-width: 1199px) {
    .flipbook-main-wrapper {
        padding: 0 70px !important;
    }
    
    .flipbook-wrapper {
        height: calc(100vh - 190px) !important;
        min-height: 450px;
        max-height: 750px;
        width: 88% !important;
    }
    
    .flipbook-nav-arrow {
        width: 48px !important;
        height: 48px !important;
    }
    
    .flipbook-nav-arrow-left {
        left: 10px !important;
    }
    
    .flipbook-nav-arrow-right {
        right: 10px !important;
    }
    
    .flipbook-nav-arrow .dashicons {
        font-size: 28px !important;
        width: 28px !important;
        height: 28px !important;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 991px) {
    .flipbook-main-wrapper {
        padding: 0 60px !important;
    }
    
    .flipbook-wrapper {
        height: calc(100vh - 180px) !important;
        min-height: 380px;
        max-height: 600px;
        width: 92% !important;
    }
    
    .flipbook-nav-arrow {
        width: 42px !important;
        height: 42px !important;
    }
    
    .flipbook-nav-arrow-left {
        left: 8px !important;
    }
    
    .flipbook-nav-arrow-right {
        right: 8px !important;
    }
    
    .flipbook-nav-arrow .dashicons {
        font-size: 24px !important;
        width: 24px !important;
        height: 24px !important;
    }
}

/* ================================================================
   MOBILE - PERBAIKAN UTAMA (TIDAK ADA SPACE PUTIH)
   TOMBOL LEBIH BESAR DAN MUDAH DITEKAN
   ================================================================ */
@media (max-width: 768px) {
    /* Reset all margins and paddings */
    .flipbook-single-container {
        padding: 0 !important;
        margin: 0 !important;
        min-height: 70vh !important;
        background: #f5f0eb !important;
        overflow-x: hidden !important;
    }
    
    .flipbook-main-wrapper {
        padding: 0 30px !important;
        margin: 0 !important;
        background: #f5f0eb !important;
        min-height: auto !important;
    }
    
    .flipbook-3d-container {
        padding: 0 !important;
        margin: 0 !important;
        background: #f5f0eb !important;
    }
    
    .flipbook-wrapper {
        height: 65vh !important;
        min-height: 300px !important;
        max-height: 550px !important;
        width: 100% !important;
        border-radius: 4px !important;
        margin: 5px auto !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    }
    
    .flipbook-zoom-container {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .flipbook-zoom-content {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Header lebih compact */
    .flipbook-magazine-header {
        padding: 6px 12px 4px !important;
        margin-bottom: 4px !important;
        border-bottom: 1px solid #e8e3d8 !important;
        background: #f8f6f2 !important;
    }
    
    .flipbook-magazine-header::after {
        display: none !important;
    }
    
    .flipbook-title {
        font-size: clamp(14px, 2.5vw, 18px) !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.2 !important;
    }
    
    .flipbook-subtitle {
        font-size: 7px !important;
        letter-spacing: 2px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Controls lebih compact */
    .flipbook-controls {
        padding: 6px 8px !important;
        gap: 4px !important;
        background: #ffffff !important;
        border-top: 1px solid #f0ebe3 !important;
    }
    
    .flipbook-controls-top {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 4px !important;
    }
    
    .flipbook-controls-bottom {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
        justify-content: center !important;
    }
    
    .flipbook-navigation {
        gap: 3px !important;
        flex-wrap: wrap !important;
    }
    
    .flipbook-actions {
        gap: 3px !important;
        flex-wrap: wrap !important;
    }
    
    /* ============================================================
       TOMBOL LEBIH BESAR UNTUK HP
       ============================================================ */
    .flipbook-btn {
        padding: 6px 12px !important;
        font-size: 10px !important;
        min-height: 32px !important;
        min-width: 32px !important;
        border-radius: 20px !important;
        border: 1.5px solid #e8e3d8 !important;
        background: #ffffff !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    }
    
    .flipbook-btn .dashicons {
        font-size: 14px !important;
        width: 14px !important;
        height: 14px !important;
    }
    
    .flipbook-btn .btn-text {
        display: inline !important;
        font-size: 8px !important;
        font-weight: 600 !important;
        letter-spacing: 0.3px !important;
    }
    
    .flipbook-btn:hover {
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    }
    
    /* Tombol fullscreen tetap terlihat */
    .flipbook-btn[data-action="fullscreen"] {
        background: #1e293b !important;
        border-color: #1e293b !important;
        color: #fff !important;
        padding: 6px 14px !important;
    }
    
    .flipbook-btn[data-action="fullscreen"] .btn-text {
        color: #fff !important;
        font-size: 8px !important;
    }
    
    .flipbook-btn[data-action="fullscreen"]:hover {
        background: #2d3748 !important;
        border-color: #2d3748 !important;
    }
    
    /* Page indicator lebih besar */
    .page-indicator {
        font-size: 11px !important;
        padding: 4px 12px !important;
        min-width: 50px !important;
        height: 28px !important;
        background: #ffffff !important;
        border: 1.5px solid #e8e3d8 !important;
        border-radius: 20px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
    }
    
    .current-page {
        font-size: 14px !important;
        font-weight: 700 !important;
    }
    
    .total-pages {
        font-size: 11px !important;
    }
    
    /* Zoom controls lebih besar */
    .zoom-controls {
        padding: 3px 6px !important;
        height: 28px !important;
        background: #ffffff !important;
        border: 1.5px solid #e8e3d8 !important;
        border-radius: 20px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
    }
    
    .zoom-controls .flipbook-btn {
        padding: 2px 6px !important;
        min-width: 24px !important;
        min-height: 24px !important;
        font-size: 8px !important;
        border: none !important;
        background: transparent !important;
        border-radius: 50% !important;
        box-shadow: none !important;
    }
    
    .zoom-controls .zoom-level {
        min-width: 28px !important;
        font-size: 9px !important;
        font-weight: 600 !important;
        color: #1e293b !important;
    }
    
    .zoom-controls .flipbook-btn .dashicons {
        font-size: 10px !important;
        width: 10px !important;
        height: 10px !important;
    }
    
    /* Nav arrows lebih besar */
    .flipbook-nav-arrow {
        width: 36px !important;
        height: 36px !important;
        background: rgba(255, 255, 255, 0.95) !important;
        box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
        border: 1px solid rgba(0,0,0,0.06) !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        z-index: 0 !important;
    }
    
    .flipbook-nav-arrow-left {
        left: 4px !important;
    }
    
    .flipbook-nav-arrow-right {
        right: 4px !important;
    }
    
    .flipbook-nav-arrow .dashicons {
        font-size: 18px !important;
        width: 18px !important;
        height: 18px !important;
    }
    
    /* Auth badge compact */
    .flipbook-auth-badge {
        font-size: 8px !important;
        padding: 2px 10px !important;
        gap: 4px !important;
        margin: 0 10px 4px !important;
        border-radius: 20px !important;
        background: #ffffff !important;
        border: 1px solid #e8e3d8 !important;
    }
    
    .flipbook-logout-btn {
        font-size: 7px !important;
        padding: 1px 10px !important;
    }
    
    .flipbook-book-shadow {
        display: none !important;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .flipbook-main-wrapper {
        padding: 0 20px !important;
    }
    
    .flipbook-wrapper {
        height: 55vh !important;
        min-height: 250px !important;
        max-height: 450px !important;
    }
    
    .flipbook-btn {
        padding: 4px 8px !important;
        font-size: 8px !important;
        min-height: 28px !important;
        min-width: 28px !important;
    }
    
    .flipbook-btn .dashicons {
        font-size: 12px !important;
        width: 12px !important;
        height: 12px !important;
    }
    
    .page-indicator {
        font-size: 9px !important;
        padding: 3px 8px !important;
        min-width: 40px !important;
        height: 24px !important;
    }
    
    .current-page {
        font-size: 12px !important;
    }
    
    .total-pages {
        font-size: 9px !important;
    }
    
    .zoom-controls {
        height: 24px !important;
        padding: 2px 4px !important;
    }
    
    .zoom-controls .flipbook-btn {
        min-width: 20px !important;
        min-height: 20px !important;
        padding: 1px 4px !important;
    }
    
    .zoom-controls .zoom-level {
        min-width: 20px !important;
        font-size: 7px !important;
    }
    
    .zoom-controls .flipbook-btn .dashicons {
        font-size: 8px !important;
        width: 8px !important;
        height: 8px !important;
    }
    
    .flipbook-nav-arrow {
        width: 30px !important;
        height: 30px !important;
    }
    
    .flipbook-nav-arrow .dashicons {
        font-size: 14px !important;
        width: 14px !important;
        height: 14px !important;
    }
    
    .flipbook-nav-arrow-left {
        left: 2px !important;
    }
    
    .flipbook-nav-arrow-right {
        right: 2px !important;
    }
    
    .flipbook-magazine-header {
        padding: 4px 8px 2px !important;
    }
    
    .flipbook-title {
        font-size: clamp(12px, 2vw, 15px) !important;
    }
    
    .flipbook-subtitle {
        font-size: 6px !important;
        letter-spacing: 1px !important;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
    .flipbook-controls,
    .flipbook-auth-badge,
    .flipbook-book-shadow,
    .flipbook-magazine-header,
    .flipbook-nav-arrow {
        display: none !important;
    }
    
    .flipbook-wrapper {
        box-shadow: none !important;
        height: auto !important;
        min-height: auto !important;
    }
    
    .flipbook .flipbook-page {
        page-break-after: always;
    }
}