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

body {
    font-family: 'Poppins', sans-serif;
    background: #0b0f19;
    color: #F9FAFB;
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 0 !important;
    -webkit-tap-highlight-color: transparent;
}

/* ── STRICTLY HIDE ANY GLOBAL MOBILE NAVIGATION BARS ON READER ── */
.vx-bottom-nav,
#vxBottomNav,
.bottom-nav,
#bottomNav,
.mobile-bottom-nav,
#navbar-placeholder,
.reader-navigation {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    height: 0 !important;
    opacity: 0 !important;
}

.reader-container {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    padding-bottom: 2rem;
}

/* ── Dimmer Layer (Eye Care) ── */
.vx-dimmer-layer {
    position: fixed;
    inset: 0;
    background: #000000;
    opacity: 0;
    pointer-events: none;
    z-index: 99991;
    transition: opacity 0.3s ease;
}

/* ── Top Header Overlay (Hidden by default / tap to show) ── */
.reader-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(11, 15, 25, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 99999;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
    opacity: 1;
    transform: translateY(0);
}

.reader-header.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex: 1;
}

.btn-back {
    padding: 0.45rem 0.9rem;
    background: rgba(255, 255, 255, 0.08);
    color: #F3F4F6;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 99px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    text-decoration: none;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
}

.comic-title {
    font-size: 0.90rem;
    font-weight: 700;
    color: #F9FAFB;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-counter {
    font-size: 0.78rem;
    font-weight: 700;
    color: #93C5FD;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 4px 10px;
    border-radius: 99px;
    flex-shrink: 0;
    margin-left: 8px;
}

/* ── Content & Comic Images ── */
.reader-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    min-height: 100vh;
    cursor: pointer;
}

.comic-page {
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
    user-select: none;
    -webkit-user-select: none;
}

/* ── Reader Loading Spinner ── */
.reader-loading-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 1rem;
    gap: 16px;
    color: #94A3B8;
}

.reader-spinner {
    width: 44px;
    height: 44px;
    border: 3.5px solid rgba(107, 159, 255, 0.15);
    border-top-color: #6B9FFF;
    border-radius: 50%;
    animation: rcSpin 0.75s linear infinite;
}

@keyframes rcSpin {
    to { transform: rotate(360deg); }
}

/* ══════════════════════════════════════════════════════════════
   FLOATING QUICK NAVIGATION BAR (BOTTOM)
   ══════════════════════════════════════════════════════════════ */
#vxStickyNav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99998;
    display: flex;
    justify-content: center;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    transform: translateY(0);
    opacity: 1;
}

#vxStickyNav.hidden {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none !important;
}

.vx-sticky-inner {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 18px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(11, 15, 25, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.6);
    pointer-events: all;
    box-sizing: border-box;
}

.vx-snav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    font-family: 'Poppins', inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    flex: 1;
    max-width: 200px;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
    box-sizing: border-box;
    text-decoration: none;
}

.vx-snav-prev {
    background: rgba(255, 255, 255, 0.08);
    color: #F3F4F6;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
}

.vx-snav-prev:hover:not(:disabled),
.vx-snav-prev:active:not(:disabled) {
    background: rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
}

.vx-snav-prev:disabled {
    opacity: 0.25;
    cursor: not-allowed;
    border-color: transparent;
}

