* {
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
}

body {
    background-color: #0a0c0e;
    color: #f1f5f9;
}

header {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1e293b;
    top: 0;
    padding: 40px;
}

.logo {
    color: white;
    display: flex;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: #00ff66;
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-size: 16px;
}

.nav-links a {
    text-decoration: none;
    transition: 0.3s;
    color: #94a3b8;
}

.nav-links a:hover {
    color: #00ff66;
}

.search-bar {
    background: #121619;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid #1e293b;
}

.search-bar input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    margin-left: 0.5rem;
}

.btn-login {
    background: transparent;
    border: 1px solid #00ff66;
    color: #00ff66;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    gap: 0.4rem;
    transition: 0.3s;
}

.btn-login:hover {
    background: #00ff66;
    color: black;
}

/* carousel bonito */

.carousel-container {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 16px;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 15px; /* Espaciado de seguridad con la barra superior */
}

/* Pista que contiene los slides para el desplazamiento fluido */
.carousel-track,
#carouselTrack {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 0 50px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0.4s;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.slide-content {
    max-width: 550px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden; /* Evita que el texto traspase la caja */
}

.badge-trend {
    display: inline-block;
    background: #00e676;
    color: #000;
    font-weight: bold;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.manga-title {
    color: #fff;
    font-size: 2.2rem;
    margin: 8px 0;
    font-weight: 800;
    line-height: 1.2;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Corta títulos largos con '...' */
}

.manga-desc {
    color: #b3b3b3;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Límite estricto de 3 líneas */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slide-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #00e676;
    color: #000;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
}

.btn-primary:hover {
    background: #00c853;
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: background 0.2s, transform 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.prev-btn, .next-btn, 
.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.prev-btn:hover, .next-btn:hover,
.carousel-prev:hover, .carousel-next:hover {
    background: rgba(0, 230, 118, 0.8);
    color: #000;
    transform: translateY(-50%) scale(1.05);
}

.prev-btn, .carousel-prev { left: 15px; }
.next-btn, .carousel-next { right: 15px; }

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #00e676;
    width: 25px;
    border-radius: 10px;
}

/* Estado activo para el botón del carrusel */
.btn-secondary.active,
.btn-favorite.active {
    background: rgba(255, 77, 77, 0.2) !important;
    border-color: #ff4d4d !important;
    color: #ff4d4d !important;
}

.btn-secondary.active i,
.btn-favorite.active i {
    color: #ff4d4d !important;
    fill: #ff4d4d !important; /* Rellena el corazón de rojo */
}

/* Estado activo para los botones flotantes de las Cards */
.btn-fav.active {
    background: #ff4d4d !important;
    color: #ffffff !important;
}

.btn-fav.active i {
    fill: #ffffff !important;
    color: #ffffff !important;
}

/* Categorias */

.categories,
.manga-section {
    padding: 1rem;
    padding-top: 3rem;
}

.title-with-bar {
    margin-bottom:1.5rem;
    border-left: 4px solid #00ff66;
    padding-left: 0.8rem;
    margin-top: 20px;
    margin-left: 20px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.cat-card {
    background: #121619;
    padding: 1.2rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #1e293b;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: white;
}

.cat-card:hover {
    border-color: #00ff66;
    color: #00ff66;
    transform: translateY(-3px);
}

/* Login */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #121619;
    padding: 2rem;
    border-radius: 12px;
    width: 350px;
    border: 1px solid #00ff66;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #94a3b8;
}

.input-group {
    margin: 1rem 0;
}

.input-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 0.6rem;
    background: #0a0c0e;
    border: 1px solid #1e293b;
    color: white;
    border-radius: 6px;
}

.btn-full {
    width: 100%;
    margin-top: 1rem;
    border: none;
    cursor: pointer;
    background: #00ff66;
    height: 50px;
    border-radius: 10px;
    color: black;
    font-weight: 700;
}

.color-verde {
    color: #00ff66;
}

