/* =========================================================
   PEARLBOT PORTAL
   portal.css
   KOMPLETTE BEREINIGTE VERSION
   ========================================================= */


/* =========================================================
   GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;

    font-family:
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

    background: #070a10 !important;
    color: #ffffff !important;

    overflow-x: hidden;
}


body {
    min-height: 100vh;
}


/* =========================================================
   PORTAL
   ========================================================= */

.portal-wrapper {
    width: 100%;
    min-height: 100vh;

    padding: 0;

    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(88, 101, 242, 0.10),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 20%,
            rgba(0, 191, 255, 0.06),
            transparent 30%
        ),
        #070a10;
}


.portal-box {
    width: 100%;
    max-width: none;

    min-height: 100vh;

    padding:
        0 45px 70px 45px;
}


/* =========================================================
   PORTAL HEADER
   ========================================================= */

.portal-header {
    position: relative;

    width: 100%;
    min-height: 92px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    border-bottom:
        1px solid rgba(255,255,255,0.07);

    margin-bottom: 45px;

    overflow: hidden;
}


/* =========================================================
   BRAND
   ========================================================= */

.portal-brand {
    display: flex;

    align-items: center;

    gap: 14px;
}


.portal-brand-icon {
    width: 46px;
    height: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            rgba(88,101,242,0.20),
            rgba(0,191,255,0.08)
        );

    border:
        1px solid rgba(88,101,242,0.30);

    font-size: 25px;

    box-shadow:
        0 0 25px rgba(88,101,242,0.12);
}


.portal-brand-logo-wrapper {
    width: 46px;
    height: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            rgba(88,101,242,0.20),
            rgba(0,191,255,0.08)
        );

    border:
        1px solid rgba(88,101,242,0.30);

    overflow: hidden;

    box-shadow:
        0 0 25px rgba(88,101,242,0.12);
}


.portal-brand-img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}


.portal-brand-text strong {
    display: block;

    color: #ffffff;

    font-size: 18px;
    font-weight: 800;

    letter-spacing: -0.2px;
}


.portal-brand-text span {
    display: block;

    margin-top: 3px;

    color: #737b8c;

    font-size: 12px;
}


/* =========================================================
   USER / LOGOUT
   ========================================================= */

.portal-user-area {
    display: flex;

    align-items: center;

    gap: 18px;
}


.portal-user {
    display: flex;

    align-items: center;

    gap: 10px;

    padding-right: 18px;

    border-right:
        1px solid rgba(255,255,255,0.08);
}


.portal-user-avatar {
    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: #5865F2;

    color: #fff;

    font-size: 14px;
    font-weight: 800;
}


.portal-user-info strong {
    display: block;

    color: #ffffff;

    font-size: 13px;
}


.portal-user-info span {
    display: block;

    margin-top: 2px;

    color: #697386;

    font-size: 11px;
}


.logout-btn-premium {
    height: 40px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 0 18px;

    border-radius: 8px;

    background:
        rgba(218,55,60,0.12);

    border:
        1px solid rgba(218,55,60,0.35);

    color: #ff6b70;

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.logout-btn-premium:hover {
    background:
        rgba(218,55,60,0.22);

    border-color:
        rgba(218,55,60,0.65);

    transform:
        translateY(-1px);
}


/* =========================================================
   PAGE INTRO
   ========================================================= */

.server-page-header {
    width: 100%;

    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 28px;
}


.server-page-title {
    min-width: 0;
}


.server-page-title h1 {
    margin: 0;

    color: #ffffff;

    font-size: 32px;
    font-weight: 800;

    letter-spacing: -0.8px;
}


.server-page-title p {
    margin: 8px 0 0 0;

    color: #737b8c;

    font-size: 14px;

    line-height: 1.5;
}


/* =========================================================
   SERVER COUNTER
   ========================================================= */

.server-counter {
    flex-shrink: 0;

    padding: 9px 14px;

    border-radius: 8px;

    background:
        rgba(0,191,255,0.05);

    border:
        1px solid rgba(0,191,255,0.15);

    color: #00bfff;

    font-size: 12px;
    font-weight: 700;

    white-space: nowrap;
}


/* =========================================================
   SERVER GRID
   ========================================================= */

.server-grid,
#dynamicServerGrid {

    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 18px;

    margin: 0 0 35px 0;

    padding: 0;

    align-items: start;
}


/* =========================================================
   SERVER CARD
   ========================================================= */

