@font-face {
    font-family: "NexusPixel";
    src: local("Trebuchet MS");
}

:root {
    --nexus-ink: #f4f0ff;
    --nexus-muted: #c9baff;
    --nexus-panel: rgba(22, 12, 57, 0.94);
    --nexus-panel-soft: rgba(44, 20, 91, 0.9);
    --nexus-line: rgba(181, 122, 255, 0.36);
    --nexus-glow: rgba(167, 83, 255, 0.38);
    --nexus-button-top: #7d43d7;
    --nexus-button-bottom: #3b167e;
    --nexus-green: #55c337;
}

html,
body {
    min-width: 320px;
    min-height: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    color: var(--nexus-ink);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% 12%, rgba(132, 55, 255, 0.28), transparent 30rem),
        linear-gradient(180deg, rgba(7, 4, 25, 0.35), rgba(9, 3, 31, 0.82)),
        url("/img/nexus_background.png") center top / cover fixed;
    letter-spacing: 0;
}

* {
    box-sizing: border-box;
}

a {
    color: #efe8ff;
}

a:hover,
a:focus {
    color: #ffffff;
    text-decoration: none;
}

#wrap {
    min-height: 100vh;
    padding: 24px 16px;
}

.page-wrapper {
    width: min(1320px, 100%);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(188, 131, 255, 0.34);
    border-radius: 8px;
    background: rgba(14, 6, 43, 0.72);
    box-shadow: 0 22px 80px rgba(6, 1, 22, 0.58), 0 0 28px rgba(132, 61, 255, 0.22);
}

.page-wrapper .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.page-wrapper .header,
.page-wrapper .support-wrapper,
.page-wrapper .annoucemnet-banner,
.page-wrapper .content,
.page-wrapper #footer {
    width: 100%;
    max-width: 100%;
}

.content {
    padding: 28px 28px 38px;
    background:
        linear-gradient(180deg, rgba(16, 7, 48, 0.93), rgba(9, 4, 32, 0.96));
}

.annoucemnet-banner img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center;
    max-height: 320px;
}

.header-bg {
    min-height: 220px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(4, 2, 16, 0.88), rgba(15, 0, 51, 0.55)),
        url("/img/nexus_account_banner.png") center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.header {
    width: 100%;
    max-width: 1180px;
    padding: 0 26px;
    margin: 0 auto;
    background: transparent;
}

.header .row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
}

.header .logo img,
#footer .logo img {
    width: 170px !important;
    height: auto !important;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55));
}

.header .title {
    flex: 1 1 auto;
    max-width: 760px;
    color: #ffffff;
    font-size: clamp(26px, 3.5vw, 48px);
    font-weight: 900;
    line-height: 1.05;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.85), 0 4px 20px rgba(9, 3, 36, 0.55);
    padding: 0;
    background: transparent;
    border-radius: 0;
    backdrop-filter: none;
    box-shadow: none;
    margin: 0 auto;
}

.support-wrapper {
    padding: 18px 22px 20px;
    background: rgba(9, 3, 36, 0.96);
    border-top: 0;
    border-bottom: 1px solid rgba(192, 137, 255, 0.28);
}

#nav {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
}

#nav .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 0;
    padding: 0;
}

#nav .nav > li {
    list-style: none;
}

#nav .nav > li > a {
    min-height: 46px;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 16px;
    letter-spacing: 0.3px;
}

.annoucemnet-banner {
    margin-top: 0;
}

.dirt {
    display: none;
}

.support-wrapper {
    padding: 16px 28px 18px;
    background:
        linear-gradient(180deg, rgba(50, 22, 103, 0.95), rgba(27, 12, 68, 0.98));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(192, 137, 255, 0.28);
}

#nav {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    float: none;
    margin: 0;
    padding: 0;
}

#nav .nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

#nav .nav > li > a {
    min-height: 42px;
    padding: 10px 17px;
    border: 1px solid rgba(199, 162, 255, 0.32);
    border-radius: 999px;
    color: #fff;
    background:
        radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.16), transparent 36%),
        linear-gradient(180deg, rgba(92, 42, 184, 0.94) 0%, rgba(48, 18, 118, 0.96) 100%);
    box-shadow:
        0 0 12px rgba(169, 112, 255, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 3px 0 rgba(13, 5, 34, 0.95);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 1px 1.4px 0 #120022;
    transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

#nav .nav > li > a:hover,
#nav .nav > li > a:focus,
.grow-button:hover,
.grow-button:focus {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

#nav .shop-menu-button::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: -3px;
    background: radial-gradient(circle at 36% 34%, #ffffff 0 9%, #ff60db 10% 34%, #d0008f 35% 58%, #5e0349 59%);
    clip-path: polygon(50% 0, 90% 28%, 74% 90%, 26% 90%, 10% 28%);
    filter: drop-shadow(1px 1px 0 #130020);
}

#nav .shop-menu-button,
#nav .shop-menu-button:hover,
#nav .shop-menu-button:focus {
    animation: none !important;
}

#nav .shop-menu-button::after {
    display: none !important;
    content: none !important;
}

#nav .navbar-right {
    margin-left: 18px;
}

.annoucemnet-banner {
    padding: 0;
    background: #11072d;
}

.annoucemnet-banner img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    object-position: center;
    border-bottom: 1px solid rgba(184, 119, 255, 0.26);
    background:
        radial-gradient(circle at 50% 45%, rgba(137, 61, 255, 0.28), transparent 32%),
        #0b0327;
}

