.features-left-item__icon .icon {
    width: 24px;
    position: absolute;
    top: 12px;
    left: 11px;
}
.header-lang__other {
    display: none;
    position: absolute;
    top: 35px;
}
.header-lang:hover .header-lang__other {
    display: block;
}
.header-lang-other__item {
    margin-bottom: 5px;
}
.step__btn {
    cursor: pointer;
}
.header-left__nav .active {
    color: rgba(255, 184, 47, 1) !important;
}
.servers-info-list__item .new {
    right: 95px !important;
}
.text-area img{display: inline-block}
.servers__info {
    max-height: 299px;
}
.payment-system {
    display: none;
}
.payment-system.show {
    display: block;
}
.input-success {
    border-color: green !important;
}
.input-error {
    border-color: red !important;
}
#pay-btn:disabled {
    filter: grayscale(0.5);
}
.payment__buttons a {
    padding: 20px 30px;
    background: rgb(197, 143, 40);
    border-radius: 5px;
    font-size: 20px;
    line-height: 20px;
    font-weight: 700;
    text-align: center;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0px 5px 5px rgba(0, 0, 0, 0.3);
}
.alert.alert-fill {
    border: 1px solid #37302b;
    border-radius: 5px;
    padding: 10px 20px;
    margin-bottom: 25px;
    color: #ffffff;
    background-color: #221d19;
}
.alert.alert-fill.alert-danger {
    border: 1px solid #840202;
    background-color: red;
}
.alert.alert-fill.alert-success {
    border: 1px solid #034203;
    background-color: green;
}
.servers-video__item {
    width: 100% !important;
}

/* ===== Ranking Page Improvements ===== */

/* Tabs container */
.tabs__btns {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 30px auto 35px;
    padding: 12px;
    background: rgba(26, 23, 21, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(197, 143, 40, 0.15);
}

/* Tab buttons */
.tabs-btns__btn {
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 13px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    width: auto;
}

.tabs-btns__btn:hover {
    filter: none;
    background: rgba(197, 143, 40, 0.3);
    border-color: rgba(197, 143, 40, 0.5);
    transform: translateY(-1px);
    text-decoration: none;
    color: rgb(255, 255, 255);
}

.tabs-btns__btn.active {
    border-radius: 10px;
    border-color: rgba(197, 143, 40, 0.6);
    box-shadow: 0 2px 12px rgba(197, 143, 40, 0.25);
}

.tabs-btns__btn.active:hover {
    filter: none;
    background: rgb(197, 143, 40);
}

/* Result area wrapper */
.result-area {
    background: rgba(26, 23, 21, 0.5);
    border-radius: 14px;
    padding: 20px;
    border: 1px solid rgba(197, 143, 40, 0.12);
}

/* Table styling */
.result-area .table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    background: transparent;
}

.result-area .table thead th {
    background: rgba(197, 143, 40, 0.18);
    color: rgb(255, 184, 46);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 14px 16px;
    border: none;
    font-weight: 600;
}

.result-area .table thead th:first-child {
    border-top-left-radius: 10px;
}

.result-area .table thead th:last-child {
    border-top-right-radius: 10px;
}

.result-area .table tbody tr {
    transition: all 0.2s ease;
}

.result-area .table tbody tr:hover {
    background: rgba(197, 143, 40, 0.08) !important;
}

.result-area .table tbody td,
.result-area .table tbody th {
    padding: 12px 16px;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: rgb(220, 210, 200);
    vertical-align: middle;
    font-size: 14px;
}

.result-area .table tbody tr:last-child td,
.result-area .table tbody tr:last-child th {
    border-bottom: none;
}

.result-area .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(28, 23, 18, 0.6);
}

.result-area .table-striped tbody tr:nth-of-type(even) {
    background-color: rgba(38, 33, 28, 0.4);
}

/* Table links */
.result-area .table a {
    color: rgb(255, 184, 46);
    text-decoration: none;
    transition: color 0.2s ease;
}

.result-area .table a:hover {
    color: rgb(255, 210, 100);
}

/* Top 3 rank highlight */
.result-area .table tbody tr:nth-child(1) th:first-child,
.result-area .table tbody tr:nth-child(2) th:first-child,
.result-area .table tbody tr:nth-child(3) th:first-child {
    color: rgb(255, 184, 46);
    font-weight: 700;
}

