/* Modern Shaiya theme layer */
:root {
    --sh-bg: #08090d;
    --sh-surface: rgba(16, 19, 25, .82);
    --sh-surface-strong: rgba(18, 22, 30, .95);
    --sh-line: rgba(217, 186, 132, .24);
    --sh-line-cool: rgba(92, 173, 196, .22);
    --sh-text: #f4efe4;
    --sh-muted: #a9a394;
    --sh-gold: #d9ba84;
    --sh-gold-bright: #ffd889;
    --sh-red: #b84b4b;
    --sh-blue: #5cadc4;
    --sh-shadow: 0 22px 70px rgba(0, 0, 0, .45);
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--sh-text);
    background:
        linear-gradient(180deg, rgba(8, 9, 13, .82), rgba(8, 9, 13, .96)),
        radial-gradient(circle at 50% 0, rgba(217, 186, 132, .12), transparent 32%),
        url("../assets/web-background.jpg") center top / cover fixed no-repeat,
        #08090d !important;
    font-family: "Montserrat", "Roboto", "Futura PT", Arial, sans-serif !important;
    letter-spacing: 0;
}

a,
button,
.btn,
.nav-link,
.donate-item,
.features-item,
.submenu-item,
.character-item,
.rating-item,
.boss-card,
.download-image {
    transition: transform .22s ease, border-color .22s ease, background-color .22s ease, color .22s ease, filter .22s ease, box-shadow .22s ease;
}

.navbar {
    position: sticky !important;
    top: 0;
    z-index: 3000000;
    min-height: 76px;
    background: rgba(8, 10, 14, .78) !important;
    border-bottom: 1px solid var(--sh-line) !important;
    box-shadow: 0 12px 45px rgba(0, 0, 0, .35) !important;
    backdrop-filter: blur(18px);
}

.navbar .container-fluid {
    max-width: 1440px;
}

.navbar-brand {
    color: var(--sh-gold-bright) !important;
    text-shadow: 0 0 22px rgba(217, 186, 132, .28);
    letter-spacing: 5px !important;
    display: inline-flex;
    align-items: center;
    min-width: 120px;
}

.navbar-brand img {
    width: 120px;
    height: 56px;
    object-fit: contain;
    display: block;
}

.navbar-nav .nav-link {
    height: 70px;
    color: rgba(244, 239, 228, .82) !important;
    font-size: 12px;
    letter-spacing: .11em;
}

.navbar-nav .nav-link p {
    border: 1px solid transparent;
    border-radius: 999px !important;
}

.navbar-nav .nav-link:hover p,
.navbar-nav .nav-link.active p {
    color: #fff;
    background: rgba(217, 186, 132, .1) !important;
    border-color: rgba(217, 186, 132, .22);
}

.desktop-link-item-underline {
    display: none;
}

.user-nav .nav-link p {
    background: rgba(255, 255, 255, .07) !important;
    border: 1px solid rgba(255, 255, 255, .08);
}

.user-nav .nav-item.gold p {
    color: #14100a !important;
    background: linear-gradient(135deg, var(--sh-gold-bright), #b98943) !important;
    border: 0;
    box-shadow: 0 10px 30px rgba(217, 186, 132, .22);
}

section.home-banner {
    isolation: isolate;
    height: clamp(360px, 52vw, 590px) !important;
    min-height: 360px;
    align-items: center;
    justify-content: center !important;
    background:
        linear-gradient(90deg, rgba(8, 9, 13, .88), rgba(8, 9, 13, .36) 52%, rgba(8, 9, 13, .92)),
        linear-gradient(180deg, rgba(8, 9, 13, .15), rgba(8, 9, 13, .9)),
        url("../assets/web-background.jpg") center 42% / cover no-repeat !important;
    filter: none !important;
    overflow: hidden;
}

section.home-banner::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(180deg, transparent, var(--sh-bg));
    z-index: -1;
}

section.home-banner::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 54%;
    transform: translate(-50%, -50%);
    width: min(88vw, 860px);
    height: 320px;
    margin-top: 0;
    background: url("../assets/logo2.png") center / contain no-repeat;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, .72)) drop-shadow(0 0 34px rgba(217, 186, 132, .22));
}

