* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: #121212; color: #ffffff; display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
#password-gate { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(18, 18, 18, 0.95); backdrop-filter: blur(10px); z-index: 9999; display: flex; justify-content: center; align-items: center; }
.hidden { display: none !important; }
.mobile-only { display: none; }
.desktop-only { display: inline-block; }
.gate-box { background: #1E1E1E; padding: 40px; border-radius: 12px; text-align: center; border-top: 4px solid #E62A32; box-shadow: 0 10px 30px rgba(0,0,0,0.5); width: 350px; }
.gate-box input { padding: 10px; margin: 20px 0; width: 100%; border-radius: 6px; border: none; outline: none; }
.gate-box button { padding: 10px; background: #E62A32; color: white; border: none; border-radius: 6px; cursor: pointer; font-weight: bold; width: 100%; }
#top-bar, #bottom-bar { background: rgba(25, 25, 25, 0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 10; flex: 0 0 auto; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
#top-bar { display: flex; flex-direction: column; padding: 10px 20px; }
.top-row { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.bottom-row { width: 100%; text-align: center; margin-top: 10px; }
#bottom-bar { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: none; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.logo { display: flex; align-items: center; gap: 15px; }
.premium-text { background: linear-gradient(90deg, #ffffff, #a8a8a8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 600; letter-spacing: 0.5px; font-size: 1.2rem; }
#brand-logo { max-height: 50px; border-radius: 4px; object-fit: contain; }
.control-btn { background: transparent; border: none; color: #ddd; font-size: 1.2rem; cursor: pointer; margin-left: 15px; transition: 0.2s; }
.control-btn:hover { color: #ffffff; transform: scale(1.1); }
#search-panel { position: fixed; top: 0; right: 0; width: 300px; height: 100%; background: rgba(30, 30, 30, 0.95); backdrop-filter: blur(10px); border-left: 1px solid rgba(255,255,255,0.1); box-shadow: -5px 0 15px rgba(0,0,0,0.5); z-index: 100; padding: 20px; display: flex; flex-direction: column; }
.search-header { display: flex; justify-content: space-between; margin-bottom: 20px; }
#btn-close-search { background: transparent; border: none; color: white; font-size: 1.2rem; cursor: pointer; }
#search-input { padding: 10px; border-radius: 6px; border: none; outline: none; margin-bottom: 20px; background: #121212; color: white;}
#search-results { overflow-y: auto; flex-grow: 1; }
.result-item { background: #2A2A2A; padding: 10px; border-radius: 6px; margin-bottom: 10px; cursor: pointer; font-size: 0.9rem; transition: 0.2s;}
.result-item:hover { background: #3a3a3a; transform: translateX(-5px); border-left: 3px solid #E62A32; }
#book-container { flex: 1 1 auto; display: flex; justify-content: center; align-items: center; position: relative; overflow: hidden; background: radial-gradient(circle, #2a2a2a 0%, #121212 100%); transition: background 0.3s ease; }
#book-container.zoomed { overflow: hidden; cursor: grab; }
#book-container.zoomed:active { cursor: grabbing; }
#book-container.zoomed #flipbook { pointer-events: none; }
#flipbook-wrapper { transform-origin: center center; margin: auto; }
.page { background-color: white; box-shadow: inset 0 0 20px rgba(0,0,0,0.1); }
.page img { width: 100%; height: 100%; object-fit: contain; }
#thumbnails-drawer { position: fixed; bottom: 65px; left: 0; width: 100%; background: rgba(15, 15, 15, 0.95); backdrop-filter: blur(15px); border-top: 1px solid rgba(255,255,255,0.1); display: flex; overflow-x: auto; gap: 20px; padding: 25px 20px; z-index: 5; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
#thumbnails-drawer.hidden { transform: translateY(150%); }
#thumbnails-drawer::-webkit-scrollbar { height: 8px; }
#thumbnails-drawer::-webkit-scrollbar-thumb { background: #E62A32; border-radius: 4px; }
#thumbnails-drawer::-webkit-scrollbar-track { background: #121212; }
.thumb-container { position: relative; display: flex; flex-direction: column; align-items: center; flex-shrink: 0; cursor: pointer; transition: 0.3s ease; }
.thumb-container:hover { transform: translateY(-8px); }
.thumb-item { height: 140px; border-radius: 4px; border: 2px solid transparent; transition: 0.3s ease; opacity: 0.6; box-shadow: 0 5px 15px rgba(0,0,0,0.5); background-color: #fff; }
.thumb-container:hover .thumb-item { opacity: 1; border-color: #E62A32; box-shadow: 0 8px 25px rgba(230, 42, 50, 0.4); }
.thumb-label { margin-top: 10px; background: rgba(255, 255, 255, 0.1); color: #ddd; font-size: 0.85rem; font-weight: 600; padding: 4px 12px; border-radius: 12px; transition: 0.3s ease; }
.thumb-container:hover .thumb-label { background: #E62A32; color: #fff; }
#bottom-bar .nav-left, #bottom-bar .nav-center, #bottom-bar .nav-right { display: flex; align-items: center; gap: 10px; }
#bottom-bar button { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.05); color: white; padding: 6px 14px; border-radius: 6px; cursor: pointer; transition: 0.2s; font-weight: 500; }
#bottom-bar button:hover { background: #E62A32; border-color: #E62A32; }
#btn-thumbnails { background: transparent; font-size: 1.4rem; padding: 0 10px; border: none;}
#btn-thumbnails:hover { background: transparent; color: #E62A32;}
#wa-modal, #mail-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(18, 18, 18, 0.85); backdrop-filter: blur(8px); z-index: 9000; display: flex; justify-content: center; align-items: center; }
.modal-box { background: rgba(30, 30, 30, 0.95); padding: 30px; border-radius: 12px; text-align: center; border-top: 4px solid #E62A32; box-shadow: 0 10px 40px rgba(0,0,0,0.5); width: 350px; display: flex; flex-direction: column; gap: 15px; }
#wa-modal .modal-box { border-top-color: #25D366; }
.modal-box h3 { color: #fff; margin-bottom: 5px; }
.modal-box p { color: #aaa; font-size: 0.9rem; margin-bottom: 10px; }
.modal-box input, .modal-box textarea { padding: 12px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1); background: #1a1a1a; color: white; outline: none; width: 100%; resize: none; font-family: 'Inter', sans-serif; }
.modal-box input:focus, .modal-box textarea:focus { border-color: #E62A32; }
#wa-modal .modal-box input:focus, #wa-modal .modal-box textarea:focus { border-color: #25D366; }
#wa-submit, #mail-submit { background: #E62A32; color: #fff; border: none; padding: 12px; font-size: 1rem; border-radius: 6px; font-weight: 600; cursor: pointer; transition: 0.2s; margin-top: 5px; }
#wa-submit { background: #25D366; color: #111; }
#mail-submit:hover { background: #c51e25; transform: translateY(-2px); }
#wa-submit:hover { background: #20b858; transform: translateY(-2px); }
.modal-close { background: transparent; color: #888; border: none; cursor: pointer; font-size: 0.9rem; transition: 0.2s; margin-top: 5px; }
.modal-close:hover { color: #fff; }
#btn-floating-wa { position: fixed; bottom: 85px; right: 20px; width: 60px; height: 60px; background-color: #25D366; color: white; border-radius: 50%; border: none; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); cursor: pointer; z-index: 1000; display: flex; justify-content: center; align-items: center; transition: all 0.3s ease; animation: pulseWA 2s infinite; }
#btn-floating-wa:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.7); animation: none; }
#btn-floating-wa svg { width: 35px; height: 35px; fill: currentColor; }
@keyframes pulseWA { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
.left-fabs { position: fixed; bottom: 85px; left: 20px; display: flex; flex-direction: column; gap: 15px; z-index: 1000; transition: opacity 0.3s ease; }
.fab-btn { width: 50px; height: 50px; background-color: #333; color: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; text-decoration: none; box-shadow: 0 4px 10px rgba(0,0,0,0.5); transition: 0.3s ease; }
.fab-btn svg { width: 22px; height: 22px; }
.fab-btn:hover { background-color: #E62A32; transform: scale(1.1); }
.mobile-page-info { display: none; }
@media (max-width: 768px) {
    .mobile-page-info { display: block; width: 100%; text-align: center; margin-bottom: 8px; color: #ddd; font-weight: 500; font-size: 0.95rem; }
    #bottom-bar { flex-wrap: wrap; padding: 10px 5px; }
    .nav-left, .nav-center, .nav-right { flex: 1; display: flex; justify-content: center; }
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }
    .left-fabs { flex-direction: row; bottom: 95px; left: 10px; gap: 10px; opacity: 0.85; }
    #btn-floating-wa { bottom: 95px; right: 10px; width: 45px; height: 45px; opacity: 0.85; }
    #btn-floating-wa svg { width: 24px; height: 24px; }
    .fab-btn { width: 42px; height: 42px; }
    .fab-btn svg { width: 20px; height: 20px; }
}