* {
    box-sizing: border-box;
}

body {
    margin: 0;

    font-family: Arial, Helvetica, sans-serif;

    background: #020711;

    color: #dff5ff;
}

.page-bg {
    position: fixed;

    inset: 0;

    z-index: -1;

    background:
        radial-gradient(circle at 18% 12%, rgba(0, 160, 255, 0.22), transparent 32%),
        radial-gradient(circle at 80% 18%, rgba(255, 120, 35, 0.15), transparent 28%),
        linear-gradient(180deg, #020711 0%, #061320 55%, #010308 100%);
}

.page-bg::after {
    content: "";

    position: absolute;

    inset: 0;

    opacity: 0.14;

    background-image:
        linear-gradient(rgba(120, 210, 255, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 210, 255, 0.18) 1px, transparent 1px);

    background-size: 48px 48px;
}

.update-running {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    padding: 12px;

    text-align: center;

    background: rgba(0, 150, 255, 0.92);

    color: white;

    font-weight: bold;

    z-index: 9999;
}

.top {
    min-height: 260px;

    padding: 60px;

    display: flex;
    align-items: center;

    border-bottom: 1px solid rgba(100, 210, 255, 0.25);

    background:
        linear-gradient(
            90deg,
            rgba(1, 5, 12, 0.95),
            rgba(4, 22, 38, 0.65)
        );
}

.eyebrow {
    color: #ff9b42;

    font-size: 13px;

    letter-spacing: 4px;

    margin-bottom: 14px;
}

.top h1 {
    margin: 0;

    font-size: 64px;

    letter-spacing: 6px;

    color: white;
}

.top p {
    color: #9fdfff;

    font-size: 20px;
}

.last-update {
    margin-top: 14px;

    color: #8ecae6;

    font-size: 14px;
}

.layout {
    display: flex;
}

.menu {
    width: 240px;

    min-height: calc(100vh - 260px);

    padding: 24px;

    background: rgba(2, 9, 20, 0.86);

    border-right: 1px solid rgba(120, 210, 255, 0.12);
}

.menu a {
    display: block;

    margin-bottom: 12px;

    padding: 14px 16px;

    color: #dff7ff;

    text-decoration: none;

    border: 1px solid rgba(120, 210, 255, 0.14);

    background: rgba(255,255,255,0.03);
}

.menu a:hover,
.menu a.active {
    background: rgba(0, 145, 230, 0.22);
}

.content {
    flex: 1;

    padding: 30px;
}

.panel {
    padding: 30px;

    border: 1px solid rgba(100, 210, 255, 0.18);

    background: rgba(4, 14, 28, 0.78);
}

.member-grid {
    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));

    gap: 18px;
}

.member-card {
    display: flex;

    gap: 16px;

    padding: 18px;

    border: 1px solid rgba(120, 220, 255, 0.16);

    background: rgba(255,255,255,0.03);
}

.avatar {
    width: 82px;
    height: 82px;

    flex-shrink: 0;

    overflow: hidden;

    border: 1px solid rgba(120, 220, 255, 0.24);

    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.member-info h3 {
    margin: 0 0 6px 0;

    color: white;
}

.handle {
    margin-bottom: 10px;

    color: #71d6ff;
}

.meta {
    display: flex;

    gap: 8px;

    flex-wrap: wrap;

    margin-bottom: 10px;
}

.meta span {
    padding: 5px 8px;

    font-size: 12px;

    background: rgba(0, 140, 220, 0.24);
}

.roles {
    color: #ffb875;

    font-size: 13px;

    margin-bottom: 10px;
}

.profile-link {
    color: #9fe6ff;

    text-decoration: none;
}

/*
|--------------------------------------------------------------------------
| MENU
|--------------------------------------------------------------------------
*/

.menu {
    width: 240px;

    min-height: calc(100vh - 260px);

    padding: 24px;

    background:
        linear-gradient(
            180deg,
            rgba(4, 12, 22, 0.96),
            rgba(2, 8, 16, 0.92)
        );

    border-right:
        1px solid rgba(120, 210, 255, 0.14);

    display: flex;

    flex-direction: column;

    gap: 10px;
}

.menu a {
    display: flex;

    align-items: center;

    min-height: 52px;

    padding: 14px 18px;

    color: #dff7ff;

    text-decoration: none;

    font-size: 15px;

    letter-spacing: 1px;

    border:
        1px solid rgba(120, 210, 255, 0.10);

    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,0.02),
            rgba(255,255,255,0.01)
        );

    transition: 0.2s;
}

.menu a:hover {
    border-color: rgba(120, 220, 255, 0.35);

    background:
        linear-gradient(
            90deg,
            rgba(0, 120, 200, 0.26),
            rgba(0, 120, 200, 0.08)
        );
}

