/**
 * TMU Single E-Book Showcase Styles (Exact Screenshot Match)
 * High-performance, pixel-perfect, and fully responsive
 */

.tmu-ebook-page-wrapper {
    background-color: #ffffff;
    padding: 32px 0 76px;
    width: 100%;
}

/* Container matching Header and Footer (1380px max-width) */
.tmu-ebook-page-wrapper .tmu-container,
.tmu-more-library-section .tmu-container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 36px;
    width: 100%;
    box-sizing: border-box;
}

/* Breadcrumbs */
.tmu-ebook-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: #64748b;
    margin-bottom: 38px;
    line-height: 1.4;
}

.tmu-ebook-breadcrumbs a {
    color: #475569;
    text-decoration: none;
    transition: color 0.15s ease;
}

.tmu-ebook-breadcrumbs a:hover {
    color: #0e6853;
}

.tmu-crumb-sep {
    color: #94a3b8;
    font-weight: 400;
}

.tmu-crumb-current {
    color: #0f172a;
    font-weight: 600;
}

/* Main 2-Column Grid (Optimized for 1380px) */
.tmu-ebook-showcase-grid {
    display: grid;
    grid-template-columns: 520px 1fr;
    gap: 72px;
    align-items: start;
}

/* Left: E-book Cover Mockup Card (Warm Container matching screenshot) */
.tmu-ebook-cover-card {
    background-color: #f3f2ee;
    border-radius: 28px;
    padding: 48px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

/* The 3D Book Mockup */
.tmu-cover-inner {
    width: 320px;
    height: auto;
    background-color: #0e6853;
    color: #ffffff;
    border-radius: 6px 14px 14px 6px;
    padding: 38px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.08),
        16px 24px 44px -10px rgba(14, 104, 83, 0.38),
        0 4px 8px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    user-select: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tmu-cover-inner:hover {
    transform: translateY(-4px) rotate(-0.5deg);
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1),
        20px 30px 52px -10px rgba(14, 104, 83, 0.45),
        0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Realistic 3D Spine Lighting Overlay */
.tmu-cover-spine-overlay {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 34px;
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0.24) 0%,
            rgba(255, 255, 255, 0.09) 14%,
            rgba(0, 0, 0, 0.05) 22%,
            transparent 100%);
    pointer-events: none;
    z-index: 2;
}

/* Top Small Label */
.tmu-cover-header-tag {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
    color: rgba(255, 255, 255, 0.88);
    text-transform: uppercase;
    z-index: 3;
}

/* Book Center/Lower Title */
.tmu-cover-center-title {
    margin-top: auto;
    margin-bottom: 24px;
    z-index: 3;
}

.tmu-cover-center-title h2 {
    font-family: var(--tmu-font-heading, 'Bricolage Grotesque', sans-serif);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.6px;
    color: #ffffff;
    margin: 0;
    word-break: break-word;
}

/* Support for custom featured image cover (Realistic 3D Book Angle & Depth) */
.tmu-cover-inner.has-custom-thumbnail {
    padding: 0;
    background-color: transparent;
    box-shadow: none;
    height: auto;
    overflow: visible;
}

.tmu-cover-custom-image {
    width: 100%;
    height: auto;
    position: relative;
    border-radius: 4px 14px 14px 4px;
    overflow: hidden;
    transform: rotate(-2.2deg);
    transform-origin: center center;
    box-shadow: -6px 14px 30px -4px rgba(0, 0, 0, 0.22),
                14px 22px 42px -8px rgba(0, 0, 0, 0.16),
                inset -2px 0 4px rgba(0, 0, 0, 0.15),
                0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.tmu-cover-custom-image:hover {
    transform: rotate(-0.8deg) translateY(-5px);
    box-shadow: -8px 18px 38px -4px rgba(0, 0, 0, 0.26),
                18px 28px 50px -8px rgba(0, 0, 0, 0.22),
                inset -2px 0 4px rgba(0, 0, 0, 0.15),
                0 4px 10px rgba(0, 0, 0, 0.1);
}

.tmu-cover-img-asset {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 4px 14px 14px 4px;
    box-shadow: none;
}

/* Right: Details Column */
.tmu-ebook-details-col {
    display: flex;
    flex-direction: column;
}

/* Category Pill */
.tmu-category-badge-wrap {
    margin-bottom: 16px;
}

.tmu-category-pill {
    display: inline-block;
    background-color: #dff2e9;
    color: #0d6750;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 5px 14px;
    border-radius: 999px;
    text-transform: uppercase;
}

/* Main Heading */
.tmu-ebook-title {
    font-family: var(--tmu-font-heading, 'Bricolage Grotesque', sans-serif);
    font-size: 44px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.14;
    letter-spacing: -1px;
    margin: 0 0 16px 0;
}

/* Excerpt / Subtitle */
.tmu-ebook-desc {
    font-size: 16px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 540px;
}

.tmu-ebook-desc p {
    margin: 0;
}

/* Pricing Card Box */
.tmu-pricing-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 32px;
    border: 1px solid #e2e0d8;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    margin-bottom: 28px;
}

