* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: #090b0f;
    --header: #101218;

    --panel: #11141a;
    --panel-hover: #151920;

    --border: #222733;
    --border-light: #303846;

    --text: #c8cfda;
    --text-bright: #edf1f7;
    --muted: #566074;

    --blue: #628cff;
    --green: #48d46d;
    --yellow: #d69717;
    --red: #e75b67;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    background: var(--background);
    color: var(--text);

    font-family:
        "Consolas",
        "Courier New",
        monospace;

    font-size: 14px;
}


/* =========================================================
   APP
========================================================= */

.app {
    width: 100%;
    min-height: 100vh;
}


/* =========================================================
   HEADER
========================================================= */

.header {
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 26px;

    background: var(--header);

    border-top: 1px solid #171a20;
    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;
    align-items: center;

    gap: 8px;

    font-size: 12px;

    letter-spacing: 2px;
}

.brand-main {
    color: var(--blue);
}

.brand-sub {
    color: #5b6476;
}

.separator {
    color: #4f5868;

    margin-left: 12px;
}

.connected {
    color: var(--green);

    font-size: 10px;

    letter-spacing: 0;
}

.user-status {
    display: flex;
    align-items: center;

    gap: 7px;

    color: #798398;

    font-size: 11px;
}

.online-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 5px rgba(72, 212, 109, 0.5);
}


/* =========================================================
   TOP NAVIGATION
========================================================= */

.top-nav {
    height: 58px;

    display: flex;
    align-items: flex-end;

    gap: 18px;

    padding-left: 26px;

    background: #101218;

    border-bottom: 1px solid var(--border);
}

.nav-button {
    position: relative;

    height: 57px;

    padding: 0 17px;

    border: none;

    background: transparent;

    color: #465064;

    font-family: inherit;
    font-size: 11px;

    cursor: pointer;

    transition:
        color 0.15s ease,
        background 0.15s ease;
}

.nav-button:hover {
    color: #8994a9;
}

.nav-button.active {
    color: var(--blue);
}

.nav-button.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 2px;

    background: var(--blue);
}


/* =========================================================
   CONTROL BAR
========================================================= */

.control-bar {
    min-height: 60px;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 10px 26px;

    background: #0c0f14;

    border-bottom: 1px solid var(--border);
}

button,
input,
select {
    font-family: inherit;
}


/* =========================================================
   BATTLE INPUT
========================================================= */

.battle-input {
    flex: 1;

    min-width: 250px;
    max-width: 950px;

    height: 36px;

    padding: 0 13px;

    border: 1px solid var(--border);

    border-radius: 5px;

    outline: none;

    background: #141820;

    color: #bbc4d3;

    font-size: 11px;
    font-weight: bold;

    transition:
        border-color 0.15s ease,
        background 0.15s ease;
}

/* =========================================================
   ACCOUNT SELECT
========================================================= */

.account-select {
    width: 220px;
    height: 36px;

    padding: 0 12px;

    border: 1px solid var(--border);

    border-radius: 5px;

    outline: none;

    background: #141820;

    color: #758095;

    font-size: 10px;

    cursor: pointer;
}

.account-select:hover {
    border-color: #303847;
}


/* =========================================================
   TEAM BUTTONS
========================================================= */

