/*
Theme Name: Flatsome Child - MONLEO
Theme URI: https://monleo.store
Description: Child theme for Flatsome tailored for MONLEO Dark Xianxia Ink-Wash Painting Theme (Huyen Mac Tien Hiep). Preserves core engine, VIP access, and SePay checkout.
Author: MONLEO Dev Team
Author URI: https://monleo.store
Template: flatsome
Version: 2.5.0
Text Domain: monleo-child
*/

/* 1. NẠP BỘ PHÔNG MẢNH NGHỆ THUẬT (CORMORANT GARAMOND & QUICKSAND) */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,400;1,600&family=Quicksand:wght@400;500;600&display=swap');


/* ==========================================================================
   1. DESIGN TOKENS & ROOT VARIABLES (HUYEN MAC TIEN HIEP - DARK MONOCHROME)
   ========================================================================== */
:root {
    /* 1.1 Deep Monochrome Ink Canvas & Surfaces (Muc Huyen Den & Nham Thach) */
    --monleo-canvas: #0A0B0E;
    --monleo-surface: #10121A;
    --monleo-surface-elevated: #161924;
    --monleo-surface-hover: #1E2333;
    --monleo-border: rgba(226, 232, 240, 0.12);
    --monleo-border-light: rgba(226, 232, 240, 0.2);
    --monleo-border-gold: rgba(212, 175, 55, 0.35);

    /* 1.2 Moon Parchment & Xuan Paper Text (Nguyet Bach & Ngan Hoi) */
    --monleo-text-main: #F8FAFC;
    --monleo-text-muted: #94A3B8;
    --monleo-text-subtle: #64748B;

    /* 1.3 Signature Antique Gold (Hoang Kim Co Hoa) */
    --monleo-primary: #F8FAFC;
    --monleo-primary-hover: #D4AF37;
    --monleo-gold: #D4AF37;
    --monleo-gold-light: #FDE68A;
    --monleo-gold-dark: #AA771C;
    --monleo-gold-gradient: linear-gradient(135deg, #D4AF37 0%, #AA771C 100%);
    --monleo-gold-glow: rgba(212, 175, 55, 0.3);

    /* 1.4 Auspicious Badges & Seals (Chu Sa An & Hoang Kim Luu Ly) */
    --monleo-chusa-red: linear-gradient(135deg, #991B1B 0%, #DC2626 100%);
    --monleo-rank1-gold: linear-gradient(135deg, #BF953F 0%, #FCF6BA 50%, #B38728 100%);
    --monleo-free-emerald: #10B981;

    /* 1.5 Geometry */
    --monleo-radius-sm: 4px;
    --monleo-radius-md: 6px;
    --monleo-radius-lg: 10px;
    --monleo-radius-pill: 9999px;

    --monleo-font: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --monleo-transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   2. GLOBAL THEME RESETS & HUYEN MAC TIEN HIEP BACKGROUND
   ========================================================================== */
body, #wrapper, #main {
    background-color: #0A0B0E !important;
    background-image: 
        /* Lớp 1: Màng mực tối làm dịu nét vẽ để chữ trên web nổi bật */
        linear-gradient(180deg, rgba(10, 11, 14, 0.88) 0%, rgba(10, 11, 14, 0.92) 100%),
        /* Lớp 2: Ảnh hoa văn tiên hiệp lặp lại */
        url('anh-nen.jpg') !important;
    background-repeat: repeat !important;
    background-size: 100% 100%, 420px 420px !important;
    background-attachment: fixed !important;
    background-position: center center !important;
    color: var(--monleo-text-main);
    font-family: var(--monleo-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--monleo-text-main);
    font-family: var(--monleo-font);
    font-weight: 800;
    letter-spacing: -0.015em;
}

/* Global Link Styles: Default #F8FAFC, Hover #D4AF37 */
a {
    color: #F8FAFC;
    transition: var(--monleo-transition);
}

a:hover, a:focus {
    color: #D4AF37;
    text-decoration: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #0A0B0E;
}
::-webkit-scrollbar-thumb {
    background: #1A1E29;
    border-radius: 4px;
    border: 1px solid rgba(226, 232, 240, 0.1);
}
::-webkit-scrollbar-thumb:hover {
    background: #D4AF37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* ==========================================================================
   3. HEADER & NAVIGATION (FLATSOME OVERRIDES)
   ========================================================================== */
.header-wrapper {
    background: rgba(10, 11, 14, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.8), 0 0 15px rgba(212, 175, 55, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

#top-bar {
    background: #07080A;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 13px;
    min-height: 36px;
    padding: 4px 0;
}

#masthead {
    background: transparent !important;
}

/* 1. NỀN HEADER MAIN TRÊN PC & VIỀN HOÀNG KIM CỐ ĐỊNH */
#header .header-main {
    background-color: #08090C !important;
    background-image: 
        /* Lớp làm dịu ở giữa để chữ menu và logo nổi bật */
        radial-gradient(circle at 50% 50%, rgba(8, 9, 12, 0.75) 20%, rgba(8, 9, 12, 0.25) 100%),
        url('banner-header-main.jpg') !important;
    /* Trên PC: Căn giữa để lấy trọn 2 cụm mây vàng 2 bên rìa */
    background-size: 100% auto !important;
    background-position: center 65% !important;
    background-repeat: no-repeat !important;
    /* Tự tạo viền vàng kim bằng CSS để không bao giờ bị cắt mất */
    border-top: 1px solid rgba(212, 175, 55, 0.35) !important;
    border-bottom: 2px solid #D4AF37 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.85) !important;
}

/* 2. TỰ ĐỘNG CO GIÃN KHÔNG MÉO HÌNH TRÊN TABLET & MOBILE */
@media (max-width: 849px) {
    #header .header-main {
        /* Giữ nguyên tỷ lệ nét vẽ theo chiều cao Header, ưu tiên lấy cụm mây bên phải */
        background-size: auto 160% !important;
        background-position: right 60% !important;
    }
}

/* 3. ĐỒNG BỘ MÀU CHỮ MENU & ICON GIỎ HÀNG TRÊN HEADER */
#header .nav > li > a,
#header .header-nav .icon-search,
#header .account-link,
#header .header-cart-link {
    color: #F3E5AB !important; /* Vàng ngà cổ điển, dễ đọc hơn trắng xám */
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
}

#header .nav > li > a:hover,
#header .header-cart-link:hover {
    color: #D4AF37 !important;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Đổi icon túi hàng màu xanh dương sang Hoàng Kim */
#header .cart-icon strong {
    border-color: #D4AF37 !important;
    color: #FDE68A !important;
    background-color: rgba(212, 175, 55, 0.15) !important;
}
#header .cart-icon strong:after {
    border-color: #D4AF37 !important;
}


/* Brand Logo: Antique Gold Metallic Gradient */
.monleo-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #FCF6BA 0%, #D4AF37 40%, #AA771C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.4));
}

.monleo-brand-logo .brand-badge {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 2px 7px;
    border-radius: var(--monleo-radius-sm);
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.35);
    -webkit-text-fill-color: #FDE68A;
    text-transform: uppercase;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
}

/* Navigation Links */
.header-nav > li > a {
    color: #CBD5E1 !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 8px 14px;
    border-radius: var(--monleo-radius-sm);
    transition: var(--monleo-transition);
}

.header-nav > li > a:hover,
.header-nav > li.active > a {
    color: #FDE68A !important;
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.35);
}

/* Header VIP Button */
.btn-monleo-vip-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #D4AF37 0%, #AA771C 100%);
    color: #0A0B0E !important;
    font-weight: 900;
    font-size: 13px;
    padding: 8px 18px;
    border-radius: var(--monleo-radius-sm);
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.4);
    border: 1px solid #FDE68A;
    transition: var(--monleo-transition);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-monleo-vip-cta:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #FDE68A 0%, #D4AF37 100%);
    box-shadow: 0 4px 22px rgba(212, 175, 55, 0.6);
    color: #0A0B0E !important;
}

/* Header Search Form */
.ux-search-box input.search-field {
    background: var(--monleo-surface-elevated) !important;
    border: 1px solid rgba(226, 232, 240, 0.15) !important;
    color: var(--monleo-text-main) !important;
    border-radius: var(--monleo-radius-pill) !important;
    padding-left: 18px !important;
    font-size: 14px;
    transition: var(--monleo-transition);
}

.ux-search-box input.search-field:focus {
    border-color: #D4AF37 !important;
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.35) !important;
}

.ux-search-box input.search-field::placeholder {
    color: var(--monleo-text-subtle);
}

/* User Account & Cart Header Icons */
.header-icons .header-button a {
    color: #E2E8F0;
}
.header-icons .header-button a:hover {
    color: #FDE68A;
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.5));
}

/* ==========================================================================
   4. HERO SPOTLIGHT / FEATURED BANNER ("MON LEO MEMES" / TIEN HIEP FRAME)
   ========================================================================== */
.monleo-hero-spotlight {
    position: relative;
    border-radius: var(--monleo-radius-md);
    overflow: hidden;
    margin: 20px 0 35px 0;
    min-height: 420px;
    background: rgba(14, 16, 22, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.9), 0 0 25px rgba(212, 175, 55, 0.08);
}

/* Corner Ornaments (Hoa Tiet Goc Khung Tranh Co) */
.hero-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 10;
}
.hero-corner-tl {
    top: 8px;
    left: 8px;
    border-top: 2px solid #D4AF37;
    border-left: 2px solid #D4AF37;
}
.hero-corner-tr {
    top: 8px;
    right: 8px;
    border-top: 2px solid #D4AF37;
    border-right: 2px solid #D4AF37;
}
.hero-corner-bl {
    bottom: 8px;
    left: 8px;
    border-bottom: 2px solid #D4AF37;
    border-left: 2px solid #D4AF37;
}
.hero-corner-br {
    bottom: 8px;
    right: 8px;
    border-bottom: 2px solid #D4AF37;
    border-right: 2px solid #D4AF37;
}

.monleo-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center 25%;
    filter: brightness(0.45) blur(1px);
    transform: scale(1.04);
}

.monleo-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #0A0B0E 0%, rgba(10, 11, 14, 0.95) 45%, rgba(10, 11, 14, 0.65) 75%, rgba(10, 11, 14, 0.25) 100%);
    z-index: 1;
}

.monleo-hero-content {
    position: relative;
    z-index: 2;
    padding: 48px;
    max-width: 650px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 420px;
}

.monleo-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #F3E5AB;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: var(--monleo-radius-pill);
    margin-bottom: 14px;
    width: fit-content;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.18);
}

.monleo-hero-title {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.15;
    margin: 0 0 14px;
    color: #F8FAFC;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.95), 0 0 20px rgba(212, 175, 55, 0.25);
}

.monleo-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--monleo-text-muted);
}

.monleo-hero-meta .meta-star {
    color: #D4AF37;
    font-weight: 800;
}

.monleo-hero-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #CBD5E1;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.monleo-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Nut Doc Ngay: Hoang Kim Co Hoa */
.btn-monleo-read-now {
    background: linear-gradient(135deg, #D4AF37 0%, #AA771C 100%);
    color: #0A0B0E !important;
    font-weight: 800;
    font-size: 14px;
    padding: 12px 28px;
    border-radius: var(--monleo-radius-sm);
    border: 1px solid #FDE68A;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--monleo-transition);
}

.btn-monleo-read-now:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #FDE68A 0%, #D4AF37 100%);
    box-shadow: 0 6px 26px rgba(212, 175, 55, 0.6);
    color: #0A0B0E !important;
}

.btn-monleo-bookmark {
    background: rgba(22, 25, 36, 0.85);
    border: 1px solid rgba(226, 232, 240, 0.18);
    color: #F8FAFC !important;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 22px;
    border-radius: var(--monleo-radius-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--monleo-transition);
}

.btn-monleo-bookmark:hover {
    background: rgba(30, 35, 50, 0.95);
    border-color: #D4AF37;
    color: #FDE68A !important;
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.25);
}

.btn-monleo-continue {
    background: linear-gradient(135deg, #10B981 0%, #047857 100%);
    color: #FFFFFF !important;
    font-weight: 800;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: var(--monleo-radius-sm);
    border: 1px solid #34D399;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--monleo-transition);
}

.btn-monleo-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.6);
    color: #FFFFFF !important;
}

/* ==========================================================================
   5. SECTION HEADINGS & BADGES (TIEN HIEP THUY MAC)
   ========================================================================== */
.monleo-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 35px 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, rgba(212, 175, 55, 0.6) 0%, rgba(226, 232, 240, 0.2) 40%, transparent 100%) 2;
}

.monleo-section-title {
    font-size: 21px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: #F8FAFC;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 15px rgba(212, 175, 55, 0.2);
}

.monleo-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 22px;
    background: linear-gradient(180deg, #FDE68A 0%, #D4AF37 100%);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

/* Link "Xem tat ca": Default #F8FAFC, Hover #D4AF37 */
.monleo-section-more {
    font-size: 13px;
    font-weight: 700;
    color: #F8FAFC;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--monleo-transition);
}

.monleo-section-more:hover {
    color: #D4AF37;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

/* ==========================================================================
   6. MANGA GRID & CARD COMPONENT (3:4 RATIO)
   ========================================================================== */
.monleo-manga-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

.monleo-manga-card {
    background: var(--monleo-surface);
    border: 1px solid var(--monleo-border);
    border-radius: var(--monleo-radius-md);
    overflow: hidden;
    transition: var(--monleo-transition);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

.monleo-manga-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.95), 0 0 20px rgba(212, 175, 55, 0.25);
}

.monleo-card-poster-wrap {
    display: block;
    position: relative;
    width: 100%;
    padding-top: 133.33%; /* 3:4 Aspect Ratio */
    background: #0A0B0E;
    overflow: hidden;
    cursor: pointer;
}

.monleo-card-poster-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 65%, rgba(10, 11, 14, 0.92) 100%);
    pointer-events: none;
}

.monleo-card-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.monleo-manga-card:hover .monleo-card-poster {
    transform: scale(1.05);
}

/* Badges on Poster (Lenh Bai Hoang Kim Luu Ly & Chu Sa An) */
.monleo-card-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
    pointer-events: none;
}