.register {
    color: white;
    transition: 0.3s;
    text-decoration: none;
}

.register:hover {
    text-decoration: underline;
}

/* Ventana Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: #121214;
    border: 1px solid #00ff66;
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.2);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
}

.close-btn:hover {
    color: #00ff66;
}

/* Pestañas */
.modal-tabs {
    display: flex;
    border-bottom: 1px solid #333;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 10px;
    color: #888;
    font-weight: bold;
    cursor: pointer;
}

.tab-btn.active {
    color: #00ff66;
    border-bottom: 2px solid #00ff66;
}

/* Formularios */

.auth-form {
    display: none;
    flex-direction: column;
    gap: 15px;
}

.auth-form.active {
    display: flex;
}

.input-group {
    display: flex;
    align-items: center;
    background: #1a1a1e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 10px;
    gap: 10px;
}

.input-group i {
    color: #00ff66;
}

.input-group input {
    background: none;
    border: none;
    color: #fff;
    width: 100%;
    outline: none;
}

.btn-submit {
    background: #00ff66;
    color: #000;
    font-weight: bold;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-submit:hover {
    background: #00cc52;
}

/* Grid de Mangas */

.manga-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 20px;
}

.manga-card {
    background-color: #1a1a2e;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.manga-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 102, 0.3);
}

.card-img {
    position: relative;
    width: 100%;
    height: 260px;
}

/* Badge superior izquierdo (Tipo: MANGA / MANHWA) */
.badge-type {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    z-index: 2;
}

/* Badge inferior izquierdo (Último Capítulo) */
.badge-chapter {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: #00ff66;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    border: 1px solid rgba(0, 255, 102, 0.3);
    z-index: 2;
}

/* Colores según el tipo de contenido */
.badge-manga {
    background-color: #00ff66;
}

/* Azul */
.badge-manhwa {
    background-color: #7c3aed;
}

/* Morado */
.badge-manhua {
    background-color: #dc2626;
}

/* Rojo */

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-img .score {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffd700;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
}

.card-info {
    padding: 12px;
}

.card-info h3 {
    font-size: 14px;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

.card-info .chapters {
    font-size: 12px;
    color: #a0a0a0;
}

.btn-todos {
    height: 42px;
    width: 135px;
    background-color: #00ff66;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-todos a {
    text-decoration: none;
    color: black;
}

.btn-todos:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 25px rgba(0, 255, 102, 0.6);
}

