﻿/* ═══════════════════════════════════════════════════════════════════════════════
   MangaYummy Profile Page Styles - Updated 2026-02-15
   Scoped to .profile-page to avoid affecting other pages
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ═════════════════════════════════════════════════════════════════════════════
   IMAGE CROP MODAL
   ═════════════════════════════════════════════════════════════════════════════ */

.crop-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.crop-modal.active {
    display: flex;
}

.crop-modal-content {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 20px;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.crop-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
}

.crop-modal-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.crop-modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.crop-modal-close:hover {
    color: #fff;
}

.crop-container {
    width: 100%;
    max-width: 600px;
    max-height: 60vh;
    overflow: hidden;
}

.crop-container img {
    display: block;
    max-width: 100%;
}

.crop-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 10px;
    border-top: 1px solid #444;
}

.crop-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.crop-btn-cancel {
    background: #444;
    color: #fff;
}

.crop-btn-cancel:hover {
    background: #555;
}

.crop-btn-save {
    background: #fdb5b5;
    color: #fff;
}

.crop-btn-save:hover {
    background: #fdb5b5;
}

.crop-btn-save:disabled {
    background: #555;
    cursor: not-allowed;
}

/* Cropper.js customizations */
.cropper-view-box,
.cropper-face {
    border-radius: 0;
}

.cropper-view-box {
    outline: 2px solid #fdb5b5;
    outline-color: #fdb5b5;
}

.cropper-line {
    background-color: #fdb5b5;
}

.cropper-point {
    background-color: #fdb5b5;
    width: 10px;
    height: 10px;
}

@media (max-width: 768px) {
    .crop-modal-content {
        padding: 15px;
        max-width: 95vw;
    }
    
    .crop-container {
        max-height: 50vh;
    }
    
    .crop-modal-actions {
        flex-direction: column;
    }
    
    .crop-btn {
        width: 100%;
    }
}

/* ═════════════════════════════════════════════════════════════════════════════ */

.profile-page {
    background-color: #1b1b1b;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.35);
    padding-bottom: 20px;
    min-height: calc(100vh - 200px);
}

.profile-container {
    max-width: 1300px;
    margin: 0 auto;
    min-width: 0;
    padding-top: 20px;
}

.user-stats {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
}

.profile-inline-stats {
    margin-left: auto !important;
}

.user-stats-title {
    display: block;
    width: 100%;
    margin-bottom: 3px;
    font-size: 13px;
    font-weight: 700;
    color: #bdbdbd;
    text-align: center;
}

.user-type-stats {
    display: flex !important;
    gap: 10px !important;
}

.type-stat {
    text-align: center !important;
}

.type-count {
    display: block !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    color: #e8e6f0 !important;
}

.type-label {
    display: block !important;
    font-size: 11px !important;
    color: #6e6b8a !important;
    margin-top: 3px !important;
}

@media (max-width: 768px) {
    .profile-inline-stats {
        margin-left: 0 !important;
        justify-content: flex-start !important;
        margin-top: 10px !important;
    }

    /* For phone: move user-type-stats / profile-inline-stats to second row below level */
    .user-type-stats.profile-inline-stats {
        flex-basis: 100% !important;
        width: 100% !important;
        order: 1 !important;
        margin-top: 10px !important;
        justify-content: center !important;
    }

    .user-stats > .level,
    .user-stats > .xp,
    .user-stats > .user-group-badge {
        order: 0 !important;
    }

    .user-type-stats {
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        gap: 8px !important;
    }

    .type-stat {
        min-width: 70px !important;
        padding: 8px 12px !important;
    }

    .type-count {
        font-size: 18px !important;
    }
}

/* ═════════════════════════════════════════════════════════════════════════════
   PROFILE HEADER
   ═════════════════════════════════════════════════════════════════════════════ */

/* ═════════════════════════════════════════════════════════════════════════════
   PROFILE HEADER
   ═════════════════════════════════════════════════════════════════════════════ */

.profile-header {
    background: #2a2a2a;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
    overflow: visible;
    min-width: 0;
    position: relative;
    z-index: 1;
}

/* Keep header and avatar clear on smaller screens */
@media (max-width: 768px) {
    .profile-header {
        padding: 24px;
    }
}

.profile-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    min-width: 0;
}

.profile-left {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    flex: 1;
    min-width: 0;
}

.profile-main-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    min-width: 0;
}

.profile-secondary-row {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid #3a3a3a;
    min-width: 0;
}

.profile-overview-card {
    background: #2d2d2d;
    border-radius: 8px;
    min-height: 110px;
    box-sizing: border-box;
}

.profile-overview-card.profile-news-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
}

@media (max-width: 768px) {
    .profile-overview-card.profile-news-badge {
        min-width: auto;
    }
}

.profile-overview-card.profile-news-badge .wn {
    position: relative;
    height: 40px;
    width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    fill: #fff;
    background-color: #7961cc;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}

.profile-overview-card.profile-news-badge .wn.founder {
    background-color: #13667a;
}

.profile-overview-card.profile-news-badge .wn.tester {
    background-color: #333;
}

.profile-overview-card.profile-news-badge .wn .wt {
    position: absolute;
    right: -6px;
    bottom: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-overview-card.profile-news-badge .wn::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    background: rgba(15, 15, 15, 0.98);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    padding: 8px 10px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 20;
}

.profile-overview-card.profile-news-badge .wn::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(15, 15, 15, 0.98);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 20;
}

.profile-overview-card.profile-news-badge .wn:hover::after,
.profile-overview-card.profile-news-badge .wn:focus-visible::after,
.profile-overview-card.profile-news-badge .wn:hover::before,
.profile-overview-card.profile-news-badge .wn:focus-visible::before {
    opacity: 1;
    visibility: visible;
}

.profile-overview-card.profile-news-badge .wn svg {
    pointer-events: none;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 8px;
    flex-shrink: 0;
}

.profile-actions .add-friend-btn,
.profile-actions .open-chat-btn {
    white-space: nowrap;
}

.profile-title-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    row-gap: 10px;
}

.profile-owner .avatar-wrapper {
    position: relative;
    cursor: pointer !important;
}

.avatar-wrapper {
    position: relative;
    z-index: 2;
    transform: translateY(-100px); /* lower than before */
    margin-bottom: -100px;
}

/* Online/offline dot on avatar */
.avatar-online-dot {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 4px solid #0f0f0f;
    z-index: 3;
    pointer-events: auto;
}

.avatar-online-dot.online  { background: #13667a; }
.avatar-online-dot.offline { background: #13667a; }

.avatar-online-dot::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    background: rgba(15, 15, 15, 0.96);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    opacity: 0;
    transform: translate(4px, -50%);
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.avatar-online-dot:hover::after {
    opacity: 1;
    transform: translate(0, -50%);
}

@media (max-width: 768px) {
    .avatar-online-dot::after {
        left: 50%;
        top: calc(100% + 8px);
        transform: translate(-50%, 0);
        white-space: normal;
        max-width: 220px;
        width: auto;
    }

    .avatar-online-dot:hover::after {
        transform: translate(-50%, 0);
    }
}

.avatar-wrapper .profile-avatar {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    border: 3px solid #fff;
    
    cursor: default;
    transition: none;
    -webkit-mask: radial-gradient(circle at calc(100% - 6px) calc(100% - 6px), transparent 20px, black 20px);
    mask: radial-gradient(circle at calc(100% - 6px) calc(100% - 6px), transparent 20px, black 20px);
}

.profile-avatar:hover {
    transform: none;
}

.avatar-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.42);
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.avatar-overlay span {
    display: block;
    width: 100%;
    color: #fff;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.profile-owner .avatar-wrapper:hover .avatar-overlay {
    opacity: 1;
}

@media (max-width: 768px) {
    .profile-header .header-content {
        flex-wrap: wrap;
    }
    .avatar-wrapper {
        transform: translateY(-120px);
        margin-bottom: -120px;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .avatar-wrapper .profile-avatar {
        width: 150px;
        height: 150px;
        max-width: 100%;
    }
}

.profile-avatar:hover {
    transform: none !important;
    transition: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   AVATAR FRAME EFFECTS (Applied on profile page)
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Glow Green - Level 100 */
.avatar-wrapper.avatar-glow .profile-avatar {
    box-shadow: 0 0 20px rgba(253,181,181, 0.8), 0 0 40px rgba(253,181,181, 0.4);
    animation: avatar-glow 2s ease-in-out infinite;
}

@keyframes avatar-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(253,181,181, 0.8), 0 0 40px rgba(253,181,181, 0.4); }
    50% { box-shadow: 0 0 30px rgba(253,181,181, 1), 0 0 60px rgba(253,181,181, 0.6); }
}

/* Fire - Level 200 */
.avatar-wrapper.avatar-fire .profile-avatar {
    box-shadow: 0 0 20px rgba(255, 100, 0, 0.8), 0 0 40px rgba(255, 50, 0, 0.5);
    animation: avatar-fire 0.5s ease-in-out infinite alternate;
}

@keyframes avatar-fire {
    0% { 
        box-shadow: 0 -5px 20px rgba(255, 200, 0, 0.8), 0 -10px 40px rgba(255, 100, 0, 0.6), 0 -15px 60px rgba(255, 50, 0, 0.4);
    }
    100% { 
        box-shadow: 0 -8px 25px rgba(255, 150, 0, 0.9), 0 -15px 50px rgba(255, 80, 0, 0.7), 0 -20px 70px rgba(255, 30, 0, 0.5);
    }
}

/* Ice - Level 300 */
.avatar-wrapper.avatar-ice .profile-avatar {
    box-shadow: 0 0 20px rgba(100, 200, 255, 0.8), 0 0 40px rgba(150, 230, 255, 0.5);
    animation: avatar-ice 3s ease-in-out infinite;
}

@keyframes avatar-ice {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(100, 200, 255, 0.8), 0 0 40px rgba(150, 230, 255, 0.5);
        filter: brightness(1);
    }
    50% { 
        box-shadow: 0 0 30px rgba(150, 220, 255, 1), 0 0 60px rgba(200, 240, 255, 0.7);
        filter: brightness(1.05);
    }
}

/* Lightning - Level 400 */
.avatar-wrapper.avatar-lightning .profile-avatar {
    box-shadow: 0 0 20px rgba(255, 255, 100, 0.8), 0 0 40px rgba(100, 150, 255, 0.6);
    animation: avatar-lightning 0.3s ease-in-out infinite;
}

@keyframes avatar-lightning {
    0%, 90% { 
        box-shadow: 0 0 15px rgba(100, 150, 255, 0.6), 0 0 30px rgba(100, 150, 255, 0.3);
    }
    95% { 
        box-shadow: 0 0 40px rgba(255, 255, 200, 1), 0 0 80px rgba(200, 220, 255, 0.8);
    }
    100% { 
        box-shadow: 0 0 15px rgba(100, 150, 255, 0.6), 0 0 30px rgba(100, 150, 255, 0.3);
    }
}

