:root{
    --bg:#080710;
    --panel:#0d0b15;
    --panel2:#15121f;
    --line:#4d3458;
    --line2:#32263a;
    --text:#f4eaf8;
    --muted:#a99bae;
    --violet:#c57eda;
    --violet2:#e9acf4;
    --green:#2be04a;
    --red:#b40f31
}
*{
    box-sizing:border-box
}
html{
    background:#05040a;
    color-scheme:dark
}
body{
    margin:0;
    background:radial-gradient(circle at 50% -20%,#21132d 0,#080710 42%,#05040a 100%);
    color:var(--text);
    font-family:"Segoe UI",Arial,sans-serif
}
.site-shell{
    max-width:1280px;
    min-height:100vh;
    margin:auto;
    background:var(--bg);
    border-left:1px solid #2e2036;
    border-right:1px solid #2e2036;
    box-shadow:0 0 80px #000
}
.hero{
    height:280px;
    position:relative;
    overflow:hidden;
    background:#090711
}
.hero-bg{
    position:absolute;
    inset:0;
    background:linear-gradient(90deg,#090711 0%,#211237 42%,#090711 100%)
}
.hero-bg:after{
    content:"";
    position:absolute;
    inset:0;
    background:radial-gradient(circle at 73% 30%,rgba(136,73,174,.35),transparent 25%),linear-gradient(115deg,transparent 0 40%,rgba(91,49,119,.18) 40% 60%,transparent 60%)
}
.hero-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(0deg,var(--bg),transparent 48%)
}
.brand{
    position:absolute;
    left:6%;
    top:68px;
    text-decoration:none;
    text-align:center;
    color:#efe6ff;
    text-shadow:0 0 9px #8e5ac1,0 0 25px #4c2470
}
.brand-main{
    display:block;
    font-family:Georgia,serif;
    font-size:58px;
    letter-spacing:-4px;
    font-weight:700
}
.brand-ro{
    display:block;
    margin-top:-15px;
    font:700 38px Georgia,serif
}
.brand small{
    display:block;
    color:#9585a0;
    letter-spacing:5px;
    font-size:11px;
    margin-top:4px
}
.topnav{
    display:flex;
    border-top:1px solid #3d2948;
    border-bottom:1px solid #3d2948;
    background:#0a0811;
    padding:0 24px
}
.nav-link{
    padding:17px 20px;
    color:#cbbfd0;
    text-decoration:none;
    font-size:13px;
    border-bottom:2px solid transparent
}
.nav-link:hover,.nav-link.active{
    background:#15101d;
    color:#fff;
    border-bottom-color:#a74bc5
}
.nav-link em{
    font-style:normal;
    font-size:8px;
    color:#8f7698;
    margin-left:4px
}
.page{
    padding:24px
}
.home-grid{
    display:grid;
    grid-template-columns:1fr 300px;
    gap:18px
}
.panel{
    background:rgba(13,11,21,.94);
    border:1px solid var(--line);
    box-shadow:inset 0 0 35px rgba(45,19,58,.15)
}
.news-panel,.server-panel,.content-panel{
    padding:24px
}
.section-head h1,.server-panel h2{
    font-size:20px;
    margin:0;
    color:#efdff5
}
.section-head .line{
    display:block;
    height:1px;
    background:#583665;
    margin:15px 0 3px
}
.news-item{
    display:block;
    padding:14px 0;
    border-bottom:1px solid var(--line2);
    text-decoration:none;
    color:inherit
}
.news-item time{
    font-size:11px;
    color:#9e8ba7
}
.news-item h2{
    font-size:17px;
    font-weight:500;
    color:var(--violet2);
    margin:6px 0
}
.news-item p{
    font-size:13px;
    color:#beb1c4;
    margin:0
}
.news-item[href]:hover h2{
    color:#fff
}
.status{
    display:flex;
    align-items:center;
    gap:10px;
    margin:24px 0;
    color:var(--green)
}
.dot{
    width:10px;
    height:10px;
    border-radius:50%;
    background:var(--green);
    box-shadow:0 0 10px rgba(43,224,74,.35)
}
.server-data{
    margin:0
}
.server-data dt{
    font-size:11px;
    color:#9e8ba7;
    margin-top:15px
}
.server-data dd{
    margin:3px 0 0;
    font-size:16px
}
.server-brand{
    border-top:1px solid #493252;
    margin-top:20px;
    padding-top:18px;
    display:flex;
    flex-direction:column
}
.server-brand strong{
    font-size:13px;
    color:var(--violet)
}
.server-brand span{
    font-size:11px;
    color:var(--muted);
    margin-top:4px
}
.cta-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
    margin-top:18px
}
.cta{
    padding:22px;
    border:1px solid var(--line);
    background:#15121f;
    color:#fff;
    text-decoration:none;
    display:flex;
    flex-direction:column
}
.cta.primary{
    background:linear-gradient(135deg,#8d1029,#b40f31);
    border-color:#e94a6a
}
.cta span{
    font-weight:700;
    font-size:18px
}
.cta small{
    color:#cbbfd0;
    margin-top:5px
}
.content-panel{
    min-height:360px
}
.download-box{
    margin-top:24px;
    padding:25px;
    background:#100d18;
    border:1px solid #32263a;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px
}
.download-box h2{
    color:var(--violet2);
    margin:0 0 8px
}
.download-box p{
    color:#beb1c4;
    margin:0;
    max-width:700px
}
.button{
    display:inline-block;
    padding:13px 24px;
    background:#9e102c;
    border:1px solid #e94a6a;
    color:#fff;
    text-decoration:none;
    font-weight:700
}
.button.disabled{
    opacity:.55;
    cursor:not-allowed
}
.cards,.guide-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
    margin-top:18px
}
.mini-card,.guide-grid article{
    padding:20px;
    background:#100d18;
    border:1px solid #32263a
}
.mini-card{
    display:flex;
    flex-direction:column
}
.mini-card b,.guide-grid h2{
    color:var(--violet2)
}
.mini-card span,.guide-grid p{
    color:#bdb0c3;
    margin-top:6px
}
.guide-grid h2{
    font-size:17px;
    margin:0
}
.guide-grid p{
    font-size:13px;
    line-height:1.55
}
.coming{
    min-height:380px;
    text-align:center;
    padding:80px 20px
}
.coming>span{
    font-size:11px;
    color:var(--violet);
    letter-spacing:3px
}
.coming h1{
    font:700 46px Georgia,serif;
    margin:8px
}
.coming p{
    color:var(--muted);
    margin-bottom:30px
}
.footer{
    border-top:1px solid #563662;
    background:#090811;
    padding:20px 25px;
    display:flex;
    justify-content:space-between;
    color:#8e8293;
    font-size:11px
}
.footer>div:first-child{
    display:flex;
    flex-direction:column
}
.footer strong{
    color:var(--violet);
    font-size:12px
}
.muted{
    color:var(--muted)
}
@media(max-width:800px){
    .hero{
        height:210px
    }
    .brand{
        left:50%;
        transform:translateX(-50%);
        top:50px;
        width:100%
    }
    .brand-main{
        font-size:43px
    }
    .topnav{
        overflow-x:auto;
        padding:0
    }
    .nav-link{
        white-space:nowrap;
        padding:15px
    }
    .page{
        padding:12px
    }
    .home-grid,.cta-grid,.cards,.guide-grid{
        grid-template-columns:1fr
    }
    .download-box{
        align-items:flex-start;
        flex-direction:column
    }
    .footer{
        gap:10px;
        flex-direction:column
    }
    .server-panel{
        order:-1
    }
}
/* ============================================================
   RANKINGS
   ============================================================ */