/* Menú de Usuario */
.user-profile-menu {
    position: relative;
    display: inline-block;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #161b22;
    border: 1px solid #30363d;
    padding: 6px 14px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-badge:hover {
    border-color: #00ff66;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.2);
}

.avatar-circle {
    width: 32px;
    height: 32px;
    background: #00ff66;
    color: #000;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.user-name {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

/* Oculto por defecto */

.user-dropdown-content {
    display: none !important;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    background: #161b22;
    border: 1px solid #30363d;
    min-width: 180px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    padding: 12px;
    z-index: 999;
}

/* Se muestra solo al hacer clic */


.user-dropdown-content.show {
    display: block !important;
}

.dropdown-header small {
    display: block;
    color: #8b949e;
    font-size: 11px;
}

.dropdown-header strong {
    color: #00ff66;
    font-size: 13px;
}

.dropdown-divider {
    border: 0;
    height: 1px;
    background: #30363d;
    margin: 10px 0;
}

.btn-logout {
    width: 100%;
    background: rgba(255, 77, 77, 0.15);
    color: #ff4d4d;
    border: 1px solid #ff4d4d;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s ease;
}

.btn-logout:hover {
    background: #ff4d4d;
    color: #fff;
}

/* Modal de Bienvenida Personalizada */

.custom-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.custom-modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.custom-modal-card {
    background: #161b22;
    border: 1px solid #00ff66;
    border-radius: 16px;
    padding: 30px 40px;
    text-align: center;
    box-shadow: 0 0 25px rgba(0, 255, 102, 0.3);
    max-width: 360px;
    width: 90%;
}

.welcome-logo {
    width: 160px;
    /* Aumenta el tamaño visual de Neko-chan */
    height: auto;
    /* Mantiene la proporción original */
    display: block;
    margin: 0 auto 15px auto;
    /* La mantiene centrada y despejada */
    filter: contrast(115%) brightness(105%) drop-shadow(0 0 14px rgba(0, 255, 102, 0.6));
}

.custom-modal-card h2 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 8px;
}

.brand-text {
    color: #00ff66;
}

.user-highlight {
    color: #8b949e;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 500;
}

.btn-welcome {
    background: #00ff66;
    color: #0d1117;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-welcome:hover {
    background: #00cc52;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 102, 0.4);
}

/* Botón de Favoritos flotante en las tarjetas */
.card-img {
    position: relative;
}

.btn-fav {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(13, 17, 23, 0.75);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.btn-fav:hover {
    transform: scale(1.1);
    background: rgba(13, 17, 23, 0.95);
    color: #ff4d4d;
}

.btn-fav.active {
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.2);
    border: 1px solid #ff4d4d;
}

.btn-fav i {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Previene que los elementos internos del botón capturen el clic */
.btn-fav * {
    pointer-events: none;
}

/* donaciones para la web estilos */

/* Botón flotante */
.donate-floating-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: linear-gradient(135deg, #00ff66, #00b347);
    color: #0d1117;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 255, 102, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 999;
}

.donate-floating-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 25px rgba(0, 255, 102, 0.6);
}

/* Fondo oscuro del modal */
.donation-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.donation-modal-overlay.active {
    display: flex;
}

/* Tarjeta del modal */
.donation-modal-card {
    background: #161b22;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    padding: 30px 25px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: popIn 0.25s ease-out;
}

@keyframes popIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.donation-modal-close {
    position: absolute;
    top: 15px;
    right: 18px;
    background: none;
    border: none;
    color: #8b949e;
    font-size: 1.6rem;
    cursor: pointer;
}

.donation-modal-close:hover {
    color: #fff;
}

.donation-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 77, 77, 0.15);
    color: #ff4d4d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
}

.donation-modal-card h3 {
    color: #fff;
    margin-bottom: 10px;
    font-weight: 700;
}

.donation-modal-card p {
    color: #8b949e;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 25px;
}

.donation-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-donate-platform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: filter 0.2s ease;
}

.btn-donate-platform.kofi {
    background: #ff5e5b;
    color: #fff;
}

.btn-donate-platform.paypal {
    background: #0070ba;
    color: #fff;
}

.btn-donate-platform:hover {
    filter: brightness(1.1);
    color: #fff;
}

.btn-donate-other {
    color: #8b949e;
    font-size: 0.85rem;
    text-decoration: underline;
    margin-top: 5px;
}

.btn-donate-other:hover {
    color: #00ff66;
}

/* Menu desplegable para movil y tablet */

/* --- ADAPTACIÓN RESPONSIVE HEADER CON TRANSICIÓN SUAVE --- */

/* Estilo del botón hamburguesa */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.menu-toggle:hover {
    color: #00ff66;
    transform: scale(1.05);
}

/* Agrupador de navegación y búsqueda en escritorio */
.nav-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-grow: 1;
    justify-content: space-around;
}

