a {text-decoration: none;}

/*Header*/
.header-actions .btn-login.usr-menu.entrar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 15px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  border: 1px solid rgba(240, 171, 252, 0.25);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(139, 44, 245, 0.25);
  transition: transform 0.15s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.header-actions .btn-login.usr-menu.entrar:hover {
  opacity: 0.94;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(217, 70, 239, 0.32);
}

.header-actions .btn-login.usr-menu.entrar:active {
  transform: translateY(0);
}

    /* Tarjetas de catálogo */
    .dir-card {
        display: flex;
        flex-direction: column;
        height: 100%;
        text-decoration: none;
        color: inherit;
        border-radius: 10px;
        transition: transform 0.2s ease;
    }

    .dir-card:hover {
        text-decoration: none;
        color: inherit;
        transform: translateY(-3px);
    }

    .dir-thumb {
        position: relative;
        width: 100%;
        aspect-ratio: 3 / 4;
        border-radius: 10px;
        overflow: hidden;
        background-color: #1a112b;
        border: 1px solid rgba(255, 255, 255, 0.07);
    }

    .dir-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.28s ease;
    }

    .dir-card:hover .dir-thumb img {
        transform: scale(1.04);
    }

    .dir-rating-badge {
        position: absolute;
        top: 8px;
        right: 8px;
        font-size: 0.65rem;
        font-weight: 700;
        padding: 2px 6px;
        border-radius: 5px;
        background-color: rgba(11, 7, 17, 0.82);
        border: 1px solid rgba(255, 255, 255, 0.16);
        color: #f3effa;
        backdrop-filter: blur(4px);
    }

    .dir-card-body {
        padding-top: 8px;
    }

    .dir-card-title {
        font-size: 0.84rem;
        font-weight: 700;
        color: #ffffff;
        margin-bottom: 3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dir-card:hover .dir-card-title {
        color: #f0abfc;
    }

    .dir-card-meta {
        font-size: 0.72rem;
        color: #9e93b3;
        display: flex;
        align-items: center;
    }

    .dir-card-submeta {
        font-size: 0.7rem;
        color: #c084fc;
        margin-top: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dir-empty-state {
        background-color: #140d21;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
    }
/*Toast*/
.jq-toast-wrap {
    z-index: 9999 !important;
    max-width: calc(100vw - 24px);
}

.jq-toast-single {
    position: relative;
    background-color: var(--bg-surface) !important;
    color: var(--text-main) !important;
    border: 1px solid rgba(192, 132, 252, 0.35) !important;
    border-left: 4px solid var(--accent-pink) !important;
    border-radius: 10px !important;
    padding: 12px 34px 14px 16px !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 18px rgba(139, 44, 245, 0.2) !important;
    overflow: hidden;
}

.jq-toast-single.jq-icon-error {
    border-left-color: #f43f5e !important;
}

.jq-toast-single.jq-icon-success {
    border-left-color: #10b981 !important;
}

.jq-toast-single.jq-icon-info {
    border-left-color: var(--accent-purple) !important;
}

.close-jq-toast-single {
    position: absolute;
    top: 8px;
    right: 10px;
    color: var(--text-muted) !important;
    font-size: 1.1rem !important;
    line-height: 1 !important;
    cursor: pointer;
    transition: color 0.15s ease;
}

.close-jq-toast-single:hover {
    color: #ffffff !important;
}

.jq-toast-loader {
    height: 3px !important;
    border-radius: 0 !important;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink)) !important;
}
/*Nav*/
.dash-nav-wrapper {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 6px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.dash-nav-wrapper::-webkit-scrollbar {
    height: 5px;
}

.dash-nav-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
}

.dash-nav-tabs {
    border-bottom: none !important;
    flex-wrap: nowrap !important;
    gap: 4px;
    margin-bottom: 0 !important;
}

.dash-nav-tabs .nav-item {
    flex-shrink: 0;
    margin-bottom: 0;
}

.dash-nav-tabs .nav-link {
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    background-color: transparent;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.dash-nav-tabs .nav-link:hover {
    color: var(--text-main);
    background-color: var(--bg-surface-hover);
    border-color: rgba(255, 255, 255, 0.06) !important;
}

.dash-nav-tabs .nav-link.active,
.dash-nav-tabs .nav-link.active:hover,
.dash-nav-tabs .nav-link.active:focus {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink)) !important;
    border-color: transparent !important;
    box-shadow: 0 4px 14px rgba(139, 44, 245, 0.28);
}
/*Tarjetas*/
.gdan {
    margin-bottom: 22px;
}

.gdan .anime__item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.gdan .anime__item:hover {
    transform: translateY(-3px);
    border-color: rgba(192, 132, 252, 0.35);
}

.gdan .anime__item__pic {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--bg-surface-hover);
    display: block;
    transition: transform 0.28s ease;
}

.gdan .anime__item:hover .anime__item__pic {
    transform: scale(1.04);
}

/* Botón eliminar (#del) */
.gdan #del {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 15;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background-color: rgba(11, 7, 17, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f3effa;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.gdan #del:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #ffffff;
}