/* Badge TOP 1 - Hoang Kim Luu Ly */
.badge-rank-1,
.badge-rank.badge-rank-1 {
    background: linear-gradient(135deg, #BF953F 0%, #FCF6BA 50%, #B38728 100%) !important;
    color: #0A0B0E !important;
    font-weight: 900 !important;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 2px 10px rgba(191, 149, 63, 0.45);
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.badge-rank-2 {
    background: linear-gradient(135deg, #E2E8F0 0%, #94A3B8 100%) !important;
    color: #0A0B0E !important;
    font-weight: 900 !important;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.badge-rank-3 {
    background: linear-gradient(135deg, #B45309 0%, #78350F 100%) !important;
    color: #FFFBEB !important;
    font-weight: 900 !important;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 3px;
    border: 1px solid #D4AF37;
}

/* Badge VIP - Chu Sa An Chuong Co */
.badge-vip,
.badge-vip-mini {
    background: linear-gradient(135deg, #991B1B 0%, #DC2626 100%) !important;
    border: 1px solid #D4AF37 !important;
    color: #FFFBEB !important;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(153, 27, 27, 0.5), 0 0 4px rgba(212, 175, 55, 0.35) !important;
    letter-spacing: 0.5px;
}

.badge-free {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10B981;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
}

.badge-latest-chap {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(10, 11, 14, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(226, 232, 240, 0.15);
    color: #F8FAFC;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    z-index: 2;
}

.monleo-card-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Card Title: Default #F8FAFC, Hover #D4AF37 */
.monleo-card-title {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 6px;
    color: #F8FAFC;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
    transition: color 0.2s;
}

.monleo-manga-card:hover .monleo-card-title {
    color: #D4AF37;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
}

.monleo-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--monleo-text-subtle);
    margin-top: auto;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   7. VIP MEMBERSHIP (PHAM CANH, TIEN CANH, THAN CANH)
   ========================================================================== */
.monleo-vip-section {
    background-color: #0E1016;
    background-image: 
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(212, 175, 55, 0.08), transparent 70%),
        url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22400%22%20height%3D%22200%22%20viewBox%3D%220%200%20400%20200%22%3E%0A%20%20%3Cg%20stroke%3D%22rgba%28212%2C175%2C55%2C0.06%29%22%20stroke-width%3D%221.1%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%20%20%3Cpath%20d%3D%22M30%2C70%20C60%2C40%20100%2C40%20120%2C70%20C140%2C40%20180%2C40%20200%2C70%20C220%2C60%20250%2C70%20250%2C95%20C250%2C120%20220%2C130%20190%2C125%20C160%2C140%20110%2C140%2080%2C125%20C50%2C125%2030%2C105%2030%2C70%20Z%22%20/%3E%0A%20%20%20%20%3Cpath%20d%3D%22M90%2C100%20C110%2C85%20140%2C85%20160%2C100%20C170%2C90%20190%2C95%20195%2C105%22%20/%3E%0A%20%20%20%20%3Cpath%20d%3D%22M230%2C150%20C260%2C120%20300%2C120%20320%2C150%20C340%2C120%20380%2C120%20400%2C150%22%20/%3E%0A%20%20%20%20%3Cpath%20d%3D%22M10%2C170%20C40%2C140%2080%2C140%20100%2C170%22%20opacity%3D%220.5%22%20/%3E%0A%20%20%3C/g%3E%0A%3C/svg%3E");
    background-repeat: no-repeat, repeat;
    background-size: 100% 100%, 400px 200px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--monleo-radius-lg);
    padding: 36px 30px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.9), 0 0 25px rgba(212, 175, 55, 0.08);
}

.monleo-vip-header-box {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 30px;
}

.monleo-vip-badge-pill {
    display: inline-block;
    background: linear-gradient(135deg, #D4AF37 0%, #AA771C 100%);
    color: #0A0B0E;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: var(--monleo-radius-pill);
    margin-bottom: 10px;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
}

.monleo-vip-title {
    font-size: 26px;
    font-weight: 900;
    color: #F8FAFC;
    margin: 0 0 10px;
}

.monleo-vip-sub {
    font-size: 14px;
    color: var(--monleo-text-muted);
    line-height: 1.5;
}

.monleo-vip-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.monleo-vip-plan-card {
    background: #11141D;
    border: 1px solid var(--monleo-border);
    border-radius: var(--monleo-radius-md);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    transition: var(--monleo-transition);
}

/* 7.1. Pham Canh (Tier 1) */
.monleo-vip-plan-card.plan-tier-pham-canh {
    border: 1px solid rgba(148, 163, 184, 0.25) !important;
}
.monleo-vip-plan-card.plan-tier-pham-canh .plan-price {
    color: #E2E8F0 !important;
}
.monleo-vip-plan-card.plan-tier-pham-canh .btn-plan-checkout {
    background: #161924;
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #E2E8F0 !important;
}
.monleo-vip-plan-card.plan-tier-pham-canh:hover {
    border-color: rgba(148, 163, 184, 0.5) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 15px rgba(148, 163, 184, 0.2);
}

/* 7.2. Tien Canh (Tier 2 - Pho Bien Nhat) */
.monleo-vip-plan-card.plan-tier-tien-canh,
.monleo-vip-plan-card.featured {
    border: 1.5px solid #D4AF37 !important;
    box-shadow: 0 0 26px rgba(212, 175, 55, 0.25), inset 0 0 16px rgba(212, 175, 55, 0.04) !important;
    background: #141722 !important;
}
.monleo-vip-plan-card.plan-tier-tien-canh .plan-price,
.monleo-vip-plan-card.featured .plan-price {
    color: #D4AF37 !important;
}
.monleo-vip-plan-card.plan-tier-tien-canh .btn-plan-checkout,
.monleo-vip-plan-card.featured .btn-plan-checkout {
    background: linear-gradient(135deg, #D4AF37 0%, #B48811 100%) !important;
    color: #0A0B0E !important;
    border: none !important;
    font-weight: 900 !important;
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.4) !important;
}
.monleo-vip-plan-card.plan-tier-tien-canh:hover,
.monleo-vip-plan-card.featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.9), 0 0 35px rgba(212, 175, 55, 0.4) !important;
}

/* 7.3. Than Canh (Tier 3 - Toi Thuong Bach Ngoc) */
.monleo-vip-plan-card.plan-tier-than-canh {
    border: 1.5px solid rgba(226, 232, 240, 0.5) !important;
    box-shadow: 0 0 24px rgba(226, 232, 240, 0.18), inset 0 0 16px rgba(226, 232, 240, 0.03) !important;
    background: #11141D !important;
}
.monleo-vip-plan-card.plan-tier-than-canh .plan-price {
    color: #FEF08A !important;
    text-shadow: 0 0 10px rgba(254, 240, 138, 0.3);
}
.monleo-vip-plan-card.plan-tier-than-canh .btn-plan-checkout {
    background: #0A0B0E !important;
    border: 1.5px solid #D4AF37 !important;
    color: #FDE68A !important;
    font-weight: 800 !important;
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.25) !important;
}
.monleo-vip-plan-card.plan-tier-than-canh:hover {
    transform: translateY(-4px);
    border-color: rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.9), 0 0 30px rgba(226, 232, 240, 0.3) !important;
}

.plan-featured-ribbon {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #D4AF37 0%, #B48811 100%);
    color: #0A0B0E;
    font-size: 10px;
    font-weight: 900;
    padding: 2px 10px;
    border-radius: var(--monleo-radius-pill);
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.plan-name {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 8px;
    color: #F8FAFC;
}

.plan-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 16px;
}

.plan-price {
    font-size: 28px;
    font-weight: 900;
    color: #D4AF37;
}

.plan-period {
    font-size: 12px;
    color: var(--monleo-text-muted);
}

.plan-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    font-size: 13px;
    color: #CBD5E1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plan-features-list li::before {
    content: "✓";
    color: #D4AF37;
    font-weight: 700;
    margin-right: 8px;
}

.btn-plan-checkout {
    margin-top: auto;
    background: var(--monleo-surface-elevated);
    border: 1px solid var(--monleo-border);
    color: #FFFFFF !important;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: var(--monleo-radius-sm);
    text-decoration: none;
    transition: var(--monleo-transition);
}

.btn-plan-checkout:hover {
    filter: brightness(1.15);
}

/* ==========================================================================
   8. FOOTER STYLING
   ========================================================================== */
#footer {
    background: #07080A !important;
    border-top: 1px solid rgba(212, 175, 55, 0.25);
    padding-top: 40px;
    color: var(--monleo-text-muted);
}

.monleo-footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col-title {
    font-size: 15px;
    font-weight: 700;
    color: #F8FAFC;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
}

.footer-nav-list a {
    color: var(--monleo-text-muted);
    text-decoration: none;
}

.footer-nav-list a:hover {
    color: #D4AF37;
}

.footer-disclaimer-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(226, 232, 240, 0.08);
    border-radius: var(--monleo-radius-sm);
    padding: 12px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--monleo-text-subtle);
}

.monleo-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--monleo-text-subtle);
}

.payment-badges-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-badge-pill {
    background: #11141D;
    border: 1px solid rgba(226, 232, 240, 0.12);
    padding: 4px 10px;
    border-radius: var(--monleo-radius-sm);
    font-weight: 700;
    font-size: 11px;
    color: #94A3B8;
}

/* ==========================================================================
   9. MOBILE BOTTOM NAVIGATION BAR (FIXED TIÊN HIỆP DOCK)
   ========================================================================== */
.monleo-mobile-bottom-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: rgba(10, 11, 14, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.9), 0 0 15px rgba(212, 175, 55, 0.1);
    display: none; /* Desktop default: hidden */
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
    padding: 0 8px;
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: #94A3B8;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    min-width: 68px;
    height: 52px;
    padding: 4px 6px;
    border-radius: 6px;
    transition: all 0.22s ease;
}

.dock-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-bottom: 3px;
}

.dock-svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    transition: all 0.22s ease;
}

.dock-label {
    line-height: 1.2;
    transition: color 0.22s ease;
}

.dock-item:hover,
.dock-item.active {
    color: #FDE68A !important;
}

.dock-item:hover .dock-svg,
.dock-item.active .dock-svg {
    stroke: #D4AF37;
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.7));
    transform: scale(1.12);
}

.dock-item.dock-item-pvb.active .dock-svg {
    stroke: #FEF08A;
    filter: drop-shadow(0 0 8px rgba(254, 240, 138, 0.8));
}

/* ==========================================================================
   10. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
    .monleo-manga-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
    .monleo-vip-pricing-grid {
        grid-template-columns: 1fr;
    }
    .monleo-footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .monleo-manga-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .monleo-hero-spotlight {
        min-height: 340px;
    }
    .monleo-hero-content {
        padding: 20px;
        min-height: 340px;
    }
    .monleo-hero-title {
        font-size: 22px;
    }
    .monleo-hero-desc {
        display: none;
    }
    .btn-monleo-read-now {
        padding: 10px 18px;
        font-size: 13px;
        width: 100%;
    }
    .btn-monleo-bookmark {
        padding: 10px 18px;
        font-size: 13px;
        width: 100%;
    }
    .monleo-mobile-bottom-dock {
        display: flex;
    }
    body {
        padding-bottom: 60px;
    }
    .monleo-footer-content {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   11. COMMENTS & DISCUSSION STYLES (DARK MONOCHROME TIEN HIEP)
   ========================================================================== */
.monleo-comments-section {
    background: var(--monleo-surface);
    border: 1px solid var(--monleo-border);
    border-radius: var(--monleo-radius-lg);
    padding: 26px;
    margin-top: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.btn-monleo-submit-comment {
    background: linear-gradient(135deg, #D4AF37 0%, #AA771C 100%) !important;
    color: #0A0B0E !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    padding: 9px 24px !important;
    border-radius: var(--monleo-radius-sm) !important;
    border: 1px solid #FDE68A !important;
    cursor: pointer !important;
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.35) !important;
    transition: var(--monleo-transition) !important;
}

.btn-monleo-submit-comment:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.6) !important;
}

.monleo-comments-area textarea:focus,
.monleo-comments-area input[type="text"]:focus,
.monleo-comments-area input[type="email"]:focus {
    border-color: #D4AF37 !important;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3) !important;
}

/* ==========================================================================
   12. DEDICATED RANKING PAGE & PODIUM STYLES
   ========================================================================== */
.monleo-ranking-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--monleo-border);
}

.ranking-main-title {
    font-size: 28px;
    font-weight: 900;
    color: #F8FAFC;
    margin: 0 0 6px;
    letter-spacing: -0.5px;
}

.ranking-main-sub {
    font-size: 13.5px;
    color: var(--monleo-text-muted);
    margin: 0;
}

.ranking-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ranking-time-tabs,
.ranking-view-toggle {
    display: flex;
    background: var(--monleo-surface);
    border: 1px solid var(--monleo-border);
    border-radius: 9999px;
    padding: 3px;
    gap: 4px;
}

/* Filter Tabs on Ranking (Homepage & Dedicated Ranking Page) */
.monleo-rank-tab-btn,
.btn-rank-tab,
.btn-mode-toggle {
    background: #12141C !important;
    border: 1px solid rgba(226, 232, 240, 0.12) !important;
    color: #94A3B8 !important;
    padding: 7px 18px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--monleo-transition);
}

.monleo-rank-tab-btn:hover:not(.active),
.btn-rank-tab:hover:not(.active),
.btn-mode-toggle:hover:not(.active) {
    color: #F8FAFC !important;
    border-color: rgba(212, 175, 55, 0.35) !important;
}

.monleo-rank-tab-btn.active,
.btn-rank-tab.active,
.btn-mode-toggle.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(18, 20, 28, 0.95)) !important;
    border: 1px solid #D4AF37 !important;
    color: #FDE68A !important;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.25) !important;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

/* Podium (Top 3) */
.monleo-podium-section {
    margin: 10px 0 35px 0;
}

.monleo-podium-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 20px;
    align-items: end;
}

.monleo-podium-card {
    background: var(--monleo-surface);
    border: 1px solid var(--monleo-border);
    border-radius: var(--monleo-radius-lg);
    padding: 24px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
    transition: var(--monleo-transition);
}

.monleo-podium-card.podium-rank-1 {
    order: 2;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.14) 0%, #0F121A 100%);
    border: 2px solid #D4AF37;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.9), 0 0 30px rgba(212, 175, 55, 0.3);
    padding: 32px 22px;
}

.monleo-podium-card.podium-rank-2 {
    order: 1;
    background: linear-gradient(180deg, rgba(226, 232, 240, 0.08) 0%, #0F121A 100%);
    border: 1px solid #CBD5E1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}

.monleo-podium-card.podium-rank-3 {
    order: 3;
    background: linear-gradient(180deg, rgba(180, 83, 9, 0.1) 0%, #0F121A 100%);
    border: 1px solid #B45309;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}

.monleo-podium-card:hover {
    transform: translateY(-4px);
}

.podium-badge-pill {
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.badge-gold {
    background: linear-gradient(135deg, #BF953F 0%, #FCF6BA 50%, #B38728 100%);
    color: #0A0B0E;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.badge-silver {
    background: linear-gradient(135deg, #E2E8F0 0%, #94A3B8 100%);
    color: #0A0B0E;
}

.badge-bronze {
    background: linear-gradient(135deg, #B45309 0%, #78350F 100%);
    color: #FFFBEB;
}

.podium-poster-link {
    width: 130px;
    margin-bottom: 14px;
    display: block;
}

.podium-rank-1 .podium-poster-link {
    width: 160px;
}

.podium-poster-box {
    position: relative;
    width: 100%;
    padding-top: 133.33%;
    border-radius: var(--monleo-radius-md);
    overflow: hidden;
    border: 1px solid var(--monleo-border);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

.podium-poster-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.podium-card-title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 8px;
}

.podium-rank-1 .podium-card-title {
    font-size: 19px;
}

.podium-card-title a {
    color: #F8FAFC !important;
    text-decoration: none;
}

.podium-card-title a:hover {
    color: #D4AF37 !important;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.podium-card-meta {
    font-size: 12px;
    color: var(--monleo-text-muted);
    margin-bottom: 8px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.podium-card-meta .meta-star {
    color: #D4AF37;
    font-weight: 700;
}

.podium-card-meta .meta-views {
    color: #FDE68A;
    font-weight: 700;
}

.podium-card-desc {
    font-size: 12.5px;
    color: #CBD5E1;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-podium-action {
    display: inline-block;
    padding: 8px 18px;
    border-radius: var(--monleo-radius-sm);
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none;
    transition: var(--monleo-transition);
}

.btn-podium-action.btn-gold {
    background: linear-gradient(135deg, #D4AF37 0%, #AA771C 100%);
    color: #0A0B0E !important;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
}

.btn-podium-action.btn-silver {
    background: #1E2333;
    border: 1px solid rgba(226, 232, 240, 0.2);
    color: #F8FAFC !important;
}

.btn-podium-action.btn-bronze {
    background: #1E2333;
    border: 1px solid rgba(180, 83, 9, 0.35);
    color: #F8FAFC !important;
}

.btn-podium-action:hover {
    transform: translateY(-2px);
    color: #FDE68A !important;
}

/* Ranking Detailed List Rows */
.monleo-ranking-list-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.monleo-rank-row-item {
    background: var(--monleo-surface);
    border: 1px solid var(--monleo-border);
    border-radius: var(--monleo-radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    transition: var(--monleo-transition);
}

.monleo-rank-row-item:hover {
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateX(4px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.8), 0 0 15px rgba(212, 175, 55, 0.2);
}

.rank-row-number {
    font-size: 28px;
    font-weight: 900;
    color: #475569;
    flex: 0 0 42px;
    text-align: center;
    line-height: 1;
}

.rank-row-number.rank-gold {
    color: #D4AF37;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.rank-row-number.rank-silver {
    color: #CBD5E1;
}

.rank-row-number.rank-bronze {
    color: #B45309;
}

.rank-row-poster-wrap {
    flex: 0 0 72px;
    width: 72px;
    height: 96px;
    position: relative;
    border-radius: var(--monleo-radius-sm);
    overflow: hidden;
    border: 1px solid var(--monleo-border);
    display: block;
}

.rank-row-poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-row-info {
    flex: 1 1 auto;
    min-width: 0;
}

.rank-row-genres {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.rank-genre-tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.15);
    color: #CBD5E1;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
}

.rank-chap-tag {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #10B981;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
}

.rank-row-title {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 6px;
    line-height: 1.3;
}

.rank-row-title a {
    color: #F8FAFC !important;
    text-decoration: none;
}

.rank-row-title a:hover {
    color: #D4AF37 !important;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.rank-row-desc {
    font-size: 13px;
    color: #94A3B8;
    line-height: 1.45;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-row-submeta {
    font-size: 11.5px;
    color: var(--monleo-text-muted);
}

.rank-row-stats-action {
    flex: 0 0 170px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.rank-row-metrics {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 12.5px;
}

.metric-rating {
    color: #D4AF37;
    font-weight: 700;
}

.metric-views {
    color: #FDE68A;
    font-weight: 700;
}

.rank-row-buttons {
    display: flex;
    gap: 8px;
}

.btn-rank-read {
    background: linear-gradient(135deg, #D4AF37 0%, #AA771C 100%);
    color: #0A0B0E !important;
    font-weight: 800;
    font-size: 12px;
    padding: 7px 16px;
    border-radius: var(--monleo-radius-sm);
    border: 1px solid #FDE68A;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
    text-decoration: none;
    transition: var(--monleo-transition);
}

.btn-rank-read:hover {
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.6);
    color: #0A0B0E !important;
}

.btn-rank-detail {
    background: var(--monleo-surface-elevated);
    border: 1px solid var(--monleo-border);
    color: #CBD5E1 !important;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: var(--monleo-radius-sm);
    text-decoration: none;
    transition: var(--monleo-transition);
}

.btn-rank-detail:hover {
    border-color: #D4AF37;
    color: #FDE68A !important;
}

/* ==========================================================================
   13. CHAPTER CARD & READ STATUS (DARKENED / GRAYED-OUT TIEN HIEP)
   ========================================================================== */
.monleo-chapter-card {
    background: #10121A;
    border: 1px solid var(--monleo-border);
    border-radius: var(--monleo-radius-sm);
    padding: 13px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: var(--monleo-transition);
}

.monleo-chapter-card:hover {
    background: #161924;
    border-color: rgba(212, 175, 55, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7), 0 0 14px rgba(212, 175, 55, 0.25);
}

.monleo-chapter-card.is-read {
    background: #08090C !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    opacity: 0.6;
    box-shadow: none !important;
}

.monleo-chapter-card.is-read .chapter-card-title {
    color: #64748B !important;
}

.monleo-chapter-card.is-read .chapter-card-time {
    color: #475569 !important;
}

.monleo-chapter-card.is-read:hover {
    opacity: 0.95;
    border-color: rgba(212, 175, 55, 0.3) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6) !important;
}

.badge-read-status {
    display: inline-block;
    background: rgba(100, 116, 139, 0.2);
    color: #94A3B8;
    border: 1px solid rgba(100, 116, 139, 0.3);
    font-size: 10px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 9999px;
}

/* ==========================================================================
   14. THE NGOC GIAN & SPECIALIZED TIEN HIEP COMPONENTS
   ========================================================================== */
/* The Ngoc Gian (Pill Tags theo dung yeu cau) */
.monleo-genre-pill {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    margin: 4px 6px !important;
    padding: 5px 12px !important;
    border-radius: 4px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(226, 232, 240, 0.15) !important;
    color: #CBD5E1 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.monleo-genre-pill:hover {
    border-color: #D4AF37 !important;
    color: #FDE68A !important;
    background: rgba(212, 175, 55, 0.08) !important;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.25) !important;
    transform: translateY(-1px) !important;
}

.monleo-genre-pill .genre-hash {
    color: #D4AF37 !important;
    font-weight: 700 !important;
}

.monleo-genre-pill .genre-count {
    font-size: 11px !important;
    color: #94A3B8 !important;
    background: rgba(255, 255, 255, 0.06) !important;
    padding: 1px 6px !important;
    border-radius: 3px !important;
    margin-left: 2px !important;
}
.monleo-genre-pill:hover .genre-count {
    color: #FDE68A !important;
    background: rgba(212, 175, 55, 0.15) !important;
}

/* Genre Tag on Series Detail */
.monleo-tag-genre {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(226, 232, 240, 0.18) !important;
    color: #CBD5E1 !important;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 4px;
    text-decoration: none;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    transition: var(--monleo-transition);
}

.monleo-tag-genre:hover {
    background: rgba(212, 175, 55, 0.1) !important;
    border-color: #D4AF37 !important;
    color: #FDE68A !important;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

/* Detail Page Hero & Sections */
.monleo-detail-hero {
    background: rgba(16, 18, 26, 0.9) !important;
    border: 1px solid rgba(212, 175, 55, 0.25) !important;
    border-radius: var(--monleo-radius-md);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.9), 0 0 25px rgba(212, 175, 55, 0.08);
}

.monleo-chapter-section {
    background: var(--monleo-surface);
    border: 1px solid var(--monleo-border) !important;
    border-radius: var(--monleo-radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

/* Reader Comments Box */
.monleo-reader-comments-section {
    background: var(--monleo-surface) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.9), 0 0 25px rgba(212, 175, 55, 0.1) !important;
}

/* Webtoon Reader Theme Override (Huyen Mac Doc Truyen) */
#manga-reader-app.manga-reader-theme-dark {
    --bg-dark: #0A0B0E !important;
    --bg-card: #10121A !important;
    --bg-bar: #0E1016 !important;
    --border-color: rgba(226, 232, 240, 0.15) !important;
    --primary-gold: #D4AF37 !important;
    --accent-emerald: #10B981 !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.95), 0 0 25px rgba(212, 175, 55, 0.1) !important;
}

#manga-reader-app .mr-header {
    background: #0E1016 !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25) !important;
}

#manga-reader-app .mr-chapter-title {
    color: #F8FAFC !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9) !important;
}

#manga-reader-app .mr-btn {
    background: #161924 !important;
    border: 1px solid rgba(226, 232, 240, 0.15) !important;
    color: #F8FAFC !important;
    transition: all 0.2s !important;
}

#manga-reader-app .mr-btn:hover:not(.mr-btn-disabled) {
    background: linear-gradient(135deg, #D4AF37 0%, #AA771C 100%) !important;
    border-color: #FDE68A !important;
    color: #0A0B0E !important;
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.4) !important;
}

#manga-reader-app .mr-select {
    background: #10121A !important;
    border: 1px solid rgba(226, 232, 240, 0.18) !important;
    color: #F8FAFC !important;
}

#manga-reader-app .mr-footer {
    background: #0E1016 !important;
    border-top: 1px solid rgba(212, 175, 55, 0.25) !important;
}


/* ==========================================================================

   15. BAO CHAP (CROWDFUNDED CHAPTER STORM) COMPONENT

   ========================================================================== */

.monleo-baochap-card {

    background: #0E1016;

    border: 1.5px solid rgba(212, 175, 55, 0.4);

    border-radius: var(--monleo-radius-lg);

    padding: 24px 26px;

    margin: 25px auto 35px;

    max-width: 900px;

    position: relative;

    overflow: hidden;

    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.85), 0 0 20px rgba(212, 175, 55, 0.12);

    background-image: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(212, 175, 55, 0.08), transparent 70%);

}



.monleo-baochap-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    flex-wrap: wrap;

    gap: 12px;

    margin-bottom: 18px;

    border-bottom: 1px solid rgba(212, 175, 55, 0.2);

    padding-bottom: 14px;

}



.monleo-baochap-badge {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    background: linear-gradient(135deg, #991B1B 0%, #DC2626 100%);

    border: 1px solid #D4AF37;

    color: #FFFBEB;

    font-size: 11px;

    font-weight: 800;

    padding: 3px 12px;

    border-radius: var(--monleo-radius-pill);

    text-transform: uppercase;

    letter-spacing: 0.8px;

    box-shadow: 0 0 10px rgba(220, 38, 38, 0.4), 0 0 4px rgba(212, 175, 55, 0.4);

    margin-bottom: 8px;

}



.monleo-baochap-title {

    font-size: 20px;

    font-weight: 900;

    color: #F8FAFC;

    margin: 0 0 4px;

    letter-spacing: -0.01em;

}



.monleo-baochap-subtitle {

    font-size: 13px;

    color: #CBD5E1;

    margin: 0;

}



.monleo-baochap-status-tag {

    font-size: 11.5px;

    font-weight: 700;

    padding: 4px 12px;

    border-radius: var(--monleo-radius-pill);

    background: rgba(212, 175, 55, 0.15);

    border: 1px solid rgba(212, 175, 55, 0.4);

    color: #FDE68A;

    box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);

}



.monleo-baochap-status-tag.status-reached {

    background: rgba(16, 185, 129, 0.2);

    border-color: #10B981;

    color: #34D399;

    box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);

}