/* Reglas Responsive (Tablets y Celulares <= 1024px) */
@media (max-width: 1024px) {
    header {
        position: relative;
        justify-content: space-between;
        display: flex;
        align-items: center;
        padding: 15px;
    }

    /* Ocultar nombre y flecha en la tarjeta de usuario */
    .user-badge .user-name,
    .user-badge .dropdown-icon {
        display: none !important;
    }

    .user-badge {
        padding: 4px !important;
        gap: 0 !important;
        background: transparent !important;
        border: none !important;
    }

    /* REORDENAMIENTO: Perfil al medio/izquierda y Menú Hamburguesa a la derecha */
    #user-nav {
        order: 1;
        margin-left: auto; /* Empuja el perfil hacia la derecha, dejando la hamburguesa al final */
        margin-right: 12px;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        order: 2; /* Asegura que la hamburguesa sea el último elemento */
    }

    /* Contenedor colapsable animado */
    .nav-content {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #0d1117;
        flex-direction: column;
        align-items: stretch;
        padding: 0 20px;
        gap: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
        z-index: 999;

        /* Efectos de transición suave */
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.3s ease,
            transform 0.3s ease,
            padding 0.3s ease;
    }

    /* Estado desplegado */
    .nav-content.show {
        max-height: 400px;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        padding: 20px;
    }

    .nav-links {
        flex-direction: column;
        gap: 12px;
    }

    .nav-links a {
        transition: transform 0.2s ease, color 0.2s ease;
    }

    .nav-links a:hover {
        transform: translateX(5px);
    }

    .search-bar {
        width: 100%;
        max-width: 100%;
    }
}

/* --- PAGINA DE PERFIL / DASHBOARD --- */

body.profile-page {
    background-color: #0d0c1d;
    color: #fff;
    font-family: system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 40px 20px;
}

.profile-wrapper {
    max-width: 1050px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 25px;
}

@media (max-width: 820px) {
    .profile-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Side Card */
.profile-card {
    background: #16151d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    height: fit-content;
}

.card-banner {
    width: 100%;
    height: 90px;
    background: linear-gradient(135deg, #00ff66 0%, #0088ff 100%);
}

.profile-avatar-container {
    margin-top: -45px;
    margin-bottom: 12px;
}

.avatar-large {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #201e2d;
    border: 4px solid #16151d;
    color: #00ff66;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.user-info {
    text-align: center;
    margin-bottom: 20px;
}

.user-info h3 {
    margin: 0 0 6px 0;
    font-size: 1.3rem;
    color: #fff;
}

/* Mantiene el diseño base verde tipo pastilla */
.user-badge-vip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(46, 213, 115, 0.15);
    color: #00ff66;
    border: 1px solid rgba(46, 213, 115, 0.3);
}

.user-badge-vip i {
    width: 14px;
    height: 14px;
}

/* Solo si es VIP, cambia el color a rojo/neón pero conserva el diseño de pastilla */
.user-badge-vip.is-vip {
    background: rgba(255, 230, 0, 0.18);
    color: #ffe600;
    border: 1px solid #ffe600;
    box-shadow: 0 0 14px rgba(255, 230, 0, 0.5);
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 230, 0, 0.6);
}

/* ==========================================
   ANIMACIÓN Y NEÓN SUPPORTER / VIP
   ========================================== */

/* 1. Keyframe para la rotación y brillo neón del avatar */
@keyframes neonGlow {
    0% {
        box-shadow: 0 0 10px rgba(255, 230, 0, 0.5), 
                    0 0 20px rgba(255, 167, 0, 0.4), 
                    inset 0 0 8px rgba(255, 230, 0, 0.3);
        border-color: #ffe600;
        background-position: 0% 50%;
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 230, 0, 0.9), 
                    0 0 35px rgba(255, 167, 0, 0.8), 
                    inset 0 0 15px rgba(255, 230, 0, 0.6);
        border-color: #ffa700;
        background-position: 100% 50%;
    }
    100% {
        box-shadow: 0 0 10px rgba(255, 230, 0, 0.5), 
                    0 0 20px rgba(255, 167, 0, 0.4), 
                    inset 0 0 8px rgba(255, 230, 0, 0.3);
        border-color: #ffe600;
        background-position: 0% 50%;
    }
}