.menu a.active {
    color: white;

    border-color: rgba(120, 220, 255, 0.45);

    background:
        linear-gradient(
            90deg,
            rgba(0, 150, 255, 0.34),
            rgba(0, 80, 160, 0.12)
        );

    box-shadow:
        inset 0 0 20px rgba(0, 140, 255, 0.14);
}

/*
|--------------------------------------------------------------------------
| MATERIAL TABLE
|--------------------------------------------------------------------------
*/

.material-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.material-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(4, 14, 28, 0.78);
    border: 1px solid rgba(100, 210, 255, 0.18);
}

.material-table th,
.material-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(120, 210, 255, 0.12);
    text-align: left;
    color: #dff5ff;
}

.material-table th {
    color: #ffffff;
    background: rgba(0, 120, 200, 0.18);
    font-size: 13px;
    letter-spacing: 1px;
}

.material-table tr:hover {
    background: rgba(0, 145, 230, 0.14);
}

.material-table .selected-row {
    background: rgba(255, 155, 66, 0.12);
}

/*
|--------------------------------------------------------------------------
| MATERIAL SEARCH
|--------------------------------------------------------------------------
*/

.material-search-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
    padding: 22px;
    border: 1px solid rgba(120, 210, 255, 0.14);
    background:
        linear-gradient(
            135deg,
            rgba(0, 20, 40, 0.92),
            rgba(0, 8, 20, 0.96)
        );
    box-shadow:
        inset 0 0 25px rgba(0, 120, 255, 0.08),
        0 0 30px rgba(0, 0, 0, 0.35);
}

.material-search-box input {
    width: 100%;
    height: 68px;
    padding: 0 24px;
    font-size: 22px;
    letter-spacing: 1px;
    color: #ecfaff;

    background:
        linear-gradient(
            180deg,
            rgba(0, 30, 60, 0.95),
            rgba(0, 12, 25, 0.98)
        );

    border:
        1px solid rgba(120, 210, 255, 0.18);

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.material-search-box input::placeholder {
    color: rgba(180, 225, 255, 0.45);
    letter-spacing: 2px;
}

.material-search-box input:focus {

    border-color:
        rgba(120, 220, 255, 0.75);

    background:
        linear-gradient(
            180deg,
            rgba(0, 45, 85, 0.96),
            rgba(0, 20, 40, 0.98)
        );

    box-shadow:
        0 0 25px rgba(0, 140, 255, 0.18),
        inset 0 0 18px rgba(0, 120, 255, 0.08);
}

#materialSearchInfo {
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #8fd9ff;
}

/*
|--------------------------------------------------------------------------
| MATERIAL DETAILS CLEAN DROPDOWN
|--------------------------------------------------------------------------
*/

.material-row {
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.material-row:hover {
    background: rgba(0, 130, 220, 0.10);
}

.material-row.active-material-row {
    background:
        linear-gradient(
            90deg,
            rgba(0, 140, 255, 0.18),
            rgba(0, 60, 120, 0.08)
        );
    box-shadow:
        inset 4px 0 0 rgba(120, 220, 255, 0.85);
}

.material-detail-row {
    display: none;
}

.material-detail-row.open {
    display: table-row;
}

.material-detail-row > td {
    padding: 0 !important;
    border-bottom: 1px solid rgba(120, 210, 255, 0.18);
}

.material-detail-content {
    margin: 0;
    padding: 0;
    background:
        linear-gradient(
            180deg,
            rgba(0, 20, 40, 0.98),
            rgba(0, 8, 18, 0.98)
        );
    animation: materialDropFade 0.24s ease;
}

@keyframes materialDropFade {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.material-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 26px;
    border-bottom: 1px solid rgba(120, 210, 255, 0.14);
    background:
        linear-gradient(
            90deg,
            rgba(0, 120, 220, 0.18),
            rgba(0, 20, 40, 0.08)
        );
}

.material-detail-kicker {
    margin-bottom: 6px;
    color: #ff9b42;
    font-size: 11px;
    letter-spacing: 3px;
}

.material-detail-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 24px;
    letter-spacing: 2px;
}

.material-detail-close {
    padding: 10px 16px;
    color: #dff7ff;
    background: rgba(0, 30, 55, 0.7);
    border: 1px solid rgba(120, 210, 255, 0.25);
    cursor: pointer;
}

.material-detail-close:hover {
    background: rgba(0, 130, 220, 0.24);
}

.material-detail-body {
    padding: 24px 26px 28px 26px;
}

.trade-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.trade-panel {
    padding: 18px;
    border: 1px solid rgba(120, 210, 255, 0.13);
    background: rgba(255, 255, 255, 0.025);
}