.team-button {
    width: 65px;
    height: 36px;

    border: 1px solid var(--border);

    border-radius: 5px;

    background: #141820;

    color: #8a96aa;

    font-size: 10px;
    font-weight: bold;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.team-button:hover {
    background: #1a1f28;

    border-color: #333b4a;

    color: #c8d0dc;
}

.team-button:active {
    transform: translateY(1px);
}

/* =========================================================
   TEAM SELECTION
========================================================= */

.alfa-button.selected {
    color: #ff5360;

    border-color: #ff3948;

    background: rgba(255, 57, 72, 0.08);
}

.bravo-button.selected {
    color: #6f9cff;

    border-color: #527cff;

    background: rgba(82, 124, 255, 0.08);
}


/* =========================================================
   START / CLEAR
========================================================= */

.action-button {
    width: 72px;
    height: 36px;

    padding: 0;

    background: transparent;

    border-radius: 5px;

    font-family: inherit;
    font-size: 10px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease;
}


/* START */

.start-button {
    margin-left: 12px;
}

.start-button.selected {
    color: #48d46d;

    border-color: #48d46d;

    background: rgba(72, 212, 109, 0.08);
}

.start-button:hover {
    background: rgba(72, 212, 109, 0.08);
}


/* CLEAR */

.clear-button.selected {
    color: #ff5360;

    border-color: #ff3948;

    background: rgba(255, 57, 72, 0.08);
}

/* =========================================================
   CONTENT
========================================================= */

.content {
    padding: 14px 26px 40px;
}


/* =========================================================
   ACTIVE SESSIONS TOOLBAR
========================================================= */

.sessions-toolbar {
    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 8px;
}

.sessions-heading {
    display: flex;
    align-items: center;

    gap: 10px;
}

.sessions-title {
    color: #596477;

    font-size: 10px;

    letter-spacing: 3px;
}

.session-count {
    min-width: 25px;
    height: 21px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 8px;

    background: #171b22;

    border: 1px solid #252b35;

    border-radius: 20px;

    color: #8791a3;

    font-size: 9px;
}

.toolbar-right {
    display: flex;
    align-items: center;

    gap: 8px;
}


/* =========================================================
   SMALL BUTTONS
========================================================= */

.small-button {
    height: 28px;

    padding: 0 12px;

    border: 1px solid #242b35;

    border-radius: 4px;

    background: #141820;

    color: #7c8799;

    font-size: 9px;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.small-button:hover {
    background: #1a1f28;

    border-color: #343d4a;

    color: #bcc5d2;
}


/* =========================================================
   SYSTEM INFO
========================================================= */

.system-info {
    height: 28px;

    display: flex;
    align-items: center;

    padding: 0 10px;

    background: #12161c;

    border: 1px solid #242b35;

    border-radius: 4px;

    color: #586377;

    font-size: 8px;
}


/* =========================================================
   TABLE HEADER
========================================================= */

.session-table-header {
    min-height: 44px;

    display: grid;

    grid-template-columns:
        1.35fr
        1fr
        1.65fr
        0.75fr
        1fr
        0.85fr
        0.7fr
        0.55fr;

    align-items: center;

    padding: 0 18px;

    margin-bottom: 8px;

    background: #0f1217;

    border: 1px solid #252b35;

    border-radius: 5px;

    color: #778195;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.7px;
}

.session-table-header > div {
    width: 100%;
    text-align: center;
}

.session-table-header > div:first-child {
    text-align: left;
}

/* =========================================================
   TABLE COLUMN ALIGNMENT
========================================================= */

/* Alle normalen Spalten exakt mittig */
.map-cell,
.url-cell,
.side-cell,
.status-cell,
.features-cell,
.timer-cell,
.lane-cell {
    width: 100%;
    justify-self: center;
    text-align: center;
}

/* STATUS: Punkt + Text zusammen zentrieren */
.status-cell {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* FEATURES */
.features-cell {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* URL Box ebenfalls mittig */
.url-cell {
    margin-left: auto;
    margin-right: auto;
}

/* Account bleibt links */
.account-cell {
    justify-self: stretch;
    text-align: left;
}


/* =========================================================
   SESSION LIST
========================================================= */

.session-list {
    display: flex;
    flex-direction: column;

    gap: 7px;
}


/* =========================================================
   SESSION ROW
========================================================= */

.session-row {
    min-height: 60px;

    display: grid;

    grid-template-columns:
        1.35fr
        1fr
        1.65fr
        0.75fr
        1fr
        0.85fr
        0.7fr
        0.55fr;

    align-items: center;

    padding: 0 18px;

    background: #11141a;

    border: 1px solid #242a34;

    border-radius: 5px;

    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.session-row:hover {
    background: #151920;

    border-color: #323a47;
}


/* =========================================================
   ACCOUNT CELL
========================================================= */

.account-cell {
    display: flex;
    align-items: center;

    gap: 12px;

    min-width: 0;
}

.rank {
    width: 34px;
    height: 34px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #171b22;

    border: 1px solid #202630;

    border-radius: 4px;

    font-size: 15px;
}

.account-name {
    color: #d9dee7;

    font-size: 11px;
    font-weight: 600;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =========================================================
   MAP
========================================================= */

.map-cell {
    color: #929baa;

    font-size: 10px;
}


/* =========================================================
   URL
========================================================= */

.url-cell {
    width: fit-content;

    max-width: 90%;

    padding: 5px 9px;

    background: #151a22;

    border: 1px solid #252d39;

    border-radius: 4px;

    color: #667287;

    font-size: 9px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =========================================================
   SIDE
========================================================= */

.side-cell {
    font-size: 10px;
    font-weight: 600;
}

.side-cell.bravo {
    color: #6294ff;
}

.side-cell.alfa {
    color: #ef5967;
}


/* =========================================================
   STATUS
========================================================= */

.status-cell {
    display: flex;
    align-items: center;

    gap: 8px;

    color: #d4dae4;

    font-size: 10px;
}

.status-dot {
    width: 7px;
    height: 7px;

    flex-shrink: 0;

    border-radius: 50%;
}

.status-dot.clicking {
    background: #45cc69;
}

.clicking-status {
    color: #45cc69 
}

.status-dot.loading {
    background: #e5ae39;

    box-shadow:
        0 0 5px rgba(229, 174, 57, 0.25);
}

.status-dot.waiting {
    background: #7d8798;
}

.loading-status {
    color: #d7b963;
}

.waiting-status {
    color: #929cab;
}

/* =========================================================
   FEATURES
========================================================= */

.features-cell {
    color: #45cc69;

    font-size: 17px;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   TIMER
========================================================= */

.timer-cell {
    color: #e7ebf2;

    font-size: 11px;
    font-weight: 600;
}


/* =========================================================
   LANE
========================================================= */

.lane-cell {
    font-size: 16px;
}


/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #090b0f;
}

::-webkit-scrollbar-thumb {
    background: #252b35;

    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #313947;
}


/* =========================================================
   SELECTION
========================================================= */

::selection {
    background: rgba(98, 140, 255, 0.25);

    color: #ffffff;
}


/* =========================================================
   RESPONSIVE 1300
========================================================= */

@media (max-width: 1300px) {

    .session-table-header,
    .session-row {
        min-width: 1100px;
    }

    .content {
        overflow-x: auto;
    }

}


/* =========================================================
   RESPONSIVE 1000
========================================================= */

@media (max-width: 1000px) {

    body {
        overflow-x: auto;
    }

    .app {
        min-width: 1000px;
    }

    .header {
        padding-left: 18px;
        padding-right: 18px;
    }

    .top-nav {
        padding-left: 18px;
    }

    .control-bar {
        padding-left: 18px;
        padding-right: 18px;
    }
    .content {
        padding-left: 18px;
        padding-right: 18px;
    }

}

/* =========================================================
   GLITCH STATUS
========================================================= */

.glitch-status {
    color: #ff4d5a;
}

.status-dot.glitch {
    background: #ff4d5a;

    box-shadow:
        0 0 5px rgba(255, 77, 90, 0.25);
}


/* =========================================================
   UNGLITCH BUTTON
========================================================= */
.unglitch-btn {
    min-width: 82px;
    height: 36px;

    padding: 0 14px;

    background: transparent;

    border: 2px solid #ff3948;
    border-radius: 7px;

    color: #ff3948;

    font-family: inherit;
    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.3px;

    cursor: pointer;

    transition:
        background 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease;
}

.unglitch-btn:hover {
    background: rgba(255, 57, 72, 0.08);

    color: #ff5260;

    box-shadow:
        0 0 8px rgba(255, 57, 72, 0.15);
}

.unglitch-btn:active {
    background: rgba(255, 57, 72, 0.14);

    transform: translateY(1px);
}



/* =========================================================
   GLITCH - FINAL OVERRIDE
========================================================= */

.status-glitched {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;

    color: #ff4655 !important;

    font-size: 10px !important;
    font-weight: normal !important;
}

.glitch-dot {
    display: inline-block !important;

    width: 7px !important;
    height: 7px !important;

    min-width: 7px !important;
    min-height: 7px !important;

    background: #ff4655 !important;

    border-radius: 50% !important;

    box-shadow: 0 0 5px rgba(255, 70, 85, 0.35) !important;
}


/* UNGLITCH */

.features-cell .unglitch-btn {
    appearance: none !important;
    -webkit-appearance: none !important;

    min-width: 74px !important;
    height: 30px !important;

    padding: 0 10px !important;

    background: transparent !important;

    border: 2px solid #ff3948 !important;
    border-radius: 6px !important;

    color: #ff4655 !important;

    font-family: inherit !important;
    font-size: 9px !important;
    font-weight: 700 !important;

    line-height: 1 !important;
    letter-spacing: 0.3px !important;

    cursor: pointer !important;
}

.features-cell .unglitch-btn:hover {
    background: rgba(255, 57, 72, 0.08) !important;
}


/* =========================================================
   STOP BUTTON
========================================================= */

.features-cell .stop-click-btn {
    appearance: none !important;
    -webkit-appearance: none !important;

    min-width: 74px !important;
    height: 30px !important;

    padding: 0 10px !important;

    background: transparent !important;

    border: 2px solid #e5a63b !important;
    border-radius: 6px !important;

    color: #e5a63b !important;

    font-family: inherit !important;
    font-size: 9px !important;
    font-weight: 700 !important;

    line-height: 1 !important;
    letter-spacing: 0.3px !important;

    cursor: pointer !important;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease !important;
}


.features-cell .stop-click-btn:hover {
    background:
        rgba(
            229,
            166,
            59,
            0.08
        ) !important;
}


.features-cell .stop-click-btn:active {
    background:
        rgba(
            229,
            166,
            59,
            0.14
        ) !important;

    transform:
        translateY(1px);
}

/* =========================================================
   ALL ACCOUNTS BUTTON
========================================================= */
.all-button {
    margin-right: 14px;
}

.all-button.selected {
    color: #e5ae39;

    border-color: #e5ae39;

    background: rgba(229, 174, 57, 0.08);
}

.all-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #596273;
}

.all-button:hover {
    background: #191e26;
    border-color: #343c49;
}


/* ALL AKTIV */

.all-button.selected {
    color: #e5ae39;

    border-color: #e5ae39;

    background: rgba(229, 174, 57, 0.08);
}


/* =========================================================
   TOP RIGHT ACTIONS
========================================================= */

.top-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.scrap-button,
.logout-button {
    height: 32px;

    padding: 0 14px;

    border-radius: 5px;

    font-family: inherit;
    font-size: 9px;
    font-weight: 700;

    cursor: pointer;

    background: transparent;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}


/* SCRAP */

.scrap-button {
    color: #8a94a5;

    border: 1px solid #303744;
}

.scrap-button:hover {
    color: #b4bdca;

    border-color: #444d5d;

    background: rgba(255, 255, 255, 0.02);
}


/* LOGOUT */

.logout-button {
    color: #ff4655;

    border: 1px solid #ff4655;
}

.logout-button:hover {
    background: rgba(255, 70, 85, 0.08);
}

/* =========================================================
   GLOBAL UI SCALE
========================================================= */

body {
    zoom: 1.05;
}

/* =========================================================
   STATS MODAL
========================================================= */

.modal-overlay {
    position: fixed;

    inset: 0;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 30px;

    background: rgba(0, 0, 0, 0.68);

    backdrop-filter: blur(3px);

    z-index: 9999;
}

.modal-overlay.open {
    display: flex;
}


/* MODAL */

.stats-modal {
    width: 520px;

    max-width: 100%;

    background: #101318;

    border: 1px solid #2a313c;

    border-radius: 8px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.55);

    overflow: hidden;
}


/* HEADER */

.stats-modal-header {
    min-height: 74px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 20px;

    border-bottom: 1px solid #252b35;
}

.stats-modal-title {
    color: #edf1f7;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 1px;
}

.stats-modal-subtitle {
    margin-top: 5px;

    color: #667185;

    font-size: 9px;
}


/* X */

.modal-close-x {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #141820;

    border: 1px solid #2c3340;
    border-radius: 5px;

    color: #7f899a;

    font-family: inherit;
    font-size: 16px;

    cursor: pointer;
}

.modal-close-x:hover {
    color: #ffffff;

    border-color: #444d5b;
}


/* GRID */

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;

    padding: 18px 20px;
}


/* CARD */

.stat-card {
    min-height: 88px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 8px;

    padding: 14px 16px;

    background: #141820;

    border: 1px solid #252d38;
    border-radius: 6px;
}

.stat-label {
    color: #6e7b90;

    font-size: 9px;

    letter-spacing: 0.7px;
}

.stat-value {
    color: #edf1f7;

    font-size: 20px;
    font-weight: 700;
}

.green-value {
    color: #48d46d;
}


/* FOOTER */

.stats-modal-footer {
    display: flex;
    justify-content: flex-end;

    padding: 14px 20px 18px;

    border-top: 1px solid #252b35;
}


/* CLOSE BUTTON */

.stats-close-button {
    width: 82px;
    height: 34px;

    background: #141820;

    border: 1px solid #303846;
    border-radius: 5px;

    color: #a0a9b8;

    font-family: inherit;
    font-size: 9px;
    font-weight: 700;

    cursor: pointer;
}

.stats-close-button:hover {
    background: #1a1f27;

    color: #ffffff;

    border-color: #444d5b;
}

/* =========================================================
   RESTART MODAL
========================================================= */

.restart-modal {
    width: 440px;
    max-width: 100%;

    padding: 26px;

    background: #101318;

    border: 1px solid #2a313c;
    border-radius: 8px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.55);
}


/* ICON */

.restart-icon {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    background: rgba(255, 70, 85, 0.08);

    border: 1px solid rgba(255, 70, 85, 0.22);
    border-radius: 8px;

    color: #ff5a67;

    font-size: 25px;
}


/* TITLE */

.restart-title {
    color: #edf1f7;

    font-size: 16px;
    font-weight: 700;

    letter-spacing: 0.4px;

    margin-bottom: 16px;
}


/* TEXT */

.restart-text {
    color: #8b95a6;

    font-size: 10px;
    line-height: 1.7;

    margin-bottom: 26px;
}


/* ACTIONS */

.restart-actions {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 12px;
}


/* RESTART BUTTON */

.restart-confirm-button {
    height: 38px;

    background: rgba(255, 70, 85, 0.08);

    border: 1px solid #ff4655;
    border-radius: 5px;

    color: #ff4655;

    font-family: inherit;
    font-size: 10px;
    font-weight: 700;

    cursor: pointer;
}

.restart-confirm-button:hover {
    background: rgba(255, 70, 85, 0.14);
}


/* CANCEL */

.restart-cancel-button {
    height: 38px;

    background: #141820;

    border: 1px solid #303846;
    border-radius: 5px;

    color: #98a2b2;

    font-family: inherit;
    font-size: 10px;
    font-weight: 700;

    cursor: pointer;
}

.restart-cancel-button:hover {
    background: #1a1f27;

    color: #ffffff;
}
/* =========================================================
   ACCOUNTS MODAL
========================================================= */

.accounts-modal {
    width: 820px;
    max-width: 95vw;
    max-height: 85vh;

    background: #101318;

    border: 1px solid #2a313c;
    border-radius: 8px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.55);

    overflow: hidden;
}


/* HEADER */

.accounts-modal-header {
    min-height: 74px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 20px;

    border-bottom: 1px solid #252b35;
}

.accounts-modal-title {
    color: #edf1f7;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 1px;
}

.accounts-modal-subtitle {
    margin-top: 5px;

    color: #667185;

    font-size: 9px;
}


/* SECTIONS */

.accounts-section {
    padding: 18px 20px;

    border-bottom: 1px solid #252b35;
}

.accounts-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 14px;
}

.accounts-section-title {
    color: #7d8798;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1px;
}


/* OWNER CARDS */

.owner-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;
}

