/* ==========================================================================
   KARLALYN GLOBAL THEME (AUTO / LIGHT / DARK) STYLESHEET
   ========================================================================== */

.karlalyn-theme-dropdown {
    position: relative;
    display: inline-block;
    margin-right: 8px;
}

.karlalyn-theme-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    background: rgba(0, 0, 0, 0.04);
    color: #1e293b !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.35rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.karlalyn-theme-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.2);
}

body.dark-mode .karlalyn-theme-btn {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #f8fafc;
}

body.dark-mode .karlalyn-theme-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.karlalyn-theme-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    min-width: 145px;
    padding: 0.4rem 0;
    z-index: 1050;
}

body.dark-mode .karlalyn-theme-menu {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}

.karlalyn-theme-dropdown.active .karlalyn-theme-menu {
    display: block;
}

.karlalyn-theme-item {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    color: #334155;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

body.dark-mode .karlalyn-theme-item {
    color: #cbd5e1;
}

.karlalyn-theme-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #0f172a;
}

body.dark-mode .karlalyn-theme-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.karlalyn-theme-item.active {
    font-weight: 700;
    color: #2563eb;
}

body.dark-mode .karlalyn-theme-item.active {
    color: #60a5fa;
}

.theme-item-check {
    margin-left: auto;
    font-weight: bold;
    color: #2563eb;
}

body.dark-mode .theme-item-check {
    color: #60a5fa;
}

/* MOBILE NAVBAR RESPONSIVE */
@media (max-width: 768px) {
    .karlalyn-theme-dropdown {
        order: 4 !important;
        margin: 0 !important;
        margin-right: 8px !important;
        flex-shrink: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
    }
    .karlalyn-theme-btn {
        width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px !important;
    }
    .karlalyn-theme-btn .theme-btn-label,
    .karlalyn-theme-btn .theme-btn-caret {
        display: none !important;
    }
    .karlalyn-theme-btn .theme-icon-indicator {
        font-size: 1.1rem !important;
        margin: 0 !important;
    }
}

/* GLOBAL DARK MODE PALETTE VARIABLES */
body.dark-mode {
    --karl-bg: #090d16 !important;
    --karl-surface: #0f172a !important;
    --karl-ink: #f8fafc !important;
    --karl-muted: #94a3b8 !important;
    --karl-border: rgba(255, 255, 255, 0.08) !important;
    --karl-soft: #1e293b !important;
    background: #090d16 !important;
    color: #f8fafc !important;
}

body.dark-mode .site-header {
    background: #0f172a !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .brand-name {
    color: #f8fafc !important;
}

body.dark-mode .main-nav a {
    color: #cbd5e1 !important;
}

body.dark-mode .main-nav a:hover {
    color: #ffffff !important;
}

body.dark-mode .mobile-nav-button {
    color: #f8fafc !important;
}

body.dark-mode .book-card,
body.dark-mode .featured-book-item,
body.dark-mode .collection-strip,
body.dark-mode .hero-section {
    color: #f8fafc;
}

/* ==========================================================================
   DARK MODE ENHANCEMENTS: CONTRAST, TYPOGRAPHY & CARDS
   ========================================================================== */

/* 1. Hero Title & Subtitle */
body.dark-mode .hero h1,
body.dark-mode .hero h1 span {
    color: #f8fafc !important;
}

body.dark-mode .hero h1 em {
    color: #f59e0b !important; /* Emas hangat */
    font-style: normal;
}

body.dark-mode .hero-content p {
    color: #cbd5e1 !important;
}

/* 2. Eyebrow Badges */
body.dark-mode .eyebrow {
    color: #fbbf24 !important;
    background: rgba(245, 158, 11, 0.12) !important;
    border: 1px solid rgba(245, 158, 11, 0.25) !important;
}

/* 3. Section Headings */
body.dark-mode .section-heading h2 {
    color: #f8fafc !important;
}

body.dark-mode .section-heading .text-link {
    color: #60a5fa !important;
}