.tmu-price-header {
    margin-bottom: 20px;
}

.tmu-price-type-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.tmu-price-amount-row {
    display: flex;
    align-items: baseline;
}

.tmu-price-type-label.is-member {
    color: #0d6750;
    font-weight: 800;
}

.tmu-price-amount-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.tmu-price-number {
    font-family: var(--tmu-font-heading, 'Bricolage Grotesque', sans-serif);
    font-size: 48px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -1px;
}

.tmu-non-member-strike {
    font-size: 14px;
    color: #64748b;
    margin-left: 14px;
    font-weight: 500;
    text-decoration: none;
}

/* Buy Button (Dark Teal Full Width) */
.tmu-btn-buy-full {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #0e6853;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    padding: 16px 24px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

.tmu-btn-buy-full:hover {
    background-color: #094e3e;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(14, 104, 83, 0.3);
}

/* Active Member Action Buttons (Side by Side matching screenshot) */
.tmu-member-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.tmu-btn-read-online {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0e6853;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    padding: 16px 20px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: 0.4px;
}

.tmu-btn-read-online:hover {
    background-color: #094e3e;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(14, 104, 83, 0.3);
}

.tmu-btn-download-price {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: #0f172a;
    border: 1.5px solid #0f172a;
    font-size: 14px;
    font-weight: 800;
    padding: 16px 20px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: 0.4px;
}

.tmu-btn-download-price:hover {
    background-color: #0f172a;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

.tmu-sub-notice {
    font-size: 12.5px;
    color: #8c94a0;
    margin: 10px 0 0 0;
    line-height: 1.4;
}

/* TMU Access Upsell Box */
.tmu-upsell-member-banner {
    background-color: #f7f6f2;
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.tmu-upsell-text strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 2px;
}

.tmu-upsell-text span {
    font-size: 13px;
    color: #64748b;
}

.tmu-btn-join-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1.5px solid #0f172a;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
    background: transparent;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.tmu-btn-join-outline:hover {
    background-color: #0f172a;
    color: #ffffff;
}

/* WHAT YOU WILL LEARN Checklist */
.tmu-learning-outcomes {
    margin-bottom: 24px;
}

.tmu-learning-outcomes h4 {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #334155;
    text-transform: uppercase;
    margin: 0 0 14px 0;
}

.tmu-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tmu-check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}

.tmu-check-icon {
    stroke: #0f172a;
    flex-shrink: 0;
}

/* Legal Disclaimer */
.tmu-legal-disclaimer p {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
    margin: 20px 0 0 0;
    max-width: 520px;
}

/* Bottom Section: More From the TMU Library */
.tmu-more-library-section {
    background-color: #f7f6f2;
    padding: 68px 0 88px;
    border-top: 1px solid #e7e5df;
    width: 100%;
}

.tmu-more-library-title {
    font-family: var(--tmu-font-heading, 'Bricolage Grotesque', sans-serif);
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.6px;
    margin: 0 0 32px 0;
}

.tmu-more-library-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tmu-library-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px 24px;
    border: 1px solid #e2e0d8;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tmu-library-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
    border-color: #cbd5e1;
}

