@import url('/css/ebook.css');

/* ==========================================================================
   AAROGYAM INDIA - MY LIBRARY ULTIMATE PREMIUM CSS (AIM V1 - FINAL)
   ========================================================================== */

:root {
    --primary-orange: #E86A17;
    --secondary-green: #138A36;
    --accent-gold: #F6B93B;
    --bg-warm-white: #FFFDF8;
    --card-pure-white: #FFFFFF;
    --text-charcoal: #2C2C2C;
    --text-light: #666666;
    --border-light: #ECECEC;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 35px rgba(232, 106, 23, 0.15);
    --radius-card: 20px;
    --radius-btn: 16px;
    --radius-popup: 28px;
    --prog-orange: #f97316;
    --prog-green: #138A36;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-warm-white);
    color: var(--text-charcoal);
    min-height: 100vh;
    padding-bottom: 90px;
    overflow-x: clip;
}

/* ==========================================================================
   1. PREMIUM HEADER & TIRANGA WAVE LINES
   ========================================================================== */
.library-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 253, 248, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #E86A17, #ffffff, #138A36) 1;
}

.library-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #E86A17, #ffffff, #138A36, #E86A17);
    background-size: 300% 100%;
    animation: tirangaWave 6s linear infinite;
}

.library-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(19,138,54,0.3), rgba(19,138,54,0.9), rgba(19,138,54,0.3));
    background-size: 200% 100%;
    animation: greenLineFlow 4s linear infinite;
    z-index: 1001;
}

@keyframes tirangaWave {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 0%; }
}

@keyframes greenLineFlow {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.header-logo-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-logo-title h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-charcoal);
}

.desktop-nav {
    display: none;
}

@media(min-width: 768px) {
    .desktop-nav {
        display: flex;
        gap: 20px;
        align-items: center;
    }
    .desktop-nav a {
        text-decoration: none;
        color: var(--text-light);
        font-size: 0.9rem;
        font-weight: 600;
        transition: color 0.2s ease;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .desktop-nav a:hover, .desktop-nav a.active {
        color: var(--primary-orange);
    }
}

.back-btn, .menu-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    color: var(--text-charcoal);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(232, 106, 23, 0.1);
    transition: all 0.3s ease;
}

.back-btn:hover, .menu-btn:hover {
    background: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
    transform: scale(1.08);
    box-shadow: 0 0 15px rgba(232, 106, 23, 0.4);
}

/* ==========================================================================
   2. MOBILE SIDE MENU DRAWER (Restored Premium Look)
   ========================================================================== */
.side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 310px;
    height: 100%;
    background: var(--card-pure-white);
    box-shadow: -15px 0 40px rgba(0,0,0,0.18);
    z-index: 99999;
    padding: 25px 20px;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    overflow-y: auto;
}

.side-menu.active {
    right: 0;
}

.close-menu {
    background: #f1f5f9;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 20px;
    color: var(--text-charcoal);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-bottom: 15px;
    transition: background 0.2s;
}

.close-menu:hover {
    background: var(--primary-orange);
    color: white;
}

.side-menu ul {
    list-style: none;
    margin-top: 15px;
}

.side-menu ul li {
    margin-bottom: 10px;
}

.side-menu ul li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    color: var(--text-charcoal);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.side-menu ul li a:hover {
    background: #fdf2e9;
    color: var(--primary-orange);
    padding-left: 22px;
}

.side-menu ul li a i {
    width: 20px;
    color: var(--primary-orange);
}

/* ==========================================================================
   3. WELCOME DASHBOARD & STATS CARDS
   ========================================================================== */
/* New Glassmorphism Welcome Card */
.welcome-card-soft {
    background: linear-gradient(135deg, rgba(255, 245, 238, 0.6), rgba(236, 253, 245, 0.6), rgba(255, 255, 255, 0.6));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-card);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    margin: 15px auto;
    padding: 25px;
    max-width: 1200px;
    position: relative;
    overflow: hidden;
}

.welcome-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a2e05;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
    margin-bottom: 5px;
}

