/**
 * Smarembeded Premium Elementor Styles
 * Styles for the 9 Flipbook Presentation Modes, Visitor Style Selector, Gallery, Featured Hero, and Popups.
 */

/* ==========================================================================
   1. SCOPING & BASE INSTANCE ISOLATION
   ========================================================================== */
.smartembed-pdf-app-container.se-instance-scoped {
    position: relative;
    box-sizing: border-box;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.smartembed-pdf-app-container.se-instance-scoped * {
    box-sizing: border-box;
}

/* ==========================================================================
   2. MODULAR PRESENTATION STYLES (LOADED FROM DEDICATED MODULES)
   ========================================================================== */
@import url('../flipbook/styles/realistic-3d-book/realistic-3d-book.css');
@import url('../flipbook/styles/luxuary-magazine/luxuary-magazine.css');
@import url('../flipbook/styles/binding-calendar-book/binding-calendar-book.css');
@import url('../flipbook/styles/cinematic-3d-showcase/cinematic-3d-showcase.css');
@import url('../flipbook/styles/binding-books/binding-books.css');
@import url('../flipbook/styles/vintage-paper-journal/vintage-paper-journal.css');
@import url('../flipbook/styles/card-stack/card-stack.css');

/* Legacy Fallback Styles (Preserved for backward compatibility) */
.se-style-photo-album .my-page {
    border: 8px solid #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    background: #f8fafc;
}
.se-style-cinematic-3d .smartembed-flipbook-container {
    perspective: 1800px;
    transform: rotateY(-2deg) rotateX(2deg);
    transition: transform 0.5s ease-out;
}
.se-style-cinematic-3d:hover .smartembed-flipbook-container {
    transform: rotateY(0deg) rotateX(0deg);
}

/* ==========================================================================
   3. VISITOR STYLE SELECTOR UI (PHASE 6)
   ========================================================================== */

/* Toolbar Style Switcher Button */
.smartembed-tool-btn.se-visitor-style-btn {
    position: relative;
    color: #e0e7ff;
    transition: color 0.2s ease, transform 0.2s ease;
}
.smartembed-tool-btn.se-visitor-style-btn:hover,
.smartembed-tool-btn.se-visitor-style-btn.se-active {
    color: #818cf8 !important;
    transform: scale(1.08);
}
.smartembed-tool-btn.se-visitor-style-btn.se-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #818cf8;
}

/* Sliding Style Gallery Panel */
.se-visitor-style-panel {
    position: absolute;
    bottom: 64px;
    left: 50%;
    transform: translateX(-50%) translateY(20px) scale(0.97);
    width: calc(100% - 32px);
    max-width: 780px;
    background: rgba(18, 20, 29, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.se-visitor-style-panel.se-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}

.se-style-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.se-style-panel-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #f1f5f9;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.se-style-panel-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #cbd5e1;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: background 0.2s, color 0.2s;
}
.se-style-panel-close:hover {
    background: rgba(239, 68, 68, 0.8);
    color: #fff;
}

/* Style cards horizontal scroll gallery */
.se-style-cards-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 6px 2px 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
.se-style-cards-track::-webkit-scrollbar {
    height: 6px;
}
.se-style-cards-track::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
}

.se-style-option-card {
    flex: 0 0 135px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    user-select: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.se-style-option-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(129, 140, 248, 0.6);
    transform: translateY(-3px);
}

.se-style-option-card.se-active-style {
    background: rgba(99, 102, 241, 0.18);
    border-color: #818cf8;
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.35);
}