.server-item-card {

    position: relative;

    width: 100%;

    min-width: 0;

    min-height: 104px;

    padding: 20px;

    display: flex;

    flex-direction: row;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin: 0;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            rgba(17,22,32,0.96),
            rgba(11,15,23,0.96)
        );

    border:
        1px solid rgba(255,255,255,0.07);

    border-radius: 12px;

    box-shadow:
        0 8px 30px rgba(0,0,0,0.18);

    color: #ffffff;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.server-item-card:hover {

    transform:
        translateY(-2px);

    border-color:
        rgba(0,191,255,0.35);

    box-shadow:
        0 12px 35px rgba(0,0,0,0.30),
        0 0 25px rgba(0,191,255,0.04);
}


/* =========================================================
   SERVER INFO
   ========================================================= */

.server-info {

    min-width: 0;

    flex: 1 1 auto;

    display: flex;

    align-items: center;

    gap: 15px;

    margin: 0;

    padding: 0;
}


/* =========================================================
   SERVER ICON
   ========================================================= */

.server-icon {

    width: 58px;
    height: 58px;

    min-width: 58px;
    min-height: 58px;

    flex: 0 0 58px;

    object-fit: cover;

    border-radius: 50%;

    border:
        1px solid rgba(255,255,255,0.10);

    background:
        #10151f;
}


.default-avatar {

    width: 58px;
    height: 58px;

    min-width: 58px;
    min-height: 58px;

    flex: 0 0 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #5865F2,
            #3d46b8
        );

    border:
        1px solid rgba(255,255,255,0.10);

    color: #ffffff;

    font-size: 20px;
    font-weight: 800;
}


/* =========================================================
   SERVER DETAILS
   ========================================================= */

.server-details {

    min-width: 0;

    flex: 1 1 auto;

    overflow: hidden;
}


.server-name {

    display: block;

    max-width: 100%;

    margin: 0;

    color: #ffffff;

    font-size: 15px;
    font-weight: 750;

    line-height: 1.3;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.server-meta {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 5px;

    color: #687386;

    font-size: 11px;

    line-height: 1.3;
}


/* =========================================================
   SERVER STATUS
   ========================================================= */

.server-status {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    color: #57F287;

    font-weight: 700;
}


.server-status-dot {

    width: 6px;
    height: 6px;

    min-width: 6px;
    min-height: 6px;

    border-radius: 50%;

    background:
        #57F287;

    box-shadow:
        0 0 8px rgba(87,242,135,0.5);
}


/* =========================================================
   MANAGE BUTTON
   ========================================================= */

.server-manage-btn {

    position: static;

    z-index: 5;

    flex: 0 0 auto;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    min-width: 125px;

    height: 42px;

    padding: 0 17px;

    border-radius: 8px;

    background:
        rgba(0,191,255,0.05);

    border:
        1px solid rgba(0,191,255,0.55);

    color: #00bfff;

    text-decoration: none;

    font-size: 12px;
    font-weight: 750;

    white-space: nowrap;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}


.server-manage-btn:hover {

    background:
        rgba(0,191,255,0.12);

    border-color:
        rgba(0,191,255,0.80);

    color: #ffffff;

    transform:
        translateY(-1px);

    box-shadow:
        0 0 18px rgba(0,191,255,0.10);
}


/* =========================================================
   ACTIVE SERVER
   ========================================================= */

.server-item-card.active-server {

    border-color:
        rgba(0,191,255,0.60);

    box-shadow:
        0 0 0 1px rgba(0,191,255,0.10),
        0 0 25px rgba(0,191,255,0.08),
        0 8px 30px rgba(0,0,0,0.18);
}


.server-item-card.active-server::before {

    content: "";

    position: absolute;

    left: 0;

    top: 14px;
    bottom: 14px;

    width: 3px;

    background:
        #00bfff;

    border-radius:
        0 3px 3px 0;

    box-shadow:
        0 0 12px rgba(0,191,255,0.5);

    pointer-events: none;
}


/* =========================================================
   ACTIVE BADGE
   ========================================================= */

.server-active-badge {

    position: absolute;

    top: 10px;
    right: 10px;

    z-index: 10;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: auto;

    height: auto;

    margin: 0;

    padding: 4px 9px;

    border-radius: 999px;

    background:
        rgba(0,191,255,0.14);

    border:
        1px solid rgba(0,191,255,0.45);

    color: #55cfff;

    font-size: 9px;

    line-height: 1;

    font-weight: 800;

    letter-spacing: .45px;

    text-transform: uppercase;

    white-space: nowrap;

    pointer-events: none;
}


.server-active-badge::before {

    content: "✓";

    margin-right: 5px;

    font-size: 9px;
}


/* =========================================================
   SERVER MESSAGE
   ========================================================= */

.server-message {

    grid-column: 1 / -1;

    width: 100%;

    min-height: 150px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 7px;

    color: #8c96a7;

    text-align: center;
}


.server-message strong {

    color: #f0f4f7;

    font-size: 15px;
}


.server-message span {

    color: #7f8999;

    font-size: 13px;
}


/* =========================================================
   CRYSTAL SHIMMER
   ========================================================= */

.portal-header::after {

    content: "";

    position: absolute;

    top: 0;
    left: -150%;

    width: 45%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(255,255,255,0.01) 30%,
            rgba(255,255,255,0.07) 50%,
            rgba(255,255,255,0.01) 70%,
            transparent 100%
        );

    transform:
        skewX(-25deg);

    pointer-events: none;

    animation:
        crystalShine 8s ease-in-out infinite;
}