.welcome-subtitle {
    font-size: 0.9rem;
    color: #365221;
}

/* ==========================================================================
   4. TABS (Wrapped Two Rows on Mobile, No Horizontal Scroll)
   ========================================================================== */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 15px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-light);
    color: var(--text-light);
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
    flex: 1 1 auto;
    text-align: center;
}

.tab-btn:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
    transform: translateY(-1px);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-orange), #d05712);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(232, 106, 23, 0.35);
}

/* ==========================================================================
   5. BOOK CARDS & FULL-SCREEN PINCH-ZOOM COVER FEATURE
   ========================================================================== */
.library-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 15px 30px 15px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-charcoal);
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--secondary-green);
    padding-left: 10px;
}

.book-grid-2col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
}

@media(min-width: 640px) {
    .book-grid-2col {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media(min-width: 1024px) {
    .book-grid-2col {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

.book-card, .ebook-card {
    background: var(--card-pure-white);
    border-radius: var(--radius-card);
    border: 1.5px solid var(--border-light);
    padding: 18px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card:hover, .ebook-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* Book Cover: object-fit contain + Full Screen Pinch Zoom Ready */
.book-card img, .ebook-card img, img[alt*="Cover"], img[alt*="book"] {
    width: 100%;
    height: 180px;
    object-fit: contain !important;
    background: #f8fafc;
    border-radius: 10px;
    padding: 4px;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

@media(min-width: 768px) {
    .book-card img, .ebook-card img, img[alt*="Cover"], img[alt*="book"] {
        height: 230px;
    }
}

.book-card img:active, .book-card img:hover {
    transform: scale(1.02);
}

/* Book action buttons (Buy Now / Details) styling to match premium theme */
.book-card button, .ebook-card button, .book-card a.btn, .ebook-card a.btn {
    padding: 10px 14px;
    border-radius: var(--radius-btn);
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary-orange), #c75610);
    color: white;
    box-shadow: 0 4px 12px rgba(232, 106, 23, 0.25);
    transition: all 0.2s ease;
}

.book-card button:hover, .ebook-card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(232, 106, 23, 0.4);
}

/* ==========================================================================
   6. PROFILE UPDATE FORM MODAL (Full Mobile Screen & Smooth Close)
   ========================================================================== */
.modal-overlay {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
}

.modal-card {
    border-radius: var(--radius-popup) !important;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25) !important;
    max-height: 90vh;
    overflow-y: auto;
    width: 92% !important;
    max-width: 480px !important;
}

.modal-input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-btn);
    font-size: 0.95rem;
    background: #fafaf9;
}

.modal-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--secondary-green), #0d6526);
    color: white;
    border: none;
    border-radius: var(--radius-btn);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(19, 138, 54, 0.3);
}

/* ==========================================================================
   7. STICKY TIMER & TODAY DEAL BAR (Red & Green Eye-Catching Design)
   ========================================================================== */
.sticky-action-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 650px;
    z-index: 999990;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    background: linear-gradient(135deg, #090d16 0%, #1c1917 50%, #0f172a 100%);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(220, 38, 38, 0.3);
    border: 1.5px solid rgba(220, 38, 38, 0.4);
    border-top: 3px solid #dc2626;
    border-radius: 50px;
    gap: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .sticky-action-bar {
        bottom: 66px !important; /* Floats right above the 60px mobile 8-tab bottom nav */
        left: 8px !important;
        right: auto !important;
        width: auto !important;
        max-width: calc(100% - 128px) !important; /* Shrinks cleanly to the left, leaving right space for 3 action buttons */
        transform: none !important;
        padding: 6px 10px !important;
        border-radius: 30px !important;
        z-index: 99990 !important;
        gap: 6px !important;
    }

    .deal-timer-banner {
        font-size: 0.76rem !important;
        gap: 4px !important;
    }

    .deal-timer-banner span:first-child {
        display: none !important; /* Hide long label on mobile to keep bar super compact */
    }

    #dealTimer {
        font-size: 0.8rem !important;
        padding: 3px 8px !important;
    }

    .sticky-deal-btn {
        padding: 5px 10px !important;
        font-size: 0.76rem !important;
        border-radius: 20px !important;
        white-space: nowrap !important;
    }
}