/* Rainbow - Level 500 */
.avatar-wrapper.avatar-rainbow .profile-avatar {
    animation: avatar-rainbow 3s linear infinite;
}

@keyframes avatar-rainbow {
    0% { box-shadow: 0 0 25px rgba(255, 0, 0, 0.8), 0 0 50px rgba(255, 0, 0, 0.4); }
    16% { box-shadow: 0 0 25px rgba(255, 165, 0, 0.8), 0 0 50px rgba(255, 165, 0, 0.4); }
    33% { box-shadow: 0 0 25px rgba(255, 255, 0, 0.8), 0 0 50px rgba(255, 255, 0, 0.4); }
    50% { box-shadow: 0 0 25px rgba(0, 255, 0, 0.8), 0 0 50px rgba(0, 255, 0, 0.4); }
    66% { box-shadow: 0 0 25px rgba(0, 150, 255, 0.8), 0 0 50px rgba(0, 150, 255, 0.4); }
    83% { box-shadow: 0 0 25px rgba(150, 0, 255, 0.8), 0 0 50px rgba(150, 0, 255, 0.4); }
    100% { box-shadow: 0 0 25px rgba(255, 0, 0, 0.8), 0 0 50px rgba(255, 0, 0, 0.4); }
}

/* Shadow - Level 600 */
.avatar-wrapper.avatar-shadow .profile-avatar {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.9), 0 0 60px rgba(50, 0, 80, 0.6);
    animation: avatar-shadow 2s ease-in-out infinite;
}

@keyframes avatar-shadow {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.9), 0 0 60px rgba(50, 0, 80, 0.6);
    }
    50% { 
        box-shadow: 0 0 40px rgba(20, 0, 40, 1), 0 0 80px rgba(80, 0, 120, 0.7);
    }
}

/* Gold - Level 700 */
.avatar-wrapper.avatar-gold .profile-avatar {
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.8), 0 0 50px rgba(255, 180, 0, 0.5);
    animation: avatar-gold 2s ease-in-out infinite;
}

@keyframes avatar-gold {
    0%, 100% { 
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.8), 0 0 50px rgba(255, 180, 0, 0.5);
    }
    50% { 
        box-shadow: 0 0 35px rgba(255, 230, 100, 1), 0 0 70px rgba(255, 200, 50, 0.7);
    }
}

/* Plasma - Level 800 */
.avatar-wrapper.avatar-plasma .profile-avatar {
    box-shadow: 0 0 25px rgba(200, 0, 255, 0.8), 0 0 50px rgba(100, 0, 200, 0.5);
    animation: avatar-plasma 1.5s ease-in-out infinite;
}

@keyframes avatar-plasma {
    0%, 100% { 
        box-shadow: 0 0 25px rgba(200, 0, 255, 0.8), 0 0 50px rgba(100, 0, 200, 0.5);
    }
    25% { 
        box-shadow: 0 0 30px rgba(0, 150, 255, 0.9), 0 0 60px rgba(100, 0, 255, 0.6);
    }
    50% { 
        box-shadow: 0 0 35px rgba(255, 0, 150, 1), 0 0 70px rgba(200, 0, 255, 0.7);
    }
    75% { 
        box-shadow: 0 0 30px rgba(0, 255, 200, 0.9), 0 0 60px rgba(0, 150, 255, 0.6);
    }
}

/* Cosmic - Level 900 */
.avatar-wrapper.avatar-cosmic .profile-avatar {
    box-shadow: 0 0 30px rgba(100, 50, 200, 0.8), 0 0 60px rgba(200, 100, 255, 0.5), 0 0 90px rgba(50, 0, 100, 0.3);
    animation: avatar-cosmic 4s ease-in-out infinite;
}

@keyframes avatar-cosmic {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(100, 50, 200, 0.8), 0 0 60px rgba(200, 100, 255, 0.5), 0 0 90px rgba(50, 0, 100, 0.3);
        filter: hue-rotate(0deg) brightness(1);
    }
    50% { 
        box-shadow: 0 0 50px rgba(150, 100, 255, 1), 0 0 100px rgba(255, 150, 255, 0.7), 0 0 150px rgba(100, 50, 150, 0.5);
        filter: hue-rotate(30deg) brightness(1.1);
    }
}

.profile-header .user-info {
    flex: 1;
    min-width: 0;
}

.profile-header .profile-user-meta-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    margin-top: 4px;
    min-width: 0;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(12, 14px);
    grid-template-rows: repeat(4, 14px);
    grid-auto-flow: column;
    gap: 4px;
    padding: 10px;
    width: fit-content;
    background: #272727;
    border-radius: 8px;
}

.avatar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.activity-wrapper {
    width: fit-content;
    flex: 1 1 auto;
    overflow: visible;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    padding: 12px;
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
    touch-action: manipulation;
}

.profile-header,
.profile-left,
.avatar-wrapper,
.activity-wrapper,
.activity-cell,
.profile-avatar {
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
    user-select: text;
    -webkit-user-select: text;
    -ms-user-select: text;
}
.activity-grid {
    overflow: visible;
}

@media (max-width: 768px) {
    .activity-grid {
        grid-template-rows: repeat(6, 14px);
    }
}

.activity-cell {
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
}


.activity-title {
    margin: 0 0 6px 0;
    font-size: 13px;
    color: #f3f3f3;
    font-weight: 600;
}

.activity-cell {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    position: relative;
}

.activity-cell.active {
    background: #e85d75;
}

.activity-cell.active-high {
    background: #ff2d55;
}

.activity-cell[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    background: #1a1a1a;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 100;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.profile-title-row {
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    row-gap: 10px;
}

.profile-username {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

/* Achievement badge next to username */
.achievement-badge {
    font-size: 14px;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: none;
    color: #13667a;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(3, 199, 90, 0.8);
}

/* Popup for Bug Hunter removal */
.bug-popup {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.bug-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.bug-popup__content {
    position: relative;
    background: #0f0f0f;
    border: 1px solid rgba(3, 199, 90, 0.5);
    padding: 18px 18px 14px;
    border-radius: 14px;
    min-width: 280px;
    max-width: 360px;
    box-shadow: 0 0 0 1px rgba(3, 199, 90, 0.4);
}

.bug-popup__content h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
}

.bug-popup__content p {
    margin: 0 0 16px;
    color: #cfd6dc;
    font-size: 14px;
}

.bug-popup__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Ensure popup buttons have no hover/transition effects */
.bug-popup__content button {
    transition: none !important;
}

.bug-popup__content button:hover {
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
}

.user-status,
.profile-user-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #fdb5b5;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(253,181,181, 0.7);
    animation: pulse-indicator 1.5s infinite;
    flex-shrink: 0;
}

@keyframes pulse-indicator {
    0% {
        box-shadow: 0 0 0 0 rgba(253,181,181, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(253,181,181, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(253,181,181, 0);
    }
}

.user-status.online,
.profile-user-status.online {
    color: #fdb5b5;
}

.user-status.offline,
.profile-user-status.offline {
    color: #999;
}

.profile-user-status.offline .status-indicator {
    background: #999;
    box-shadow: 0 0 0 0 rgba(153, 153, 153, 0.7);
    animation: none;
}

/* User Group Badge */
.user-group-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    margin-left: 8px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: none;
}

.user-group-badge:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #fdb5b5;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    position: relative;
    box-shadow: 0 0 6px rgba(3,199,90,0.8);
    animation: pulse-online 1.6s infinite;
}