.se-style-option-card .se-style-icon-wrap {
    width: 36px;
    height: 36px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.se-style-option-card.se-active-style .se-style-icon-wrap {
    color: #818cf8;
    background: rgba(99, 102, 241, 0.25);
}

.se-style-option-card .se-style-name {
    font-size: 11.5px;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.se-style-option-card .se-style-desc {
    font-size: 9.5px;
    color: #94a3b8;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Active Badge */
.se-style-option-card.se-active-style::before {
    content: '✓';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 16px;
    height: 16px;
    background: #6366f1;
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   4. PDF GALLERY WIDGET STYLES
   ========================================================================== */
.se-pdf-gallery-wrapper {
    position: relative;
    width: 100%;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Grid Layout */
.se-layout-grid .se-gallery-track {
    display: grid;
    gap: 24px;
}
.se-layout-grid.se-cols-1 .se-gallery-track { grid-template-columns: 1fr; }
.se-layout-grid.se-cols-2 .se-gallery-track { grid-template-columns: repeat(2, 1fr); }
.se-layout-grid.se-cols-3 .se-gallery-track { grid-template-columns: repeat(3, 1fr); }
.se-layout-grid.se-cols-4 .se-gallery-track { grid-template-columns: repeat(4, 1fr); }
.se-layout-grid.se-cols-5 .se-gallery-track { grid-template-columns: repeat(5, 1fr); }
.se-layout-grid.se-cols-6 .se-gallery-track { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 900px) {
    .se-layout-grid.se-cols-3 .se-gallery-track,
    .se-layout-grid.se-cols-4 .se-gallery-track,
    .se-layout-grid.se-cols-5 .se-gallery-track,
    .se-layout-grid.se-cols-6 .se-gallery-track {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .se-layout-grid .se-gallery-track {
        grid-template-columns: 1fr !important;
    }
}

/* Carousel Layout */
.se-layout-carousel {
    display: flex;
    align-items: center;
    position: relative;
}
.se-layout-carousel .se-gallery-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 12px 4px 20px;
    width: 100%;
    scrollbar-width: none;
}
.se-layout-carousel .se-gallery-track::-webkit-scrollbar {
    display: none;
}
.se-layout-carousel .se-gallery-card {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 240px;
}
@media (max-width: 800px) {
    .se-layout-carousel .se-gallery-card {
        flex: 0 0 calc(50% - 10px);
    }
}
@media (max-width: 500px) {
    .se-layout-carousel .se-gallery-card {
        flex: 0 0 100%;
    }
}

.se-layout-carousel .se-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    z-index: 20;
    transition: background 0.2s, transform 0.2s;
}
.se-layout-carousel .se-gallery-arrow:hover {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
    transform: translateY(-50%) scale(1.08);
}
.se-layout-carousel .se-prev-arrow { left: -16px; }
.se-layout-carousel .se-next-arrow { right: -16px; }

/* List Layout */
.se-layout-list .se-gallery-track {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.se-layout-list .se-gallery-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}
.se-layout-list .se-card-cover-wrap {
    width: 110px;
    height: 140px;
    flex-shrink: 0;
}

/* Card Styling */
.se-pdf-gallery-wrapper .se-gallery-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.se-pdf-gallery-wrapper .se-gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.se-card-cover-wrap {
    position: relative;
    width: 100%;
    height: 250px;
    background: #f1f5f9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.se-card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.se-gallery-card:hover .se-card-cover {
    transform: scale(1.04);
}

.se-card-spine-overlay {
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 14px;
    background: linear-gradient(to right, rgba(0,0,0,0.3), transparent);
    pointer-events: none;
}

.se-card-content {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.se-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 6px;
    line-height: 1.35;
}

.se-card-excerpt {
    font-size: 13.5px;
    color: #64748b;
    margin: 0 0 16px;
    line-height: 1.45;
    flex-grow: 1;
}

.se-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #4f46e5;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
    width: 100%;
}
.se-card-btn:hover {
    background: #4338ca;
    transform: translateY(-1px);
}

/* ==========================================================================
   5. FEATURED FLIPBOOK HERO WIDGET STYLES
   ========================================================================== */
.se-featured-flipbook-hero {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 36px 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    margin: 24px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    flex-wrap: wrap;
}

.se-featured-flipbook-hero.se-cover-right {
    flex-direction: row-reverse;
}
.se-featured-flipbook-hero.se-cover-center {
    flex-direction: column;
    text-align: center;
}

.se-featured-cover-container {
    flex: 0 0 280px;
    display: flex;
    justify-content: center;
}

.se-featured-3d-book-mockup {
    position: relative;
    width: 220px;
    height: 310px;
    perspective: 1200px;
}

.se-featured-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px 10px 10px 4px;
    box-shadow: -8px 12px 28px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.08);
    transform: rotateY(-14deg) rotateX(4deg);
    transition: transform 0.4s ease;
}
.se-featured-3d-book-mockup:hover .se-featured-cover-img {
    transform: rotateY(-6deg) rotateX(1deg);
}

.se-featured-info-container {
    flex: 1 1 360px;
}

.se-featured-badge {
    display: inline-block;
    background: #e0e7ff;
    color: #4338ca;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.se-featured-title {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px;
    line-height: 1.25;
}

.se-featured-desc {
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 24px;
}

.se-featured-button-group {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.se-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14.5px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}
.se-btn-primary {
    background: #4f46e5;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}
.se-btn-primary:hover {
    background: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}
.se-btn-secondary {
    background: #ffffff;
    color: #334155;
    border: 1px solid #cbd5e1;
}
.se-btn-secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

/* ==========================================================================
   6. PDF POPUP / LIGHTBOX WIDGET STYLES
   ========================================================================== */
.se-popup-widget-wrapper {
    display: inline-block;
}

.se-popup-trigger-btn {
    cursor: pointer;
}

.se-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: seFadeIn 0.3s ease;
}

.se-modal-window {
    position: relative;
    background: #18191c;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: seScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.se-modal-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 1000000;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: none;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}
.se-modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.9);
    transform: scale(1.1);
}