/* Clean Product Thumbnail & Mini Book */
.tmu-mini-book {
    width: 68px;
    height: auto;
    border-radius: 8px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background-color: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tmu-mini-book.has-thumbnail {
    padding: 0;
    background-color: transparent;
    box-shadow: none;
    height: auto;
}

.tmu-mini-book-img {
    width: 68px;
    height: auto;
    max-height: 98px;
    object-fit: contain;
    display: block;
    border-radius: 6px;
    box-shadow: none;
}

.tmu-mini-book:not(.has-thumbnail) {
    height: 96px;
    padding: 10px 8px;
    background-color: #0e6853;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tmu-mini-spine-overlay {
    display: none;
}

.tmu-mini-tag {
    font-size: 6.5px;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    z-index: 2;
}

.tmu-mini-title {
    font-family: var(--tmu-font-heading, 'Bricolage Grotesque', sans-serif);
    font-size: 9.5px;
    font-weight: 800;
    line-height: 1.22;
    color: #ffffff;
    word-break: break-word;
    z-index: 2;
}

/* Card Info */
.tmu-library-card-info {
    display: flex;
    flex-direction: column;
}

.tmu-library-card-title {
    font-family: var(--tmu-font-heading, 'Bricolage Grotesque', sans-serif);
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin: 0 0 6px 0;
}

.tmu-library-card-price {
    font-size: 14px;
    font-weight: 700;
    color: #0d6750;
}

/* ==========================================================================
   Responsive Breakpoints - 100% Mobile Optimized
   ========================================================================== */

/* Large Tablets & Small Laptops */
@media (max-width: 1024px) {
    .tmu-ebook-page-wrapper .tmu-container,
    .tmu-more-library-section .tmu-container {
        padding: 0 28px;
    }

    .tmu-ebook-showcase-grid {
        grid-template-columns: 420px 1fr;
        gap: 48px;
    }

    .tmu-ebook-cover-card {
        padding: 36px 28px;
        min-height: 520px;
    }

    .tmu-ebook-title {
        font-size: 38px;
    }

    .tmu-cover-inner {
        width: 270px;
    }

    .tmu-more-library-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

/* Medium Tablets & Phablets */
@media (max-width: 900px) {
    .tmu-ebook-showcase-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .tmu-ebook-cover-card {
        min-height: auto;
        padding: 36px 24px;
    }

    .tmu-cover-inner {
        margin: 0 auto;
        max-width: 290px;
    }

    .tmu-cover-custom-image {
        max-width: 290px;
        margin: 0 auto;
    }

    .tmu-more-library-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

/* Standard Mobile & Small Tablets (<= 768px) */
@media (max-width: 768px) {
    .tmu-ebook-page-wrapper {
        padding: 20px 0 54px;
    }

    .tmu-ebook-page-wrapper .tmu-container,
    .tmu-more-library-section .tmu-container {
        padding: 0 20px;
    }

    .tmu-ebook-breadcrumbs {
        flex-wrap: wrap;
        gap: 6px 8px;
        font-size: 12px;
        margin-bottom: 22px;
    }

    .tmu-ebook-showcase-grid {
        gap: 28px;
    }

    .tmu-ebook-cover-card {
        padding: 28px 18px;
        border-radius: 20px;
    }

    .tmu-cover-inner {
        max-width: 260px;
        padding: 28px 20px;
    }

    .tmu-cover-custom-image {
        max-width: 260px;
    }

    .tmu-ebook-title {
        font-size: 30px;
        line-height: 1.2;
        letter-spacing: -0.5px;
        margin-bottom: 14px;
    }

    .tmu-ebook-desc {
        font-size: 15px;
        line-height: 1.55;
        margin-bottom: 22px;
    }

    .tmu-pricing-card {
        padding: 22px 20px;
        border-radius: 14px;
        margin-bottom: 24px;
    }

    .tmu-price-number {
        font-size: 40px;
    }

    .tmu-more-library-section {
        padding: 44px 0 60px;
    }

    .tmu-more-library-title {
        font-size: 26px;
        margin-bottom: 24px;
    }
}

/* Compact Mobile (<= 640px) */
@media (max-width: 640px) {
    .tmu-ebook-title {
        font-size: 27px;
    }

    .tmu-more-library-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .tmu-upsell-member-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 16px;
        gap: 12px;
        border-radius: 10px;
    }

    .tmu-upsell-text strong {
        font-size: 13.5px;
    }

    .tmu-upsell-text span {
        font-size: 12px;
    }

    .tmu-btn-join-outline {
        width: 100%;
        text-align: center;
        padding: 11px 16px;
    }
}

/* Phones & Small Screens (<= 480px) */
@media (max-width: 480px) {
    .tmu-ebook-page-wrapper {
        padding: 14px 0 42px;
    }

    .tmu-ebook-page-wrapper .tmu-container,
    .tmu-more-library-section .tmu-container {
        padding: 0 16px;
    }

    .tmu-ebook-breadcrumbs {
        font-size: 11.5px;
        gap: 4px 6px;
        margin-bottom: 18px;
    }

    .tmu-ebook-showcase-grid {
        gap: 22px;
    }

    .tmu-ebook-cover-card {
        padding: 20px 14px;
        border-radius: 16px;
    }

    .tmu-cover-inner {
        max-width: 230px;
        padding: 24px 16px;
    }

    .tmu-cover-custom-image {
        max-width: 230px;
    }

    .tmu-cover-center-title h2 {
        font-size: 24px;
    }

    .tmu-category-badge-wrap {
        margin-bottom: 10px;
    }

    .tmu-category-pill {
        font-size: 10px;
        padding: 4px 11px;
    }

    .tmu-ebook-title {
        font-size: 24px;
        line-height: 1.22;
        letter-spacing: -0.4px;
        margin-bottom: 12px;
    }

    .tmu-ebook-desc {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 18px;
    }

    .tmu-pricing-card {
        padding: 18px 15px;
        border-radius: 12px;
        margin-bottom: 20px;
    }

    .tmu-price-header {
        margin-bottom: 14px;
    }

    .tmu-price-type-label {
        font-size: 10px;
        margin-bottom: 4px;
    }

    .tmu-price-amount-row {
        flex-wrap: wrap;
        align-items: baseline;
        gap: 6px 10px;
    }

    .tmu-price-number {
        font-size: 34px;
    }

    .tmu-non-member-strike {
        font-size: 13px;
        margin-left: 0;
    }

    /* Stack Member Action Buttons for clean touch accessibility */
    .tmu-member-action-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 10px;
    }

    .tmu-btn-read-online,
    .tmu-btn-download-price {
        width: 100%;
        padding: 14px 16px;
        font-size: 13.5px;
        border-radius: 8px;
    }

    .tmu-btn-buy-full {
        padding: 14px 18px;
        font-size: 14px;
        border-radius: 8px;
    }

    .tmu-sub-notice {
        font-size: 11.5px;
        text-align: center;
        margin-top: 6px;
    }

    .tmu-learning-outcomes {
        margin-bottom: 18px;
    }

    .tmu-learning-outcomes h4 {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .tmu-check-list {
        gap: 9px;
    }

    .tmu-check-list li {
        font-size: 13.5px;
        gap: 10px;
        line-height: 1.4;
    }

    .tmu-check-icon {
        width: 16px;
        height: 16px;
    }

    .tmu-legal-disclaimer p {
        font-size: 11px;
        margin: 14px 0 0 0;
    }

    .tmu-more-library-section {
        padding: 36px 0 50px;
    }

    .tmu-more-library-title {
        font-size: 22px;
        margin-bottom: 18px;
    }

    .tmu-library-card {
        padding: 14px 15px;
        border-radius: 12px;
        gap: 12px;
    }

    .tmu-mini-book {
        width: 52px;
    }

    .tmu-mini-book-img {
        width: 52px;
        max-height: 74px;
    }

    .tmu-library-card-title {
        font-size: 13.5px;
        margin-bottom: 4px;
    }

    .tmu-library-card-price {
        font-size: 12.5px;
    }
}

/* Extra Small Screens (<= 360px) */
@media (max-width: 360px) {
    .tmu-ebook-title {
        font-size: 22px;
    }

    .tmu-price-number {
        font-size: 30px;
    }

    .tmu-cover-inner,
    .tmu-cover-custom-image {
        max-width: 200px;
    }
}

/* ==========================================================================
   TMU Secure Online eBook Reader Modal & Canvas Viewer
   ========================================================================== */
.tmu-reader-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
}

.tmu-reader-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 30, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tmu-reader-container {
    position: relative;
    z-index: 2;
    width: 95vw;
    height: 94vh;
    max-width: 1440px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
}

/* Top Toolbar */
.tmu-reader-topbar {
    height: 62px;
    background: #1e293b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    gap: 16px;
    flex-shrink: 0;
}

.tmu-reader-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.tmu-reader-badge {
    background: rgba(223, 151, 36, 0.15);
    border: 1px solid rgba(223, 151, 36, 0.35);
    color: #f59e0b;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.tmu-reader-book-title {
    font-family: var(--tmu-font-heading);
    font-size: 15px;
    font-weight: 700;
    color: #f8fafc;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Controls Center */
.tmu-reader-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.tmu-reader-nav-group,
.tmu-reader-zoom-group {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.6);
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.tmu-reader-btn {
    background: transparent;
    border: none;
    color: #cbd5e1;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.tmu-reader-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.tmu-reader-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.tmu-reader-btn-text {
    width: auto;
    padding: 0 10px;
    font-size: 12.5px;
    font-weight: 600;
}

.tmu-reader-btn-close {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.tmu-reader-btn-close:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
}

.tmu-reader-page-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #94a3b8;
    font-weight: 600;
    padding: 0 4px;
}

.tmu-reader-page-indicator input {
    width: 44px;
    height: 26px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    color: #f8fafc;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    outline: none;
    padding: 0;
}

.tmu-reader-page-indicator input:focus {
    border-color: #df9724;
}

.tmu-reader-zoom-level {
    font-size: 12.5px;
    font-weight: 700;
    color: #94a3b8;
    min-width: 42px;
    text-align: center;
}

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

/* Viewport & Canvas Scroll Stage (Continuous Vertical Scroll) */
.tmu-reader-viewport {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    padding: 32px 20px 60px;
    background: #0b1120;
    position: relative;
    scroll-behavior: smooth;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.tmu-reader-canvas-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    min-height: 100%;
    margin: 0 auto;
}

.tmu-pdf-page-wrapper {
    position: relative;
    background: #ffffff;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    line-height: 0;
    transition: box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tmu-pdf-page-wrapper.is-loading-page {
    background: #151e32;
    border: 1px dashed rgba(255, 255, 255, 0.12);
}

.tmu-pdf-page-tag {
    position: absolute;
    bottom: 10px;
    right: 14px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.45);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 3px 8px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 2;
    line-height: 1.3;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.tmu-pdf-canvas {
    display: block;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
}

/* Loading & Error States */
.tmu-reader-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(11, 17, 32, 0.85);
    z-index: 10;
    color: #e2e8f0;
    font-weight: 600;
    font-size: 14.5px;
}

.tmu-spinner-circle {
    width: 44px;
    height: 44px;
    border: 3.5px solid rgba(223, 151, 36, 0.2);
    border-top-color: #df9724;
    border-radius: 50%;
    animation: tmu-spin 0.8s linear infinite;
}

@keyframes tmu-spin {
    to { transform: rotate(360deg); }
}

.tmu-reader-error-box {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 36px 28px;
    text-align: center;
    max-width: 440px;
    margin: 40px auto;
    color: #f8fafc;
}

.tmu-reader-error-box h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 12px 0 8px;
    color: #ef4444;
}