.owner-card {
    min-height: 78px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 8px;

    padding: 14px 16px;

    background: #141820;

    border: 1px solid #252d38;
    border-radius: 6px;
}

.owner-name {
    color: #edf1f7;

    font-size: 11px;
    font-weight: 700;
}

.owner-count {
    color: #7a8597;

    font-size: 9px;
}


/* ADD OWNER */

.add-owner-button {
    height: 30px;

    padding: 0 12px;

    background: #141820;

    border: 1px solid #303846;
    border-radius: 5px;

    color: #8a95a6;

    font-family: inherit;
    font-size: 9px;
    font-weight: 700;

    cursor: pointer;
}

.add-owner-button:hover {
    color: #ffffff;

    border-color: #46505f;
}


/* SEARCH */

.accounts-search {
    width: 220px;
    height: 32px;

    padding: 0 11px;

    background: #141820;

    border: 1px solid #2c3340;
    border-radius: 5px;

    color: #cbd2dd;

    font-family: inherit;
    font-size: 9px;

    outline: none;
}

.accounts-search:focus {
    border-color: #45536a;
}


/* TABLE */

.accounts-table {
    max-height: 300px;

    overflow-y: auto;
    overflow-x: hidden;

    border: 1px solid #252d38;
    border-radius: 6px;
}