.ranking-page {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 55px 0 80px;
}


/* CABECERA */

.ranking-hero {
    margin-bottom: 28px;
}

.ranking-kicker {
    display: block;
    margin-bottom: 7px;

    color: #a85fc0;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 3px;
}

.ranking-hero h1 {
    margin: 0;

    color: #f4eaf8;

    font-size: 34px;
    font-weight: 700;
}

.ranking-hero p {
    margin: 8px 0 0;

    color: #a99bae;

    font-size: 14px;
}


/* PANEL */

.ranking-panel {
    overflow: hidden;

    background: #0d0b15;

    border: 1px solid #4d3458;
}


/* PESTAÑAS */

.ranking-tabs {
    display: flex;

    background: #090811;

    border-bottom: 1px solid #4d3458;
}

.ranking-tab {
    position: relative;

    min-width: 180px;

    padding: 18px 25px;

    color: #a99bae;

    text-align: center;
    text-decoration: none;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1px;

    transition:
        background .15s ease,
        color .15s ease;
}

.ranking-tab:hover {
    color: #efdff6;
    background: #15121f;
}

.ranking-tab.active {
    color: #efdff6;
    background: #15121f;
}

.ranking-tab.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 2px;

    background: #a74bc5;
}


/* CABECERA INTERIOR */

.ranking-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 25px 28px 20px;

    border-bottom: 1px solid #32263a;
}

.ranking-section-label {
    display: block;

    margin-bottom: 4px;

    color: #9e8ba7;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 2px;
}

.ranking-header h2 {
    margin: 0;

    color: #efdff6;

    font-size: 20px;
}

.ranking-count {
    padding: 6px 10px;

    color: #c57eda;

    background: #15121f;

    border: 1px solid #51345e;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1px;
}


/* TABLA */

.ranking-table-wrapper {
    overflow-x: auto;
}

.ranking-table {
    width: 100%;

    border-collapse: collapse;
}

.ranking-table th {
    padding: 14px 18px;

    color: #8e7c97;
    background: #090811;

    border-bottom: 1px solid #32263a;

    text-align: left;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1px;
}

.ranking-table td {
    padding: 17px 18px;

    color: #beb1c4;

    border-bottom: 1px solid #241c2a;

    font-size: 13px;
}

.ranking-table tbody tr {
    transition: background .15s ease;
}

.ranking-table tbody tr:hover {
    background: #15121f;
}


/* POSICIÓN */

.ranking-position {
    width: 65px;

    text-align: center !important;
}

.rank-number {
    display: inline-flex;

    width: 30px;
    height: 30px;

    align-items: center;
    justify-content: center;

    color: #a99bae;

    background: #15121f;

    border: 1px solid #493252;

    font-size: 12px;
    font-weight: 700;
}


/* TOP 3 */

.rank-first {
    background: rgba(167, 75, 197, .08);
}

.rank-first .rank-number {
    color: #f3c85d;

    border-color: #8e7032;
}

.rank-second .rank-number {
    color: #d1cdd5;

    border-color: #69616d;
}

.rank-third .rank-number {
    color: #cf936e;

    border-color: #76523e;
}


/* PERSONAJE */

.ranking-character-name {
    color: #f0ddf5;

    font-size: 14px;
    font-weight: 600;
}

.ranking-class {
    color: #c57eda;
}

.ranking-level {
    width: 100px;

    color: #f0ddf5 !important;

    text-align: center !important;

    font-weight: 600;
}

.ranking-members {
    width: 130px;

    text-align: center !important;
}


/* VACÍO / ERROR */

.ranking-empty {
    padding: 45px !important;

    color: #8e7c97 !important;

    text-align: center !important;
}

.ranking-error {
    margin: 25px;

    padding: 18px;

    color: #ff829a;
    background: #1c0d14;

    border: 1px solid #741021;
}


/* PIE */

.ranking-footer {
    display: flex;

    align-items: center;

    gap: 7px;

    padding: 13px 28px;

    color: #776c7c;
    background: #090811;

    font-size: 10px;
}

.ranking-live-dot {
    display: inline-block;

    width: 6px;
    height: 6px;

    background: #2be04a;

    border-radius: 50%;
}


/* RESPONSIVE */

@media (max-width: 700px) {

    .ranking-page {
        width: min(100% - 24px, 1180px);

        padding-top: 30px;
    }

    .ranking-tabs {
        width: 100%;
    }

    .ranking-tab {
        flex: 1;

        min-width: 0;

        padding-left: 10px;
        padding-right: 10px;
    }

    .ranking-header {
        padding: 20px;
    }

    .ranking-table th,
    .ranking-table td {
        padding: 13px 12px;
    }

    .ranking-hero h1 {
        font-size: 28px;
    }
}
 /* COMPROBANDO */
.status.checking .dot {
    background: #f0a33a;
    box-shadow: 0 0 12px rgba(240, 163, 58, 0.75);
}

.status.checking strong {
    color: #f0a33a;
}

/* ONLINE */
.status.online .dot {
    background: #48e28b;
    box-shadow: 0 0 12px rgba(72, 226, 139, 0.75);
}

.status.online strong {
    color: #48e28b;
}

/* OFFLINE */
.status.offline .dot {
    background: #e34b63;
    box-shadow: 0 0 12px rgba(227, 75, 99, 0.75);
}

.status.offline strong {
    color: #e34b63;
}

/* ============================================================
   MOONLAPSERO - MVP TRACKER
   ============================================================ */

.mvp-page {
    min-height: 700px;
    padding-bottom: 70px;
}

.mvp-hero {
    position: relative;
    padding: 42px 28px 28px;
    overflow: hidden;
}

.mvp-hero::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -120px;
    top: -190px;
    border-radius: 50%;
    background: rgba(153, 79, 255, 0.07);
    filter: blur(20px);
    pointer-events: none;
}

.mvp-hero-content {
    position: relative;
    z-index: 1;
}

.mvp-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #dca6ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
}

.mvp-hero h1 {
    margin: 0;
    font-size: 38px;
    line-height: 1.1;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 0 22px rgba(189, 115, 255, 0.18);
}

.mvp-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    color: #b9b0c4;
    font-size: 15px;
    line-height: 1.7;
}


/* ============================================================
   CONTENEDOR
   ============================================================ */

.mvp-container {
    padding: 0 28px 50px;
}


/* ============================================================
   RESUMEN
   ============================================================ */

.mvp-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.mvp-summary-card {
    position: relative;
    overflow: hidden;
    min-height: 88px;
    padding: 18px 20px;
    border: 1px solid #352940;
    border-radius: 8px;
    background:
        linear-gradient(
            145deg,
            rgba(31, 22, 40, 0.96),
            rgba(14, 11, 19, 0.96)
        );
}

.mvp-summary-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #9b63d9;
}

.mvp-summary-card.available::before {
    background: #48e28b;
}

.mvp-summary-card.imminent::before {
    background: #f0a33a;
}

.mvp-summary-card.cooldown::before {
    background: #e34b63;
}