.se-modal-content-area {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.se-modal-content-area .smartembed-pdf-app-container {
    margin: 0 !important;
    border-radius: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
}

@keyframes seFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes seScaleIn {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   FLAGSHIP: SMARMBEDED ELEMENTOR PDF FLIPBOOK WIDGET & REALISTIC 3D CANVAS
   ========================================================================== */

/* 1. Root & Canvas Scoping */
.smartembed-elementor-pdf-flipbook.se-el-instance-scoped {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
}

.smartembed-elementor-pdf-flipbook.se-el-instance-scoped * {
    box-sizing: border-box;
}

.smartembed-elementor-flipbook-canvas {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: min(88vh, 780px);
    min-height: 520px;
    box-sizing: border-box;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: background 0.35s ease, box-shadow 0.35s ease, border-radius 0.35s ease;
}

/* 2. Style Gallery Header & Perspective Carousel (Regions A & B) */
.smartembed-elementor-style-gallery {
    margin-bottom: 2px;
    user-select: none;
    width: 100%;
    flex: 0 0 auto;
}

.se-style-gallery-header {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 2px;
    padding: 0;
}

.se-style-gallery-title {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #1e243d;
    letter-spacing: -0.1px;
    line-height: 1.15;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Perspective Carousel Layout */
.se-style-gallery-carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    perspective: 1000px;
    perspective-origin: 50% 50%;
    min-height: 96px;
}

.se-style-gallery-carousel .se-gallery-arrow {
    position: relative !important;
    top: auto !important;
    transform: none !important;
    flex: 0 0 28px !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    color: #1e243d !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 30;
    margin: 0 !important;
    padding: 0 !important;
    outline: none;
}

.se-style-gallery-carousel .se-gallery-arrow svg {
    width: 16px !important;
    height: 16px !important;
    pointer-events: none !important;
    display: block !important;
}

.se-style-gallery-carousel .se-gallery-arrow:hover:not(:disabled) {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
    transform: scale(1.08) !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12) !important;
}

.se-style-gallery-carousel .se-gallery-arrow:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.se-gallery-viewport {
    position: relative;
    flex: 1 1 auto;
    max-width: 710px;
    height: 94px;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.se-style-gallery-carousel .se-gallery-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

/* 3D Perspective Card Arrangement - Bigger Proportion per user feedback */
.se-style-gallery-carousel .se-gallery-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 116px;
    margin-top: -42px;
    margin-left: -58px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 10px;
    padding: 5px 6px 6px;
    cursor: pointer;
    box-sizing: border-box;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.45s ease, border-color 0.45s ease, opacity 0.45s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    user-select: none;
    display: flex;
    flex-direction: column;
}

.se-style-gallery-carousel .se-gallery-card:hover:not(.se-card-active) {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}

/* Active / Selected Card matching reference */
.se-style-gallery-carousel .se-gallery-card.se-card-active {
    border: 1.5px solid #8750ff;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(135, 80, 255, 0.25), 0 2px 6px rgba(0, 0, 0, 0.04);
    z-index: 10;
}

/* Card Preview Box & Thumbnail - Generous, beautiful size */
.se-style-gallery-carousel .se-card-preview-box {
    width: 100%;
    height: 52px;
    border-radius: 6px;
    background: transparent;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
    position: relative;
    padding: 0;
}

.se-style-gallery-carousel .se-card-thumb-image {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 4px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.se-style-gallery-carousel .se-gallery-card:hover .se-card-thumb-image {
    transform: scale(1.04);
}

/* Card Content & Title */
.se-style-gallery-carousel .se-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1px;
    padding: 0;
}

.se-style-gallery-carousel .se-card-title {
    margin: 0;
    font-size: 10.5px;
    font-weight: 600;
    color: #1e243d;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 104px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Selected Checkmark Badge (Exact Purple Circle with White Checkmark) */
.se-style-gallery-carousel .se-card-check-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #8750ff;
    color: #ffffff;
    margin-top: 1px;
    box-shadow: 0 1px 3px rgba(135, 80, 255, 0.35);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.se-style-gallery-carousel .se-card-check-badge svg {
    width: 8px;
    height: 8px;
    stroke-width: 3.5;
}

.se-style-gallery-carousel .se-gallery-card.se-card-active .se-card-check-badge {
    opacity: 1;
    transform: scale(1);
}

/* 3. Bottom Viewer Area & Realistic 3D Book Presentation */
.smartembed-elementor-viewer-area {
    position: relative;
    width: 100%;
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow: visible;
}

.smartembed-elementor-book-stage {
    position: relative;
    width: 100%;
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px 2px 24px;
    overflow: visible;
    perspective: 1800px;
    perspective-origin: 50% 50%;
}

/* The 3D Book Chassis */
.se-3d-book-chassis {
    position: relative;
    margin: 6px auto 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: center center;
    transform-style: preserve-3d;
    filter: none !important;
    will-change: transform;
}

.se-chassis-dragging {
    transition: none !important;
}

.se-stage-zoomed .smartembed-elementor-book-stage,
.se-stage-zoomed .se-3d-book-chassis {
    cursor: grab;
}

.se-stage-zoomed.se-stage-panning,
.se-stage-zoomed.se-stage-panning .smartembed-elementor-book-stage,
.se-stage-zoomed.se-stage-panning .se-3d-book-chassis,
.se-stage-panning,
.se-chassis-dragging {
    cursor: grabbing !important;
}

/* Contact / Ambient Tabletop Drop Shadow directly underneath the book - Hide duplicate heavy shadow that creates dark bars */
.se-3d-ambient-shadow {
    display: none !important;
}

/* Totally Remove Black Cover Shell / Casing / Spine per user request */
.se-3d-hardcover-casing,
.se-3d-spine-closed-left,
.se-3d-spine-closed-right,
.se-3d-spine-hinge-top,
.se-3d-spine-hinge-bottom,
.se-3d-page-edges-left,
.se-3d-page-edges-right,
.se-3d-page-edges-top,
.se-3d-page-edges-bottom {
    display: none !important;
}

.my-page.--hard {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22) !important;
}

.my-page.se-page-cover-front {
    border-radius: 0 4px 4px 0 !important;
}

.my-page.se-page-cover-back {
    border-radius: 4px 0 0 4px !important;
}

/* Central Spine Gutter Shadow overlay */
.se-3d-spine-gutter {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    z-index: 22;
    pointer-events: none;
    background: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.02) 18%, rgba(0,0,0,0.18) 42%, rgba(0,0,0,0.38) 50%, rgba(0,0,0,0.18) 58%, rgba(0,0,0,0.02) 82%, transparent 100%);
}