/* 4. Hero Search Input & Buttons */
body.dark-mode .hero-search-input-wrap {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

body.dark-mode .hero-search-input-wrap input {
    color: #f8fafc !important;
    background: transparent !important;
}

body.dark-mode .hero-search-input-wrap input::placeholder {
    color: #94a3b8 !important;
}

/* 5. Trending Tags & Info Badges */
body.dark-mode .trending-tags a,
body.dark-mode .hero-feature-badges,
body.dark-mode .hero-feature-badges span {
    color: #94a3b8 !important;
}

body.dark-mode .trending-tags a {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
}

/* 6. Continue Reading Strip */
body.dark-mode .continue-reading-strip {
    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #f8fafc !important;
}

body.dark-mode .continue-reading-strip .cr-book-title {
    color: #f8fafc !important;
}

body.dark-mode .continue-reading-strip .cr-label,
body.dark-mode .continue-reading-strip .cr-chapter-text {
    color: #94a3b8 !important;
}

/* 7. Catalog Filter & Counter */
body.dark-mode .catalog-counter {
    color: #94a3b8 !important;
}

body.dark-mode .catalog-sort-label {
    color: #cbd5e1 !important;
}

body.dark-mode .catalog-select-wrapper select {
    background: #1e293b !important;
    color: #f8fafc !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

body.dark-mode #catalog-inline-search {
    background: #1e293b !important;
    color: #f8fafc !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* ==========================================================================
   BOOK CARDS DARK MODE TEXT CONTRAST OVERRIDE
   ========================================================================== */

body.dark-mode .book-card-title,
body.theme-dark .book-card-title {
    color: #f8fafc !important; /* Putih terang tajam */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

body.dark-mode .author-name-text,
body.theme-dark .author-name-text {
    color: #cbd5e1 !important; /* Abu-abu terang */
}

body.dark-mode .author-label,
body.theme-dark .author-label {
    color: #94a3b8 !important;
}

body.dark-mode .book-card-synopsis,
body.theme-dark .book-card-synopsis {
    color: #94a3b8 !important;
}

body.dark-mode .catalog-book-stats,
body.theme-dark .catalog-book-stats {
    color: #94a3b8 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .catalog-book-stats .stat-item,
body.theme-dark .catalog-book-stats .stat-item {
    color: #94a3b8 !important;
}

body.dark-mode .book-share-icon-btn,
body.theme-dark .book-share-icon-btn {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #60a5fa !important;
}

/* Tombol Read di Bawah Cover */
body.dark-mode .book-actions-under-cover .book-link,
body.theme-dark .book-actions-under-cover .book-link {
    background: #2563eb !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3) !important;
}

body.dark-mode .book-actions-under-cover .book-link:hover,
body.theme-dark .book-actions-under-cover .book-link:hover {
    background: #1d4ed8 !important;
}

/* ==========================================================================
   DYNAMIC BOOK CARDS PALETTE: LIGHT PASTEL & VIBRANT DARK JEWEL-TONES
   ========================================================================== */

/* --- 1. LIGHT MODE: Dynamic Soft Pastels --- */
.card-style-0 {
    background: linear-gradient(135deg, #ffffff 0%, #fdfbf7 50%, #fef3c7 100%) !important;
    border: 1px solid rgba(245, 158, 11, 0.22) !important;
}
.card-style-1 {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #e0f2fe 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.22) !important;
}
.card-style-2 {
    background: linear-gradient(135deg, #ffffff 0%, #fff7ed 50%, #fce7f3 100%) !important;
    border: 1px solid rgba(244, 63, 94, 0.20) !important;
}
.card-style-3 {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 50%, #dcfce7 100%) !important;
    border: 1px solid rgba(16, 185, 129, 0.22) !important;
}
.card-style-4 {
    background: linear-gradient(135deg, #ffffff 0%, #faf5ff 50%, #fef08a 100%) !important;
    border: 1px solid rgba(234, 179, 8, 0.22) !important;
}
.card-style-5 {
    background: linear-gradient(135deg, #ffffff 0%, #fff1f2 50%, #ffe4e6 100%) !important;
    border: 1px solid rgba(225, 29, 72, 0.20) !important;
}

/* --- 2. DARK MODE: Translucent Frosted Glass Cards --- */
body.dark-mode .card-style-0, body.theme-dark .card-style-0,
body.dark-mode .card-style-1, body.theme-dark .card-style-1,
body.dark-mode .card-style-2, body.theme-dark .card-style-2,
body.dark-mode .card-style-3, body.theme-dark .card-style-3,
body.dark-mode .card-style-4, body.theme-dark .card-style-4,
body.dark-mode .card-style-5, body.theme-dark .card-style-5,
body.dark-mode .book-card, body.theme-dark .book-card,
body.dark-mode .myb-book-card, body.theme-dark .myb-book-card,
body.dark-mode .favorites-section, body.theme-dark .favorites-section,
body.dark-mode #karlalyn-continue-reading-strip {
    background: rgba(15, 23, 42, 0.40) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
}

body.dark-mode .book-card:hover, body.theme-dark .book-card:hover,
body.dark-mode .myb-book-card:hover, body.theme-dark .myb-book-card:hover {
    background: rgba(30, 41, 59, 0.58) !important;
    border-color: rgba(147, 197, 253, 0.35) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 16px rgba(99, 102, 241, 0.25) !important;
}

/* Header & Footer Transparan Mewah */
body.dark-mode .site-header, body.theme-dark .site-header,
[data-theme="dark"] .site-header {
    background: rgba(6, 8, 20, 0.65) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .site-footer, body.theme-dark .site-footer,
body.dark-mode footer, body.theme-dark footer,
[data-theme="dark"] .site-footer, [data-theme="dark"] footer {
    background: rgba(6, 8, 20, 0.65) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* ==========================================================================
   DARK MODE ULTRA POLISH (BANNER, GLASS NAVBAR, INPUTS & BUTTONS)
   ========================================================================== */

/* 1. Group Banner & CTA Button Polish */
body.dark-mode .group-banner-inner,
body.theme-dark .group-banner-inner {
    background: linear-gradient(135deg, #0e172a 0%, #172033 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45) !important;
}

body.dark-mode .group-banner-inner h2,
body.theme-dark .group-banner-inner h2 {
    color: #f8fafc !important;
}

body.dark-mode .group-banner-inner p,
body.theme-dark .group-banner-inner p {
    color: #94a3b8 !important;
}

body.dark-mode .btn-light,
body.theme-dark .btn-light,
body.dark-mode .group-banner .btn-light,
body.theme-dark .group-banner .btn-light {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.25s ease !important;
}

body.dark-mode .btn-light:hover,
body.theme-dark .btn-light:hover,
body.dark-mode .group-banner .btn-light:hover,
body.theme-dark .group-banner .btn-light:hover {
    background: #2563eb !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.5) !important;
    transform: translateY(-1px);
}

/* 2. Frosted Glass Sticky Navbar */
body.dark-mode .site-header,
body.theme-dark .site-header {
    background: rgba(15, 23, 42, 0.88) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* 3. Catalog Inputs & Dropdowns */
body.dark-mode #catalog-inline-search,
body.theme-dark #catalog-inline-search {
    background: #141e33 !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

body.dark-mode #catalog-inline-search:focus,
body.theme-dark #catalog-inline-search:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
}

body.dark-mode .catalog-select-wrapper select,
body.theme-dark .catalog-select-wrapper select {
    background: #141e33 !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* 4. Category Filter Pills */
body.dark-mode .filter-pill,
body.theme-dark .filter-pill {
    background: #141e33 !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.2s ease !important;
}

body.dark-mode .filter-pill:hover,
body.theme-dark .filter-pill:hover {
    background: #1e293b !important;
    color: #f8fafc !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}

body.dark-mode .filter-pill.is-active,
body.theme-dark .filter-pill.is-active {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4) !important;
}

/* 5. Collection & Curated Picks Shelf Containers */
body.dark-mode .collection-strip,
body.theme-dark .collection-strip,
body.dark-mode .featured-book-item,
body.theme-dark .featured-book-item {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}


/* ==========================================================================
   DARK MODE MODAL HARMONIZATION (QUICK VIEW & COMMENTS DRAWER)
   ========================================================================== */

/* 1. Quick View Modal Dialog */
body.dark-mode .karlalyn-modal-dialog,
body.theme-dark .karlalyn-modal-dialog {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

/* 2. Modal Close Button & Zoom */
body.dark-mode .karlalyn-modal-close,
body.theme-dark .karlalyn-modal-close {
    background: #1e293b !important;
    color: #cbd5e1 !important;
}
body.dark-mode .karlalyn-modal-close:hover,
body.theme-dark .karlalyn-modal-close:hover {
    background: #334155 !important;
    color: #ffffff !important;
}

body.dark-mode .kqv-zoom-btn,
body.theme-dark .kqv-zoom-btn {
    background: #1e293b !important;
    color: #cbd5e1 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}
body.dark-mode .kqv-zoom-btn:hover,
body.theme-dark .kqv-zoom-btn:hover {
    background: #334155 !important;
    color: #ffffff !important;
}

/* 3. Typography: Title, Author & Stats */
body.dark-mode .kqv-title,
body.theme-dark .kqv-title {
    color: #f8fafc !important;
}
body.dark-mode .kqv-author-row,
body.theme-dark .kqv-author-row {
    color: #cbd5e1 !important;
}
body.dark-mode .kqv-stats-row,
body.theme-dark .kqv-stats-row {
    color: #94a3b8 !important;
}

/* 4. Synopsis Box */
body.dark-mode .kqv-synopsis-box,
body.theme-dark .kqv-synopsis-box {
    background: #141e33 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
body.dark-mode .kqv-synopsis-label,
body.theme-dark .kqv-synopsis-label {
    color: #60a5fa !important;
}
body.dark-mode .kqv-overview-p,
body.theme-dark .kqv-overview-p {
    color: #cbd5e1 !important;
}

/* 5. Quick View Action Buttons */
body.dark-mode .kqv-fav-btn-main,
body.theme-dark .kqv-fav-btn-main,
body.dark-mode .kqv-btn-outline,
body.theme-dark .kqv-btn-outline {
    background: #1e293b !important;
    color: #cbd5e1 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}
body.dark-mode .kqv-fav-btn-main:hover,
body.theme-dark .kqv-fav-btn-main:hover,
body.dark-mode .kqv-btn-outline:hover,
body.theme-dark .kqv-btn-outline:hover {
    background: #334155 !important;
    color: #ffffff !important;
}

/* 6. Chapter Comments Drawer in Dark Mode */
body.dark-mode .chapter-comments-area,
body.theme-dark .chapter-comments-area {
    background: #0f172a !important;
    color: #f8fafc !important;
    border-left-color: rgba(255, 255, 255, 0.1) !important;
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}
body.dark-mode .comments-header,
body.theme-dark .comments-header {
    background: #0f172a !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
body.dark-mode .comm-inline-reply-form,
body.theme-dark .comm-inline-reply-form {
    background: #141e33 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}


/* ==========================================================================
   DARK MODE QUICK VIEW MODAL (HOMEPAGE ACTIVE SELECTORS)
   ========================================================================== */

/* 1. Modal Card Dialog (Standard Solid Midnight Slate) */
.kqv-modal-card {
    background: #0f172a !important;
    background-color: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
    color: #f8fafc !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* 2. Modal Close Button */
body.dark-mode .kqv-modal-close-btn,
body.theme-dark .kqv-modal-close-btn {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #cbd5e1 !important;
}
body.dark-mode .kqv-modal-close-btn:hover,
body.theme-dark .kqv-modal-close-btn:hover {
    background: #334155 !important;
    color: #ffffff !important;
}

/* 3. Cover Frame & Zoom Button */
body.dark-mode .kqv-cover-frame,
body.theme-dark .kqv-cover-frame {
    background: #141e33 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .kqv-zoom-btn,
body.theme-dark .kqv-zoom-btn {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #60a5fa !important;
}
body.dark-mode .kqv-zoom-btn:hover,
body.theme-dark .kqv-zoom-btn:hover {
    background: #2563eb !important;
    color: #ffffff !important;
}

/* 4. Title & Author */
body.dark-mode .kqv-title,
body.theme-dark .kqv-title {
    color: #f8fafc !important;
}

body.dark-mode .kqv-author-row,
body.theme-dark .kqv-author-row {
    color: #cbd5e1 !important;
}
body.dark-mode .kqv-author-name,
body.theme-dark .kqv-author-name {
    color: #f8fafc !important;
}
body.dark-mode .kqv-author-followers-pill,
body.theme-dark .kqv-author-followers-pill {
    color: #94a3b8 !important;
}
body.dark-mode .kqv-author-follow-btn,
body.theme-dark .kqv-author-follow-btn {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #60a5fa !important;
}

/* 5. 4-Column Stats Box */
body.dark-mode .kqv-stats-box,
body.theme-dark .kqv-stats-box {
    background: #141e33 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
body.dark-mode .kqv-stat-label,
body.theme-dark .kqv-stat-label {
    color: #94a3b8 !important;
}
body.dark-mode .kqv-stat-val,
body.theme-dark .kqv-stat-val {
    color: #f8fafc !important;
}
body.dark-mode .kqv-stat-sep,
body.theme-dark .kqv-stat-sep {
    background: rgba(255, 255, 255, 0.12) !important;
}

/* 6. Synopsis Box */
body.dark-mode .kqv-synopsis-header,
body.theme-dark .kqv-synopsis-header {
    color: #60a5fa !important;
}
body.dark-mode .kqv-synopsis-content,
body.theme-dark .kqv-synopsis-content {
    background: rgba(20, 30, 51, 0.75) !important;
    color: #cbd5e1 !important;
    border-left-color: #3b82f6 !important;
}

/* 7. Action Buttons */
body.dark-mode .kqv-audio-teaser-btn,
body.theme-dark .kqv-audio-teaser-btn,
body.dark-mode .kqv-sub-btn-main,
body.theme-dark .kqv-sub-btn-main,
body.dark-mode .kqv-fav-btn-main,
body.theme-dark .kqv-fav-btn-main,
body.dark-mode #qv-share-btn,
body.theme-dark #qv-share-btn {
    background: #1e293b !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
}
body.dark-mode .kqv-audio-teaser-btn:hover,
body.theme-dark .kqv-audio-teaser-btn:hover,
body.dark-mode .kqv-sub-btn-main:hover,
body.theme-dark .kqv-sub-btn-main:hover,
body.dark-mode .kqv-fav-btn-main:hover,
body.theme-dark .kqv-fav-btn-main:hover,
body.dark-mode #qv-share-btn:hover,
body.theme-dark #qv-share-btn:hover {
    background: #334155 !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}


/* ==========================================================================
   DARK MODE SKELETON SHIMMER LOADING
   ========================================================================== */

body.dark-mode .karlalyn-skeleton-card,
body.theme-dark .karlalyn-skeleton-card {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .karlalyn-shimmer-box,
body.theme-dark .karlalyn-shimmer-box {
    background: linear-gradient(90deg, #1e293b 15%, #334155 50%, #1e293b 85%) !important;
    background-size: 200% 100% !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}

body.dark-mode .book-cover-wrap,
body.theme-dark .book-cover-wrap {
    background-color: #141e33 !important;
    background-image: linear-gradient(90deg, #141e33 20%, #1e293b 50%, #141e33 80%) !important;
}


/* ==========================================================================
   DARK MODE POLISH: QV BADGES, TOC DRAWER & COMMENT INPUTS
   ========================================================================== */

/* 1. Quick View Top Badges Polish */
body.dark-mode .kqv-top-bar,
body.theme-dark .kqv-top-bar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .kqv-badge-pill,
body.theme-dark .kqv-badge-pill {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #cbd5e1 !important;
}

body.dark-mode .kqv-badge-category,
body.theme-dark .kqv-badge-category {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #93c5fd !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
}

body.dark-mode .kqv-badge-trans,
body.theme-dark .kqv-badge-trans {
    background: rgba(56, 189, 248, 0.15) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
}

body.dark-mode .kqv-badge-pop,
body.theme-dark .kqv-badge-pop {
    background: rgba(249, 115, 22, 0.15) !important;
    color: #fb923c !important;
    border: 1px solid rgba(249, 115, 22, 0.3) !important;
}

body.dark-mode .kqv-badge-audio,
body.theme-dark .kqv-badge-audio,
body.dark-mode #qv-audio-badge,
body.theme-dark #qv-audio-badge {
    background: rgba(234, 179, 8, 0.15) !important;
    color: #fde047 !important;
    border: 1px solid rgba(234, 179, 8, 0.3) !important;
}

body.dark-mode .kqv-badge-access,
body.theme-dark .kqv-badge-access,
body.dark-mode .kqv-badge-price,
body.theme-dark .kqv-badge-price {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

/* 2. TOC / Chapter Drawer in Dark Mode */
body.dark-mode #reader-chapter-drawer,
body.theme-dark #reader-chapter-drawer {
    background: #0f172a !important;
    color: #f8fafc !important;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.6) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .reader-drawer-header,
body.theme-dark .reader-drawer-header {
    background: #0f172a !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .reader-drawer-title,
body.theme-dark .reader-drawer-title {
    color: #f8fafc !important;
}

body.dark-mode .reader-drawer-close-btn,
body.theme-dark .reader-drawer-close-btn {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #cbd5e1 !important;
}
body.dark-mode .reader-drawer-close-btn:hover,
body.theme-dark .reader-drawer-close-btn:hover {
    background: #334155 !important;
    color: #ffffff !important;
}

body.dark-mode .drawer-chapter-item,
body.theme-dark .drawer-chapter-item {
    background: #141e33 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
body.dark-mode .drawer-chapter-item:hover,
body.theme-dark .drawer-chapter-item:hover {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}

body.dark-mode .drawer-chapter-item.is-current,
body.theme-dark .drawer-chapter-item.is-current {
    background: rgba(37, 99, 235, 0.15) !important;
    border-color: #3b82f6 !important;
}

body.dark-mode .drawer-chapter-title-text,
body.theme-dark .drawer-chapter-title-text {
    color: #f8fafc !important;
}

body.dark-mode .drawer-chapter-num,
body.theme-dark .drawer-chapter-num {
    color: #94a3b8 !important;
}

body.dark-mode .reader-drawer-footer,
body.theme-dark .reader-drawer-footer {
    background: #0f172a !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}
body.dark-mode .reader-drawer-footer a,
body.theme-dark .reader-drawer-footer a {
    color: #60a5fa !important;
}

/* 3. Comments Drawer Form Textarea & Cards */
body.dark-mode .comm-input-text,
body.theme-dark .comm-input-text,
body.dark-mode #comm-text,
body.theme-dark #comm-text {
    background: #141e33 !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}
body.dark-mode .comm-input-text:focus,
body.theme-dark .comm-input-text:focus,
body.dark-mode #comm-text:focus,
body.theme-dark #comm-text:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
}

body.dark-mode .comm-card,
body.theme-dark .comm-card {
    background: #141e33 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
}
body.dark-mode .comm-author,
body.theme-dark .comm-author {
    color: #f8fafc !important;
}
body.dark-mode .comm-body,
body.theme-dark .comm-body {
    color: #cbd5e1 !important;
}


/* ==========================================================================
   DARK MODE READER POLISH: SUB-NAVBAR & COMMENT TEXT VISIBILITY
   ========================================================================== */

/* 1. Sub-Navbar Reader (Frosted Obsidian Slate) */
body.dark-mode .reader-sticky-navbar,
body.theme-dark .reader-sticky-navbar {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}

body.dark-mode .reader-navbar-back,
body.theme-dark .reader-navbar-back {
    color: #cbd5e1 !important;
}
body.dark-mode .reader-navbar-back:hover,
body.theme-dark .reader-navbar-back:hover {
    color: #ffffff !important;
}

body.dark-mode .reader-navbar-views-pill,
body.theme-dark .reader-navbar-views-pill {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #cbd5e1 !important;
}
body.dark-mode .reader-navbar-views-pill .views-label,
body.theme-dark .reader-navbar-views-pill .views-label {
    color: #94a3b8 !important;
}

body.dark-mode .reader-navbar-toc-btn,
body.theme-dark .reader-navbar-toc-btn {
    background: rgba(37, 99, 235, 0.18) !important;
    border-color: #3b82f6 !important;
    color: #60a5fa !important;
}
body.dark-mode .reader-navbar-toc-btn:hover,
body.theme-dark .reader-navbar-toc-btn:hover {
    background: #2563eb !important;
    color: #ffffff !important;
}

/* 2. Teks Isi Komentar Tajam & Jelas */
body.dark-mode .comm-content,
body.theme-dark .comm-content {
    color: #f1f5f9 !important;
    font-weight: 400 !important;
}

body.dark-mode .comm-author,
body.theme-dark .comm-author {
    color: #f8fafc !important;
}

body.dark-mode .comm-time,
body.theme-dark .comm-time {
    color: #94a3b8 !important;
}

body.dark-mode .comm-actions button,
body.theme-dark .comm-actions button,
body.dark-mode .comm-reply-btn,
body.theme-dark .comm-reply-btn {
    color: #60a5fa !important;
}


/* ========================================================
   DARK MODE: READER SUB-NAVBAR PILLS & BOOK DETAILS MODAL
   ======================================================== */
[data-theme="dark"] .reader-navbar-views-pill,
body.dark-mode .reader-navbar-views-pill {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: #e2e8f0 !important;
}
[data-theme="dark"] .reader-navbar-views-pill .views-label,
body.dark-mode .reader-navbar-views-pill .views-label {
    color: #94a3b8 !important;
}

[data-theme="dark"] .reader-navbar-toc-btn,
body.dark-mode .reader-navbar-toc-btn {
    background: rgba(37, 99, 235, 0.2) !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
    color: #93c5fd !important;
}
[data-theme="dark"] .reader-navbar-toc-btn:hover,
body.dark-mode .reader-navbar-toc-btn:hover {
    background: rgba(37, 99, 235, 0.35) !important;
    border-color: #60a5fa !important;
    color: #ffffff !important;
}

[data-theme="dark"] .reader-navbar-pill-btn,
body.dark-mode .reader-navbar-pill-btn,
[data-theme="dark"] .reader-navbar-back,
body.dark-mode .reader-navbar-back {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: #f1f5f9 !important;
}
[data-theme="dark"] .reader-navbar-pill-btn:hover,
body.dark-mode .reader-navbar-pill-btn:hover,
[data-theme="dark"] .reader-navbar-back:hover,
body.dark-mode .reader-navbar-back:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
    color: #ffffff !important;
}

/* BOOK DETAILS MODAL DARK MODE */
[data-theme="dark"] #reader-book-details-modal,
body.dark-mode #reader-book-details-modal {
    background: #0f172a !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7) !important;
}
[data-theme="dark"] .reader-book-modal-header,
body.dark-mode .reader-book-modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
[data-theme="dark"] .reader-book-modal-title,
body.dark-mode .reader-book-modal-title {
    color: #f8fafc !important;
}
[data-theme="dark"] .reader-book-modal-author,
body.dark-mode .reader-book-modal-author {
    color: #94a3b8 !important;
}
[data-theme="dark"] .reader-book-modal-synopsis,
body.dark-mode .reader-book-modal-synopsis {
    background: #1e293b !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}
[data-theme="dark"] .reader-book-modal-footer,
body.dark-mode .reader-book-modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}
[data-theme="dark"] #reader-book-details-modal .comments-close-btn,
body.dark-mode #reader-book-details-modal .comments-close-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
[data-theme="dark"] #reader-book-details-modal .comments-close-btn:hover,
body.dark-mode #reader-book-details-modal .comments-close-btn:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
}


/* ========================================================
   DARK MODE: TRANSLATION SWITCH & BADGE
   ======================================================== */
[data-theme="dark"] .karlalyn-trans-switch-wrap,
body.dark-mode .karlalyn-trans-switch-wrap {
    background: #1e293b !important;
    border-color: #334155 !important;
}
[data-theme="dark"] .reader-orig-badge,
body.dark-mode .reader-orig-badge {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: #e2e8f0 !important;
}


/* ========================================================
   DARK MODE FIX: NAVBAR THEME BUTTON & LANGUAGE SELECTOR
   ======================================================== */
/* 1. TOMBOL TEMA NAVBAR */
body.dark-mode .karlalyn-theme-btn,
[data-theme="dark"] .karlalyn-theme-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #f8fafc !important;
}
body.dark-mode .karlalyn-theme-btn *,
[data-theme="dark"] .karlalyn-theme-btn * {
    color: #f8fafc !important;
}
body.dark-mode .karlalyn-theme-btn:hover,
[data-theme="dark"] .karlalyn-theme-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

/* 2. SELECTOR BAHASA DI NAVBAR */
body.dark-mode .dreame-lang-btn,
[data-theme="dark"] .dreame-lang-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #f8fafc !important;
}
body.dark-mode .dreame-lang-btn:hover,
[data-theme="dark"] .dreame-lang-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}
body.dark-mode .dreame-lang-menu,
[data-theme="dark"] .dreame-lang-menu {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #f8fafc !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6) !important;
}
body.dark-mode .dreame-lang-item,
[data-theme="dark"] .dreame-lang-item {
    color: #cbd5e1 !important;
    background: transparent !important;
}
body.dark-mode .dreame-lang-item:hover,
[data-theme="dark"] .dreame-lang-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}
body.dark-mode .dreame-lang-item.active,
[data-theme="dark"] .dreame-lang-item.active {
    color: #60a5fa !important;
    background: rgba(37, 99, 235, 0.15) !important;
}

/* ========================================================
   DARK MODE: SMART SHARE MODAL (#author-share-modal)
   ======================================================== */
body.dark-mode #author-share-modal > div,
[data-theme="dark"] #author-share-modal > div {
    background: #131d33 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7) !important;
}

body.dark-mode #author-share-modal > div > div:first-child,
[data-theme="dark"] #author-share-modal > div > div:first-child {
    background: #0f172a !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode #asm-modal-title,
[data-theme="dark"] #asm-modal-title {
    color: #f8fafc !important;
}

body.dark-mode #author-share-modal button[onclick*="closeBookShareModal"],
[data-theme="dark"] #author-share-modal button[onclick*="closeBookShareModal"] {
    color: #94a3b8 !important;
}

body.dark-mode #author-share-modal > div > div:nth-child(2) > div:first-child,
[data-theme="dark"] #author-share-modal > div > div:nth-child(2) > div:first-child {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode #asm-book-label,
[data-theme="dark"] #asm-book-label {
    color: #94a3b8 !important;
}

body.dark-mode #asm-book-title,
[data-theme="dark"] #asm-book-title {
    color: #ffffff !important;
}

body.dark-mode #asm-modal-subtitle,
[data-theme="dark"] #asm-modal-subtitle {
    color: #94a3b8 !important;
}

body.dark-mode #asm-btn-x,
[data-theme="dark"] #asm-btn-x {
    background: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

body.dark-mode #asm-link-input,
[data-theme="dark"] #asm-link-input {
    background: #0b1220 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.16) !important;
    color: #f1f5f9 !important;
}

body.dark-mode #asm-copy-btn,
[data-theme="dark"] #asm-copy-btn {
    background: #2563eb !important;
    color: #ffffff !important;
}

/* ========================================================
   DARK MODE: READER REVIEWS / COMMENTS PREVIEW MODAL
   ======================================================== */
body.dark-mode #karlalyn-comments-modal-card,
[data-theme="dark"] #karlalyn-comments-modal-card {
    background: #131d33 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7) !important;
}

body.dark-mode .kcm-header,
[data-theme="dark"] .kcm-header {
    background: #0f172a !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .kcm-title,
[data-theme="dark"] .kcm-title {
    color: #f8fafc !important;
}

body.dark-mode .kcm-subtitle,
[data-theme="dark"] .kcm-subtitle {
    color: #94a3b8 !important;
}

body.dark-mode .kcm-close-btn,
[data-theme="dark"] .kcm-close-btn {
    color: #94a3b8 !important;
}
body.dark-mode .kcm-close-btn:hover,
[data-theme="dark"] .kcm-close-btn:hover {
    color: #f8fafc !important;
}

body.dark-mode .kcm-body,
[data-theme="dark"] .kcm-body {
    background: #131d33 !important;
}

body.dark-mode .kcm-item,
[data-theme="dark"] .kcm-item {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .kcm-author,
[data-theme="dark"] .kcm-author {
    color: #f1f5f9 !important;
}

body.dark-mode .kcm-time,
[data-theme="dark"] .kcm-time {
    color: #64748b !important;
}

body.dark-mode .kcm-content,
[data-theme="dark"] .kcm-content {
    color: #cbd5e1 !important;
}

body.dark-mode .kcm-footer,
[data-theme="dark"] .kcm-footer {
    background: #0f172a !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .kcm-author-name-input,
body.dark-mode .kcm-chapter-select,
body.dark-mode .kcm-content-input,
[data-theme="dark"] .kcm-author-name-input,
[data-theme="dark"] .kcm-chapter-select,
[data-theme="dark"] .kcm-content-input {
    background: #0b1220 !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    color: #f1f5f9 !important;
}

body.dark-mode .kcm-empty-state,
[data-theme="dark"] .kcm-empty-state {
    color: #94a3b8 !important;
}

/* === DARK MODE TOTAL FOR COMMENTS PREVIEW MODAL === */
body.dark-mode #karlalyn-comments-modal-card,
[data-theme="dark"] #karlalyn-comments-modal-card {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8) !important;
}

body.dark-mode .kcm-header,
[data-theme="dark"] .kcm-header {
    background: #0b1220 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .kcm-body,
[data-theme="dark"] .kcm-body {
    background: #0f172a !important;
}

body.dark-mode .kcm-comment-item,
[data-theme="dark"] .kcm-comment-item {
    background: #141e33 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .kcm-comment-item.kcm-reply-item,
[data-theme="dark"] .kcm-comment-item.kcm-reply-item {
    background: #111a2e !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

body.dark-mode .kcm-replies-wrap,
[data-theme="dark"] .kcm-replies-wrap {
    border-left: 2px solid rgba(255, 255, 255, 0.14) !important;
}

body.dark-mode .kcm-author-name,
[data-theme="dark"] .kcm-author-name {
    color: #f8fafc !important;
}

body.dark-mode .kcm-meta-right,
body.dark-mode .kcm-meta-right span,
[data-theme="dark"] .kcm-meta-right,
[data-theme="dark"] .kcm-meta-right span {
    color: #94a3b8 !important;
}

body.dark-mode .kcm-comment-text,
[data-theme="dark"] .kcm-comment-text {
    color: #e2e8f0 !important;
}

body.dark-mode .kcm-btn-reply,
[data-theme="dark"] .kcm-btn-reply {
    color: #60a5fa !important;
    background: rgba(96, 165, 250, 0.1) !important;
}

body.dark-mode .kcm-composer,
[data-theme="dark"] .kcm-composer {
    background: #0b1220 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .kcm-select-chapter,
body.dark-mode .kcm-input-name,
body.dark-mode .kcm-input-textarea,
[data-theme="dark"] .kcm-select-chapter,
[data-theme="dark"] .kcm-input-name,
[data-theme="dark"] .kcm-input-textarea {
    background: #070d19 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.14) !important;
    color: #f1f5f9 !important;
}

body.dark-mode .kcm-select-chapter:focus,
body.dark-mode .kcm-input-name:focus,
body.dark-mode .kcm-input-textarea:focus,
[data-theme="dark"] .kcm-select-chapter:focus,
[data-theme="dark"] .kcm-input-name:focus,
[data-theme="dark"] .kcm-input-textarea:focus {
    border-color: #3b82f6 !important;
}


/* Comments Modal Header Dark Mode Fix */
body.dark-mode .kcm-header h3,
body.dark-mode .kcm-title,
[data-theme="dark"] .kcm-header h3,
[data-theme="dark"] .kcm-title {
    color: #f1f5f9 !important;
}

body.dark-mode .kcm-subtitle,
body.dark-mode .kcm-sub,
body.dark-mode .kcm-header p,
[data-theme="dark"] .kcm-subtitle,
[data-theme="dark"] .kcm-sub,
[data-theme="dark"] .kcm-header p {
    color: #94a3b8 !important;
}

body.dark-mode .kcm-close,
[data-theme="dark"] .kcm-close {
    color: #cbd5e1 !important;
}
body.dark-mode .kcm-close:hover,
[data-theme="dark"] .kcm-close:hover {
    color: #ffffff !important;
}





/* COSMIC SPACE THEME & TRANSLUCENT CARDS */

        /* 1. LATAR BELAKANG ANTARIKSA KOSMIK PENUH DI SELURUH TINGGI DOKUMEN */
        html.dark-mode, html[data-theme="dark"],
        html.dark-mode body, html[data-theme="dark"] body,
        body.dark-mode, body.theme-dark {
            background-color: #050713 !important;
            background-image: 
                /* Nebula Hero Atas */
                radial-gradient(circle 850px at 15% 6%, rgba(99, 102, 241, 0.35) 0%, transparent 70%),
                radial-gradient(circle 800px at 85% 12%, rgba(6, 182, 212, 0.28) 0%, transparent 65%),
                /* Nebula My Collection & Subscriptions (Area Tengah Atas) */
                radial-gradient(circle 900px at 25% 28%, rgba(139, 92, 246, 0.30) 0%, transparent 70%),
                radial-gradient(circle 850px at 80% 38%, rgba(14, 165, 233, 0.25) 0%, transparent 65%),
                /* Nebula Grid Kartu Buku (Area Tengah Bawah) */
                radial-gradient(circle 950px at 20% 55%, rgba(99, 102, 241, 0.30) 0%, transparent 70%),
                radial-gradient(circle 900px at 85% 68%, rgba(168, 85, 247, 0.26) 0%, transparent 65%),
                /* Nebula Banner & Footer (Area Bawah) */
                radial-gradient(circle 850px at 30% 85%, rgba(236, 72, 153, 0.22) 0%, transparent 65%),
                radial-gradient(circle 950px at 75% 96%, rgba(79, 70, 229, 0.32) 0%, transparent 70%) !important;
            background-attachment: scroll !important;
            background-repeat: no-repeat !important;
            background-size: 100% 100% !important;
            color: #cbd5e1 !important;
        }

        /* 2. HEADER NAVBAR KACA MELAYANG */
        body.dark-mode .site-header,
        body.theme-dark .site-header,
        html[data-theme="dark"] .site-header {
            background: rgba(6, 8, 20, 0.45) !important;
            backdrop-filter: blur(18px) !important;
            -webkit-backdrop-filter: blur(18px) !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        }

        /* 3. FOOTER KACA TRANSPARAN */
        body.dark-mode .site-footer,
        body.theme-dark .site-footer,
        body.dark-mode footer,
        html[data-theme="dark"] .site-footer,
        html[data-theme="dark"] footer {
            background: rgba(6, 8, 20, 0.45) !important;
            backdrop-filter: blur(18px) !important;
            -webkit-backdrop-filter: blur(18px) !important;
            border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        }

        /* 4. SEMUA KARTU: TEMBUS PANDANG KRISTAL (CRYSTAL GLASSMORPHISM) */
        body.dark-mode .book-card,
        body.theme-dark .book-card,
        .theme-dark .book-card,
        html[data-theme="dark"] .book-card,
        body.dark-mode .myb-book-card,
        html[data-theme="dark"] .myb-book-card,
        body.dark-mode [class*="card-style-"],
        html[data-theme="dark"] [class*="card-style-"],
        body.dark-mode .favorites-section,
        html[data-theme="dark"] .favorites-section,
        body.dark-mode #karlalyn-continue-reading-strip,
        html[data-theme="dark"] #karlalyn-continue-reading-strip,
                        body.dark-mode .ideas-worth-reading-banner,
        html[data-theme="dark"] .ideas-worth-reading-banner,
        body.dark-mode .bottom-cta-banner,
        html[data-theme="dark"] .bottom-cta-banner,
        body.dark-mode .catalog-toolbar,
        html[data-theme="dark"] .catalog-toolbar {
            background: rgba(255, 255, 255, 0.03) !important;
            background-color: rgba(15, 23, 42, 0.25) !important;
            background-image: none !important;
            backdrop-filter: blur(16px) !important;
            -webkit-backdrop-filter: blur(16px) !important;
            border: 1px solid rgba(255, 255, 255, 0.12) !important;
            box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.15), 0 10px 30px rgba(0, 0, 0, 0.35) !important;
        }

        /* Hover Kartu */
        body.dark-mode .book-card:hover,
        body.dark-mode .myb-book-card:hover,
        html[data-theme="dark"] .book-card:hover {
            background-color: rgba(30, 41, 59, 0.45) !important;
            border-color: rgba(147, 197, 253, 0.45) !important;
            box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.25), 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 20px rgba(99, 102, 241, 0.30) !important;
        }

        /* Tombol Nav */
        html.dark-mode .btn-outline, html[data-theme="dark"] .btn-outline,
        html.dark-mode .karlalyn-theme-btn, html[data-theme="dark"] .karlalyn-theme-btn,
        html.dark-mode .dreame-lang-btn, html[data-theme="dark"] .dreame-lang-btn {
            background: rgba(255, 255, 255, 0.08) !important;
            border-color: rgba(255, 255, 255, 0.15) !important;
            color: #f8fafc !important;
        }
        html.dark-mode .karlalyn-theme-btn *, html[data-theme="dark"] .karlalyn-theme-btn * {
            color: #f8fafc !important;
        }

/* END COSMIC */

/* BANNER & FOOTER GLASS */
        /* Kotak Ideas Worth Reading & Footer Transparan Kaca Kristal */
        body.dark-mode .group-banner-inner,
        html[data-theme="dark"] .group-banner-inner {
            background: rgba(255, 255, 255, 0.03) !important;
            background-color: rgba(15, 23, 42, 0.28) !important;
            backdrop-filter: blur(18px) !important;
            -webkit-backdrop-filter: blur(18px) !important;
            border: 1px solid rgba(255, 255, 255, 0.12) !important;
            box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.15), 0 12px 36px rgba(0, 0, 0, 0.35) !important;
        }

        body.dark-mode .site-footer,
        html[data-theme="dark"] .site-footer {
            background: rgba(6, 8, 20, 0.35) !important;
            backdrop-filter: blur(20px) !important;
            -webkit-backdrop-filter: blur(20px) !important;
            border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        }


/* HEADER TRANSPARENT TOTAL */
        /* HEADER / NAVBAR BENAR-BENAR TRANSPARAN TANPA BACKGROUND */
        body.dark-mode .site-header,
        body.theme-dark .site-header,
        html[data-theme="dark"] .site-header {
            background: transparent !important;
            background-color: transparent !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
            border-bottom: none !important;
            box-shadow: none !important;
        }

/* DYNAMIC SCROLLED NAVBAR */
        /* NAVBAR DEFAULT: 100% TRANSPARAN MURNI DI POSISI ATAS */
        body.dark-mode .site-header,
        body.theme-dark .site-header,
        html[data-theme="dark"] .site-header {
            background: transparent !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
            border-bottom: 1px solid transparent !important;
            box-shadow: none !important;
            transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
        }

        /* SAAT DISCROLL KE BAWAH: OTOMATIS AKTIFKAN KACA PELINDUNG */
        body.dark-mode .site-header.is-scrolled,
        body.theme-dark .site-header.is-scrolled,
        html[data-theme="dark"] .site-header.is-scrolled {
            background: rgba(6, 8, 20, 0.78) !important;
            backdrop-filter: blur(16px) !important;
            -webkit-backdrop-filter: blur(16px) !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
        }


/* ============================================================
   KARLALYN DEFINITIVE HOMEPAGE & NAVBAR VISUAL HARMONIZATION
   ============================================================ */

/* 1. NAVBAR 'My Books' - Bersihkan total outline/blocking/border */
#nav-books-link,
.main-nav #nav-books-link,
.main-nav a#nav-books-link,
body.dark-mode .main-nav #nav-books-link,
body.dark-mode .main-nav a#nav-books-link,
.main-nav a[href*="section=books"],
body.dark-mode .main-nav a[href*="section=books"] {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 2. HERO SEARCH INPUT - Hilangkan border kasar & border-color dark mode */
.hero-search-input-wrap,
body.dark-mode .hero-search-input-wrap {
    border: none !important;
    outline: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}

.hero-search-input-wrap input,
body.dark-mode .hero-search-input-wrap input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* 3. HERO TRUST STRIP - Kunci mutlak 1 baris (nowrap) */
.hero-trust-strip,
body.dark-mode .hero-trust-strip {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    align-items: center !important;
    width: max-content !important;
    max-width: 100% !important;
    gap: 8px 12px !important;
    padding: 8px 16px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
}

.hero-trust-strip::-webkit-scrollbar {
    display: none !important;
}

.hero-trust-strip span {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* 4. TRENDING TAGS BUTTON - Hilangkan border default tombol */
.quick-tag,
.hero-quick-tags .quick-tag,
body.dark-mode .quick-tag,
body.dark-mode .hero-quick-tags .quick-tag {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: rgba(255, 255, 255, 0.08) !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

.quick-tag:hover,
.hero-quick-tags .quick-tag:hover,
body.dark-mode .quick-tag:hover,
body.dark-mode .hero-quick-tags .quick-tag:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    border: none !important;
}


/* ============================================================
   KARLALYN FINAL NAVBAR & TRENDING TAGS CLEANUP
   ============================================================ */

/* 1. NAVBAR - Bebaskan seluruh link navigasi dari border dan background */
.main-nav a,
.main-nav a[href*="my-account"],
.main-nav .nav-become-author,
.main-nav .nav-author-studio,
#nav-books-link,
body.dark-mode .main-nav a,
body.dark-mode .main-nav a[href*="my-account"],
body.dark-mode .main-nav .nav-become-author,
body.dark-mode .main-nav .nav-author-studio,
body.dark-mode #nav-books-link {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* 2. TRENDING TAGS - Murni teks tagar (background 100% transparan, tanpa border) */
.quick-tag,
.hero-quick-tags .quick-tag,
body.dark-mode .quick-tag,
body.dark-mode .hero-quick-tags .quick-tag {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    padding: 2px 6px !important;
    transition: color 0.2s ease !important;
}

.quick-tag:hover,
.hero-quick-tags .quick-tag:hover,
body.dark-mode .quick-tag:hover,
body.dark-mode .hero-quick-tags .quick-tag:hover {
    background: transparent !important;
    color: #38bdf8 !important; /* Sky Blue menyala saat disentuh mouse */
    border: none !important;
}


/* --- HERO TRUST STRIP MOBILE 2-LINE WRAP FIX (<= 768px) --- */
@media (max-width: 768px) {
    .hero-trust-strip,
    body.dark-mode .hero-trust-strip,
    html[data-theme="dark"] .hero-trust-strip {
        display: inline-flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        white-space: normal !important;
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 6px 10px !important;
        padding: 8px 12px !important;
        border-radius: 14px !important;
        overflow-x: visible !important;
        text-align: center !important;
    }
    .hero-trust-strip span {
        white-space: nowrap !important;
        font-size: 0.73rem !important;
        flex-shrink: 0 !important;
    }
}


/* --- FINAL HERO SEARCH CONTAINER TRANSPARENCY (NO DARK BOX) --- */
.hero-search-box,
div.hero-search-box,
body.dark-mode .hero-search-box,
body.dark-mode div.hero-search-box,
html[data-theme="dark"] .hero-search-box,
html[data-theme="dark"] div.hero-search-box,
.hero-quick-tags,
body.dark-mode .hero-quick-tags {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* --- KQV MODAL CARD FINAL SOLID DARK SLATE (ANTI-BLEEDTHROUGH) --- */
html body.dark-mode .kqv-modal-card,
html body.theme-dark .kqv-modal-card,
html[data-theme="dark"] body .kqv-modal-card,
html[data-theme="dark"] .kqv-modal-card,
body.dark-mode .kqv-modal-card,
body.theme-dark .kqv-modal-card,
.kqv-modal-card {
    background: #0f172a !important;
    background-color: #0f172a !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
    color: #f8fafc !important;
}


/* ============================================================
   KARLALYN FINAL MOBILE DRAWER & CATEGORY SCROLL PILLS (DEFINITIVE)
   ============================================================ */

/* 1. Category Filter Pills: Bebas pemotongan teks & Swipe Mulus */
.category-filter-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth !important;
    padding: 6px 4px 14px 4px !important;
    scrollbar-width: none !important;
}
.category-filter-bar::-webkit-scrollbar {
    display: none !important;
}
.filter-pill {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

/* 2. Mobile Drawer: 100% Solid Slate Opaque #0b1120 & 100% Rata Kiri Seragam */
@media (max-width: 768px) {
    body.dark-mode .mobile-nav-toggle:checked ~ .main-nav,
    html[data-theme="dark"] .mobile-nav-toggle:checked ~ .main-nav,
    .mobile-nav-toggle:checked ~ .main-nav {
        background: #0b1120 !important;
        background-color: #0b1120 !important;
        opacity: 1 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-bottom: 1px solid #1e293b !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9) !important;
    }

    body.dark-mode .mobile-nav-toggle:checked ~ .main-nav a,
    html[data-theme="dark"] .mobile-nav-toggle:checked ~ .main-nav a,
    .mobile-nav-toggle:checked ~ .main-nav a,
    body.dark-mode .mobile-nav-toggle:checked ~ .main-nav #nav-books-link,
    html[data-theme="dark"] .mobile-nav-toggle:checked ~ .main-nav #nav-books-link,
    .mobile-nav-toggle:checked ~ .main-nav #nav-books-link {
        display: block !important;
        padding: 12px 14px !important;
        margin: 0 !important;
        text-align: left !important;
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        color: #f8fafc !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        text-decoration: none !important;
    }

    body.dark-mode .mobile-nav-toggle:checked ~ .main-nav a:last-child,
    .mobile-nav-toggle:checked ~ .main-nav a:last-child {
        border-bottom: none !important;
    }

    body.dark-mode .mobile-nav-toggle:checked ~ .main-nav .mobile-nav-account,
    html[data-theme="dark"] .mobile-nav-toggle:checked ~ .main-nav .mobile-nav-account,
    .mobile-nav-toggle:checked ~ .main-nav .mobile-nav-account {
        display: block !important;
        margin: 12px 0 0 0 !important;
        padding: 10px 14px !important;
        background: #1e293b !important;
        border: 1px solid #334155 !important;
        color: #f8fafc !important;
        font-size: 0.88rem !important;
        text-align: left !important;
    }
}


/* ==========================================================================
   AUTH SUITE MODERNIZATION (LOGIN, REGISTER, FORGOT, RESET, OTP)
   Full Light Mode & Dark Mode Harmonization
   ========================================================================== */

.auth-page {
    padding: 60px 0 80px !important;
}

.auth-title {
    font-size: 2.1rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    margin: 0 0 8px 0 !important;
    text-align: center !important;
    color: #0f172a;
    transition: color 0.2s ease;
}

body.dark-mode .auth-title,
html[data-theme="dark"] .auth-title,
body.dark-mode .auth-page .section-heading h1,
html[data-theme="dark"] .auth-page .section-heading h1 {
    color: #f8fafc !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}

.auth-subtitle {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    margin: 0 auto !important;
    text-align: center !important;
    color: #64748b;
    max-width: 400px;
    transition: color 0.2s ease;
}

body.dark-mode .auth-subtitle,
html[data-theme="dark"] .auth-subtitle,
body.dark-mode .auth-page .section-heading p,
html[data-theme="dark"] .auth-page .section-heading p {
    color: #94a3b8 !important;
}

.auth-eyebrow {
    display: inline-block !important;
    padding: 4px 14px !important;
    border-radius: 9999px !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    margin-bottom: 12px !important;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

body.dark-mode .auth-eyebrow,
html[data-theme="dark"] .auth-eyebrow {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #fbbf24 !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
}

/* Card Container (Frosted Dark Glass) */
.auth-card,
.auth-form-wrapper {
    width: 100% !important;
    max-width: 440px !important;
    margin: 0 auto !important;
    border-radius: 20px !important;
    padding: 36px 30px !important;
    box-sizing: border-box !important;
    transition: all 0.25s ease !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
}

body.dark-mode .auth-card,
body.dark-mode .auth-form-wrapper,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .auth-form-wrapper {
    background: rgba(15, 23, 42, 0.78) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05) inset !important;
}

/* Labels */
.auth-form label,
.auth-label {
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    color: #0f172a !important;
    transition: color 0.2s ease !important;
}

body.dark-mode .auth-form label,
body.dark-mode .auth-label,
html[data-theme="dark"] .auth-form label,
html[data-theme="dark"] .auth-label {
    color: #e2e8f0 !important;
}

/* Inputs */
.auth-card input:not([type="checkbox"]):not([type="radio"]),
.auth-form-wrapper input:not([type="checkbox"]):not([type="radio"]) {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    border: 1px solid #cbd5e1 !important;
    font-size: 0.95rem !important;
    color: #0f172a !important;
    background: #f8fafc !important;
    transition: all 0.2s ease !important;
    outline: none !important;
}

body.dark-mode .auth-card input:not([type="checkbox"]):not([type="radio"]),
body.dark-mode .auth-form-wrapper input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="dark"] .auth-card input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="dark"] .auth-form-wrapper input:not([type="checkbox"]):not([type="radio"]) {
    background: #0b1120 !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

.auth-card input:focus,
.auth-form-wrapper input:focus {
    border-color: #d97706 !important;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2) !important;
}

/* Checkbox Label */
.auth-checkbox-label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    color: #334155 !important;
    font-weight: 500 !important;
    font-size: 0.88rem !important;
    user-select: none !important;
}

body.dark-mode .auth-checkbox-label,
html[data-theme="dark"] .auth-checkbox-label {
    color: #cbd5e1 !important;
}

/* Auxiliary Links (Forgot Password) */
.auth-link-subtle {
    color: #64748b !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    transition: color 0.2s ease !important;
}

body.dark-mode .auth-link-subtle,
html[data-theme="dark"] .auth-link-subtle {
    color: #38bdf8 !important;
}

.auth-link-subtle:hover {
    text-decoration: underline !important;
}

/* Submit Button - Karlalyn Modern Royal Blue */
.auth-submit-btn {
    width: 100% !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 13px 24px !important;
    border-radius: 9999px !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.98rem !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    cursor: pointer !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.38) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.theme-dark .auth-submit-btn,
body.dark-mode .auth-submit-btn,
html[data-theme="dark"] .auth-submit-btn,
[data-theme="dark"] .auth-submit-btn,
.theme-dark .btn-primary:not(.hero-actions .btn-primary),
body.dark-mode .btn-primary:not(.hero-actions .btn-primary),
[data-theme="dark"] .btn-primary:not(.hero-actions .btn-primary) {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.45) !important;
}

.auth-submit-btn:hover,
.theme-dark .auth-submit-btn:hover,
body.dark-mode .auth-submit-btn:hover,
[data-theme="dark"] .auth-submit-btn:hover,
.theme-dark .btn-primary:not(.hero-actions .btn-primary):hover,
body.dark-mode .btn-primary:not(.hero-actions .btn-primary):hover,
[data-theme="dark"] .btn-primary:not(.hero-actions .btn-primary):hover {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.6) !important;
    color: #ffffff !important;
}

.auth-submit-btn:active,
.theme-dark .btn-primary:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4) !important;
}

/* Card Footer */
.auth-card-footer {
    text-align: center !important;
    margin-top: 24px !important;
    padding-top: 20px !important;
    border-top: 1px solid #f1f5f9 !important;
    font-size: 0.9rem !important;
    color: #64748b !important;
}

body.dark-mode .auth-card-footer,
html[data-theme="dark"] .auth-card-footer {
    border-top-color: rgba(255, 255, 255, 0.08) !important;
    color: #94a3b8 !important;
}

.auth-action-link {
    color: #2b1b17 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

body.dark-mode .auth-action-link,
html[data-theme="dark"] .auth-action-link {
    color: #fbbf24 !important;
}

.auth-action-link:hover {
    text-decoration: underline !important;
}

/* Auth Heading Stack Vertikal */
.auth-page .section-heading,
.auth-page .section-heading.centered {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 6px !important;
    margin-bottom: 28px !important;
}

.auth-page .section-heading > div,
.auth-heading-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
}