.mvp-summary-value {
    display: block;
    margin-bottom: 5px;
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.mvp-summary-label {
    color: #8f849a;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* ============================================================
   TOOLBAR
   ============================================================ */

.mvp-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 13px;
    padding: 14px;
    border: 1px solid #30263a;
    border-radius: 8px;
    background: rgba(13, 10, 18, 0.75);
}

.mvp-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.mvp-filter {
    appearance: none;
    border: 1px solid #443451;
    border-radius: 5px;
    padding: 9px 15px;
    background: #15101c;
    color: #9e93a8;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.mvp-filter:hover {
    color: #ffffff;
    border-color: #8f5ec4;
    background: #21162b;
}

.mvp-filter.active {
    color: #ffffff;
    border-color: #a96bea;
    background:
        linear-gradient(
            135deg,
            #713aa4,
            #43205e
        );
    box-shadow: 0 0 14px rgba(169, 107, 234, 0.16);
}

.mvp-filter:active {
    transform: translateY(1px);
}

.mvp-search-wrapper {
    width: 260px;
    flex-shrink: 0;
}

.mvp-search {
    box-sizing: border-box;
    width: 100%;
    height: 38px;
    border: 1px solid #443451;
    border-radius: 5px;
    outline: none;
    padding: 0 13px;
    background: #0d0a12;
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.mvp-search::placeholder {
    color: #655b6d;
}

.mvp-search:focus {
    border-color: #9f62dc;
    box-shadow: 0 0 0 3px rgba(159, 98, 220, 0.08);
}


/* ============================================================
   ESTADO LIVE
   ============================================================ */

.mvp-live-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 2px 18px;
    color: #766c80;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mvp-live-dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #48e28b;
    box-shadow: 0 0 9px rgba(72, 226, 139, 0.65);
}

.mvp-live-info.error {
    color: #e34b63;
}

.mvp-live-info.error .mvp-live-dot {
    background: #e34b63;
    box-shadow: 0 0 9px rgba(227, 75, 99, 0.6);
}


/* ============================================================
   GRID
   ============================================================ */

.mvp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}


/* ============================================================
   TARJETA MVP
   ============================================================ */

.mvp-card {
    position: relative;
    overflow: hidden;
    min-height: 285px;
    box-sizing: border-box;
    padding: 17px 18px 18px;
    border: 1px solid #33283c;
    border-radius: 8px;
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(126, 70, 163, 0.08),
            transparent 45%
        ),
        linear-gradient(
            155deg,
            #15101b 0%,
            #0d0a11 100%
        );
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.mvp-card:hover {
    transform: translateY(-2px);
    border-color: #564064;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.mvp-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
}


/* AVAILABLE */

.mvp-card.available {
    border-color: rgba(72, 226, 139, 0.22);
}

.mvp-card.available::before {
    background: #48e28b;
    box-shadow: 0 0 13px rgba(72, 226, 139, 0.5);
}


/* COOLDOWN */

.mvp-card.cooldown,
.mvp-card.defeated {
    border-color: rgba(227, 75, 99, 0.25);
}

.mvp-card.cooldown::before,
.mvp-card.defeated::before {
    background: #e34b63;
    box-shadow: 0 0 13px rgba(227, 75, 99, 0.45);
}


/* IMMINENT */

.mvp-card.imminent {
    border-color: rgba(240, 163, 58, 0.45);
    animation: mvp-imminent-pulse 2.2s ease-in-out infinite;
}

.mvp-card.imminent::before {
    background: #f0a33a;
    box-shadow: 0 0 16px rgba(240, 163, 58, 0.65);
}

@keyframes mvp-imminent-pulse {

    0%,
    100% {
        box-shadow:
            0 0 0 rgba(240, 163, 58, 0),
            inset 0 0 0 rgba(240, 163, 58, 0);
    }

    50% {
        box-shadow:
            0 0 22px rgba(240, 163, 58, 0.10),
            inset 0 0 25px rgba(240, 163, 58, 0.025);
    }

}


/* ============================================================
   CABECERA DE TARJETA
   ============================================================ */

.mvp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 22px;
    margin-bottom: 13px;
}

.mvp-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.1px;
}

.mvp-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}


/* colores del estado */

.mvp-card.available .mvp-status {
    color: #48e28b;
}

.mvp-card.available .mvp-status-dot {
    background: #48e28b;
    box-shadow: 0 0 8px rgba(72, 226, 139, 0.7);
}

.mvp-card.cooldown .mvp-status,
.mvp-card.defeated .mvp-status {
    color: #e34b63;
}

.mvp-card.cooldown .mvp-status-dot,
.mvp-card.defeated .mvp-status-dot {
    background: #e34b63;
    box-shadow: 0 0 8px rgba(227, 75, 99, 0.65);
}

.mvp-card.imminent .mvp-status {
    color: #f0a33a;
}

.mvp-card.imminent .mvp-status-dot {
    background: #f0a33a;
    box-shadow: 0 0 9px rgba(240, 163, 58, 0.8);
    animation: mvp-dot-pulse 1.1s ease-in-out infinite;
}

@keyframes mvp-dot-pulse {

    0%,
    100% {
        opacity: 0.65;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.25);
    }

}


/* ============================================================
   NOMBRE Y MAPA
   ============================================================ */

.mvp-name {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 800;
}

.mvp-map {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 17px;
    color: #685f70;
    font-size: 11px;
}