.vx-snav-next {
    background: linear-gradient(135deg, #6B9FFF 0%, #7C3AED 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 18px rgba(107, 159, 255, 0.35);
}

.vx-snav-next:hover:not(:disabled),
.vx-snav-next:active:not(:disabled) {
    box-shadow: 0 6px 24px rgba(107, 159, 255, 0.55);
    transform: translateY(-1px);
}

.vx-snav-next:disabled {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.3);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.vx-snav-info {
    flex: 0 0 auto;
    text-align: center;
    font-size: 0.76rem;
    font-weight: 700;
    color: #93C5FD;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    padding: 6px 14px;
    border-radius: 99px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════
   FLOATING SIDE ACTION DOCK (RIGHT SIDE)
   ══════════════════════════════════════════════════════════════ */
.vx-side-dock {
    position: fixed;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99997;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(11, 15, 25, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 8px 6px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    opacity: 1;
}

.vx-side-dock.hidden {
    transform: translateY(-50%) translateX(90px);
    opacity: 0;
    pointer-events: none !important;
}

.vx-dock-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #CBD5E1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.vx-dock-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(107, 159, 255, 0.4);
    color: #93C5FD;
    transform: scale(1.06);
}

.vx-dock-btn:active {
    transform: scale(0.96);
}

.vx-dock-btn.active {
    background: linear-gradient(135deg, #6B9FFF 0%, #7C3AED 100%);
    border-color: transparent;
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(107, 159, 255, 0.4);
}

/* Auto-scroll Speed Pill */
.vx-autoscroll-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.vx-speed-pill {
    padding: 2px 6px;
    background: rgba(59, 130, 246, 0.25);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #93C5FD;
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: 99px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
}

.vx-speed-pill:hover {
    background: rgba(59, 130, 246, 0.45);
    color: #FFFFFF;
}

/* ══════════════════════════════════════════════════════════════
   QUICK CHAPTER DRAWER (MODAL SIDEBAR)
   ══════════════════════════════════════════════════════════════ */
.vx-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100000;
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vx-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.vx-drawer-content {
    width: 100%;
    max-width: 360px;
    height: 100%;
    background: #0f172a;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
}

.vx-drawer-overlay.active .vx-drawer-content {
    transform: translateX(0);
}

.vx-drawer-header {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.vx-drawer-title-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.vx-drawer-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #93C5FD;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vx-drawer-comic-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #F8FAFC;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.vx-drawer-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94A3B8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vx-drawer-close:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
}

.vx-drawer-search-box {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.vx-drawer-search {
    width: 100%;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #F8FAFC;
    font-family: inherit;
    font-size: 0.82rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.vx-drawer-search:focus {
    border-color: #6B9FFF;
}

.vx-drawer-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vx-ch-item {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.vx-ch-item:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(107, 159, 255, 0.3);
}

.vx-ch-item.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: #6B9FFF;
}

.vx-ch-num {
    font-size: 0.85rem;
    font-weight: 700;
    color: #F1F5F9;
}

.vx-ch-badge {
    font-size: 0.68rem;
    font-weight: 700;
    color: #93C5FD;
    background: rgba(59, 130, 246, 0.25);
    padding: 2px 8px;
    border-radius: 99px;
}

/* ══════════════════════════════════════════════════════════════
   SCROLL TO TOP BUTTON
   ══════════════════════════════════════════════════════════════ */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    left: 1.25rem;
    width: 44px;
    height: 44px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #F3F4F6;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.9);
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.scroll-to-top svg {
    width: 20px;
    height: 20px;
    stroke: #93C5FD;
    stroke-width: 2.5;
    transition: transform 0.2s ease, stroke 0.2s ease;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(107, 159, 255, 0.4);
    box-shadow: 0 8px 28px rgba(107, 159, 255, 0.25);
    transform: translateY(-2px) scale(1.04);
}

.scroll-to-top:hover svg {
    stroke: #FFFFFF;
    transform: translateY(-2px);
}

.scroll-to-top:active {
    transform: translateY(0) scale(0.96);
}

/* ══════════════════════════════════════════════════════════════
   MOBILE OPTIMIZATION (<= 640px)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    .reader-header {
        padding: 0.65rem 0.85rem;
    }
    .comic-title {
        font-size: 0.82rem;
    }
    .page-counter {
        font-size: 0.72rem;
        padding: 3px 8px;
    }
    .vx-sticky-inner {
        padding: 10px 12px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        gap: 6px;
        border-radius: 18px 18px 0 0;
    }
    .vx-snav-btn {
        font-size: 0.75rem;
        padding: 0 10px;
        height: 40px;
        border-radius: 10px;
    }
    .vx-snav-info {
        font-size: 0.68rem;
        padding: 4px 8px;
        max-width: 90px;
    }
    .vx-side-dock {
        right: 0.75rem;
        padding: 6px 4px;
        gap: 6px;
        border-radius: 14px;
    }
    .vx-dock-btn {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }
    .vx-dock-btn svg {
        width: 16px;
        height: 16px;
    }
    .vx-drawer-content {
        max-width: 300px;
    }
    .scroll-to-top {
        width: 38px;
        height: 38px;
        bottom: 1.25rem;
        left: 0.75rem;
    }
    .scroll-to-top svg {
        width: 16px;
        height: 16px;
    }
}

/* ══════════════════════════════════════════════════════════════
   BETA MUSIC READING EXPERIENCE STYLES (VELVIXIE NATIVE)
   ══════════════════════════════════════════════════════════════ */
.vx-music-pulse-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 8px #10B981;
    animation: vxPulse 1.5s infinite;
}

@keyframes vxPulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px #10B981; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

.vx-music-player-card {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vx-music-now-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vx-music-icon-disc {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(107, 159, 255, 0.15);
    border: 1px solid rgba(107, 159, 255, 0.3);
    color: #6B9FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vx-music-icon-disc.spinning svg {
    animation: vxSpinDisc 3s linear infinite;
}

@keyframes vxSpinDisc {
    100% { transform: rotate(360deg); }
}

.vx-music-text-meta {
    flex: 1;
    min-width: 0;
}

.vx-music-now-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #F1F5F9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vx-music-now-artist {
    font-size: 0.72rem;
    color: #94A3B8;
}

.vx-music-controls-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vx-music-ctrl-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #F8FAFC;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vx-music-ctrl-btn:hover {
    background: rgba(107, 159, 255, 0.25);
    border-color: #6B9FFF;
    color: #FFFFFF;
}

.vx-music-loop-btn.active {
    color: #6B9FFF;
    border-color: rgba(107, 159, 255, 0.4);
    background: rgba(107, 159, 255, 0.15);
}

.vx-music-vol-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #94A3B8;
    margin-left: auto;
}

.vx-music-slider {
    width: 65px;
    height: 4px;
    accent-color: #6B9FFF;
    cursor: pointer;
}

.vx-music-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94A3B8;
    margin: 8px 0 6px 0;
}