.accounts-table::-webkit-scrollbar {
    width: 7px;
}

.accounts-table::-webkit-scrollbar-track {
    background: #0f1217;
}

.accounts-table::-webkit-scrollbar-thumb {
    background: #2d3542;
    border-radius: 6px;
}

.accounts-table::-webkit-scrollbar-thumb:hover {
    background: #3b4656;
}

body.modal-open {
    overflow: hidden;
}


.accounts-table-header,
.accounts-table-row {
    display: grid;

    grid-template-columns:
        2fr
        1fr
        1fr
        90px;

    align-items: center;

    gap: 12px;

    padding: 0 14px;
}

.accounts-table-header {
    min-height: 38px;

    background: #0f1217;

    color: #667185;

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 0.7px;
}

.accounts-table-row {
    min-height: 48px;

    background: #13171d;

    border-top: 1px solid #222934;

    color: #8f99aa;

    font-size: 9px;
}

.accounts-table-row:hover {
    background: #171c23;
}

.accounts-table-name {
    color: #dce1e9;

    font-weight: 600;
}


/* STATUS */

.account-online,
.account-offline {
    display: flex;
    align-items: center;

    gap: 7px;
}

.account-online {
    color: #48d46d;
}

.account-offline {
    color: #8b95a6;
}

.account-status-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;
}