.tmu-reader-error-box p {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 20px;
    line-height: 1.5;
}

.tmu-reader-btn-primary {
    background: #0f1c3d !important;
    color: #ffffff !important;
    padding: 10px 20px !important;
    width: auto !important;
    height: auto !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
}

/* Security Bottom Bar */
.tmu-reader-footer {
    height: 34px;
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    flex-shrink: 0;
}

.tmu-footer-protection-text {
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.02em;
}

/* Reader Preview Badge */
.tmu-reader-badge.is-preview-badge {
    background: rgba(234, 179, 8, 0.16) !important;
    color: #facc15 !important;
    border-color: rgba(234, 179, 8, 0.35) !important;
}

/* Paywall Unlock Card inside Reader Stage */
.tmu-reader-preview-lock-card {
    width: 100%;
    margin: 28px auto 60px;
    background: linear-gradient(180deg, #131d2e 0%, #0a0f18 100%);
    border: 1.5px solid rgba(14, 104, 83, 0.45);
    border-radius: 16px;
    padding: 44px 36px;
    text-align: center;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), 0 0 32px rgba(14, 104, 83, 0.15);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 5;
}

.tmu-preview-lock-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: #facc15;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 6px 16px;
    border-radius: 999px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.tmu-preview-lock-title {
    font-family: var(--tmu-font-heading, 'Bricolage Grotesque', sans-serif);
    font-size: 30px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin: 0 0 14px;
    letter-spacing: -0.5px;
}