/* Cuerpo inferior (.anime__item__text) */
.gdan .anime__item__text {
    position: relative;
    padding-top: 8px;
}

/* Botón marcar estado (#mark_as) */
.gdan #mark_as {
    position: absolute;
    top: -16px;
    right: 8px;
    z-index: 16;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background-color: var(--bg-surface-hover);
    border: 2px solid var(--bg-body);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    transition: transform 0.15s ease, background-color 0.2s ease;
}

.gdan #mark_as:hover {
    transform: scale(1.08);
}

.gdan #mark_as[data-status*="eye"],
.gdan #mark_as[data-status="fa-eye"] {
    background-color: #2563eb;
}

.gdan #mark_as[data-status*="circle-check"],
.gdan #mark_as[data-status="fa-check-circle"] {
    background-color: #10b981;
}

.gdan #mark_as[data-status*="pause"],
.gdan #mark_as[data-status="fa-pause-circle"] {
    background-color: #f59e0b;
}

.gdan #mark_as[data-status*="heart"],
.gdan #mark_as[data-status="fa-heart"] {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
}

.gdan #mark_as[data-status*="thumb-down"] {
    background-color: #dc3545;
}

/* Dropdown de estados dentro de #mark_as */
.gdan .dropmenu {
    position: absolute;
    bottom: 36px;
    right: 0;
    z-index: 30;
    min-width: 135px;
}

.gdan .dropmenu ul {
    list-style: none;
    margin: 0;
    padding: 4px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 9px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.gdan .dropmenu ul li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.gdan .dropmenu ul li a:hover {
    background-color: var(--bg-surface-hover);
    color: #f0abfc;
    text-decoration: none;
}

.gdan .dropmenu ul li a i {
    color: #c084fc;
}

/* Meta (tipo y fecha) */
.gdan .anime__item__text ul {
    list-style: none;
    padding: 0;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.gdan .anime__item__text ul li.anime {
    padding: 1px 7px;
    border-radius: 5px;
    font-weight: 700;
    color: #f3e8ff;
    background-color: var(--accent-purple-soft);
    border: 1px solid rgba(192, 132, 252, 0.28);
}

/* Título */
.gdan .anime__item__text h5 {
    margin: 0;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gdan .anime__item__text h5 a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.gdan .anime__item__text h5 a:hover,
.gdan:hover .anime__item__text h5 a {
    color: #f0abfc;
    text-decoration: none;
}
/* Paginacion */
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding-left: 0;
    list-style: none;
    margin: 0;
    margin-bottom: 40px;
}

.pagination > li .page-link,
.pagination .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.pagination > li:not(.disabled):not(.active) .page-link:hover,
.pagination .page-item:not(.disabled):not(.active) .page-link:hover {
    background-color: var(--bg-surface-hover);
    border-color: rgba(192, 132, 252, 0.35);
    color: var(--text-main);
    text-decoration: none;
    transform: translateY(-1px);
}

.pagination > li.active .page-link,
.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    border-color: transparent;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(139, 44, 245, 0.3);
}

.pagination > li.disabled .page-link,
.pagination .page-item.disabled .page-link {
    background-color: rgba(17, 11, 26, 0.55);
    border-color: rgba(255, 255, 255, 0.04);
    color: rgba(158, 147, 179, 0.35);
    pointer-events: none;
    cursor: default;
}

/*Modal*/
@keyframes modal{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}

.modal-d {top: 50%;left: 50%;-webkit-transform:translate(-50%,0%);transform:translate(-50%,0%);position: fixed;max-width: 800px;width: 90%;z-index: 105;color: #5A5A5A;padding: 10px;top:0;bottom: 0;margin: auto;}
#modal-back {
position: fixed;
opacity: 0.8;z-index: 104;
background: #000000;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: auto;}
#modal-back.f {
background: #9b9b9b;
}
.modal-img {
    max-width: 90%;
    text-align: center;
}

.modal-d.modal-img img {
    max-width: 95%;
}

button.close-img {
    background: #fff;
    border: none;
    color: #394563;
    font-size: 30px;
    padding: 5px 19px;
    position: absolute;
    right: 0px;
    top: 0;
    outline: 0;
    cursor: pointer;
}
div#modal-c {height: 100%;position: relative;background: #1b1229;-webkit-animation: modal 500ms cubic-bezier(0.215, 0.61, 0.355, 1) 250ms backwards;animation: modal 500ms cubic-bezier(0.215, 0.61, 0.355, 1) 250ms backwards;border-radius: 10px;-webkit-box-shadow: 0 0px 7px rgba(0, 0, 0, 0.5);box-shadow: 0 0px 7px rgba(0, 0, 0, 0.5);overflow: hidden;}
.modal-d h3 {padding: 15px 0px;text-align: center;/* background: #21292E; */font-weight: bold;margin-bottom: 20px;}
.modal-d span {padding: 0px 0px;margin: 0 auto;width: 100%;display: flex;flex-wrap: wrap;}

#modal span#mc {
padding: 32px;
display: block;
}