.mvp-map span {
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.mvp-map strong {
    color: #a99caf;
    font-size: 12px;
    font-weight: 600;
}


/* ============================================================
   CONTENIDO DE LA TARJETA
   ============================================================ */

.mvp-card-body {
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.mvp-big-status {
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.mvp-card.available .mvp-big-status {
    color: #48e28b;
}

.mvp-card.imminent .mvp-big-status {
    color: #f0a33a;
}

.mvp-countdown {
    margin-bottom: 15px;
}

.mvp-countdown span {
    display: block;
    margin-bottom: 4px;
    color: #776d80;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.mvp-countdown strong {
    display: block;
    color: #e34b63;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.mvp-detail {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 15px;
    margin-top: 8px;
    font-size: 11px;
}

.mvp-detail span {
    color: #6f6577;
}

.mvp-detail strong {
    color: #b7acbd;
    font-weight: 600;
    text-align: right;
}

.mvp-window strong {
    color: #d2c5da;
}

.mvp-separator {
    height: 1px;
    margin: 14px 0 10px;
    background: rgba(255, 255, 255, 0.05);
}


/* ============================================================
   LOADING / VACÍO
   ============================================================ */

.mvp-loading,
.mvp-empty {
    grid-column: 1 / -1;
    box-sizing: border-box;
    padding: 45px 20px;
    border: 1px dashed #3a2d43;
    border-radius: 8px;
    color: #756a7d;
    text-align: center;
    font-size: 13px;
}

.mvp-empty {
    margin-top: 15px;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1050px) {

    .mvp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mvp-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 700px) {

    .mvp-hero {
        padding: 30px 18px 22px;
    }

    .mvp-hero h1 {
        font-size: 31px;
    }

    .mvp-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .mvp-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .mvp-search-wrapper {
        width: 100%;
    }

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

}

@media (max-width: 460px) {

    .mvp-summary {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .mvp-summary-card {
        min-height: 74px;
        padding: 14px;
    }

    .mvp-summary-value {
        font-size: 23px;
    }

    .mvp-filter {
        flex: 1 1 calc(50% - 7px);
        padding-left: 8px;
        padding-right: 8px;
    }

}
/* ============================================================
   MOONLAPSERO - LAUNCHER HEADER
   ============================================================ */

.launcher-hero {
    position: relative;
    height: auto;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background: #07060d;
}

.launcher-hero-link {
    display: block;
    width: 100%;
    line-height: 0;
}

.launcher-hero-image {
    display: block;
    width: 100%;
    height: auto;
}


/* Integra visualmente el banner con el menú inferior */
.launcher-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45px;

    pointer-events: none;

    background: linear-gradient(
        to bottom,
        rgba(7, 6, 13, 0),
        rgba(7, 6, 13, 0.45)
    );
}


/* Tablet */
@media (max-width: 900px) {

    .launcher-hero {
        height: 220px;
    }

    .launcher-hero-link {
        height: 100%;
    }

    .launcher-hero-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

}


/* Móvil */
@media (max-width: 600px) {

    .launcher-hero {
        height: 180px;
    }

    .launcher-hero-image {
        object-fit: cover;

        /*
         * Priorizamos logo + castillo.
         * El personaje de la derecha quedará parcialmente fuera.
         */
        object-position: 30% center;
    }

}

/* ============================================================
   FIX HEADER - SOBRESCRIBIR HERO ANTIGUO
   ============================================================ */

.hero.launcher-hero {
    position: relative !important;
    display: block !important;

    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;

    background: #07060d !important;
    background-image: none !important;
}

.hero.launcher-hero .launcher-hero-link {
    position: relative !important;
    display: block !important;

    width: 100% !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    line-height: 0 !important;
}

.hero.launcher-hero .launcher-hero-image {
    position: relative !important;
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: contain !important;
    object-position: center !important;

    opacity: 1 !important;
    visibility: visible !important;

    transform: none !important;
}


/* Degradado muy ligero para unir banner y navegación */

.hero.launcher-hero::after {
    content: "";
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 35px;

    pointer-events: none;

    background: linear-gradient(
        to bottom,
        transparent,
        rgba(7, 6, 13, 0.35)
    );
}


/* TABLET */

@media (max-width: 900px) {

    .hero.launcher-hero {
        height: 220px !important;
    }

    .hero.launcher-hero .launcher-hero-link {
        height: 100% !important;
    }

    .hero.launcher-hero .launcher-hero-image {
        width: 100% !important;
        height: 100% !important;

        object-fit: cover !important;
        object-position: center center !important;
    }

}


/* MÓVIL */

@media (max-width: 600px) {

    .hero.launcher-hero {
        height: 180px !important;
    }

    .hero.launcher-hero .launcher-hero-image {
        object-fit: cover !important;
        object-position: 30% center !important;
    }

}

/* ============================================================
   MVP TRACKER - SERVIDOR OFFLINE
   ============================================================ */

.mvp-server-offline {
    grid-column: 1 / -1;

    padding: 65px 25px;

    border: 1px solid rgba(227, 75, 99, 0.28);
    border-radius: 8px;

    background:
        radial-gradient(
            circle at center,
            rgba(227, 75, 99, 0.06),
            transparent 55%
        ),
        #0d0a11;

    text-align: center;
}

.mvp-server-offline-dot {
    width: 10px;
    height: 10px;

    margin: 0 auto 16px;

    border-radius: 50%;

    background: #e34b63;

    box-shadow:
        0 0 12px rgba(227, 75, 99, 0.7);
}

.mvp-server-offline h2 {
    margin: 0 0 12px;

    color: #e34b63;

    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mvp-server-offline p {
    margin: 0 auto 10px;

    max-width: 550px;

    color: #a99caf;

    font-size: 14px;
    line-height: 1.6;
}

.mvp-server-offline small {
    color: #655b6d;
    font-size: 11px;
}

/* ============================================================
   MOONLAPSERO - ACCOUNT DASHBOARD
   ============================================================ */

.account-dashboard {
    padding: 34px 30px 55px;
}


/* HEADER */

.account-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;

    margin-bottom: 30px;
}

.account-dashboard-header h1 {
    margin: 7px 0 8px;

    font-size: 34px;
    line-height: 1.1;
}

.account-dashboard-header p {
    margin: 0;

    color: #978da0;
}

.account-eyebrow {
    color: #cf59df;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1.7px;
}

.account-logout-button {
    padding: 10px 15px;

    border: 1px solid rgba(227, 75, 99, .45);
    border-radius: 4px;

    color: #e96a80;

    font-size: 11px;
    font-weight: 700;

    text-decoration: none;
    letter-spacing: .7px;

    transition:
        background .2s ease,
        border-color .2s ease;
}

.account-logout-button:hover {
    background: rgba(227, 75, 99, .10);
    border-color: rgba(227, 75, 99, .8);
}


/* SUMMARY */

.account-summary-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;

    margin-bottom: 42px;
}

.account-summary-card {
    position: relative;

    min-height: 105px;

    padding: 19px 20px;

    border: 1px solid #292130;
    border-radius: 5px;

    background:
        linear-gradient(
            145deg,
            rgba(117, 45, 136, .09),
            rgba(11, 8, 15, .5)
        ),
        #0e0b12;

    overflow: hidden;
}

.account-summary-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            #8f3fa5,
            transparent 75%
        );
}

.account-summary-label {
    display: block;

    margin-bottom: 8px;

    color: #8f8297;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.4px;
}

.account-summary-card > strong {
    display: block;

    margin-bottom: 5px;

    color: #f3edf5;

    font-size: 25px;
}

.account-summary-card small {
    color: #665d6d;
}


/* SECTION HEADER */

.account-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin: 0 0 15px;
}

.account-section-header h2 {
    margin: 4px 0 0;

    font-size: 23px;
}

.account-storage-title {
    margin-top: 42px;
}

.account-item-counter {
    color: #716777;

    font-size: 11px;
}


/* CHARACTER GRID */

.character-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}

.character-card {
    position: relative;

    border: 1px solid #2b2231;
    border-radius: 6px;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(138, 56, 160, .10),
            transparent 35%
        ),
        #0d0a11;

    overflow: hidden;

    transition:
        transform .18s ease,
        border-color .18s ease;
}

.character-card:hover {
    transform: translateY(-2px);

    border-color: #663271;
}

.character-card-top {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    padding: 20px 20px 16px;
}

.character-class {
    color: #bd57cc;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.character-card h3 {
    margin: 5px 0 0;

    font-size: 24px;
}

.character-level {
    width: 54px;
    height: 54px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    border: 1px solid #3b2942;
    border-radius: 50%;

    background: #120d17;
}

.character-level span {
    color: #75687b;

    font-size: 8px;
    font-weight: 700;
}

.character-level strong {
    margin-top: 1px;

    font-size: 18px;
}


/* CHARACTER INFO */

.character-progress {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    border-top: 1px solid #211a26;
    border-bottom: 1px solid #211a26;
}

.character-progress div {
    padding: 12px 15px;
}

.character-progress div + div {
    border-left: 1px solid #211a26;
}

.character-progress span,
.character-stats span {
    display: block;

    margin-bottom: 3px;

    color: #6f6575;

    font-size: 9px;

    text-transform: uppercase;
    letter-spacing: .7px;
}

.character-progress strong {
    font-size: 13px;
}


/* STATS */

.character-stats {
    display: grid;

    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 6px;

    padding: 14px 16px;
}

.character-stats div {
    padding: 8px 4px;

    border: 1px solid #211a26;
    border-radius: 3px;

    background: #0a080d;

    text-align: center;
}

.character-stats strong {
    font-size: 12px;
}


/* CHARACTER LINK */

.character-open {
    display: flex;

    justify-content: space-between;
    align-items: center;

    padding: 13px 18px;

    border-top: 1px solid #211a26;

    color: #d96de5;

    font-size: 10px;
    font-weight: 700;

    text-decoration: none;
    letter-spacing: 1px;

    transition: background .18s ease;
}

.character-open:hover {
    background: rgba(146, 57, 163, .08);
}


/* EMPTY */

.account-empty {
    display: flex;
    flex-direction: column;

    gap: 6px;

    padding: 30px;

    border: 1px dashed #312737;
    border-radius: 5px;

    background: #0c0910;

    color: #746a7a;

    text-align: center;
}