.account-status-dot.online {
    background: #48d46d;
}

.account-status-dot.offline {
    background: #7d8798;
}


/* REMOVE */

.remove-account-button {
    height: 28px;

    background: transparent;

    border: 1px solid #ff4655;
    border-radius: 5px;

    color: #ff4655;

    font-family: inherit;
    font-size: 8px;
    font-weight: 700;

    cursor: pointer;
}

.remove-account-button:hover {
    background: rgba(255, 70, 85, 0.08);
}


/* ADD ACCOUNT */

.account-action-buttons {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-top: 14px;
}


.add-account-button,
.remove-selected-account-button {
    height: 32px;

    padding: 0 14px;

    background: transparent;

    border-radius: 5px;

    font-family: inherit;
    font-size: 9px;
    font-weight: 700;

    cursor: pointer;
}


/* ADD */

.add-account-button {
    border: 1px solid #48d46d;

    color: #48d46d;
}

.add-account-button:hover {
    background: rgba(72, 212, 109, 0.08);
}


/* REMOVE */

.remove-selected-account-button {
    border: 1px solid #ff4655;

    color: #ff4655;
}

.remove-selected-account-button:hover {
    background: rgba(255, 70, 85, 0.08);
}


/* FOOTER */

.accounts-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 14px 20px 18px;
}

/* =========================================================
   ACCOUNTS TOOLS
========================================================= */

.accounts-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.accounts-filter-button {
    height: 32px;

    padding: 0 12px;

    background: #141820;

    border: 1px solid #2c3340;
    border-radius: 5px;

    color: #7c8799;

    font-family: inherit;
    font-size: 9px;
    font-weight: 700;

    cursor: pointer;
}

.accounts-filter-button:hover {
    background: #1a1f28;

    border-color: #343d4a;

    color: #bcc5d2;
}

/* =========================================================
   ACTIVITY MODAL
========================================================= */

.activity-modal {
    width: 900px;
    max-width: 95vw;
    max-height: 86vh;

    display: flex;
    flex-direction: column;

    background: #101318;

    border: 1px solid #2a313c;
    border-radius: 8px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.55);

    overflow: hidden;
}


/* HEADER */

.activity-modal-header {
    min-height: 74px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 20px;

    border-bottom: 1px solid #252b35;
}

.activity-modal-title {
    color: #edf1f7;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 1px;
}

.activity-modal-subtitle {
    margin-top: 5px;

    color: #667185;

    font-size: 9px;
}


/* =========================================================
   TOOLBAR
========================================================= */

.activity-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 14px 20px;

    border-bottom: 1px solid #252b35;
}