.trade-panel-title {
    margin-bottom: 14px;
    padding-bottom: 10px;
    color: #ffffff;
    font-size: 17px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(120, 210, 255, 0.12);
}

.trade-card {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 14px;
    margin-bottom: 9px;
    border: 1px solid rgba(120, 210, 255, 0.10);
    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,0.035),
            rgba(255,255,255,0.01)
        );
}

.trade-card.buy {
    border-left: 3px solid rgba(116, 212, 255, 0.8);
}

.trade-card.sell {
    border-left: 3px solid rgba(130, 255, 180, 0.8);
}

.trade-station {
    color: #ffffff;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.trade-place {
    margin-top: 4px;
    color: #7fb6d4;
    font-size: 12px;
}

.trade-card-left {
    flex: 1;
}

.trade-card-right {

    width: 220px;

    min-width: 220px;

    max-width: 220px;

    text-align: right;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: flex-end;

    flex-shrink: 0;
}

.trade-card-price {
    color: #ffffff;
    font-size: 21px;
    font-weight: bold;

    font-variant-numeric: tabular-nums;
}

.trade-card.buy .trade-card-price {
    color: #74d4ff;
}

.trade-card.sell .trade-card-price {
    color: #82ffb4;
}

.trade-card-sub {
    margin-top: 4px;
    color: #819bad;
    font-size: 11px;
}

.trade-empty,
.material-loading {
    padding: 18px;
    color: #8fdfff;
    border: 1px solid rgba(120, 210, 255, 0.10);
    background: rgba(0, 0, 0, 0.16);
}

@media (max-width: 1100px) {
    .trade-detail-grid {
        grid-template-columns: 1fr;
    }
}