/* Pages Container & St.PageFlip Elements */
.se-elementor-flipbook-pages {
    position: relative;
    z-index: 10;
    overflow: visible !important;
}

.se-elementor-flipbook-pages .stf__parent,
.se-elementor-flipbook-pages .stf__wrapper,
.se-elementor-flipbook-pages .stf__block {
    overflow: visible !important;
}

.se-elementor-flipbook-pages .stf__item--blank,
.se-elementor-flipbook-pages .stf__item:empty,
.se-elementor-flipbook-pages .stf__item:not(.my-page):empty,
.se-elementor-flipbook-pages .st-page--blank,
.se-elementor-flipbook-pages .st-page:empty {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    pointer-events: none !important;
}

.se-elementor-flipbook-pages .stf__item--blank *,
.se-elementor-flipbook-pages .stf__item:empty *,
.se-elementor-flipbook-pages .st-page--blank * {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.se-elementor-flipbook-pages .my-page {
    background-color: #ffffff !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    border-radius: 2px;
}

.se-elementor-flipbook-pages .my-page canvas {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    background-color: #ffffff;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    opacity: 1 !important;
    visibility: visible !important;
}
}

/* Real 3D Book Cover: Front Cover (Page 1) */
.se-style-realistic-3d .se-elementor-flipbook-pages .my-page[data-page-role="cover"],
.se-style-realistic-3d .se-elementor-flipbook-pages .my-page[data-page-num="1"] {
    border-radius: 2px 7px 7px 2px !important;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.28),
        inset -1px 0 3px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.35) !important;
    overflow: hidden;
}

/* Spine Hinge Indentation Crease on Front Cover */
.se-style-realistic-3d .se-elementor-flipbook-pages .my-page[data-page-role="cover"]::before,
.se-style-realistic-3d .se-elementor-flipbook-pages .my-page[data-page-num="1"]::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 32px;
    background: linear-gradient(to right, 
        rgba(0, 0, 0, 0.22) 0%, 
        rgba(0, 0, 0, 0.32) 10px, 
        rgba(255, 255, 255, 0.28) 12px, 
        rgba(0, 0, 0, 0.08) 16px, 
        transparent 32px);
    pointer-events: none;
    z-index: 16;
}

/* 3D Gloss / Satin Sheen on Front Cover */
.se-style-realistic-3d .se-elementor-flipbook-pages .my-page[data-page-role="cover"]::after,
.se-style-realistic-3d .se-elementor-flipbook-pages .my-page[data-page-num="1"]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, 
        rgba(255, 255, 255, 0.22) 0%, 
        rgba(255, 255, 255, 0.06) 28%, 
        transparent 55%);
    pointer-events: none;
    z-index: 17;
}

/* Real 3D Book Cover: Back Cover (Last Page) */
.se-style-realistic-3d .se-elementor-flipbook-pages .my-page.se-page-cover-back,
.se-style-realistic-3d .se-elementor-flipbook-pages .my-page[data-page-role="back-cover"] {
    border-radius: 7px 2px 2px 7px !important;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.28),
        inset 1px 0 3px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.35) !important;
    overflow: hidden;
}

/* Spine Hinge Indentation Crease on Back Cover */
.se-style-realistic-3d .se-elementor-flipbook-pages .my-page.se-page-cover-back::before,
.se-style-realistic-3d .se-elementor-flipbook-pages .my-page[data-page-role="back-cover"]::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; right: 0;
    width: 32px;
    background: linear-gradient(to left, 
        rgba(0, 0, 0, 0.22) 0%, 
        rgba(0, 0, 0, 0.32) 10px, 
        rgba(255, 255, 255, 0.28) 12px, 
        rgba(0, 0, 0, 0.08) 16px, 
        transparent 32px);
    pointer-events: none;
    z-index: 16;
}

/* 3D Gloss / Satin Sheen on Back Cover */
.se-style-realistic-3d .se-elementor-flipbook-pages .my-page.se-page-cover-back::after,
.se-style-realistic-3d .se-elementor-flipbook-pages .my-page[data-page-role="back-cover"]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(240deg, 
        rgba(255, 255, 255, 0.22) 0%, 
        rgba(255, 255, 255, 0.06) 28%, 
        transparent 55%);
    pointer-events: none;
    z-index: 17;
}

/* Inner Pages Spreads: Spine Valley Shadows (Realistic 3D Book) */
.se-style-realistic-3d .se-elementor-flipbook-pages .my-page[data-side="left"]:not([data-page-num="1"]):not([data-page-role="cover"]):not([data-page-role="back-cover"]):not(.se-page-cover-back)::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0; right: 0;
    width: 44px;
    background: linear-gradient(to left, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.06) 22px, transparent 100%);
    pointer-events: none;
    z-index: 15;
}

.se-style-realistic-3d .se-elementor-flipbook-pages .my-page[data-side="right"]:not([data-page-role="back-cover"]):not(.se-page-cover-back)::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 44px;
    background: linear-gradient(to right, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.06) 22px, transparent 100%);
    pointer-events: none;
    z-index: 15;
}