/* Pagination */
.result-area .pagination {
    justify-content: center;
    gap: 4px;
    margin-top: 10px;
}

.result-area .pagination .page-item .page-link {
    background: rgba(91, 82, 70, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgb(200, 187, 177);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.result-area .pagination .page-item .page-link:hover {
    background: rgba(197, 143, 40, 0.3);
    border-color: rgba(197, 143, 40, 0.5);
    color: #fff;
}

.result-area .pagination .page-item.active .page-link {
    background: rgb(197, 143, 40);
    border-color: rgb(197, 143, 40);
    color: #fff;
    box-shadow: 0 2px 8px rgba(197, 143, 40, 0.3);
}

.result-area .pagination .page-item.disabled .page-link {
    background: rgba(40, 35, 30, 0.5);
    border-color: rgba(255, 255, 255, 0.05);
    color: rgba(200, 187, 177, 0.4);
}

/* Ranking title */
.info .step__title {
    margin-bottom: 10px;
}

/* Character images in table */
.result-area .table .img-fluid {
    border-radius: 4px;
    margin-right: 4px;
}

/* ===== Custom Theme Overrides ===== */

/* Website background color */
html, body {
    background-color: #160d02 !important;
}

/* Header background at 50% opacity + reduced height */
.header {
    background: rgba(22, 13, 2, 0.5) !important;
    padding: 10px 0 !important;
}
header.active {
    background: rgba(22, 13, 2, 0.5) !important;
    backdrop-filter: blur(8px);
    padding: 10px 0 !important;
}

/* Nav link text: color d1ba60, bold, 17px, capitalize first letter */
.header-left-nav__list li a,
.header-right__log-in {
    color: #d1ba60 !important;
    font-weight: bold !important;
    font-size: 17px !important;
    text-transform: capitalize !important;
    transition: color 0.3s ease, text-shadow 0.3s ease !important;
}

/* Outer glow on hover */
.header-left-nav__list li a:hover,
.header-right__log-in:hover {
    color: #ffd700 !important;
    text-shadow:
        0 0 6px rgba(209, 186, 96, 0.9),
        0 0 14px rgba(209, 186, 96, 0.7),
        0 0 30px rgba(209, 186, 96, 0.5),
        0 0 50px rgba(209, 186, 96, 0.3) !important;
}

/* ===== Event PvP navigation highlight ===== */
.header-left-nav__list .nav-event-pvp {
    isolation: isolate;
}

.header-left-nav__list .nav-event-pvp > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 11px;
    color: #ffe18a !important;
    text-transform: uppercase !important;
    letter-spacing: .5px;
    text-shadow: 0 0 8px rgba(255, 106, 0, .85);
}

.header-left-nav__list .nav-event-pvp > a > span {
    position: relative;
    top: auto;
    left: auto;
    min-width: 0;
    padding: 0;
    display: inline-block;
    flex-direction: initial;
    gap: 0;
    transform: none;
    opacity: 1;
    pointer-events: auto;
}

.header-left-nav__list .nav-event-pvp > a > span::before {
    content: none;
}

.nav-event-pvp > a::before {
    content: "";
    position: absolute;
    inset: 1px -2px;
    z-index: -1;
    border: 1px solid rgba(255, 174, 48, .55);
    background: linear-gradient(135deg, rgba(116, 19, 5, .75), rgba(49, 12, 3, .25));
    clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px);
    box-shadow: inset 0 0 14px rgba(255, 103, 0, .25), 0 0 12px rgba(255, 80, 0, .2);
    animation: pvp-nav-pulse 2.2s ease-in-out infinite;
}

.nav-event-pvp__flare {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #ffb52c;
    box-shadow: 0 0 5px #ffb52c, 0 0 13px #ff3c00;
    animation: pvp-flare 1.15s ease-in-out infinite alternate;
}

.header-left-nav__list .nav-event-pvp > a > .nav-event-pvp__badge {
    position: absolute !important;
    top: -8px !important;
    left: auto !important;
    right: -7px !important;
    padding: 2px 4px;
    color: #fff7d2;
    font: 700 8px/1 Arial, sans-serif;
    letter-spacing: .8px;
    background: #a81e0b;
    border: 1px solid #ff9d31;
    border-radius: 2px;
    box-shadow: 0 0 7px rgba(255, 61, 0, .8);
}