.content {
    flex: 1;
    padding: 28px 28px 38px;
    background:
        linear-gradient(180deg, rgba(16, 7, 48, 0.93), rgba(9, 4, 32, 0.96));
}

.common-box {
    padding: 0;
    background: transparent;
}

.common-box .container {
    width: min(1020px, 100%);
    padding: 30px 36px;
    border: 1px solid var(--nexus-line);
    border-radius: 8px;
    background:
        radial-gradient(circle at 78% 12%, rgba(126, 56, 220, 0.28), transparent 22rem),
        linear-gradient(180deg, var(--nexus-panel-soft), var(--nexus-panel));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 12px 36px rgba(4, 0, 20, 0.38);
}

.section-title h2 {
    margin: 0 0 22px;
    color: #ffffff;
    font-size: clamp(30px, 4vw, 54px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.04;
    text-transform: none;
    text-shadow: 0 3px 0 #1c0b47, 0 0 20px rgba(183, 116, 255, 0.62);
}

.common-box p {
    color: var(--nexus-muted);
    font-size: 18px;
    line-height: 1.65;
}

.form-group {
    margin-bottom: 18px;
}

.form-control {
    height: 50px;
    border: 1px solid rgba(200, 155, 255, 0.42);
    border-radius: 8px;
    color: #ffffff;
    background: rgba(12, 5, 40, 0.82);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.28), 0 0 0 rgba(0, 0, 0, 0);
    font-size: 17px;
    font-weight: 700;
}

.form-control:focus {
    border-color: #cfa7ff;
    box-shadow: 0 0 0 3px rgba(175, 96, 255, 0.22), inset 0 2px 10px rgba(0, 0, 0, 0.28);
}

.form-control::placeholder {
    color: rgba(233, 222, 255, 0.72);
}

.help-block,
.text-info,
.text-muted {
    color: #d9ccff !important;
}

.help-block a {
    color: #ffffff;
    font-weight: 900;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.grow-button,
.btn-primary.grow-button {
    min-width: 180px;
    min-height: 48px;
    border: 1px solid rgba(199, 162, 255, 0.42);
    border-radius: 999px;
    color: #fff;
    background:
        radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.16), transparent 36%),
        linear-gradient(180deg, var(--nexus-button-top) 0%, var(--nexus-button-bottom) 100%);
    box-shadow:
        0 0 14px rgba(169, 112, 255, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 4px 0 rgba(13, 5, 34, 0.95);
    font-weight: 900;
    text-shadow: 1px 1.4px 0 #120022;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.alert,
.modal-content,
.text-success-wrapper,
.text-danger-wrapper {
    border: 1px solid var(--nexus-line);
    border-radius: 8px;
    color: var(--nexus-ink);
    background: #160c39;
}

.text-success-wrapper,
.text-danger-wrapper {
    margin: 4px 0 18px;
    padding: 14px 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 26px rgba(4, 0, 20, 0.26);
}

.text-success-wrapper {
    border-color: rgba(117, 229, 129, 0.44);
    color: #dbffe0;
    background: linear-gradient(180deg, rgba(31, 99, 48, 0.88), rgba(20, 65, 37, 0.88));
}

.text-danger-wrapper {
    border-color: rgba(255, 120, 161, 0.48);
    color: #ffe7ee;
    background: linear-gradient(180deg, rgba(116, 29, 67, 0.88), rgba(70, 14, 47, 0.88));
}

.text-success-wrapper ul,
.text-danger-wrapper ul {
    margin: 0;
    padding-left: 20px;
}

.text-success-wrapper li,
.text-danger-wrapper li {
    padding-left: 4px;
    font-size: 16px;
    line-height: 1.55;
}

.modal-content .table,
.modal-content .table th,
.modal-content .table td {
    color: var(--nexus-ink);
    border-color: rgba(200, 155, 255, 0.2);
}

#footer {
    padding: 28px 16px 34px;
    color: #d9ccff;
    background:
        linear-gradient(180deg, rgba(23, 9, 63, 0.98), rgba(8, 3, 26, 0.98));
    border-top: 1px solid rgba(192, 137, 255, 0.24);
}

#footer .copy-right {
    margin-top: 12px;
    color: #d9ccff;
    font-weight: 700;
}

#footer .copy-right a {
    color: #ffffff;
    font-weight: 900;
}

@media (max-width: 768px) {
    #wrap {
        padding: 0;
    }

    .page-wrapper {
        border-radius: 0;
    }

    .header {
        min-height: 136px;
        padding: 24px 18px 14px;
    }

    .header .row {
        gap: 12px;
    }

    .header .logo img {
        width: 112px !important;
    }

    .header .title {
        font-size: 24px;
        text-align: right;
    }

    .support-wrapper {
        padding: 14px;
    }

    #nav,
    #nav .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    #nav .nav > li > a {
        min-height: 38px;
        padding: 9px 13px;
        font-size: 15px;
    }

    .annoucemnet-banner img {
        min-height: 0;
        max-height: 220px;
    }

    .content {
        padding: 20px 12px 30px;
    }

    .common-box .container {
        padding: 24px 18px;
    }

    .section-title h2 {
        font-size: 32px;
    }

    .common-box p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    #nav .nav > li > a {
        display: none;
    }
}
