/* =========================================================
   PSJ HUB
   ========================================================= */

.psj-hub-button {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;

    height: 34px;
    margin: 4px 8px;

    padding: 0 11px;

    border: 1px solid #d8d8d8 !important;
    border-radius: 8px !important;

    background: #ffffff !important;
    color: #111111 !important;

    cursor: pointer;

    font-size: 13px;
    font-weight: 600;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}

.psj-hub-button:hover {
    background: #f5f5f5 !important;
    border-color: #111111 !important;
    transform: translateY(-1px);
}

.psj-hub-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 23px;
    height: 23px;

    border-radius: 6px;

    background: #111111;
    color: #ffffff;

    font-size: 12px;
    font-weight: 700;
}

.psj-hub-button-text {
    white-space: nowrap;
}


/* =========================================================
   OVERLAY
   ========================================================= */

.psj-hub-overlay {
    position: fixed;

    inset: 0;

    z-index: 99999;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 24px;

    background: rgba(0, 0, 0, 0.42);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.18s ease,
        visibility 0.18s ease;

    backdrop-filter: blur(4px);
}

.psj-hub-overlay.show {
    opacity: 1;
    visibility: visible;
}

body.psj-hub-open {
    overflow: hidden !important;
}


/* =========================================================
   MODAL
   ========================================================= */

.psj-hub-modal {
    width: min(1050px, 96vw);
    max-height: 90vh;

    overflow: auto;

    background: #ffffff;

    border: 1px solid #e4e4e4;

    border-radius: 18px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.22);

    transform: translateY(14px) scale(0.985);

    transition: transform 0.18s ease;
}

.psj-hub-overlay.show .psj-hub-modal {
    transform: translateY(0) scale(1);
}


/* =========================================================
   HEADER
   ========================================================= */

.psj-hub-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 22px 24px 18px;

    border-bottom: 1px solid #eeeeee;
}

.psj-hub-title {
    font-size: 24px;
    line-height: 1.1;

    font-weight: 750;

    color: #111111;
}

.psj-hub-subtitle {
    margin-top: 5px;

    font-size: 13px;

    color: #777777;
}

.psj-hub-close {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    border: 1px solid #e2e2e2;
    border-radius: 10px;

    background: #ffffff;

    color: #111111;

    font-size: 25px;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.psj-hub-close:hover {
    background: #f4f4f4;
    border-color: #111111;
}


/* =========================================================
   GRID
   ========================================================= */

.psj-hub-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 12px;

    padding: 22px;
}


/* =========================================================
   CARD
   ========================================================= */

.psj-hub-card {
    position: relative;

    display: flex;

    align-items: center;

    min-height: 88px;

    padding: 14px;

    gap: 12px;

    border: 1px solid #e7e7e7;

    border-radius: 13px;

    background: #ffffff;

    color: #111111 !important;

    text-decoration: none !important;

    transition:
        transform 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.psj-hub-card:hover {
    transform: translateY(-3px);

    border-color: #111111;

    background: #fafafa;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.08);
}

.psj-hub-card.central {
    border-color: #111111;
}

.psj-hub-card.digital {
    border-color: #999999;
}

.psj-hub-card-icon {
    flex: 0 0 auto;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 45px;
    height: 45px;

    border-radius: 11px;

    background: #111111;

    color: #ffffff;

    font-size: 18px;
    font-weight: 750;
}

.psj-hub-card.digital .psj-hub-card-icon {
    background: #444444;
}

.psj-hub-card-content {
    min-width: 0;
    flex: 1;
}

.psj-hub-card-name {
    overflow: hidden;

    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 14px;
    font-weight: 700;

    color: #111111;
}

.psj-hub-card-subtitle {
    margin-top: 4px;

    overflow: hidden;

    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 11px;

    color: #777777;
}

.psj-hub-arrow {
    flex: 0 0 auto;

    font-size: 18px;

    color: #999999;

    transition:
        color 0.15s ease,
        transform 0.15s ease;
}

.psj-hub-card:hover .psj-hub-arrow {
    color: #111111;
    transform: translate(2px, -2px);
}


/* =========================================================
   FOOTER
   ========================================================= */

.psj-hub-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 14px 22px;

    border-top: 1px solid #eeeeee;

    font-size: 11px;

    color: #888888;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .psj-hub-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}

@media (max-width: 650px) {

    .psj-hub-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        padding: 14px;
    }

    .psj-hub-header {
        padding: 18px;
    }

    .psj-hub-modal {
        width: 98vw;
        border-radius: 14px;
    }

    .psj-hub-button-text {
        display: none;
    }

}