.vx-music-counter {
    font-size: 0.7rem;
    color: #6B9FFF;
    font-weight: 600;
}

.vx-music-item {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 6px;
}

.vx-music-item:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(107, 159, 255, 0.3);
}

.vx-music-item.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: #6B9FFF;
}

.vx-music-item-info {
    flex: 1;
    min-width: 0;
}

.vx-music-item-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #F1F5F9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.vx-music-item-meta {
    font-size: 0.7rem;
    color: #94A3B8;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.vx-badge-creator {
    font-size: 0.62rem;
    font-weight: 700;
    color: #10B981;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 1px 6px;
    border-radius: 99px;
}

.vx-music-del-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: #94A3B8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vx-music-del-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.vx-music-upload-box {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.vx-music-upload-btn {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(107, 159, 255, 0.15);
    border: 1px dashed rgba(107, 159, 255, 0.4);
    color: #93C5FD;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vx-music-upload-btn:hover {
    background: rgba(107, 159, 255, 0.25);
    border-color: #6B9FFF;
    color: #FFFFFF;
}

.vx-music-upload-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vx-music-upload-progress {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vx-music-prog-bar {
    height: 4px;
    background: #6B9FFF;
    border-radius: 99px;
    width: 0%;
    transition: width 0.2s ease;
}

.vx-music-prog-text {
    font-size: 0.72rem;
    color: #94A3B8;
    text-align: center;
}

.vx-music-guest-hint {
    margin-top: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    text-align: center;
}

.vx-music-guest-hint p {
    font-size: 0.75rem;
    color: #94A3B8;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.vx-music-login-link {
    display: inline-block;
    padding: 5px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #FFFFFF;
    background: #3B82F6;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.vx-music-login-link:hover {
    background: #2563EB;
}

/* ── Velvixie Native Toast Notification ── */
.vx-toast-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    max-width: 90vw;
    width: 360px;
}

.vx-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: #F8FAFC;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.4;
    pointer-events: all;
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.vx-toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.vx-toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vx-toast-warning .vx-toast-icon { color: #F59E0B; }
.vx-toast-error .vx-toast-icon   { color: #EF4444; }
.vx-toast-success .vx-toast-icon { color: #10B981; }
.vx-toast-info .vx-toast-icon    { color: #6B9FFF; }

.vx-toast-msg {
    flex: 1;
    min-width: 0;
}


/* ── Chapter Optional Closing / Promo Banner (#07) ── */
.vx-chapter-banner-wrap {
    max-width: 820px;
    margin: 1.5rem auto 0;
    padding: 0 16px;
}

.vx-chapter-banner-card {
    border-radius: 16px;
    overflow: hidden;
    background: #131926;
    border: 1px solid rgba(139, 92, 246, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.vx-chapter-banner-img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* ── Trakteer Support Bar Above Chapter Comments (#04) ── */
.vx-trakteer-wrap {
    max-width: 860px;
    margin: 1.5rem auto 0;
    padding: 0 16px;
}

.vx-trakteer-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(190, 30, 45, 0.16) 0%, rgba(244, 63, 94, 0.1) 50%, rgba(15, 23, 42, 0.92) 100%);
    border: 1.5px solid rgba(244, 63, 94, 0.35);
    box-shadow: 0 8px 24px rgba(190, 30, 45, 0.16);
    backdrop-filter: blur(10px);
}

.vx-trakteer-left {
    flex: 1;
    min-width: 0;
}

.vx-trakteer-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.vx-trakteer-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 99px;
    background: linear-gradient(135deg, #BE1E2D, #E11D48);
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.vx-trakteer-author {
    font-size: 0.78rem;
    color: #CBD5E1;
}

.vx-trakteer-msg {
    font-size: 0.86rem;
    color: #F8FAFC;
    font-weight: 500;
    line-height: 1.45;
    margin: 0;
}

.vx-trakteer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.vx-trakteer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0.65rem 1.2rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #BE1E2D 0%, #F43F5E 100%);
    color: #FFFFFF;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vx-trakteer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(225, 29, 72, 0.5);
}

.vx-trakteer-qris-btn {
    padding: 0.65rem 0.9rem;
    border-radius: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #F8FAFC;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.vx-trakteer-qris-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

.vx-qris-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999998;
    background: rgba(11, 15, 25, 0.78);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.vx-qris-modal-box {
    background: #1E293B;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 1.5rem;
    max-width: 340px;
    width: 100%;
    text-align: center;
    color: #F8FAFC;
}

.vx-qris-modal-box h4 {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.vx-qris-modal-box img {
    max-width: 220px;
    width: 100%;
    border-radius: 12px;
    margin: 0 auto 1rem;
    display: block;
}

.vx-qris-modal-box button {
    width: 100%;
    padding: 0.65rem;
    border-radius: 10px;
    border: none;
    background: #334155;
    color: #F8FAFC;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 640px) {
    .vx-trakteer-card {
        flex-direction: column;
        align-items: stretch;
        padding: 0.95rem 1rem;
        gap: 0.75rem;
    }
    .vx-trakteer-actions {
        width: 100%;
    }
    .vx-trakteer-btn {
        flex: 1;
    }
}