/* Aplicación de la animación al marco neón */
.profile-avatar-container.supporter-neon {
    background: linear-gradient(135deg, #ffe600, #ffa700, #ffffff, #ffe600) !important;
    background-size: 200% 200% !important;
    animation: neonGlow 2.5s ease infinite !important;
    padding: 3px !important;
}

/* 2. Keyframe y resplandor continuo para el badge "Lector VIP" */
@keyframes vipPulse {
    0% {
        box-shadow: 0 0 8px rgba(255, 230, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 18px rgba(255, 230, 0, 0.85);
    }
    100% {
        box-shadow: 0 0 8px rgba(255, 230, 0, 0.4);
    }
}

.user-badge-vip.is-vip {
    animation: vipPulse 2s ease-in-out infinite !important;
}

.profile-stats {
    display: flex;
    width: 85%;
    justify-content: space-around;
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin-bottom: 15px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}

.stat-label {
    font-size: 0.75rem;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-divider {
    width: 100%;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0 0 15px 0;
}

.profile-actions {
    width: 100%;
    padding: 0 20px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
}

.btn-sub {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-sub:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-danger {
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.08);
    border-color: rgba(255, 77, 77, 0.2);
}

.btn-danger:hover {
    background: rgba(255, 77, 77, 0.2);
}

/* Main Panel */
.profile-content {
    background: #16151d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.section-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.section-header h2 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #00ff66;
}

.section-header p {
    margin: 5px 0 0 0;
    color: #a0a0a0;
    font-size: 0.9rem;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.88rem;
    color: #ccc;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group input {
    background: #201e2d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 14px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: #00ff66;
}

.form-group small {
    color: #777;
    font-size: 0.78rem;
}

.btn-save {
    background: #00ff66;
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

.btn-save:hover {
    background: #00cc52;
}

/* --- SUBIDA DE ARCHIVOS PERSONALIZADA --- */
.file-input-hidden {
    display: none;
    /* Oculta el input por defecto feo */
}

.file-upload-wrapper {
    margin-top: 6px;
}

.file-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #e0e0e0;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-btn:hover {
    background-color: rgba(0, 230, 118, 0.1);
    border-color: #00e676;
    /* Color verde Neón de tu tema */
    color: #fff;
}

.file-upload-btn i {
    width: 20px;
    height: 20px;
    color: #00e676;
}

/* --- FILAS INDEPENDIENTES EN RESPONSIVE --- */
@media screen and (max-width: 1024px) {
    #manga-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Cada fila generada por JS tendrá su propio carrusel */
    .manga-row {
        display: flex !important;
        flex-direction: row !important;
        gap: 10px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .manga-card {
        scroll-snap-align: start !important;
        flex: 0 0 160px !important;
        width: 160px !important;
        max-width: 160px !important;
        box-sizing: border-box !important;
    }

    .manga-card .card-img {
        width: 100% !important;
        aspect-ratio: 3 / 4 !important;
        height: auto !important;
    }

    .manga-card .card-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .manga-card .card-info {
        padding: 8px !important;
        flex-grow: 0 !important;
    }

    .manga-card .card-info h3 {
        font-size: 0.8rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Barra de scroll horizontal bonita y neón */
    .manga-row::-webkit-scrollbar {
        height: 8px;
    }

    .manga-row::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
    }

    .manga-row::-webkit-scrollbar-thumb {
        background: #00ff66;
        border-radius: 10px;
    }
}

@media screen and (max-width: 768px) {
    .manga-row::-webkit-scrollbar {
        display: none;
    }
}


/* Caja de Alerta en el Modal */
.auth-alert {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 12px;
    background: rgba(255, 68, 68, 0.12);
    border: 1px solid #ff4444;
    color: #ff6b6b;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.2);
    animation: alertShake 0.35s ease-in-out;
}

.auth-alert.active {
    display: flex;
}

.auth-alert i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Efecto de sacudida para marcar error */
@keyframes alertShake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-5px);
    }

    40%,
    80% {
        transform: translateX(5px);
    }
}



/* --- SOBRE NOSOTROS --- */

/* Hero Section */
.about-hero {
    position: relative;
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
}

.about-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.about-badge {
    background: #ff4d4d;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 15px;
}

.about-hero h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.2;
}

