:root {
    color-scheme: dark;

    --background: #080a10;
    --background-soft: #0d1019;
    --surface: rgba(19, 23, 35, 0.86);
    --surface-solid: #131723;
    --surface-hover: #191e2c;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.13);

    --text: #f5f7ff;
    --text-soft: #aeb6ca;
    --text-muted: #727b91;

    --success: #36d399;
    --warning: #f5b942;
    --danger: #fb7185;
    --info: #60a5fa;

    --radius-small: 12px;
    --radius-medium: 18px;
    --radius-large: 26px;

    --shadow:
        0 24px 70px rgba(0, 0, 0, 0.38);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--background);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background:
        linear-gradient(
            145deg,
            #080a10 0%,
            #0b0e16 54%,
            #090b12 100%
        );
}

button,
input {
    font: inherit;
}

button {
    color: inherit;
}

.background-glow {
    position: fixed;
    z-index: 0;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(120px);
    opacity: 0.12;
}

.background-glow-one {
    top: -220px;
    right: -130px;
    background: #7c3aed;
}

.background-glow-two {
    bottom: -300px;
    left: 20%;
    background: #0ea5e9;
}

.app-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 28px 20px 22px;
    border-right: 1px solid var(--border);
    background:
        linear-gradient(
            180deg,
            rgba(16, 19, 29, 0.96),
            rgba(11, 13, 21, 0.96)
        );
    backdrop-filter: blur(20px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 8px;
}

.brand-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(168, 85, 247, 0.45);
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    background:
        linear-gradient(
            145deg,
            rgba(168, 85, 247, 0.28),
            rgba(59, 130, 246, 0.18)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.13),
        0 10px 30px rgba(124, 58, 237, 0.12);
}

.brand-name {
    font-size: 15px;
    font-weight: 750;
    letter-spacing: -0.01em;
}

.brand-subtitle {
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 13px;
}

.navigation {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 42px;
}

.navigation-item {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 13px;
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: var(--text-soft);
    text-decoration: none;
    background: transparent;
    cursor: pointer;
    transition:
        color 160ms ease,
        background 160ms ease,
        border-color 160ms ease,
        transform 160ms ease;
}

.navigation-item:not(:disabled):hover {
    color: var(--text);
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.035);
    transform: translateX(2px);
}

.navigation-item.active {
    color: #ffffff;
    border-color: rgba(168, 85, 247, 0.2);
    background:
        linear-gradient(
            90deg,
            rgba(168, 85, 247, 0.18),
            rgba(168, 85, 247, 0.04)
        );
}

.navigation-item:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.navigation-icon {
    display: inline-grid;
    width: 20px;
    place-items: center;
    font-size: 17px;
}

.sidebar-footer {
    margin-top: auto;
}

.connection-card {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.025);
}

.connection-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--text-muted);
    box-shadow: 0 0 0 4px rgba(114, 123, 145, 0.1);
}

.connection-dot.online {
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(54, 211, 153, 0.11);
}

.connection-dot.offline {
    background: var(--danger);
    box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.11);
}

.connection-dot.checking {
    animation: pulse 1.3s infinite;
}

.connection-title {
    font-size: 13px;
    font-weight: 700;
}

.connection-subtitle {
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 11px;
}

.version {
    margin-top: 13px;
    color: var(--text-muted);
    font-size: 11px;
    text-align: center;
}

.main-content {
    width: 100%;
    max-width: 1540px;
    margin: 0 auto;
    padding: 42px 46px 70px;
}

.topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
}

.eyebrow {
    margin-bottom: 9px;
    color: #a78bfa;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 10px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.07;
    letter-spacing: -0.045em;
}

.topbar p,
.section-header p {
    margin-bottom: 0;
    color: var(--text-soft);
    line-height: 1.6;
}

.refresh-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--border-strong);
    border-radius: 13px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.045);
    cursor: pointer;
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        background 160ms ease;
}

.refresh-button:hover {
    border-color: rgba(255, 255, 255, 0.23);
    background: rgba(255, 255, 255, 0.075);
    transform: translateY(-1px);
}

.refresh-button:disabled {
    opacity: 0.55;
    cursor: wait;
    transform: none;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 36px;
}