.mining-calculator label {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.mining-calculator label span {
    color: #8fd9ff;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/*
|--------------------------------------------------------------------------
| TRADE LOCATION GRID
|--------------------------------------------------------------------------
*/

.trade-location-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 8px;
    color: #7fb6d4;
    font-size: 12px;
}

.trade-location-grid span {
    padding: 4px 8px;
    border: 1px solid rgba(120, 210, 255, 0.10);
    background: rgba(0, 20, 40, 0.35);
    white-space: nowrap;
}

.material-filter-row {
    display: grid;

    grid-template-columns:
		1.3fr
		210px
		1.3fr
		210px
		160px
		100px
		180px
		230px
		210px;

    gap: 12px;

    align-items: stretch;
}

.material-filter-row input,
.material-filter-row select {
    width: 100%;
    height: 54px;

    padding: 0 16px;

    color: #ecfaff;

    background:
        linear-gradient(
            180deg,
            rgba(0, 28, 52, 0.96),
            rgba(0, 14, 28, 0.98)
        );

    border:
        1px solid rgba(120, 210, 255, 0.16);

    outline: none;

    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.material-filter-row input:focus,
.material-filter-row select:focus {

    border-color:
        rgba(120, 220, 255, 0.55);

    box-shadow:
        0 0 18px rgba(0, 140, 255, 0.14);

    background:
        linear-gradient(
            180deg,
            rgba(0, 42, 74, 0.98),
            rgba(0, 18, 36, 1)
        );
}

.material-filter-row select {
    cursor: pointer;
}

@media (max-width: 1700px) {

    .material-filter-row {
        grid-template-columns:
            1fr
            220px
            1fr
            220px;
    }
}

@media (max-width: 1200px) {

    .material-filter-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {

    .material-filter-row {
        grid-template-columns: 1fr;
    }
}

.material-filter-row input,
.material-filter-row select {
    width: 100%;
    height: 52px;
    padding: 0 14px;
    color: #ecfaff;
    background: rgba(0, 20, 40, 0.9);
    border: 1px solid rgba(120, 210, 255, 0.18);
    outline: none;
    font-size: 14px;
}

.side-menu,
.menu,
nav {
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

.menu-top-link,
.menu-top-link:hover {
    font-size: 15px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.menu-top-link {
    position: relative;
    overflow: hidden;

    background: linear-gradient(
        135deg,
        rgba(0, 170, 220, 0.22),
        rgba(0, 90, 180, 0.38)
    );

    border: 1px solid rgba(120, 220, 255, 0.38);

    color: #ffffff;

    text-shadow:
        0 0 4px rgba(120, 220, 255, 0.22);

    box-shadow:
        0 0 12px rgba(0, 140, 255, 0.14),
        inset 0 0 10px rgba(255,255,255,0.03);

    margin-bottom: 18px;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.menu-top-link::before {
    content: "";

    position: absolute;

    top: -20%;
    left: -140%;

    width: 55%;
    height: 160%;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.28),
        rgba(180,240,255,0.22),
        transparent
    );

    transform: skewX(-22deg);

    animation: menuSoftShine 3.2s infinite;

    pointer-events: none;
}

.menu-top-link {
    box-shadow:
        0 0 14px rgba(0, 140, 255, 0.18),
        0 0 26px rgba(0, 110, 220, 0.14),
        inset 0 0 10px rgba(255,255,255,0.03);
}

.menu-top-link:hover {
    box-shadow:
        0 0 18px rgba(0, 180, 255, 0.24),
        0 0 38px rgba(0, 120, 255, 0.20),
        inset 0 0 14px rgba(255,255,255,0.05);
}

@keyframes menuSoftShine {

    0% {
        left: -140%;
    }

    35% {
        left: 160%;
    }

    100% {
        left: 160%;
    }
}

.discord-command-center {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 24px;
}

.discord-main-panel,
.discord-radar-panel,
.discord-user-card {
    border: 1px solid rgba(120, 220, 255, 0.14);

    background:
        linear-gradient(
            180deg,
            rgba(4, 18, 34, 0.92),
            rgba(1, 8, 18, 0.96)
        );

    box-shadow:
        0 0 24px rgba(0, 120, 255, 0.10),
        inset 0 0 22px rgba(255,255,255,0.02);
}

.discord-main-panel {
    padding: 30px;
}

.discord-status-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.discord-kicker {
    color: #ff9f3c;

    font-size: 11px;

    letter-spacing: 3px;

    margin-bottom: 8px;
}

.discord-main-panel h2 {
    margin: 0;

    color: #ffffff;

    font-size: 42px;

    letter-spacing: 2px;
}

.discord-live-pill {
    color: #82ffb4;

    border: 1px solid rgba(130, 255, 180, 0.35);

    background: rgba(0, 80, 40, 0.18);

    padding: 10px 16px;

    font-size: 12px;

    letter-spacing: 2px;

    box-shadow:
        0 0 18px rgba(130, 255, 180, 0.12);
}

.discord-stats {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 14px;

    margin-top: 28px;
}

.discord-stat-card {
    padding: 20px;

    border: 1px solid rgba(120, 220, 255, 0.10);

    background: rgba(255,255,255,0.03);
}

.discord-stat-value {
    color: #67d8ff;

    font-size: 34px;

    font-weight: 900;
}

.discord-stat-label {
    color: #9fbfd0;

    font-size: 12px;

    letter-spacing: 1px;

    margin-top: 6px;
}

.discord-description {
    max-width: 850px;

    margin-top: 26px;

    color: #b9d8e8;

    line-height: 1.7;
}

.discord-join-mega {
    display: inline-block;

    position: relative;

    overflow: hidden;

    margin-top: 26px;

    padding: 18px 36px;

    color: #ffffff;

    text-decoration: none;

    font-size: 18px;

    font-weight: 800;

    letter-spacing: 0.8px;

    background:
        linear-gradient(
            135deg,
            rgba(0, 170, 220, 0.30),
            rgba(0, 90, 180, 0.52)
        );

    border: 1px solid rgba(120, 220, 255, 0.55);

    box-shadow:
        0 0 14px rgba(0, 140, 255, 0.18),
        0 0 26px rgba(0, 110, 220, 0.14),
        inset 0 0 10px rgba(255,255,255,0.03);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.discord-join-mega::before {
    content: "";

    position: absolute;

    top: -20%;
    left: -140%;

    width: 55%;
    height: 160%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,0.28),
            rgba(180,240,255,0.22),
            transparent
        );

    transform: skewX(-22deg);

    animation: discordJoinShine 3.2s infinite;

    pointer-events: none;
}

.discord-join-mega:hover {
    transform: translateY(-1px);

    box-shadow:
        0 0 18px rgba(0, 180, 255, 0.24),
        0 0 38px rgba(0, 120, 255, 0.20),
        inset 0 0 14px rgba(255,255,255,0.05);
}

@keyframes discordJoinShine {

    0% {
        left: -140%;
    }

    35% {
        left: 160%;
    }

    100% {
        left: 160%;
    }
}

.discord-radar-panel {
    position: relative;

    padding: 28px;

    overflow: hidden;
}

.discord-radar-title {
    color: #ffffff;

    font-size: 16px;

    letter-spacing: 2px;

    margin-bottom: 22px;
}

.discord-radar {
    position: relative;

    width: 260px;
    height: 260px;

    margin: 0 auto;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(80, 220, 255, 0.16),
            transparent 62%
        );
}

.discord-radar-ring {
    position: absolute;

    border: 1px solid rgba(120, 220, 255, 0.18);

    border-radius: 50%;
}

.ring-one {
    inset: 34%;
}

.ring-two {
    inset: 20%;
}

.ring-three {
    inset: 6%;
}

.discord-radar-core {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 18px;
    height: 18px;

    margin-left: -9px;
    margin-top: -9px;

    border-radius: 50%;

    background: #67d8ff;

    box-shadow:
        0 0 22px rgba(103,216,255,0.55);
}

.discord-radar-sweep {
    position: absolute;

    inset: 0;

    border-radius: 50%;

    background:
        conic-gradient(
            from 0deg,
            rgba(103,216,255,0.34),
            transparent 36deg,
            transparent 360deg
        );

    animation: discordRadarSweep 4s linear infinite;
}

@keyframes discordRadarSweep {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.discord-radar-text {
    margin-top: 18px;

    text-align: center;

    color: #82ffb4;

    letter-spacing: 1px;
}

.discord-section-title {
    margin-top: 28px;
    margin-bottom: 14px;

    color: #ffffff;

    font-size: 20px;

    letter-spacing: 2px;
}

.discord-user-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 14px;
}

.discord-user-card {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 14px;
}

.discord-user-avatar {
    width: 38px;
    height: 38px;

    object-fit: cover;

    border-radius: 50%;

    border: 1px solid rgba(120, 220, 255, 0.28);
}

.discord-user-avatar-fallback {
    display: grid;

    place-items: center;

    color: #ffffff;

    background: rgba(0, 120, 200, 0.28);
}

.discord-user-name {
    color: #ffffff;

    font-weight: 800;
}

.discord-user-meta {
    color: #8fd9ff;

    font-size: 12px;

    margin-top: 3px;
}

.discord-empty {
    padding: 22px;

    color: #8faec0;

    border: 1px solid rgba(120, 220, 255, 0.08);

    background: rgba(255,255,255,0.03);
}

.discord-radar-user {
    position: absolute;

    width: 34px;
    height: 34px;

    margin-left: -17px;
    margin-top: -17px;

    border-radius: 50%;

    overflow: hidden;

    opacity: 0.25;

    border: 1px solid rgba(120, 220, 255, 0.45);

    background: rgba(0, 20, 40, 0.95);

    box-shadow:
        0 0 0 rgba(103,216,255,0),
        0 0 10px rgba(0, 120, 255, 0.12);

    animation: discordRadarUserPing 4s linear infinite;

    z-index: 4;
}

.discord-radar-user img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.discord-radar-user span {
    width: 100%;
    height: 100%;

    display: grid;
    place-items: center;

    color: #ffffff;

    font-size: 14px;

    font-weight: 800;

    background: rgba(0, 120, 200, 0.28);
}

.discord-radar-sweep {
    z-index: 3;
}

.discord-radar-core {
    z-index: 5;
}

@keyframes discordRadarUserPing {

    0% {
        opacity: 0.22;
        transform: scale(0.82);
        box-shadow:
            0 0 0 rgba(103,216,255,0),
            0 0 8px rgba(0, 120, 255, 0.10);
    }

    4% {
        opacity: 1;
        transform: scale(1.18);
        box-shadow:
            0 0 18px rgba(103,216,255,0.65),
            0 0 34px rgba(0, 160, 255, 0.38);
    }

    12% {
        opacity: 0.55;
        transform: scale(1);
        box-shadow:
            0 0 10px rgba(103,216,255,0.26),
            0 0 18px rgba(0, 120, 255, 0.18);
    }

    100% {
        opacity: 0.25;
        transform: scale(0.88);
        box-shadow:
            0 0 0 rgba(103,216,255,0),
            0 0 8px rgba(0, 120, 255, 0.10);
    }
}

.equipment-info-panel {
    margin-top: 18px;
    padding: 18px;

    border: 1px solid rgba(120, 220, 255, 0.14);

    background:
        linear-gradient(
            180deg,
            rgba(4, 18, 34, 0.88),
            rgba(1, 8, 18, 0.96)
        );

    box-shadow:
        0 0 22px rgba(0, 120, 255, 0.08),
        inset 0 0 18px rgba(255,255,255,0.02);
}

.equipment-info-title {
    margin-bottom: 14px;

    color: #ffffff;

    font-size: 17px;

    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;

    padding-bottom: 10px;

    border-bottom: 1px solid rgba(120, 220, 255, 0.10);
}

.equipment-info-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 12px;
}

.equipment-info-box {
    padding: 14px;

    border: 1px solid rgba(120, 220, 255, 0.10);

    background: rgba(255,255,255,0.025);
}

.equipment-info-label {
    margin-bottom: 6px;

    color: #8fd9ff;

    font-size: 11px;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.equipment-info-value {
    color: #ffffff;

    font-size: 15px;

    font-weight: 700;

    word-break: break-word;
}

.equipment-info-value a {
    color: #82ffb4;

    text-decoration: none;
}

.equipment-info-value a:hover {
    text-decoration: underline;
}

.equipment-color-dot {
    display: inline-block;

    width: 14px;
    height: 14px;

    margin-right: 8px;

    border-radius: 50%;

    vertical-align: -2px;

    border: 1px solid rgba(255,255,255,0.35);

    box-shadow:
        0 0 10px rgba(120, 220, 255, 0.24);
}

@media (max-width: 1200px) {
    .equipment-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .equipment-info-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   SHIPS
========================================================================== */

.ship-dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.ship-stat {
    padding: 20px;
    border: 1px solid rgba(120, 210, 255, 0.12);
    background:
        linear-gradient(
            135deg,
            rgba(0, 20, 40, 0.92),
            rgba(0, 8, 20, 0.96)
        );
}

.ship-stat-title {
    color: #7ecbff;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.ship-stat-value {
    color: #ffffff;
    font-size: 42px;
    font-weight: 800;
}

.ship-search-box {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid rgba(120, 210, 255, 0.12);
    background:
        linear-gradient(
            135deg,
            rgba(0, 20, 40, 0.92),
            rgba(0, 8, 20, 0.96)
        );
}

.ship-search-box input,
.ship-search-box select {
    height: 52px;
    padding: 0 14px;
    color: #ecfaff;
    background: rgba(0, 20, 40, 0.9);
    border: 1px solid rgba(120, 210, 255, 0.18);
    outline: none;
    font-size: 14px;
}

#shipSearchInfo {
    grid-column: 1 / -1;
    color: #8fd9ff;
    font-size: 13px;
    letter-spacing: 1px;
}

.ship-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.ship-info-box {
    padding: 16px;
    border: 1px solid rgba(120, 220, 255, 0.08);
    background: rgba(255,255,255,0.025);
}

.ship-info-label {
    margin-bottom: 8px;
    color: #7ecbff;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ship-info-value {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    word-break: break-word;
}

.ship-loaner-panel {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid rgba(120, 220, 255, 0.08);
    background: rgba(255,255,255,0.02);
}

.ship-loaner-title {
    margin-bottom: 14px;
    color: #7ecbff;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ship-loaner-item {
    padding: 12px 14px;
    margin-bottom: 10px;
    border-left: 3px solid #68d8ff;
    background: rgba(255,255,255,0.03);
    color: #ffffff;
    font-weight: 700;
}

@media (max-width: 1400px) {

    .ship-dashboard,
    .ship-search-box,
    .ship-info-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   DASHBOARD
========================================================================== */

.dashboard-hero {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr;
    gap: 22px;
    margin-bottom: 24px;
}

.dashboard-hero-main,
.dashboard-hero-core,
.dashboard-card,
.dashboard-command-panel {
    border: 1px solid rgba(120, 220, 255, 0.14);

    background:
        linear-gradient(
            135deg,
            rgba(0, 20, 40, 0.92),
            rgba(0, 8, 20, 0.96)
        );

    box-shadow:
        0 0 30px rgba(0, 120, 255, 0.10),
        inset 0 0 24px rgba(255,255,255,0.02);
}

.dashboard-hero-main {
    padding: 34px;
}

.dashboard-kicker,
.dashboard-card-kicker {
    color: #ff9b42;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.dashboard-hero-main h2 {
    margin: 0 0 18px 0;
    color: #ffffff;
    font-size: 42px;
    letter-spacing: 2px;
}

.dashboard-hero-main p,
.dashboard-card p,
.dashboard-command-panel p {
    color: #b9d8e8;
    line-height: 1.7;
}

.dashboard-hero-core {
    position: relative;
    min-height: 280px;
    overflow: hidden;
    display: grid;
    place-items: center;
}

.dashboard-core-ring {
    position: absolute;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    border: 1px solid rgba(120, 220, 255, 0.28);
    animation: dashboardPulse 4s infinite linear;
}

.dashboard-core-ring.two {
    width: 260px;
    height: 260px;
    opacity: 0.45;
    animation-duration: 7s;
}

.dashboard-core-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #67d8ff;
    box-shadow:
        0 0 24px rgba(103,216,255,0.75),
        0 0 60px rgba(0,140,255,0.28);
}

.dashboard-core-text {
    position: absolute;
    bottom: 34px;
    color: #ffffff;
    font-size: 13px;
    letter-spacing: 4px;
    font-weight: 800;
}

@keyframes dashboardPulse {
    from {
        transform: rotate(0deg) scale(0.95);
    }

    to {
        transform: rotate(360deg) scale(1.05);
    }
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.dashboard-card {
    padding: 22px;
    min-height: 220px;
}

.dashboard-card.large {
    grid-column: span 2;
}

.dashboard-card.wide {
    grid-column: span 2;
}

.dashboard-card h3,
.dashboard-command-panel h3 {
    margin: 0 0 14px 0;
    color: #ffffff;
    font-size: 24px;
    letter-spacing: 1px;
}

.dashboard-command-panel {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 22px;
    margin-top: 24px;
    padding: 26px;
}

.dashboard-signal-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dashboard-signal {
    padding: 13px 14px;
    color: #8faec0;
    border: 1px solid rgba(120, 220, 255, 0.10);
    background: rgba(255,255,255,0.025);
    letter-spacing: 1px;
}

.dashboard-signal.active {
    color: #82ffb4;
    border-color: rgba(130, 255, 180, 0.25);
    background: rgba(0, 80, 40, 0.16);
}

@media (max-width: 1500px) {
    .dashboard-hero,
    .dashboard-command-panel {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-card.large,
    .dashboard-card.wide {
        grid-column: span 1;
    }
}

@media (max-width: 800px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/*
|--------------------------------------------------------------------------
| DASHBOARD EXTENSIONS
|--------------------------------------------------------------------------
*/

.dashboard-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.dashboard-quick-link {
    display: block;
    padding: 16px;
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    border: 1px solid rgba(120, 220, 255, 0.22);
    background: rgba(0, 120, 220, 0.14);
    letter-spacing: 1px;
    transition: 0.2s;
}

.dashboard-quick-link:hover {
    background: rgba(0, 150, 255, 0.28);
    border-color: rgba(120, 220, 255, 0.5);
}

.dashboard-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: 0.22s;
}

.dashboard-card-link:hover {
    transform: translateY(-2px);
    border-color: rgba(120, 220, 255, 0.42);
    box-shadow:
        0 0 28px rgba(0, 150, 255, 0.16),
        inset 0 0 24px rgba(255,255,255,0.03);
}

.dashboard-card-action {
    margin-top: 18px;
    color: #82ffb4;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
}



/*
|--------------------------------------------------------------------------
| MINISPIEL
|--------------------------------------------------------------------------
*/

.minigame-panel {
    overflow: hidden;
}

.minigame-hud {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 18px 0;
    padding: 12px;
    color: #ffffff;
    font-size: 18px;
    letter-spacing: 2px;
    border: 1px solid rgba(200,200,200,0.28);
    background: rgba(0,0,0,0.55);
}

#gameCanvas {
    width: 100%;
    max-width: 1100px;
    height: auto;
    display: block;
    margin: 0 auto;
    border: 1px solid rgba(210,210,210,0.55);
    background: #000000;
    box-shadow:
        0 0 28px rgba(0,0,0,0.65),
        inset 0 0 24px rgba(255,255,255,0.03);
}

.minigame-controls {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
    color: #cfcfcf;
}

.minigame-score-submit {
    margin-top: 22px;
    padding: 22px;
    border: 1px solid rgba(210,210,210,0.45);
    background: rgba(0,0,0,0.75);
}

.minigame-score-submit input {
    width: 180px;
    height: 54px;
    margin-right: 12px;
    text-align: center;
    text-transform: uppercase;
    font-size: 24px;
    letter-spacing: 4px;
}

/*
|--------------------------------------------------------------------------
| LOADOUT BUILDER EXTREME
|--------------------------------------------------------------------------
*/

.loadout-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.loadout-topbar {
    display: grid;
    grid-template-columns: 320px 1fr 1fr 1fr;
    gap: 12px;
}

.loadout-ship-select select {
    width: 100%;
    height: 62px;
    font-size: 18px;
}

.loadout-power-box {
    padding: 12px;
    border: 1px solid rgba(220,220,220,0.35);
    background: rgba(0,0,0,0.68);
}

.loadout-power-box span {
    color: #bdbdbd;
    font-size: 11px;
    letter-spacing: 2px;
}

.loadout-power-box strong {
    display: block;
    margin: 6px 0;
    font-size: 19px;
    color: white;
}

.loadout-bar {
    height: 8px;
    background: rgba(255,255,255,0.08);
}

.loadout-bar i {
    display: block;
    height: 100%;
    background: #28c840;
}

.loadout-layout {
    display: grid;
    grid-template-columns: 430px 1fr 360px;
    gap: 18px;
    min-height: 760px;
}

.loadout-left,
.loadout-right,
.loadout-center {
    min-width: 0;
}

.loadout-group {
    margin-bottom: 18px;
    padding: 12px;
    border: 1px solid rgba(220,220,220,0.22);
    background: rgba(0,0,0,0.68);
}

.loadout-group-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #28c840;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.loadout-group-title button {
    height: 28px;
    font-size: 11px;
}

.loadout-slot {
    margin-bottom: 10px;
    padding: 12px;
    background: rgba(255,255,255,0.075);
    border-left: 8px solid rgba(220,220,220,0.24);
}

.loadout-slot-header {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.loadout-slot-header strong {
    color: white;
    font-size: 15px;
}

.loadout-slot-header small {
    color: #ff9b42;
}

.loadout-size {
    display: inline-block;
    padding: 3px 6px;
    margin-right: 8px;
    color: #28c840;
    border: 1px solid rgba(40,200,64,0.45);
}

.loadout-component-select {
    width: 100%;
    height: 42px;
}

.loadout-slot-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.loadout-slot-stats span {
    padding: 4px 7px;
    font-size: 11px;
    color: #d8d8d8;
    background: rgba(0,0,0,0.32);
}

.loadout-center {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(220,220,220,0.18);
    background:
        radial-gradient(circle at 50% 45%, rgba(255,255,255,0.08), transparent 28%),
        linear-gradient(180deg, rgba(22,22,22,0.82), rgba(0,0,0,0.96));
}

.loadout-ship-stage {
    position: relative;
    height: 100%;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.loadout-ship-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.25;
}

.loadout-ship-glow {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,155,66,0.16), transparent 65%);
    animation: loadoutGlow 5s infinite alternate;
}

@keyframes loadoutGlow {
    from { transform: scale(0.9); opacity: 0.5; }
    to { transform: scale(1.15); opacity: 0.9; }
}

.loadout-ship-name {
    position: absolute;
    top: 28px;
    left: 28px;
    color: white;
    font-size: 48px;
    letter-spacing: 3px;
    z-index: 2;
}

.loadout-ship-silhouette {
    position: relative;
    width: 420px;
    height: 180px;
    z-index: 2;
    transform: perspective(800px) rotateX(8deg);
}

.loadout-ship-body {
    position: absolute;
    left: 90px;
    top: 64px;
    width: 260px;
    height: 54px;
    background: linear-gradient(90deg, #2f2f2f, #9d9d9d, #2a2a2a);
    clip-path: polygon(0 50%, 25% 0, 82% 14%, 100% 50%, 82% 86%, 25% 100%);
    box-shadow: 0 0 55px rgba(255,255,255,0.12);
}

.loadout-ship-wing {
    position: absolute;
    left: 130px;
    width: 180px;
    height: 70px;
    background: linear-gradient(90deg, #1a1a1a, #777);
}

.loadout-ship-wing.left {
    top: 16px;
    clip-path: polygon(0 100%, 100% 30%, 70% 100%);
}

.loadout-ship-wing.right {
    bottom: 16px;
    clip-path: polygon(0 0, 100% 70%, 70% 0);
}

.loadout-ship-engine {
    position: absolute;
    left: 55px;
    top: 76px;
    width: 52px;
    height: 28px;
    background: #ff9b42;
    box-shadow: 0 0 35px rgba(255,155,66,0.55);
}

.loadout-stage-footer {
    position: absolute;
    bottom: 24px;
    left: 28px;
    color: #d8d8d8;
    letter-spacing: 2px;
    z-index: 2;
}

.loadout-ship-card {
    padding: 18px;
    border: 1px solid rgba(220,220,220,0.22);
    background: rgba(0,0,0,0.78);
}

.loadout-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 18px;
}

.loadout-tabs span {
    padding: 8px;
    text-align: center;
    background: rgba(255,255,255,0.08);
    font-size: 11px;
}

.loadout-tabs .active {
    background: #28c840;
    color: black;
    font-weight: bold;
}

.loadout-ship-card h2 {
    margin: 0;
    font-size: 44px;
    color: white;
}

.loadout-rsi {
    margin-bottom: 18px;
    color: #ff9b42;
    text-align: right;
    font-weight: 900;
}

.loadout-stat-big {
    padding: 14px 0;
    border-bottom: 1px solid rgba(220,220,220,0.14);
}

.loadout-stat-big span {
    display: block;
    color: white;
    font-size: 38px;
}

.loadout-stat-big small {
    color: #ff9b42;
    letter-spacing: 2px;
}

.loadout-info-list {
    margin-top: 18px;
}

.loadout-info-list div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(220,220,220,0.08);
}

.loadout-info-list span {
    color: #ff9b42;
    text-transform: uppercase;
    font-size: 12px;
}

.loadout-info-list strong {
    color: white;
}

@media (max-width: 1700px) {
    .loadout-layout {
        grid-template-columns: 390px 1fr;
    }

    .loadout-right {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1100px) {
    .loadout-topbar,
    .loadout-layout {
        grid-template-columns: 1fr;
    }
}