.home-banner__item {
    display: none !important;
}

.latest {
    background: linear-gradient(180deg, rgba(8, 9, 13, 0), rgba(13, 15, 20, .72) 14%, rgba(8, 9, 13, .98));
}

.social-links {
    gap: 20px !important;
    margin-top: 70px !important;
}

.social-links a {
    display: block !important;
    flex-shrink: 0;
    height: fit-content;
    width: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.social-links img {
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
}

.social-links a:hover {
    transform: none;
    background: transparent;
}

.majorSectionHeader {
    margin: 42px auto 24px !important;
}

.titleStart {
    color: var(--sh-gold-bright) !important;
    font-size: clamp(22px, 3vw, 34px) !important;
    font-weight: 800;
    letter-spacing: .18em !important;
}

.line,
.diamond,
.diamondLeft,
.diamondRight {
    opacity: .72;
}

.home-wrap,
.content,
.container {
    position: relative;
}

.ags-ContainerModule-container-imageBorderContainer,
.content-text,
.donate-item,
.features-item,
.submenu-item,
.ref-item,
.userpanel-item,
.character-item,
.goal,
.ts-item,
.dg-i,
.video-container,
.boss-card,
.table,
.card,
.login-box,
.register-box,
.download-card {
    background: var(--sh-surface) !important;
    border: 1px solid var(--sh-line) !important;
    border-radius: 8px !important;
    box-shadow: var(--sh-shadow);
}

.ags-ContainerModule-container-imageBorderContainer {
    padding: clamp(18px, 3vw, 32px) !important;
}

.ags-ContainerBorder {
    display: none;
}

.news-item,
.view-news,
.ts-m,
.ts-u {
    border-radius: 8px;
}

.btn,
.btn-primary,
button[type="submit"] {
    border-radius: 999px !important;
    background: linear-gradient(135deg, #1d2430, #11141b) !important;
    border: 1px solid rgba(217, 186, 132, .38) !important;
    color: var(--sh-text) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
}

.btn:hover,
.btn-primary:hover,
button[type="submit"]:hover {
    color: #fff !important;
    transform: translateY(-2px);
    border-color: rgba(255, 216, 137, .72) !important;
    box-shadow: 0 18px 36px rgba(0, 0, 0, .38);
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="date"],
select,
.form-control {
    min-height: 46px;
    border-radius: 8px !important;
    background: rgba(8, 10, 14, .82) !important;
    border: 1px solid rgba(217, 186, 132, .2) !important;
    color: var(--sh-text) !important;
}

.form-control:focus,
input:focus,
select:focus {
    border-color: var(--sh-blue) !important;
    box-shadow: 0 0 0 .2rem rgba(92, 173, 196, .18) !important;
}

.features-item:hover,
.donate-item:hover,
.submenu-item:hover,
.character-item:hover,
.ref-item:hover,
.boss-card:hover,
.download-card:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(217, 186, 132, .55) !important;
    filter: none !important;
}

.features-item h1,
.donate-item h1,
.submenu-item h1,
.userpanel-item h1 {
    background: rgba(8, 10, 14, .72) !important;
    color: var(--sh-gold-bright) !important;
    text-shadow: none !important;
}

.table {
    color: var(--sh-text);
    overflow: hidden;
}

.table > :not(caption) > * > * {
    background: transparent !important;
    border-color: rgba(255, 255, 255, .07) !important;
    color: inherit;
}

.rating-list .rating-item,
.rating-item {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
}

.footer {
    margin-top: 72px !important;
    background: linear-gradient(180deg, rgba(13, 15, 20, .95), #050608) !important;
    border-top: 1px solid var(--sh-line) !important;
}

.footer .footer__links {
    background: rgba(255, 255, 255, .04) !important;
}

.footer__links a,
.footer-legal-links a {
    border-radius: 999px;
    color: rgba(244, 239, 228, .78) !important;
}

.footer__links a:hover,
.footer-legal-links a:hover {
    color: #fff !important;
    background: rgba(217, 186, 132, .1) !important;
}

.footer .footer__copyright {
    max-width: 760px !important;
    color: var(--sh-muted) !important;
}

.template-empty {
    width: 100%;
    padding: 34px 18px;
    color: var(--sh-muted);
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(5, 6, 8, .42);
    border: 1px dashed rgba(217, 186, 132, .26);
    border-radius: 8px;
}

.template-empty.compact {
    padding: 18px 12px;
    font-size: 11px;
}

.server-details-stack {
    display: grid;
    gap: 20px;
    width: min(100%, 360px);
    margin: 20px auto 0;
}

.server-detail-card {
    position: relative;
    min-height: 146px;
    overflow: hidden;
    border: 1px solid rgba(217, 186, 132, .18);
    border-radius: 36px 36px 24px 24px;
    background:
        radial-gradient(circle at 16% 28%, rgba(255, 255, 255, .1), transparent 22%),
        linear-gradient(145deg, rgba(31, 31, 31, .98), rgba(8, 9, 12, .96));
    box-shadow: 0 18px 46px rgba(0, 0, 0, .34);
}

.server-detail-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, .08), transparent 30%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 12px);
    opacity: .28;
    pointer-events: none;
}