/* Loading Spinner */
.se-elementor-loading-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
}

.se-spin-disc {
    width: 38px;
    height: 38px;
    border: 3px solid rgba(124, 58, 237, 0.2);
    border-top-color: #7c3aed;
    border-radius: 50%;
    animation: seElSpin 0.8s linear infinite;
}

@keyframes seElSpin {
    to { transform: rotate(360deg); }
}

/* Floating Side Navigation Arrows */
.se-3d-side-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.32);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999 !important;
    padding: 0;
    outline: none;
    pointer-events: auto !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    touch-action: manipulation !important;
}

.se-3d-side-nav svg {
    display: block !important;
    pointer-events: none !important;
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0 !important;
}

.se-3d-side-nav.se-nav-prev {
    left: 18px;
}

.se-3d-side-nav.se-nav-next {
    right: 18px;
}

.se-3d-side-nav:hover:not(:disabled):not(.se-nav-disabled) {
    background: rgba(15, 23, 42, 0.96);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.42);
}

.se-3d-side-nav:active:not(:disabled):not(.se-nav-disabled) {
    transform: translateY(-50%) scale(0.94);
}

.se-3d-side-nav:disabled,
.se-3d-side-nav.se-nav-disabled {
    opacity: 0.22 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    transform: translateY(-50%) scale(0.92) !important;
    box-shadow: none !important;
}

@media (max-width: 640px) {
    .se-3d-side-nav {
        width: 38px !important;
        height: 38px !important;
    }
    .se-3d-side-nav.se-nav-prev {
        left: 8px !important;
    }
    .se-3d-side-nav.se-nav-next {
        right: 8px !important;
    }
    .se-3d-side-nav svg {
        width: 18px !important;
        height: 18px !important;
    }
}

/* 4. Bottom Floating Pill Toolbar */
.smartembed-elementor-flipbook-toolbar {
    position: relative;
    flex: 0 0 auto;
    margin: 4px auto 0 auto;
    background: rgba(23, 26, 35, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9999px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    z-index: 40;
    transition: all 0.25s ease;
}

.se-el-tool-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #f1f5f9;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.se-el-tool-btn svg {
    pointer-events: none;
}

.se-el-tool-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    transform: scale(1.08);
}

.se-el-tool-btn:active:not(:disabled) {
    transform: scale(0.92);
}

.se-el-tool-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.se-el-page-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: #f8fafc;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.smartembed-elementor-pdf-flipbook .smartembed-elementor-flipbook-toolbar input.se-el-page-input,
.smartembed-elementor-flipbook-toolbar input.se-el-page-input,
.se-el-page-indicator input.se-el-page-input,
.smartembed-elementor-pdf-flipbook input[type="text"].se-el-page-input,
.smartembed-elementor-pdf-flipbook input[type="number"].se-el-page-input,
.smartembed-elementor-pdf-flipbook input.se-el-page-input {
    width: 54px !important;
    min-width: 50px !important;
    max-width: 68px !important;
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    padding: 0 4px !important;
    margin: 0 !important;
    text-align: center !important;
    background: rgba(255, 255, 255, 0.16) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    outline: none !important;
    box-shadow: none !important;
    line-height: 22px !important;
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
    box-sizing: border-box !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.smartembed-elementor-pdf-flipbook .smartembed-elementor-flipbook-toolbar input.se-el-page-input::-webkit-outer-spin-button,
.smartembed-elementor-pdf-flipbook .smartembed-elementor-flipbook-toolbar input.se-el-page-input::-webkit-inner-spin-button,
.smartembed-elementor-flipbook-toolbar input.se-el-page-input::-webkit-outer-spin-button,
.smartembed-elementor-flipbook-toolbar input.se-el-page-input::-webkit-inner-spin-button,
.se-el-page-indicator input.se-el-page-input::-webkit-outer-spin-button,
.se-el-page-indicator input.se-el-page-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.smartembed-elementor-pdf-flipbook .smartembed-elementor-flipbook-toolbar input.se-el-page-input:focus,
.smartembed-elementor-flipbook-toolbar input.se-el-page-input:focus,
.se-el-page-indicator input.se-el-page-input:focus,
.smartembed-elementor-pdf-flipbook input[type="text"].se-el-page-input:focus,
.smartembed-elementor-pdf-flipbook input[type="number"].se-el-page-input:focus {
    background: rgba(255, 255, 255, 0.28) !important;
    border-color: #a855f7 !important;
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.5) !important;
    color: #ffffff !important;
}

.se-el-page-sep {
    opacity: 0.5;
}

.se-el-toolbar-sep {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 4px;
}

/* 5. Pages Thumbnail Sidebar Drawer (Full Canvas Height, slides smoothly from left) */
.smartembed-elementor-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    right: auto;
    bottom: 0;
    height: 100% !important;
    width: 320px;
    max-width: 90%;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    border-left: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    z-index: 70;
    transform: translateX(-100%);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    border-top-left-radius: inherit;
    border-bottom-left-radius: inherit;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease, opacity 0.35s ease, box-shadow 0.35s ease;
}

.smartembed-elementor-sidebar.se-sidebar-open {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.4);
}

.se-el-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.se-el-sidebar-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #f8fafc;
}