/* Progress Bar */

.monleo-baochap-progress-wrap {

    margin-bottom: 18px;

}



.baochap-bar-track {

    width: 100%;

    height: 22px;

    background: #08090C;

    border-radius: 9999px;

    overflow: hidden;

    position: relative;

    border: 1px solid rgba(212, 175, 55, 0.3);

    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.9);

}



.baochap-bar-fill {

    height: 100%;

    background: linear-gradient(90deg, #996515 0%, #D4AF37 50%, #FDE68A 100%);

    border-radius: 9999px;

    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);

    position: relative;

    box-shadow: 0 0 14px rgba(212, 175, 55, 0.5);

}



.baochap-bar-fill::after {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);

    animation: baochapShimmer 2.2s infinite;

}



@keyframes baochapShimmer {

    0% { transform: translateX(-100%); }

    100% { transform: translateX(100%); }

}



.baochap-bar-text {

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 11px;

    font-weight: 800;

    color: #0A0B0E;

    text-shadow: 0 0 2px rgba(255, 255, 255, 0.4);

    letter-spacing: 0.5px;

    pointer-events: none;

    z-index: 2;

}



/* Stats Row */

.monleo-baochap-stats-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 12px;

    margin-bottom: 18px;

}



.baochap-stat-box {

    background: #12141D;

    border: 1px solid rgba(226, 232, 240, 0.1);

    border-radius: var(--monleo-radius-sm);

    padding: 10px 14px;

    text-align: center;

}



.baochap-stat-label {

    font-size: 11px;

    color: var(--monleo-text-muted);

    margin-bottom: 3px;

    text-transform: uppercase;

    letter-spacing: 0.5px;

}



.baochap-stat-value {

    font-size: 15px;

    font-weight: 800;

    color: #F8FAFC;

}



.baochap-stat-value.gold {

    color: #D4AF37;

    text-shadow: 0 0 8px rgba(212, 175, 55, 0.35);

}

.baochap-stat-value.highlight {

    color: #FDE68A;

}



/* Call to Action Bar */

.monleo-baochap-cta-bar {

    display: flex;

    align-items: center;

    justify-content: space-between;

    flex-wrap: wrap;

    gap: 14px;

    background: rgba(18, 20, 28, 0.7);

    border: 1px solid rgba(212, 175, 55, 0.2);

    border-radius: var(--monleo-radius-sm);

    padding: 12px 18px;

}



.baochap-note-text {

    font-size: 13px;

    color: #CBD5E1;

    font-style: italic;

    flex: 1 1 300px;

    line-height: 1.5;

}



.btn-monleo-baochap-donate {

    background: linear-gradient(135deg, #D4AF37 0%, #AA771C 100%);

    color: #0A0B0E !important;

    font-weight: 900;

    font-size: 13.5px;

    padding: 10px 22px;

    border-radius: var(--monleo-radius-sm);

    border: 1px solid #FDE68A;

    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35);

    cursor: pointer;

    text-decoration: none;

    display: inline-flex;

    align-items: center;

    gap: 8px;

    transition: var(--monleo-transition);

}



.btn-monleo-baochap-donate:hover {

    transform: translateY(-2px);

    background: linear-gradient(135deg, #FDE68A 0%, #D4AF37 100%);

    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.6);

    color: #0A0B0E !important;

}



/* Interactive VietQR Modal */

.monleo-modal-backdrop {

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.85);

    backdrop-filter: blur(8px);

    -webkit-backdrop-filter: blur(8px);

    display: none;

    align-items: center;

    justify-content: center;

    z-index: 99999;

    padding: 20px;

}



.monleo-modal-backdrop.is-active {

    display: flex;

}



.monleo-baochap-modal {

    background: #0E1016;

    border: 1.5px solid #D4AF37;

    border-radius: var(--monleo-radius-lg);

    max-width: 520px;

    width: 100%;

    padding: 26px;

    position: relative;

    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.95), 0 0 30px rgba(212, 175, 55, 0.25);

    animation: baochapModalPop 0.25s ease-out;

}



@keyframes baochapModalPop {

    from { opacity: 0; transform: scale(0.95); }

    to { opacity: 1; transform: scale(1); }

}



.baochap-modal-close {

    position: absolute;

    top: 14px;

    right: 14px;

    background: #1A1E29;

    border: 1px solid rgba(226, 232, 240, 0.15);

    color: #CBD5E1;

    font-size: 16px;

    width: 32px;

    height: 32px;

    border-radius: 9999px;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    transition: all 0.2s;

}



.baochap-modal-close:hover {

    color: #FDE68A;

    border-color: #D4AF37;

}



.baochap-quick-amounts {

    display: flex;

    gap: 8px;

    flex-wrap: wrap;

    margin: 14px 0 18px;

}



.btn-amount-pill {

    background: #141722;

    border: 1px solid rgba(226, 232, 240, 0.15);

    color: #CBD5E1;

    font-size: 12.5px;

    font-weight: 700;

    padding: 6px 14px;

    border-radius: var(--monleo-radius-sm);

    cursor: pointer;

    transition: all 0.2s;

}



.btn-amount-pill:hover,

.btn-amount-pill.active {

    background: rgba(212, 175, 55, 0.15);

    border-color: #D4AF37;

    color: #FDE68A;

    box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);

}



.baochap-qr-center {

    display: flex;

    flex-direction: column;

    align-items: center;

    margin-bottom: 18px;

}



.baochap-qr-frame {

    background: #FFFFFF;

    padding: 10px;

    border-radius: var(--monleo-radius-md);

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8);

    display: inline-block;

    border: 2px solid #D4AF37;

}



.baochap-qr-img {

    width: 220px;

    height: 220px;

    object-fit: contain;

    display: block;

}



.baochap-info-rows {

    background: #12141D;

    border: 1px solid rgba(226, 232, 240, 0.12);

    border-radius: var(--monleo-radius-sm);

    padding: 12px 16px;

    font-size: 13px;

    display: flex;

    flex-direction: column;

    gap: 8px;

}



.baochap-info-row {

    display: flex;

    justify-content: space-between;

    align-items: center;

    color: #CBD5E1;

}



.baochap-info-row strong {

    color: #F8FAFC;

}



.btn-copy-chip {

    background: rgba(212, 175, 55, 0.15);

    border: 1px solid rgba(212, 175, 55, 0.35);

    color: #FDE68A;

    font-size: 11px;

    font-weight: 700;

    padding: 2px 8px;

    border-radius: 4px;

    cursor: pointer;

    margin-left: 6px;

    transition: all 0.2s;

}



.btn-copy-chip:hover {

    background: #D4AF37;

    color: #0A0B0E;

}



@media (max-width: 768px) {

    .monleo-baochap-stats-grid {

        grid-template-columns: repeat(2, 1fr);

        gap: 8px;

    }

    .monleo-baochap-cta-bar {

        flex-direction: column;

        align-items: stretch;

        text-align: center;

    }

    .btn-monleo-baochap-donate {

        justify-content: center;

        width: 100%;

    }

}


/* ==========================================================================
   20. TIÊN HIỆP LIVE SEARCH DROPDOWN, FOLLOW BUTTON & ĐẠO CƠ DASHBOARD
   ========================================================================== */

/* 20.1. Live Search Dropdown */
.monleo-live-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999999;
    margin-top: 6px;
    background: #12151C;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 10px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.85), 0 0 15px rgba(212, 175, 55, 0.18);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.live-search-list {
    display: flex;
    flex-direction: column;
    max-height: 380px;
    overflow-y: auto;
}

.live-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    transition: all 0.2s ease;
}

.live-search-item:hover {
    background: rgba(212, 175, 55, 0.12);
    padding-left: 18px;
}

.live-thumb {
    width: 44px;
    height: 58px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    flex-shrink: 0;
}

.live-thumb-ph {
    width: 44px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1A1D26;
    border-radius: 4px;
    font-size: 22px;
    flex-shrink: 0;
}

.live-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.live-title {
    font-weight: 600;
    font-size: 14px;
    color: #F8FAFC;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-chap {
    font-size: 12px;
    color: #D4AF37;
}

.live-search-empty {
    padding: 18px;
    text-align: center;
    font-size: 13px;
    color: #94A3B8;
}

.live-search-view-all {
    display: block;
    padding: 11px 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #D4AF37;
    background: rgba(212, 175, 55, 0.08);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    text-decoration: none;
    transition: all 0.2s;
}

.live-search-view-all:hover {
    background: #D4AF37;
    color: #0A0B0E;
}

/* 20.2. Bookmark / Follow Button in Single Manga */
.btn-monleo-follow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: #FDE68A;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-monleo-follow:hover {
    background: rgba(212, 175, 55, 0.25);
    border-color: #D4AF37;
    color: #FFFFFF;
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.35);
    transform: translateY(-1px);
}

.btn-monleo-follow.following {
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    border: 1px solid #FDE68A;
    color: #0A0B0E;
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
}

.btn-monleo-follow.following:hover {
    filter: brightness(1.15);
}

/* 20.3. Đạo Cơ Account Dashboard Shortcode ([monleo_dao_co]) */
.monleo-daoco-dashboard {
    max-width: 1080px;
    margin: 10px auto 40px;
    padding: 0 15px;
}

/* Profile Header Card */
.daoco-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, rgba(22, 25, 35, 0.95) 0%, rgba(14, 16, 22, 0.95) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.daoco-profile-main {
    display: flex;
    align-items: center;
    gap: 20px;
}

.daoco-avatar-wrap {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #D4AF37, #93732A);
    flex-shrink: 0;
}

.daoco-avatar-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.daoco-avatar-guest {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #1A1D26;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.daoco-vip-badge-mini {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: linear-gradient(135deg, #D4AF37, #B8860B);
    color: #0A0B0E;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid #FFFFFF;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.daoco-user-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.daoco-user-name {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #F8FAFC;
    letter-spacing: 0.5px;
}

.daoco-user-pills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.daoco-tier-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.daoco-tier-pill.tier-than-canh {
    background: linear-gradient(135deg, #FF4500, #FFD700);
    color: #0A0B0E;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}

.daoco-tier-pill.tier-tien-canh {
    background: linear-gradient(135deg, #D4AF37, #F59E0B);
    color: #0A0B0E;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.daoco-tier-pill.tier-pham-canh {
    background: linear-gradient(135deg, #3B82F6, #60A5FA);
    color: #FFFFFF;
}

.daoco-tier-pill.tier-pham-nhan {
    background: rgba(255, 255, 255, 0.1);
    color: #CBD5E1;
}

.daoco-email-pill {
    font-size: 11px;
    color: #94A3B8;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 10px;
    border-radius: 20px;
}

.daoco-joined-text {
    margin: 0;
    font-size: 12px;
    color: #94A3B8;
}

.daoco-header-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    flex-shrink: 0;
}

.btn-daoco-logout {
    font-size: 12px;
    color: #EF4444;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    transition: all 0.2s;
}

.btn-daoco-logout:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #EF4444;
}

/* Stats Grid */
.daoco-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.daoco-stat-box {
    background: rgba(22, 25, 35, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(6px);
}

.stat-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 22px;
    font-weight: 800;
    color: #F8FAFC;
}

.stat-label {
    font-size: 12px;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Navigation Tabs */
.daoco-nav-tabs {
    display: flex;
    gap: 10px;
    margin: 28px 0 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 12px;
    overflow-x: auto;
}

.daoco-tab-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94A3B8;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.daoco-tab-btn:hover {
    color: #F8FAFC;
    background: rgba(255, 255, 255, 0.08);
}

.daoco-tab-btn.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.08) 100%);
    border-color: #D4AF37;
    color: #FDE68A;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
}