.summary-card {
    display: flex;
    align-items: center;
    min-height: 104px;
    gap: 15px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    background:
        linear-gradient(
            145deg,
            rgba(23, 27, 41, 0.86),
            rgba(16, 19, 30, 0.86)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.summary-icon {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(167, 139, 250, 0.19);
    border-radius: 14px;
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.09);
}

.summary-label {
    color: var(--text-muted);
    font-size: 12px;
}

.summary-value {
    margin-top: 4px;
    font-size: 23px;
    font-weight: 780;
    letter-spacing: -0.03em;
}

.server-section {
    margin-top: 46px;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.section-header h2 {
    margin-bottom: 5px;
    font-size: 22px;
    letter-spacing: -0.025em;
}

.section-header p {
    font-size: 14px;
}

.last-update {
    color: var(--text-muted);
    font-size: 12px;
    white-space: nowrap;
}

.server-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 390px), 1fr)
    );
    gap: 18px;
}

.server-card {
    --accent: #a855f7;

    position: relative;
    overflow: hidden;
    min-height: 348px;
    padding: 23px;
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background:
        linear-gradient(
            150deg,
            rgba(25, 29, 43, 0.95),
            rgba(14, 17, 27, 0.97)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        var(--shadow);
    transition:
        transform 180ms ease,
        border-color 180ms ease;
}

.server-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    content: "";
    background:
        linear-gradient(
            90deg,
            transparent,
            var(--accent),
            transparent
        );
    opacity: 0.72;
}

.server-card::after {
    position: absolute;
    top: -125px;
    right: -120px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    content: "";
    pointer-events: none;
    background: var(--accent);
    filter: blur(100px);
    opacity: 0.065;
}

.server-card:hover {
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.server-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.server-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.server-identity {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 14px;
}

.game-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid color-mix(
        in srgb,
        var(--accent) 35%,
        transparent
    );
    border-radius: 17px;
    font-size: 24px;
    background: color-mix(
        in srgb,
        var(--accent) 13%,
        transparent
    );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.server-name {
    overflow: hidden;
    margin: 0;
    font-size: 20px;
    font-weight: 780;
    letter-spacing: -0.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.server-game {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: capitalize;
}

.state-badge {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 7px;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 750;
}

.state-badge::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    content: "";
    background: currentColor;
    box-shadow: 0 0 12px currentColor;
}

.state-badge.online {
    color: var(--success);
    background: rgba(54, 211, 153, 0.07);
}

.state-badge.sleeping {
    color: var(--warning);
    background: rgba(245, 185, 66, 0.07);
}

.state-badge.offline {
    color: var(--text-soft);
    background: rgba(174, 182, 202, 0.045);
}

.state-badge.error {
    color: var(--danger);
    background: rgba(251, 113, 133, 0.07);
}

.server-address-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
    margin-top: 24px;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.13);
}

.server-address {
    overflow: hidden;
    min-width: 0;
    color: var(--text-soft);
    font-family:
        "Cascadia Code",
        "SFMono-Regular",
        Consolas,
        monospace;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-button {
    flex: 0 0 auto;
    padding: 6px 9px;
    border: 0;
    border-radius: 9px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.045);
    cursor: pointer;
}

.copy-button:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 17px;
}

.metric {
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.018);
}

.metric-label {
    overflow: hidden;
    color: var(--text-muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.metric-value {
    overflow: hidden;
    margin-top: 5px;
    font-size: 13px;
    font-weight: 720;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.companion-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 27px;
    margin-top: 16px;
}

.companion-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 10px;
    background: rgba(255, 255, 255, 0.018);
}

.companion-chip::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    content: "";
    background: var(--text-muted);
}

.companion-chip.active::before {
    background: var(--success);
}

.server-actions {
    display: flex;
    gap: 9px;
    margin-top: auto;
    padding-top: 20px;
}

.action-button {
    display: inline-flex;
    min-height: 42px;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid var(--border-strong);
    border-radius: 13px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.045);
    cursor: pointer;
    transition:
        background 150ms ease,
        border-color 150ms ease,
        transform 150ms ease;
}

.action-button:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.075);
    transform: translateY(-1px);
}

.action-button.primary {
    border-color: color-mix(
        in srgb,
        var(--accent) 45%,
        transparent
    );
    background: color-mix(
        in srgb,
        var(--accent) 16%,
        transparent
    );
}