.server-detail-top,
.server-detail-bottom {
    position: relative;
    z-index: 1;
}

.server-detail-top {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 82px;
    padding: 22px 28px 16px;
}

.server-detail-bottom {
    display: grid;
    grid-template-columns: 1fr 88px;
    min-height: 64px;
    border-top: 1px solid rgba(255, 255, 255, .07);
    background:
        linear-gradient(90deg, rgba(71, 42, 128, .7), rgba(18, 18, 20, .84) 70%),
        radial-gradient(circle at 20% 100%, rgba(178, 130, 255, .42), transparent 42%);
}

.server-detail-bottom > div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
}

.server-detail-bottom > div + div {
    display: block;
    padding: 13px 16px;
    background: rgba(255, 255, 255, .08);
    border-left: 1px solid rgba(255, 255, 255, .1);
}

.server-detail-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    color: #e9e9e9;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04));
    box-shadow: inset 0 0 18px rgba(255, 255, 255, .08), 0 6px 18px rgba(0, 0, 0, .3);
}

.server-detail-label,
.server-detail-note {
    display: block;
    color: #9f9f9f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.server-detail-value {
    display: block;
    color: #f5f1e9;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .02em;
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 0 2px 0 rgba(0, 0, 0, .65);
}

.server-detail-value span {
    color: #aaa;
}

.server-detail-green {
    color: #9be47b;
}

.server-detail-bottom small {
    display: block;
    color: #f5f1e9;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
}

.server-detail-bottom strong {
    display: block;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .02em;
    line-height: 1.05;
    text-transform: uppercase;
}

.server-detail-card--security .server-detail-bottom {
    display: block;
    min-height: 64px;
    padding: 14px 36px;
    background:
        linear-gradient(90deg, rgba(25, 25, 25, .92), rgba(8, 8, 9, .82)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .08) 0 2px, transparent 2px 14px);
}

.server-detail-card--security .server-detail-bottom p {
    margin: 0;
    color: #9e9e9e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
    line-height: 1.18;
    text-transform: uppercase;
}

@media (max-width: 991px) {
    .navbar {
        position: sticky !important;
    }

    .navbar-collapse {
        padding: 12px;
        border-radius: 8px;
        background: rgba(8, 10, 14, .96);
        border: 1px solid var(--sh-line);
    }

    .navbar-nav .nav-link {
        height: auto;
        padding: 4px 0 !important;
    }

    .navbar-nav .nav-link p {
        width: 100%;
        text-align: left;
    }

    .user-nav {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 768px) {
    section.home-banner {
        height: 360px !important;
        min-height: 360px;
    }

    section.home-banner::after {
        top: 54%;
        width: min(92vw, 560px);
        height: 210px;
    }

    .home-wrap {
        margin-top: 24px !important;
        padding-left: 12px;
        padding-right: 12px;
    }

    .footer .footer__links,
    .footer .footer-legal-links {
        gap: 4px;
        padding-left: 10px;
        padding-right: 10px;
    }
}