.activity-toolbar-left {
    display: flex;
    align-items: center;

    gap: 8px;
}


/* FILTER */

.activity-filter-button {
    height: 32px;

    padding: 0 12px;

    background: #141820;

    border: 1px solid #2c3340;
    border-radius: 5px;

    color: #7c8799;

    font-family: inherit;
    font-size: 9px;
    font-weight: 700;

    cursor: pointer;
}

.activity-filter-button:hover {
    background: #1a1f28;

    border-color: #343d4a;

    color: #bcc5d2;
}


/* SEARCH */

.activity-search {
    width: 260px;
    height: 32px;

    padding: 0 11px;

    background: #141820;

    border: 1px solid #2c3340;
    border-radius: 5px;

    color: #cbd2dd;

    font-family: inherit;
    font-size: 9px;

    outline: none;
}

.activity-search:focus {
    border-color: #45536a;
}


/* CLEAR LOGS */

.clear-logs-button {
    height: 32px;

    padding: 0 13px;

    background: transparent;

    border: 1px solid #ff4655;
    border-radius: 5px;

    color: #ff4655;

    font-family: inherit;
    font-size: 9px;
    font-weight: 700;

    cursor: pointer;
}

.clear-logs-button:hover {
    background: rgba(255, 70, 85, 0.08);
}


/* =========================================================
   ACTIVITY TABLE
========================================================= */

.activity-table {
    margin: 0 20px;

    border: 1px solid #252d38;
    border-radius: 6px;

    overflow: hidden;
}

.activity-table-header,
.activity-log-row {
    display: grid;

    grid-template-columns:
        95px
        110px
        1.4fr
        1.5fr
        100px;

    align-items: center;

    gap: 12px;

    padding: 0 14px;
}


/* HEADER */

.activity-table-header {
    min-height: 40px;

    background: #0f1217;

    color: #667185;

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 0.7px;
}


/* =========================================================
   SCROLLABLE LOG LIST
========================================================= */

.activity-log-list {
    max-height: 390px;

    overflow-y: auto;
    overflow-x: hidden;

    background: #11151b;
}


/* ROW */

.activity-log-row {
    min-height: 48px;

    border-top: 1px solid #222934;

    color: #8994a6;

    font-size: 9px;
}

.activity-log-row:hover {
    background: #171c23;
}

.activity-time {
    color: #687386;
}

.activity-user {
    color: #cbd2dd;

    font-weight: 600;
}

.activity-action {
    color: #9ba5b5;
}

.activity-target {
    color: #788497;
}


/* =========================================================
   RESULTS
========================================================= */

.activity-result {
    font-weight: 700;
}

.activity-result.success {
    color: #48d46d;
}

.activity-result.failed {
    color: #ff4655;
}

.activity-result.warning {
    color: #e5ae39;
}

.activity-result.info {
    color: #628cff;
}


/* =========================================================
   SCROLLBAR
========================================================= */

.activity-log-list::-webkit-scrollbar {
    width: 7px;
}

.activity-log-list::-webkit-scrollbar-track {
    background: #0f1217;
}

.activity-log-list::-webkit-scrollbar-thumb {
    background: #2d3542;

    border-radius: 6px;
}

.activity-log-list::-webkit-scrollbar-thumb:hover {
    background: #3b4656;
}


/* =========================================================
   FOOTER
========================================================= */

.activity-footer {
    min-height: 62px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 14px 20px;

    color: #667185;

    font-size: 9px;
}

/* =========================================================
   SWAP MODAL
========================================================= */

.swap-modal {
    width: 860px;
    max-width: 95vw;
    max-height: 88vh;

    background: #101318;

    border: 1px solid #2a313c;
    border-radius: 8px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.55);

    overflow: hidden;
}


/* HEADER */

.swap-modal-header {
    min-height: 74px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 20px;

    border-bottom: 1px solid #252b35;
}

.swap-modal-title {
    color: #edf1f7;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 1px;
}

.swap-modal-subtitle {
    margin-top: 5px;

    color: #667185;

    font-size: 9px;
}


/* SECTIONS */

.swap-section {
    padding: 18px 20px;

    border-bottom: 1px solid #252b35;
}

.swap-section-title {
    color: #7d8798;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1px;
}

.swap-section-subtitle {
    margin-top: 5px;
    margin-bottom: 14px;

    color: #5f697b;

    font-size: 9px;
}


/* =========================================================
   GLITCHED ACCOUNT LIST
========================================================= */

.swap-glitched-list {
    max-height: 210px;

    overflow-y: auto;
    overflow-x: hidden;

    border: 1px solid #252d38;
    border-radius: 6px;

    background: #11151b;
}

.swap-glitched-row {
    width: 100%;
    min-height: 50px;

    display: grid;

    grid-template-columns:
        1.5fr
        1fr
        120px;

    align-items: center;

    padding: 0 14px;

    background: #13171d;

    border: none;
    border-bottom: 1px solid #222934;

    color: #8f99aa;

    text-align: left;

    cursor: pointer;
}

.swap-glitched-row:last-child {
    border-bottom: none;
}

.swap-glitched-row:hover {
    background: #171c23;
}