.action-button.danger:hover {
    border-color: rgba(251, 113, 133, 0.34);
    background: rgba(251, 113, 133, 0.09);
}

.action-button:disabled {
    opacity: 0.48;
    cursor: wait;
    transform: none;
}

.loading-card,
.error-card {
    display: grid;
    min-height: 250px;
    place-items: center;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    color: var(--text-soft);
    text-align: center;
    background: var(--surface);
}

.spinner {
    width: 27px;
    height: 27px;
    margin: 0 auto 14px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #a78bfa;
    border-radius: 50%;
    animation: spin 800ms linear infinite;
}

.toast-container {
    position: fixed;
    z-index: 20;
    right: 20px;
    bottom: 20px;
    display: flex;
    width: min(390px, calc(100vw - 40px));
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 14px 16px;
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    color: var(--text);
    background: rgba(19, 23, 35, 0.97);
    box-shadow: var(--shadow);
    animation: toast-in 220ms ease-out;
}

.toast.success {
    border-color: rgba(54, 211, 153, 0.27);
}

.toast.error {
    border-color: rgba(251, 113, 133, 0.35);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    50% {
        opacity: 0.42;
    }
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

@media (max-width: 1100px) {
    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        position: relative;
        height: auto;
        padding: 17px 19px;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .navigation,
    .sidebar-footer {
        display: none;
    }

    .main-content {
        padding: 28px 20px 55px;
    }
}

@media (max-width: 600px) {
    .topbar,
    .section-header {
        align-items: stretch;
        flex-direction: column;
    }

    .refresh-button {
        width: 100%;
    }

    .summary-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .summary-card {
        min-height: 92px;
        padding: 15px;
    }

    .summary-icon {
        display: none;
    }

    .server-card {
        min-height: 360px;
        padding: 19px;
    }

    .metrics {
        grid-template-columns: 1fr 1fr;
    }

    .metric:last-child {
        grid-column: 1 / -1;
    }

    .server-actions {
        flex-wrap: wrap;
    }

    .action-button {
        min-width: calc(50% - 5px);
    }

    .last-update {
        white-space: normal;
    }
}


/* GAMEHUB_SERVER_DETAIL_STYLES */

.action-button {
    text-decoration: none;
}

.detail-page {
    position: relative;
    z-index: 1;
    width: min(1500px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    padding: 34px 42px 70px;
}

.back-link {
    display: inline-flex;
    margin-bottom: 22px;
    color: var(--text-soft);
    font-size: 13px;
    text-decoration: none;
}

.back-link:hover {
    color: var(--text);
}

.detail-header-card {
    --accent: #a855f7;

    position: relative;
    overflow: hidden;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background:
        linear-gradient(
            145deg,
            rgba(25, 29, 43, 0.96),
            rgba(14, 17, 27, 0.97)
        );
    box-shadow: var(--shadow);
}

.detail-header-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    content: "";
    background:
        linear-gradient(
            90deg,
            transparent,
            var(--accent),
            transparent
        );
}

.detail-header-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
}

.detail-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.detail-title-row h1 {
    margin-bottom: 0;
}

.detail-header-content p {
    margin-top: 9px;
    margin-bottom: 0;
    color: var(--text-muted);
}

.detail-actions {
    display: flex;
    min-width: 270px;
    gap: 9px;
}

.detail-metrics {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 11px;
    margin-top: 27px;
}

.detail-metric {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.022);
}

.detail-metric span {
    display: block;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-metric strong {
    display: block;
    overflow: hidden;
    margin-top: 7px;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(290px, 370px) minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    margin-top: 18px;
}

.detail-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.detail-panel {
    overflow: hidden;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    background:
        linear-gradient(
            145deg,
            rgba(22, 26, 39, 0.92),
            rgba(14, 17, 27, 0.94)
        );
}

.detail-panel-header h2,
.logs-toolbar h2 {
    margin-bottom: 0;
    font-size: 19px;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 18px;
}

.service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.02);
}

.service-name {
    font-size: 13px;
    font-weight: 700;
    text-transform: capitalize;
}

.service-role {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 10px;
}

.service-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 11px;
}

.service-status::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    content: "";
    background: currentColor;
}

.service-status.active {
    color: var(--success);
}