@media (max-width: 420px) {

    .psj-hub-grid {
        grid-template-columns: 1fr;
    }

}

/* =================================================
   PSJ HUB
   ================================================= */

.psj-hub-button {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.psj-hub-button:hover {
    background: rgba(0,0,0,.06);
}

.psj-hub-button-icon,
.psj-hub-floating-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: #fff;
    border-radius: 7px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: -.4px;
}

.psj-hub-floating-button {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9998;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px 15px;

    border: 1px solid rgba(0,0,0,.10);
    border-radius: 12px;

    background: #fff;
    color: #111;

    box-shadow: 0 8px 30px rgba(0,0,0,.14);

    font-weight: 700;
    cursor: pointer;

    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.psj-hub-floating-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0,0,0,.18);
}

/* Overlay */

.psj-hub-overlay {
    position: fixed;
    inset: 0;

    z-index: 10000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 25px;

    background: rgba(0,0,0,.48);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .18s ease,
        visibility .18s ease;
}

.psj-hub-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Modal */

.psj-hub-modal {
    width: min(920px, 96vw);
    max-height: 88vh;

    overflow-y: auto;

    background: #fff;
    color: #111;

    border-radius: 20px;

    box-shadow:
        0 30px 90px rgba(0,0,0,.28);

    transform: translateY(14px) scale(.98);

    transition: transform .18s ease;
}

.psj-hub-overlay.show .psj-hub-modal {
    transform: translateY(0) scale(1);
}

/* Header */

.psj-hub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 24px 26px 20px;

    border-bottom: 1px solid #eee;
}

.psj-hub-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.5px;
}

.psj-hub-subtitle {
    margin-top: 4px;
    color: #777;
    font-size: 13px;
}

.psj-hub-close {
    width: 38px;
    height: 38px;

    border: 0;
    border-radius: 10px;

    background: #f3f3f3;
    color: #111;

    font-size: 26px;
    line-height: 1;

    cursor: pointer;
}

.psj-hub-close:hover {
    background: #e9e9e9;
}

/* Cards */

.psj-hub-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;

    padding: 22px;
}

.psj-hub-card {
    display: flex;
    align-items: center;
    gap: 12px;

    min-height: 82px;

    padding: 14px;

    border: 1px solid #e7e7e7;
    border-radius: 14px;

    background: #fff;
    color: #111;

    text-decoration: none !important;

    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.psj-hub-card:hover {
    transform: translateY(-2px);

    border-color: #111;

    box-shadow:
        0 8px 24px rgba(0,0,0,.08);
}

.psj-hub-card-icon {
    flex: 0 0 auto;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #111;
    color: #fff;

    font-size: 12px;
    font-weight: 800;
}

.psj-hub-card-content {
    min-width: 0;
    flex: 1;
}

.psj-hub-card-name {
    font-size: 15px;
    font-weight: 750;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.psj-hub-card-subtitle {
    margin-top: 4px;

    color: #888;

    font-size: 12px;
}

.psj-hub-arrow {
    font-size: 20px;
    color: #999;
}

/* Mobile */

@media (max-width: 768px) {

    .psj-hub-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .psj-hub-modal {
        width: 96vw;
        max-height: 90vh;
        border-radius: 16px;
    }

    .psj-hub-header {
        padding: 18px;
    }

    .psj-hub-title {
        font-size: 21px;
    }

    .psj-hub-floating-button {
        right: 14px;
        bottom: 14px;
    }
}