.server-item-card::after {

    content: "";

    position: absolute;

    top: 0;
    left: -150%;

    width: 45%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(255,255,255,0.01) 30%,
            rgba(255,255,255,0.055) 50%,
            rgba(255,255,255,0.01) 70%,
            transparent 100%
        );

    transform:
        skewX(-25deg);

    pointer-events: none;

    animation:
        crystalShine 9s ease-in-out infinite;
}


@keyframes crystalShine {

    0% {
        left: -150%;
    }

    18% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}


/* =========================================================
   LOGGED OUT / LOGIN
   ========================================================= */

#loggedOutView {

    display: flex;

    width: 100%;
    max-width: 1100px;

    min-height: 620px;

    margin: 0 auto;

    background:
        linear-gradient(
            145deg,
            rgba(15,22,36,0.96),
            rgba(7,10,17,0.96)
        );

    border:
        1px solid rgba(255,255,255,0.09);

    border-radius: 20px;

    overflow: hidden;

    box-shadow:
        0 30px 70px rgba(0,0,0,0.50),
        inset 0 1px 1px rgba(255,255,255,0.12);

    backdrop-filter:
        blur(25px);

    -webkit-backdrop-filter:
        blur(25px);
}


#loggedOutView[style*="display:none"],
#loggedOutView[style*="display: none"] {
    display: none !important;
}


/* =========================================================
   LOGIN LEFT
   ========================================================= */

.login-left-panel {

    flex: 1;

    min-width: 0;

    padding: 45px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(88,101,242,0.06),
            transparent 60%
        );

    border-right:
        1px solid rgba(255,255,255,0.05);
}


.login-logo-header {

    display: flex;

    align-items: center;

    max-width: 400px;

    height: 200px;

    margin-bottom: 10px;
}


.login-logo-banner {

    width: 100%;
    height: 100%;

    object-fit: contain;

    mix-blend-mode: screen;

    filter:
        drop-shadow(
            0 0 8px rgba(0,191,255,0.3)
        );
}


.login-marketing-text {

    margin: 40px 0;
}


.marketing-badge {

    display: block;

    margin-bottom: 12px;

    color: #00bfff;

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1px;
}


.login-marketing-text h1 {

    margin:
        0 0 15px 0;

    color: #ffffff;

    font-size: 34px;

    font-weight: 800;

    line-height: 1.25;

    letter-spacing: -.5px;
}


.login-marketing-text p {

    max-width: 400px;

    margin: 0;

    color: #70798a;

    font-size: 13.5px;

    line-height: 1.6;
}


/* =========================================================
   LOGIN FEATURES
   ========================================================= */

.login-feature-cards {

    width: 100%;

    display: flex;

    gap: 15px;
}


.login-feat-card {

    flex: 1;

    min-width: 0;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 15px;

    background:
        rgba(255,255,255,0.015);

    border:
        1px solid rgba(255,255,255,0.04);

    border-radius: 10px;
}


.feat-icon {

    flex-shrink: 0;

    font-size: 18px;
}


.login-feat-card strong {

    display: block;

    color: #ffffff;

    font-size: 12.5px;
}


.login-feat-card small {

    display: block;

    margin-top: 3px;

    color: #70798a;

    font-size: 10.5px;

    line-height: 1.3;
}


/* =========================================================
   LOGIN RIGHT
   ========================================================= */

.login-right-panel {

    flex: 1;

    min-width: 0;

    padding: 45px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    align-items: flex-end;

    background:
        rgba(0,0,0,0.15);
}


.login-lang-selector {

    display: flex;

    gap: 3px;

    padding: 4px;

    background:
        rgba(255,255,255,0.03);

    border:
        1px solid rgba(255,255,255,0.06);

    border-radius: 8px;
}


.lang-tab {

    padding: 5px 12px;

    border-radius: 6px;

    color: #70798a;

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;

    transition:
        all .2s ease;
}


.lang-tab.active {

    background:
        #5865F2;

    color: #ffffff;

    box-shadow:
        0 2px 8px rgba(88,101,242,.3);
}


/* =========================================================
   LOGIN FORM
   ========================================================= */