.detail-address-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 17px;
}

.detail-address-row code {
    overflow: hidden;
    min-width: 0;
    flex: 1;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-soft);
    background: rgba(0, 0, 0, 0.16);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logs-panel {
    min-width: 0;
    padding: 0;
}

.logs-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 21px 22px 17px;
    border-bottom: 1px solid var(--border);
}

.logs-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.log-select {
    min-height: 42px;
    max-width: 260px;
    padding: 0 34px 0 12px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    color: var(--text);
    background: var(--surface-solid);
}

.log-meta {
    padding: 10px 22px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 11px;
}

.log-output {
    height: 590px;
    margin: 0;
    overflow: auto;
    padding: 19px 22px;
    color: #cbd5e1;
    background: rgba(3, 5, 9, 0.66);
    font-family:
        "Cascadia Code",
        "SFMono-Regular",
        Consolas,
        monospace;
    font-size: 11px;
    line-height: 1.6;
    tab-size: 4;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 1180px) {
    .detail-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-column {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .detail-page {
        padding: 24px 17px 50px;
    }

    .detail-header-content,
    .logs-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .detail-actions {
        width: 100%;
        min-width: 0;
    }

    .detail-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-column {
        display: flex;
    }

    .logs-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .log-select {
        width: 100%;
        max-width: none;
    }

    .log-output {
        height: 480px;
    }
}


/* GAMEHUB_LAYOUT_REFINEMENT */

.page-subtitle {
    margin-top: 0;
    margin-bottom: 0;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.6;
}

.login-button {
    display: flex;
    width: 100%;
    min-height: 58px;
    align-items: center;
    gap: 12px;
    padding: 8px 11px;
    border: 1px solid var(--border);
    border-radius: 15px;
    color: var(--text);
    text-align: left;
    background:
        linear-gradient(
            145deg,
            rgba(27, 31, 46, 0.9),
            rgba(17, 20, 31, 0.9)
        );
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        background 160ms ease;
}

.login-button:hover {
    border-color: rgba(167, 139, 250, 0.32);
    background:
        linear-gradient(
            145deg,
            rgba(35, 39, 56, 0.94),
            rgba(21, 24, 37, 0.94)
        );
    transform: translateY(-1px);
}

.login-button-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(167, 139, 250, 0.25);
    border-radius: 12px;
    color: #c4b5fd;
    font-size: 18px;
    background: rgba(139, 92, 246, 0.1);
}

