:root {
    --bg-body: #f5f7fb;
    --bg-card: #ffffff;
    --bg-sidebar: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #eff6ff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.03), 0 1px 3px 0 rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.02);
    --transition: all 0.2s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.5;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
}
h1 { font-size: 2rem; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.btn-primary, .btn-outline, .btn-danger, .btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    background: none;
}
.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-outline {
    border: 1px solid var(--border-medium);
    color: var(--text-secondary);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}
.btn-danger {
    background: var(--danger);
    color: white;
}
.btn-danger:hover {
    background: #dc2626;
}
.btn-sm {
    padding: 4px 12px;
    font-size: 0.75rem;
}
.btn-block {
    width: 100%;
    justify-content: center;
}

.site-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.95);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 12px 0;
    gap: 16px;
}
.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}
.main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.main-nav a {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
/* Nút đăng nhập / đăng ký trên header PC (mobile ẩn, dùng bottom nav) */
.hdr-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.hdr-login {
    color: var(--text-primary);
    border: 1.5px solid var(--gray-200);
    background: #fff;
}
.hdr-login:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.hdr-register {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    box-shadow: 0 4px 12px -4px rgba(249, 115, 22, 0.5);
}
.hdr-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -4px rgba(249, 115, 22, 0.6);
    color: #fff;
}
@media (max-width: 768px) {
    .hdr-btn { display: none; }
}

/* Mobile: tùy chọn dạng lưới của Thư viện & Tác phẩm tác giả & Tìm kiếm hiển thị 2 cột (giữ tùy chọn danh sách) */
@media (max-width: 768px) {
    .novel-list-container.grid-view.grid-view {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        margin: 20px 0;
    }
    .novel-list-container.grid-view .novel-item {
        background: var(--bg-card);
        border-radius: var(--radius-lg);
        overflow: hidden;
        box-shadow: var(--shadow-sm);
        display: block;
    }
    .novel-list-container.grid-view .novel-cover img {
        width: 100%;
        aspect-ratio: 2/3;
        object-fit: cover;
        display: block;
    }
    .novel-list-container.grid-view .novel-info {
        padding: 10px;
    }
    .novel-list-container.grid-view .novel-title {
        font-size: 0.9rem;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 4px;
    }
    .novel-list-container.grid-view .novel-author {
        font-size: 0.72rem;
        color: var(--text-secondary);
        margin-bottom: 6px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .novel-list-container.grid-view .novel-meta {
        display: flex;
        justify-content: space-between;
        font-size: 0.68rem;
        color: var(--text-muted);
    }
    .novel-list-container.grid-view .novel-desc,
    .novel-list-container.grid-view .novel-last {
        display: none;
    }
    .novel-list-container.grid-view .status-badge {
        padding: 2px 8px;
        font-size: 0.65rem;
    }
    /* Mục Mới cập nhật ở home trên mobile: dùng dạng list gọn (CSS list ở media query phía dưới) */
    .update-grid-m.update-grid-m {
        display: none;
    }
    .update-card-m {
        background: var(--bg-card);
        border-radius: var(--radius-lg);
        overflow: hidden;
        box-shadow: var(--shadow-sm);
        text-decoration: none;
        color: inherit;
        display: block;
    }
    .update-card-m img {
        width: 100%;
        aspect-ratio: 2/3;
        object-fit: cover;
        display: block;
    }
    .update-card-m-info {
        padding: 10px;
    }
    .update-card-m-title {
        font-size: 0.9rem;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 4px;
    }
    .update-card-m-chap {
        font-size: 0.72rem;
        color: #ea580c;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
.gold-badge {
    background: #fef9c3;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #854d0e;
}
.user-menu {
    position: relative;
}
.username {
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}
.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    min-width: 150px;
    box-shadow: var(--shadow-md);
    margin-top: 8px;
    z-index: 10;
}
.user-menu:hover .user-dropdown {
    display: block;
}
.user-dropdown a {
    display: block;
    padding: 8px 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.user-dropdown a:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.lang-switch a {
    margin: 0 4px;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.lang-switch a.active {
    color: var(--primary);
    font-weight: 600;
}
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.site-main {
    min-height: 70vh;
    padding: 20px 0;
}

.hero-slider {
    margin-bottom: 20px;
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.hero-slide img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 20px 0 20px;
    flex-wrap: wrap;
}
.section-header h2 {
    font-size: 1.5rem;
}
.view-all {
    color: var(--primary);
    font-size: 0.9rem;
}
.view-all i {
    margin-left: 4px;
}

.novel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 28px;
    margin: 30px 0;
}
.novel-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.novel-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.card-cover {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
}
.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.novel-card:hover .card-cover img {
    transform: scale(1.03);
}
.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}
.status-badge.ongoing {
    background: rgba(245,158,11,0.9);
    color: white;
}
.status-badge.finished {
    background: rgba(16,185,129,0.9);
    color: white;
}
.card-info {
    padding: 14px;
}
.card-info h3 {
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}
.card-info .author {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.card-stats {
    display: flex;
    gap: 12px;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.description-preview {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.novel-card.compact .card-info {
    padding: 8px;
}
.novel-card.compact h3 {
    font-size: 0.85rem;
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin: 40px 0;
}
.rank-box, .recommend-box {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.rank-list {
    list-style: none;
    margin-top: 16px;
}
.rank-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    min-width: 0;
}
.rank-list li > a {
    min-width: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rank-num {
    font-weight: 700;
    width: 30px;
    color: var(--primary);
}
.rank-value {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.rec-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}
.rec-item a {
    display: flex;
    align-items: center;
    gap: 12px;
}
.rec-item img {
    width: 45px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: #f1f5f9;
}
.rec-item span {
    font-weight: 500;
}

.library-hero {
    text-align: center;
    margin: 0 0 32px;
}
.library-hero h1 {
    margin-bottom: 8px;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}
.library-hero p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.filter-section {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 28px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
    width: 100%;
    box-sizing: border-box;
}
.filter-section .filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-bottom: 18px;
    width: 100%;
}
.filter-section .filter-label {
    flex-shrink: 0;
    width: 80px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0;
}
.filter-section .filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
    width: 100%;
}
.filter-section .filter-option {
    flex: 0 0 auto;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.85rem;
    background: var(--bg-sidebar);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}
.filter-section .filter-option:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}
.filter-section .filter-option.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.filter-section .word-range-inputs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex: 1;
    width: 100%;
}
.filter-section .word-range-inputs input {
    width: 130px;
    padding: 8px 12px;
    border: 1px solid var(--border-medium);
    border-radius: 40px;
    background: white;
}
.filter-section .filter-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}
.btn-filter {
    flex: 1;
    padding: 10px 24px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    background: var(--primary);
    color: white;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-filter:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}
.btn-reset {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-reset:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.result-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.view-toggle {
    display: flex;
    gap: 8px;
}
.view-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.view-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.novel-list-container.list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.novel-list-container.list-view .novel-item {
    display: flex;
    gap: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.novel-list-container.list-view .novel-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.novel-list-container.list-view .novel-cover {
    flex: 0 0 120px;
}
.novel-list-container.list-view .novel-cover img {
    width: 100%;
    border-radius: var(--radius-md);
    aspect-ratio: 2/3;
    object-fit: cover;
}
.novel-list-container.list-view .novel-info {
    flex: 1;
}
.novel-list-container.list-view .novel-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
}
.novel-list-container.list-view .novel-author {
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.novel-list-container.list-view .novel-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.novel-list-container.list-view .novel-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 12px;
}
.novel-list-container.list-view .novel-last {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.novel-list-container.list-view .novel-last a {
    color: var(--primary);
}
.novel-list-container.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 28px;
    margin: 32px 0;
}
.novel-list-container.grid-view .novel-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.novel-list-container.grid-view .novel-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.novel-list-container.grid-view .novel-cover img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}
.novel-list-container.grid-view .novel-info {
    padding: 12px;
}
.novel-list-container.grid-view .novel-title {
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}
.novel-list-container.grid-view .novel-author {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.novel-list-container.grid-view .novel-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.novel-list-container.grid-view .novel-desc,
.novel-list-container.grid-view .novel-last {
    display: none;
}
.novel-list-container.grid-view .status-badge {
    padding: 2px 8px;
    font-size: 0.65rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
}
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
}
.page-link:hover,
.page-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.novel-detail-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}
.detail-cover {
    max-width: 260px;
    width: 100%;
    margin: 0 auto;
}
.detail-cover img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}
/* 3 nút hành động đồng bộ kiểu pill, màu hài hòa */
.action-buttons .btn-block {
    margin-top: 0;
    width: 100%;
    border-radius: 26px;
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.action-buttons .btn-primary {
    background: linear-gradient(135deg, #fb923c, #ea580c);
    border: 1.5px solid transparent;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.3);
}
.action-buttons .btn-dark {
    background: #1f2937;
    border: 1.5px solid transparent;
}
.action-buttons .btn-outline {
    border-radius: 26px;
}
/* Share sau hàng tag */
.nd-share-top { margin-top: 12px; }
/* Khung giới thiệu trong cột info - kéo dài bằng đáy nút Theo dõi */
/* Khung giới thiệu: đáy khung ngang bằng đáy nút Theo dõi, nội dung dài thì cuộn bên trong */
.nd-desc-info { margin: 14px 0 0; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.nd-desc-info .description-content { flex: 1; overflow-y: auto; min-height: 0; max-height: 420px; }
/* JS sẽ ghi đè max-height theo chiều cao thực của cột trái để đáy khung ngang đáy nút Theo dõi */
/* Badge quyển trong danh sách chương (dự phòng) */
.detail-info {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.detail-info h1 {
    font-size: 2rem;
    margin-bottom: 12px;
    color: #1d2129;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 16px 0;
    color: #6b7280;
    font-size: 0.95rem;
}
.meta-row i {
    margin-right: 6px;
    color: #9ca3af;
}
.meta-row span {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.stats-row {
    display: flex;
    gap: 30px;
    background: #f8fafc;
    padding: 16px 20px;
    border-radius: 12px;
    margin: 20px 0;
}
.stat {
    text-align: center;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}
.stat span {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1d2129;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stat label {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 4px;
    white-space: nowrap;
}
.description {
    margin-top: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 20px;
}
.description h3 {
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 12px 0;
    padding: 0;
}
.description h3::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 16px;
    background: #3b82f6;
    border-radius: 2px;
    margin-right: 8px;
}
.description p {
    max-height: 200px;
    overflow-y: auto;
    line-height: 1.75;
    color: #4b5563;
    font-size: 0.95rem;
    margin: 0;
    padding-right: 8px;
    text-align: justify;
}
.description p::-webkit-scrollbar {
    width: 6px;
}
.description p::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}
.description p::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}
.description p::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}
.chapters-section {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-top: 30px;
    box-shadow: var(--shadow-sm);
}
.chapter-sort {
    display: flex;
    gap: 8px;
}
.sort-btn {
    background: none;
    border: 1px solid var(--border-light);
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
}
.sort-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.chapters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
    width: 100%;
}
.chapter-item {
    width: 100%;
}
.chapter-item a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 12px !important;
    background: var(--bg-sidebar);
    border-radius: var(--radius-md);
    transition: background 0.2s;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    font-size: 1rem !important;
    text-decoration: none !important;
    color: inherit !important;
}
.chapter-item a .chapter-title-info {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    max-width: calc(100% - 100px) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    margin-right: 8px !important;
    text-align: left !important;
}
.chapter-item a .word-count {
    font-size: 0.7rem !important;
    color: var(--text-muted);
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    text-align: right !important;
}
.chapter-item a:hover {
    background: var(--border-light);
}
.related-novels {
    margin-top: 40px;
}
.related-novels h3 {
    margin-bottom: 20px;
}