.deal-timer-banner {
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    min-width: 0;
}

/* Red Hot Timer Badge */
#dealTimer {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #fde047;
    padding: 4px 10px;
    border-radius: 20px;
    font-family: 'Outfit', monospace;
    font-weight: 900;
    font-size: 0.88rem;
    box-shadow: 0 0 12px rgba(220, 38, 38, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: timerPulseGlow 1.8s infinite alternate;
}

@keyframes timerPulseGlow {
    0% { transform: scale(1); box-shadow: 0 0 8px rgba(220, 38, 38, 0.5); }
    100% { transform: scale(1.04); box-shadow: 0 0 16px rgba(220, 38, 38, 0.85); }
}

/* Vibrant Emerald Green WhatsApp Deal Button */
.sticky-deal-btn {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 50px;
    text-decoration: none !important;
    font-size: 0.86rem;
    font-weight: 900;
    box-shadow: 0 4px 18px rgba(22, 163, 74, 0.5);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: greenButtonPulse 2.5s infinite ease-in-out;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sticky-deal-btn:hover {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    transform: scale(1.06);
    box-shadow: 0 6px 25px rgba(34, 197, 94, 0.7);
}

@keyframes greenButtonPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 18px rgba(22, 163, 74, 0.5); }
    50% { transform: scale(1.05); box-shadow: 0 6px 25px rgba(22, 163, 74, 0.75); }
}

/* Ensure Library Container has clean bottom scroll padding */
.library-container, .library-page-body {
    padding-bottom: 160px !important;
}
/* ==========================================================================
   PERFECT PROFILE UPDATE POPUP & CLOSE BUTTON FIX (CSS)
   ========================================================================== */

/* 1. Modal Overlay (Background Blur & Hidden by Default) */
#leadModal.modal-overlay, 
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 999999 !important;
    display: none !important; /* शुरुआत में छिपा रहेगा */
    justify-content: center !important;
    align-items: center !important;
    padding: 15px !important;
}

/* जब JS से मोडल को एक्टिव किया जाए, तब यह दिखेगा */
#leadModal.modal-overlay.show,
#leadModal[style*="display: flex"],
.modal-overlay.show {
    display: flex !important;
}

/* 2. Modal Card Box (Popup Card Style) */
#leadModal .modal-card,
.modal-card {
    background: #ffffff !important;
    width: 100% !important;
    max-width: 480px !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
    border-radius: 28px !important;
    padding: 25px 20px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3) !important;
    position: relative !important;
    animation: modalScaleUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