@keyframes pvp-nav-pulse {
    0%, 100% { filter: brightness(.92); }
    50% { filter: brightness(1.32); box-shadow: inset 0 0 18px rgba(255, 103, 0, .38), 0 0 17px rgba(255, 80, 0, .4); }
}

@keyframes pvp-flare {
    from { transform: scale(.75); opacity: .65; }
    to { transform: scale(1.25); opacity: 1; }
}

/* ===== Event PvP download page ===== */
.pvp-downloads {
    width: 100%;
    padding: 10px 0 90px;
    color: #eee5dc;
}

.pvp-downloads__panel {
    position: relative;
    overflow: hidden;
    max-width: 1120px;
    margin: 0 auto;
    padding: 56px 58px 48px;
    border: 1px solid rgba(223, 160, 55, .38);
    border-radius: 15px;
    background:
        radial-gradient(circle at 50% 0, rgba(165, 58, 13, .22), transparent 43%),
        linear-gradient(145deg, rgba(35, 25, 18, .97), rgba(17, 13, 10, .97));
    box-shadow: 0 22px 65px rgba(0, 0, 0, .42), inset 0 1px rgba(255, 226, 158, .08);
}

.pvp-downloads__panel::before,
.pvp-downloads__panel::after {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    pointer-events: none;
    border-color: rgba(233, 174, 68, .5);
}

.pvp-downloads__panel::before {
    top: 15px;
    left: 15px;
    border-top: 2px solid;
    border-left: 2px solid;
}

.pvp-downloads__panel::after {
    right: 15px;
    bottom: 15px;
    border-right: 2px solid;
    border-bottom: 2px solid;
}

.pvp-downloads__eyebrow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    color: #d29a42;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
}

.pvp-downloads__eyebrow span {
    width: 45px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c8882f);
}

.pvp-downloads__eyebrow span:last-child {
    transform: scaleX(-1);
}

.pvp-downloads__title {
    margin: 12px 0 8px;
    color: #f6e6bb;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(46px, 6vw, 76px);
    font-weight: 400;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 3px 0 #5f2d0b, 0 0 22px rgba(244, 146, 33, .3);
}

.pvp-downloads__title strong {
    color: #ffad32;
    font-weight: 700;
}

.pvp-downloads__subtitle {
    max-width: 650px;
    margin: 18px auto 22px;
    color: #bdb0a4;
    font-size: 16px;
    line-height: 1.7;
    text-align: center;
}

.pvp-downloads__meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 34px;
}

.pvp-downloads__meta span {
    padding: 7px 11px;
    color: #d5c4ae;
    font-size: 12px;
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 20px;
}

.pvp-downloads__meta i {
    margin-right: 5px;
    color: #d89b3c;
}

.pvp-downloads__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.pvp-mirror {
    --mirror-color: #d9272e;
    position: relative;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    min-height: 112px;
    padding: 19px 18px;
    color: #fff !important;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 10px;
    background: linear-gradient(120deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .015));
    box-shadow: inset 3px 0 0 var(--mirror-color);
    transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.pvp-mirror::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(circle at 0 50%, color-mix(in srgb, var(--mirror-color) 20%, transparent), transparent 45%);
    opacity: .65;
}

.pvp-mirror:hover {
    z-index: 2;
    color: #fff !important;
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--mirror-color) 65%, #fff);
    background: linear-gradient(120deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035));
    box-shadow: inset 4px 0 0 var(--mirror-color), 0 12px 27px rgba(0, 0, 0, .32), 0 0 18px color-mix(in srgb, var(--mirror-color) 18%, transparent);
}