.login-button-text {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.login-button-text strong {
    font-size: 13px;
    font-weight: 750;
}

.login-button-text small {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 10px;
}

.detail-subtitle {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 9px;
}

.detail-subtitle .page-subtitle {
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 650;
}

.detail-technical-context {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 11px;
}

.detail-technical-context::before {
    margin-right: 9px;
    color: var(--text-muted);
    content: "•";
}

@media (max-width: 820px) {
    .login-button {
        width: auto;
        min-width: 190px;
    }
}

@media (max-width: 600px) {
    .detail-subtitle {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .detail-technical-context::before {
        display: none;
    }
}


/* GAMEHUB_SHARED_PAGE_RHYTHM */

.gamehub-page-header {
    width: 100%;
    margin: 0 0 24px;
    padding: 0;
}

.gamehub-page-header .eyebrow {
    margin-top: 0;
    margin-bottom: 6px;
}

.gamehub-page-header h1 {
    margin-top: 0;
    margin-bottom: 4px;
}

.gamehub-page-header .page-subtitle {
    margin-top: 0;
    margin-bottom: 0;
}

.gamehub-page-content {
    margin-top: 0 !important;
}


/* GAMEHUB_DASHBOARD_DISK_STORAGE_STYLE */

.gamehub-disk-summary-card {
    position: relative;
    display: block !important;
    overflow: hidden;
}

.gamehub-disk-summary-card::after {
    position: absolute;
    top: -44px;
    right: -44px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    content: "";
    background:
        rgba(139, 92, 246, 0.09);
    filter: blur(4px);
    pointer-events: none;
}

.gamehub-disk-summary {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 11px;
    min-width: 0;
}

.gamehub-disk-summary-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    color:
        var(--text-muted, #94a3b8);
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.gamehub-disk-summary-icon {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    color:
        var(--text-soft, #e2e8f0);
    border: 1px solid
        rgba(167, 139, 250, 0.16);
    border-radius: 8px;
    background:
        rgba(139, 92, 246, 0.07);
    font-size: 0.9rem;
}

.gamehub-disk-summary-value {
    overflow: hidden;
    font-size:
        clamp(1.05rem, 1.7vw, 1.48rem);
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gamehub-disk-summary-progress {
    overflow: hidden;
    width: 100%;
    height: 7px;
    border-radius: 999px;
    background:
        rgba(255, 255, 255, 0.07);
}

.gamehub-disk-summary-progress-bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(
            90deg,
            rgba(124, 58, 237, 0.95),
            rgba(167, 139, 250, 0.95)
        );
    box-shadow:
        0 0 12px
        rgba(139, 92, 246, 0.32);
    transition:
        width 450ms ease,
        background 180ms ease;
}

.gamehub-disk-summary-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 12px;
    color:
        var(--text-muted, #94a3b8);
    font-size: 0.76rem;
}

.gamehub-disk-summary-card[
    data-state="warning"
]
.gamehub-disk-summary-progress-bar {
    background:
        linear-gradient(
            90deg,
            #d97706,
            #fbbf24
        );
}

.gamehub-disk-summary-card[
    data-state="critical"
]
.gamehub-disk-summary-progress-bar,
.gamehub-disk-summary-card[
    data-state="error"
]
.gamehub-disk-summary-progress-bar {
    background:
        linear-gradient(
            90deg,
            #dc2626,
            #f87171
        );
}


/* GAMEHUB_DASHBOARD_CARD_UNIFIED_STYLE */

/*
 * Die Regeln verändern weder Raster noch Maße,
 * Außenabstände, Innenabstände oder Kartenposition.
 */
.gamehub-summary-unified-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-color:
        rgba(255, 255, 255, 0.075)
        !important;
    background:
        linear-gradient(
            145deg,
            rgba(139, 92, 246, 0.075),
            rgba(255, 255, 255, 0.022)
        ) !important;
    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.025)
        !important;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.gamehub-summary-unified-card::before {
    position: absolute;
    z-index: 0;
    top: -70px;
    right: -45px;
    width: 145px;
    height: 145px;
    border-radius: 50%;
    content: "";
    background:
        rgba(139, 92, 246, 0.08);
    filter: blur(12px);
    pointer-events: none;
}

.gamehub-summary-unified-card
> *:not(
    .gamehub-summary-card-icon
):not(
    .gamehub-ram-summary-progress
) {
    position: relative;
    z-index: 2;
}

.gamehub-summary-unified-card:hover {
    border-color:
        rgba(167, 139, 250, 0.17)
        !important;
    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.035),
        0 0 22px
        rgba(139, 92, 246, 0.045)
        !important;
}

/*
 * Einheitliches Symbol im Stil des Icons
 * der Festplattenspeicher-Kachel.
 */
.gamehub-summary-card-icon {
    position: absolute;
    z-index: 1;
    top: 13px;
    right: 14px;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color:
        var(--text-soft, #e2e8f0);
    border: 1px solid
        rgba(167, 139, 250, 0.18);
    border-radius: 10px;
    background:
        rgba(139, 92, 246, 0.075);
    font-size: 0.95rem;
    font-weight: 750;
    line-height: 1;
    pointer-events: none;
}

/*
 * RAM-Balken liegt absolut innerhalb der Karte.
 * Dadurch bleiben Kartenhöhe und Raster unverändert.
 */
.gamehub-ram-summary-progress {
    position: absolute;
    z-index: 3;
    right: 16px;
    bottom: 13px;
    left: 16px;
    overflow: hidden;
    height: 7px;
    border-radius: 999px;
    background:
        rgba(255, 255, 255, 0.07);
    pointer-events: none;
}

.gamehub-ram-summary-progress-bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(
            90deg,
            rgba(124, 58, 237, 0.96),
            rgba(167, 139, 250, 0.96)
        );
    box-shadow:
        0 0 12px
        rgba(139, 92, 246, 0.3);
    transition:
        width 450ms ease,
        background 180ms ease;
}

.gamehub-summary-unified-card[
    data-ram-state="warning"
]
.gamehub-ram-summary-progress-bar {
    background:
        linear-gradient(
            90deg,
            #d97706,
            #fbbf24
        );
}

.gamehub-summary-unified-card[
    data-ram-state="critical"
]
.gamehub-ram-summary-progress-bar {
    background:
        linear-gradient(
            90deg,
            #dc2626,
            #f87171
        );
}

.gamehub-ram-summary-progress[
    data-state="unknown"
] {
    opacity: 0.35;
}


/* GAMEHUB_DASHBOARD_STORAGE_ALIGNMENT_STYLE */

/*
 * Alte eigene Dekoration der Festplattenkachel
 * deaktivieren. Die gemeinsame Kachelgestaltung
 * übernimmt Hintergrund, Rahmen und Glow.
 */
#dashboard-disk-storage::after {
    display: none !important;
}

#dashboard-disk-storage.gamehub-disk-summary-card {
    display: block !important;
    border-color:
        rgba(255, 255, 255, 0.075)
        !important;
    background:
        linear-gradient(
            145deg,
            rgba(139, 92, 246, 0.075),
            rgba(255, 255, 255, 0.022)
        ) !important;
    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.025)
        !important;
}