.login-form-area {

    width: 100%;

    max-width: 380px;

    margin:
        auto 0;

    align-self: center;
}


.form-welcome {

    display: block;

    margin-bottom: 8px;

    color: #70798a;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1px;
}


.login-form-area h2 {

    margin:
        0 0 8px 0;

    color: #ffffff;

    font-size: 24px;

    font-weight: 800;
}


.form-desc {

    margin:
        0 0 35px 0;

    color: #70798a;

    font-size: 13px;

    line-height: 1.5;
}


/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.btn-submit-premium {

    width: 100%;

    min-height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding:
        15px 24px;

    background:
        #5865F2;

    color: #ffffff;

    font-size: 13.5px;

    font-weight: 700;

    text-decoration: none;

    border:
        1px solid rgba(255,255,255,0.10);

    border-radius: 10px;

    box-shadow:
        0 4px 20px rgba(88,101,242,0.30);

    transition:
        all .2s cubic-bezier(.4,0,.2,1);
}


.btn-submit-premium:hover {

    background:
        #4752C4;

    transform:
        translateY(-2px);

    box-shadow:
        0 8px 25px rgba(88,101,242,0.45);
}


/* =========================================================
   LOGIN NOTICE
   ========================================================= */

.login-notice-box {

    width: 100%;

    margin-top: 25px;

    padding:
        12px 15px;

    background:
        rgba(255,255,255,0.015);

    border:
        1px solid rgba(255,255,255,0.04);

    border-radius: 8px;

    text-align: center;
}


.login-notice-box small {

    color: #5e6878;

    font-size: 11px;
}


/* =========================================================
   LOGIN FOOTER
   ========================================================= */

.login-footer-links {

    width: 100%;

    text-align: center;

    color: #4f5969;

    font-size: 11px;
}


.login-footer-links a {

    margin:
        0 3px;

    color: #5e6878;

    text-decoration: none;
}


.login-footer-links a:hover {

    color: #ffffff;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .portal-box {

        padding:
            0 30px 60px 30px;
    }


    .server-grid,
    #dynamicServerGrid {

        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            );
    }
}


@media (max-width: 900px) {

    .portal-box {

        padding:
            0 20px 50px 20px;
    }


    .portal-header {

        min-height: 78px;

        margin-bottom: 30px;
    }


    .portal-user-info {

        display: none;
    }


    .portal-user {

        padding-right: 0;

        border-right: none;
    }


    .server-page-header {

        align-items: flex-start;

        flex-direction: column;

        gap: 15px;
    }


    .server-page-title h1 {

        font-size: 26px;
    }


    .server-grid,
    #dynamicServerGrid {

        grid-template-columns:
            1fr;
    }


    #loggedOutView {

        max-width: 760px;
    }


    .login-left-panel,
    .login-right-panel {

        padding: 32px;
    }
}


@media (max-width: 700px) {

    .portal-wrapper {

        padding: 0;
    }


    .portal-box {

        padding:
            0 15px 40px 15px;
    }


    .portal-header {

        flex-direction: column;

        align-items: stretch;

        justify-content: center;

        gap: 18px;

        padding:
            18px 0;

        min-height: auto;
    }


    .portal-user-area {

        justify-content: space-between;
    }


    .server-item-card {

        min-height: 104px;

        padding: 17px;
    }


    .server-info {

        gap: 12px;
    }


    .server-manage-btn {

        min-width: 110px;
    }


    #loggedOutView {

        flex-direction: column;

        width: calc(100% - 24px);

        min-height: auto;

        margin: 12px auto;
    }


    .login-left-panel {

        padding: 28px;

        border-right: none;

        border-bottom:
            1px solid rgba(255,255,255,.05);
    }


    .login-right-panel {

        padding: 28px;

        align-items: stretch;
    }


    .login-logo-header {

        height: 140px;
    }


    .login-feature-cards {

        flex-direction: column;
    }


    .login-form-area {

        max-width: none;
    }
}


@media (max-width: 550px) {

    .portal-brand-text {

        display: none;
    }


    .portal-header {

        justify-content: space-between;
    }


    .portal-box {

        padding:
            0 12px 40px 12px;
    }


    .server-item-card {

        padding: 15px;

        flex-direction: column;

        align-items: stretch;

        gap: 14px;
    }


    .server-info {

        width: 100%;
    }


    .server-manage-btn {

        width: 100%;

        min-width: 0;

        height: 40px;
    }


    .server-name {

        max-width: 220px;
    }


    .server-active-badge {

        top: 8px;

        right: 8px;
    }


    .login-left-panel,
    .login-right-panel {

        padding: 22px;
    }


    .login-marketing-text h1 {

        font-size: 29px;
    }
}


/* =========================================================
   ENDE portal.css
   ========================================================= */