/* Tab Panes */
.daoco-tab-pane {
    display: none;
}

.daoco-tab-pane.active {
    display: block;
    animation: daocoFadeIn 0.25s ease;
}

@keyframes daocoFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Manga Cards Grid */
.daoco-manga-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
}

.daoco-card-item {
    background: rgba(22, 25, 35, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.daoco-card-item:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.15);
}

.daoco-card-item .card-thumb-wrap {
    position: relative;
    width: 100%;
    padding-top: 135%;
    overflow: hidden;
    background: #0E1016;
}

.daoco-card-item .card-thumb-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.daoco-card-item:hover .card-thumb-wrap img {
    transform: scale(1.05);
}

.card-chap-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(10, 11, 14, 0.85);
    color: #FDE68A;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(4px);
}

.daoco-card-item .card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
    gap: 8px;
}

.card-manga-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-manga-title a {
    color: #F8FAFC;
    text-decoration: none;
    transition: color 0.2s;
}

.card-manga-title a:hover {
    color: #D4AF37;
}

.card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
}

.btn-card-read {
    flex: 1;
    text-align: center;
    padding: 6px 10px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #FDE68A;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-card-read:hover {
    background: #D4AF37;
    color: #0A0B0E;
}

.btn-card-unfollow {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #EF4444;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-card-unfollow:hover {
    background: #EF4444;
    color: #FFFFFF;
}

/* Empty State */
.daoco-empty-state {
    text-align: center;
    padding: 50px 20px;
    background: rgba(22, 25, 35, 0.5);
    border: 1px dashed rgba(212, 175, 55, 0.25);
    border-radius: 12px;
}

.empty-emoji {
    font-size: 44px;
    display: block;
    margin-bottom: 12px;
}

.daoco-empty-state h3 {
    font-size: 18px;
    color: #F8FAFC;
    margin: 0 0 8px;
}

.daoco-empty-state p {
    font-size: 14px;
    color: #94A3B8;
    margin: 0 0 20px;
}

.btn-clear-history {
    background: none;
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #EF4444;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-clear-history:hover {
    background: rgba(239, 68, 68, 0.15);
}

/* Account Management Form */
.daoco-account-form-inner {
    max-width: 680px;
    margin: 0 auto;
}

.daoco-form-box {
    background: rgba(22, 25, 35, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

.form-box-title {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    color: #FDE68A;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}

.form-row-daoco {
    margin-bottom: 14px;
}

.form-row-daoco label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #CBD5E1;
    margin-bottom: 6px;
}

.form-row-daoco input {
    width: 100%;
    background: #0A0B0E;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #F8FAFC;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-row-daoco input:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
}

.daoco-feedback-box {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 16px;
}

.daoco-feedback-box.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10B981;
    color: #10B981;
}

.daoco-feedback-box.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #EF4444;
    color: #EF4444;
}

/* Mobile Responsiveness for Đạo Cơ */
@media (max-width: 768px) {
    .daoco-profile-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .daoco-header-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: row;
    }

    .daoco-header-actions a {
        flex: 1;
        text-align: center;
        justify-content: center;
    }

    .daoco-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .daoco-stat-box {
        padding: 12px 8px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px;
    }

    .stat-number {
        font-size: 18px;
    }

    .stat-label {
        font-size: 10px;
    }

    .daoco-manga-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .daoco-form-box {
        padding: 16px;
    }
}


/* ==========================================================================
   21. TIÊN HIỆP CUSTOM FOOTER & VIETCOMBANK QR DONATE MODAL
   ========================================================================== */

/* 21.1. Main Footer Shell */
.monleo-custom-footer {
    background: #080A0E !important;
    border-top: 1px solid rgba(212, 175, 55, 0.35) !important;
    padding-top: 50px;
    padding-bottom: 25px;
    color: #94A3B8;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
}

.monleo-custom-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
    opacity: 0.8;
}

.monleo-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* 21.2. Footer 4-Column Grid */
.monleo-footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1.2fr 1.6fr;
    gap: 36px;
    margin-bottom: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

/* 21.3. Left Column: Brand & Intro */
.monleo-footer-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 16px;
    transition: transform 0.25s ease;
}

.monleo-footer-brand-logo:hover {
    transform: translateY(-2px);
}

.brand-crest {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #D4AF37 0%, #8A6D1C 100%);
    border: 1px solid #FDE68A;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
    flex-shrink: 0;
}

.crest-symbol {
    font-size: 24px;
    font-weight: 900;
    color: #0A0B0E;
    line-height: 1;
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-main {
    font-size: 20px;
    font-weight: 800;
    color: #F8FAFC;
    letter-spacing: 1px;
    line-height: 1.15;
}

.brand-glow {
    color: #D4AF37;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.brand-sub {
    font-size: 10.5px;
    font-weight: 700;
    color: #94A3B8;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 2px;
}

.monleo-footer-intro {
    font-size: 13.5px;
    line-height: 1.65;
    color: #CBD5E1;
    margin: 0 0 14px 0;
    font-style: italic;
    border-left: 2px solid #D4AF37;
    padding-left: 12px;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.08) 0%, transparent 100%);
    border-radius: 0 6px 6px 0;
    padding-top: 6px;
    padding-bottom: 6px;
}

.monleo-footer-mission {
    font-size: 12.5px;
    line-height: 1.5;
    color: #94A3B8;
    margin-bottom: 20px;
}

.mission-sparkle {
    color: #D4AF37;
    font-weight: 800;
    margin-right: 4px;
}

/* 21.4. Social Media Links Group */
.monleo-footer-social-wrap {
    margin-top: auto;
}

.social-label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: #D4AF37;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.social-links-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #CBD5E1;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.social-link-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.social-link-item.social-fb:hover {
    background: #1877F2;
    border-color: #1877F2;
    color: #FFFFFF;
    box-shadow: 0 0 14px rgba(24, 119, 242, 0.45);
}

.social-link-item.social-ig:hover {
    background: linear-gradient(45deg, #F09433, #E6683C, #DC2743, #CC2366, #BC1888);
    border-color: transparent;
    color: #FFFFFF;
    box-shadow: 0 0 14px rgba(220, 39, 67, 0.45);
}

.social-link-item.social-tt:hover {
    background: #000000;
    border-color: #00F2FE;
    color: #FFFFFF;
    box-shadow: 0 0 14px rgba(0, 242, 254, 0.45);
}

.social-link-item.social-yt:hover {
    background: #FF0000;
    border-color: #FF0000;
    color: #FFFFFF;
    box-shadow: 0 0 14px rgba(255, 0, 0, 0.45);
}

/* 21.5. Navigation Columns */
.footer-title {
    font-size: 14px;
    font-weight: 700;
    color: #F8FAFC;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 18px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.title-decor {
    font-size: 16px;
}

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

.footer-menu li a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.footer-menu li a::before {
    content: '›';
    margin-right: 6px;
    color: rgba(212, 175, 55, 0.4);
    font-size: 14px;
    transition: transform 0.2s;
}

.footer-menu li a:hover {
    color: #FDE68A;
    padding-left: 4px;
}

.footer-menu li a:hover::before {
    color: #D4AF37;
    transform: translateX(2px);
}

/* 21.6. Donate / QR Column */
.footer-donate-card {
    background: rgba(22, 25, 35, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    padding: 16px;
    backdrop-filter: blur(8px);
}

.donate-card-text {
    font-size: 12.5px;
    line-height: 1.55;
    color: #CBD5E1;
    margin: 0 0 14px 0;
}

.btn-footer-open-qr {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 10px 44px 10px 16px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(184, 134, 11, 0.2) 100%);
    border: 1px solid #D4AF37;
    color: #FDE68A;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-transform: none;
    letter-spacing: 0.2px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.15);
    -webkit-tap-highlight-color: transparent;
}

.btn-footer-open-qr:hover {
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    color: #0A0B0E;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    transform: translateY(-1px);
}

.btn-qr-icon {
    font-size: 16px;
}

.btn-qr-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-qr-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    font-size: 16px;
    line-height: 1;
    transform: translateY(-50%);
    transition: transform 0.2s;
}

.btn-footer-open-qr:hover .btn-qr-arrow {
    transform: translate(3px, -50%);
}

.footer-payment-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.pay-tag-pill {
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-vietqr {
    background: rgba(56, 189, 248, 0.12);
    color: #38BDF8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.tag-napas {
    background: rgba(16, 185, 129, 0.12);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.tag-sepay {
    background: rgba(245, 158, 11, 0.12);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* 21.7. Footer Bottom Bar */
.monleo-footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #64748B;
    flex-wrap: wrap;
    gap: 12px;
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-links a {
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.2s;
}

.legal-links a:hover {
    color: #D4AF37;
}

.legal-links .sep {
    color: #475569;
}

/* 21.8. VIETCOMBANK QR DONATE MODAL (POPUP) */
.monleo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.monleo-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 7, 10, 0.88);
    backdrop-filter: blur(8px);
}

.monleo-modal-dialog {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    background: linear-gradient(150deg, #151821 0%, #0C0E14 100%);
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(212, 175, 55, 0.25);
    padding: 24px 22px;
    max-height: 92vh;
    overflow-y: auto;
    animation: monleoModalSlideIn 0.25s ease-out;
}

@keyframes monleoModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.btn-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    color: #94A3B8;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-modal-close:hover {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.15);
}

.monleo-modal-header {
    text-align: center;
    margin-bottom: 18px;
}

.modal-header-icon {
    font-size: 32px;
    margin-bottom: 6px;
}

.modal-header-title {
    font-size: 18px;
    font-weight: 800;
    color: #FDE68A;
    margin: 0 0 6px 0;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.modal-header-sub {
    font-size: 12px;
    line-height: 1.5;
    color: #94A3B8;
    margin: 0;
}

.modal-qr-preview-box {
    background: #0A0B0E;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6);
}

.modal-qr-image {
    max-width: 260px;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.modal-bank-info-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 14px;
}

.bank-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
}

.bank-info-row .info-label {
    color: #94A3B8;
    font-weight: 500;
}

.bank-info-row .info-val {
    color: #F8FAFC;
    font-weight: 600;
    text-align: right;
}

.bank-info-row .val-name {
    color: #FDE68A;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.bank-info-row.row-account-number {
    background: rgba(212, 175, 55, 0.08);
    margin: -4px -6px;
    padding: 8px 6px;
    border-radius: 6px;
}

.info-val-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.val-number {
    font-size: 16px;
    font-weight: 800;
    color: #38BDF8;
    letter-spacing: 1px;
}

.btn-copy-acc {
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.45);
    color: #FDE68A;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy-acc:hover {
    background: #D4AF37;
    color: #0A0B0E;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.val-msg {
    color: #A7F3D0;
    font-family: monospace;
    font-size: 12px;
}

.modal-thankyou-msg {
    text-align: center;
    font-size: 12px;
    color: #FDE68A;
    margin: 0 0 16px 0;
    font-style: italic;
}

.btn-modal-dismiss {
    width: 100%;
    padding: 11px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #CBD5E1;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-modal-dismiss:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
}

/* 21.9. Footer Responsive Breakpoints */
@media (max-width: 991px) {
    .monleo-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-col-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .monleo-custom-footer {
        padding-top: 36px;
        padding-bottom: 105px !important; /* Avoid overlap with mobile bottom dock */
    }

    .monleo-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-col-brand {
        grid-column: span 1;
    }

    .social-links-row {
        gap: 8px;
    }

    .social-link-item {
        padding: 6px 12px;
        font-size: 11px;
    }

    .monleo-footer-bottom-bar {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .modal-qr-image {
        max-width: 220px;
    }

    .bank-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .bank-info-row.row-account-number {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}


/* 21.9b. Responsive polish: donate card, buttons, modal (v2) */
.monleo-footer-grid > .footer-col { min-width: 0; }
.footer-donate-card { box-sizing: border-box; }
.btn-modal-dismiss, .btn-copy-acc, .btn-modal-close { min-height: 40px; box-sizing: border-box; }
.btn-copy-acc { white-space: nowrap; }
.bank-info-row .info-val { overflow-wrap: anywhere; }
.monleo-modal-dialog { box-sizing: border-box; }
.legal-links { flex-wrap: wrap; justify-content: center; }

@media (max-width: 991px) {
    .footer-col-donate { grid-column: span 2; }
    .footer-donate-card { max-width: 520px; }
}

@media (max-width: 768px) {
    .footer-col-donate { grid-column: span 1; }
    .footer-donate-card { max-width: none; padding: 14px; }
    .btn-footer-open-qr { min-height: 48px; font-size: 14.5px; }
    .footer-payment-tags { justify-content: flex-start; }
    .monleo-modal-overlay { padding: 12px; align-items: flex-end; }
    .monleo-modal-dialog { max-width: 100%; padding: 20px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 18px 18px 14px 14px; max-height: 94vh; }
    .btn-modal-close { top: 8px; right: 8px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
    .modal-header-title { font-size: 16px; padding: 0 28px; }
    .bank-info-row .info-val { text-align: left; }
    .bank-info-row.row-account-number { padding: 8px; margin: -4px -4px; gap: 8px; }
    .val-number { font-size: 15px; letter-spacing: 0.5px; }
}

@media (max-width: 380px) {
    .btn-footer-open-qr { font-size: 13.5px; padding-left: 12px; padding-right: 38px; }
    .btn-qr-arrow { right: 12px; }
    .pay-tag-pill { font-size: 10px; padding: 3px 6px; }
}

/* 21.10. Avatar Upload in Đạo Cơ Dashboard */
.daoco-avatar-upload-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.daoco-avatar-preview-wrap {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #D4AF37;
    background: #11141D;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

.daoco-avatar-preview-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.daoco-avatar-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.btn-daoco-choose-avatar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid #D4AF37;
    color: #FDE68A;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.btn-daoco-choose-avatar:hover {
    background: #D4AF37;
    color: #0A0B0E;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.daoco-avatar-filename {
    font-size: 12px;
    color: #10B981;
    font-weight: 600;
}

.daoco-avatar-hint {
    font-size: 11.5px;
    color: #94A3B8;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .daoco-avatar-upload-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
}


/* ==========================================================================
   22. TYPOGRAPHY (CORMORANT GARAMOND & QUICKSAND), DROPDOWN, FORMS & RESPONSIVE
   ========================================================================== */

/* 22.1. Phông Mảnh Thanh Thoát Cho Văn Bản Thường, Nhập Liệu & Danh Sách */
body, p, li, input, button, select, textarea, label, .nav-dropdown > li > a {
    font-family: 'Quicksand', sans-serif !important;
    font-weight: 400 !important;
    letter-spacing: 0.4px !important;
}

/* Phông nghệ thuật thanh-đậm cổ phong cho Tiêu đề (H1-H4) & Menu chính */
h1, h2, h3, h4, 
#header .nav > li > a,
.woocommerce-EditAccountForm fieldset legend {
    font-family: 'Cormorant Garamond', serif !important;
    font-weight: 600 !important;
    letter-spacing: 1.5px !important; /* Giãn nhẹ khoảng cách chữ để tăng độ sang và thoáng */
}

/* Tăng nhẹ cỡ chữ Menu vì phông mảnh nghệ thuật thường nhỏ hơn phông dày */
#header .nav > li > a {
    font-size: 1.05rem !important;
    text-transform: uppercase !important;
}

h1, .entry-title {
    font-size: 2.4rem !important;
    font-weight: 600 !important;
}

/* 22.2. Dropdown Menu (Menu thả xuống Tài Khoản, Thể Loại, Giỏ Hàng) */
.nav-dropdown {
    background-color: #0D0F14 !important;
    background-image: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.14) 0%, rgba(13, 15, 20, 0.98) 75%) !important;
    border: 1px solid #D4AF37 !important;
    border-radius: 8px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.95), 0 0 15px rgba(212, 175, 55, 0.2) !important;
    padding: 10px 0 !important;
    min-width: 230px !important;
}

/* Mũi tên tam giác nhỏ phía trên Dropdown */
.has-dropdown:after {
    border-bottom-color: #D4AF37 !important;
}

/* Từng dòng mục trong Dropdown Menu */
.nav-dropdown > li > a,
.nav-dropdown .menu-item > a,
.woocommerce-MyAccount-navigation-link > a {
    color: #E2E8F0 !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    padding: 10px 20px !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12) !important;
    transition: all 0.2s ease !important;
}

.nav-dropdown > li:last-child > a {
    border-bottom: none !important;
}

/* Hiệu ứng khi di chuột vào mục trong Dropdown */
.nav-dropdown > li > a:hover,
.nav-dropdown .menu-item > a:hover {
    background-color: rgba(212, 175, 55, 0.15) !important;
    color: #FDE68A !important;
    padding-left: 25px !important;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4) !important;
}

/* 22.3. Làm Sáng Các Nhãn Chữ (Label) Bị Tàng Hình Ở Trang Tài Khoản */
label,
legend,
.woocommerce form .form-row label,
.woocommerce-EditAccountForm label {
    color: #F3E5AB !important; /* Vàng ngà sáng rõ trên nền đen */
    font-weight: 600 !important;
    font-size: 0.92rem !important;
    margin-bottom: 6px !important;
    display: block;
}