.about-hero p {
    font-size: 1.1rem;
    color: #a0a0b0;
    line-height: 1.6;
}

/* Contenedor Principal */
.about-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 60px 20px;
}

/* Tarjetas de Misión y Visión */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
    cursor: pointer;
}

.about-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: #ff4d4d;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 77, 77, 0.1);
    color: #ff4d4d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.about-card h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.about-card p {
    color: #a0a0b0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Características */
.about-features {
    margin-bottom: 60px;
}

.about-features h2 {
    color: #fff;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 40px;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 25px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-item svg {
    width: 32px;
    height: 32px;
    color: #ff4d4d;
    flex-shrink: 0;
}

.feature-item h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.feature-item p {
    color: #8a8a9e;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Banner de Reconocimiento a API */
.about-api-banner {
    background: rgba(255, 77, 77, 0.05);
    border: 1px dashed rgba(255, 77, 77, 0.3);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.api-banner-content svg {
    width: 40px;
    height: 40px;
    color: #ff4d4d;
    margin-bottom: 10px;
}

.api-banner-content h3 {
    color: #fff;
    margin-bottom: 8px;
}

.api-banner-content p {
    color: #a0a0b0;
    max-width: 650px;
    margin: 0 auto;
    font-size: 0.95rem;
}

/* Responsive Móvil */
@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 1.8rem;
    }

    .features-list {
        grid-template-columns: 1fr;
    }
}

/* --- MEJORAS VISUALES SOBRE NOSOTROS --- */

/* Línea decorativa del título */
.about-features h2 {
    position: relative;
    display: inline-block;
    width: 100%;
}

.about-features h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #ff4d4d;
    margin: 12px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.5);
}

/* Sección de Estadísticas */
.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: #ff4d4d;
    text-shadow: 0 0 12px rgba(255, 77, 77, 0.3);
    margin-bottom: 5px;
}

.stat-label {
    color: #a0a0b0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Banner CTA Final */
.about-cta {
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.15) 0%, rgba(22, 33, 62, 0.8) 100%);
    border: 1px solid rgba(255, 77, 77, 0.3);
    border-radius: 16px;
    padding: 45px 25px;
    text-align: center;
    margin-top: 40px;
}

.cta-content h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 10px;
}

.cta-content p {
    color: #cccccc;
    margin-bottom: 25px;
    font-size: 1rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary-cta, .btn-secondary-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary-cta {
    background: #ff4d4d;
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.4);
}

.btn-primary-cta:hover {
    background: #ff3333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 77, 77, 0.6);
}