@keyframes pulse-online {
    0% {
        box-shadow: 0 0 0 0 rgba(3,199,90,0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(3,199,90,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(3,199,90,0);
    }
}

.user-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Settings and notification buttons moved to header dropdown */

 .profile-header .user-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 0;
    margin-bottom: 12px;
    align-items: stretch;
    padding: 2px 0 0;
    flex-shrink: 0;
}

 .profile-header .level {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #13667a 0%, #0d556a 100%); /* default verde */
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

 .profile-header .xp {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px !important;
    background: rgba(253, 181, 181, 0.1);
    border: 1px solid rgba(253, 181, 181, 0.2);
    border-radius: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .profile-header .user-stats {
        flex-wrap: wrap;
        gap: 8px;
    }

    .profile-header .level,
    .profile-header .xp,
    .profile-header .user-group-badge {
        font-size: 12px;
        padding: 5px 10px;
        border-radius: 14px;
        min-height: 26px;
    }

    .profile-header .level {
        background: linear-gradient(135deg, #13667a 0%, #0d556a 100%); /* keep the base style */
    }

    .profile-header .xp {
        background: rgba(253, 181, 181, 0.12);
        border-color: rgba(253, 181, 181, 0.3);
    }

    .profile-header .user-group-badge {
        margin-left: 0;
    }
}

/* Level tier effects for profile - Badge style */
 .profile-banner-top .level.level-uncommon, .profile-header .level.level-uncommon {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

 .profile-banner-top .level.level-rare, .profile-header .level.level-rare {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    animation: profile-badge-pulse 2s ease-in-out infinite;
}

 .profile-banner-top .level.level-epic, .profile-header .level.level-epic {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    box-shadow: 0 0 15px rgba(243, 156, 18, 0.5);
    animation: profile-badge-glow 2s ease-in-out infinite;
}

 .profile-banner-top .level.level-legendary, .profile-header .level.level-legendary {
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8b00ff);
    background-size: 400% 100%;
    animation: profile-badge-rainbow 3s linear infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

 .profile-banner-top .level.level-cosmic, .profile-header .level.level-cosmic {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    box-shadow: 0 0 15px rgba(15, 52, 96, 0.8), inset 0 0 10px rgba(102, 126, 234, 0.3);
    animation: profile-badge-cosmic 4s ease-in-out infinite;
    border: 1px solid rgba(102, 126, 234, 0.5);
}

 .profile-banner-top .level.level-phoenix, .profile-header .level.level-phoenix {
    background: linear-gradient(135deg, #ff4500 0%, #ff6347 30%, #ffa500 60%, #ff4500 100%);
    background-size: 200% 200%;
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.6);
    animation: profile-badge-fire 1.5s ease-in-out infinite;
}

 .profile-banner-top .level.level-frost, .profile-header .level.level-frost {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 50%, #81ecec 100%);
    box-shadow: 0 0 15px rgba(116, 185, 255, 0.6);
    animation: profile-badge-frost 3s ease-in-out infinite;
    border: 1px solid rgba(129, 236, 236, 0.5);
}

 .profile-banner-top .level.level-shadow, .profile-header .level.level-shadow {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 50%, #0d0d0d 100%);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 0 0 8px rgba(128, 0, 128, 0.3);
    animation: profile-badge-shadow 2s ease-in-out infinite;
    border: 1px solid #444;
}

 .profile-banner-top .level.level-divine, .profile-header .level.level-divine {
    background: linear-gradient(135deg, #ffd700 0%, #ffec8b 30%, #ffd700 60%, #daa520 100%);
    background-size: 200% 200%;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
    animation: profile-badge-divine 2s ease-in-out infinite;
    color: #1a1a1a;
}

 .profile-banner-top .level.level-plasma, .profile-header .level.level-plasma {
    background: linear-gradient(135deg, #00d4ff 0%, #7b2ff7 50%, #00d4ff 100%);
    background-size: 200% 200%;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.6), 0 0 30px rgba(123, 47, 247, 0.3);
    animation: profile-badge-plasma 1s linear infinite;
}

 .profile-banner-top .level.level-nature, .profile-header .level.level-nature {
    background: linear-gradient(135deg, #00ff00 0%, #32cd32 50%, #7fff00 100%);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
    animation: profile-badge-nature 3s ease-in-out infinite;
}

 .profile-banner-top .level.level-blood, .profile-header .level.level-blood {
    background: linear-gradient(135deg, #8b0000 0%, #dc143c 50%, #8b0000 100%);
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.6);
    animation: profile-badge-blood 2s ease-in-out infinite;
    border: 1px solid rgba(139, 0, 0, 0.8);
}

 .profile-banner-top .level.level-crystal, .profile-header .level.level-crystal {
    background: linear-gradient(135deg, #e0e0e0 0%, #ffffff 25%, #c0c0c0 50%, #ffffff 75%, #e0e0e0 100%);
    background-size: 300% 300%;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    animation: profile-badge-crystal 4s linear infinite;
    color: #333;
}

 .profile-banner-top .level.level-void, .profile-header .level.level-void {
    background: radial-gradient(circle, #1a0a2e 0%, #000000 70%);
    box-shadow: 0 0 25px rgba(75, 0, 130, 0.8), inset 0 0 15px rgba(148, 0, 211, 0.3);
    animation: profile-badge-void 3s ease-in-out infinite;
    border: 2px solid #4b0082;
}

 .profile-banner-top .level.level-celestial, .profile-header .level.level-celestial {
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 50%, #da70d6 100%);
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.6);
    animation: profile-badge-celestial 2.5s ease-in-out infinite;
}

 .profile-banner-top .level.level-inferno, .profile-header .level.level-inferno {
    background: linear-gradient(135deg, #ff4500 0%, #8b0000 25%, #ff6600 50%, #ff4500 75%, #8b0000 100%);
    background-size: 400% 400%;
    box-shadow: 0 0 25px rgba(255, 69, 0, 0.7), 0 0 50px rgba(139, 0, 0, 0.4);
    animation: profile-badge-inferno 2s ease-in-out infinite;
}

 .profile-banner-top .level.level-arctic, .profile-header .level.level-arctic {
    background: linear-gradient(135deg, #f0f8ff 0%, #87ceeb 30%, #add8e6 60%, #f0ffff 100%);
    box-shadow: 0 0 20px rgba(135, 206, 235, 0.6);
    animation: profile-badge-arctic 3s ease-in-out infinite;
    color: #1a3a5c;
}

 .profile-banner-top .level.level-omega, .profile-header .level.level-omega {
    background: linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #8b00ff, #ff0000);
    background-size: 600% 100%;
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.5), 0 0 50px rgba(0, 255, 0, 0.3);
    animation: profile-badge-omega 2s linear infinite;
    text-shadow: 0 0 8px rgba(255, 255, 255, 1);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

 .profile-banner-top .level.level-transcend, .profile-header .level.level-transcend {
    background: linear-gradient(135deg, #000000 0%, #1a1a2e 20%, #ffd700 40%, #ffffff 50%, #ffd700 60%, #1a1a2e 80%, #000000 100%);
    background-size: 400% 400%;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 255, 255, 0.4);
    animation: profile-badge-transcend 4s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 1);
    border: 2px solid rgba(255, 215, 0, 0.8);
}

 .profile-header .level.level-phoenix {
    background: linear-gradient(135deg, #ff4500 0%, #ff6347 30%, #ffa500 60%, #ff4500 100%);
    background-size: 200% 200%;
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.6);
    animation: profile-badge-fire 1.5s ease-in-out infinite;
}

 .profile-header .level.level-frost {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 50%, #81ecec 100%);
    box-shadow: 0 0 15px rgba(116, 185, 255, 0.6);
    animation: profile-badge-frost 3s ease-in-out infinite;
    border: 1px solid rgba(129, 236, 236, 0.5);
}

 .profile-header .level.level-shadow {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 50%, #0d0d0d 100%);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 0 0 8px rgba(128, 0, 128, 0.3);
    animation: profile-badge-shadow 2s ease-in-out infinite;
    border: 1px solid #444;
}

 .profile-header .level.level-divine {
    background: linear-gradient(135deg, #ffd700 0%, #ffec8b 30%, #ffd700 60%, #daa520 100%);
    background-size: 200% 200%;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
    animation: profile-badge-divine 2s ease-in-out infinite;
    color: #1a1a1a;
}

 .profile-header .level.level-plasma {
    background: linear-gradient(135deg, #00d4ff 0%, #7b2ff7 50%, #00d4ff 100%);
    background-size: 200% 200%;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.6), 0 0 30px rgba(123, 47, 247, 0.3);
    animation: profile-badge-plasma 1s linear infinite;
}

 .profile-header .level.level-nature {
    background: linear-gradient(135deg, #00ff00 0%, #32cd32 50%, #7fff00 100%);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
    animation: profile-badge-nature 3s ease-in-out infinite;
}

 .profile-header .level.level-blood {
    background: linear-gradient(135deg, #8b0000 0%, #dc143c 50%, #8b0000 100%);
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.6);
    animation: profile-badge-blood 2s ease-in-out infinite;
    border: 1px solid rgba(139, 0, 0, 0.8);
}

 .profile-header .level.level-crystal {
    background: linear-gradient(135deg, #e0e0e0 0%, #ffffff 25%, #c0c0c0 50%, #ffffff 75%, #e0e0e0 100%);
    background-size: 300% 300%;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    animation: profile-badge-crystal 4s linear infinite;
    color: #333;
}

 .profile-header .level.level-void {
    background: radial-gradient(circle, #1a0a2e 0%, #000000 70%);
    box-shadow: 0 0 25px rgba(75, 0, 130, 0.8), inset 0 0 15px rgba(148, 0, 211, 0.3);
    animation: profile-badge-void 3s ease-in-out infinite;
    border: 2px solid #4b0082;
}

 .profile-header .level.level-celestial {
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 50%, #da70d6 100%);
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.6);
    animation: profile-badge-celestial 2.5s ease-in-out infinite;
}

 .profile-header .level.level-inferno {
    background: linear-gradient(135deg, #ff4500 0%, #8b0000 25%, #ff6600 50%, #ff4500 75%, #8b0000 100%);
    background-size: 400% 400%;
    box-shadow: 0 0 25px rgba(255, 69, 0, 0.7), 0 0 50px rgba(139, 0, 0, 0.4);
    animation: profile-badge-inferno 2s ease-in-out infinite;
}

 .profile-header .level.level-arctic {
    background: linear-gradient(135deg, #f0f8ff 0%, #87ceeb 30%, #add8e6 60%, #f0ffff 100%);
    box-shadow: 0 0 20px rgba(135, 206, 235, 0.6);
    animation: profile-badge-arctic 3s ease-in-out infinite;
    color: #1a3a5c;
}

 .profile-header .level.level-omega {
    background: linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #8b00ff, #ff0000);
    background-size: 600% 100%;
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.5), 0 0 50px rgba(0, 255, 0, 0.3);
    animation: profile-badge-omega 2s linear infinite;
    text-shadow: 0 0 8px rgba(255, 255, 255, 1);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

 .profile-header .level.level-transcend {
    background: linear-gradient(135deg, #000000 0%, #1a1a2e 20%, #ffd700 40%, #ffffff 50%, #ffd700 60%, #1a1a2e 80%, #000000 100%);
    background-size: 400% 400%;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 255, 255, 0.4);
    animation: profile-badge-transcend 4s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 1);
    border: 2px solid rgba(255, 215, 0, 0.8);
}

/* Profile badge animations */
@keyframes profile-badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

@keyframes profile-badge-glow {
    0%, 100% { box-shadow: 0 0 15px rgba(243, 156, 18, 0.5); }
    50% { box-shadow: 0 0 25px rgba(243, 156, 18, 0.8); }
}

@keyframes profile-badge-rainbow {
    0% { background-position: 0% 50%; }
    100% { background-position: 400% 50%; }
}

@keyframes profile-badge-cosmic {
    0%, 100% { box-shadow: 0 0 15px rgba(15, 52, 96, 0.8), inset 0 0 10px rgba(102, 126, 234, 0.3); }
    50% { box-shadow: 0 0 30px rgba(102, 126, 234, 0.9), inset 0 0 20px rgba(102, 126, 234, 0.5); }
}

@keyframes profile-badge-fire {
    0%, 100% { background-position: 0% 50%; box-shadow: 0 0 15px rgba(255, 69, 0, 0.6); }
    50% { background-position: 100% 50%; box-shadow: 0 0 30px rgba(255, 165, 0, 0.8); }
}

@keyframes profile-badge-frost {
    0%, 100% { box-shadow: 0 0 15px rgba(116, 185, 255, 0.6); }
    50% { box-shadow: 0 0 30px rgba(129, 236, 236, 0.8); }
}

@keyframes profile-badge-shadow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 0 0 8px rgba(128, 0, 128, 0.3); }
    50% { box-shadow: 0 0 35px rgba(0, 0, 0, 0.9), 0 0 15px rgba(128, 0, 128, 0.5); }
}

@keyframes profile-badge-divine {
    0%, 100% { background-position: 0% 50%; box-shadow: 0 0 20px rgba(255, 215, 0, 0.7); }
    50% { background-position: 100% 50%; box-shadow: 0 0 35px rgba(255, 236, 139, 0.9); }
}

@keyframes profile-badge-plasma {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes profile-badge-nature {
    0%, 100% { box-shadow: 0 0 15px rgba(0, 255, 0, 0.5); }
    50% { box-shadow: 0 0 30px rgba(127, 255, 0, 0.7); }
}

@keyframes profile-badge-blood {
    0%, 100% { box-shadow: 0 0 15px rgba(220, 20, 60, 0.6); }
    50% { box-shadow: 0 0 30px rgba(139, 0, 0, 0.9); }
}

@keyframes profile-badge-crystal {
    0% { background-position: 0% 0%; }
    100% { background-position: 300% 300%; }
}

@keyframes profile-badge-void {
    0%, 100% { box-shadow: 0 0 25px rgba(75, 0, 130, 0.8), inset 0 0 15px rgba(148, 0, 211, 0.3); }
    50% { box-shadow: 0 0 45px rgba(148, 0, 211, 0.9), inset 0 0 25px rgba(75, 0, 130, 0.5); }
}

@keyframes profile-badge-celestial {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 105, 180, 0.6); }
    50% { box-shadow: 0 0 35px rgba(218, 112, 214, 0.8); }
}

@keyframes profile-badge-inferno {
    0%, 100% { background-position: 0% 50%; box-shadow: 0 0 25px rgba(255, 69, 0, 0.7), 0 0 50px rgba(139, 0, 0, 0.4); }
    50% { background-position: 100% 50%; box-shadow: 0 0 45px rgba(255, 102, 0, 0.9), 0 0 70px rgba(255, 69, 0, 0.5); }
}

@keyframes profile-badge-arctic {
    0%, 100% { box-shadow: 0 0 20px rgba(135, 206, 235, 0.6); }
    50% { box-shadow: 0 0 35px rgba(173, 216, 230, 0.8); }
}

@keyframes profile-badge-omega {
    0% { background-position: 0% 50%; }
    100% { background-position: 600% 50%; }
}

@keyframes profile-badge-transcend {
    0%, 100% { background-position: 0% 0%; box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 255, 255, 0.4); }
    50% { background-position: 100% 100%; box-shadow: 0 0 50px rgba(255, 255, 255, 0.9), 0 0 80px rgba(255, 215, 0, 0.6); }
}

/* User Details: Birthday, Gender */
.profile-header .user-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 0;
    align-items: flex-start;
    padding: 0;
    min-width: 0;
    width: auto;
    flex: 1;
    box-sizing: border-box;
}

.profile-header .detail-item {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: 0;
    color: #d7d7d7;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    min-width: 0;
}

.profile-header .detail-item:hover {
    background: transparent;
    border-color: transparent;
}

.profile-header .detail-label {
    color: #9b9b9b;
    font-weight: 600;
    flex-shrink: 0;
}

.profile-header .detail-value {
    color: #f2f2f2;
    font-weight: 700;
}

/* Icon spans used for birthday/gender — single source for icons */
.profile-header .detail-icon {
    display: none;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    font-size: 14px;
    margin-right: 6px;
    vertical-align: middle;
    color: #fdb5b5;
}
.profile-header .detail-birthday::before {
    content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none"><rect x="3" y="4" width="18" height="18" rx="2" stroke="%23fdb5b5" stroke-width="2"/><path d="M8 2v4M16 2v4M3 10h18" stroke="%23fdb5b5" stroke-width="2"/></svg>');
}
.profile-header .gender-male::before {
    content: "♂";
}
.profile-header .gender-female::before {
    content: "♀";
}

/* Mobile adjustments for gender icons */
@media (max-width: 768px) {
    .profile-header .detail-icon {
        width: 20px;
        height: 20px;
        line-height: 20px;
    }
    .profile-header .gender-male::before,
    .profile-header .gender-female::before {
        /* match calendar svg size (16px) so icons remain consistent */
        font-size: 16px;
        line-height: 20px;
    }
}

/* User Bio Section */
.profile-header .user-bio {
    margin-top: 15px;
    padding: 12px 15px;
    background: linear-gradient(135deg, rgba(253,181,181, 0.05) 0%, rgba(253,181,181, 0.02) 100%);
    border-left: 3px solid #fdb5b5;
    border-radius: 4px;
    border-top: 1px solid rgba(253,181,181, 0.1);
    border-right: 1px solid rgba(253,181,181, 0.1);
    border-bottom: 1px solid rgba(253,181,181, 0.1);
    /* Removed max-height and overflow hidden to show full text */
    overflow-wrap: break-word;
    word-break: break-word;
    word-wrap: break-word;
    max-width: 100%;
    min-width: 0;
}

.profile-header .user-bio p {
    margin: 0;
    font-size: 14px;
    color: #ccc;
    line-height: 1.6;
    /* Removed italic for better readability */
    /* Allow natural text wrapping on desktop */
    display: block;
    overflow: visible;
    text-overflow: visible;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    min-width: 0;
    white-space: normal; /* Allow text to wrap to multiple lines */
}

/* Social links below bio (Discord etc.) */
.user-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 0;
    padding: 12px;
    border-top: 0;
    justify-content: center;
    align-content: center;
    width: 104px;
    min-width: 104px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 8px;
    font-size: 0;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.social-link.discord-link {
    background: #5865F2;
    color: #fff;
}

.profile-days-online-card {
    width: 150px;
    min-width: 150px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.days-online-count {
    display: block;
    font-size: 42px;
    line-height: 1;
    font-weight: 800;
    color: #fff;
}

.days-online-label {
    display: block;
    margin-top: 8px;
    max-width: 100px;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 700;
    color: #fff;
}

.profile-header .user-details p {
    margin: 8px 0;
    font-size: 14px;
    color: #aaa;
}

.profile-header .user-details strong {
    color: #ddd;
}

/* ═════════════════════════════════════════════════════════════════════════════
   PROFILE TABS
   ═════════════════════════════════════════════════════════════════════════════ */

.profile-dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 18px;
    align-items: start;
}

.profile-dashboard-main {
    min-width: 0;
}

.profile-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #444;
    background: #2f2f2f;
    border-radius: 10px 10px 0 0;
    flex-wrap: nowrap; /* Ensure single line on desktop */
    overflow-x: auto;
}

.profile-tabs .tab-button {
    padding: 12px 14px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #c8c8c8;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    gap: 8px;
    align-items: center;
    white-space: nowrap;
}

.profile-tabs .tab-button:hover {
    color: #fff;
}

.profile-tabs .tab-button.active {
    color: #fff;
    border-bottom-color: #ff6161;
}

.profile-tabs .tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.profile-tabs .tab-icon svg {
    width: 16px;
    height: 16px;
}

.profile-tabs .tab-label {
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.profile-tabs .tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    margin-left: 2px;
}

.profile-side-panel {
    background: #2f2f2f;
    border-radius: 10px;
    border: 1px solid #404040;
    overflow: hidden;
}

.profile-side-tab {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 0;
    border-bottom: 1px solid #3d3d3d;
    background: transparent;
    color: #e6e6e6;
    text-align: left;
    padding: 12px 14px;
    font-size: 17px;
    cursor: pointer;
}

.profile-side-tab:last-child {
    border-bottom: 0;
}

.profile-side-tab:hover {
    background: rgba(255, 255, 255, 0.04);
}

.profile-side-tab.active {
    background: #ff6161;
    color: #fff;
    font-weight: 700;
}

.profile-side-tab .side-tab-count {
    font-weight: 700;
    color: inherit;
}

.profile-side-tab.side-tab-disabled {
    opacity: 0.7;
    cursor: default;
}

/* ═════════════════════════════════════════════════════════════════════════════
   PROFILE CONTENT TABS
   ═════════════════════════════════════════════════════════════════════════════ */

.profile-content {
    position: relative;
    background: #2f2f2f;
    padding: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
    overflow: visible;
    height: auto;
    min-width: 0;
    border-top: 0;
    border-radius: 0 0 10px 10px;
}

.profile-tab {
    display: none;
    animation: fadeIn 0.3s ease;
}

.profile-tab.active {
    display: block;
    height: auto;
    overflow: visible;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Favorites tab now uses the same design as all/reading tabs (manga-status-grid, status-item, etc.) */

.remove-favorite {
    width: 100%;
    padding: 8px 12px;
    font-size: 12px;
    background-color: #3a3a3a;
    border: 1px solid #555;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #aaa;
}

.remove-favorite:hover {
    background-color: #13667a;
    border-color: #13667a;
    color: white;
}

/* ═════════════════════════════════════════════════════════════════════════════
   MANGA SORT/FILTER BUTTONS
   ═════════════════════════════════════════════════════════════════════════════ */

.manga-sort-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: center;
}

.sort-btn {
    padding: 8px 16px;
    border: 1px solid #444;
    background: #2a2a2a;
    color: #999;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: capitalize;
    white-space: nowrap;
}

.sort-btn:hover {
    border-color: #fdb5b5;
    color: #fdb5b5;
    background: rgba(253,181,181, 0.1);
}

.sort-btn.active {
    background: linear-gradient(135deg, #fdb5b5 0%, #fdb5b5 100%);
    color: #fff;
    border-color: #fdb5b5;
    box-shadow: 0 4px 12px rgba(253,181,181, 0.3);
}

.sort-btn.active:hover {
    box-shadow: 0 6px 16px rgba(253,181,181, 0.4);
    transform: translateY(-2px);
}

/* ═════════════════════════════════════════════════════════════════════════════
   MANGA LIST HEADER (Search + Filter Toggle)
   ═════════════════════════════════════════════════════════════════════════════ */

.manga-list-header {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    align-items: center;
}

.manga-status-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    flex-wrap: nowrap;
    width: 100%;
}

.profile-tabs .manga-status-tabs {
    margin-bottom: 0;
    margin-left: 0;
    align-items: center;
    flex-wrap: nowrap;
}

/* Section label tabs (Comentarii, Prieteni, Recenzii) */
.profile-tabs--section {
    align-items: center;
    padding: 0 4px;
}

.section-tab-label {
    display: inline-block;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 12px 14px;
    border-bottom: 3px solid #ff6161;
    white-space: nowrap;
}

.manga-status-tab {
    border: none;
    background: transparent;
    color: #c8c8c8;
    border-radius: 0;
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.manga-status-tab:hover {
    color: #fff;
}

.manga-status-tab.active {
    background: transparent;
    border-bottom-color: #ff6161;
    color: #fff;
}

.manga-search-wrapper {
    flex: 1;
    min-width: 0;
}

.manga-search-input {
    width: 100%;
    padding: 10px 14px;
    background: #232323;
    border: 1px solid #444;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.manga-toolbar-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.manga-sort-label {
    color: #e7e7e7;
    font-weight: 600;
    font-size: 14px;
}

.manga-sort-select {
    height: 38px;
    border: 1px solid #444;
    background: #232323;
    color: #fff;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 14px;
}

.manga-search-input:focus {
    outline: none;
    border-color: #fdb5b5;
    box-shadow: 0 0 8px rgba(253,181,181, 0.2);
}

.manga-search-input::placeholder {
    color: #666;
}

/* Filter Toggle Button (Three Dots) */
.filter-toggle {
    height: 38px;
    min-width: 38px;
    border: 1px solid #444;
    background: #232323;
    border-radius: 8px;
    cursor: pointer;
    color: #ddd;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 10px;
}

.filter-toggle span {
    font-weight: 700;
}

.filter-toggle:hover {
    border-color: #fdb5b5;
    color: #fdb5b5;
    background: rgba(253,181,181, 0.05);
}

.filter-toggle.active {
    border-color: #fdb5b5;
    background: rgba(253,181,181, 0.1);
    color: #fdb5b5;
}

.filter-toggle svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 980px) {
    .profile-dashboard-layout {
        grid-template-columns: 1fr;
    }

    .profile-side-panel {
        order: -1;
    }

    .profile-dashboard-main {
        order: 1;
    }

    .profile-side-panel {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-side-tab {
        border-right: 1px solid #3d3d3d;
    }
}

/* ═════════════════════════════════════════════════════════════════════════════
   FILTER DRAWER (Bottom Drawer like MangaYummy)
   ═════════════════════════════════════════════════════════════════════════════ */

.manga-filter-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border-top: 1px solid #444;
    max-height: 70vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
    visibility: hidden;
}

.manga-filter-drawer.open {
    transform: translateY(0);
    visibility: visible;
}

/* Desktop: Limit drawer width and center it */
@media (min-width: 769px) {
    .manga-filter-drawer {
        width: 90%;
        left: 50%;
        right: auto;
        transform: translateY(100%) translateX(-50%);
        max-height: 60vh;
        border-radius: 12px 12px 0 0;
        max-width: 500px;
    }

    .manga-filter-drawer.open {
        transform: translateY(0) translateX(-50%);
    }
}

.drawer-header {
    padding: 16px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: #1a1a1a;
    z-index: 10;
}

.drawer-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.drawer-close {
    background: none;
    border: none;
    color: #999;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.drawer-close:hover {
    color: #fdb5b5;
}

.drawer-content {
    padding: 20px;
    padding-bottom: 40px;
}

.filter-section {
    margin-bottom: 24px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section h4 {
    margin: 0 0 12px 0;
    font-size: 13px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-item {
    padding: 10px 14px;
    background: #2a2a2a;
    border: 1px solid #333;
    color: #999;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-item:hover {
    border-color: #fdb5b5;
    color: #fdb5b5;
    background: rgba(253,181,181, 0.05);
}

.filter-item.active {
    background: linear-gradient(135deg, #fdb5b5 0%, #fdb5b5 100%);
    color: #fff;
    border-color: #fdb5b5;
    box-shadow: 0 2px 8px rgba(253,181,181, 0.2);
}

/* Close drawer button click handler */
.drawer-close {
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ═════════════════════════════════════════════════════════════════════════════
   MANGA STATUS TABS (Reading, Planned, Completed, Paused, Abandoned)
   Dark Theme
   ═════════════════════════════════════════════════════════════════════════════ */

.manga-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
    align-items: start;
}

.profile-tabs.profile-tabs--section[data-section="translations"] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}


.status-item {
    background-color: #2a2a2a;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid #444;
    position: relative;
    display: flex;
    flex-direction: column;
}

.status-item:hover {
    /* removed translateY lift to prevent overlapping subsequent rows */
    transform: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border-color: #13667a;
}

.status-item .status-cover {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    min-height: 220px;
    background-color: #1a1a1a;
    flex-shrink: 0;
    overflow: hidden;
}

.status-cover-wrapper {
    position: relative;
}
/* overlay title on cover image */
.cover-title {
    position: absolute;
    bottom: 0; /* stick to base, band will be large due to padding */
    left: 0;
    width: 100%;
    /* extra bottom padding creates a taller band below the text */
    padding: 6px 8px 35px;
    background: rgba(0, 0, 0, 0.5); /* semi-transparent background */
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 14px;
    text-align: center;
    /* allow wrapping but prevent overflow / layout break */
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
    overflow: hidden;
    /* clamp to 2 lines so very long titles don't swell the card */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    box-sizing: border-box;
    z-index: 20;
    display: block;
    text-decoration: none;
    cursor: pointer;
}
.cover-title:hover {
    color: #13667a !important;
}

/* ensure base link color remains white */
.cover-title {
    color: #fff !important;
}

.status-group-title {
    font-size: 24px;
    margin: 30px 0 8px;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 4px;
    padding-bottom: 3px;
    border-bottom: 2px solid #13667a;
}

.cover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between; /* left rating and right progress */
    padding: 8px 6px;
    box-sizing: border-box;
    font-size: 12px;
    z-index: 25;
}

.cover-rating {
    /* no background */
    color: #fff;
    padding: 2px 4px;
    line-height: 1;
}
.cover-rating svg {
    position: relative;
    top: -2px;
}

.cover-progress {
    /* show numeric progress badge */
    color: #fff;
    padding: 2px 4px;
    line-height: 1;
    margin-left: auto; /* push progress to far right */
}
.cover-progress.editable,
.cover-rating.editable {
    cursor: pointer;
}
/* hide leftover titles in manga-info, since title now on cover */
.status-item .manga-info {
    display: none; /* hide container since content now overlaid on cover */
}

.status-item .manga-info h3 {
    display: none;
}

.status-cover-wrapper .manga-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 30;
}

.manga-actions-toggle {
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.manga-actions-toggle:hover {
    background: rgba(0,0,0,0.9);
    border-color: rgba(255,255,255,0.4);
    transform: scale(1.05);
}

.manga-actions-menu {
    display: none;
    position: absolute;
    top: 44px; /* spacing below toggle */
    right: 0;
    background: #222;
    border: 1px solid #444;
    border-radius: 6px;
    min-width: 160px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    padding: 6px 0;
    list-style: none;
    z-index: 100; /* sit above adjacent covers */
}

.manga-actions.open .manga-actions-menu {
    display: block;
}

.manga-actions-menu .manga-action {
    padding: 8px 12px;
    color: #ddd;
    cursor: pointer;
    font-size: 14px;
}

.manga-actions-menu .manga-action:hover {
    background: rgba(3,199,90,0.08);
    color: #fdb5b5;
}

.status-item .status-cover img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    
    /* animation removed per request */
    transition: none;
    display: block;
    line-height: 0;
}

.status-cover-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    
    line-height: 0;
}

/* disable scaling on hover */
.status-item:hover .status-cover img {
    transform: none;
}

.status-item .status-cover .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
    color: #666;
    font-size: 12px;
}

.status-item a {
    text-decoration: none;
    color: #ddd;
    transition: color 0.3s ease;
}

.status-item:hover a {
    color: #fdb5b5;
}

/* ═════════════════════════════════════════════════════════════════════════════
   RATINGS TAB (LEGACY - may be removed)
   ═════════════════════════════════════════════════════════════════════════════ */

.ratings-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rating-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.rating-item:hover {
    background-color: #f0f0f0;
    transform: translateX(5px);
}

.rating-cover-link {
    flex-shrink: 0;
    width: 60px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    background-color: #e0e0e0;
}

.rating-cover-link img {
    width: 100%;
    height: 100%;
    
    display: block;
    line-height: 0;
}

.rating-cover-link .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    color: #999;
    font-size: 11px;
}

.rating-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rating-info h3 {
    margin: 0 0 10px 0;
    font-size: 15px;
}

.rating-info a {
    color: #fdb5b5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.rating-info a:hover {
    color: #02a044;
}

.rating-value {
    display: flex;
    gap: 10px;
    align-items: center;
}

.rating-value .stars {
    font-size: 14px;
    letter-spacing: 2px;
}

.rating-value .rating-number {
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

/* ═════════════════════════════════════════════════════════════════════════════
   COMMENTS TAB
   ═════════════════════════════════════════════════════════════════════════════ */

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-item {
    padding: 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.comment-item:hover {
    background-color: #333;
    transform: translateX(5px);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.comment-manga {
    text-decoration: none;
    color: #fdb5b5;
    font-size: 14px;
    transition: color 0.3s ease;
}

.comment-manga:hover {
    color: #02a044;
}

.comment-date {
    font-size: 12px;
    color: #999;
}

.comment-body {
    font-size: 14px;
    color: #1a1a1a;
    line-height: 1.5;
    margin-bottom: 10px;
}

.comment-link {
    display: inline-block;
    font-size: 12px;
    color: #fdb5b5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.comment-link:hover {
    color: #02a044;
}

/* ═════════════════════════════════════════════════════════════════════════════
   EMPTY STATE
   ═════════════════════════════════════════════════════════════════════════════ */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    word-break: break-word;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.empty-state .empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fdb5b5;
}

.empty-state .empty-icon svg {
    width: 64px;
    height: 64px;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ddd;
    margin: 0 0 10px 0;
}

.empty-state p {
    font-size: 14px;
    color: #aaa;
    margin: 0 0 30px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.empty-state .btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: #fdb5b5;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.empty-state .btn-primary:hover {
    background-color: #02a044;
    transform: translateY(-2px);
}

/* ═════════════════════════════════════════════════════════════════════════════
   MODERN BUTTON STYLES FOR SETTINGS
   ═════════════════════════════════════════════════════════════════════════════ */

.btn-primary {
    padding: 10px 20px;
    background: linear-gradient(135deg, #fdb5b5 0%, #fdb5b5 100%);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(253,181,181, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #fdb5b5 0%, #fdb5b5 100%);
    box-shadow: 0 6px 20px rgba(253,181,181, 0.4);
    transform: translateY(-2px);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(253,181,181, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

#save-all-general-btn {
    flex: 1;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
}

/* Secondary Button Style */
.btn-secondary {
    padding: 10px 20px;
    background: linear-gradient(135deg, #444 0%, #333 100%);
    border: 1px solid #555;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #555 0%, #444 100%);
    border-color: #fdb5b5;
    color: #fdb5b5;
    box-shadow: 0 4px 12px rgba(253,181,181, 0.2);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Danger Button Style */
.btn-danger {
    padding: 10px 20px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    transform: translateY(-2px);
}

.btn-danger:active {
    transform: translateY(0);
}

/* ═════════════════════════════════════════════════════════════════════════════
   EMPTY MESSAGE
   ═════════════════════════════════════════════════════════════════════════════ */

.empty-message {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 14px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ═════════════════════════════════════════════════════════════════════════════
   FRIENDS LIST STYLING
   ═════════════════════════════════════════════════════════════════════════════ */

.friends-section {
    margin-bottom: 30px;
}

.friends-section h3 {
    margin-bottom: 15px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.friends-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.friend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #2a2a2a;
    border-radius: 8px;
    border: 1px solid #444;
    transition: background 0.2s;
    justify-content: space-between;
}

.friend-item:hover {
    background: #333;
    border-color: #fdb5b5;
}

.friend-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    
    flex-shrink: 0;
}

.friend-info {
    flex: 1;
    min-width: 0;
}

.friend-info a {
    display: block;
    color: #fff;
    text-decoration: none;
    margin-bottom: 2px;
}

.friend-info a strong {
    font-weight: 600;
}

.friend-info a:hover strong {
    color: #fdb5b5;
}

.friend-info small {
    display: block;
    font-size: 12px;
    color: #999;
}

.friend-info .user-status {
    display: inline;
}

.friend-info .user-status.online {
    color: #fdb5b5;
    font-weight: 600;
}

.friend-info .user-status.offline {
    color: #999;
}

/* ═════════════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═════════════════════════════════════════════════════════════════════════════ */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .profile-page {
        padding: 0px 10px !important;
    }

    .profile-header {
        padding: 25px;
        margin-bottom: 25px;
    }

    .profile-header .header-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .profile-left {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .profile-actions {
        align-items: flex-start;
        width: 100%;
    }

    .profile-username {
        font-size: 22px;
    }

    .profile-tabs {
        gap: 6px;
        padding: 0;
        flex-wrap: wrap; /* Allow tabs to wrap to multiple lines on mobile */
        justify-content: center; /* Center tabs on mobile */
    }

    .profile-tabs .tab-button {
        padding: 13px 17px;
        font-size: 12px;
    }

    .profile-tabs .tab-icon {
        width: 16px;
        height: 16px;
    }

    .profile-tabs .tab-icon svg {
        width: 14px;
        height: 14px;
    }

    .profile-content {
        padding: 20px;
    }

    .manga-status-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .rating-item {
        padding: 12px;
        gap: 10px;
    }

    .comment-item {
        padding: 12px;
    }

    /* Mobile menu positioning */
    .manga-actions-menu {
        top: 44px;
        right: -20px;
        min-width: 140px;
        z-index: 1000;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .profile-header,
    .header-content,
    .user-info,
    .user-details,
    .user-bio {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .user-bio {
        display: block !important;
        width: 100% !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
        overflow: hidden !important;
    }

    .user-bio p {
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
        font-size: inherit;
        text-align: left;
    }

    .profile-page {
        padding: 15px 10px;
    }

    .profile-header {
        padding: 20px;
        margin-bottom: 20px;
        min-width: 0;
    }

    /* MOBILE: Vertical layout */
    .profile-header .header-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        text-align: center;
        min-width: 0;
        width: 100%;
    }

    .profile-main-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }

    .profile-secondary-row {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 12px;
        padding-top: 12px;
    }

    .profile-overview-card,
    .profile-days-online-card,
    .user-social-links,
    .activity-wrapper {
        min-width: 0;
    }

    .profile-secondary-row {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
        justify-content: center;
        gap: 10px;
    }

    .profile-secondary-row > .user-social-links {
        width: auto;
        min-width: 54px;
        flex: 0 0 auto;
        order: 1;
    }

    .profile-secondary-row > .profile-days-online-card {
        width: auto;
        min-width: 0;
        flex: 1 1 0;
        order: 2;
    }

    .profile-secondary-row > .activity-wrapper {
        width: 100%;
        flex: 1 0 100%;
        order: 3;
    }

    .user-social-links {
        justify-content: center;
    }

    .activity-wrapper {
        display: flex;
        justify-content: center;
    }

    /* Avatar */
    .profile-header .avatar-wrapper {
        flex: 0 0 auto;
    }

    .profile-avatar {
        width: 150px;
        height: 150px;
        border-width: 2px;
    }

    /* RÂND 1: User info (username + status + badge) */
    .profile-header .user-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        width: 100%;
        min-width: 0;
    }

    .profile-header .profile-user-meta-row {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        width: 100%;
    }

    .user-type-stats.profile-inline-stats {
        width: 100% !important;
        margin-top: 12px !important;
        padding-top: 10px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
        justify-content: center !important;
    }

    .user-social-links {
        justify-content: center;
        width: 100%;
    }

    .profile-username {
        font-size: 20px;
        font-weight: 700;
        white-space: normal;
        word-break: break-word;
        margin: 0;
    }

    /* Level + XP below user info - COMPACT ROW */
     .profile-header .user-stats {
        display: inline-flex !important;
        gap: 6px !important;
        margin: 8px 0 0 0 !important;
        padding: 0 !important;
        align-items: center;
        justify-content: center;
    }

     .profile-header .level,
     .profile-header .xp {
        font-size: 12px !important;
        padding: 4px 8px !important;
        border: 1px solid rgba(253,181,181, 0.2);
        border-radius: 5px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* User details visible on mobile - COMPACT ROW */
    .profile-header .user-details {
        display: inline-flex !important;
        gap: 6px !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        margin: 8px 0 0 0 !important;
        padding: 0 !important;
        border: none !important;
        align-items: center;
        width: auto !important;
        flex: 0 1 auto !important;
    }

    /* Bio on mobile - show full text */
    .profile-header .user-bio {
        display: block;
        margin-top: 10px;
        padding: 8px 10px;
        background: linear-gradient(135deg, rgba(253,181,181, 0.05) 0%, rgba(253,181,181, 0.02) 100%);
        border-left: 3px solid #fdb5b5;
        border-radius: 4px;
        border-top: 1px solid rgba(253,181,181, 0.1);
        border-right: 1px solid rgba(253,181,181, 0.1);
        border-bottom: 1px solid rgba(253,181,181, 0.1);
        /* Removed max-height and overflow hidden to show full text */
        width: 100%;
        box-sizing: border-box;
        overflow-wrap: break-word;
        word-break: break-word;
        word-wrap: break-word;
        max-width: 100%;
        min-width: 0;
    }

    .profile-header .user-bio p {
        margin: 0;
        font-size: 12px;
        color: #ccc;
        line-height: 1.4;
        /* Allow natural text wrapping */
        display: block;
        overflow: visible;
        text-overflow: visible;
        word-break: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        min-width: 0;
        white-space: normal; /* Fixed conflict with word-break */
    }

    .profile-tabs {
        flex-wrap: wrap;
        gap: 5px;
    }

    .profile-tabs .tab-button {
        padding: 10px 12px;
        font-size: 11px;
        flex: 1;
        justify-content: center;
    }

    .profile-tabs .tab-icon {
        display: none;
    }

    .profile-content {
        padding: 15px;
        min-width: 0;
    }

    .manga-status-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .status-item h3 {
        padding: 10px;
        font-size: 12px;
        min-height: 36px;
    }

    .remove-favorite {
        padding: 6px 8px;
        font-size: 11px;
    }

    .rating-item {
        padding: 10px;
        gap: 10px;
    }

    .rating-cover-link {
        width: 50px;
        height: 70px;
    }

    .rating-info h3 {
        font-size: 13px;
    }

    .comment-item {
        padding: 10px;
        border-left-width: 2px;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .empty-state {
        padding: 40px 15px;
    }

    .empty-state .empty-icon {
        font-size: 48px;
    }

    .empty-state .empty-icon svg {
        width: 48px;
        height: 48px;
    }

    .empty-state h3 {
        font-size: 16px;
    }

    .empty-state p {
        font-size: 13px;
    }

    .empty-state .btn-primary {
        padding: 10px 20px;
        font-size: 13px;
    }

    /* Mobile menu positioning for small screens */
    .manga-actions-menu {
        top: 44px;
        right: -10px;
        min-width: 130px;
        z-index: 1000;
    }
}

/* ═════════════════════════════════════════════════════════════════════════════
   STATUS BADGES FOR LISTA DE MANGA-URI TAB
   ═════════════════════════════════════════════════════════════════════════════ */

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-reading {
    background-color: #13667a;
    color: white;
}

.status-planned {
    background-color: #2196F3;
    color: white;
}

.status-completed {
    background-color: #9C27B0;
    color: white;
}

.status-paused {
    background-color: #FF9800;
    color: white;
}

.status-abandoned {
    background-color: #F44336;
    color: white;
}

.manga-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0 12px 12px 12px;
    min-height: 0;
    text-align: center;
}

.manga-info h3 {
    margin: 0 0 8px 0;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    height: 56px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.manga-info .status-badge {
    display: none; /* badges removed per user request */
    font-size: 11px;
    flex-shrink: 0;
    margin-bottom: 8px;
}

/* ═════════════════════════════════════════════════════════════════════════════
   REMOVE ACTION STYLING (RED)
   ═════════════════════════════════════════════════════════════════════════════ */

.manga-action-remove {
    color: #F44336 !important;
    font-weight: 600;
}

.manga-action-remove:hover {
    background-color: rgba(244, 67, 54, 0.1);
    color: #F44336 !important;
}

/* ═════════════════════════════════════════════════════════════════════════════
   PROGRESS TRACKING STYLES - MANGA YUMMY INSPIRED
   (now hidden globally)
   ═════════════════════════════════════════════════════════════════════════════ */

/* modal for editing progress */
.progress-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}
.progress-modal .modal-content {
    background: #222;
    padding: 20px 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 320px;
    text-align: center;
}
.progress-modal h2 {
    margin-top: 0;
    color: #fff;
    font-size: 18px;
}
.progress-modal input {
    width: 100%;
    padding: 8px;
    margin: 15px 0;
    border: 1px solid #444;
    border-radius: 4px;
    background: #333;
    color: #fff;
    font-size: 16px;
    /* remove default arrow background on focus/hover */
    appearance: none;
}
/* webkit spin button background transparent */
.progress-modal input::-webkit-outer-spin-button,
.progress-modal input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
    background: transparent;
}

.progress-modal .modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.progress-info {
    display: none; /* hide progress bars */
    margin-top: auto;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.progress-text {
    display: block;
    font-size: 11px;
    color: #bbb;
    margin-bottom: 6px;
    font-weight: 500;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #13667a 0%, #ff6b35 50%, #ffa500 100%);
    border-radius: 4px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 10px rgba(255, 77, 79, 0.3);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Progress percentage badge */
.progress-info::before {
    content: attr(data-percentage) '%';
    position: absolute;
    top: -8px;
    right: 0;
    background: linear-gradient(135deg, #13667a, #ff6b35);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* ═════════════════════════════════════════════════════════════════════════════
   ONLINE STATUS BADGES
   ═════════════════════════════════════════════════════════════════════════════ */

.status.online {
    color: #00ff88;
    font-weight: 600;
}

.status.offline {
    color: #aaa;
    font-weight: 500;
}

/* ═════════════════════════════════════════════════════════════════════════════
   PROFILE BANNER
   ═════════════════════════════════════════════════════════════════════════════ */

.profile-banner-top {
    display: flex;
    background: var(--head);
    color: #fff;
    border-bottom: 3px solid #13667a;
    text-transform: none;
    position: relative;
    border-radius: var(--radius) var(--radius) 0 0;
    font-size: 14px;
    font-weight: 600;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    width: 100%;
    gap: 5px;
    padding-right: 10px;
    padding-left: 20px;
    text-transform: none;
    text-align: center;
    padding: 15px;
}

.profile-banner-top .profile-banner-label {
    color: #aaa;
}

.profile-banner-top .profile-banner-name {
    color: #fff;
}

.profile-banner-top .profile-quick-info {
    position: absolute;
    left: 12px;
    display: inline-flex;
    align-items: center;
}

.profile-banner-top .profile-quick-info-trigger {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.profile-banner-top .profile-quick-info-trigger:hover,
.profile-banner-top .profile-quick-info-trigger:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
    outline: none;
}

.profile-banner-top .profile-quick-info-popover {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 180px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(18, 18, 18, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 20;
}

.profile-banner-top .profile-quick-info:hover .profile-quick-info-popover,
.profile-banner-top .profile-quick-info:focus-within .profile-quick-info-popover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-banner-top .profile-quick-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    line-height: 1.4;
}

.profile-banner-top .profile-quick-info-row + .profile-quick-info-row {
    margin-top: 8px;
}

.profile-banner-top .profile-quick-info-label {
    color: #969696;
}

.profile-banner-top .profile-quick-info-value {
    color: #fff;
    font-weight: 700;
    text-align: right;
}

.profile-banner-top .profile-settings-link {
    position: absolute;
    right: 12px;
    margin-left: 0;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d6d6d6;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
    text-decoration: none;
}

.profile-banner-top .profile-settings-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.profile-banner-top .profile-settings-link:focus-visible {
    outline: 2px solid #13667a;
    outline-offset: 2px;
}

/* Add Friend button on profile banner */
.profile-add-friend-wrap {
    position: absolute;
    right: 20px; /* next to gear icon */
}

.profile-add-friend-btn {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.profile-add-friend-btn:hover:not(:disabled),
.profile-add-friend-btn:focus-visible:not(:disabled) {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
    outline: none;
}

.profile-add-friend-btn.is-friend {
    color: #13667a;
    cursor: default;
}

.profile-add-friend-btn.is-sent {
    color: #888;
    cursor: default;
}

.profile-banner {
    width: 100%;
    height: 170px; /* desktop updated */
    background: linear-gradient(135deg, #0f0f0f, #1b1b1b, #0f0f0f);
    border-radius: 0 0 0 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.profile-banner.is-default-banner {
    background-color: #121212;
    background-image:
        linear-gradient(135deg, rgba(15, 15, 15, 0.92), rgba(26, 26, 26, 0.88)),
        url('../assets/img/logo.png');
    background-size: cover, 80px 80px;
    background-position: center center, 0 0;
    background-repeat: no-repeat, repeat;
}

.profile-header {
    border-radius: 0 0 8px 8px;
}

.profile-header .header-content {
    margin-top: 0;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    cursor: pointer;
    transition: .25s;
    color: white;
    font-weight: 600;
    backdrop-filter: blur(4px);
    border-radius: inherit;
}

.banner-overlay span {
    pointer-events: auto;
}

.profile-banner:hover .banner-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* ═════════════════════════════════════════════════════════════════════════════
   SETTINGS INTERFACE
   ═════════════════════════════════════════════════════════════════════════════ */

.settings-container {
    display: none;
    background: #2a2a2a;
    border-radius: 8px;
    padding: 30px;
    border: 1px solid #444;
    min-width: 0;
}

.settings-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #444;
}

.settings-tabs .tab-button {
    background: none;
    border: none;
    padding: 12px 24px;
    color: #aaa;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-tabs .tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.settings-tabs .tab-icon svg {
    width: 16px;
    height: 16px;
}

.settings-tabs .tab-button:hover {
    color: #fdb5b5;
    background: rgba(253,181,181, 0.08);
}

.settings-tabs .tab-button.active {
    color: #fdb5b5;
    border-bottom-color: #fdb5b5;
}

.settings-content {
    min-height: 400px;
}

.settings-content .profile-tab {
    display: none;
}

.settings-content .profile-tab.active {
    display: block;
}

.settings-content .profile-tab h3 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
}

/* Settings Tab Display - removed, not needed */
/* Settings tabs use .profile-tab class with proper display logic */

/* ═════════════════════════════════════════════════════════════════════════════
   SETTINGS MODE STATE
   ═════════════════════════════════════════════════════════════════════════════ */

.profile-page.settings-open .profile-banner,
.profile-page.settings-open .profile-header,
.profile-page.settings-open .profile-tabs,
.profile-page.settings-open .profile-content {
    display: none !important;
}

.profile-page.settings-open .settings-container {
    display: block !important;
}

body.profile-settings-modal-open {
    overflow: hidden;
}

.profile-settings-modal[hidden] {
    display: none !important;
}

.profile-settings-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
}

.profile-settings-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
}

.profile-settings-modal__dialog {
    position: relative;
    width: min(92vw, 880px);
    height: min(86vh, 780px);
    margin: 6vh auto;
    background: #1b1b1b;
    border: 1px solid #444;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.profile-settings-modal__close {
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.profile-settings-modal__close:hover {
    background: rgba(255, 255, 255, 0.18);
}

.profile-settings-modal__frame {
    width: 100%;
    height: 100%;
    border: 0;
    background: #1b1b1b;
}

.setting-group {
    margin-bottom: 30px;
}

.setting-label {
    display: block;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Group Info Display in Settings */
.group-info-display {
    padding: 12px 16px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.group-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.setting-input,
.setting-textarea {
    width: 100%;
    padding: 12px 16px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

.setting-input:focus,
.setting-textarea:focus {
    outline: none;
    border-color: #13667a;
}

.username-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
}

.username-input {
    flex: 1;
    padding-right: 45px !important;
    transition: all 0.3s ease;
    border: 2px solid #333 !important;
}

.username-input:focus {
    border-color: #3498db !important;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1) !important;
}

.username-status {
    position: absolute;
    right: 16px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

.status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.username-validator {
    background: linear-gradient(135deg, #1a1a1a 0%, #1f1f1f 100%);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.3s ease;
    max-height: 76px;
    overflow: hidden;
}

.username-validator.expanded {
    max-height: 400px;
    padding: 16px;
}

.username-message {
    margin-top: 12px;
    min-height: 22px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-4px);
    max-height: 0;
    overflow: hidden;
}

.message-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.username-validator.expanded .username-message {
    opacity: 1;
    transform: translateY(0);
    max-height: 50px;
}

.username-message.visible {
    opacity: 1;
    transform: translateY(0);
}

.username-message.checking {
    color: #3498db;
}

.username-message.available {
    color: #27ae60;
}

.username-message.taken {
    color: #e74c3c;
}

.username-requirements {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #333;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.username-validator.expanded .username-requirements {
    opacity: 1;
    max-height: 200px;
}

.username-requirements.visible {
    opacity: 1;
    max-height: 200px;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #888;
    transition: all 0.3s ease;
}

.req-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 14px;
}

.requirement.met .req-icon {
    background: #27ae60;
    color: white;
    transform: scale(1.1);
}

.requirement.pending .req-icon {
    background: #444;
    color: #888;
}

.requirement.unmet .req-icon {
    background: #e74c3c;
    color: white;
}

.requirement.met .req-text {
    color: #27ae60;
    font-weight: 500;
}

.requirement.unmet .req-text {
    color: #e74c3c;
    font-weight: 500;
}

.setting-textarea {
    resize: vertical;
    min-height: 100px;
}

.input-group {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.input-group .setting-input,
.input-group .setting-textarea {
    flex: 1;
}

.input-group .btn-primary {
    flex-shrink: 0;
    white-space: nowrap;
    align-self: center;
}

/* Success Message */
.save-success {
    padding: 10px 14px;
    background: rgba(253,181,181, 0.2);
    border-left: 3px solid #fdb5b5;
    border-radius: 4px;
    color: #fdb5b5;
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.setting-help {
    color: #aaa;
    font-size: 12px;
    margin-top: 5px;
}

/* Theme Options */
.theme-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    cursor: pointer;
}

.theme-option input[type="radio"] {
    margin: 0;
}

.theme-option span {
    font-size: 14px;
}

/* PRO Features */
.pro-features {
    background: rgba(255, 77, 79, 0.1);
    border: 1px solid rgba(255, 77, 79, 0.3);
    border-radius: 6px;
    padding: 20px;
}

.pro-features p {
    color: #fff;
    margin-bottom: 15px;
    font-weight: 600;
}

.pro-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pro-features li {
    color: #ccc;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.pro-features li:before {
    content: "✓";
    color: #00ff88;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ═════════════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .settings-container {
        padding: 20px;
    }

    .settings-tabs {
        flex-direction: column;
    }

    .settings-tab-button {
        text-align: left;
        padding: 12px 16px;
    }

    .banner-upload {
        flex-direction: column;
    }

    #current-banner-preview {
        width: 100%;
        height: 80px;
    }

    .input-group {
        flex-direction: column;
    }

    .theme-options {
        flex-direction: column;
        gap: 12px;
    }
}

/* ===============================
   PROFILE BANNER – MOBILE ONLY
   =============================== */
@media (max-width: 768px) {
    .profile-banner {
        height: 130px;
    }
}

/* ===============================
   SOCIAL TAB STYLES
   =============================== */

.social-container {
    padding: 15px;
}

#social-search {
    width: 100%;
    padding: 12px;
    background: #111;
    border: 2px solid #333;
    border-radius: 10px;
    color: #fff;
    margin-bottom: 15px;
}

.social-user {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-bottom: 1px solid #222;
    cursor: pointer;
    color: #fff;
}

.social-user img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.social-user:hover {
    background: #181818;
    color: #fff;
}

#social-results {
    display: block;
    height: auto;
    overflow: visible;
}

#social-results .social-user {
    display: flex !important;
}

/* ═════════════════════════════════════════════════════════════════════════════
   UPLOAD ERROR MESSAGES
   ═════════════════════════════════════════════════════════════════════════════ */

.upload-error {
    color: #ff4d4d;
    font-size: 12px;
    margin-top: 6px;
    display: none;
}

/* ═════════════════════════════════════════════════════════════════════════════
   FRIEND REQUESTS SECTION
   ═════════════════════════════════════════════════════════════════════════════ */

.friend-requests-section,
.search-section {
    margin-bottom: 30px;
}

.friend-requests-section h3,
.search-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #fff;
}

.friend-requests-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.friend-request-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #3a3a3a;
    border: 1px solid #444;
    border-radius: 6px;
}

.request-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    
    flex-shrink: 0;
}

.request-info {
    flex: 1;
}

.request-info strong {
    color: #fdb5b5;
    text-decoration: none;
    display: block;
}

.request-info a {
    text-decoration: none;
    color: inherit;
}

.request-info a:hover strong {
    text-decoration: underline;
}

.accept-friend-btn,
.reject-friend-btn {
    padding: 6px 12px;
    border: 1px solid #555;
    background: transparent;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.accept-friend-btn {
    border-color: #fdb5b5;
    color: #fdb5b5;
}

.accept-friend-btn:hover {
    background: #fdb5b5;
    color: #1a1a1a;
}

.reject-friend-btn:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
}

.empty-message {
    color: #999;
    text-align: center;
    padding: 20px;
    font-style: italic;
}

/* ═════════════════════════════════════════════════════════════════════════════
   FRIEND SYSTEM BUTTONS
   ═════════════════════════════════════════════════════════════════════════════ */

.add-friend-btn,
.open-chat-btn {
    padding: 8px 16px;
    border: 1px solid #fdb5b5;
    background: transparent;
    color: #fdb5b5;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.2s ease;
}

.add-friend-btn:hover:not(:disabled) {
    background: #fdb5b5;
    color: #1a1a1a;
}

.add-friend-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.add-friend-btn.status-sent,
.add-friend-btn.status-friend {
    background: #666;
    color: #ddd;
    border-color: #666;
}

.add-friend-btn.status-error {
    border-color: #e74c3c;
    color: #e74c3c;
}

.open-chat-btn {
    border-color: #fdb5b5;
    color: #fdb5b5;
    background: rgba(253,181,181, 0.1);
    position: relative;
    padding-left: 32px;
}

.open-chat-btn::before {
    content: '💬';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
}

.open-chat-btn:hover:not(:disabled) {
    background: #fdb5b5;
    color: #1a1a1a;
}

.open-chat-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: transparent;
    border-color: #999;
    color: #999;
}
/* Delete Friend Button */
.delete-friend-btn {
    padding: 4px 8px;
    border: none;
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.delete-friend-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

/* Friend Actions Container */
.friend-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

/* Message Friend Button */
.message-friend-btn {
    padding: 4px 8px;
    border: none;
    background: rgba(253,181,181, 0.15);
    color: #fdb5b5;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.message-friend-btn:hover {
    background: rgba(253,181,181, 0.25);
    color: #fff;
    transform: scale(1.05);
}

/* ==============================
   PROFILE HEADER – OWNER FIX
   ============================== */

@media (max-width: 480px) {

    /* container principal */
    .profile-title-row {
        grid-template-columns: 1fr;
        gap: 6px;
        text-align: center;
        min-width: 0;
    }

    /* username - prevent overflow and pushing buttons */
    .profile-username {
        grid-row: 1;
        font-size: 20px;
        font-weight: 600;
        word-break: break-word;
        overflow-wrap: break-word;
        min-width: 0;
        max-width: 100%;
        white-space: normal;
    }

    /* online / last seen */
    .profile-user-status {
        grid-row: 2;
        font-size: 13px;
        opacity: 0.8;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* ROW NOU pentru butoane - NOT pushed */
    .profile-owner-actions {
        grid-row: 3;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 14px;
        width: 100%;
        flex-shrink: 0;
        margin-top: 8px;    }

    /* notificari + setari */
    .notification-inbox-btn,
    .profile-settings-btn {
        position: static !important;
        order: unset !important;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ═════════════════════════════════════════════════════════════════════════════
   OVERVIEW TAB (GENERAL OVERVIEW)
   ═════════════════════════════════════════════════════════════════════════════ */

.overview-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 20px 0;
}

/* Statistics Cards */
.overview-statistics {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    border: 1px solid #444;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: #fdb5b5;
    box-shadow: 0 6px 16px rgba(253,181,181, 0.2);
    transform: translateY(-4px);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255,255,255, 0.3);
}

.stat-label {
    font-size: 14px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Genre Overview Section */
.overview-genres {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    border: 1px solid #444;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
}

.genres-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.genres-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.genre-item {
    background: #1f1f1f;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    color: white;
    width: 100%;
}

/* Color each genre dynamically based on PHP-provided color */
.genre-item {
    background: linear-gradient(135deg, var(--genre-color) 0%, color-mix(in srgb, var(--genre-color) 80%, black) 100%);
    border-color: var(--genre-color);
}

.genre-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.genre-count {
    font-size: 13px;
    color: #fff;
    font-weight: 700;
    opacity: 0.95;
    margin-bottom: 8px;
}

/* Genre total bar at the bottom */
.genre-total-bar {
    width: 100%;
    height: 11px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 20px;
    display: flex;
    gap: 0;
}

.genre-bar-segment {
    height: 100%;
    transition: all 0.3s ease;
}

.genre-bar-segment:hover {
    filter: brightness(1.2);
}

.no-genres {
    grid-column: 1 / -1;
    text-align: center;
    color: #999;
    padding: 20px 0;
    font-size: 14px;
}

/* Activity Section */
.overview-activity {
    grid-column: 1 / -1;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
}

.activity-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.status-input-wrapper {
    margin-bottom: 20px;
}

.status-input {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    padding: 12px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.3s ease;
}

.status-input:focus {
    outline: none;
    border-color: #fdb5b5;
    box-shadow: 0 0 8px rgba(253,181,181, 0.2);
}

.status-input::placeholder {
    color: #666;
}

.status-input-footer {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.status-rules {
    font-size: 12px;
    color: #999;
    margin: 0;
}

.status-input-buttons {
    display: flex;
    gap: 10px;
}

.status-input-buttons .btn-secondary,
.status-input-buttons .btn-primary {
    padding: 8px 16px;
    font-size: 13px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.status-input-buttons .btn-secondary {
    background: #444;
    color: #fff;
}

.status-input-buttons .btn-secondary:hover {
    background: #555;
}

.status-input-buttons .btn-primary {
    background: linear-gradient(135deg, #fdb5b5 0%, #fdb5b5 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(253,181,181, 0.3);
}

.status-input-buttons .btn-primary:hover {
    box-shadow: 0 6px 16px rgba(253,181,181, 0.4);
    transform: translateY(-2px);
}

.activity-feed {
    border-top: 1px solid #444;
    padding-top: 20px;
}

.no-activity {
    color: #999;
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
}

/* Recent Activity Section */
.overview-recent {
    grid-column: 1 / -1;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 12px;
    padding: 30px;
}

.recent-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.recent-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.recent-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #1a1a1a 0%, #242424 100%);
    border-radius: 8px;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.recent-item:hover {
    border-color: #fdb5b5;
    box-shadow: 0 4px 12px rgba(253,181,181, 0.15);
    transform: translateY(-2px);
}

.recent-cover {
    width: 60px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #444;
}

.recent-cover img {
    width: 100%;
    height: 100%;
    
}

.no-image-small {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #333;
    color: #666;
    font-size: 24px;
}

.recent-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
}

.recent-info h4 {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 600;
}

.recent-info h4 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-info h4 a:hover {
    color: #fdb5b5;
}

.recent-action {
    margin: 0;
    font-size: 13px;
    color: #fdb5b5;
    font-weight: 500;
    line-height: 1.3;
}

.recent-status {
    margin: 0;
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recent-progress {
    display: none; /* hide chapter progress info */
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #ccc;
}

.recent-progress strong {
    color: #fff;
    font-weight: 600;
}

.recent-time {
    margin: 0;
    font-size: 12px;
    color: #666;
    margin-top: auto;
}

/* ═════════════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE - OVERVIEW
   ═════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .overview-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .overview-statistics {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-number {
        font-size: 28px;
    }

    .overview-activity,
    .overview-genres,
    .overview-recent {
        padding: 20px;
    }

    .genres-list {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
    }

    .genre-item {
        padding: 12px;
    }

    .genre-total-bar {
        height: 9px;
        margin-top: 15px;
    }

    .genre-name {
        font-size: 13px;
    }

    .genre-count {
        font-size: 12px;
    }

    .activity-title,
    .genres-title,
    .recent-title {
        font-size: 16px;
    }

    .status-input {
        min-height: 60px;
        font-size: 13px;
    }

    .status-input-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .status-input-buttons {
        width: 100%;
    }

    .status-input-buttons .btn-secondary,
    .status-input-buttons .btn-primary {
        flex: 1;
    }

    .recent-list {
        grid-template-columns: 1fr;
    }

    .recent-item {
        padding: 12px;
        gap: 12px;
    }

    .recent-cover {
        width: 50px;
        height: 75px;
    }

    .recent-info h4 {
        font-size: 13px;
    }

    .recent-status {
        font-size: 11px;
    }

    /* Mobile: Manga List Header */
    .manga-list-header {
        gap: 8px;
    }

    .manga-search-input {
        font-size: 13px;
        padding: 8px 12px;
    }

    .filter-toggle {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .filter-toggle svg {
        width: 18px;
        height: 18px;
    }

    /* Mobile: Filter Drawer */
    .manga-filter-drawer {
        max-height: 90vh;
        border-radius: 12px 12px 0 0;
        bottom: 55px;
    }

    .drawer-header {
        padding: 14px 16px;
    }

    .drawer-header h3 {
        font-size: 15px;
    }

    .drawer-content {
        padding: 16px;
    }

    .filter-section {
        margin-bottom: 18px;
    }

    .filter-section h4 {
        font-size: 12px;
    }

    .filter-items {
        gap: 6px;
    }

    .filter-item {
        padding: 8px 12px;
        font-size: 12px;
    }

    .manga-status-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
}

/* ═════════════════════════════════════════════════════════════════════════════
   COMMENTS TAB
   ═════════════════════════════════════════════════════════════════════════════ */

/* Header banner */
.comments-header-banner {
    text-align: center;
    padding: 14px 0 12px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #fff;
    text-transform: uppercase;
    border-bottom: 2px solid #c0392b;
    margin-bottom: 12px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.comment-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #222;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-thumb {
    flex-shrink: 0;
    width: 58px;
    height: 82px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #222;
    display: block;
}

.comment-thumb img {
    width: 100%;
    height: 100%;
    
    display: block;
}

.comment-thumb-empty {
    background: #1e1e1e;
}

.comment-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.comment-post-title {
    color: #e05c5c;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.comment-post-title:hover {
    color: #ff8080;
}

.comment-date {
    color: #777;
    font-size: 12px;
    margin-left: auto;
    flex-shrink: 0;
}

.comment-reactions {
    display: flex;
    gap: 10px;
}

.comment-reaction {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #aaa;
    font-size: 12px;
}

.comment-reaction--like svg { stroke: #5cb85c; }
.comment-reaction--dislike svg { stroke: #e05c5c; }

.comment-react-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.comment-react-btn:hover {
    background: rgba(255,255,255,0.06);
    color: #ccc;
}

.comment-react-btn--like svg { stroke: #888; transition: stroke 0.15s; }
.comment-react-btn--dislike svg { stroke: #888; transition: stroke 0.15s; }

.comment-react-btn--like.active { color: #5cb85c; }
.comment-react-btn--like.active svg { stroke: #5cb85c; }

.comment-react-btn--dislike.active { color: #e05c5c; }
.comment-react-btn--dislike.active svg { stroke: #e05c5c; }

.comment-react-btn:disabled { opacity: 0.5; cursor: default; }

.comment-content {
    color: #ccc;
    line-height: 1.5;
    word-break: break-word;
    font-size: 13px;
    margin-top: 2px;
}

.comment-content-link {
    color: #ccc;
    text-decoration: none;
}

.comment-content-link:hover {
    color: #fff;
}

.comment-mention {
    color: #b39ddb;
    font-weight: 500;
}