/* Dấu sao bắt buộc (*) màu đỏ chu sa sáng */
label .required {
    color: #F87171 !important;
}

/* Dòng chú thích nhỏ dưới ô nhập liệu (em / span) */
.woocommerce-EditAccountForm em,
.woocommerce form .form-row span em {
    color: #94A3B8 !important;
    font-size: 0.85rem !important;
    margin-top: 5px;
    display: inline-block;
}

/* Tiêu đề "THAY ĐỔI MẬT KHẨU" */
.woocommerce-EditAccountForm fieldset {
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    background: rgba(13, 15, 20, 0.6) !important;
    padding: 20px 25px !important;
    border-radius: 8px !important;
    margin-top: 25px !important;
}

.woocommerce-EditAccountForm fieldset legend {
    color: #D4AF37 !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    padding: 0 10px !important;
    width: auto !important;
    border-bottom: none !important;
}

/* 22.4. Đổi Toàn Bộ Ô Nhập Liệu Trắng Sang Nền Mực Viền Kim */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="search"],
textarea,
select {
    background-color: #12151E !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    color: #F8FAFC !important;
    border-radius: 6px !important;
    height: 44px !important;
    padding: 0 15px !important;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.6) !important;
    transition: all 0.25s ease !important;
}

input:focus,
textarea:focus,
select:focus {
    background-color: #161A26 !important;
    border-color: #D4AF37 !important;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.35) !important;
    outline: none !important;
}

/* 22.5. Đổi Nút "Lưu Thay Đổi" & Các Nút Tài Khoản Sang Hoàng Kim */
.woocommerce-Button.button,
button[name="save_account_details"],
.my-account .button {
    background: linear-gradient(135deg, #D4AF37 0%, #AA771C 100%) !important;
    color: #0A0B0E !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 6px 30px !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3) !important;
    transition: all 0.25s ease !important;
}

.woocommerce-Button.button:hover,
button[name="save_account_details"]:hover {
    background: linear-gradient(135deg, #FDE68A 0%, #D4AF37 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5) !important;
}

/* 4 Ô Dashboard (Đơn hàng, Tệp tải xuống, Địa chỉ, Tài khoản) */
.dashboard-links li a {
    background-color: rgba(18, 21, 30, 0.85) !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    color: #F3E5AB !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.25s ease !important;
}

.dashboard-links li a:hover {
    background-color: rgba(212, 175, 55, 0.15) !important;
    border-color: #D4AF37 !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3) !important;
    transform: translateY(-2px);
}

/* 22.6. Ẩn Ô Tăng Giảm Số Lượng Gói VIP & Ẩn Giỏ Hàng Header */
.single-product .quantity,
.woocommerce-checkout .product-quantity {
    display: none !important;
}

#header .cart-item,
#header .header-cart-link {
    display: none !important;
}

/* 22.7. Responsive: Căn Chỉnh Mây Header Không Bị Méo Trên Tablet & Mobile */
/* Custom Tablet CSS (550px - 849px) */
@media (min-width: 550px) and (max-width: 849px) {
    #header .header-main .header-bg-image {
        background-size: auto 155% !important;
        background-position: right 60% !important;
    }
}

/* Custom Mobile CSS (< 550px) */
@media (max-width: 549px) {
    #header .header-main .header-bg-image {
        background-size: auto 155% !important;
        background-position: right 60% !important;
    }
}


/* ==========================================================================
   23. TIÊN HIỆP RANKING TABS (CHU BẢNG/NGUYỆT BẢNG/TỔNG BẢNG) & CHECKOUT CLEANUP
   ========================================================================== */

/* 23.1. Tinh chỉnh các ô Tab Bảng Xếp Hạng (Chu Bảng / Nguyệt Bảng / Tổng Bảng) */
.monleo-ranking-tabs,
.ranking-time-tabs {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

.monleo-rank-tab-btn,
.btn-rank-tab,
.btn-mode-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    height: 38px !important;
    padding: 0 18px !important;
    border-radius: 30px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    background: rgba(18, 21, 30, 0.9) !important;
    border: 1px solid rgba(212, 175, 55, 0.25) !important;
    color: #94A3B8 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    box-sizing: border-box !important;
    user-select: none !important;
}

.monleo-rank-tab-btn .tab-rank-icon,
.btn-rank-tab .tab-rank-icon {
    font-size: 14px;
    display: inline-block;
    filter: drop-shadow(0 0 2px rgba(212, 175, 55, 0.4));
}

.monleo-rank-tab-btn .tab-rank-text,
.btn-rank-tab .tab-rank-text {
    font-family: 'Quicksand', sans-serif !important;
    font-weight: 600 !important;
}

.monleo-rank-tab-btn:hover:not(.active),
.btn-rank-tab:hover:not(.active) {
    background: rgba(212, 175, 55, 0.12) !important;
    border-color: #D4AF37 !important;
    color: #F8FAFC !important;
    transform: translateY(-1px);
}

.monleo-rank-tab-btn.active,
.btn-rank-tab.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.22) 0%, rgba(22, 25, 35, 0.95) 100%) !important;
    border: 1px solid #D4AF37 !important;
    color: #FDE68A !important;
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.35) !important;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

/* 23.2. Tiêu Đề Mục (Section Title) Không Dùng Icon Mặc Định Của Theme */
.monleo-section-title {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 1.65rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    color: #F8FAFC !important;
}

/* 23.3. Tinh Chỉnh & Làm Sạch Trang Thanh Toán (nhan-qua-lieu-ket) */
/* Loại bỏ hoàn toàn các hình thù lạ màu trắng / code block thừa */
.woocommerce-checkout code,
.woocommerce-checkout p.wp-block-paragraph > code,
.woocommerce-checkout .wp-block-paragraph:empty,
.woocommerce-checkout .entry-content > p:empty,
.woocommerce-checkout .col-1:empty,
.woocommerce-checkout .col-2:empty,
.woocommerce-checkout #customer_details,
.woocommerce-checkout .woocommerce-NoticeGroup-checkout:empty {
    display: none !important;
}

/* Bố cục căn giữa trang thanh toán */
.woocommerce-checkout .woocommerce {
    max-width: 680px !important;
    margin: 10px auto 50px !important;
    padding: 0 15px !important;
}

/* Khung Thông Tin Tài Khoản Nhận VIP */
.manga-vip-checkout-account-banner {
    background: linear-gradient(135deg, rgba(16, 28, 22, 0.95) 0%, rgba(10, 16, 13, 0.95) 100%) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    border-left: 4px solid #10B981 !important;
    color: #CBD5E1 !important;
    padding: 18px 22px !important;
    border-radius: 12px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(16, 185, 129, 0.12) !important;
    font-family: 'Quicksand', sans-serif !important;
}

.manga-vip-checkout-account-banner div:first-child {
    font-weight: 700 !important;
    font-size: 15.5px !important;
    color: #FDE68A !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

.manga-vip-checkout-account-banner div:first-child span {
    color: #6EE7B7 !important;
    background: rgba(16, 185, 129, 0.2) !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    padding: 3px 10px !important;
    border-radius: 6px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
}

.manga-vip-checkout-account-banner div:last-child {
    font-size: 13px !important;
    color: #94A3B8 !important;
    margin-top: 8px !important;
    line-height: 1.6 !important;
}

/* ==========================================================================
   TỐI ƯU HÓA GIAO DIỆN KẾT TOÁN NHÂN QUẢ (CHECKOUT & VIETQR ALIGNMENT)
   ========================================================================== */

/* 1. Ẩn cột địa chỉ vật lý bên trái khi mua gói VIP kỹ thuật số */
.woocommerce-checkout .row > .large-7.col {
    display: none !important;
}

/* 2. Căn giữa toàn bộ bảng đơn hàng và thanh toán VietQR (Không bị lệch phải hay co rúm) */
.woocommerce-checkout .row {
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 720px !important;
    width: 100% !important;
}

.woocommerce-checkout .row > .large-5.col {
    max-width: 100% !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    float: none !important;
}

.woocommerce-checkout .col-inner.has-border {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Banner thông tin tài khoản nhận VIP căn đều đồng bộ */
.manga-vip-checkout-account-banner {
    max-width: 720px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 24px !important;
}

/* 3. Khung Pháp Trận Kết Toán (#order_review) */
#order_review_heading {
    display: none !important;
}

#order_review {
    background: linear-gradient(145deg, #131722 0%, #0B0E14 100%) !important;
    border: 1px solid rgba(212, 175, 55, 0.45) !important;
    border-radius: 16px !important;
    padding: 32px 36px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 25px rgba(212, 175, 55, 0.15) !important;
    color: #F8FAFC !important;
    font-family: 'Quicksand', sans-serif !important;
}

@media (max-width: 768px) {
    #order_review {
        padding: 20px 16px !important;
        border-radius: 12px !important;
    }
}

/* 4. Bảng Chi Tiết Sản Phẩm & Giá Tiền */
.woocommerce-checkout table.shop_table {
    border: none !important;
    margin-bottom: 24px !important;
    background: transparent !important;
    width: 100% !important;
    border-collapse: collapse !important;
}

/* Tiêu đề bảng: SẢN PHẨM & TẠM TÍNH - Tuyệt đối không rớt dòng */
.woocommerce-checkout table.shop_table th {
    border-bottom: 2px solid rgba(212, 175, 55, 0.35) !important;
    color: #FDE68A !important;
    font-size: 14.5px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 14px 16px !important;
    white-space: nowrap !important;
    text-align: left !important;
}

.woocommerce-checkout table.shop_table th.product-total {
    text-align: right !important;
}

/* Hàng sản phẩm */
.woocommerce-checkout table.shop_table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 18px 16px !important;
    vertical-align: middle !important;
}

.woocommerce-checkout table.shop_table td.product-name {
    color: #F3E5AB !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
}

.woocommerce-checkout table.shop_table td.product-total {
    color: #FDE68A !important;
    font-size: 16.5px !important;
    font-weight: 700 !important;
    text-align: right !important;
    white-space: nowrap !important;
}

/* Hàng Tạm tính */
.woocommerce-checkout table.shop_table tfoot tr.cart-subtotal th {
    border-top: 1px solid rgba(212, 175, 55, 0.2) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #94A3B8 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 14px 16px !important;
    white-space: nowrap !important;
    text-transform: uppercase !important;
}

.woocommerce-checkout table.shop_table tfoot tr.cart-subtotal td {
    border-top: 1px solid rgba(212, 175, 55, 0.2) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #E2E8F0 !important;
    font-size: 15.5px !important;
    font-weight: 700 !important;
    text-align: right !important;
    white-space: nowrap !important;
}

/* Hàng Tổng cộng */
.woocommerce-checkout table.shop_table tfoot tr.order-total th {
    border-top: none !important;
    border-bottom: none !important;
    color: #FDE68A !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    padding: 18px 16px !important;
    white-space: nowrap !important;
}

.woocommerce-checkout table.shop_table tfoot tr.order-total td {
    border-top: none !important;
    border-bottom: none !important;
    text-align: right !important;
    padding: 18px 16px !important;
    white-space: nowrap !important;
}

.woocommerce-checkout table.shop_table tfoot tr.order-total td strong,
.woocommerce-checkout table.shop_table tfoot tr.order-total td span.amount {
    color: #FDE68A !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    text-shadow: 0 0 14px rgba(245, 158, 11, 0.5) !important;
}

/* 5. Khung Phương Thức Thanh Toán VietQR */
.woocommerce-checkout #payment {
    background: rgba(18, 22, 32, 0.75) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    border-radius: 14px !important;
    padding: 22px 24px !important;
    margin-top: 12px !important;
}

.woocommerce-checkout #payment ul.payment_methods {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 0 0 16px 0 !important;
    margin: 0 0 16px 0 !important;
    list-style: none !important;
}

.woocommerce-checkout #payment ul.payment_methods li {
    margin: 0 !important;
}

.woocommerce-checkout #payment ul.payment_methods li label {
    color: #FDE68A !important;
    font-weight: 700 !important;
    font-size: 15.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer !important;
    line-height: 1.4 !important;
}

.woocommerce-checkout #payment input[type="radio"] {
    accent-color: #D4AF37 !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    cursor: pointer !important;
}

/* Hộp thông tin hướng dẫn chuyển khoản VietQR */
.woocommerce-checkout #payment div.payment_box {
    background: rgba(11, 14, 20, 0.95) !important;
    border: 1px solid rgba(212, 175, 55, 0.25) !important;
    border-left: 4px solid #10B981 !important;
    color: #CBD5E1 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    padding: 14px 18px !important;
    margin: 12px 0 0 0 !important;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5) !important;
}

.woocommerce-checkout #payment div.payment_box::before {
    display: none !important;
}

/* Điều khoản bảo mật */
.woocommerce-checkout .woocommerce-privacy-policy-text,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    color: #94A3B8 !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin: 16px 0 !important;
}

.woocommerce-checkout .woocommerce-privacy-policy-link {
    color: #FDE68A !important;
    text-decoration: underline !important;
}

/* 6. Nút Bấm Hoàng Kim: TIẾN HÀNH THANH TOÁN VIETQR */
#place_order {
    width: 100% !important;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 50%, #B45309 100%) !important;
    color: #0A0B0E !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    padding: 16px 32px !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.45) !important;
    transition: all 0.25s ease !important;
    margin-top: 14px !important;
    display: block !important;
}

#place_order:hover {
    background: linear-gradient(135deg, #FDE68A 0%, #F59E0B 100%) !important;
    color: #000000 !important;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.7) !important;
    transform: translateY(-2px) !important;
}

/* Khung Mã Ưu Đãi (Coupon) */
.woocommerce-form-coupon-toggle .woocommerce-info {
    background: rgba(22, 25, 35, 0.8) !important;
    border: 1px solid rgba(212, 175, 55, 0.25) !important;
    color: #CBD5E1 !important;
    border-radius: 8px !important;
    padding: 12px 18px !important;
    font-size: 13px !important;
    max-width: 720px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.woocommerce-form-coupon-toggle .woocommerce-info a {
    color: #FDE68A !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
}


/* ==========================================================================
   24. TIÊN HIỆP PRODUCT CATEGORY & VIP SUBSCRIPTION ARCHIVE
   ========================================================================== */

/* 24.1. Ẩn thông báo Shop Sidebar rỗng & Mở rộng danh mục sản phẩm toàn màn hình */
.tax-product_cat .shop-sidebar,
.post-type-archive-product .shop-sidebar,
#shop-sidebar p:first-child:last-child {
    display: none !important;
}