.btn-secondary-cta {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary-cta:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Botón Flotante de Donación */
.btn-donate-floating {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ff4d4d;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.4);
    z-index: 999;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-donate-floating:hover {
    transform: scale(1.1);
    background: #ff3333;
}

.btn-donate-floating svg {
    width: 24px;
    height: 24px;
}

/* --- MODAL DE DONACIÓN --- */

.donation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.donation-modal.active {
    opacity: 1;
    visibility: visible;
}

.donation-modal-content {
    background: #161b22;
    border: 1px solid rgba(255, 77, 77, 0.3);
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.donation-modal.active .donation-modal-content {
    transform: translateY(0);
}

.btn-close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #a0a0b0;
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-close-modal:hover {
    color: #ff4d4d;
}

.donation-header {
    text-align: center;
    margin-bottom: 25px;
}

.donation-icon {
    width: 48px;
    height: 48px;
    color: #ff4d4d;
    margin-bottom: 10px;
}

.donation-header h2 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.donation-header p {
    color: #a0a0b0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.donation-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.donation-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.donation-card:hover {
    background: rgba(255, 77, 77, 0.1);
    border-color: #ff4d4d;
    color: #fff;
    transform: translateX(4px);
}

.donation-card svg {
    width: 24px;
    height: 24px;
    color: #ff4d4d;
}

.donation-card strong {
    display: block;
    font-size: 1rem;
}

.donation-card small {
    color: #8a8a9e;
    font-size: 0.8rem;
}

.donation-footer {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 15px;
}

.donation-footer p {
    color: #6e7681;
    font-size: 0.85rem;
    margin: 0;
}

/* Quitar SOLO la barra verde lateral en títulos centrados */
.about-features h2,
.donation-header h2 {
    border-left: none !important;
    padding-left: 0 !important;
}

.about-features h2::before,
.donation-header h2::before {
    display: none !important;
    content: none !important;
}

/* Mantener la línea roja centrada DEBAJO del título de características */
.about-features h2::after {
    content: '' !important;
    display: block !important;
    width: 60px;
    height: 4px;
    background: #ff4d4d;
    margin: 12px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.5);
}

/* ELIMINAR LÍNEA VERDE DE TODOS LOS H2 CENTRADOS O DENTRO DE MODALES/CTAS */
.about-cta h2,
.about-features h2,
.donation-header h2,
section[class*="cta"] h2 {
    border-left: none !important;
    padding-left: 0 !important;
}

.about-cta h2::before,
.about-features h2::before,
.donation-header h2::before,
section[class*="cta"] h2::before {
    display: none !important;
    content: none !important;
    background: none !important;
}

/* RECUPERAR LÍNEA ROJA DEBAJO EN '¿POR QUÉ LEER EN NUESTRA PLATAFORMA?' */
.about-features h2::after {
    content: '' !important;
    display: block !important;
    width: 60px;
    height: 4px;
    background: #ff4d4d;
    margin: 12px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.5);
}

/* --- COMPONENTES DE BENEFACTOR / SUPPORTER --- */

/* TARJETA PRINCIPAL CON OVERFLOW VISIBLE (CRÍTICO PARA MÓVIL) */
.profile-card,
.profile-sidebar,
.user-card,
.sidebar-profile {
    position: relative !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible !important; /* Evita que el avatar se corte o desaparezca al encoger */
}

/* BANNER SUPERIOR CON ALTURA ESTRICTA */
.card-banner,
.profile-banner {
    width: 100%;
    height: 80px !important;
    position: relative !important;
    overflow: visible !important;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

/* MARCO BASE DE AVATAR (CENTRADO EXACTO EN LA LÍNEA DEL BANNER) */
.profile-avatar-container {
    position: absolute !important;
    top: 80px !important; /* Mismo valor que la altura del banner */
    left: 50% !important;
    transform: translate(-50%, -50%) !important; /* Calibra el centro justo en la línea */
    z-index: 20 !important;
    
    width: 110px !important;
    height: 110px !important;
    max-width: 110px !important;
    max-height: 110px !important;
    aspect-ratio: 1 / 1 !important;
    
    border-radius: 50% !important;
    padding: 3px !important;
    
    background: #21262d; 
    box-shadow: none;
    
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    transition: all 0.3s ease;
}

/* MARCO NEÓN EXCLUSIVO PARA BENEFACTORES */
.profile-avatar-container.supporter-neon {
    background: linear-gradient(135deg, #ffe600, #ffa700, #ffffff, #ffe600);
    background-size: 200% 200%;
    animation: neonGlow 2.5s ease infinite;
    padding: 3px; /* Asegura grosor para el destello */
}

/* AVATAR INTERNO */
.profile-avatar-container #avatarPreview,
.profile-avatar-container img,
.avatar-large {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    overflow: hidden !important;
    background-color: #161b22;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
}

/* SECCIÓN DE INFORMACIÓN Y ESPACIO MÍNIMO PARA NO SOLAPAR EL AVATAR */
.user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 65px !important; /* Espacio para librar la mitad inferior del avatar */
}

/* CONTENEDOR DE NOMBRE + CORONA EN LÍNEA HORIZONTAL */
.user-name-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
    position: relative !important;
}