.account-empty strong {
    color: #a89caf;
}


/* STORAGE / ITEM TABLE */

.account-table-wrapper {
    border: 1px solid #292130;
    border-radius: 5px;

    overflow: hidden;
}

.account-items-table {
    width: 100%;

    border-collapse: collapse;
}

.account-items-table th {
    padding: 11px 14px;

    background: #120e16;

    color: #796e80;

    font-size: 9px;
    font-weight: 700;

    text-align: left;
    text-transform: uppercase;

    letter-spacing: 1px;
}

.account-items-table td {
    padding: 11px 14px;

    border-top: 1px solid #211a26;

    font-size: 12px;
}

.account-items-table tbody tr:hover {
    background: rgba(139, 57, 158, .05);
}

.account-item-name {
    color: #e3dae6;

    font-weight: 600;
}

.account-item-id,
.account-muted {
    color: #62586a;
}

.refine-badge {
    display: inline-block;

    padding: 2px 6px;

    border: 1px solid #60406a;
    border-radius: 3px;

    color: #d86be4;

    font-size: 10px;
    font-weight: 700;
}


/* RESPONSIVE */

@media (max-width: 850px) {

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

}

@media (max-width: 650px) {

    .account-dashboard {
        padding:
            25px 16px
            45px;
    }

    .account-dashboard-header {
        flex-direction: column;
    }

    .account-summary-grid {
        grid-template-columns: 1fr;
    }

    .character-stats {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}

/* ============================================================
   MOONLAPSERO - CHARACTER PROFILE
   ============================================================ */

.character-profile {
    padding: 34px 30px 60px;
}


/* VOLVER */

.character-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 27px;

    color: #9c8ca4;

    font-size: 10px;
    font-weight: 700;

    text-decoration: none;
    letter-spacing: 1px;

    transition: color .18s ease;
}

.character-back:hover {
    color: #db70e7;
}


/* ============================================================
   CABECERA
   ============================================================ */

.character-profile-header {
    position: relative;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;

    padding: 28px;

    border: 1px solid #34263c;
    border-radius: 6px;

    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(164, 67, 187, .13),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            #120d17,
            #0b0910
        );

    overflow: hidden;
}

.character-profile-header::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            #a448bc,
            #62316e 45%,
            transparent 85%
        );
}

.character-profile-identity h1 {
    margin: 6px 0 4px;

    color: #f7eff9;

    font-size: 38px;
    line-height: 1;
}

.character-profile-class {
    color: #b85fc7;

    font-size: 13px;
    font-weight: 700;
}


/* BASE / JOB / ZENY */

.character-profile-mainstats {
    display: flex;

    border: 1px solid #35293d;
    border-radius: 5px;

    background: rgba(7, 5, 10, .55);

    overflow: hidden;
}

.profile-mainstat {
    min-width: 100px;

    padding: 15px 19px;

    text-align: center;
}

.profile-mainstat + .profile-mainstat {
    border-left: 1px solid #2d2334;
}

.profile-mainstat span {
    display: block;

    margin-bottom: 4px;

    color: #716677;

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 1.2px;
}

.profile-mainstat strong {
    color: #f3eaf5;

    font-size: 21px;
}

.profile-mainstat.zeny {
    min-width: 145px;
}

.profile-mainstat.zeny strong {
    color: #d97ae5;

    font-size: 17px;
}


/* ============================================================
   SECCIONES
   ============================================================ */

.character-profile-section {
    margin-top: 35px;
}


/* ============================================================
   STATS
   ============================================================ */

.profile-stats-grid {
    display: grid;

    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 9px;
}

.profile-stat {
    position: relative;

    padding: 18px 10px;

    border: 1px solid #2d2334;
    border-radius: 5px;

    background:
        linear-gradient(
            145deg,
            rgba(112, 45, 128, .06),
            transparent
        ),
        #0d0a11;

    text-align: center;
}

.profile-stat span {
    display: block;

    margin-bottom: 7px;

    color: #817487;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.2px;
}

.profile-stat strong {
    color: #f0e8f2;

    font-size: 18px;
}


/* ============================================================
   INVENTORY TOOLBAR
   ============================================================ */

.inventory-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 12px 14px;

    border: 1px solid #292130;
    border-bottom: 0;

    background: #0d0a11;
}

.inventory-search-wrapper {
    width: min(330px, 100%);
}

.inventory-search {
    width: 100%;
    height: 35px;

    padding: 0 12px;

    outline: none;

    border: 1px solid #3c2e45;
    border-radius: 4px;

    background: #08060c;

    color: #e9e0ec;

    font-family: inherit;
    font-size: 11px;

    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

.inventory-search::placeholder {
    color: #5f5565;
}

.inventory-search:focus {
    border-color: #8c489e;

    box-shadow:
        0 0 0 3px rgba(140, 72, 158, .08);
}

#inventoryResultCount {
    color: #716777;

    font-size: 10px;
}


/* ============================================================
   INVENTARIO
   ============================================================ */

.character-inventory-table th:nth-child(3),
.character-inventory-table th:nth-child(4),
.character-inventory-table td:nth-child(3),
.character-inventory-table td:nth-child(4) {
    width: 110px;

    text-align: center;
}

.character-inventory-table th:last-child,
.character-inventory-table td:last-child {
    width: 90px;

    text-align: right;
}

.inventory-item {
    display: flex;
    align-items: center;

    gap: 11px;
}

.inventory-item-icon {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #382a40;
    border-radius: 4px;

    background:
        radial-gradient(
            circle,
            #201329,
            #0a080d
        );

    color: #704c79;

    font-size: 12px;
    font-weight: 700;
}

.inventory-item-info {
    display: flex;
    flex-direction: column;

    min-width: 0;
}

.inventory-item-info strong {
    color: #e8dfea;

    font-size: 12px;
}

.inventory-item-info small {
    margin-top: 3px;

    color: #625869;

    font-size: 9px;
}

.inventory-amount {
    color: #e8dfea;

    font-size: 12px;
}

.item-type-badge {
    display: inline-block;

    padding: 3px 7px;

    border: 1px solid #403047;
    border-radius: 3px;

    background: #110d16;

    color: #9b899f;

    font-size: 9px;

    text-transform: uppercase;
    letter-spacing: .6px;
}


/* SIN RESULTADOS */

.inventory-no-results {
    padding: 35px;

    border: 1px dashed #312737;
    border-top: 0;

    color: #776c7c;

    text-align: center;

    font-size: 12px;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 800px) {

    .character-profile-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .character-profile-mainstats {
        width: 100%;
    }

    .profile-mainstat {
        flex: 1;

        min-width: 0;
    }

    .profile-mainstat.zeny {
        min-width: 0;
    }

    .profile-stats-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


@media (max-width: 550px) {

    .character-profile {
        padding: 25px 16px 45px;
    }

    .character-profile-identity h1 {
        font-size: 31px;
    }

    .character-profile-mainstats {
        flex-direction: column;
    }

    .profile-mainstat + .profile-mainstat {
        border-left: 0;
        border-top: 1px solid #2d2334;
    }

    .inventory-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .inventory-search-wrapper {
        width: 100%;
    }

}

/* ============================================================
   CHARACTER PROFILE - STATS
   ============================================================ */

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.profile-stat {
    position: relative;
    min-height: 88px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border: 1px solid #302438;
    border-radius: 6px;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(188, 87, 213, .12),
            transparent 65%
        ),
        #0d0a11;

    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease;
}

.profile-stat::before {
    content: "";

    position: absolute;
    top: 0;
    left: 18%;
    right: 18%;

    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        #bd57cc,
        transparent
    );
}