@keyframes modalScaleUp {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* 3. Close Button (×) Styling - Always Visible & Interactive */
#leadModal .close-modal,
.close-modal {
    position: absolute !important;
    top: 15px !important;
    right: 20px !important;
    background: #f1f5f9 !important;
    border: none !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    font-size: 24px !important;
    font-weight: bold !important;
    color: #333333 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    transition: all 0.2s ease !important;
    z-index: 10 !important;
}

#leadModal .close-modal:hover,
.close-modal:hover {
    background: #E86A17 !important;
    color: #ffffff !important;
    transform: scale(1.1) !important;
}

/* ==========================================================================
   LEFT SIDEBAR (DESKTOP >= 768px) - IDENTICAL TO MY PROFILE / UCAS
   ========================================================================== */
.library-sidebar {
    display: none;
    width: 260px;
    background: #FFFFFF;
    border-right: 1px solid #ECECEC;
    position: fixed;
    top: 64px;
    bottom: 0;
    left: 0;
    z-index: 80;
    overflow-y: auto;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.25rem 0.75rem;
}

.library-nav-section-title {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #94A3B8;
    padding: 0.75rem 0.9rem 0.25rem;
    letter-spacing: 0.08em;
}

.library-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.library-nav-item button,
.library-nav-item a {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0.9rem;
    border: none;
    background: transparent;
    color: #64748B;
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    text-decoration: none;
}

.library-nav-item button:hover,
.library-nav-item a:hover {
    background: #DCFCE7;
    color: #15803D;
    transform: translateX(3px);
}

.library-nav-item.active button,
.library-nav-item.active a {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.library-nav-item.active button i,
.library-nav-item.active a i {
    color: #FFFFFF !important;
}

.library-nav-icon {
    font-size: 1.15rem;
    width: 24px;
    text-align: center;
}

/* Main Library Layout Container */
.library-main {
    width: 100%;
    box-sizing: border-box;
    padding-bottom: 85px;
}

@media(min-width: 768px) {
    .library-sidebar {
        display: none !important;
    }

    .library-main {
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
        max-width: 1200px !important;
        padding: 1.25rem 1rem 90px 1rem !important;
        box-sizing: border-box !important;
    }

    .welcome-card-soft,
    #library-pwa-card,
    .category-tabs,
    .library-container {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    body:has(.library-sidebar) .site-footer,
    .has-sidebar .site-footer,
    .library-layout .site-footer,
    .site-footer,
    .footer {
        margin-left: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media(max-width: 767px) {
    .library-sidebar {
        display: none !important;
    }

    .library-main {
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0.85rem 0.85rem 120px 0.85rem !important;
        box-sizing: border-box !important;
    }

    .site-footer,
    .footer {
        margin-left: 0 !important;
        width: 100% !important;
        padding-bottom: 120px !important;
        box-sizing: border-box !important;
    }
}

/* ==========================================================================
   KINDLE BOOK CARD FULL RESPONSIVE OVERRIDES FOR MY LIBRARY
   ========================================================================== */
.kindle-book-card {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 16px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.kindle-book-card:hover {
    transform: translateY(-4px) !important;
    border-color: #86efac !important;
    box-shadow: 0 16px 32px rgba(22, 163, 74, 0.12) !important;
}

.kindle-book-card .card-cover-wrap {
    width: 100% !important;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border-radius: 14px !important;
    padding: 18px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    cursor: pointer !important;
    margin-bottom: 14px !important;
    overflow: hidden !important;
}

.kindle-book-card .card-3d-book {
    width: 140px !important;
    height: 190px !important;
    perspective: 800px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.kindle-book-card .card-cover-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 6px 12px 12px 6px !important;
    box-shadow: -4px 6px 16px rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.1) !important;
}

.kindle-book-card .card-rating-row {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 6px !important;
}
.kindle-book-card .card-stars { color: #f59e0b !important; font-size: 0.9rem !important; }
.kindle-book-card .card-rating-score { font-weight: 800 !important; font-size: 0.84rem !important; color: #1e293b !important; }
.kindle-book-card .card-rating-count { color: #64748b !important; font-size: 0.78rem !important; }

.kindle-book-card .card-title {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 6px !important;
    line-height: 1.35 !important;
    display: block !important;
}

.kindle-book-card .card-subtitle {
    font-size: 0.82rem !important;
    color: #64748b !important;
    margin-bottom: 10px !important;
    display: block !important;
}

.kindle-book-card .card-kpi-badges {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-bottom: 12px !important;
}
.kindle-book-card .card-kpi-tag {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    background: #f0fdf4 !important;
    color: #166534 !important;
    border: 1px solid #bbf7d0 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
}

.kindle-book-card .card-price-block {
    background: #f8fafc !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    margin-bottom: 12px !important;
}
.kindle-book-card .card-prices {
    display: flex !important;
    align-items: baseline !important;
    gap: 8px !important;
}
.kindle-book-card .card-offer-price {
    font-size: 1.3rem !important;
    font-weight: 900 !important;
    color: #16a34a !important;
}
.kindle-book-card .card-mrp {
    font-size: 0.88rem !important;
    color: #94a3b8 !important;
    text-decoration: line-through !important;
    font-weight: 600 !important;
}
.kindle-book-card .card-save-badge {
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    background: #dcfce7 !important;
    color: #15803d !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
}
.kindle-book-card .card-savings-text {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    color: #15803d !important;
    margin-top: 2px !important;
}