.user-info h3,
#profileDisplayUser {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.15rem;
    margin: 0 !important;
    line-height: 1;
}

/* ESTILOS Y ALINEACIÓN DE LA CORONA */
.supporter-badge,
.user-badge-benefactor,
#supporterBadge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #ffd700 !important; 
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.6)) !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
}

/* ALINEACIÓN SVG DE LUCIDE */
.supporter-badge svg,
.user-badge-benefactor svg,
#supporterBadge svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    position: static !important;
    display: block !important;
    vertical-align: middle !important;
    margin: 0 !important;
}

.user-badge-vip {
    margin-top: 8px;
}

/* MÓVIL Y RESPONSIVE */
@media (max-width: 768px) {
    .profile-avatar-container {
        top: 80px !important;
        width: 100px !important;
        height: 100px !important;
        max-width: 100px !important;
        max-height: 100px !important;
    }
    
    .user-info {
        margin-top: 60px !important;
    }
}

/* --- FOOTER STYLES --- */

.site-footer {
    border-top: 1px solid #21262d;
    color: #8b949e;
    padding: 50px 20px 20px 20px;
    margin-top: 60px;
    font-family: sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    color: #fff;
    font-size: 24px;
    margin-bottom: 10px;
}

.footer-logo span {
    color: #00ff66;
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Tarjeta especial de Discord */

.discord-card {
    background: linear-gradient(135deg, #161b22 0%, #1f2633 100%);
    border: 1px solid rgba(0, 255, 102, 0.2);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.discord-title {
    color: #00ff66;
    font-weight: bold;
    font-size: 15px;
    display: block;
    margin-bottom: 5px;
}

.discord-info p {
    font-size: 13px;
    color: #c9d1d9;
    margin: 0;
}

.btn-discord {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #5865F2;
    /* Color oficial de Discord */
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-discord:hover {
    background-color: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

/* Enlaces del Footer */
.footer-links h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
    border-left: 3px solid #00ff66;
    padding-left: 8px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #8b949e;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #00ff66;
}

/* Derechos de autor */

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0 auto;
    padding-top: 20px;
    border-top: 1px solid #21262d;
    text-align: center;
    font-size: 13px;
}

/* Pantalla de Bienvenida Overlay */
.welcome-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(8px);
  display: none; /* Oculto por defecto */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Estado visible al añadir la clase .show */
.welcome-overlay.show {
  display: flex !important;
}

.welcome-card {
  background-color: #121214;
  border: 1px solid #27272a;
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 255, 102, 0.15);
}

.welcome-mascot {
  width: 100%;
  max-width: 280px;
  height: auto;
  margin-bottom: 1rem;
  object-fit: contain;
}

.welcome-card h2 {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.welcome-card p {
  color: #a1a1aa;
  font-size: 0.95rem;
  margin-bottom: 1.8rem;
  line-height: 1.4;
}

.welcome-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Botones con paleta NekoManga */
.btn-primary {
  background-color: #00ff66;
  color: #000000;
  font-weight: 700;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 255, 102, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: #e4e4e7;
  border: 1px solid #3f3f46;
  font-weight: 600;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
  background-color: #27272a;
  border-color: #52525b;
}

/* Responsive para pantallas pequeñas */

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* responsive de cards para celular y pc */

.manga-grid {
    display: grid;
    gap: 20px;
    padding: 20px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    justify-content: center;
}

/* Ajuste para tablets y celulares */
@media (max-width: 768px) {
    .manga-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 10px;
        gap: 12px;
    }

    .manga-card {
        width: 100%;
        min-width: 0;
    }

    .btn-login {
        height: auto;
        padding: 0.4rem 0.8rem;
        display: flex;
        align-items: center;
        margin-left: 8px;
    }
}