.tax-product_cat .content-area,
.post-type-archive-product .content-area {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

/* 24.2. Khung thẻ gói sản phẩm VIP phong cách Huyền Mặc Tiên Hiệp */
.tax-product_cat .products .product-small.box,
.post-type-archive-product .products .product-small.box,
.woocommerce ul.products li.product {
    background: rgba(14, 17, 23, 0.95) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(212, 175, 55, 0.08) !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
}

.tax-product_cat .products .product-small.box:hover,
.post-type-archive-product .products .product-small.box:hover,
.woocommerce ul.products li.product:hover {
    border-color: #D4AF37 !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.9), 0 0 25px rgba(212, 175, 55, 0.3) !important;
    transform: translateY(-4px) !important;
}

/* Khung ảnh thumbnail sản phẩm */
.tax-product_cat .box-image,
.post-type-archive-product .box-image,
.woocommerce .product .box-image {
    background: #090B0E !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2) !important;
    overflow: hidden !important;
}

.tax-product_cat .box-image img,
.post-type-archive-product .box-image img,
.woocommerce .product .box-image img {
    border-radius: 10px 10px 0 0 !important;
    transition: transform 0.4s ease !important;
}

.tax-product_cat .products .product-small.box:hover .box-image img,
.post-type-archive-product .products .product-small.box:hover .box-image img {
    transform: scale(1.05) !important;
}

/* Phần chữ và giá */
.tax-product_cat .box-text,
.post-type-archive-product .box-text {
    background: transparent !important;
    padding: 16px 14px 20px !important;
}

.tax-product_cat .product-title a,
.post-type-archive-product .product-title a {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: #F8FAFC !important;
    letter-spacing: 0.5px !important;
    transition: color 0.2s ease !important;
}

.tax-product_cat .product-title a:hover,
.post-type-archive-product .product-title a:hover {
    color: #FDE68A !important;
}

.tax-product_cat .price,
.post-type-archive-product .price {
    font-family: 'Quicksand', sans-serif !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #FDE68A !important;
    margin: 8px 0 14px !important;
}

.tax-product_cat .add-to-cart-button,
.post-type-archive-product .add-to-cart-button,
.tax-product_cat .add_to_cart_button,
.post-type-archive-product .add_to_cart_button {
    background: linear-gradient(135deg, #D4AF37 0%, #AA771C 100%) !important;
    color: #0A0B0E !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    letter-spacing: 0.5px !important;
    padding: 8px 22px !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35) !important;
    transition: all 0.25s ease !important;
}

.tax-product_cat .add-to-cart-button:hover,
.post-type-archive-product .add-to-cart-button:hover,
.tax-product_cat .add_to_cart_button:hover,
.post-type-archive-product .add_to_cart_button:hover {
    background: linear-gradient(135deg, #FDE68A 0%, #D4AF37 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5) !important;
}


/* ==========================================================================
   25. MOBILE RESPONSIVE OPTIMIZATION FOR PHONG VÂN BẢNG & GLOBAL MOBILE
   ========================================================================== */

/* 25.1. Chống tràn chiều ngang toàn trang */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

@media (max-width: 768px) {
    /* Đảm bảo nội dung không bị che bởi Mobile Bottom Dock */
    .monleo-ranking-page-container,
    .page-wrapper {
        padding-bottom: 75px !important;
    }

    /* 25.2. Header & Bộ Lọc Thời Gian / Chế Độ Xem (Sửa lỗi hình bầu dục kỳ lạ) */
    .monleo-ranking-page-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 14px !important;
        margin-bottom: 20px !important;
        padding-bottom: 16px !important;
    }

    .ranking-main-title {
        font-size: 22px !important;
        text-align: center !important;
        line-height: 1.3 !important;
    }

    .ranking-main-sub {
        font-size: 12.5px !important;
        text-align: center !important;
    }

    .ranking-toolbar {
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }

    /* Căn chỉnh 3 nút Chu Bảng / Nguyệt Bảng / Tổng Bảng vừa khít màn hình */
    .ranking-time-tabs {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        border-radius: 12px !important;
        padding: 4px !important;
        gap: 4px !important;
        box-sizing: border-box !important;
    }

    .ranking-time-tabs .btn-rank-tab {
        width: 100% !important;
        padding: 8px 4px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
        white-space: nowrap !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        height: 38px !important;
        box-sizing: border-box !important;
    }

    .ranking-view-toggle {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        border-radius: 12px !important;
        padding: 4px !important;
        box-sizing: border-box !important;
    }

    .ranking-view-toggle .btn-mode-toggle {
        width: 100% !important;
        padding: 8px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
        text-align: center !important;
        height: 38px !important;
        box-sizing: border-box !important;
    }

    /* 25.3. Bục Vinh Danh Top 3 (Podium) - Chống tràn viền và vỡ chữ */
    .monleo-podium-section {
        margin: 10px 0 25px 0 !important;
    }

    .monleo-podium-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        align-items: stretch !important;
    }

    /* Top 1 Quán Quân lên trên cùng, chiếm trọn 2 cột nổi bật */
    .monleo-podium-card.podium-rank-1 {
        order: 1 !important;
        grid-column: span 2 !important;
        padding: 20px 16px !important;
    }

    /* Top 2 Á Quân bên trái */
    .monleo-podium-card.podium-rank-2 {
        order: 2 !important;
        grid-column: span 1 !important;
        padding: 16px 10px !important;
    }

    /* Top 3 Quý Quân bên phải */
    .monleo-podium-card.podium-rank-3 {
        order: 3 !important;
        grid-column: span 1 !important;
        padding: 16px 10px !important;
    }

    .podium-badge-pill {
        font-size: 10.5px !important;
        padding: 3px 10px !important;
        margin-bottom: 10px !important;
        white-space: nowrap !important;
    }

    .podium-poster-link {
        width: 105px !important;
        margin-bottom: 10px !important;
    }

    .podium-rank-1 .podium-poster-link {
        width: 135px !important;
    }

    .podium-card-title {
        font-size: 14px !important;
        line-height: 1.3 !important;
        margin-bottom: 6px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .podium-rank-1 .podium-card-title {
        font-size: 16px !important;
    }

    .podium-card-desc {
        display: none !important; /* Ẩn mô tả dài trên mobile để bục gọn gàng */
    }

    .btn-podium-action {
        width: 100% !important;
        padding: 7px 8px !important;
        font-size: 11.5px !important;
        white-space: nowrap !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    /* 25.4. Danh Sách Chi Tiết (Sửa triệt để lỗi nút Đọc Ngay đè lên tên truyện) */
    .monleo-rank-row-item {
        display: grid !important;
        grid-template-columns: 28px 65px 1fr !important;
        grid-template-areas: 
            "num poster info"
            "action action action" !important;
        gap: 10px 12px !important;
        padding: 14px !important;
        position: relative !important;
    }

    .rank-row-number {
        grid-area: num !important;
        flex: none !important;
        font-size: 20px !important;
        align-self: center !important;
        text-align: center !important;
    }

    .rank-row-poster-wrap {
        grid-area: poster !important;
        flex: none !important;
        width: 65px !important;
        height: 86px !important;
    }

    .rank-row-info {
        grid-area: info !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    .rank-row-genres {
        gap: 4px !important;
        margin-bottom: 4px !important;
    }

    .rank-genre-tag, .rank-chap-tag {
        font-size: 9.5px !important;
        padding: 1px 6px !important;
    }

    .rank-row-title {
        font-size: 14.5px !important;
        line-height: 1.35 !important;
        margin: 0 0 4px !important;
        word-break: break-word !important;
    }

    .rank-row-desc {
        display: none !important; /* Ẩn tóm tắt trên mobile để thoáng giao diện */
    }

    .rank-row-submeta {
        font-size: 11px !important;
        color: #94A3B8 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Đưa thanh nút bấm & đánh giá xuống dòng riêng biệt, không bao giờ bị đè */
    .rank-row-stats-action {
        grid-area: action !important;
        width: 100% !important;
        flex: none !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding-top: 10px !important;
        margin-top: 2px !important;
        border-top: 1px dashed rgba(212, 175, 55, 0.2) !important;
    }

    .rank-row-metrics {
        display: flex !important;
        gap: 12px !important;
        font-size: 12px !important;
    }

    .rank-row-buttons {
        display: flex !important;
        gap: 8px !important;
    }

    .btn-rank-read {
        padding: 6px 14px !important;
        font-size: 11.5px !important;
        white-space: nowrap !important;
    }

    .btn-rank-detail {
        padding: 6px 12px !important;
        font-size: 11.5px !important;
        white-space: nowrap !important;
    }

    /* 25.5. Tinh chỉnh Tab Trang Chủ trên Mobile */
    .monleo-ranking-tabs {
        width: 100% !important;
        display: flex !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 6px !important;
        gap: 8px !important;
    }

    .monleo-rank-tab-btn {
        flex: 0 0 auto !important;
        font-size: 12px !important;
        padding: 0 14px !important;
        height: 36px !important;
    }
}


/* ==========================================================================
   26. XIANXIA CHECKOUT AUTHENTICATION HUB & DAO CO LOGIN BUTTON
   ========================================================================== */

/* 26.1. Golden Tiên Hiệp Button (.monleo-btn-gold) */
.monleo-btn-gold {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 50%, #B45309 100%) !important;
    color: #0F172A !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 10px 22px !important;
    border-radius: 999px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35) !important;
    border: 1px solid rgba(254, 240, 138, 0.45) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    line-height: 1.4 !important;
}

.monleo-btn-gold:hover {
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 50%, #D97706 100%) !important;
    color: #000000 !important;
    box-shadow: 0 6px 22px rgba(245, 158, 11, 0.6) !important;
    transform: translateY(-2px) !important;
}

.monleo-btn-gold.btn-block-submit {
    width: 100% !important;
    padding: 14px 20px !important;
    font-size: 15px !important;
    border-radius: 10px !important;
    margin-top: 14px !important;
    cursor: pointer !important;
}

/* 26.2. Đạo Cơ Header Actions */
.daoco-header-actions .monleo-btn-gold {
    white-space: nowrap !important;
}

/* 26.3. Xianxia VIP Checkout Authentication Container */
.monleo-checkout-auth-container {
    background: linear-gradient(145deg, rgba(22, 29, 38, 0.98) 0%, rgba(13, 17, 23, 0.98) 100%) !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
    border-radius: 16px !important;
    padding: 24px 28px !important;
    margin-bottom: 28px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.12) !important;
    font-family: inherit !important;
    color: #E2E8F0 !important;
    position: relative !important;
    overflow: hidden !important;
}

.monleo-checkout-auth-container::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, #F59E0B 0%, #FDE68A 50%, #D97706 100%) !important;
}

.monleo-auth-header-card {
    margin-bottom: 22px !important;
    text-align: center !important;
}

.monleo-auth-badge {
    display: inline-block !important;
    background: rgba(245, 158, 11, 0.15) !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
    color: #FDE68A !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    padding: 4px 14px !important;
    border-radius: 999px !important;
    margin-bottom: 10px !important;
}

.monleo-auth-title {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #FFFFFF !important;
    margin: 0 0 8px 0 !important;
    letter-spacing: 0.3px !important;
    line-height: 1.3 !important;
}

.monleo-auth-desc {
    font-size: 13.5px !important;
    color: #94A3B8 !important;
    line-height: 1.6 !important;
    margin: 0 auto !important;
    max-width: 580px !important;
}

/* 26.4. Google 1-Click Section */
.monleo-auth-google-section {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px dashed rgba(245, 158, 11, 0.3) !important;
    border-radius: 12px !important;
    padding: 16px !important;
    text-align: center !important;
    margin-bottom: 20px !important;
}

.auth-section-label {
    display: block !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #FDE68A !important;
    margin-bottom: 12px !important;
}

.google-btn-container {
    display: flex !important;
    justify-content: center !important;
}

/* 26.5. Divider */
.monleo-auth-divider {
    position: relative !important;
    text-align: center !important;
    margin: 22px 0 !important;
}

.monleo-auth-divider::before {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    right: 0 !important;
    height: 1px !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.monleo-auth-divider span {
    position: relative !important;
    background: #161D26 !important;
    padding: 0 14px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #64748B !important;
    letter-spacing: 1px !important;
}

/* 26.6. Inline Form Styles */
.monleo-inline-login-form {
    background: rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin: 0 !important;
}

.monleo-inline-login-form .form-row {
    margin-bottom: 14px !important;
    padding: 0 !important;
}

.monleo-inline-login-form label {
    display: block !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #CBD5E1 !important;
    margin-bottom: 6px !important;
}

.monleo-inline-login-form .required {
    color: #EF4444 !important;
}

.monleo-dark-input {
    width: 100% !important;
    background: #0D1117 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #FFFFFF !important;
    padding: 11px 14px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.monleo-dark-input:focus {
    border-color: #F59E0B !important;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25) !important;
    outline: none !important;
}

.monleo-login-options {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 12.5px !important;
    margin-top: 6px !important;
    margin-bottom: 8px !important;
    color: #94A3B8 !important;
}

.monleo-login-options label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    margin: 0 !important;
}

.monleo-lost-pw-link {
    color: #FDE68A !important;
    text-decoration: none !important;
    font-size: 12px !important;
}

.monleo-lost-pw-link:hover {
    text-decoration: underline !important;
    color: #FBBF24 !important;
}

/* 26.7. Register prompt */
.monleo-auth-register-prompt {
    margin-top: 18px !important;
    padding-top: 14px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    font-size: 13px !important;
    color: #94A3B8 !important;
}

.monleo-register-btn-link {
    color: #FDE68A !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border-bottom: 1px dashed #FDE68A !important;
    padding-bottom: 1px !important;
    transition: color 0.2s !important;
    cursor: pointer !important;
}

.monleo-register-btn-link:hover {
    color: #FBBF24 !important;
    border-bottom-style: solid !important;
}

/* 26.8. Mobile Adjustments */
@media (max-width: 767px) {
    .monleo-checkout-auth-container {
        padding: 18px 16px !important;
    }
    .monleo-auth-title {
        font-size: 17px !important;
    }
    .monleo-auth-desc {
        font-size: 12.5px !important;
    }
    .monleo-auth-register-prompt {
        flex-direction: column !important;
        gap: 6px !important;
        text-align: center !important;
    }
    .daoco-header-actions .monleo-btn-gold {
        width: 100% !important;
    }
}


/* 26.9. Monleo Global Auth Modal (Pure CSS / Vanilla JS) */
.monleo-auth-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.82) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    z-index: 9999999 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    box-sizing: border-box !important;
}

.monleo-auth-backdrop.is-open {
    display: flex !important;
    animation: monleoFadeIn 0.2s ease-out forwards;
}

@keyframes monleoFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.monleo-auth-window {
    background: linear-gradient(145deg, #161D26 0%, #0D1117 100%) !important;
    border: 1px solid rgba(245, 158, 11, 0.45) !important;
    border-radius: 16px !important;
    max-width: 460px !important;
    width: 100% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    padding: 28px 24px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 30px rgba(245, 158, 11, 0.2) !important;
    position: relative !important;
    box-sizing: border-box !important;
    color: #E2E8F0 !important;
    font-family: inherit !important;
    animation: monleoSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes monleoSlideUp {
    from { transform: translateY(20px) scale(0.97); }
    to { transform: translateY(0) scale(1); }
}

.monleo-auth-close {
    position: absolute !important;
    top: 10px !important;
    right: 14px !important;
    background: none !important;
    border: none !important;
    color: #94A3B8 !important;
    font-size: 28px !important;
    cursor: pointer !important;
    line-height: 1 !important;
    padding: 4px 8px !important;
    transition: all 0.2s !important;
    z-index: 10 !important;
}

.monleo-auth-close:hover {
    color: #FDE68A !important;
    transform: scale(1.15) !important;
}

/* ==========================================================================
   27. FLATSOME NATIVE LIGHTBOX (#login-form-popup) - TIÊN HIỆP EDITION
   ========================================================================== */
#login-form-popup.lightbox-content {
    background: linear-gradient(145deg, #161D26 0%, #0D1117 100%) !important;
    border: 1px solid rgba(245, 158, 11, 0.45) !important;
    border-radius: 16px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(245, 158, 11, 0.18) !important;
    color: #E2E8F0 !important;
    max-width: 820px !important;
    padding: 32px 28px !important;
    margin: 30px auto !important;
}

#login-form-popup .account-login-inner {
    color: #E2E8F0 !important;
}

#login-form-popup h2,
#login-form-popup h3,
#login-form-popup h4 {
    color: #FDE68A !important;
    font-family: inherit !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    border-bottom: 1px solid rgba(245, 158, 11, 0.25) !important;
    padding-bottom: 10px !important;
    margin-bottom: 20px !important;
}

#login-form-popup .woocommerce-form-row label {
    color: #CBD5E1 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
    display: block !important;
}

#login-form-popup input.input-text {
    background: #0B0E14 !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    border-radius: 8px !important;
    color: #F8FAFC !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.4) !important;
    transition: all 0.2s ease !important;
}

#login-form-popup input.input-text:focus {
    border-color: #F59E0B !important;
    outline: none !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.35), inset 0 2px 4px rgba(0,0,0,0.4) !important;
}

#login-form-popup .woocommerce-form-login__submit,
#login-form-popup .woocommerce-form-register__submit,
#login-form-popup button[type="submit"] {
 background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
 color: #000000 !important;
 border: none !important;
 border-radius: 8px !important;
 font-weight: 700 !important;
 font-size: 14px !important;
 padding: 12px 24px !important;
 cursor: pointer !important;
 text-transform: uppercase !important;
 letter-spacing: 0.5px !important;
 box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35) !important;
 transition: all 0.2s ease !important;
 width: 100% !important;
 margin-top: 10px !important;
}

#login-form-popup button[type="submit"]:hover {
 background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%) !important;
 transform: translateY(-1px) !important;
 box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5) !important;
}

#login-form-popup .woocommerce-LostPassword a {
 color: #F59E0B !important;
 font-size: 13px !important;
 text-decoration: underline !important;
 transition: color 0.2s !important;
}

#login-form-popup .woocommerce-LostPassword a:hover {
 color: #FDE68A !important;
}

#login-form-popup .woocommerce-form__label-for-checkbox {
 color: #94A3B8 !important;
 font-size: 13px !important;
 cursor: pointer !important;
}

#login-form-popup .mfp-close {
 color: #CBD5E1 !important;
 font-size: 28px !important;
 top: 8px !important;
 right: 12px !important;
 transition: transform 0.2s, color 0.2s !important;
}

#login-form-popup .mfp-close:hover {
 color: #F59E0B !important;
 transform: scale(1.15) !important;
}

@media (max-width: 768px) {
 #login-form-popup.lightbox-content {
 padding: 22px 18px !important;
 margin: 15px !important;
 max-width: calc(100vw - 30px) !important;
 }
}

/* ==========================================================================
   28. WOOCOMMERCE ERROR NOTICE & INLINE LOGIN BUTTON (TIÊN HIỆP STYLE)
   ========================================================================== */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    background: linear-gradient(135deg, rgba(22, 29, 38, 0.96) 0%, rgba(13, 17, 23, 0.98) 100%) !important;
    border: 1px solid rgba(239, 68, 68, 0.5) !important;
    border-left: 5px solid #EF4444 !important;
    border-radius: 10px !important;
    color: #F87171 !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    padding: 14px 20px !important;
    margin: 15px auto 25px auto !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

.woocommerce-error li {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    width: 100% !important;
    color: #FCA5A5 !important;
    line-height: 1.5 !important;
}

.monleo-notice-login-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
    color: #000000 !important;
    font-weight: 700 !important;
    padding: 6px 16px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.45) !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    margin-left: auto !important;
}

.monleo-notice-login-btn:hover {
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.6) !important;
    color: #000000 !important;
}