.profile-stat:hover {
    transform: translateY(-2px);

    border-color: #6d3878;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(188, 87, 213, .18),
            transparent 65%
        ),
        #100c14;
}

.profile-stat span {
    margin-bottom: 7px;

    color: #8c7d93;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.5px;
}

.profile-stat strong {
    color: #f4edf6;

    font-size: 21px;
    line-height: 1;

    font-weight: 800;

    font-variant-numeric: tabular-nums;
}

@media (max-width: 800px) {

    .profile-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

@media (max-width: 450px) {

    .profile-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}
/* ============================================================
   INVENTORY TOOLBAR
   ============================================================ */

.inventory-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 10px;
}


/* BUSCADOR */

.inventory-search-box {
    position: relative;

    width: 100%;
    max-width: 430px;
}

.inventory-search {
    width: 100%;
    height: 42px;

    padding:
        0 42px
        0 42px;

    outline: none;

    border: 1px solid #302438;
    border-radius: 6px;

    background:
        linear-gradient(
            180deg,
            #100c14,
            #0b090e
        );

    color: #eee6f1;

    font-family: inherit;
    font-size: 12px;

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

.inventory-search::placeholder {
    color: #62586a;
}

.inventory-search:hover {
    border-color: #493151;
}

.inventory-search:focus {
    border-color: #9148a1;

    background: #100c14;

    box-shadow:
        0 0 0 3px
        rgba(177, 77, 198, .07),
        0 0 16px
        rgba(177, 77, 198, .06);
}


/* ICONO */

.inventory-search-icon {
    position: absolute;

    left: 15px;
    top: 50%;

    transform: translateY(-50%);

    color: #a74bc5;

    font-size: 18px;

    pointer-events: none;
}


/* LIMPIAR */

.inventory-search-clear {
    position: absolute;

    right: 9px;
    top: 50%;

    width: 25px;
    height: 25px;

    transform: translateY(-50%);

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: transparent;

    color: #766b7c;

    font-size: 17px;
    line-height: 25px;

    cursor: pointer;
}

.inventory-search-clear:hover {
    color: #ffffff;

    background: #241729;
}

.inventory-search-clear[hidden] {
    display: none;
}


/* CONTADOR */

.inventory-result-count {
    flex-shrink: 0;

    color: #6e6375;

    font-size: 10px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: .8px;
}


/* ============================================================
   INVENTORY PAGINATION
   ============================================================ */

.inventory-pagination {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 13px;

    width: 100%;

    padding: 15px;

    border: 1px solid #292130;
    border-top: 0;

    background:
        linear-gradient(
            180deg,
            #0c0910,
            #09070c
        );
}

.inventory-pagination[hidden] {
    display: none;
}


/* BOTONES < > */

.inventory-page-arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    padding: 0;

    border: 1px solid #44304c;
    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #1b1220,
            #100c14
        );

    color: #d76be5;

    font-family: Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;

    cursor: pointer;

    box-shadow:
        inset 0 0 10px
        rgba(185, 76, 205, .025);

    transition:
        color .15s ease,
        border-color .15s ease,
        background .15s ease,
        box-shadow .15s ease,
        transform .15s ease;
}

.inventory-page-arrow:hover:not(:disabled) {
    color: #ffffff;

    border-color: #a951ba;

    background:
        linear-gradient(
            145deg,
            #54245f,
            #29122f
        );

    box-shadow:
        0 0 13px
        rgba(192, 80, 215, .15);

    transform: translateY(-1px);
}

.inventory-page-arrow:active:not(:disabled) {
    transform: translateY(0);
}


/* DESACTIVADO */

.inventory-page-arrow:disabled {
    color: #423848;

    border-color: #241c29;

    background: #0b090e;

    box-shadow: none;

    cursor: default;
}


/* 1 / 2 */

.inventory-page-status {
    min-width: 58px;

    display: flex;
    align-items: baseline;
    justify-content: center;

    gap: 6px;

    color: #554b5b;

    font-size: 11px;

    font-variant-numeric: tabular-nums;
}

.inventory-page-status strong {
    color: #e173ec;

    font-size: 14px;
    font-weight: 800;
}

.inventory-page-status span:last-child {
    color: #97899e;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 600px) {

    .inventory-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .inventory-search-box {
        max-width: none;
    }

    .inventory-result-count {
        padding-left: 2px;
    }

}

/* ============================================================
   RAGNAROK ITEM ICONS
   ============================================================ */

.inventory-item-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #302438;
    border-radius: 5px;

    background:
        radial-gradient(
            circle at center,
            rgba(177, 77, 198, .10),
            transparent 70%
        ),
        #0b090e;

    overflow: hidden;
}

.inventory-item-icon img {
    display: block;

    max-width: 32px;
    max-height: 32px;

    width: auto;
    height: auto;

    image-rendering: auto;
}

.inventory-item-icon-missing::after {
    content: "?";

    color: #65596b;
    font-size: 16px;
    font-weight: 700;
}

/* ============================================================
   MOONLAPSERO - ACCOUNT LOGIN
   ============================================================ */

.account-login {
    min-height: 540px;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    padding: 55px 20px 75px;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(154, 68, 180, .08),
            transparent 330px
        );
}


.account-login-box {
    position: relative;

    width: 100%;
    max-width: 470px;

    padding: 34px 36px 30px;

    border: 1px solid #35273e;
    border-radius: 7px;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(151, 61, 178, .10),
            transparent 40%
        ),
        linear-gradient(
            145deg,
            #110d16,
            #0b090e
        );

    box-shadow:
        0 20px 50px rgba(0, 0, 0, .25);
}


/* Línea superior */

.account-login-box::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #a64bbb,
            #cf59df,
            #a64bbb,
            transparent
        );
}


/* ============================================================
   CABECERA
   ============================================================ */

.account-login-heading {
    margin-bottom: 28px;
}


.account-login-heading h1 {
    margin: 7px 0 8px;

    color: #f4edf6;

    font-size: 32px;
    line-height: 1.1;
}


.account-login-heading p {
    margin: 0;

    max-width: 370px;

    color: #887e8f;

    font-size: 13px;
    line-height: 1.6;
}


/* ============================================================
   ERROR
   ============================================================ */

.account-error {
    margin-bottom: 22px;

    padding: 12px 14px;

    border: 1px solid rgba(227, 75, 99, .40);
    border-radius: 4px;

    background: rgba(227, 75, 99, .07);

    color: #ec788c;

    font-size: 12px;
    line-height: 1.5;
}


/* ============================================================
   FORMULARIO
   ============================================================ */

.account-login-form {
    display: flex;
    flex-direction: column;

    gap: 19px;
}


.account-field {
    display: flex;
    flex-direction: column;

    gap: 7px;
}


.account-field-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;
}


.account-field label {
    color: #8e8295;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.2px;
}


.account-field-header a {
    color: #b653c5;

    font-size: 10px;
    font-weight: 600;

    text-decoration: none;

    transition: color .18s ease;
}


.account-field-header a:hover {
    color: #e177ee;
}


/* INPUT */

.account-field input {
    width: 100%;
    height: 46px;

    padding: 0 14px;

    outline: none;

    border: 1px solid #33283b;
    border-radius: 4px;

    background: #09070c;

    color: #f0e8f2;

    font-family: inherit;
    font-size: 13px;

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}


.account-field input::placeholder {
    color: #514958;
}


.account-field input:hover {
    border-color: #4c3855;
}


.account-field input:focus {
    border-color: #9f4db1;

    background: #0c0910;

    box-shadow:
        0 0 0 3px rgba(159, 77, 177, .08);
}


