/* 
 * FenriRealm Style Public User Profile Stylesheet
 * Version: 3.8.0
 */

.fenri-profile-wrapper {
    background-color: #0c0a12;
    color: #e2e8f0;
    min-height: 80vh;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding-bottom: 60px;
}

/* Header Section */
.fenri-header-card {
    position: relative;
    background-color: #13111c;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 0 0 20px 20px;
    padding: 60px 20px 40px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Edit Profile Action Button */
.fenri-banner-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
}

.fenri-btn-edit-profile {
    background: rgba(19, 17, 28, 0.85);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.fenri-btn-edit-profile:hover {
    background: var(--td-primary, #3b82f6);
    border-color: var(--td-primary, #3b82f6);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Edit Profile Dark Modal Styles */
.fenri-modal-dialog {
    max-width: 400px;
    width: calc(100% - 32px) !important;
    margin: 16px auto !important;
}

.fenri-modal-content {
    background-color: #13111c;
    border: 1px solid #28243b;
    border-radius: 18px;
    color: #ffffff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

.fenri-modal-header {
    border-bottom: 1px solid #231f33;
    padding: 14px 18px;
}

.fenri-modal-title {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.fenri-modal-body {
    padding: 16px;
}

.fenri-modal-notice {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #60a5fa;
    font-size: 11px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    line-height: 1.4;
}

.fenri-modal-options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fenri-modal-option-card {
    background-color: #1a1726;
    border: 1px solid #28243b;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fenri-modal-option-card:hover {
    background-color: #201c30;
    border-color: var(--td-primary, #3b82f6);
    color: #ffffff;
}

.fenri-modal-option-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(var(--bs-primary-rgb, 59, 130, 246), 0.15);
    color: var(--td-primary, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.fenri-modal-option-info {
    flex-grow: 1;
    min-width: 0;
}

.fenri-modal-option-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fenri-modal-option-desc {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fenri-modal-option-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

.fenri-option-arrow {
    color: #64748b;
    font-size: 12px;
}

.fenri-option-sub-btn {
    background: none;
    border: none;
    font-size: 13px;
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
}

@media (max-width: 576px) {
    .fenri-btn-edit-profile .fenri-btn-text {
        display: none;
    }
    .fenri-btn-edit-profile {
        padding: 0;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        justify-content: center;
        gap: 0;
        font-size: 14px;
    }
    .fenri-banner-actions {
        top: 12px;
        right: 12px;
    }
    .fenri-modal-option-desc {
        display: none;
    }
    .fenri-modal-option-title {
        font-size: 13px;
        white-space: normal;
    }
    .fenri-modal-body {
        padding: 12px;
    }
    .fenri-modal-header {
        padding: 12px 14px;
    }
}

.fenri-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(12, 10, 18, 0.6) 0%, rgba(12, 10, 18, 0.92) 100%);
    z-index: 1;
}

.fenri-header-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Avatar Aura Ring Container */
.fenri-avatar-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 18px;
}

.fenri-aura-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 2px dashed #3b82f6;
    animation: fenri-spin 20s linear infinite;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    z-index: 1;
}

@keyframes fenri-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.fenri-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #13111c;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.fenri-avatar-level-tag {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 12px;
    z-index: 3;
    border: 2px solid #13111c;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* User Name & Badges */
.fenri-user-name {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.fenri-badges-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.fenri-badge-vip {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000000;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.fenri-badge-rank {
    background: rgba(255, 255, 255, 0.08);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    text-transform: capitalize;
}

.fenri-badge-level {
    background: rgba(var(--bs-primary-rgb, 59, 130, 246), 0.15);
    color: var(--td-primary, #3b82f6);
    border: 1px solid rgba(var(--bs-primary-rgb, 59, 130, 246), 0.3);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
}

/* Tabs Navigation Bar */
.fenri-nav-bar {
    background-color: #110e19;
    border-bottom: 1px solid #1f1b2e;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.fenri-nav-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 15px;
    margin: 0;
    list-style: none;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.fenri-nav-tabs::-webkit-scrollbar {
    display: none;
}

.fenri-nav-item {
    flex: 0 0 auto;
}

.fenri-nav-link {
    display: inline-block;
    padding: 16px 20px;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

.fenri-nav-link:hover {
    color: #ffffff;
}

.fenri-nav-link.active {
    color: var(--td-primary, #3b82f6);
    border-bottom-color: var(--td-primary, #3b82f6);
}

/* Container & Tab Content */
.fenri-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 20px;
}

#fenri-tab-content {
    min-height: 300px;
    position: relative;
}

/* Loading Overlay */
.fenri-tab-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    color: #94a3b8;
}

.fenri-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(var(--bs-primary-rgb, 59, 130, 246), 0.2);
    border-top-color: var(--td-primary, #3b82f6);
    border-radius: 50%;
    animation: fenri-spin 0.8s linear infinite;
    margin-bottom: 12px;
}

/* Activity Stats Layout */
.fenri-stats-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 24px;
}

/* Outer Frame Panel for Activity Stats (Fenrir Realm Desktop Layout) */
.fenri-stats-wrapper-frame {
    background-color: #0f0d18;
    border: 1px solid #1f1b2e;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 24px;
}

.fenri-stats-top-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .fenri-stats-top-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.fenri-stats-top-row .fenri-stats-card-group {
    margin-bottom: 0;
}

/* Horizontal Compact Stats Card */
.fenri-stats-card-group {
    background-color: #161324;
    border: 1px solid #28233d;
    border-radius: 10px;
    padding: 0;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.fenri-stats-group-header {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    padding: 10px 14px;
    background-color: #1c192e;
    border-bottom: 1px solid #28233d;
    letter-spacing: -0.01em;
}

.fenri-stats-horizontal-grid {
    display: grid;
    background-color: #161324;
}

.fenri-stat-cell {
    padding: 16px 20px;
    text-align: left;
    border-right: 1px solid #28233d;
    border-bottom: 1px solid #28233d;
    transition: background-color 0.2s ease;
}

.fenri-stat-cell:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* 2 Columns Grid */
.fenri-grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.fenri-grid-cols-2 .fenri-stat-cell:nth-child(2n) {
    border-right: none;
}

.fenri-grid-cols-2 .fenri-stat-cell:nth-last-child(-n+2) {
    border-bottom: none;
}

.fenri-stat-cell.fenri-stat-cell-full {
    grid-column: span 2;
    border-right: none;
    border-bottom: none;
}

/* 4 Columns Grid (Novel Stats on Desktop) */
@media (min-width: 768px) {
    .fenri-grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    .fenri-grid-cols-4 .fenri-stat-cell {
        border-bottom: none;
    }
    .fenri-grid-cols-4 .fenri-stat-cell:nth-child(4n) {
        border-right: none;
    }
}

@media (max-width: 767.98px) {
    .fenri-grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .fenri-grid-cols-4 .fenri-stat-cell:nth-child(2n) {
        border-right: none;
    }
    .fenri-grid-cols-4 .fenri-stat-cell:nth-last-child(-n+2) {
        border-bottom: none;
    }
}

/* 3 Columns Grid (Account & Creator on Desktop) */
@media (min-width: 768px) {
    .fenri-grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .fenri-grid-cols-3 .fenri-stat-cell {
        border-bottom: none;
    }
    .fenri-grid-cols-3 .fenri-stat-cell:nth-child(3n) {
        border-right: none;
    }
}

@media (max-width: 767.98px) {
    .fenri-grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .fenri-grid-cols-3 .fenri-stat-cell:nth-child(2n) {
        border-right: none;
    }
    .fenri-grid-cols-3 .fenri-stat-cell:last-child {
        grid-column: span 2;
        border-right: none;
        border-bottom: none;
    }
}

.fenri-stat-label {
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 4px;
    line-height: 1.3;
}

.fenri-stat-value {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
}

.fenri-stat-value-time {
    font-size: 26px;
}

.fenri-stat-unit {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    margin-left: 3px;
    margin-right: 5px;
    letter-spacing: 0;
}

/* Library Sub-Tabs Navigation (Fenrir Realm Style) */
.fenri-library-subtabs-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #141122;
    border: 1px solid #231e36;
    border-radius: 10px;
    padding: 6px 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.fenri-library-subtabs-bar::-webkit-scrollbar {
    display: none;
}

.fenri-lib-subtab {
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    outline: none;
}

.fenri-lib-subtab:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.04);
}

.fenri-lib-subtab.active {
    color: #ef4444;
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.08);
}

.fenri-lib-empty-filter {
    padding: 40px 20px;
    text-align: center;
    color: #64748b;
}

/* Fallback legacy classes */
.fenri-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.fenri-stats-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.fenri-stat-box {
    background-color: #1a1726;
    border: 1px solid #28243b;
    border-radius: 12px;
    padding: 16px 20px;
    text-align: left;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.fenri-stat-box:hover {
    border-color: var(--td-primary, #3b82f6);
    transform: translateY(-2px);
}

.fenri-stat-label {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 6px;
}

.fenri-stat-value {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
}

/* Series & Library Grid Layout */
.fenri-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.fenri-view-toggle-btn {
    background: #1a1726;
    border: 1px solid #28243b;
    color: #cbd5e1;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.fenri-view-toggle-btn:hover {
    background: var(--td-primary, #3b82f6);
    color: #ffffff;
    border-color: var(--td-primary, #3b82f6);
    transform: scale(1.05);
}

.fenri-novel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.fenri-novel-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.fenri-novel-card:hover {
    transform: translateY(-4px);
}

.fenri-novel-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    background-color: #1a1726;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.fenri-novel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.fenri-novel-card:hover .fenri-novel-thumb img {
    transform: scale(1.05);
}

.fenri-badge-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--td-primary, rgba(59, 130, 246, 0.9));
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

.fenri-badge-reading {
    background: var(--td-primary, rgba(59, 130, 246, 0.9));
}

.fenri-badge-completed {
    background: rgba(16, 185, 129, 0.9);
}

.fenri-novel-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.fenri-novel-meta {
    font-size: 12px;
    color: #94a3b8;
}

/* List View Layout for Series */
.fenri-novel-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.fenri-list-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: #13111c;
    border: 1px solid #231f33;
    border-radius: 14px;
    padding: 14px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.fenri-list-card:hover {
    border-color: var(--td-primary, #3b82f6);
    transform: translateY(-2px);
}

.fenri-list-card:hover .fenri-list-title {
    color: var(--td-primary, #3b82f6);
}

.fenri-list-thumb {
    width: 100%;
    height: 180px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.fenri-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fenri-list-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* From 425px and up: Thumb on left, content on right */
@media (min-width: 425px) {
    .fenri-list-card {
        flex-direction: row;
        gap: 16px;
        padding: 16px;
    }
    .fenri-list-thumb {
        width: 110px;
        height: 146px;
    }
}

/* From 768px and up: List view splits into 2 columns */
@media (min-width: 768px) {
    .fenri-novel-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

.fenri-list-author {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 6px;
}

.fenri-status-badge {
    display: inline-block;
    background: rgba(var(--bs-primary-rgb, 59, 130, 246), 0.15);
    color: var(--td-primary, #3b82f6);
    border: 1px solid rgba(var(--bs-primary-rgb, 59, 130, 246), 0.3);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    align-self: flex-start;
}
 
.fenri-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fenri-list-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fenri-list-title {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
}

.fenri-list-excerpt {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.fenri-list-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.fenri-tag-pill {
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
}

/* History Rows Layout */
.fenri-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fenri-history-row {
    background-color: #13111c;
    border: 1px solid #231f33;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.fenri-history-row:hover {
    border-color: var(--td-primary, #3b82f6);
    background-color: #171524;
}

.fenri-history-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-grow: 1;
}

.fenri-history-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.fenri-history-details {
    display: flex;
    flex-direction: column;
}

.fenri-history-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.fenri-history-progress-text {
    font-size: 12px;
    color: #94a3b8;
}

.fenri-history-right {
    text-align: right;
    flex-shrink: 0;
}

.fenri-history-chap {
    font-size: 14px;
    font-weight: 800;
    color: var(--td-primary, #3b82f6);
    margin-bottom: 2px;
}

.fenri-history-time {
    font-size: 12px;
    color: #64748b;
}

/* Red Progress Line Bar at bottom of history row */
.fenri-history-bar-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.06);
}

.fenri-history-bar-fill {
    height: 100%;
    background-color: var(--td-primary, #3b82f6);
    border-radius: 0 2px 2px 0;
}

/* Comments Tab Layout */
.fenri-comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fenri-comment-card {
    display: block;
    background-color: #13111c;
    border: 1px solid #231f33;
    border-radius: 14px;
    padding: 18px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.fenri-comment-card:hover {
    border-color: var(--td-primary, #3b82f6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.fenri-comment-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.fenri-comment-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.fenri-comment-header-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
}

.fenri-comment-story-title {
    color: var(--td-primary, #3b82f6);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
    word-break: break-word;
    transition: color 0.2s ease;
}

.fenri-comment-card:hover .fenri-comment-story-title {
    color: var(--td-primary, #60a5fa);
}

.fenri-comment-date {
    font-size: 12px;
    color: #64748b;
}

.fenri-comment-body {
    background-color: #181524;
    border-radius: 10px;
    padding: 12px 16px;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.fenri-comment-footer {
    display: flex;
    align-items: center;
    gap: 16px;
}

.fenri-comment-reaction {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
}

.fenri-comment-reaction i {
    font-size: 14px;
}

.fenri-comment-reaction.like i { color: #10b981; }
.fenri-comment-reaction.dislike i { color: #ef4444; }

.fenri-comment-goto-btn {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--td-primary, #3b82f6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.fenri-comment-goto-btn:hover {
    color: #2563eb;
}

/* Empty state */
.fenri-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    background-color: #13111c;
    border-radius: 16px;
    border: 1px dashed #231f33;
}

.fenri-empty-state i {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* Pagination */
.fenri-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.fenri-page-btn {
    background-color: #1a1726;
    border: 1px solid #28243b;
    color: #cbd5e1;
    min-width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fenri-page-btn:hover,
.fenri-page-btn.active {
    background-color: var(--td-primary, #3b82f6);
    color: #ffffff;
    border-color: var(--td-primary, #3b82f6);
}

/* Responsive Breakpoints */
@media (min-width: 576px) {
    .fenri-novel-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

@media (min-width: 768px) {
    .fenri-novel-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

@media (min-width: 1024px) {
    .fenri-novel-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 18px;
    }
    .fenri-stats-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1400px) {
    .fenri-novel-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .fenri-header-card {
        padding: 40px 15px 30px;
    }
    .fenri-avatar-container {
        width: 110px;
        height: 110px;
    }
    .fenri-user-name {
        font-size: 22px;
    }
    .fenri-nav-link {
        padding: 14px 14px;
        font-size: 13px;
    }
    .fenri-stats-grid,
    .fenri-stats-grid-3,
    .fenri-stats-grid-4 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .fenri-stats-grid,
    .fenri-stats-grid-3,
    .fenri-stats-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   SYSTEM WINDOW & QUEST LOG PAGE STYLES (page-daily-tasks.php)
   ========================================================================== */
.fenri-quest-page-wrapper {
    background-color: #06060a;
    background-image: 
        radial-gradient(rgba(var(--bs-primary-rgb, 59, 130, 246), 0.12) 1px, transparent 1px),
        linear-gradient(to bottom, #090810 0%, #06060a 100%);
    background-size: 24px 24px, 100% 100%;
    color: #e2e8f0;
    min-height: 85vh;
}

/* System Header Banner */
.fenri-system-banner {
    background: #0d0c14;
    border: 1px solid rgba(var(--bs-primary-rgb, 59, 130, 246), 0.4);
    box-shadow: 0 0 20px rgba(var(--bs-primary-rgb, 59, 130, 246), 0.2);
}
.fenri-system-online-badge {
    background: rgba(var(--bs-primary-rgb, 59, 130, 246), 0.2);
    border: 1px solid var(--td-primary, #3b82f6);
}
.fenri-online-dot {
    width: 8px;
    height: 8px;
    background-color: var(--td-primary, #3b82f6);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--td-primary, #3b82f6);
    animation: fenri-pulse 1.5s infinite;
}
@keyframes fenri-pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

/* Player Card (Left Column) */
.fenri-player-card {
    background: #0e0d16;
    border: 1px solid rgba(var(--bs-primary-rgb, 59, 130, 246), 0.4);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}
.fenri-player-level-box,
.fenri-player-stat-row,
.fenri-mini-stat-card {
    background: #141220;
    border: 1px solid #231f33;
}
.fenri-exp-bar, .fenri-quest-progress-bar {
    height: 6px;
    background: #1e1b2e;
}
.fenri-exp-fill, .fenri-quest-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--td-primary, #3b82f6) 0%, rgba(var(--bs-primary-rgb, 59, 130, 246), 0.8) 100%);
    box-shadow: 0 0 10px rgba(var(--bs-primary-rgb, 59, 130, 246), 0.6);
    transition: width 0.3s ease;
}
.fenri-btn-store {
    background: linear-gradient(135deg, #1e1b2e 0%, #0e0d16 100%);
    color: var(--td-primary, #3b82f6);
    border: 1px solid rgba(var(--bs-primary-rgb, 59, 130, 246), 0.4);
    transition: all 0.2s ease;
}
.fenri-btn-store:hover {
    background: var(--td-primary, #3b82f6);
    color: #ffffff;
    border-color: var(--td-primary, #3b82f6);
    box-shadow: 0 0 15px rgba(var(--bs-primary-rgb, 59, 130, 246), 0.5);
}

/* Quest Log Main Card (Right Column) */
.fenri-quest-log-card {
    background: #0e0d16;
    border: 1px solid rgba(var(--bs-primary-rgb, 59, 130, 246), 0.4);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}
.fenri-quest-filters {
    display: inline-flex;
    background: #141220;
    padding: 3px;
    border-radius: 30px;
    border: 1px solid #231f33;
}
.fenri-filter-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
}
.fenri-filter-btn:hover {
    color: #ffffff;
}
.fenri-filter-btn.active {
    background: var(--td-primary, #3b82f6);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(var(--bs-primary-rgb, 59, 130, 246), 0.5);
}

/* Quest Item Card */
.fenri-quest-item-card {
    background: #141220;
    border: 1px solid #231f33;
    transition: all 0.2s ease;
}
.fenri-quest-item-card:hover {
    border-color: rgba(var(--bs-primary-rgb, 59, 130, 246), 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.fenri-quest-type-badge {
    background: rgba(var(--bs-primary-rgb, 59, 130, 246), 0.15);
    color: var(--td-primary, #3b82f6);
    border: 1px solid rgba(var(--bs-primary-rgb, 59, 130, 246), 0.3);
}

/* Status Badges */
.status-not-started {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.status-in-progress {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}
.status-completed {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Quest Action Buttons */
.fenri-quest-btn-action {
    background: linear-gradient(135deg, #1e1b2e 0%, #141220 100%);
    color: var(--td-primary, #3b82f6);
    border: 1px solid rgba(var(--bs-primary-rgb, 59, 130, 246), 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.fenri-quest-btn-action:hover:not(:disabled) {
    background: var(--td-primary, #3b82f6);
    color: #ffffff;
    border-color: var(--td-primary, #3b82f6);
    box-shadow: 0 0 12px rgba(var(--bs-primary-rgb, 59, 130, 246), 0.5);
}
.fenri-quest-btn-action.disabled, .fenri-quest-btn-action:disabled {
    background: #1e1b2e;
    color: #64748b;
    border-color: #334155;
    cursor: not-allowed;
    box-shadow: none;
}

/* Bounty Offline Card */
.fenri-bounty-offline-card {
    background: #090810;
    border: 1px dashed #231f33;
}
.extra-small {
    font-size: 11px;
}

/* Theme Color Utility Overrides */
.fenri-primary-text {
    color: var(--td-primary, #3b82f6) !important;
}
.fenri-primary-bg {
    background-color: var(--td-primary, #3b82f6) !important;
}
.fenri-primary-border {
    border-color: var(--td-primary, #3b82f6) !important;
}

/* ==========================================================================
   LIGHT MODE OVERRIDES FOR FENRI PROFILE & DAILY TASKS (body:not(.dark-mode))
   ========================================================================== */
body:not(.dark-mode) .fenri-profile-wrapper {
    background-color: #f8fafc;
    color: #1e293b;
}

body:not(.dark-mode) .fenri-header-card {
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body:not(.dark-mode) .fenri-user-name,
body.theme-light .fenri-user-name {
    color: #0f172a;
    text-shadow: none;
}

body:not(.dark-mode) .fenri-nav-bar,
body.theme-light .fenri-nav-bar {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body:not(.dark-mode) .fenri-nav-link,
body.theme-light .fenri-nav-link {
    color: #64748b;
}

body:not(.dark-mode) .fenri-nav-link:hover,
body.theme-light .fenri-nav-link:hover {
    color: #0f172a;
}

body:not(.dark-mode) .fenri-stats-title,
body.theme-light .fenri-stats-title {
    color: #0f172a;
}

body:not(.dark-mode) .fenri-stats-wrapper-frame,
body.theme-light .fenri-stats-wrapper-frame {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
}

body:not(.dark-mode) .fenri-stats-card-group,
body.theme-light .fenri-stats-card-group {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

body:not(.dark-mode) .fenri-stats-group-header,
body.theme-light .fenri-stats-group-header {
    background-color: #f8fafc;
    border-bottom-color: #e2e8f0;
    color: #0f172a;
}

body:not(.dark-mode) .fenri-stats-horizontal-grid,
body.theme-light .fenri-stats-horizontal-grid {
    background-color: #ffffff;
}

body:not(.dark-mode) .fenri-stat-cell,
body.theme-light .fenri-stat-cell {
    border-color: #e2e8f0;
}

body:not(.dark-mode) .fenri-stat-cell:hover,
body.theme-light .fenri-stat-cell:hover {
    background-color: #f8fafc;
}

body:not(.dark-mode) .fenri-stat-label,
body.theme-light .fenri-stat-label {
    color: #64748b;
}

body:not(.dark-mode) .fenri-stat-value,
body.theme-light .fenri-stat-value {
    color: #0f172a;
}

body:not(.dark-mode) .fenri-stat-unit,
body.theme-light .fenri-stat-unit {
    color: #64748b;
}

body:not(.dark-mode) .fenri-library-subtabs-bar,
body.theme-light .fenri-library-subtabs-bar {
    background-color: #f8fafc;
    border-color: #e2e8f0;
}

body:not(.dark-mode) .fenri-lib-subtab,
body.theme-light .fenri-lib-subtab {
    color: #64748b;
}

body:not(.dark-mode) .fenri-lib-subtab:hover,
body.theme-light .fenri-lib-subtab:hover {
    color: #0f172a;
    background-color: #f1f5f9;
}

body:not(.dark-mode) .fenri-lib-subtab.active,
body.theme-light .fenri-lib-subtab.active {
    color: #ef4444;
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.08);
}

/* Series & Library Cards (Light Mode) */
body:not(.dark-mode) .fenri-novel-card,
body.theme-light .fenri-novel-card,
body:not(.dark-mode) .fenri-list-card,
body.theme-light .fenri-list-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    color: #1e293b;
    padding: 8px 8px 12px 8px;
    border-radius: 14px;
}

body:not(.dark-mode) .fenri-novel-card:hover,
body.theme-light .fenri-novel-card:hover,
body:not(.dark-mode) .fenri-list-card:hover,
body.theme-light .fenri-list-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

body:not(.dark-mode) .fenri-novel-thumb,
body.theme-light .fenri-novel-thumb {
    background-color: #f1f5f9;
}

body:not(.dark-mode) .fenri-novel-title,
body.theme-light .fenri-novel-title,
body:not(.dark-mode) .fenri-novel-title a,
body.theme-light .fenri-novel-title a,
body:not(.dark-mode) .fenri-list-title,
body.theme-light .fenri-list-title {
    color: #0f172a !important;
}

body:not(.dark-mode) .fenri-novel-meta,
body.theme-light .fenri-novel-meta,
body:not(.dark-mode) .fenri-novel-author,
body.theme-light .fenri-novel-author,
body:not(.dark-mode) .fenri-list-author,
body.theme-light .fenri-list-author {
    color: #64748b !important;
}

body:not(.dark-mode) .fenri-list-excerpt,
body.theme-light .fenri-list-excerpt {
    color: #64748b;
}

body:not(.dark-mode) .fenri-tag-pill,
body.theme-light .fenri-tag-pill {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

body:not(.dark-mode) .fenri-view-toggle-btn,
body.theme-light .fenri-view-toggle-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

body:not(.dark-mode) .fenri-view-toggle-btn:hover,
body.theme-light .fenri-view-toggle-btn:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #94a3b8;
}

/* History Tab (Light Mode) */
body:not(.dark-mode) .fenri-history-row,
body.theme-light .fenri-history-row {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1e293b;
}

body:not(.dark-mode) .fenri-history-row:hover,
body.theme-light .fenri-history-row:hover {
    background-color: #f8fafc;
}

body:not(.dark-mode) .fenri-history-title,
body.theme-light .fenri-history-title {
    color: #0f172a;
}

body:not(.dark-mode) .fenri-history-bar-bg,
body.theme-light .fenri-history-bar-bg {
    background-color: #e2e8f0;
}

/* Comments Tab (Light Mode) */
body:not(.dark-mode) .fenri-comment-card,
body.theme-light .fenri-comment-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

body:not(.dark-mode) .fenri-comment-body,
body.theme-light .fenri-comment-body {
    background-color: #f8fafc;
    color: #334155;
}

/* Empty State & Pagination (Light Mode) */
body:not(.dark-mode) .fenri-empty-state,
body.theme-light .fenri-empty-state {
    background-color: #ffffff;
    border-color: #cbd5e1;
    color: #64748b;
}

body:not(.dark-mode) .fenri-page-btn,
body.theme-light .fenri-page-btn {
    background-color: #ffffff;
    border-color: #e2e8f0;
    color: #334155;
}

body:not(.dark-mode) .fenri-page-btn.active,
body.theme-light .fenri-page-btn.active {
    background-color: var(--td-primary, #3b82f6);
    border-color: var(--td-primary, #3b82f6);
    color: #ffffff;
}

/* Edit Profile Modal (Light Mode) */
body:not(.dark-mode) .fenri-modal-content,
body.theme-light .fenri-modal-content {
    background-color: #ffffff;
    border-color: #e2e8f0;
    color: #0f172a;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

body:not(.dark-mode) .fenri-modal-title,
body.theme-light .fenri-modal-title {
    color: #0f172a;
}

body:not(.dark-mode) .fenri-modal-header,
body.theme-light .fenri-modal-header {
    border-bottom-color: #f1f5f9;
}

body:not(.dark-mode) .fenri-modal-header .btn-close,
body.theme-light .fenri-modal-header .btn-close {
    filter: none !important;
}

body:not(.dark-mode) .fenri-modal-notice,
body.theme-light .fenri-modal-notice {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

body:not(.dark-mode) .fenri-modal-option-card,
body.theme-light .fenri-modal-option-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    color: #0f172a;
}

body:not(.dark-mode) .fenri-modal-option-card:hover,
body.theme-light .fenri-modal-option-card:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

body:not(.dark-mode) .fenri-modal-option-icon,
body.theme-light .fenri-modal-option-icon {
    background: #eff6ff;
    color: #2563eb;
}

body:not(.dark-mode) .fenri-modal-option-title,
body.theme-light .fenri-modal-option-title {
    color: #0f172a !important;
}

body:not(.dark-mode) .fenri-modal-option-desc,
body.theme-light .fenri-modal-option-desc {
    color: #64748b !important;
}

body:not(.dark-mode) .fenri-option-arrow,
body.theme-light .fenri-option-arrow {
    color: #94a3b8 !important;
}

body:not(.dark-mode) .fenri-modal-footer,
body.theme-light .fenri-modal-footer {
    border-top-color: #f1f5f9;
}

/* Quest / Daily Tasks Light Mode */
body:not(.dark-mode) .fenri-quest-page-wrapper {
    background-color: #f8fafc;
    background-image: 
        radial-gradient(rgba(var(--bs-primary-rgb, 59, 130, 246), 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
    color: #1e293b;
}

body:not(.dark-mode) .fenri-system-banner,
body:not(.dark-mode) .fenri-player-card,
body:not(.dark-mode) .fenri-quest-log-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body:not(.dark-mode) .fenri-system-title,
body:not(.dark-mode) .fenri-player-name,
body:not(.dark-mode) .fenri-quest-log-title,
body:not(.dark-mode) .fenri-quest-item-title {
    color: #0f172a !important;
}

body:not(.dark-mode) .fenri-player-level-box,
body:not(.dark-mode) .fenri-player-stat-row,
body:not(.dark-mode) .fenri-mini-stat-card,
body:not(.dark-mode) .fenri-quest-item-card,
body:not(.dark-mode) .fenri-quest-filters {
    background: #f8fafc;
    border-color: #e2e8f0;
}

body:not(.dark-mode) .fenri-bounty-offline-card {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* FAQ Page FenriRealm Card Styles */
.td-faq-cat-card {
    background-color: #0e0d16;
    border: 1px solid #1f1b2e !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.td-faq-cat-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

.td-faq-header {
    background-color: #0e0d16;
    border: 1px solid #1f1b2e !important;
}

body:not(.dark-mode) .td-faq-header,
body:not(.dark-mode) .td-faq-cat-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0 !important;
    color: #1e293b;
}

body:not(.dark-mode) .td-faq-cat-card h3,
body:not(.dark-mode) .td-faq-header h1 {
    color: #0f172a !important;
}

/* FAQ Search Highlight */
mark.td-faq-highlight {
    background-color: rgba(var(--bs-primary-rgb, 59, 130, 246), 0.25) !important;
    color: var(--td-primary, #3b82f6) !important;
    padding: 1px 4px;
    border-radius: 4px;
    font-weight: 700;
}
body.dark-mode mark.td-faq-highlight,
[data-bs-theme="dark"] mark.td-faq-highlight {
    background-color: rgba(var(--bs-primary-rgb, 59, 130, 246), 0.35) !important;
    color: #60a5fa !important;
}

/* Purchased Chapters Tab Styles */
.fenri-purchased-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fenri-purchased-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background-color: #13111c;
    border: 1px solid #231f33;
    border-radius: 12px;
    padding: 14px 18px;
    transition: all 0.2s ease;
}

.fenri-purchased-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.fenri-purchased-info {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.fenri-purchased-thumb {
    width: 48px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #28243b;
    flex-shrink: 0;
}

.fenri-purchased-details {
    min-width: 0;
}

.fenri-purchased-story {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fenri-purchased-chap-title {
    font-size: 15px;
    font-weight: 700;
    color: #f8fafc;
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fenri-purchased-chap-title:hover {
    color: #3b82f6;
}

.fenri-purchased-time {
    font-size: 11px;
    color: #64748b;
    margin-top: 3px;
}

.fenri-btn-read {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.fenri-btn-read:hover {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

/* Reports Tab Styles */
.fenri-reports-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fenri-report-card {
    background-color: #13111c;
    border: 1px solid #231f33;
    border-radius: 14px;
    padding: 18px;
    transition: all 0.2s ease;
}

.fenri-report-card:hover {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.fenri-report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.fenri-report-body {
    background: #09080e;
    border: 1px solid #1a1726;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 12px;
    white-space: pre-wrap;
    word-break: break-word;
}

.fenri-report-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.fenri-report-link,
.fenri-report-img-btn {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: none;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.fenri-report-link:hover,
.fenri-report-img-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

/* User Cards Grid (Followers & Following) */
.fenri-users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.fenri-user-card {
    background-color: #13111c;
    border: 1px solid #231f33;
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.2s ease;
}

.fenri-user-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.fenri-user-card-avatar-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #28243b;
    margin-bottom: 12px;
    display: block;
}

.fenri-user-card-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fenri-user-card-info {
    width: 100%;
    margin-bottom: 14px;
}

.fenri-user-card-name {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 6px;
}

.fenri-user-card-name:hover {
    color: #3b82f6;
}

.fenri-user-card-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.fenri-user-lvl-tag {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

.fenri-user-rank-tag {
    font-size: 11px;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 10px;
}

.fenri-user-card-action {
    width: 100%;
    margin-top: auto;
}

.fenri-btn-user-follow {
    width: 100%;
    padding: 8px 14px;
    background: #3b82f6;
    color: #ffffff;
    border: 1px solid #3b82f6;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.fenri-btn-user-follow:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.fenri-btn-user-follow.is-following {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.fenri-btn-user-follow.is-following:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
}

/* Light Mode Overrides for User Cards Grid (Followers, Following, Blocked) */
body:not(.dark-mode) .fenri-user-card,
body.theme-light .fenri-user-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

body:not(.dark-mode) .fenri-user-card:hover,
body.theme-light .fenri-user-card:hover {
    border-color: var(--td-primary, #3b82f6);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

body:not(.dark-mode) .fenri-user-card-avatar-wrap,
body.theme-light .fenri-user-card-avatar-wrap {
    border: 2px solid #e2e8f0;
}

body:not(.dark-mode) .fenri-user-card-name,
body.theme-light .fenri-user-card-name {
    color: #0f172a;
}

body:not(.dark-mode) .fenri-user-card-name:hover,
body.theme-light .fenri-user-card-name:hover {
    color: var(--td-primary, #3b82f6);
}

body:not(.dark-mode) .fenri-user-lvl-tag,
body.theme-light .fenri-user-lvl-tag {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

body:not(.dark-mode) .fenri-user-rank-tag,
body.theme-light .fenri-user-rank-tag {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

body:not(.dark-mode) .fenri-btn-user-follow,
body.theme-light .fenri-btn-user-follow {
    background: var(--td-primary, #3b82f6);
    color: #ffffff;
    border: 1px solid var(--td-primary, #3b82f6);
}

body:not(.dark-mode) .fenri-btn-user-follow:hover,
body.theme-light .fenri-btn-user-follow:hover {
    background: var(--td-primary-hover, #2563eb);
    border-color: var(--td-primary-hover, #2563eb);
}

body:not(.dark-mode) .fenri-btn-user-follow.is-following,
body.theme-light .fenri-btn-user-follow.is-following {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

body:not(.dark-mode) .fenri-btn-user-follow.is-following:hover,
body.theme-light .fenri-btn-user-follow.is-following:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}



