body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top, #0d2740 0%, #06111d 45%, #03070c 100%);
    color: #e8eef8;
    font-family: "Segoe UI", Arial, sans-serif;
}

.page-shell {
    min-height: 100vh;
    margin: 0 auto;
    max-width: 1600px;
    background: rgba(3, 10, 18, 0.62);
    border-left: 1px solid rgba(39, 122, 255, 0.16);
    border-right: 1px solid rgba(39, 122, 255, 0.16);
}

.hub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 38px;
    border-bottom: 1px solid rgba(48, 130, 255, 0.25);
    background: linear-gradient(90deg, rgba(3, 10, 18, 0.95), rgba(6, 22, 36, 0.9));
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo-box {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 46px;
    font-weight: 900;
    color: white;
    background: linear-gradient(135deg, #0d6efd, #00c2ff);
    box-shadow: 0 0 35px rgba(13, 110, 253, 0.45);
}

.brand-area h1 {
    font-size: 46px;
    font-weight: 800;
    margin: 0;
    letter-spacing: 1px;
}

.brand-area h1 span,
.intro h2 span {
    color: #2387ff;
}

.brand-area p,
.status-card p,
.hub-footer p {
    margin: 0;
    color: #b8c4d6;
}

.status-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    border: 1px solid rgba(48, 130, 255, 0.28);
    border-radius: 12px;
    min-width: 320px;
    background: rgba(8, 20, 35, 0.85);
}

.status-card strong {
    color: #21dc72;
}

.status-dot {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #21dc72;
    box-shadow: 0 0 0 12px rgba(33, 220, 114, 0.12), 0 0 25px rgba(33, 220, 114, 0.7);
}

.open-modules-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 38px;
    background: rgba(8, 20, 35, 0.92);
    border-bottom: 1px solid rgba(48, 130, 255, 0.22);
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
}

.open-modules-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-weight: 700;
    white-space: nowrap;
}

.open-modules-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.open-module-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 13px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.78);
    color: #dbeafe;
}

.open-module-pill a {
    color: #dbeafe;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.home-pill {
    background: rgba(13, 110, 253, 0.18);
    border-color: rgba(13, 110, 253, 0.35);
}

.active-module-pill {
    background: rgba(33, 220, 114, 0.12);
    border-color: rgba(33, 220, 114, 0.35);
}

.active-module-pill button {
    border: 0;
    background: transparent;
    color: #94a3b8;
    padding: 0;
    cursor: pointer;
}

.active-module-pill button:hover {
    color: #ffffff;
}

.clear-open-modules {
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.82);
    color: #cbd5e1;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    white-space: nowrap;
}

.clear-open-modules:hover {
    background: rgba(220, 38, 38, 0.18);
    border-color: rgba(220, 38, 38, 0.45);
    color: #ffffff;
}

.hub-main {
    padding: 62px 36px;
}

.intro {
    text-align: center;
    margin-bottom: 42px;
}

.intro h2 {
    font-size: 36px;
    font-weight: 800;
}

.intro p {
    font-size: 20px;
    color: #cbd5e1;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.module-card {
    text-decoration: none;
    color: #e8eef8;
    min-height: 450px;
    padding: 22px 28px 32px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(14, 31, 50, 0.88), rgba(7, 18, 31, 0.94));
    border: 1px solid rgba(48, 130, 255, 0.28);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
    transition: 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.module-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 55px rgba(13, 110, 253, 0.22);
    color: #fff;
}

.module-card.module-opened {
    border-color: rgba(33, 220, 114, 0.48) !important;
    box-shadow: 0 18px 55px rgba(33, 220, 114, 0.12);
}

.module-runtime-status {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.18);
    font-size: 12px;
    color: #cbd5e1;
    margin-bottom: 18px;
}

.runtime-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.runtime-dot.inactive {
    background: #64748b;
    box-shadow: 0 0 10px rgba(100, 116, 139, 0.45);
}

.runtime-dot.active {
    background: #21dc72;
    box-shadow: 0 0 12px rgba(33, 220, 114, 0.75);
}

.icon-circle {
    width: 138px;
    height: 138px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 48px;
    border: 1px solid currentColor;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 28px;
}

.module-card h3 {
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.card-line {
    width: 125px;
    height: 2px;
    opacity: 0.75;
    margin-bottom: 28px;
}

.module-card p {
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.5;
    flex: 1;
}

.card-footer-area {
    width: 100%;
}

.badge-status {
    display: block;
    margin-bottom: 14px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px;
    border-radius: 10px;
}

.btn-purple {
    background: #7c3aed;
    border-color: #7c3aed;
    color: white;
}

.text-purple {
    color: #9b5cff !important;
}

.border-purple {
    border-color: rgba(155, 92, 255, 0.65) !important;
}

.bg-purple {
    background: #9b5cff !important;
}

.btn-cyan {
    background: #06b6d4;
    border-color: #06b6d4;
    color: white;
}

.text-cyan {
    color: #22d3ee !important;
}

.border-cyan {
    border-color: rgba(34, 211, 238, 0.65) !important;
}

.bg-cyan {
    background: #22d3ee !important;
}

.future-box {
    margin-top: 42px;
    padding: 24px;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.55);
}

.future-box h4 {
    color: #cbd5e1;
}

.future-box p {
    color: #94a3b8;
}

.future-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.future-flags span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.18);
    font-size: 13px;
}

.hub-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 38px;
    border-top: 1px solid rgba(48, 130, 255, 0.25);
    background: rgba(3, 10, 18, 0.85);
}

.version {
    text-align: right;
    color: #cbd5e1;
}

.version i {
    font-size: 30px;
    color: #94a3b8;
}

.placeholder-page {
    padding: 42px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(48, 130, 255, 0.25);
}

@media (max-width: 850px) {
    .hub-header,
    .hub-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
    }

    .status-card {
        min-width: 100%;
    }

    .brand-area h1 {
        font-size: 34px;
    }

    .open-modules-bar {
        padding: 14px 18px;
        align-items: flex-start;
        flex-direction: column;
    }

    .clear-open-modules {
        align-self: flex-start;
    }
}