@media (max-width: 768px) {
    .woocommerce-error li {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .monleo-notice-login-btn {
        margin-left: 0 !important;
        margin-top: 6px !important;
        width: 100% !important;
        justify-content: center !important;
        padding: 8px 14px !important;
    }
}

/* ==========================================================================
   29. TRANG KHÔI PHỤC MẬT KHẨU (LOST PASSWORD) - TIÊN HIỆP STYLE
   ========================================================================== */
.monleo-lost-password-wrapper {
    font-family: inherit !important;
}

.monleo-lost-password-wrapper .woocommerce-ResetPassword p {
    color: #CBD5E1 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin-bottom: 16px !important;
}

.monleo-lost-password-wrapper .woocommerce-form-row label {
    color: #FDE68A !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    margin-bottom: 8px !important;
    display: block !important;
}

.monleo-lost-password-wrapper input.input-text {
    background: #0B0E14 !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
    border-radius: 8px !important;
    color: #F8FAFC !important;
    padding: 12px 16px !important;
    font-size: 14.5px !important;
    width: 100% !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.4) !important;
    transition: all 0.2s ease !important;
}

.monleo-lost-password-wrapper input.input-text:focus {
    border-color: #F59E0B !important;
    outline: none !important;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.4), inset 0 2px 4px rgba(0,0,0,0.4) !important;
}

.monleo-lost-password-wrapper button[type="submit"],
.monleo-lost-password-wrapper .woocommerce-Button.button {
 background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
 color: #000000 !important;
 font-weight: 700 !important;
 font-size: 14px !important;
 padding: 12px 24px !important;
 border: none !important;
 border-radius: 8px !important;
 cursor: pointer !important;
 text-transform: uppercase !important;
 letter-spacing: 0.5px !important;
 box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4) !important;
 transition: all 0.2s ease !important;
 width: 100% !important;
 margin-top: 10px !important;
}

.monleo-lost-password-wrapper button[type="submit"]:hover,
.monleo-lost-password-wrapper .woocommerce-Button.button:hover {
 background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%) !important;
 transform: translateY(-1px) !important;
 box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6) !important;
 color: #000000 !important;
}

/* ==========================================================================
   30. BỘ CÔNG CỤ ĐỌC TRUYỆN: THANH NỔI FAB THU GỌN, MODAL BÁO LỖI & TOAST
   ========================================================================== */

/* --- Container chính --- */
.monleo-reader-float-dock {
    position: fixed;
    bottom: 85px;
    right: 22px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
}

/* --- Nút Toggle FAB chính (nhỏ xíu, luôn hiển thị) --- */
.dock-fab-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(13, 17, 23, 0.75);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #FDE68A;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
    outline: none;
    position: relative;
    z-index: 2;
    opacity: 0.5;
}

.dock-fab-toggle:hover {
    opacity: 1;
    background: rgba(13, 17, 23, 0.95);
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
    transform: scale(1.05);
}

.dock-fab-toggle .fab-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease, opacity 0.2s ease;
    position: absolute;
}

.dock-fab-toggle .fab-icon-close {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

/* Khi dock mở rộng: đổi icon */
.monleo-reader-float-dock.dock-expanded .dock-fab-toggle {
    opacity: 1;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #000;
    border-color: #FDE68A;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.monleo-reader-float-dock.dock-expanded .dock-fab-toggle .fab-icon-open {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

.monleo-reader-float-dock.dock-expanded .dock-fab-toggle .fab-icon-close {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* --- Container các nút con (ẩn mặc định) --- */
.dock-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 10px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px) scale(0.9);
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.25s ease,
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.monleo-reader-float-dock.dock-expanded .dock-actions {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* --- Hiệu ứng xuất hiện từng nút con (stagger) --- */
.dock-actions .dock-btn {
    opacity: 0;
    transform: translateY(8px) scale(0.8);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.monleo-reader-float-dock.dock-expanded .dock-actions .dock-btn:nth-child(1) {
    opacity: 1; transform: translateY(0) scale(1); transition-delay: 0.05s;
}
.monleo-reader-float-dock.dock-expanded .dock-actions .dock-btn:nth-child(2) {
    opacity: 1; transform: translateY(0) scale(1); transition-delay: 0.1s;
}
.monleo-reader-float-dock.dock-expanded .dock-actions .dock-btn:nth-child(3) {
    opacity: 1; transform: translateY(0) scale(1); transition-delay: 0.15s;
}

/* --- Style từng nút con --- */
.monleo-reader-float-dock .dock-btn {
    pointer-events: auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(22, 29, 38, 0.95) 0%, rgba(13, 17, 23, 0.98) 100%);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #FDE68A;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 10px rgba(245, 158, 11, 0.1);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    padding: 0;
    outline: none;
}

.monleo-reader-float-dock .dock-btn:hover {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #000000;
    border-color: #FDE68A;
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 8px 22px rgba(245, 158, 11, 0.5);
}

.monleo-reader-float-dock .dock-btn:active {
    transform: translateY(0) scale(0.96);
}

.monleo-reader-float-dock .dock-svg {
    width: 19px;
    height: 19px;
    transition: transform 0.3s ease;
}

.monleo-reader-float-dock .btn-reload:hover .dock-svg {
    transform: rotate(180deg);
}

.monleo-reader-float-dock .btn-report {
    border-color: rgba(239, 68, 68, 0.5);
    color: #FCA5A5;
}

.monleo-reader-float-dock .btn-report:hover {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: #FFFFFF;
    border-color: #F87171;
    box-shadow: 0 8px 22px rgba(239, 68, 68, 0.5);
}

/* --- Tooltip --- */
.monleo-reader-float-dock .dock-tooltip {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: #0B0E14;
    color: #FDE68A;
    border: 1px solid rgba(245, 158, 11, 0.4);
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    padding: 4px 9px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.monleo-reader-float-dock .dock-btn:hover .dock-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(-2px);
}

/* --- Toast thông báo --- */
.monleo-reader-toast {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(-30px);
    background: linear-gradient(135deg, rgba(22, 29, 38, 0.98) 0%, rgba(13, 17, 23, 0.98) 100%);
    border: 1px solid rgba(245, 158, 11, 0.6);
    border-radius: 30px;
    color: #FDE68A;
    padding: 10px 22px;
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(245, 158, 11, 0.25);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.monleo-reader-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* --- Modal Báo Lỗi --- */
.monleo-report-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 10, 0.85);
    backdrop-filter: blur(5px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: mrFadeIn 0.2s ease-out;
}

@keyframes mrFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.monleo-report-modal-dialog {
    background: linear-gradient(145deg, #161D26 0%, #0D1117 100%);
    border: 1px solid rgba(245, 158, 11, 0.45);
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(245, 158, 11, 0.2);
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px 24px;
    position: relative;
    color: #E2E8F0;
    font-family: inherit;
    animation: mrSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mrSlideUp {
    from { transform: translateY(20px) scale(0.97); }
    to { transform: translateY(0) scale(1); }
}

.monleo-report-modal-dialog .modal-close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #94A3B8;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s;
}

.monleo-report-modal-dialog .modal-close-btn:hover {
    color: #FDE68A;
    transform: scale(1.15);
}

.monleo-report-modal-dialog .modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-badge-warn {
    display: inline-block;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #F87171;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.monleo-report-modal-dialog .modal-title {
    color: #FDE68A;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.monleo-report-modal-dialog .modal-desc {
    color: #94A3B8;
    font-size: 13px;
    margin: 0 0 14px 0;
    line-height: 1.5;
}

.modal-target-info {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.modal-target-info .target-badge {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #FDE68A;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
}

.modal-target-info .target-badge.chap {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: #6EE7B7;
}

.report-reason-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.reason-option {
    cursor: pointer;
    margin: 0;
}

.reason-option input {
    display: none;
}

.reason-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #0B0E14;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 9px 14px;
    transition: all 0.2s ease;
}

.reason-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.reason-text strong {
    display: block;
    color: #E2E8F0;
    font-size: 13px;
    font-weight: 600;
}

.reason-text span {
    display: block;
    color: #64748B;
    font-size: 11.5px;
}

.reason-option input:checked + .reason-card {
    background: rgba(245, 158, 11, 0.12);
    border-color: #F59E0B;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

.reason-option input:checked + .reason-card .reason-text strong {
    color: #FDE68A;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    color: #CBD5E1;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-textarea {
    width: 100%;
    min-height: 75px;
    background: #0B0E14;
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 8px;
    color: #F8FAFC;
    padding: 10px 14px;
    font-size: 13.5px;
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.2s;
    resize: vertical;
}

.form-textarea:focus {
    border-color: #F59E0B;
    outline: none;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.reporter-meta {
    font-size: 12px;
    color: #94A3B8;
}

.btn-submit-report {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #000000;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13.5px;
    padding: 10px 20px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
    transition: all 0.2s ease;
    margin-left: auto;
}

.btn-submit-report:hover {
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.55);
}

.report-result-box {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.report-result-box.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34D399;
}

.report-result-box.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #F87171;
}

/* --- Responsive Mobile --- */
@media (max-width: 768px) {
    .monleo-reader-float-dock {
        bottom: 75px;
        right: 14px;
    }
    .dock-fab-toggle {
        width: 34px;
        height: 34px;
    }
    .monleo-reader-float-dock .dock-btn {
        width: 38px;
        height: 38px;
    }
    .monleo-reader-float-dock .dock-svg {
        width: 17px;
        height: 17px;
    }
    .monleo-reader-float-dock .dock-tooltip {
        display: none !important;
    }
    .monleo-report-modal-dialog {
        padding: 22px 16px;
    }
    .form-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-submit-report {
        width: 100%;
        text-align: center;
    }
}


/* ==========================================================================
   31. GIAO DIỆN KHUNG DROPDOWN TÌM KIẾM HOÀNG KIM (HEADER SEARCH)
   ========================================================================== */
/* 1. KHUNG DROPDOWN TÌM KIẾM */
#header .nav-dropdown.nav-dropdown-search,
#header .header-search-form-wrapper .nav-dropdown {
    padding: 14px 16px !important;
    min-width: 310px !important;
    background-color: #0D0F14 !important;
    border: 1px solid #D4AF37 !important;
    border-radius: 8px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.95), 0 0 18px rgba(212, 175, 55, 0.25) !important;
}

/* Căn chỉnh hàng ngang giữa ô chữ và nút kính lúp */
.searchform .flex-row {
    display: flex !important;
    align-items: stretch !important;
}

/* 2. Ô NHẬP TỪ KHÓA "TÌM KIẾM..." */
.searchform .search-field,
#header input[type="search"].search-field {
    background-color: #141821 !important;
    border: 1px solid rgba(212, 175, 55, 0.45) !important;
    border-right: none !important; /* Bỏ viền phải để nối liền với nút bấm */
    border-radius: 6px 0 0 6px !important; /* Chỉ bo tròn 2 góc bên trái */
    height: 42px !important;
    padding: 0 15px !important;
    color: #F3E5AB !important;
    font-size: 0.92rem !important;
    margin: 0 !important;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.6) !important;
}

.searchform .search-field::placeholder {
    color: #94A3B8 !important;
    opacity: 0.85;
}

.searchform .search-field:focus {
    background-color: #181D28 !important;
    border-color: #D4AF37 !important;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.25) !important;
}

/* 3. NÚT BẤM KÍNH LÚP BÊN TRONG HỘP TÌM KIẾM */
.searchform .ux-search-submit,
.searchform button.submit-button {
    background: linear-gradient(135deg, #D4AF37 0%, #AA771C 100%) !important;
    color: #0A0B0E !important;
    border: 1px solid #D4AF37 !important;
    border-radius: 0 6px 6px 0 !important; /* Bo tròn 2 góc bên phải khớp với ô chữ */
    height: 42px !important;
    min-height: 42px !important;
    width: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    transition: all 0.25s ease !important;
}

/* Màu icon kính lúp bên trong nút */
.searchform .ux-search-submit i,
.searchform button.submit-button i {
    color: #0A0B0E !important;
    font-size: 1.05rem !important;
}

/* Hiệu ứng sáng rực khi di chuột vào nút tìm kiếm */
.searchform .ux-search-submit:hover,
.searchform button.submit-button:hover {
    background: linear-gradient(135deg, #FDE68A 0%, #D4AF37 100%) !important;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.5) !important;
}

/* 4. NÚT KÍNH LÚP MỞ MENU TRÊN THANH HEADER (CẠNH CHỮ "ĐẠO CƠ") */
#header .header-search > a {
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    background-color: rgba(212, 175, 55, 0.08) !important;
    border-radius: 6px !important;
    padding: 6px 10px !important;
    transition: all 0.25s ease !important;
}

#header .header-search:hover > a,
#header .header-search.current-dropdown > a {
    border-color: #D4AF37 !important;
    background-color: rgba(212, 175, 55, 0.2) !important;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.35) !important;
}

/* ĐẢM BẢO KHUNG HEADER LÀM MỐC TỌA ĐỘ */
#header .header-main .header-inner,
#header .header-main .flex-row {
    position: relative !important;
}


/* ==========================================================================
   32. GIAO DIỆN TRANG CỬA HÀNG (/cua-hang/) - TIÊN HIỆP STYLE
   ========================================================================== */
/* Ẩn khối đếm số lượng & hộp dropdown "Sắp xếp mặc định" */
.woocommerce-result-count,
.woocommerce-ordering {
    display: none !important;
}

/* Ẩn thanh sidebar bên trái bị trống & dòng chữ "You need to assign Widgets..." */
#shop-sidebar,
.shop-sidebar {
    display: none !important;
}

/* Kéo giãn danh sách sản phẩm tràn đều 100% khi đã ẩn Sidebar */
.category-page-row .large-9,
.category-page-row .col.large-9 {
    max-width: 100% !important;
    flex-basis: 100% !important;
    width: 100% !important;
}

/* Làm sáng đường dẫn Breadcrumb "TRANG CHỦ / CỬA HÀNG" ở góc trên bên trái */
.shop-page-title .breadcrumbs,
.shop-page-title .breadcrumbs a,
.woocommerce-breadcrumb,
.woocommerce-breadcrumb a {
    color: #94A3B8 !important;
    font-weight: 500 !important;
    font-size: 0.92rem !important;
    letter-spacing: 0.5px !important;
}

.shop-page-title .breadcrumbs a:hover,
.woocommerce-breadcrumb a:hover {
    color: #D4AF37 !important;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

/* Đổi màu chữ mục hiện tại (CỬA HÀNG) sang Vàng Ngà */
.shop-page-title .breadcrumbs .current,
.woocommerce-breadcrumb .current {
    color: #F3E5AB !important;
    font-weight: 700 !important;
}

/* Đổi nút "XEM NHANH" từ màu xám lam sang Hoàng Kim */
.product-small .quick-view,
a.quick-view {
    background: linear-gradient(135deg, #D4AF37 0%, #AA771C 100%) !important;
    color: #0A0B0E !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
    border: none !important;
    transition: all 0.25s ease !important;
}

.product-small .quick-view:hover,
a.quick-view:hover {
    background: linear-gradient(135deg, #FDE68A 0%, #D4AF37 100%) !important;
    color: #000000 !important;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6) !important;
}


/* ==========================================================================
   33. CỬA SỔ XEM NHANH / MUA NHANH (QUICK VIEW POPUP)
   ========================================================================== */
/* Đổi nền Popup từ trắng toát sang Đen Mực Cổ Phong viền vàng */
.product-lightbox,
.product-quick-view-container {
    background-color: #0D0F14 !important;
    background-image: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.12) 0%, rgba(13, 15, 20, 0.98) 75%) !important;
    border: 1px solid #D4AF37 !important;
    border-radius: 10px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 25px rgba(212, 175, 55, 0.25) !important;
    color: #E2E8F0 !important;
}

/* Hiển thị tiêu đề sản phẩm màu Vàng Ngà trong Popup */
.product-lightbox .product-title,
.product-lightbox .product-title a {
    color: #F3E5AB !important;
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.3) !important;
}

/* Giá tiền hiển thị sáng rực màu Vàng Bạch Kim */
.product-lightbox .price,
.product-lightbox .price .amount {
    color: #FDE68A !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
}

/* Nút tắt (X) ở góc Popup */
.mfp-close {
    color: #D4AF37 !important;
    opacity: 0.9 !important;
}


/* ==========================================================================
   34. TRANG CHI TIẾT SẢN PHẨM & FORM ĐÁNH GIÁ (TIÊN HIỆP STYLE)
   ========================================================================== */
/* Tiêu đề sản phẩm trang chi tiết */
.single-product .product-title {
    color: #F3E5AB !important;
    font-family: 'Cormorant Garamond', serif !important;
    font-weight: 700 !important;
}

/* Đổi nút "TIẾN HÀNH MUA NGAY" từ màu cam gạch sang Hoàng Kim Cổ */
.single-product button.single_add_to_cart_button,
.product-lightbox button.single_add_to_cart_button,
.single-product .cart button.button {
    background: linear-gradient(135deg, #D4AF37 0%, #AA771C 100%) !important;
    color: #0A0B0E !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    letter-spacing: 0.8px !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 12px 28px !important;
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35) !important;
    transition: all 0.25s ease !important;
}

.single-product button.single_add_to_cart_button:hover,
.product-lightbox button.single_add_to_cart_button:hover {
    background: linear-gradient(135deg, #FDE68A 0%, #D4AF37 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(212, 175, 55, 0.55) !important;
}

/* Tab "MÔ TẢ" và "ĐÁNH GIÁ (0)" hết bị mờ chìm */
.woocommerce-tabs ul.tabs,
.product-tabs {
    border-bottom: 1px solid rgba(212, 175, 55, 0.25) !important;
}

.woocommerce-tabs ul.tabs li a,
.product-tabs > li > a {
    color: #94A3B8 !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.6px !important;
    padding: 12px 18px !important;
    transition: all 0.2s ease !important;
}

/* Tab đang được chọn (Active) */
.woocommerce-tabs ul.tabs li.active a,
.product-tabs > li.active > a {
    color: #FDE68A !important;
    border-bottom: 2px solid #D4AF37 !important;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.woocommerce-tabs ul.tabs li a:hover,
.product-tabs > li > a:hover {
    color: #F3E5AB !important;
}

/* Khung form nhận xét & đánh giá */
#review_form_wrapper {
    background: rgba(13, 15, 20, 0.7) !important;
    border: 1px solid rgba(212, 175, 55, 0.25) !important;
    border-radius: 8px !important;
    padding: 25px !important;
    margin-top: 20px !important;
}

#reply-title {
    color: #F3E5AB !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
}