.read-container {
    max-width: 1280px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px 48px;
    box-shadow: var(--shadow-sm);
}
.read-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}
.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.breadcrumb a {
    color: var(--primary);
}
.read-controls {
    display: flex;
    gap: 10px;
}
.ctrl-btn {
    background: var(--bg-sidebar);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.2s;
}
.ctrl-btn:hover {
    background: var(--primary);
    color: white;
}
.chapter-content {
    font-size: 21px;
    line-height: 1.85;
    letter-spacing: 0.01em;
}
.chapter-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.6rem;
}
.content-body p {
    margin-bottom: 1.5em;
}
.chapter-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 48px;
}
.nav-btn {
    padding: 12px 28px;
    background: var(--bg-sidebar);
    border-radius: 50px;
    font-weight: 500;
}
.nav-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}
body.dark-read {
    background: #0f172a;
}
body.dark-read .read-container {
    background: #1e293b;
    color: #e2e8f0;
}
body.dark-read .ctrl-btn,
body.dark-read .nav-btn {
    background: #334155;
    color: white;
}
body.dark-read .breadcrumb {
    color: #94a3b8;
}

.rank-header {
    text-align: center;
    margin-bottom: 40px;
}
.rank-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
}
.rank-tab {
    background: var(--bg-card);
    border: none;
    padding: 8px 24px;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.rank-tab.active {
    background: var(--primary);
    color: white;
}
.rank-list-large {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.rank-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}
.rank-number {
    font-size: 2rem;
    font-weight: 800;
    width: 60px;
    text-align: center;
    color: var(--text-muted);
}
.rank-number.top-three {
    color: var(--warning);
}
.rank-item-link {
    display: flex;
    gap: 16px;
    flex: 1;
}
.rank-item-link img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}
.rank-info h3 {
    font-size: 1.1rem;
}
.rank-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}
.rank-score {
    font-weight: 600;
    color: var(--primary);
}

.author-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    margin: 30px 0;
}
.author-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}
.author-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.author-avatar i {
    font-size: 4rem;
    color: var(--text-muted);
}
.author-info h3 {
    margin: 12px 0 4px;
}
.author-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Trang tác giả kiểu mới - hiện đại, tinh tế */
.author-hero {
    position: relative;
    overflow: hidden;
}
.author-filter {
    max-width: 420px;
    margin: 22px auto 0;
    position: relative;
}
.author-filter i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}
.author-filter input {
    width: 100%;
    padding: 12px 18px 12px 44px;
    border: 1.5px solid var(--gray-200);
    border-radius: 999px;
    font-size: 0.95rem;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.author-filter input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}
.author-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
    margin: 24px 0 40px;
}
.author-card-modern {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px 18px 24px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}
.author-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #f59e0b, #ec4899);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.author-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.18);
    border-color: rgba(249, 115, 22, 0.25);
}
.author-card-modern:hover::before {
    opacity: 1;
}
.author-avatar-modern {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 auto 14px;
    box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.author-card-modern h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
}
.author-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.author-stats i {
    color: var(--primary);
    margin-right: 4px;
}
.author-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.87rem;
    font-weight: 600;
    color: var(--primary);
    padding: 8px 18px;
    border: 1.5px solid rgba(249, 115, 22, 0.35);
    border-radius: 999px;
    transition: background 0.2s, color 0.2s, gap 0.2s;
}
.author-card-modern:hover .author-cta {
    background: var(--primary);
    color: #fff;
    gap: 11px;
}
.author-empty-filter {
    text-align: center;
    color: var(--text-muted);
    padding: 30px 0;
}
/* Hero trang tác phẩm của tác giả */
.author-works-hero {
    text-align: center;
}
.author-works-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    box-shadow: 0 10px 22px -8px rgba(0, 0, 0, 0.35);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
@media (max-width: 640px) {
    .author-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .author-card-modern {
        padding: 22px 12px 18px;
    }
    .author-avatar-modern {
        width: 62px;
        height: 62px;
        font-size: 1.6rem;
    }
}

.user-center-layout {
    display: flex;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}