.se-el-sidebar-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}

.se-el-sidebar-close:hover {
    background: rgba(239, 68, 68, 0.85);
    color: #fff;
}

.se-el-sidebar-content {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 18px 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.se-sidebar-thumb {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.se-sidebar-thumb:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(124, 58, 237, 0.6);
    transform: translateY(-2px);
}

.se-sidebar-thumb.se-thumb-active {
    border-color: #7c3aed;
    background: rgba(124, 58, 237, 0.2);
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.4);
}

.se-thumb-canvas-wrap {
    width: 100%;
    height: 100px;
    background: #0f172a;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.se-thumb-canvas-wrap canvas {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.se-thumb-label {
    font-size: 11px;
    font-weight: 500;
    color: #cbd5e1;
}

/* 6. Toast Notification */
.se-el-toast {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 9999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 70;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.se-el-toast.se-toast-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 7. Demo Notice Banner */
.se-elementor-demo-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 8px;
    color: #64748b;
    font-size: 12.5px;
    line-height: 1.4;
    max-width: 680px;
    text-align: center;
}

/* 8. Fullscreen Mode */
.smartembed-elementor-pdf-flipbook.se-fullscreen-active {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    z-index: 9999999 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    overflow: hidden !important;
}

.smartembed-elementor-pdf-flipbook.se-fullscreen-active .smartembed-elementor-flipbook-canvas {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    aspect-ratio: auto !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 10px 24px 16px !important;
    box-sizing: border-box !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Fullscreen Gallery adjustments: compact and never out of shape */
.smartembed-elementor-pdf-flipbook.se-fullscreen-active .smartembed-elementor-style-gallery {
    margin-bottom: 2px !important;
    padding-top: 4px !important;
    flex: 0 0 auto !important;
}

.smartembed-elementor-pdf-flipbook.se-fullscreen-active .se-style-gallery-header {
    margin-bottom: 2px !important;
}

.smartembed-elementor-pdf-flipbook.se-fullscreen-active .se-style-gallery-title {
    font-size: 15px !important;
    margin-bottom: 2px !important;
}

.smartembed-elementor-pdf-flipbook.se-fullscreen-active .se-gallery-card {
    width: 116px !important;
    margin-left: -58px !important;
    margin-top: -48px !important;
    padding: 5px 6px 6px !important;
    border-radius: 10px !important;
}

.smartembed-elementor-pdf-flipbook.se-fullscreen-active .se-card-preview-box {
    height: 52px !important;
    margin-bottom: 2px !important;
}

.smartembed-elementor-pdf-flipbook.se-fullscreen-active .se-card-title {
    font-size: 11px !important;
}

.smartembed-elementor-pdf-flipbook.se-fullscreen-active .se-card-check-badge {
    width: 18px !important;
    height: 18px !important;
    margin-top: 2px !important;
}

.smartembed-elementor-pdf-flipbook.se-fullscreen-active .se-elementor-demo-notice {
    display: none !important;
}

.smartembed-elementor-pdf-flipbook.se-fullscreen-active .smartembed-elementor-viewer-area {
    flex: 1 1 0 !important;
    height: auto !important;
    min-height: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    overflow: visible !important;
}

.smartembed-elementor-pdf-flipbook.se-fullscreen-active .smartembed-elementor-book-stage {
    flex: 1 1 0 !important;
    width: 100% !important;
    height: auto !important;
    padding: 6px 40px 6px 40px !important;
    overflow: hidden !important;
}

.smartembed-elementor-pdf-flipbook.se-fullscreen-active .smartembed-elementor-flipbook-toolbar {
    margin: 6px auto 4px auto !important;
}

/* 9. Responsive Breakpoints */
@media (max-width: 1024px) {
    .smartembed-elementor-flipbook-canvas {
        aspect-ratio: 16 / 10.5 !important;
        max-height: min(86vh, 680px) !important;
        min-height: 480px !important;
        padding: 12px 14px 12px !important;
    }
    .se-style-gallery-carousel {
        min-height: 88px;
    }
    .se-gallery-viewport {
        height: 84px;
    }
    .se-style-gallery-carousel .se-gallery-card {
        width: 96px;
        margin-left: -48px;
        margin-top: -38px;
    }
    .se-style-gallery-carousel .se-card-preview-box {
        height: 40px;
    }
    .se-style-gallery-carousel .se-card-title {
        font-size: 9.5px;
    }
    .smartembed-elementor-book-stage {
        padding: 4px 18px 4px 18px;
    }
}

@media (max-width: 768px) {
    .smartembed-elementor-flipbook-canvas {
        aspect-ratio: auto !important;
        min-height: 440px !important;
        max-height: none !important;
        height: auto !important;
        padding: 10px 10px 10px !important;
    }
    .smartembed-elementor-style-gallery {
        margin-bottom: 2px;
    }
    .se-style-gallery-title {
        font-size: 12px;
        margin-bottom: 2px;
    }
    .se-style-gallery-carousel {
        min-height: 58px;
    }
    .se-gallery-viewport {
        height: 56px;
    }
    .se-style-gallery-carousel .se-gallery-card {
        width: 78px;
        margin-left: -39px;
        margin-top: -26px;
        padding: 2px 4px 3px;
        border-radius: 7px;
    }
    .se-style-gallery-carousel .se-card-preview-box {
        height: 28px;
        background: transparent;
        margin-bottom: 1px;
    }
    .se-style-gallery-carousel .se-card-title {
        font-size: 8.5px;
        max-width: 70px;
    }
    .se-card-check-badge {
        width: 11px;
        height: 11px;
    }
    .se-3d-side-nav {
        width: 36px;
        height: 36px;
    }
    .se-gallery-arrow {
        width: 22px !important;
        height: 22px !important;
        flex: 0 0 22px !important;
    }
    .se-gallery-arrow svg {
        width: 12px !important;
        height: 12px !important;
    }
    .smartembed-elementor-book-stage {
        padding: 2px 8px 2px 8px;
    }
    .smartembed-elementor-flipbook-toolbar {
        margin: 4px auto 2px auto;
        padding: 3px 10px;
        gap: 5px;
    }
    .se-el-tool-btn {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 480px) {
    .smartembed-elementor-flipbook-canvas {
        aspect-ratio: auto !important;
        min-height: 380px !important;
        max-height: none !important;
        height: auto !important;
        padding: 8px 6px 8px !important;
        border-radius: 12px !important;
    }
    .smartembed-elementor-style-gallery {
        margin-bottom: 2px;
    }
    .se-style-gallery-title {
        font-size: 11px;
        margin-bottom: 2px;
    }
    .se-style-gallery-carousel {
        min-height: 54px;
    }
    .se-gallery-viewport {
        height: 52px;
    }
    .se-style-gallery-carousel .se-gallery-card {
        width: 70px;
        margin-left: -35px;
        margin-top: -24px;
        padding: 2px 3px 2px;
        border-radius: 6px;
    }
    .se-style-gallery-carousel .se-card-preview-box {
        height: 25px;
        background: transparent;
        margin-bottom: 1px;
    }
    .se-style-gallery-carousel .se-card-title {
        font-size: 8px;
        max-width: 64px;
    }
    .se-card-check-badge {
        width: 10px;
        height: 10px;
    }
    .se-gallery-arrow {
        width: 20px !important;
        height: 20px !important;
        flex: 0 0 20px !important;
    }
    .se-gallery-arrow svg {
        width: 11px !important;
        height: 11px !important;
    }
    .se-3d-side-nav {
        width: 30px;
        height: 30px;
    }
    .se-3d-side-nav.se-nav-prev {
        left: 4px;
    }
    .se-3d-side-nav.se-nav-next {
        right: 4px;
    }
    .smartembed-elementor-book-stage {
        padding: 2px 4px 2px 4px;
    }
    .smartembed-elementor-flipbook-toolbar {
        margin: 3px auto 1px auto;
        padding: 2px 6px;
        gap: 3px;
        max-width: 98%;
    }
    .se-el-tool-btn {
        width: 24px;
        height: 24px;
    }
    .se-el-page-indicator {
        font-size: 10.5px;
        padding: 0 4px;
    }
}

/* 10. Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .se-gallery-track,
    .se-3d-book-chassis,
    .smartembed-elementor-sidebar,
    .se-gallery-card,
    .se-gallery-arrow,
    .se-3d-side-nav {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   11. Move Book Controls & Social Share Popup Modal Box
   ========================================================================== */

/* Move Book Up/Down/Reset toolbar buttons */
.se-el-move-up:hover:not(:disabled),
.se-el-move-down:hover:not(:disabled),
.se-el-reset-pan:hover:not(:disabled) {
    color: #a855f7 !important;
}

/* Modern Share Modal Dialog Backdrop */
.smartembed-share-modal-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999999 !important;
    background: rgba(10, 15, 29, 0.78) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.smartembed-share-modal-backdrop.se-modal-active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Standard Ratio Card Container */
.smartembed-share-modal-card {
    background: #181d2a !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 18px !important;
    width: 100% !important;
    max-width: 480px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 1px 1px rgba(255, 255, 255, 0.08) !important;
    color: #f8fafc !important;
    overflow: hidden !important;
    transform: scale(0.92) translateY(12px) !important;
    transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.26s ease !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    box-sizing: border-box !important;
}

.smartembed-share-modal-backdrop.se-modal-active .smartembed-share-modal-card {
    transform: scale(1) translateY(0) !important;
}

/* Modal Header */
.se-share-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 18px 22px 14px 22px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.se-share-title {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: -0.2px !important;
    line-height: 1.2 !important;
}

.se-share-close-btn {
    background: transparent !important;
    border: none !important;
    color: #94a3b8 !important;
    font-size: 24px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.se-share-close-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

/* Modal Body */
.se-share-body {
    padding: 22px 22px 24px 22px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 22px !important;
    box-sizing: border-box !important;
}

/* Social Networks Row/Grid */
.se-share-networks {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 16px 12px !important;
}

.se-share-net-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    color: #cbd5e1 !important;
    width: 62px !important;
    cursor: pointer !important;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease !important;
    outline: none !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.se-share-net-item:hover {
    transform: translateY(-3px) !important;
    color: #ffffff !important;
}

.se-share-icon-wrap {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    transition: box-shadow 0.2s ease, transform 0.2s ease !important;
    flex-shrink: 0 !important;
}

.se-share-net-item:hover .se-share-icon-wrap {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45) !important;
    transform: scale(1.06) !important;
}

.se-share-icon-wrap svg {
    display: block !important;
    pointer-events: none !important;
}

.se-share-net-name {
    font-size: 11px !important;
    font-weight: 500 !important;
    text-align: center !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    letter-spacing: 0.1px !important;
}

/* Shareable Link Input Section */
.se-share-link-section {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.se-share-link-label {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
}

.se-share-input-box {
    display: flex !important;
    align-items: center !important;
    background: #0f131f !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 28px !important;
    padding: 4px 6px 4px 16px !important;
    gap: 8px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    box-sizing: border-box !important;
}

.se-share-input-box:focus-within {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3) !important;
}

.se-share-input {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    background: transparent !important;
    border: none !important;
    color: #f1f5f9 !important;
    font-size: 13px !important;
    font-family: inherit !important;
    outline: none !important;
    padding: 6px 0 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    box-shadow: none !important;
    cursor: text !important;
}

.se-share-copy-btn {
    background: #ffffff !important;
    color: #0f172a !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 7px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.se-share-copy-btn:hover {
    background: #e2e8f0 !important;
    transform: scale(1.02) !important;
}

.se-share-copy-btn.se-copied {
    background: #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35) !important;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .smartembed-share-modal-card {
        max-width: 95vw !important;
        border-radius: 14px !important;
    }
    .se-share-header {
        padding: 14px 16px 12px !important;
    }
    .se-share-body {
        padding: 16px !important;
        gap: 16px !important;
    }
    .se-share-networks {
        gap: 12px 6px !important;
        justify-content: space-around !important;
    }
    .se-share-icon-wrap {
        width: 44px !important;
        height: 44px !important;
    }
    .se-share-net-item {
        width: 56px !important;
    }
    .se-share-net-name {
        font-size: 10px !important;
    }
    .se-share-input-box {
        padding: 3px 5px 3px 12px !important;
    }
    .se-share-copy-btn {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
}

/* ==========================================================================
   Elementor Panel Custom Widget Icons
   ========================================================================== */
.se-icon-pdf-flipbook,
.se-icon-single-pdf,
.se-icon-pdf-gallery,
.se-icon-featured-flipbook,
.se-icon-pdf-popup,
i.se-icon-pdf-flipbook,
i.se-icon-single-pdf,
i.se-icon-pdf-gallery,
i.se-icon-featured-flipbook,
i.se-icon-pdf-popup,
.elementor-element-smartembed_pdf_flipbook .icon i,
.elementor-element-smartembed_single_pdf .icon i,
.elementor-element-smartembed_pdf_gallery .icon i,
.elementor-element-smartembed_featured_flipbook .icon i,
.elementor-element-smartembed_pdf_popup .icon i {
    display: inline-block !important;
    width: 44px !important;
    height: 44px !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    font-size: 0 !important;
    color: transparent !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.se-icon-pdf-flipbook::before,
.se-icon-single-pdf::before,
.se-icon-pdf-gallery::before,
.se-icon-featured-flipbook::before,
.se-icon-pdf-popup::before,
i.se-icon-pdf-flipbook::before,
i.se-icon-single-pdf::before,
i.se-icon-pdf-gallery::before,
i.se-icon-featured-flipbook::before,
i.se-icon-pdf-popup::before,
.elementor-element-smartembed_pdf_flipbook .icon i::before,
.elementor-element-smartembed_single_pdf .icon i::before,
.elementor-element-smartembed_pdf_gallery .icon i::before,
.elementor-element-smartembed_featured_flipbook .icon i::before,
.elementor-element-smartembed_pdf_popup .icon i::before {
    content: '' !important;
    display: none !important;
}

.elementor-element-smartembed_pdf_flipbook .icon,
.elementor-element-smartembed_single_pdf .icon,
.elementor-element-smartembed_pdf_gallery .icon,
.elementor-element-smartembed_featured_flipbook .icon,
.elementor-element-smartembed_pdf_popup .icon {
    background: transparent !important;
    box-shadow: none !important;
    width: 46px !important;
    height: 46px !important;
}

/* 1. PDF Flipbook */
.se-icon-pdf-flipbook,
i.se-icon-pdf-flipbook,
.elementor-element-smartembed_pdf_flipbook .icon i {
    background-image: url('Icons/PDF%20Flipbook.svg') !important;
}

/* 2. Single PDF Viewer */
.se-icon-single-pdf,
i.se-icon-single-pdf,
.elementor-element-smartembed_single_pdf .icon i {
    background-image: url('Icons/Single%20PDF%20Viewer.svg') !important;
}

/* 3. PDF Gallery */
.se-icon-pdf-gallery,
i.se-icon-pdf-gallery,
.elementor-element-smartembed_pdf_gallery .icon i {
    background-image: url('Icons/PDF%20Gallery.svg') !important;
}

/* 4. Featured Flipbook */
.se-icon-featured-flipbook,
i.se-icon-featured-flipbook,
.elementor-element-smartembed_featured_flipbook .icon i {
    background-image: url('Icons/Featured%20Flipbook.svg') !important;
}

/* 5. PDF Popup / Lightbox */
.se-icon-pdf-popup,
i.se-icon-pdf-popup,
.elementor-element-smartembed_pdf_popup .icon i {
    background-image: url('Icons/PDF%20Popup%20Lightbox.svg') !important;
}