.swap-glitched-row.selected {
    background: rgba(255, 70, 85, 0.06);

    box-shadow:
        inset 3px 0 0 #ff4655;
}

.swap-account-name {
    color: #dce1e9;

    font-weight: 600;
}

.swap-owner {
    color: #7d8798;
}

.swap-glitched-status {
    display: flex;
    align-items: center;

    gap: 7px;

    color: #ff4655;

    font-weight: 700;
}

.swap-red-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #ff4655;
}


/* SCROLLBAR */

.swap-glitched-list::-webkit-scrollbar {
    width: 7px;
}

.swap-glitched-list::-webkit-scrollbar-track {
    background: #0f1217;
}

.swap-glitched-list::-webkit-scrollbar-thumb {
    background: #2d3542;

    border-radius: 6px;
}


/* =========================================================
   OWNER / ACCOUNT SELECT
========================================================= */

.swap-select-row {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 10px;
}

.swap-select {
    width: 100%;
    height: 36px;

    padding: 0 12px;

    background: #141820;

    border: 1px solid #2c3340;
    border-radius: 5px;

    color: #8590a2;

    font-family: inherit;
    font-size: 10px;

    outline: none;

    cursor: pointer;
}

.swap-select:hover,
.swap-select:focus {
    border-color: #45536a;
}


/* =========================================================
   SWAP SUMMARY
========================================================= */

.swap-summary {
    padding: 18px 20px;

    border-bottom: 1px solid #252b35;
}

.swap-summary-grid {
    display: grid;

    grid-template-columns:
        1fr
        60px
        1fr;

    align-items: center;

    gap: 14px;

    margin-top: 14px;
}

.swap-summary-card {
    min-height: 88px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 8px;

    padding: 14px 16px;

    background: #141820;

    border: 1px solid #252d38;
    border-radius: 6px;
}

.swap-summary-card strong {
    color: #edf1f7;

    font-size: 12px;
}

.swap-summary-card span:last-child {
    color: #788497;

    font-size: 9px;
}

.swap-summary-label {
    color: #657084;

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 1px;
}

.swap-summary-arrow {
    text-align: center;

    color: #667185;

    font-size: 22px;
}


/* SUMMARY FOOTER */

.swap-summary-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 14px;
}

.swap-ready-status {
    color: #7d8798;

    font-size: 9px;
    font-weight: 700;
}

.swap-ready-status.ready {
    color: #48d46d;
}


/* SWAP BUTTON */

.swap-account-button {
    height: 34px;

    padding: 0 14px;

    background: #141820;

    border: 1px solid #303846;
    border-radius: 5px;

    color: #6d7788;

    font-family: inherit;
    font-size: 9px;
    font-weight: 700;

    cursor: not-allowed;
}

.swap-account-button.ready {
    color: #48d46d;

    border-color: #48d46d;

    background: rgba(72, 212, 109, 0.06);

    cursor: pointer;
}

.swap-account-button.ready:hover {
    background: rgba(72, 212, 109, 0.1);
}


/* FOOTER */

.swap-modal-footer {
    display: flex;
    justify-content: flex-end;

    padding: 14px 20px 18px;
}


/* =========================================================
   SWAP CONFIRM
========================================================= */

.swap-confirm-modal {
    width: 440px;
    max-width: 95vw;

    padding: 26px;

    background: #101318;

    border: 1px solid #2a313c;
    border-radius: 8px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.55);
}

.swap-confirm-preview {
    min-height: 60px;

    display: grid;

    grid-template-columns:
        1fr
        40px
        1fr;

    align-items: center;

    gap: 10px;

    margin-bottom: 22px;

    padding: 12px 14px;

    background: #141820;

    border: 1px solid #252d38;
    border-radius: 6px;

    color: #dce1e9;

    text-align: center;

    font-size: 10px;
}

.swap-confirm-arrow {
    color: #667185;

    font-size: 18px;
}

/* =========================================================
   PAGE SYSTEM
========================================================= */

.page {
    display: none;
    min-height: calc(100vh - 110px);
    background: #090c10;
}

.page.active {
    display: block;
}


/* Seiten mit Panels */

.page-panel-wrap {
    width: 100%;
    min-height: calc(100vh - 110px);

    display: flex;
    justify-content: center;
    align-items: flex-start;

    padding: 28px 20px 60px;
}


/* Navigation */

.nav-button.active {
    color: #628cff !important;
    border-bottom: 2px solid #628cff !important;
}


/* =========================================================
   ACCOUNT ACTION MODALS
========================================================= */

.account-action-modal {
    width: 430px;
    max-width: 92vw;

    padding: 28px;

    background: #101318;

    border: 1px solid #2a313c;
    border-radius: 8px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.55);
}

.account-action-modal.small {
    width: 400px;
}


/* ICON */

.account-action-icon {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    border-radius: 8px;

    font-size: 24px;
    font-weight: 700;
}

.account-action-icon.add {
    color: #48d46d;

    background: rgba(72, 212, 109, 0.09);

    border: 1px solid rgba(72, 212, 109, 0.18);
}

.account-action-icon.warning {
    color: #e5ae39;

    background: rgba(229, 174, 57, 0.08);

    border: 1px solid rgba(229, 174, 57, 0.18);
}