.user-sidebar {
    width: 264px;
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: sticky;
    top: 90px;
    height: fit-content;
}
.user-sidebar-header {
    padding: 28px 24px 22px;
    text-align: center;
    background: linear-gradient(160deg, var(--primary-light) 0%, #ffffff 90%);
    border-bottom: 1px solid var(--border-light);
}
.user-avatar {
    width: 76px;
    height: 76px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(59,130,246,.35);
    border: 3px solid #fff;
}
.user-sidebar-header h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}
.user-sidebar-header p {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.user-nav {
    padding: 16px 0;
}
.user-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 18px;
    color: var(--text-secondary);
    transition: var(--transition);
    border-radius: 12px;
    margin: 3px 12px;
    font-size: .92rem;
    text-decoration: none;
}
.user-nav-item i {
    width: 22px;
    font-size: 1.05rem;
    text-align: center;
    color: var(--text-muted);
    transition: var(--transition);
}
.user-nav-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.user-nav-item:hover i { color: var(--primary); }
.user-nav-item.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(59,130,246,.3);
}
.user-nav-item.active i { color: #fff; }
.user-nav-divider {
    height: 1px;
    background: var(--border-light);
    margin: 12px 0;
}
.user-content {
    flex: 1;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 28px;
    min-height: 500px;
}
.user-content form {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
    box-sizing: border-box;
    margin: 0;
}
.user-content .form-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}
.user-content .form-group label {
    min-width: 120px;
    max-width: 300px;
    width: 300px;
    text-align: left;
    font-weight: 500;
    white-space: nowrap;
    box-sizing: border-box;
}
.user-content .form-group input {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    outline: none;
    transition: border 0.2s;
    box-sizing: border-box;
}
.user-content .form-group input:focus {
    border-color: #409eff;
}
.user-content h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light);
}
.user-info-card {
    background: var(--bg-sidebar);
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}
.user-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}
.stat-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    padding: 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform 0.2s;
}
.stat-card:hover {
    transform: translateY(-4px);
}
.stat-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 8px;
}
.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}
.vip-badge {
    background: linear-gradient(135deg, #f9a825, #f57c00);
    padding: 2px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: bold;
    color: white;
}
.bookshelf-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.bookshelf-item {
    display: flex;
    gap: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}
.bookshelf-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.bookshelf-cover {
    width: 100px;
    flex-shrink: 0;
}
.bookshelf-cover img {
    width: 100%;
    border-radius: var(--radius-md);
    object-fit: cover;
    aspect-ratio: 2/3;
}
.bookshelf-info {
    flex: 1;
}
.bookshelf-info h3 {
    margin-bottom: 6px;
}
.bookshelf-info .author {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 8px;
}
.last-read {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.bookshelf-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}
.sign-card {
    background: linear-gradient(135deg, #fff, #fef9e6);
    border-radius: var(--radius-xl);
    padding: 32px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}
.sign-icon {
    font-size: 3rem;
    color: #f1c40f;
    margin-bottom: 16px;
}
.sign-reward-preview {
    background: white;
    border-radius: 60px;
    padding: 16px;
    margin: 20px auto;
    width: 80%;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05), 0 4px 6px rgba(0,0,0,0.02);
}
.reward-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #e67e22;
}
.sign-btn {
    background: linear-gradient(95deg, #f39c12, #e67e22);
    border: none;
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: bold;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
}
.sign-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(243,156,18,0.3);
}
.user-stats-mini {
    display: flex;
    justify-content: space-around;
    background: var(--bg-card);
    padding: 16px;
    border-radius: var(--radius-lg);
    margin: 20px 0;
}
.signed-badge {
    color: var(--success);
    font-weight: bold;
}
.rule-tip {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}
.vip-status-card {
    background: linear-gradient(145deg, #2c3e50, #1a2632);
    color: white;
    border-radius: var(--radius-xl);
    padding: 28px;
    text-align: center;
    margin-bottom: 30px;
}
.vip-status-card i {
    font-size: 3rem;
    color: gold;
}
.vip-status-card.active {
    background: linear-gradient(135deg, #f1c40f, #e67e22);
}
.vip-exchange-box, .vip-pay-box {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}
.month-selector {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.vip-select {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    background: white;
    font-size: 0.9rem;
}
.vip-form button {
    width: auto;
    padding: 10px 30px;
}
.data-table {
    width: 100%;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border-collapse: collapse;
}
.data-table th, .data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}
.data-table th {
    background: var(--bg-sidebar);
    font-weight: 600;
}
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
form {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-xl);
    max-width: 500px;
    margin: 20px auto;
    box-shadow: var(--shadow-sm);
}
form div {
    margin-bottom: 20px;
}
label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}
input, select, textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    font-size: 1rem;
}
button[type="submit"] {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
}
.error {
    color: var(--danger);
    background: #fee2e2;
    padding: 12px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}
.success, .alert {
    color: var(--success);
    background: #dcfce7;
    padding: 12px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}
.empty-state {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
}
.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    padding: 36px 0 0;
    margin-top: 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
    gap: 28px;
    padding-bottom: 28px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 12px;
}
.footer-logo img { max-height: 38px; width: auto; }
.footer-logo-img { max-height: 44px !important; }
.footer-logo span { background: linear-gradient(135deg, #f97316, #ea580c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-desc { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; margin: 0 0 16px; max-width: 300px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border: 1.5px solid var(--border-light); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 1rem; text-decoration: none; transition: var(--transition); }
.footer-social a:hover { border-color: #f97316; color: #f97316; }
.footer-col h4 { font-size: 0.8rem; letter-spacing: 1.5px; color: var(--text-secondary); margin: 0 0 14px; font-weight: 700; }
.footer-col a { display: block; font-size: 0.92rem; color: var(--text-primary); text-decoration: none; padding: 5px 0; }
.footer-col a:hover { color: #f97316; }
.footer-bottom { border-top: 1px solid var(--border-light); padding: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; font-size: 0.85rem; color: var(--text-muted); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 0.85rem; color: var(--text-secondary); text-decoration: none; }
.footer-legal a:hover { color: #f97316; }
/* Trang tĩnh */
.static-page { background: var(--bg-card); border-radius: var(--radius-xl); padding: 28px; margin: 20px 0; box-shadow: var(--shadow-sm); max-width: 860px; }
.static-page h1 { font-size: 1.5rem; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); }
.static-page-content { line-height: 1.85; color: var(--text-primary); font-size: 0.95rem; }
.static-page-content h3 { font-size: 1.05rem; margin: 20px 0 8px; }
.static-page-content ul { padding-left: 20px; }
.static-page-content li { margin-bottom: 6px; }
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}
.search-overlay.active {
    visibility: visible;
    opacity: 1;
}
.search-modal {
    background: var(--bg-card, #fff);
    border-radius: var(--radius-xl, 28px);
    max-width: 90%;
    width: 500px;
    padding: 24px;
    box-shadow: var(--shadow-lg, 0 20px 25px -5px rgba(0,0,0,0.1));
    transform: scale(0.9);
    transition: transform 0.2s ease;
}
.search-overlay.active .search-modal {
    transform: scale(1);
}
.search-modal h3 {
    margin-bottom: 16px;
    font-size: 1.3rem;
}
.search-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}
.search-input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-medium, #e2e8f0);
    border-radius: 40px;
    font-size: 1rem;
    outline: none;
    transition: 0.2s;
}
.search-input-group input:focus {
    border-color: var(--primary, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.search-modal button {
    background: var(--primary, #3b82f6);
    color: white;
    border: none;
    padding: 0 24px;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}
.search-modal button:hover {
    background: var(--primary-dark, #2563eb);
}
.search-close {
    text-align: right;
    margin-bottom: 8px;
}
.search-close button {
    background: transparent;
    color: var(--text-secondary, #475569);
    font-size: 1.2rem;
    padding: 4px 8px;
}
.search-tip {
    font-size: 0.75rem;
    color: var(--text-muted, #94a3b8);
    text-align: center;
}
.search-icon-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-secondary, #475569);
    transition: color 0.2s;
}
.search-icon-btn:hover {
    color: var(--primary, #3b82f6);
}
.btn-icon {
    background: #f1f5f9;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #475569;
}
.btn-icon:hover {
    background: var(--primary, #3b82f6);
    color: white;
}

.pay-method {
    margin: 15px 0;
}
.pay-method label {
    margin-right: 15px;
    font-weight: normal;
}
.pay-method input {
    margin-right: 5px;
}

.chapter-update-table {
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    overflow-x: auto;
}
.update-table {
    width: 100%;
    border-collapse: collapse;
}
.update-table th,
.update-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}
.update-table th {
    background: var(--bg-sidebar);
    font-weight: 600;
}
.update-table tr:hover {
    background: var(--bg-sidebar);
}

.rank-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
}
.rank-col {
    flex: 1;
    min-width: 0;
}
.rank-box.empty-placeholder {
    min-height: 280px;
    background: #f9fafb;
    border-radius: 20px;
    border: 1px solid var(--border-light);
}
.random-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.8rem;
}
.random-tag {
    background: #f1f5f9;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    text-decoration: none;
    color: #334155;
}
.random-tag:hover {
    background: var(--primary);
    color: white;
}

.description-content {
    padding-right: 8px;
    line-height: 1.7;
    color: #4b5563;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.description-content::-webkit-scrollbar {
    width: 5px;
}
.description-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.description-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.volume-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    background: #f5f7fa;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
}
.volume-header:hover {
    background: #e9edf2;
}
.volume-header .toggle-icon {
    font-size: 14px;
    transition: transform 0.2s;
}
.volume-header .toggle-icon.open {
    transform: rotate(90deg);
}
.volume-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}
.volume-chapter-count {
    font-size: 0.8rem;
    color: #6c757d;
}
.volume-chapters {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px 16px !important;
    padding: 12px 8px !important;
    margin-bottom: 10px !important;
}
.chapter-item {
    list-style: none;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 8px;
    transition: all 0.2s;
    overflow: hidden;
}
.chapter-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59,130,246,0.1);
}
.chapter-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #1e293b;
    gap: 8px;
}
.chapter-item a:hover {
    color: #3b82f6;
}
.chapter-title-info {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}
.word-count {
    font-size: 0.7rem;
    color: #94a3b8;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.search-header {
    text-align: center;
    margin-bottom: 32px;
}
.search-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.search-subtitle {
    color: #6c757d;
}
.search-captcha-box {
    max-width: 400px;
    margin: 20px auto;
    text-align: center;
}
.search-captcha-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 16px;
}
.search-captcha-input-group {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.search-captcha-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 48px;
}
.search-captcha-img {
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
}
.search-captcha-submit {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 48px;
    margin-top: 16px;
    cursor: pointer;
}
.search-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: 24px;
    margin-top: 32px;
}
.search-empty p {
    color: #6c757d;
}
.search-result-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px 0 20px;
}
.search-result-count {
    color: #4b5563;
}
.search-view-toggle {
    display: flex;
    gap: 8px;
}
.search-view-toggle .view-btn {
    background: #e2e8f0;
    border: none;
    padding: 6px 16px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}