.tmu-preview-lock-subtitle {
    font-size: 15px;
    color: #94a3b8;
    line-height: 1.6;
    max-width: 520px;
    margin: 0 0 32px;
}

.tmu-preview-lock-subtitle strong {
    color: #f8fafc;
}

.tmu-preview-lock-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
    max-width: 580px;
}

@media (max-width: 640px) {
    .tmu-preview-lock-actions {
        grid-template-columns: 1fr;
    }
}

.tmu-preview-lock-btn-member,
.tmu-preview-lock-btn-buy {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.tmu-preview-lock-btn-member {
    background: #0e6853;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(14, 104, 83, 0.35);
}

.tmu-preview-lock-btn-member:hover {
    background: #117e65;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(14, 104, 83, 0.5);
    color: #ffffff !important;
}

.tmu-preview-lock-btn-buy {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
}

.tmu-preview-lock-btn-buy:hover {
    background: #334155;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: #ffffff !important;
}

.tmu-lock-btn-main {
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.tmu-lock-btn-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 500;
}

@media (max-width: 768px) {
    .tmu-reader-container {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }

    .tmu-reader-topbar {
        padding: 0 10px;
        height: 54px;
    }

    .tmu-reader-badge,
    .tmu-reader-btn-text,
    .tmu-reader-footer {
        display: none !important;
    }

    .tmu-reader-viewport {
        padding: 16px 8px;
    }
}