div#buttons {
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 3px 0px;
}
div#left, div#right {
    width: 50%;
    display: inline-block;
    padding: 25px;
}

div#right {
    float: right;
    height: 100%;
}

#mc #right {
color: #fff;
background: #1d95cf;
content: '';
position: absolute;
right: 0;
height: 100%;
background: linear-gradient(to right, #108cc9, #31a9e3);
}
#mc #right h3 {
color: #fff;
}
#mc #right p {
color: #fff;
}
div#modal-c > h3 {
    display: none;
}

.reg {
    margin: 90px 0%;
    text-align: center;
}

.reg a {
    background: #fff;
    padding: 10px 30px;
    color: #000;
    border-radius: 30px;
}
div#buttons a{height: 100%;padding: 7px 15px;color: #fff;display: inline-block;}
/*Login*/
#login_form  input {
color: #dadada;
box-sizing: border-box;
ms-box-sizing: border-box;
webkit-box-sizing: border-box;
moz-box-sizing: border-box;
width: 100%;
display: block;
padding: 13px 12px;
font-size: 14px;
line-height: 1.428571429;
color: #666;
vertical-align: middle;
background-color: #eee;
background-image: none;
border: none;
border-radius: 0px;
-webkit-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
margin-bottom: 16px;
}

#login_form #boton {
background-color: #ff7d00;
width: 100%;
border: none;
height: 40px;
border-radius: 5%;
display: inline-block;
width: 71%;
color: #fff;
margin-bottom: 0;
text-align: center;
white-space: nowrap;
vertical-align: middle;
-ms-touch-action: manipulation;
touch-action: manipulation;
cursor: pointer;
background-image: none;
border-radius: 28px;
line-height: 0px;
margin: auto;
}

form#login_form {
    display: block;
    text-align: center;
}
#login_form input#boton:disabled {
cursor: none;
pointer-events: none;
opacity: 0.5;
}
p.error_msj {
    background: #f3f3f3;
    border-left: 5px solid #dc3545;
    color: #dc3545;
    padding: 9px;
}

    .gauth, .dauth {
        margin-bottom: 2px;
        color: #fff;
        background: #eee;
    }
    .gauth:hover, .dauth:hover {
        color: #fff;
        opacity: 0.8;
    }

      .gauth {
        background: #792f26 !important;
        color: #fff;
    }


    .dauth {
        background: #505295 !important;
    }
    /*Login flotante*/
   /* Login flotante / Modal Auth */
.auth-container {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
    background-color: var(--bg-surface);
    color: var(--text-main);
    border-radius: 14px;
}

.auth-container.active {
    height: 580px;
}

.auth-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 28px;
}

.auth-wrapper.login {
    transform: translateX(0%);
}

.auth-wrapper.register {
    transform: translateX(100%);
}

.auth-container.active .auth-wrapper.login {
    transform: translateX(-100%);
}

.auth-container.active .auth-wrapper.register {
    transform: translateX(0%);
}

.auth-wrapper h2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
}

.auth-wrapper .form-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 5px;
    display: block;
}

.form-outline {
    position: relative;
}

.form-outline i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.2s ease;
}

.form-outline .form-control.auth-input {
    height: 40px;
    padding-left: 38px !important;
    padding-right: 12px !important;
    background-color: var(--bg-body);
    border: 1px solid var(--border-subtle);
    border-radius: 9px;
    color: var(--text-main);
    font-size: 0.84rem;
    text-align: left !important;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.form-outline .form-control.auth-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-outline .form-control.auth-input:focus {
    background-color: var(--bg-surface-hover);
    border-color: var(--accent-purple);
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(139, 44, 245, 0.2);
    outline: none;
}

.form-outline:focus-within i {
    color: #f0abfc;
}

.auth-btn-primary {
    height: 40px;
    border-radius: 9px;
    border: none;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    color: #ffffff !important;
    font-size: 0.84rem;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(139, 44, 245, 0.25);
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.auth-btn-primary:hover {
    opacity: 0.94;
    transform: translateY(-1px);
}

.auth-helper {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.auth-helper a {
    color: #f0abfc;
    font-weight: 600;
    text-decoration: none;
}

.auth-helper a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.auth-divider {
    border: 0;
    border-top: 1px solid var(--border-subtle);
    margin: 14px 0;
}

.auth-oauth-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.auth-oauth-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 10px;
    border-radius: 9px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-main) !important;
    background-color: var(--bg-body);
    border: 1px solid var(--border-subtle);
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.auth-oauth-btn.gauth:hover {
    background-color: var(--bg-surface-hover);
    border-color: rgba(244, 114, 182, 0.45);
    color: #ffffff !important;
}

.auth-oauth-btn.dauth:hover {
    background-color: rgba(139, 44, 245, 0.2);
    border-color: var(--accent-purple);
    color: #ffffff !important;
}

.auth-alert {
    font-size: 0.78rem;
    padding: 8px 12px;
    border-radius: 9px;
    background-color: rgba(220, 53, 69, 0.16);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fecaca;
}