/* ============================================================
   BOTÓN LOGIN
   ============================================================ */

.account-login-button {
    width: 100%;
    height: 47px;

    margin-top: 4px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    border: 1px solid #a755bb;
    border-radius: 4px;

    background:
        linear-gradient(
            135deg,
            #813492,
            #552060
        );

    color: #ffffff;

    font-family: inherit;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1px;

    cursor: pointer;

    transition:
        transform .15s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}


.account-login-button span {
    font-size: 16px;

    transition: transform .18s ease;
}


.account-login-button:hover {
    border-color: #cf6ee0;

    background:
        linear-gradient(
            135deg,
            #9341a6,
            #65276f
        );

    box-shadow:
        0 5px 20px rgba(151, 66, 170, .15);
}


.account-login-button:hover span {
    transform: translateX(3px);
}


.account-login-button:active {
    transform: translateY(1px);
}


/* ============================================================
   SEPARADOR
   ============================================================ */

.account-login-separator {
    position: relative;

    margin: 30px 0 23px;

    text-align: center;
}


.account-login-separator::before {
    content: "";

    position: absolute;

    top: 50%;
    left: 0;

    width: 100%;
    height: 1px;

    background: #29202f;
}


.account-login-separator span {
    position: relative;

    padding: 0 13px;

    background: #0d0a11;

    color: #625969;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.1px;
}


/* ============================================================
   REGISTRO
   ============================================================ */

.account-register {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 17px;

    border: 1px solid #292130;
    border-radius: 5px;

    background: #0b090e;
}


.account-register > div {
    display: flex;
    flex-direction: column;

    gap: 4px;
}


.account-register strong {
    color: #ddd3e1;

    font-size: 12px;
}


.account-register span {
    color: #6e6475;

    font-size: 10px;
    line-height: 1.4;
}


.account-register-button {
    flex-shrink: 0;

    padding: 9px 12px;

    border: 1px solid #63406c;
    border-radius: 3px;

    color: #cf6eda;

    font-size: 9px;
    font-weight: 800;

    text-decoration: none;
    letter-spacing: .7px;

    transition:
        background .18s ease,
        border-color .18s ease,
        color .18s ease;
}


.account-register-button:hover {
    color: #f0a0f7;

    background: rgba(166, 75, 187, .08);

    border-color: #9553a3;
}


/* ============================================================
   FOOTER
   ============================================================ */

.account-login-footer {
    margin-top: 20px;

    color: #544c5a;

    font-size: 9px;

    text-align: center;
    letter-spacing: .4px;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 550px) {

    .account-login {
        min-height: 0;

        padding:
            30px 12px
            50px;
    }


    .account-login-box {
        padding:
            27px 21px
            24px;
    }


    .account-login-heading h1 {
        font-size: 28px;
    }


    .account-register {
        align-items: stretch;
        flex-direction: column;
    }


    .account-register-button {
        text-align: center;
    }

}

.account-select {
    width: 100%;
    height: 46px;

    padding: 0 14px;

    outline: none;

    border: 1px solid #33283b;
    border-radius: 4px;

    background: #09070c;

    color: #f0e8f2;

    font-family: inherit;
    font-size: 13px;

    cursor: pointer;

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

.account-select:hover {
    border-color: #4c3855;
}

.account-select:focus {
    border-color: #9f4db1;

    background: #0c0910;

    box-shadow:
        0 0 0 3px rgba(159, 77, 177, .08);
}
.account-verification-success {
    margin-bottom: 24px;
    padding: 25px 20px;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 7px;

    border: 1px solid rgba(72, 226, 139, .25);
    border-radius: 5px;

    background: rgba(72, 226, 139, .04);

    text-align: center;
}

.account-verification-icon {
    width: 46px;
    height: 46px;

    margin-bottom: 7px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(72, 226, 139, .45);
    border-radius: 50%;

    color: #48e28b;

    font-size: 23px;
    font-weight: 700;
}

.account-verification-success strong {
    color: #e8f4eb;
    font-size: 14px;
}

.account-verification-success span {
    color: #7c8d80;

    font-size: 11px;
    line-height: 1.5;
}

.account-login-link {
    text-decoration: none;
}

.account-verification-back {
    display: block;

    width: 100%;

    padding: 12px;

    text-align: center;
}
.account-pending-verification {
    margin: 0 0 22px;
    padding: 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    border: 1px solid #4d3458;
    border-radius: 4px;

    background: #100d16;
}

.account-pending-verification > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-pending-verification strong {
    color: #f4eaf8;
    font-size: 12px;
}

.account-pending-verification span {
    color: #a99bae;
    font-size: 11px;
    line-height: 1.5;
}

.account-pending-verification-button {
    flex-shrink: 0;

    padding: 9px 12px;

    border: 1px solid #c57eda;
    border-radius: 3px;

    color: #e9acf4;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;

    text-decoration: none;

    transition:
        background .18s ease,
        color .18s ease;
}

.account-pending-verification-button:hover {
    background: #c57eda;
    color: #080710;
}

@media (max-width: 550px) {

    .account-pending-verification {
        align-items: stretch;
        flex-direction: column;
    }

    .account-pending-verification-button {
        text-align: center;
    }
}

/* ============================================================
   ELIMINACIÓN DE CUENTA
   /cuenta/eliminar/
   ============================================================ */

.account-delete-warning {
    position: relative;
    overflow: hidden;

    margin: 28px 0;
    padding: 24px 26px;

    background:
        linear-gradient(
            135deg,
            rgba(180, 15, 49, 0.14),
            rgba(180, 15, 49, 0.04)
        );

    border: 1px solid rgba(180, 15, 49, 0.55);
    border-radius: 12px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
}


/* Línea roja superior */

.account-delete-warning::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background: linear-gradient(
        90deg,
        transparent,
        #b40f31,
        #e04462,
        #b40f31,
        transparent
    );
}


/* Icono de advertencia */

.account-delete-warning::after {
    content: "!";

    position: absolute;
    top: 17px;
    right: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    border: 1px solid rgba(224, 68, 98, 0.45);
    border-radius: 50%;

    color: #e04462;

    font-size: 18px;
    font-weight: 900;

    background: rgba(180, 15, 49, 0.12);
}


/* Título */

.account-delete-warning strong {
    display: block;

    margin: 0 50px 12px 0;

    color: #f3c5ce;

    font-size: 16px;
    font-weight: 800;

    letter-spacing: 0.4px;
}


/* Texto */

.account-delete-warning p {
    margin: 8px 45px 0 0;

    color: #bdaebf;

    font-size: 14px;
    line-height: 1.65;
}


.account-delete-warning p:last-child {
    margin-bottom: 0;
}


/* ============================================================
   BOTÓN ELIMINAR DEFINITIVAMENTE
   ============================================================ */