.pvp-mirror--mediafire { --mirror-color: #278be4; }
.pvp-mirror--filesfm { --mirror-color: #f08a24; }
.pvp-mirror--drive { --mirror-color: #32a864; }

.pvp-mirror__logo {
    position: relative;
    z-index: 1;
    display: block;
    width: 58px;
    height: 58px;
    filter: drop-shadow(0 5px 7px rgba(0, 0, 0, .35));
    transition: transform .25s ease;
}

.pvp-mirror:hover .pvp-mirror__logo {
    transform: scale(1.08);
}

.pvp-mirror__logo svg {
    display: block;
    width: 100%;
    height: 100%;
}

.pvp-mirror__content {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.pvp-mirror__content small,
.pvp-mirror__content strong,
.pvp-mirror__content em {
    display: block;
}

.pvp-mirror__content small {
    margin-bottom: 2px;
    color: #b29d88;
    font-size: 9px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.pvp-mirror__content strong {
    overflow: hidden;
    color: #f9efe6;
    font-size: 21px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pvp-mirror__content em {
    overflow: hidden;
    margin-top: 4px;
    color: #a99d93;
    font-size: 11px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pvp-mirror__action {
    position: relative;
    z-index: 1;
    padding: 8px 10px;
    color: #dcc6aa;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 4px;
    transition: color .25s ease, border-color .25s ease;
}

.pvp-mirror:hover .pvp-mirror__action {
    color: #fff;
    border-color: var(--mirror-color);
}

.pvp-mirror__action i {
    margin-left: 5px;
}

.pvp-downloads__notice {
    position: relative;
    z-index: 1;
    margin: 25px 0 0;
    color: #9c9086;
    font-size: 12px;
    text-align: center;
}

.pvp-downloads__notice i {
    margin-right: 5px;
    color: #cf9134;
}

.pvp-downloads__empty {
    grid-column: 1 / -1;
    padding: 42px 20px;
    color: #a99d93;
    text-align: center;
    border: 1px dashed rgba(223, 160, 55, .28);
    border-radius: 10px;
    background: rgba(255, 255, 255, .025);
}

.pvp-downloads__empty i,
.pvp-downloads__empty strong,
.pvp-downloads__empty span {
    display: block;
}

.pvp-downloads__empty i {
    margin-bottom: 12px;
    color: #d89b3c;
    font-size: 28px;
}

.pvp-downloads__empty strong {
    margin-bottom: 6px;
    color: #ead8c5;
    font-size: 18px;
}

.pvp-downloads__empty span {
    font-size: 13px;
}

@media (max-width: 1199px) {
    .header-left-nav__list {
        gap: 24px;
    }

    .header-left-nav__list .nav-event-pvp > a {
        padding-right: 9px;
        padding-left: 9px;
    }
}

@media (max-width: 992px) {
    .header-left-nav__list .nav-event-pvp > a > .nav-event-pvp__badge {
        top: -4px !important;
    }
}

@media (max-width: 850px) {
    .pvp-downloads__panel {
        padding: 48px 30px 40px;
    }

    .pvp-downloads__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header.burger {
        height: 410px;
    }

    .header-left-nav__list .nav-event-pvp > a {
        padding: 7px 11px;
    }

    .pvp-downloads {
        padding-bottom: 55px;
    }

    .pvp-downloads__panel {
        padding: 42px 18px 34px;
    }

    .pvp-downloads__panel::before,
    .pvp-downloads__panel::after {
        width: 75px;
        height: 75px;
    }

    .pvp-downloads__title {
        letter-spacing: 1px;
    }

    .pvp-mirror {
        grid-template-columns: 52px minmax(0, 1fr);
        min-height: 104px;
        padding: 16px 14px;
    }

    .pvp-mirror__logo {
        width: 50px;
        height: 50px;
    }

    .pvp-mirror__action {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-event-pvp > a::before,
    .nav-event-pvp__flare {
        animation: none;
    }
}

/* ===== Starter Package navigation highlight ===== */
.header-left-nav__list.has-feature-tabs {
    gap: 21px;
}

.header-left-nav__list .nav-quest-wiki {
    isolation: isolate;
}

.header-left-nav__list .nav-quest-wiki > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    overflow: hidden;
    color: #ffffff !important;
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase !important;
    letter-spacing: .35px;
    text-shadow: 0 0 8px rgba(255, 255, 255, .72), 0 1px 3px #570000;
    transition: color .25s ease, transform .25s ease;
}

.header-left-nav__list .nav-quest-wiki > a:hover,
.header-left-nav__list .nav-quest-wiki > a.active {
    color: #ffffff !important;
    transform: translateY(-1px);
}

.header-left-nav__list .nav-quest-wiki > a.is-sounding {
    color: #fff !important;
    animation: starter-package-click 1.8s ease-out forwards;
}

.header-left-nav__list .nav-quest-wiki > a.is-sounding::before {
    animation: starter-package-flash 1.8s ease-out forwards;
}

.header-left-nav__list .nav-quest-wiki > a.is-sounding .nav-quest-wiki__rune {
    animation: starter-gift-click 1.15s cubic-bezier(.2, .8, .3, 1) forwards;
}

.header-left-nav__list .nav-quest-wiki > a > span {
    position: relative;
    top: auto;
    left: auto;
    min-width: 0;
    padding: 0;
    display: inline-block;
    flex-direction: initial;
    gap: 0;
    transform: none;
    opacity: 1;
    pointer-events: auto;
}

.header-left-nav__list .nav-quest-wiki > a > span::before {
    content: none;
}

.nav-quest-wiki > a::before {
    content: "";
    position: absolute;
    inset: 1px -2px;
    z-index: -1;
    border: 1px solid rgba(255, 105, 83, .92);
    background: linear-gradient(135deg, #c20e18, #85030b 55%, #4e0005);
    clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px);
    box-shadow: inset 0 0 17px rgba(255, 116, 81, .4), 0 0 16px rgba(230, 16, 30, .55);
    animation: quest-nav-pulse 2.5s ease-in-out infinite;
}

.nav-quest-wiki__rune {
    color: #ffe47b;
    font-size: 13px;
    transform-origin: 50% 100%;
    filter: drop-shadow(0 0 6px rgba(255, 190, 55, .95));
    animation: starter-gift-bounce 1.8s ease-in-out infinite;
}

.header-left-nav__list .nav-quest-wiki > a > .nav-quest-wiki__shine {
    position: absolute;
    inset: 2px !important;
    width: 30%;
    pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .72), transparent);
    animation: quest-nav-shine 2.7s ease-in-out infinite;
}

@keyframes quest-nav-pulse {
    0%, 100% { filter: brightness(.96); }
    50% { filter: brightness(1.28); box-shadow: inset 0 0 21px rgba(255, 123, 92, .55), 0 0 21px rgba(235, 20, 35, .72); }
}

@keyframes starter-gift-bounce {
    0%, 58%, 100% { transform: translateY(0) rotate(0); }
    68% { transform: translateY(-3px) rotate(-9deg) scale(1.12); }
    78% { transform: translateY(0) rotate(8deg) scale(1.08); }
    88% { transform: rotate(-4deg); }
}

@keyframes starter-package-click {
    0% { transform: scale(1); }
    12% { transform: scale(.94); }
    28% { transform: scale(1.08); filter: brightness(1.5); }
    48% { transform: scale(1.02); }
    100% { transform: scale(1); filter: brightness(1.08); }
}

@keyframes starter-package-flash {
    0% { box-shadow: inset 0 0 17px rgba(255, 116, 81, .4), 0 0 16px rgba(230, 16, 30, .55); }
    24% { box-shadow: inset 0 0 28px rgba(255, 224, 117, .9), 0 0 32px rgba(255, 31, 48, 1); }
    100% { box-shadow: inset 0 0 17px rgba(255, 116, 81, .4), 0 0 16px rgba(230, 16, 30, .55); }
}

@keyframes starter-gift-click {
    0% { transform: rotate(0) scale(1); }
    22% { transform: rotate(-16deg) scale(1.32); }
    45% { transform: rotate(14deg) scale(1.25); }
    68% { transform: rotate(-7deg) scale(1.14); }
    100% { transform: rotate(0) scale(1); }
}

@keyframes quest-nav-shine {
    0%, 35% { transform: translateX(-180%); opacity: 0; }
    55% { opacity: 1; }
    78%, 100% { transform: translateX(310%); opacity: 0; }
}

@media (max-width: 1199px) {
    .header-left-nav__list.has-feature-tabs { gap: 14px; }
    .header-left-nav__list .nav-quest-wiki > a { padding-right: 8px; padding-left: 8px; }
}

@media (max-width: 768px) {
    header.burger { height: 465px; }
    .header-left-nav__list .nav-quest-wiki > a { padding: 7px 11px; }
}

@media (prefers-reduced-motion: reduce) {
    .nav-quest-wiki > a::before,
    .nav-quest-wiki__shine,
    .nav-quest-wiki__rune { animation: none !important; }
}