/*
 * Die innere Grid-Struktur wird aufgehoben.
 * Dadurch verhalten sich Überschrift und Wert
 * wie die Inhalte der übrigen Dashboard-Karten.
 */
#dashboard-disk-storage
.gamehub-disk-summary {
    position: static;
    display: block;
    min-width: 0;
}

/*
 * Das bisher links neben der Überschrift
 * angezeigte Icon wird entfernt.
 */
#dashboard-disk-storage
.gamehub-disk-summary-icon {
    display: none !important;
}

/*
 * Überschrift oben links an derselben Stelle
 * wie bei den übrigen Karten.
 */
#dashboard-disk-storage
.gamehub-disk-summary-heading {
    display: block;
    margin: 0;
}

#dashboard-disk-storage
.gamehub-disk-summary-label {
    display: block;
    max-width:
        calc(100% - 46px);
    margin: 0;
    color:
        var(--text-muted, #94a3b8);
    font-size: 0.76rem;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

/*
 * Speicherwert direkt unter der Überschrift.
 */
#dashboard-disk-storage
.gamehub-disk-summary-value {
    display: block;
    overflow: hidden;
    max-width:
        calc(100% - 38px);
    margin-top: 10px;
    color:
        inherit;
    font-size:
        clamp(
            1.05rem,
            1.7vw,
            1.48rem
        );
    font-weight: 750;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/*
 * Der Fortschrittsbalken nutzt exakt dieselben
 * Koordinaten und dieselbe Höhe wie der RAM-Balken.
 */
#dashboard-disk-storage
.gamehub-disk-summary-progress {
    position: absolute;
    z-index: 3;
    right: 16px;
    bottom: 13px;
    left: 16px;
    overflow: hidden;
    width: auto;
    height: 7px;
    margin: 0;
    border-radius: 999px;
    background:
        rgba(255, 255, 255, 0.07);
    pointer-events: none;
}

#dashboard-disk-storage
.gamehub-disk-summary-progress-bar {
    display: block;
    height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(
            90deg,
            rgba(124, 58, 237, 0.96),
            rgba(167, 139, 250, 0.96)
        );
    box-shadow:
        0 0 12px
        rgba(139, 92, 246, 0.3);
}

/*
 * Die beiden bisherigen Zusatztexte
 * „belegt“ und „frei“ werden auf dem Dashboard
 * ausgeblendet, damit die Kachel denselben Aufbau
 * wie die RAM-Kachel erhält.
 */
#dashboard-disk-storage
.gamehub-disk-summary-meta {
    display: none !important;
}

/*
 * Warn- und Kritisch-Farben bleiben erhalten.
 */
#dashboard-disk-storage[
    data-state="warning"
]
.gamehub-disk-summary-progress-bar {
    background:
        linear-gradient(
            90deg,
            #d97706,
            #fbbf24
        );
}

#dashboard-disk-storage[
    data-state="critical"
]
.gamehub-disk-summary-progress-bar,
#dashboard-disk-storage[
    data-state="error"
]
.gamehub-disk-summary-progress-bar {
    background:
        linear-gradient(
            90deg,
            #dc2626,
            #f87171
        );
}