.account-delete-button {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 52px;

    margin-top: 6px;
    padding: 14px 24px;

    border: 1px solid #b40f31;
    border-radius: 8px;

    background:
        linear-gradient(
            135deg,
            #8f0d29,
            #b40f31
        );

    color: #ffffff;

    font-family: inherit;
    font-size: 13px;
    font-weight: 900;

    letter-spacing: 1.1px;

    cursor: pointer;

    box-shadow:
        0 8px 22px rgba(180, 15, 49, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

    transition:
        transform 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}


/* Hover */

.account-delete-button:hover {
    transform: translateY(-2px);

    background:
        linear-gradient(
            135deg,
            #a80e30,
            #d0163e
        );

    border-color: #e04462;

    box-shadow:
        0 12px 30px rgba(180, 15, 49, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}


/* Click */

.account-delete-button:active {
    transform: translateY(0);

    box-shadow:
        0 5px 14px rgba(180, 15, 49, 0.22);
}


/* Teclado / accesibilidad */

.account-delete-button:focus-visible {
    outline: 2px solid #e9acf4;
    outline-offset: 3px;
}


/* ============================================================
   ENLACE "NO, CONSERVAR MI CUENTA"
   ============================================================ */

.account-delete-button + * {
    margin-top: 14px;
}


/* En esta pantalla damos más protagonismo a cancelar */

.account-delete-warning ~
.account-login-form +
.account-login-link {
    margin-top: 20px;
    text-align: center;
}


.account-delete-warning ~
.account-login-form +
.account-login-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 0 18px;

    color: #c57eda;

    border: 1px solid #4d3458;
    border-radius: 7px;

    background: rgba(197, 126, 218, 0.04);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.7px;

    text-decoration: none;

    transition:
        color 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}


.account-delete-warning ~
.account-login-form +
.account-login-link a:hover {
    color: #e9acf4;

    border-color: #c57eda;

    background: rgba(197, 126, 218, 0.09);
}


/* ============================================================
   CUENTA ELIMINADA CORRECTAMENTE
   ============================================================ */

.account-verification-success {
    position: relative;

    display: flex;
    align-items: center;

    gap: 16px;

    margin: 26px 0;
    padding: 20px 22px;

    background: rgba(43, 224, 74, 0.07);

    border: 1px solid rgba(43, 224, 74, 0.32);
    border-radius: 10px;
}


.account-verification-success .account-verification-icon {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border-radius: 50%;

    background: rgba(43, 224, 74, 0.12);

    border: 1px solid rgba(43, 224, 74, 0.4);

    color: #2be04a;

    font-size: 20px;
    font-weight: 900;
}


.account-verification-success > div:last-child {
    display: flex;
    flex-direction: column;

    gap: 4px;
}


.account-verification-success strong {
    color: #dfffe5;

    font-size: 14px;
    font-weight: 800;
}


.account-verification-success span {
    color: #a9c9af;

    font-size: 13px;
    line-height: 1.5;
}


/* ============================================================
   ERROR EN ELIMINACIÓN
   ============================================================ */

.account-delete-warning + .account-error,
.account-login-heading + .account-error {
    margin-top: 22px;
}


/* ============================================================
   ANIMACIÓN SUAVE
   ============================================================ */

@keyframes accountDeleteAppear {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


.account-delete-warning,
.account-delete-button,
.account-verification-success {
    animation:
        accountDeleteAppear
        0.28s ease-out
        both;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 600px) {

    .account-delete-warning {
        padding: 20px;
    }


    .account-delete-warning::after {
        top: 15px;
        right: 16px;

        width: 28px;
        height: 28px;

        font-size: 15px;
    }


    .account-delete-warning strong {
        margin-right: 40px;

        font-size: 15px;
    }


    .account-delete-warning p {
        margin-right: 0;

        font-size: 13px;
    }


    .account-delete-button {
        min-height: 50px;

        padding: 13px 16px;

        font-size: 12px;
        letter-spacing: 0.8px;
    }


    .account-verification-success {
        align-items: flex-start;

        padding: 18px;
    }

}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .account-delete-warning,
    .account-delete-button,
    .account-verification-success {
        animation: none;
    }


    .account-delete-button,
    .account-login-link a {
        transition: none;
    }

}

/* ============================================================
   SOLICITAR ELIMINACIÓN
   /cuenta/index.php
   ============================================================ */

.account-danger-zone {
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    margin-top: 18px;
    padding: 24px 26px;

    background:
        linear-gradient(
            135deg,
            rgba(180, 15, 49, 0.08),
            rgba(197, 126, 218, 0.025)
        );

    border: 1px solid rgba(180, 15, 49, 0.30);
    border-radius: 12px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.02);
}


/* Línea decorativa lateral */

.account-danger-zone::before {
    content: "";

    position: absolute;

    top: 18px;
    bottom: 18px;
    left: 0;

    width: 3px;

    background: linear-gradient(
        180deg,
        transparent,
        #b40f31,
        #e04462,
        #b40f31,
        transparent
    );
}


/* ============================================================
   TEXTO
   ============================================================ */

.account-danger-zone > div:first-child {
    flex: 1;
}


.account-danger-zone > div:first-child > strong {
    display: block;

    margin-bottom: 7px;

    color: #f3c5ce;

    font-size: 15px;
    font-weight: 800;

    letter-spacing: 0.3px;
}


.account-danger-zone > div:first-child > p {
    max-width: 680px;

    margin: 0;

    color: #a99bae;

    font-size: 13px;
    line-height: 1.6;
}


/* ============================================================
   FORMULARIO
   ============================================================ */

.account-danger-zone form {
    flex: 0 0 auto;

    margin: 0;
}


/* ============================================================
   BOTÓN SOLICITAR ELIMINACIÓN

   Sobrescribe .account-delete-button únicamente cuando
   está dentro de .account-danger-zone.
   ============================================================ */

.account-danger-zone .account-delete-button {
    width: auto;
    min-width: 220px;
    min-height: 46px;

    margin: 0;
    padding: 12px 20px;

    background: rgba(180, 15, 49, 0.08);

    border: 1px solid rgba(180, 15, 49, 0.65);
    border-radius: 7px;

    color: #e57b90;

    font-family: inherit;
    font-size: 11px;
    font-weight: 900;

    letter-spacing: 0.9px;

    cursor: pointer;

    box-shadow: none;

    transition:
        color 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}


/* Hover */

.account-danger-zone .account-delete-button:hover {
    transform: translateY(-1px);

    color: #ffffff;

    background: rgba(180, 15, 49, 0.22);

    border-color: #d92b4d;

    box-shadow:
        0 8px 20px rgba(180, 15, 49, 0.16);
}


/* Click */

.account-danger-zone .account-delete-button:active {
    transform: translateY(0);

    background: rgba(180, 15, 49, 0.28);

    box-shadow: none;
}


/* Focus */

.account-danger-zone .account-delete-button:focus-visible {
    outline: 2px solid #e57b90;
    outline-offset: 3px;
}


/* ============================================================
   MENSAJE EMAIL ENVIADO
   ============================================================ */

.account-danger-zone .account-verification-success {
    flex: 0 0 auto;

    min-width: 280px;

    margin: 0;
    padding: 14px 18px;

    background: rgba(43, 224, 74, 0.06);

    border: 1px solid rgba(43, 224, 74, 0.28);
    border-radius: 8px;
}


.account-danger-zone .account-verification-success strong {
    display: block;

    margin-bottom: 4px;

    color: #dfffe5;

    font-size: 13px;
}


.account-danger-zone .account-verification-success span {
    display: block;

    color: #a9c9af;

    font-size: 12px;
    line-height: 1.45;
}


/* ============================================================
   ERROR
   ============================================================ */

.account-danger-zone .account-error {
    flex: 0 0 auto;

    max-width: 320px;

    margin: 0;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 750px) {

    .account-danger-zone {
        flex-direction: column;
        align-items: stretch;

        gap: 20px;

        padding: 22px;
    }


    .account-danger-zone form {
        width: 100%;
    }


    .account-danger-zone .account-delete-button {
        width: 100%;
        min-width: 0;
    }


    .account-danger-zone .account-verification-success {
        width: 100%;
        min-width: 0;
    }


    .account-danger-zone .account-error {
        width: 100%;
        max-width: none;
    }

}