/* TITLE */

.account-action-title {
    margin-bottom: 14px;

    color: #edf1f7;

    font-size: 16px;
    font-weight: 700;
}


/* TEXT */

.account-action-text {
    margin-bottom: 24px;

    color: #8994a6;

    font-size: 10px;
    line-height: 1.6;
}


/* LABEL */

.account-action-label {
    display: block;

    margin-top: 16px;
    margin-bottom: 8px;

    color: #7c8799;

    font-size: 9px;
    font-weight: 700;
}


/* INPUT */

.account-action-input {
    width: 100%;
    height: 38px;

    padding: 0 12px;

    background: #141820;

    border: 1px solid #2c3340;
    border-radius: 5px;

    color: #cbd2dd;

    font-family: inherit;
    font-size: 10px;

    outline: none;
}

.account-action-input:focus {
    border-color: #45536a;
}


/* BUTTON ROW */

.account-action-buttons-modal {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 12px;

    margin-top: 26px;
}


/* ADD */

.confirm-add-account-button {
    height: 38px;

    background: rgba(72, 212, 109, 0.08);

    border: 1px solid #48d46d;
    border-radius: 5px;

    color: #48d46d;

    font-family: inherit;
    font-size: 10px;
    font-weight: 700;

    cursor: pointer;
}

.confirm-add-account-button:hover {
    background: rgba(72, 212, 109, 0.14);
}


/* REMOVE */

.confirm-remove-account-button {
    height: 38px;

    background: rgba(255, 70, 85, 0.08);

    border: 1px solid #ff4655;
    border-radius: 5px;

    color: #ff4655;

    font-family: inherit;
    font-size: 10px;
    font-weight: 700;

    cursor: pointer;
}


/* CANCEL */

.account-action-cancel {
    height: 38px;

    background: #141820;

    border: 1px solid #303846;
    border-radius: 5px;

    color: #929cab;

    font-family: inherit;
    font-size: 10px;
    font-weight: 700;

    cursor: pointer;
}


/* FULL CLOSE */

.account-action-close-full {
    width: 100%;
    height: 38px;

    background: #141820;

    border: 1px solid #303846;
    border-radius: 5px;

    color: #929cab;

    font-family: inherit;
    font-size: 10px;
    font-weight: 700;

    cursor: pointer;
}

.accounts-table-row.selected {
    background: rgba(98, 140, 255, 0.08);

    box-shadow:
        inset 3px 0 0 #628cff;
}

/* =========================================================
   LOGIN SCREEN
========================================================= */

.login-screen {
    position: fixed;

    inset: 0;

    z-index: 99999;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle at center,
            #08286a 0%,
            #061b4b 45%,
            #030b25 100%
        );
}


.login-card {
    width: 400px;

    padding: 34px;

    box-sizing: border-box;

    background: #071437;

    border: 1px solid #315f9c;
    border-radius: 20px;

    box-shadow:
        0 0 35px
        rgba(
            0,
            102,
            255,
            0.25
        );

    text-align: center;
}


.login-logo {
    width: 72px;
    height: 72px;

    margin:
        0 auto
        20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #11a8ff,
            #0646ff
        );

    box-shadow:
        0 0 25px
        rgba(
            0,
            132,
            255,
            0.55
        );

    color: #ffffff;

    font-size: 20px;
    font-weight: 800;

    letter-spacing: 1px;
}


.login-card h1 {
    margin:
        0 0
        8px;

    color: #ffffff;

    font-size: 30px;
}


.login-card p {
    margin:
        0 0
        24px;

    color: #77a5ff;

    font-size: 14px;
}


.login-card input {
    width: 100%;
    height: 46px;

    margin-bottom: 14px;

    padding:
        0 15px;

    box-sizing: border-box;

    border: 1px solid #a7b8d7;
    border-radius: 12px;

    outline: none;

    background: #e7eefb;

    color: #111827;

    font-family: inherit;
    font-size: 14px;
}


.login-card input:focus {
    border-color: #1688ff;

    box-shadow:
        0 0 0 2px
        rgba(
            22,
            136,
            255,
            0.15
        );
}


.login-card button {
    width: 100%;
    height: 46px;

    margin-top: 5px;

    border: 0;
    border-radius: 12px;

    background:
        linear-gradient(
            90deg,
            #1498ff,
            #1048ff
        );

    color: #ffffff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
}


.login-card button:hover {
    filter: brightness(1.08);
}


.login-card button:disabled {
    opacity: 0.65;

    cursor: wait;
}


.login-error {
    min-height: 18px;

    margin-top: 14px;

    color: #ff4d5e;

    font-size: 12px;
}

/* =========================================================
   RANK ICONS
========================================================= */

.rank {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}


.rank-icon-image {
    width: 26px;
    height: 26px;

    display: block;

    object-fit: contain;
}


.rank-placeholder {
    color: #65718a;

    font-size: 13px;
}


.accounts-table-name {
    display: flex;
    align-items: center;

    gap: 10px;
}


.account-rank-icon {
    width: 26px;
    height: 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}






