.search-view-toggle .view-btn:first-child {
    background: #e2e8f0;
}
.search-view-toggle .view-btn:last-child {
    background: transparent;
    border: 1px solid #cbd5e1;
}
.search-novel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 28px;
}
.search-novel-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.2s;
    border: 1px solid #eef2f6;
}
.search-novel-card:hover {
    transform: translateY(-2px);
}
.search-novel-cover {
    position: relative;
}
.search-novel-cover img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}
.search-novel-cover .status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    color: white;
}
.search-novel-info {
    padding: 12px;
}
.search-novel-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-novel-title a {
    text-decoration: none;
    color: #1e293b;
}
.search-novel-author {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 8px;
}
.search-novel-meta {
    display: flex;
    gap: 12px;
    font-size: 0.7rem;
    color: #94a3b8;
}
.search-novel-desc {
    display: none;
}
.search-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
}
.search-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #475569;
    text-decoration: none;
}
.search-pagination .page-link.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}
.search-welcome {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: 24px;
    margin-top: 32px;
}
.search-welcome p {
    color: #6c757d;
}

@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    .novel-detail-grid {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 24px;
    }
    .detail-cover {
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .site-main {
        padding: 6px 0;
    }
    .container {
        padding: 0 6px;
    }

    .main-nav {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
    .header-inner {
        flex-wrap: nowrap;
        gap: 10px;
    }
    .header-inner .logo {
        flex: 1 1 auto;
        min-width: 0;
    }
    .header-inner .logo a {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }
    .header-actions {
        flex-wrap: nowrap;
    }
    .main-nav.show {
        display: block;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        padding: 12px;
        border-bottom: 1px solid var(--border-light);
        box-shadow: var(--shadow-md);
        z-index: 99;
    }
    .main-nav.show ul {
        flex-direction: column;
        gap: 1rem;
    }

    .header-actions {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    .header-actions .btn-outline,
    .header-actions .btn-primary {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        padding: 6px 12px;
        font-size: 0.75rem;
        white-space: nowrap;
        line-height: 1.2;
    }
    .header-actions .gold-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    .header-actions .lang-switch {
        display: none;
    }
    .header-actions .username {
        font-size: 0.85rem;
    }

    .hero-slider {
        border-radius: 12px;
        margin-bottom: 10px;
    }
    .hero-slide img {
        height: 180px;
    }

    .section-header {
        margin: 10px 0 8px;
    }
    .section-header h2 {
        font-size: 1.15rem;
    }
    .view-all {
        font-size: 0.8rem;
    }

    .novel-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin: 10px 0;
    }
    .novel-card {
        border-radius: 12px;
    }
    .card-info {
        padding: 6px;
    }
    .card-info h3 {
        font-size: 0.9rem;
    }
    .card-info .author {
        font-size: 0.7rem;
        margin-bottom: 4px;
    }
    .card-stats {
        font-size: 0.65rem;
        gap: 6px;
    }
    .status-badge {
        top: 6px;
        right: 6px;
        padding: 2px 8px;
        font-size: 0.6rem;
    }

    .two-columns {
        grid-template-columns: 1fr;
    }

    .chapter-update-table {
        border-radius: 14px;
    }
    .update-table,
    .update-table tbody,
    .update-table tr,
    .update-table td {
        display: block;
        width: 100%;
    }
    .update-table thead {
        display: none;
    }
    .update-table tr {
        padding: 8px;
        border-bottom: 1px solid #eef2f6;
        background: #fff;
    }
    .update-table tr:last-child {
        border-bottom: none;
    }
    .update-table td {
        padding: 3px 0;
        border: none;
        font-size: 0.85rem;
        color: #475569;
    }
    .update-table td:first-child {
        color: #3b82f6;
        font-weight: 600;
        font-size: 0.75rem;
        margin-bottom: 4px;
    }
    .update-table td:nth-child(2) a {
        font-size: 1rem;
        font-weight: 600;
        color: #1e293b;
    }
    .update-table td:nth-child(4) a {
        color: #3b82f6;
    }

    .rank-row {
        display: block;
        margin: 10px 0;
    }
    .rank-col {
        margin-bottom: 8px;
    }
    .rank-box {
        padding: 8px;
        border-radius: 14px;
    }
    .rank-box h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    .rank-list li {
        padding: 8px 0;
        font-size: 0.85rem;
        gap: 8px;
    }
    .rank-num {
        width: 22px;
        font-size: 0.85rem;
    }
    .rank-value {
        font-size: 0.7rem;
    }
    .rank-box.empty-placeholder {
        min-height: 60px;
    }

    .random-tags {
        gap: 8px;
    }
    .random-tag {
        padding: 4px 12px;
        font-size: 0.75rem;
    }

    /* Chi tiết truyện mobile: dùng hero giữa trang, ẩn layout PC */
    .novel-detail-grid {
        display: none;
    }

    .novel-detail-page .nd-mhero { display: block; background: var(--bg-card); border-radius: var(--radius-xl); padding: 22px 16px; margin-bottom: 14px; box-shadow: var(--shadow-sm); text-align: center; }
    .nd-mhero-cover img { width: 160px; border-radius: 12px; margin: 0 auto 12px; box-shadow: var(--shadow-md); }
    .nd-mhero-title { font-size: 1.35rem; margin: 0 0 10px; line-height: 1.4; }
    .nd-mhero-meta { display: flex; justify-content: center; gap: 8px 18px; flex-wrap: wrap; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 6px; }
    .nd-mhero-meta a { color: #f97316; font-weight: 600; }
    .nd-meta-item { display: inline-flex; align-items: center; }
    .nd-meta-item i { color: #f97316; margin-right: 4px; }
    .nd-mhero .nd-rating { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 8px 0; font-size: 0.85rem; flex-wrap: wrap; }
    .nd-mhero .nd-tags { display: flex; justify-content: center; gap: 8px; margin: 8px 0 12px; flex-wrap: wrap; }
    .nd-mhero-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
    .nd-mhero .nd-btn { display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px; padding: 13px; border-radius: 26px; font-size: 1rem; font-weight: 700; }
    .nd-share-m { justify-content: center; margin-top: 14px; }
    .nd-synopsis-m { display: block; text-align: left; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-light); }
    .nd-synopsis-m h3 { font-size: 1rem; margin: 0 0 8px; }
    .nd-synopsis-content { font-size: 0.92rem; line-height: 1.75; color: var(--text-secondary); }
    .nd-synopsis-content.collapsed { max-height: 140px; overflow: hidden; position: relative; }
    .nd-synopsis-content.collapsed::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(transparent, var(--bg-card)); }
    .nd-readmore { background: none; border: none; color: #f97316; font-weight: 600; font-size: 0.9rem; cursor: pointer; padding: 8px 0 0; }
    .detail-cover {
        max-width: 130px;
        margin: 0;
    }
    .detail-cover img {
        border-radius: 10px;
    }
    .action-buttons {
        gap: 8px;
        margin-top: 12px;
        flex-direction: column;
    }
    .action-buttons .btn-primary,
    .action-buttons .btn-outline {
        padding: 8px 12px;
        font-size: 0.8rem;
        border-radius: 30px;
    }
    .detail-info h1 {
        font-size: 1.15rem;
        line-height: 1.3;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .meta-row {
        gap: 6px 10px;
        font-size: 0.75rem;
        line-height: 1.5;
        margin: 8px 0;
    }

    .stats-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 10px;
        margin: 12px 0;
        border-radius: 10px;
    }
    .stat span {
        font-size: clamp(0.85rem, 4vw, 1.15rem);
        line-height: 1.2;
    }
    .stat label {
        font-size: 0.65rem;
        margin-top: 2px;
    }

    .description {
        padding: 8px;
        border-radius: 10px;
        margin-top: 12px;
    }
    .description h3 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    .description-content {
        max-height: 180px;
        font-size: 0.85rem;
        line-height: 1.7;
    }
    .description p {
        font-size: 0.85rem;
        line-height: 1.7;
    }

    .chapters-section {
        padding: 8px;
        border-radius: 16px;
        margin-top: 16px;
    }
    .chapters-section .section-header {
        margin: 0 0 12px;
    }
    .chapters-section .section-header h2 {
        font-size: 1rem;
    }
    .chapter-sort {
        gap: 6px;
    }
    .sort-btn {
        padding: 4px 10px;
        font-size: 0.75rem;
        border-radius: 14px;
    }
    .chapters-grid {
        grid-template-columns: 1fr !important;
    }
    .chapter-item a {
        padding: 8px 10px !important;
    }
    .chapter-item {
        padding: 6px 8px;
    }
    .chapter-title-info {
        font-size: 0.85rem !important;
        white-space: normal;
        word-break: break-word;
    }
    .word-count {
        font-size: 0.68rem;
    }
    .volume-header {
        padding: 8px;
        border-radius: 8px;
        margin-top: 6px;
    }
    .volume-header h3 {
        font-size: 0.88rem;
    }
    .volume-chapter-count {
        font-size: 0.7rem;
    }
    .volume-chapters {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
        padding: 8px 0 !important;
    }

    .read-container {
        padding: 12px 8px;
        border-radius: 10px;
    }
    .read-header {
        margin-bottom: 16px;
        gap: 10px;
    }
    .breadcrumb {
        font-size: 0.78rem;
        overflow-wrap: anywhere;
        word-break: break-word;
        flex: 1;
        min-width: 0;
        line-height: 1.5;
    }
    .read-controls {
        gap: 6px;
        flex-shrink: 0;
    }
    .ctrl-btn {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    .chapter-title {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    .chapter-content {
        font-size: 17px;
        line-height: 1.9;
    }
    .chapter-nav {
        flex-direction: row;
        gap: 8px;
        margin-top: 18px;
        align-items: stretch;
    }
    .chapter-nav .nav-btn {
        flex: 1;
        padding: 10px 8px;
        font-size: 0.8rem;
        text-align: center;
        border-radius: 30px;
    }

    .related-novels {
        margin-top: 20px;
    }
    .related-novels h3 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    .novel-grid .novel-card.compact h4 {
        font-size: 0.78rem;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .rank-header {
        margin-bottom: 20px;
    }
    .rank-header h1 {
        font-size: 1.5rem;
    }
    .rank-header p {
        font-size: 0.85rem;
    }
    .rank-tabs {
        gap: 8px;
        margin-bottom: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .rank-tab {
        padding: 6px 16px;
        font-size: 0.8rem;
        border-radius: 30px;
    }
    .rank-list-large {
        gap: 10px;
    }
    .rank-item {
        padding: 8px;
        border-radius: 14px;
        gap: 10px;
        flex-wrap: wrap;
    }
    .rank-number {
        width: 32px;
        font-size: 1.2rem;
    }
    .rank-item-link {
        gap: 12px;
    }
    .rank-item-link img {
        width: 50px;
        height: 66px;
        border-radius: 6px;
    }
    .rank-info h3 {
        font-size: 0.95rem;
        margin-bottom: 2px;
    }
    .rank-meta {
        gap: 10px;
        font-size: 0.72rem;
        flex-wrap: wrap;
    }
    .rank-score {
        font-size: 0.85rem;
        padding-left: 8px;
    }

    .user-center-layout {
        flex-direction: column;
        padding: 10px;
        gap: 12px;
    }
    .user-sidebar {
        width: 100%;
        position: static;
        border-radius: 14px;
        box-shadow: var(--shadow-sm);
    }
    .user-sidebar-header {
        padding: 8px;
    }
    .user-avatar {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    .user-sidebar-header h3 {
        font-size: 1rem;
    }
    .user-nav {
        padding: 8px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }
    .user-nav-item {
        flex-direction: column;
        padding: 10px 4px;
        margin: 0;
        border-radius: 10px;
        border-left: none;
        gap: 4px;
        justify-content: center;
        text-align: center;
    }
    .user-nav-item i {
        width: auto;
        font-size: 1.1rem;
    }
    .user-nav-item span {
        font-size: 0.7rem;
        line-height: 1.2;
    }
    .user-nav-item:hover {
        transform: none;
    }
    .user-nav-divider {
        grid-column: 1 / -1;
        margin: 4px 0;
    }
    .user-content {
        padding: 8px;
        border-radius: 14px;
        min-height: auto;
    }
    .user-content h2 {
        font-size: 1.2rem;
        margin-bottom: 14px;
        padding-bottom: 10px;
    }
    .user-content .form-group {
        flex-direction: column;
        align-items: stretch;
    }
    .user-content .form-group label {
        width: 100%;
        max-width: 100%;
        margin-bottom: 6px;
    }
    .user-info-card {
        padding: 8px;
        border-radius: 12px;
        margin-bottom: 16px;
    }
    .user-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 16px;
    }
    .stat-card {
        padding: 8px 6px;
        border-radius: 12px;
    }
    .stat-card i {
        font-size: 1.5rem;
    }
    .stat-card .stat-value {
        font-size: 1.15rem;
    }
    .stat-card > div:last-child {
        font-size: 0.75rem;
        color: #64748b;
    }

    .bookshelf-list {
        gap: 12px;
    }
    .bookshelf-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        padding: 8px;
        border-radius: 14px;
        gap: 12px;
    }
    .bookshelf-cover {
        width: 70px;
    }
    .bookshelf-info h3 {
        font-size: 0.95rem;
        margin-bottom: 4px;
    }
    .bookshelf-info .author {
        font-size: 0.75rem;
        margin-bottom: 6px;
    }
    .last-read {
        font-size: 0.75rem;
    }
    .bookshelf-actions {
        flex-direction: column;
        gap: 6px;
        align-items: stretch;
    }
    .bookshelf-actions .btn-sm {
        padding: 6px 10px;
        font-size: 0.72rem;
        white-space: nowrap;
    }

    .sign-card {
        padding: 12px 10px;
        border-radius: 18px;
    }
    .sign-icon {
        font-size: 2.2rem;
    }
    .sign-card h3 {
        font-size: 1.05rem;
    }
    .sign-reward-preview {
        width: 100%;
        padding: 8px;
        border-radius: 40px;
    }
    .reward-number {
        font-size: 1.8rem;
    }
    .sign-btn {
        padding: 10px 28px;
        font-size: 0.9rem;
    }
    .user-stats-mini {
        padding: 8px;
        font-size: 0.85rem;
    }
    .rule-tip {
        font-size: 0.72rem;
        line-height: 1.6;
        padding: 0 8px;
    }
    .days-selector {
        flex-direction: column;
        gap: 12px;
    }

    .vip-status-card {
        padding: 12px 10px;
        border-radius: 18px;
        margin-bottom: 18px;
    }
    .vip-status-card i {
        font-size: 2.2rem;
    }
    .status-text {
        font-size: 1.05rem;
        margin-top: 6px;
    }
    .vip-exchange-box,
    .vip-pay-box {
        padding: 8px;
        border-radius: 14px;
        margin-bottom: 16px;
    }
    .vip-exchange-box h3,
    .vip-pay-box h3 {
        font-size: 1rem;
    }
    .month-selector {
        gap: 8px;
        margin: 12px 0;
    }
    .month-selector label {
        font-size: 0.85rem;
    }
    .vip-select {
        min-width: 0;
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    .vip-form button {
        width: 100%;
        padding: 10px;
        font-size: 0.9rem;
    }

    .search-page {
        padding: 8px;
    }
    .search-title {
        font-size: 1.5rem;
    }
    .search-subtitle {
        font-size: 0.85rem;
    }
    .search-modal {
        width: 90%;
        padding: 12px;
    }
    .search-input-group {
        flex-direction: column;
    }
    .search-input-group button {
        padding: 10px;
    }
    .search-novel-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .search-novel-card {
        border-radius: 12px;
    }
    .search-novel-info {
        padding: 10px;
    }
    .search-novel-title {
        font-size: 0.9rem;
    }
    .search-result-bar {
        margin: 16px 0 12px;
    }
    .search-result-count {
        font-size: 0.82rem;
    }

    .library-hero h1 {
        font-size: 1.5rem;
    }
    .library-hero p {
        font-size: 0.85rem;
    }
    .filter-section {
        padding: 8px;
        border-radius: 16px;
        margin-bottom: 16px;
    }
    .filter-section .filter-group {
        flex-direction: column;
        align-items: flex-start;
    }
    .filter-section .filter-label {
        width: auto;
        font-size: 0.8rem;
    }
    .filter-section .filter-option {
        padding: 5px 12px;
        font-size: 0.75rem;
    }
    .filter-section .word-range-inputs input {
        width: 100%;
        flex: 1;
    }
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-actions {
        flex-direction: column;
    }
    .word-range .range-inputs {
        flex-wrap: wrap;
    }
    .word-range input {
        width: 100%;
    }
    .result-stats {
        font-size: 0.82rem;
        margin-bottom: 14px;
    }

    .novel-list-container.list-view .novel-item {
        padding: 8px;
        gap: 12px;
        border-radius: 14px;
    }
    .novel-list-container.list-view .novel-cover {
        flex: 0 0 85px;
    }
    .novel-list-container.list-view .novel-title {
        font-size: 1rem;
        margin-bottom: 4px;
    }
    .novel-list-container.list-view .novel-author {
        font-size: 0.75rem;
        margin-bottom: 6px;
    }
    .novel-list-container.list-view .novel-meta {
        gap: 10px;
        font-size: 0.72rem;
        margin-bottom: 6px;
    }
    .novel-list-container.list-view .novel-desc {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 6px;
    }
    .novel-list-container.list-view .novel-last {
        gap: 8px;
        font-size: 0.72rem;
    }
    .novel-list-container.list-view .novel-card {
        flex-direction: column;
    }
    .novel-list-container.list-view .card-cover {
        width: 100%;
    }

    .pagination {
        gap: 4px;
        margin: 20px 0;
    }
    .page-link {
        min-width: 34px;
        height: 34px;
        padding: 0 8px;
        font-size: 0.8rem;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .novel-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .card-info {
        padding: 5px;
    }
    .card-info h3 {
        font-size: 0.78rem;
    }
    .card-stats {
        display: none;
    }
    .card-info h3 {
        font-size: 0.85rem;
    }

    .header-actions .btn-outline,
    .header-actions .btn-primary {
        display: inline-flex !important;
        padding: 5px 10px;
        font-size: 0.72rem;
    }
    .header-actions .gold-badge {
        font-size: 0.7rem;
    }

    .novel-detail-grid {
        grid-template-columns: 110px 1fr;
        gap: 8px;
        padding: 8px;
    }
    .detail-cover {
        max-width: 110px;
    }
    .detail-info h1 {
        font-size: 1.05rem;
    }
    .meta-row {
        font-size: 0.72rem;
        gap: 6px 10px;
    }

    .stats-row {
        padding: 6px;
        gap: 6px;
    }
    .stat span {
        font-size: clamp(0.8rem, 4.2vw, 1rem);
    }
    .stat label {
        font-size: 0.6rem;
    }

    .chapters-section {
        padding: 8px;
    }
    .volume-header {
        padding: 10px 12px;
    }
    .volume-header h3 {
        font-size: 0.9rem;
    }
    .chapter-item {
        padding: 6px 8px !important;
    }
    .chapter-title-info {
        font-size: 0.8rem !important;
    }

    .user-nav {
        grid-template-columns: repeat(3, 1fr);
    }
    .user-nav-item span {
        font-size: 0.65rem;
    }

    .rank-item-link img {
        width: 44px;
        height: 58px;
    }
    .rank-info h3 {
        font-size: 0.9rem;
    }

    .search-novel-grid {
        gap: 8px;
    }
}
/* Mục cập nhật mới nhất: 1 hàng full cột */
.update-table2 { background: var(--bg-card); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); overflow: hidden; margin: 16px 0; }
/* Lưới 2 cột cho mobile, PC ẩn */
.update-grid-m { display: none; }
.update-row { display: grid; grid-template-columns: minmax(0, 2.4fr) 0.9fr 1fr 1.3fr 0.8fr; gap: 12px; align-items: center; padding: 11px 18px; }
.update-row.update-head { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: #9ca3af; border-bottom: 1px solid var(--border-light); background: #f8fafc; }
a.update-row { text-decoration: none; border-bottom: 1px solid #f1f5f9; transition: background 0.15s; }
a.update-row:last-child { border-bottom: none; }
a.update-row:hover { background: #fff7ed; }
.update-row .u-title { font-weight: 700; font-size: 1.02rem; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.update-row:hover .u-title { color: #ea580c; }
.update-row .u-cat, .update-row .u-author { font-size: 0.88rem; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.update-row .u-chap { font-size: 0.88rem; color: #ea580c; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.update-row .u-time { font-size: 0.8rem; color: #9ca3af; white-space: nowrap; text-align: right; }
.update-row .u-meta-m { display: none; }

/* Featured trang chủ: 4 cột PC */
.nd-similar-grid.home-featured-grid { grid-template-columns: repeat(5, 1fr); }
/* Badge trạng thái trên bìa */
.nd-similar-card .card-cover { position: relative; }
.nd-card-status { position: absolute; top: 6px; left: 6px; font-size: 0.65rem; font-weight: 700; padding: 2px 8px; border-radius: 8px; color: #fff; z-index: 2; box-shadow: 0 1px 4px rgba(0,0,0,0.25); }
.nd-card-status.done { background: #16a34a; }
.nd-card-status.ongoing { background: #f59e0b; }

/* ================= Trang chi tiết truyện ================= */
.nd-info-line { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-size: 0.92rem; color: var(--text-secondary); margin: 10px 0 4px; }
.nd-info-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.nd-info-item > i { color: #f97316; }
.nd-info-item a { color: #f97316; font-weight: 600; }
.nd-status { font-style: normal; background: #dcfce7; color: #16a34a; font-size: 0.75rem; padding: 2px 10px; border-radius: 10px; font-weight: 600; }
.nd-rating-stars { color: #f59e0b; cursor: pointer; letter-spacing: 2px; }
.nd-rating-text { color: var(--text-secondary); font-size: 0.85rem; }
.nd-tags { display: flex; gap: 8px; margin: 10px 0 4px; flex-wrap: wrap; }
.nd-tag { background: #f1f5f9; color: #475569; font-size: 0.82rem; padding: 5px 14px; border-radius: 14px; text-decoration: none; }
.nd-tag.vip { background: #fef3c7; color: #b45309; font-weight: 600; }
.btn-dark { background: #1f2937; color: #fff; }
.btn-dark:hover { background: #111827; color: #fff; }
.nd-btn-continue { background: #1f2937; color: #fff; }
.nd-btn-follow { background: #fff; color: #1f2937; border: 1.5px solid #e5e7eb; }
/* Hero mobile: ẩn trên PC */
.nd-mhero { display: none; }
/* nút dùng chung (modal đăng nhập, bình luận) */
.nd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 26px; font-size: 1rem; font-weight: 700; text-decoration: none; border: none; cursor: pointer; }
.nd-btn-read { background: linear-gradient(135deg, #fb923c, #ea580c); color: #fff; box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35); }

/* Nút share */
.nd-share-row { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.nd-share-label { font-weight: 600; color: var(--text-secondary); }
.nd-share-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; color: #fff; text-decoration: none; }
.nd-share-btn.fb { background: #1877f2; }
.nd-share-btn.x { background: #111; }
.nd-share-btn:hover { opacity: 0.88; color: #fff; }
/* Nút share icon-only nằm ngang hàng với tag thể loại */
.nd-tags { align-items: center; }
.nd-share-inline { display: inline-flex; align-items: center; gap: 8px; margin-left: 2px; }
.nd-share-ic { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 0.85rem; text-decoration: none; transition: all 0.2s; }
.nd-share-ic.fb { background: #1877f2; }
.nd-share-ic.x { background: #111; }
.nd-share-ic:hover { color: #fff; opacity: 0.88; transform: translateY(-2px); }

/* Danh sách chương kiểu mới */
.nd-chapters { background: var(--bg-card); border-radius: var(--radius-xl); padding: 20px; margin: 20px 0; box-shadow: var(--shadow-sm); }.nd-chap-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.nd-chap-head h2 { font-size: 1.25rem; margin: 0; display: flex; align-items: center; gap: 8px; }
.nd-chap-count { background: #eef2ff; color: #4f46e5; font-size: 0.8rem; font-weight: 600; padding: 3px 10px; border-radius: 12px; }
.nd-sort-btn { margin-left: auto; background: #eef2ff; color: #4f46e5; border: none; padding: 7px 14px; border-radius: 16px; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.nd-sort-btn:hover { background: #e0e7ff; }
.nd-chap-filter { display: flex; gap: 10px; margin-bottom: 14px; }
.nd-chap-search { position: relative; flex: 1; }
.nd-chap-search input { width: 100%; padding: 10px 36px 10px 14px; border: 1px solid var(--border-light); border-radius: 10px; font-size: 0.9rem; background: var(--bg-input); color: var(--text-primary); }
.nd-chap-search .fa-search { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #9ca3af; }
.nd-chap-filter select { padding: 10px 12px; border: 1px solid var(--border-light); border-radius: 10px; font-size: 0.9rem; background: var(--bg-input); color: var(--text-primary); max-width: 180px; }
.nd-volume-section { margin-bottom: 18px; }
.nd-volume-head { font-weight: 700; padding: 10px 16px; color: var(--text-primary); background: #f8fafc; border-radius: 10px; margin-bottom: 10px; font-size: .92rem; }
.nd-volume-head span { color: #9ca3af; font-weight: 400; font-size: 0.85rem; }
.nd-volume-head.collapsed .fa-chevron-down { transform: rotate(-90deg); }
.nd-volume-chapters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.nd-chap-list .chapter-item { border: 1px solid #eef2f6; border-radius: 10px; background: #fff; }
.nd-chap-list .chapter-item a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 6px; text-decoration: none; }
.nd-chap-list .chapter-title-info { font-size: 0.95rem; color: var(--text-primary); }
.nd-chap-list .ch-num { color: #0d9488; background: #f0fdfa; border: 1px solid #ccfbf1; font-size: 0.8rem; padding: 6px 8px; border-radius: 8px; margin-right: 10px; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; }
.nd-chap-list .ch-time { font-size: 0.78rem; color: #9ca3af; white-space: nowrap; }
.nd-chap-list .chapter-item a:hover .chapter-title-info { color: #f97316; }
.nd-loadmore { display: block; margin: 16px auto 4px; padding: 10px 28px; border-radius: 24px; border: 1.5px solid #f97316; background: #fff; color: #f97316; font-weight: 600; font-size: 0.9rem; cursor: pointer; }
.nd-loadmore:hover { background: #fff7ed; }

/* Truyện tương tự */
.nd-similar { margin: 20px 0; }
.nd-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.nd-sec-head h2 { font-size: 1.25rem; margin: 0; display: flex; align-items: center; gap: 8px; }
.nd-similar-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.nd-similar-card a { text-decoration: none; display: block; }
.nd-similar-card .card-cover { border-radius: 10px; overflow: hidden; aspect-ratio: 3/4; background: #e5e7eb; }
.nd-similar-card img { width: 100%; height: 100%; object-fit: cover; }
.nd-similar-card h4 { font-size: 0.9rem; margin: 8px 0 2px; color: var(--text-primary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nd-similar-time { font-size: 0.75rem; color: #9ca3af; }

/* Bình luận */
.nd-comments { background: var(--bg-card); border-radius: var(--radius-xl); padding: 20px; margin: 20px 0; box-shadow: var(--shadow-sm); }
.cmt-tabs { display: flex; gap: 6px; }
.cmt-tab { border: 1px solid var(--border-light); background: #fff; padding: 4px 10px; border-radius: 7px; font-size: 0.75rem; cursor: pointer; color: var(--text-secondary); }
.cmt-tab.active { background: #7c3aed; border-color: #7c3aed; color: #fff; font-weight: 600; }
.cmt-list { margin-top: 14px; }
.cmt-empty { text-align: center; color: #9ca3af; padding: 20px 0; font-size: 0.9rem; }
.cmt-item { border-bottom: 1px solid #f1f5f9; padding: 12px 0; }
.cmt-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.cmt-user { font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }
.cmt-time { font-size: 0.78rem; color: #9ca3af; }
.cmt-body { font-size: 0.95rem; line-height: 1.7; color: var(--text-primary); word-break: break-word; }
.cmt-foot { margin-top: 6px; }
.cmt-like { background: none; border: 1px solid var(--border-light); border-radius: 14px; padding: 3px 10px; font-size: 0.72rem; color: #9ca3af; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.cmt-like.liked { color: #f97316; border-color: #f97316; }
.cmt-more-wrap { text-align: center; }
.cmt-form { margin-top: 14px; }
.cmt-form textarea { width: 100%; border: 1px solid var(--border-light); border-radius: 12px; padding: 12px 14px; font-size: 0.95rem; resize: vertical; background: var(--bg-input); color: var(--text-primary); }
.cmt-form-foot { display: flex; justify-content: flex-end; align-items: center; margin-top: 10px; }
.cmt-hint { font-size: 0.85rem; color: #9ca3af; }
.cmt-submit { padding: 6px 22px !important; font-size: 0.82rem !important; }
.cmt-login-tip { text-align: center; padding: 16px; background: #f8fafc; border-radius: 12px; margin-top: 14px; }
.cmt-login-tip a { color: #4f46e5; font-weight: 600; }

/* Logo ảnh */
.site-header .logo img { max-height: 44px; width: auto; display: block; }

/* Modal đăng nhập */
.login-modal-overlay { display: none; position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,0.5); align-items: center; justify-content: center; padding: 20px; }
.login-modal-overlay.show { display: flex; }
.login-modal { background: #fff; border-radius: 16px; padding: 26px 22px; width: 100%; max-width: 380px; position: relative; box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
.login-modal h3 { text-align: center; margin: 0 0 18px; font-size: 1.2rem; }
.login-modal-close { position: absolute; top: 10px; right: 12px; background: none; border: none; font-size: 1.2rem; color: #9ca3af; cursor: pointer; }
.login-modal input[type="text"], .login-modal input[type="password"] { width: 100%; padding: 12px 14px; border: 1px solid var(--border-light); border-radius: 10px; margin-bottom: 12px; font-size: 0.95rem; }
.login-captcha-row { display: flex; gap: 10px; margin-bottom: 12px; }
.login-captcha-row input { flex: 1; margin-bottom: 0 !important; }
.login-captcha-row img { height: 46px; border-radius: 8px; cursor: pointer; }
.login-modal .nd-btn { margin-top: 4px; }
.login-modal-links { text-align: center; margin: 14px 0 0; font-size: 0.88rem; }
.login-modal-links a { color: #f97316; }

/* Menu chân mobile */
.mobile-bottom-nav { display: none; }

@media (max-width: 768px) {
    /* Cập nhật mới nhất mobile: gọn 2 dòng */
    .update-row.update-head { display: none; }
    .update-row { grid-template-columns: 1fr; gap: 3px; padding: 10px 12px; }
    .update-row .u-cat, .update-row .u-author, .update-row .u-chap, .update-row .u-time { display: none; }
    .update-row .u-meta-m { display: block; font-size: 0.78rem; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    /* Chương mobile: 1 cột */
    .nd-chapters { padding: 12px 8px; margin: 12px 0; }
    .nd-volume-chapters { grid-template-columns: 1fr; gap: 8px; }
    .nd-chap-list .chapter-item a { padding: 10px 8px; }
    .nd-chap-head h2 { font-size: 1.05rem; }
    .nd-chap-filter select { max-width: 120px; font-size: 0.8rem; }
    .nd-chap-search input { font-size: 0.85rem; }

    /* Truyện tương tự mobile 2 cột */
    .nd-similar-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .nd-similar-grid.home-featured-grid { grid-template-columns: repeat(2, 1fr); }

    /* Bình luận mobile */
    .nd-comments { padding: 12px 8px; margin: 12px 0; }

    /* Menu chân mobile */
    .mobile-bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 999; background: #fff; border-top: 1px solid var(--border-light); box-shadow: 0 -2px 12px rgba(0,0,0,0.06); padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
    .mobile-bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 0.68rem; color: #6b7280; text-decoration: none; padding: 2px 0; }
    .mobile-bottom-nav a i { font-size: 1.15rem; }
    .mobile-bottom-nav a.active { color: #f97316; font-weight: 600; }
    body { padding-bottom: 62px; }

    /* Footer mobile */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* ========== Trung tâm cá nhân (redesign) ========== */
.uc-page { padding: 0; background: transparent; box-shadow: none; }
.uc-hero {
    display: flex; align-items: center; gap: 20px;
    background: linear-gradient(120deg, #1e3a8a 0%, #3b82f6 60%, #60a5fa 100%);
    border-radius: var(--radius-lg); padding: 28px 32px; color: #fff;
    box-shadow: var(--shadow-md); position: relative; overflow: hidden;
    margin-bottom: 24px;
}
.uc-hero::after {
    content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
    background: rgba(255,255,255,.08); border-radius: 50%;
}
.uc-hero-avatar {
    width: 84px; height: 84px; border-radius: 50%; flex-shrink: 0;
    background: rgba(255,255,255,.18); border: 3px solid rgba(255,255,255,.5);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem; color: #fff; position: relative;
}
.uc-hero-crown {
    position: absolute; bottom: -2px; right: -2px; width: 30px; height: 30px;
    background: linear-gradient(135deg,#fbbf24,#f59e0b); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem; color: #fff; border: 2px solid #fff;
}
.uc-hero-info { flex: 1; min-width: 0; }
.uc-hero-name { font-size: 1.4rem; font-weight: 700; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.uc-hero-name .vip-tag { font-size: .7rem; }
.uc-hero-sub { font-size: .8rem; font-weight: 400; opacity: .85; background: rgba(255,255,255,.18); padding: 3px 12px; border-radius: 20px; }
.uc-hero-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: .88rem; opacity: .92; }
.uc-hero-meta i { margin-right: 6px; opacity: .8; }
.uc-hero-action { text-align: center; flex-shrink: 0; }
.uc-sign-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; color: #1d4ed8; font-weight: 700; font-size: .95rem;
    padding: 12px 28px; border-radius: 30px; text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,.18); transition: var(--transition);
}
.uc-sign-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.22); color: #1d4ed8; }
.uc-sign-hint { display: block; margin-top: 10px; font-size: .8rem; opacity: .9; }
.uc-sign-hint strong { font-size: 1rem; }
.uc-signed {
    display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 600;
    background: rgba(255,255,255,.16); padding: 12px 24px; border-radius: 30px;
}
.uc-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px;
}
.uc-stat {
    display: flex; align-items: center; gap: 14px; background: var(--bg-card);
    border: 1px solid var(--border-light); border-radius: var(--radius-md);
    padding: 18px; text-decoration: none; transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.uc-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-medium); }
.uc-stat-icon {
    width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff;
}
.uc-stat-gold .uc-stat-icon { background: linear-gradient(135deg,#fbbf24,#f59e0b); }
.uc-stat-sign .uc-stat-icon { background: linear-gradient(135deg,#34d399,#10b981); }
.uc-stat-book .uc-stat-icon { background: linear-gradient(135deg,#60a5fa,#3b82f6); }
.uc-stat-history .uc-stat-icon { background: linear-gradient(135deg,#a78bfa,#8b5cf6); }
.uc-stat-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.uc-stat-value { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.uc-stat-label { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }
.uc-stat-arrow { color: var(--text-muted); font-size: .8rem; }
.uc-quick {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.uc-quick-item {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius-md); padding: 22px 12px; text-decoration: none;
    color: var(--text-secondary); font-size: .88rem; font-weight: 500;
    transition: var(--transition); box-shadow: var(--shadow-sm); text-align: center;
}
.uc-quick-item i { font-size: 1.5rem; color: var(--primary); }
.uc-quick-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--primary); border-color: var(--primary); }
@media (max-width: 1100px) {
    .uc-stats { grid-template-columns: repeat(2, 1fr); }
    .uc-quick { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .uc-hero { flex-direction: column; text-align: center; padding: 24px 20px; }
    .uc-hero-meta { justify-content: center; }
    .uc-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .uc-stat { padding: 14px; }
    .uc-stat-value { font-size: 1.05rem; }
}