/* Ngôi sao đánh giá màu Vàng Kim */
.comment-form-rating .stars a,
p.stars span a {
    color: #D4AF37 !important;
}

/* Ô nhập nội dung đánh giá */
#commentform textarea#comment {
    background-color: #12151E !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    color: #F8FAFC !important;
    border-radius: 6px !important;
    padding: 12px 16px !important;
}

#commentform textarea#comment:focus {
    border-color: #D4AF37 !important;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3) !important;
}

/* Đổi nút "GỬI ĐI" từ màu xanh tím sang Hoàng Kim */
#commentform #submit,
#review_form #submit {
    background: linear-gradient(135deg, #D4AF37 0%, #AA771C 100%) !important;
    color: #0A0B0E !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 8px 30px !important;
    letter-spacing: 0.6px !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3) !important;
    transition: all 0.25s ease !important;
}

#commentform #submit:hover,
#review_form #submit:hover {
    background: linear-gradient(135deg, #FDE68A 0%, #D4AF37 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5) !important;
}


/* ==========================================================================
   35. HUY HIỆU CẢNH GIỚI VIP CHO BÌNH LUẬN (COMMENT VIP BADGES)
   ========================================================================== */
.monleo-comment-vip-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 2px 9px !important;
    border-radius: 9999px !important;
    letter-spacing: 0.4px !important;
    text-transform: uppercase !important;
    vertical-align: middle !important;
    margin-left: 6px !important;
    line-height: 1.4 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.25s ease !important;
}

.monleo-comment-vip-badge .vip-badge-star {
    font-size: 12px !important;
    line-height: 1 !important;
}

/* VIP 1: Phàm Cảnh - Ngọc Bích & Hoàng Kim Nhẹ */
.monleo-comment-vip-badge.vip-tier-1 {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.35) 100%) !important;
    border: 1px solid rgba(52, 211, 153, 0.6) !important;
    color: #6EE7B7 !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3) !important;
}

/* VIP 2: Tiên Cảnh - Tím Ánh Lam Tiên Khí */
.monleo-comment-vip-badge.vip-tier-2 {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(139, 92, 246, 0.4) 100%) !important;
    border: 1px solid rgba(167, 139, 250, 0.65) !important;
    color: #DDD6FE !important;
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.4) !important;
}

/* VIP 3: Thần Cảnh - Hoàng Kim Tối Thượng Lấp Lánh */
.monleo-comment-vip-badge.vip-tier-3 {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 50%, #B45309 100%) !important;
    border: 1px solid #FEF08A !important;
    color: #0F172A !important;
    font-weight: 900 !important;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.6), inset 0 0 8px rgba(254, 240, 138, 0.4) !important;
    animation: monleoVipGlow 2.5s infinite alternate ease-in-out !important;
}

@keyframes monleoVipGlow {
    from {
        box-shadow: 0 0 10px rgba(245, 158, 11, 0.4), inset 0 0 4px rgba(254, 240, 138, 0.2);
    }
    to {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.8), inset 0 0 10px rgba(254, 240, 138, 0.6);
        transform: scale(1.03);
    }
}

/* ========================================================
   36. MỨC GIÁ TIỀN SẢN PHẨM HOÀNG KIM (TIÊN HIỆP GOLD)
   ======================================================== */
.single-product .price,
.single-product .price .amount,
.single-product .price bdi,
.single-product .product-page-price,
.single-product .product-page-price .amount,
.single-product .product-page-price bdi,
.single-product .product-page-price .woocommerce-Price-currencySymbol,
.entry-summary .price,
.entry-summary .price .amount,
.entry-summary .price bdi,
.entry-summary .price .woocommerce-Price-currencySymbol,
.product-info .price,
.product-info .price .amount,
.product-info .price bdi,
.product-main .price,
.product-main .price .amount,
.product-main .price bdi,
.product-summary .price,
.product-summary .price .amount,
.product-summary .price bdi,
.price .amount,
.price bdi,
span.amount {
    color: #FDE68A !important;
    font-weight: 700 !important;
    text-shadow: 0 0 12px rgba(245, 158, 11, 0.4) !important;
}

.single-product .product-page-price {
    font-size: 1.65rem !important;
    margin: 10px 0 18px 0 !important;
    letter-spacing: 0.5px !important;
    display: block !important;
}

.single-product .product-page-price .woocommerce-Price-currencySymbol {
    font-size: 1.25rem !important;
    margin-left: 3px !important;
}

/* ========================================================
   37. KHUNG THÔNG BÁO & TRANG KẾT TOÁN NHÂN QUẢ (CHECKOUT)
   ======================================================== */
/* Ẩn triệt để thông báo rỗng không có chữ (tránh tick xanh đơn độc) */
.message-wrapper:empty,
.woocommerce-message:empty,
.message-container:empty {
    display: none !important;
}

/* Định dạng toàn diện các khung thông báo WooCommerce / Flatsome chuẩn Tiên Hiệp */
.message-container,
.message-container.container,
.message-container.success-color,
.message-container.alert-color {
    background: linear-gradient(135deg, rgba(20, 24, 33, 0.98) 0%, rgba(11, 14, 20, 0.98) 100%) !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    border-radius: 10px !important;
    padding: 14px 22px !important;
    color: #F3E5AB !important;
    font-size: 14.5px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 18px rgba(212, 175, 55, 0.2) !important;
    margin: 18px auto 28px auto !important;
    max-width: 1080px !important;
    text-align: center !important;
}

.message-container.success-color {
    border-color: rgba(16, 185, 129, 0.5) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 18px rgba(16, 185, 129, 0.25) !important;
}

.message-container .message-icon,
.message-container .icon-checkmark {
    color: #10B981 !important;
    font-size: 19px !important;
    margin-right: 8px !important;
    vertical-align: middle !important;
}

.message-container,
.message-container span,
.message-container p {
    color: #F3E5AB !important;
    font-weight: 500 !important;
}

.message-container a {
    color: #FDE68A !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
}

/* Khung giỏ hàng rỗng / thanh toán rỗng */
p.cart-empty.woocommerce-info {
    background: linear-gradient(135deg, rgba(20, 24, 33, 0.98) 0%, rgba(11, 14, 20, 0.98) 100%) !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    border-radius: 12px !important;
    color: #F3E5AB !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 20px 24px !important;
    max-width: 680px !important;
    margin: 30px auto 20px auto !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.2) !important;
    text-align: center !important;
}

p.return-to-shop {
    text-align: center !important;
    margin: 10px auto 40px auto !important;
}

p.return-to-shop a.button {
    background: linear-gradient(135deg, #D4AF37 0%, #AA771C 100%) !important;
    color: #0A0B0E !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 12px 28px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4) !important;
    transition: all 0.25s ease !important;
}

p.return-to-shop a.button:hover {
    background: linear-gradient(135deg, #FDE68A 0%, #D4AF37 100%) !important;
    color: #000 !important;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6) !important;
    transform: translateY(-2px) !important;
}


/* ==========================================================================
   32. GLOBAL RESPONSIVE & BUTTON POLISH (v2.5.0)
   Lớp tinh chỉnh cuối cùng cho toàn theme: co giãn mượt từ 320px đến 1920px,
   nút bấm đồng bộ kích thước/căn giữa, vùng chạm >= 44px trên cảm ứng.
   Luôn nằm CUỐI file để ghi đè các quy tắc cũ khi cần.
   ========================================================================== */

/* 32.1. Nền tảng: không tràn ngang, ảnh/video/bảng co theo khung */
*, *::before, *::after { box-sizing: border-box; }
img, video, svg, canvas, iframe { max-width: 100%; }
.page-wrapper, .container, .row, .col, .col-inner { min-width: 0; }
.entry-content, .page-wrapper { overflow-wrap: break-word; word-wrap: break-word; }
pre, code { white-space: pre-wrap; word-break: break-word; }

/* 32.2. Cỡ chữ co giãn theo màn hình (không cần breakpoint) */
.monleo-section-title   { font-size: clamp(17px, 1.4vw + 12px, 22px); min-width: 0; }
.monleo-hero-title      { font-size: clamp(22px, 3.2vw + 8px, 40px); }
.ranking-main-title     { font-size: clamp(22px, 2.6vw + 10px, 34px); }
.modal-header-title     { font-size: clamp(16px, 1vw + 12px, 19px); }

/* 32.3. Tiêu đề mục + liên kết "Xem tất cả" không rớt dòng xấu */
.monleo-section-header { gap: 12px; flex-wrap: nowrap; }
.monleo-section-more   { white-space: nowrap; flex: 0 0 auto; }
.monleo-section-title  { flex: 1 1 auto; line-height: 1.25; }
.monleo-section-title::before { flex: 0 0 4px; }

/* 32.4. Nút bấm đồng bộ: căn giữa, vừa khuôn, không tràn */
.btn-monleo-read-now, .btn-monleo-bookmark, .btn-monleo-continue,
.btn-monleo-follow, .btn-monleo-vip-cta, .btn-monleo-baochap-donate,
.btn-monleo-submit-comment, .monleo-btn-gold, .btn-rank-tab, .btn-mode-toggle,
.monleo-rank-tab-btn, .btn-rank-detail, .daoco-tab-btn, .btn-copy-acc,
.btn-modal-dismiss, .btn-footer-open-qr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.btn-monleo-read-now, .btn-monleo-bookmark, .btn-monleo-continue,
.btn-monleo-follow, .btn-monleo-vip-cta, .btn-monleo-baochap-donate,
.btn-monleo-submit-comment, .monleo-btn-gold {
    min-height: 42px;
}
.monleo-hero-actions > a, .monleo-hero-actions > button { flex: 1 1 auto; }

/* Bàn phím: viền focus rõ ràng, đúng tông hoàng kim */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [role="button"]:focus-visible {
    outline: 2px solid #D4AF37;
    outline-offset: 2px;
}
button:disabled, .button:disabled, .btn-copy-acc[disabled] {
    opacity: .55;
    cursor: not-allowed;
}

/* 32.5. Hàng tab/bộ lọc: cuộn ngang mượt thay vì xuống dòng lộn xộn */
.monleo-filter-bar, .daoco-nav-tabs, .monleo-ranking-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior-x: contain;
}
.monleo-filter-bar::-webkit-scrollbar, .daoco-nav-tabs::-webkit-scrollbar,
.monleo-ranking-tabs::-webkit-scrollbar { display: none; }
.monleo-filter-bar > *, .daoco-nav-tabs > *, .monleo-ranking-tabs > * {
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
}
@media (min-width: 900px) {
    .monleo-filter-bar { flex-wrap: wrap; overflow: visible; }
}

/* 32.6. Lưới truyện: số cột tăng giảm theo bề rộng */
@media (min-width: 1400px)                         { .monleo-manga-grid { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 1025px) and (max-width: 1399px) { .monleo-manga-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 769px) and (max-width: 1024px)  { .monleo-manga-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 560px) and (max-width: 768px)   { .monleo-manga-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (max-width: 559px)                          { .monleo-manga-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.manga-card-title, .podium-card-title, .chapter-card-title { overflow-wrap: anywhere; }

/* 32.7. Gói VIP: 3 → 2 → 1 cột theo bề rộng thật của thẻ */
.monleo-vip-pricing-grid,
.monleo-vip-pricing-grid[class] {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}

/* 32.8. Trang chi tiết truyện (single-manga): hero, thẻ chương */
.monleo-detail-hero { max-width: 100%; }
.monleo-detail-hero > div { min-width: 0; }
.monleo-chapter-card { gap: 12px; min-width: 0; }
.monleo-chapter-card .chapter-card-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.monleo-chapter-card .chapter-card-time,
.monleo-chapter-card .chapter-views-tag { flex: 0 0 auto; white-space: nowrap; }

@media (max-width: 768px) {
    .monleo-detail-hero {
        padding: 18px !important;
        gap: 18px !important;
        margin-bottom: 24px !important;
        justify-content: center;
    }
    .monleo-detail-hero > div:first-child {
        flex: 0 0 auto !important;
        width: min(62%, 240px) !important;
        max-width: 240px !important;
        margin: 0 auto;
    }
    .monleo-detail-hero > div:nth-child(2) {
        flex: 1 1 100% !important;
        width: 100%;
    }
    .monleo-detail-hero h1 { font-size: clamp(22px, 6vw, 30px) !important; line-height: 1.25 !important; text-align: center; }
    .monleo-detail-hero a[class*="btn-monleo"],
    .monleo-detail-hero button[class*="btn-monleo"] {
        flex: 1 1 100%;
        width: 100%;
        min-height: 46px;
        font-size: 14px;
    }
    .monleo-chapter-section { padding: 16px !important; }
    .monleo-chapter-card { padding: 12px 14px; }
}

/* 32.9. Bảng xếp hạng: hàng danh sách không tràn */
.monleo-rank-row-item { min-width: 0; gap: 12px; }
.monleo-rank-row-item > * { min-width: 0; }
@media (max-width: 600px) {
    .monleo-rank-row-item { padding: 12px; }
    .podium-card-desc { display: none; }
}

/* 32.10. Đạo Cơ (tài khoản) + Bão Chap: lưới co lại hợp lý */
@media (max-width: 900px) {
    .monleo-baochap-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .daoco-stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .daoco-stat-box { padding: 12px 8px; }
    .daoco-profile-header { flex-direction: column; align-items: stretch; gap: 14px; }
    .daoco-profile-main { flex-direction: column; align-items: center; text-align: center; }
    .daoco-user-pills { justify-content: center; flex-wrap: wrap; }
    .daoco-header-actions { width: 100%; }
    .daoco-header-actions > * { flex: 1 1 100%; width: 100%; }
    .daoco-manga-cards-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
    .daoco-form-box { padding: 16px; }
}
@media (max-width: 400px) {
    .monleo-baochap-stats-grid { grid-template-columns: 1fr; }
    .daoco-stats-grid { grid-template-columns: 1fr; }
}

/* 32.11. Form & ô nhập: 16px trên điện thoại để iOS không tự phóng to */
@media (max-width: 768px) {
    input[type="text"], input[type="email"], input[type="password"], input[type="search"],
    input[type="tel"], input[type="url"], input[type="number"], select, textarea,
    .monleo-input {
        font-size: 16px !important;
        min-height: 44px;
        max-width: 100%;
    }
    textarea { min-height: 110px; }
    .search-form-wrap { flex-direction: column; gap: 10px; }
    .search-form-wrap > * { width: 100%; }
    .monleo-comments-area { padding: 14px !important; }
    .monleo-comment-list .children { margin-left: 12px !important; padding-left: 10px; }
    .btn-monleo-submit-comment { width: 100%; }
    .monleo-pagination { flex-wrap: wrap; justify-content: center; gap: 6px; }
    .monleo-pagination a, .monleo-pagination span {
        min-width: 40px; min-height: 40px;
        display: inline-flex; align-items: center; justify-content: center;
    }
}

/* 32.12. Thanh điều hướng đáy (dock): vùng chạm lớn, tránh tai thỏ */
.monleo-mobile-bottom-dock { padding-bottom: env(safe-area-inset-bottom); }
.monleo-mobile-bottom-dock .dock-item { min-height: 56px; justify-content: center; }
.monleo-mobile-bottom-dock .dock-label { font-size: 11px; white-space: nowrap; }
@media (max-width: 768px) {
    body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}
@media (min-width: 769px) {
    .monleo-mobile-bottom-dock { display: none !important; }
}

/* 32.13. Thanh toán WooCommerce, nút đặt hàng, nút của Flatsome */
.button, button.button, input[type="submit"], .single_add_to_cart_button,
#place_order, .woocommerce a.button, .woocommerce button.button {
    max-width: 100%;
    white-space: normal;
    line-height: 1.25;
    touch-action: manipulation;
}
@media (max-width: 768px) {
    #place_order, .single_add_to_cart_button, .woocommerce #respond input#submit {
        width: 100%;
        min-height: 48px;
    }
    .woocommerce table.shop_table { font-size: 14px; }
}

/* 32.14. Màn hình rất nhỏ (<= 360px) */
@media (max-width: 360px) {
    .monleo-section-title { gap: 8px; }
    .monleo-hero-content { padding: 16px; }
    .btn-monleo-read-now, .btn-monleo-bookmark { font-size: 12.5px; padding: 10px 12px; }
    .monleo-chapter-card { flex-wrap: wrap; }
    .monleo-chapter-card .chapter-card-title { white-space: normal; }
}

/* 32.15. Màn hình rộng (>= 1600px): giữ nội dung gọn, dễ đọc */
@media (min-width: 1600px) {
    .page-wrapper > .container, .monleo-custom-footer .container { max-width: 1400px; }
}

/* 32.16. Giảm chuyển động / chế độ in */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
@media print {
    .monleo-mobile-bottom-dock, .monleo-custom-footer, #header { display: none !important; }
}
