 /* =========================================================
   GLOBAL
========================================================= */
html,
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f4f7fb;
    color: #1f2937;
}

body {
    min-height: 100vh;
}

a {
    text-decoration: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
}


/* =========================================================
   APPLICATION SHELL
========================================================= */

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


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

.main-header {
    min-height: 74px;
    background: linear-gradient( 135deg, #ffffff 0%, #f8fbff 100% );
    border-bottom: 1px solid #dbe4ef;
    display: flex;
    align-items: center;
    padding: 0 28px;
    gap: 25px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.07);
}


/* =========================================================
   BRAND
========================================================= */

.brand-section {
    flex: 0 0 auto;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #0b4f6c;
    white-space: nowrap;
}

    .brand-link:hover {
        color: #083c52;
    }

.brand-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0b4f6c;
}

.brand-subtitle {
    margin-top: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.02em;
}


/* =========================================================
   MAIN NAVIGATION
========================================================= */

.main-navigation {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 13px;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}

    .nav-link:hover {
        color: #0b4f6c;
        background: #eef6fb;
    }

.nav-icon {
    font-size: 0.95rem;
    line-height: 1;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-button {
    border: 0;
    background: transparent;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 13px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

    .nav-dropdown-button:hover {
        background: #eef6fb;
        color: #0b4f6c;
    }

.dropdown-arrow {
    font-size: 0.75rem;
}


/* =========================================================
   DROPDOWN MENU
========================================================= */

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 245px;
    background: #ffffff;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.15);
    padding: 8px;
    display: none;
    z-index: 2000;
}

/* Keep the menu open while moving the mouse into it */
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
}
/*.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    min-width: 245px;
    background: #ffffff;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.15);
    padding: 8px;
    display: none;
    z-index: 2000;
}*/


/*
   Keep dropdown open when mouse is over either
   the Administration button or the menu.
*/
.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.dropdown-link {
    display: block;
    padding: 10px 12px;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 7px;
    transition: background 0.15s ease, color 0.15s ease;
}

    .dropdown-link:hover {
        background: #eef6fb;
        color: #0b4f6c;
    }

.dropdown-divider {
    height: 1px;
    background: #e5eaf0;
    margin: 7px 4px;
}

.dropdown-section-title {
    display: block;
    padding: 7px 12px 5px;
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


/* =========================================================
   USER AREA
========================================================= */

.user-area {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    flex: 0 0 auto;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 9px;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0b4f6c, #1976a8);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 0.9rem;
    font-weight: 800;
}

.user-details {
    min-width: 0;
}

.user-name {
    color: #1e293b;
    font-size: 0.83rem;
    font-weight: 800;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-role {
    margin-top: 2px;
    color: #64748b;
    font-size: 0.7rem;
}

.logout-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 8px 10px;
    border-radius: 7px;
    transition: background 0.15s ease, color 0.15s ease;
}

    .logout-link:hover {
        color: #b42318;
        background: #fff1f0;
    }


/* =========================================================
   MAIN CONTENT
========================================================= */

.main-content {
    flex: 1;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 30px 34px 50px;
    box-sizing: border-box;
}


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

.main-footer {
    min-height: 52px;
    border-top: 1px solid #dbe4ef;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 34px;
    color: #64748b;
    font-size: 0.76rem;
}


/* =========================================================
   GENERAL BOOTSTRAP-LIKE HELPERS
========================================================= */

.card {
    border: 0;
    border-radius: 12px;
}

.table {
    background: #ffffff;
}

.btn {
    border-radius: 7px;
}


/* =========================================================
   REGISTRATION WIZARD
========================================================= */

.registration-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 0 50px;
}

.registration-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 28px;
}

.registration-eyebrow,
.section-kicker,
.group-kicker {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    color: #6c757d;
}

.registration-header h1 {
    font-weight: 800;
    margin: .25rem 0;
}

.registration-header p {
    color: #6c757d;
    margin: 0;
}

.company-badge {
    background: #f1f5f9;
    border: 1px solid #dee2e6;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    white-space: nowrap;
}

.registration-steps {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
}

.registration-step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    position: relative;
}

    .registration-step:not(:last-child)::after {
        content: "";
        height: 2px;
        background: #dee2e6;
        flex: 1;
        margin: 0 10px;
    }

    .registration-step.active,
    .registration-step.completed {
        color: #0d6efd;
    }

.step-number {
    width: 32px;
    height: 32px;
    border: 2px solid #ced4da;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    background: #fff;
    flex: 0 0 32px;
}

.active .step-number,
.completed .step-number {
    border-color: #0d6efd;
}

.step-label {
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
}

.registration-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, .06);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 24px;
}

    .section-heading h2 {
        font-weight: 800;
        margin: 4px 0 5px;
    }

    .section-heading p {
        color: #6c757d;
        margin: 0;
    }

.selection-count,
.group-count {
    font-size: .8rem;
    font-weight: 700;
    background: #eef5ff;
    color: #0d6efd;
    border-radius: 999px;
    padding: 6px 10px;
    white-space: nowrap;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.choice-card {
    position: relative;
    text-align: left;
    border: 2px solid #e2e8f0;
    background: #fff;
    border-radius: 15px;
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    cursor: pointer;
    transition: .15s;
}

    .choice-card:hover,
    .choice-card.selected {
        border-color: #0d6efd;
        box-shadow: 0 8px 24px rgba(13, 110, 253, .1);
    }

.choice-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #eef5ff;
    display: grid;
    place-items: center;
    font-size: 23px;
    flex: 0 0 48px;
}

.choice-card h3 {
    margin: 0 0 2px;
    font-weight: 800;
}

.choice-card p {
    margin: 0 0 7px;
    color: #0d6efd;
    font-weight: 700;
}

.choice-card span {
    color: #6c757d;
    font-size: .9rem;
}

.choice-radio {
    margin-left: auto;
    width: 22px;
    height: 22px;
    border: 2px solid #adb5bd;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: 0 0 22px;
}

.choice-card.selected .choice-radio {
    border-color: #0d6efd;
}

    .choice-card.selected .choice-radio span {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #0d6efd;
    }

.selection-hint {
    margin-top: 18px;
    padding: 12px 14px;
    background: #fff8e1;
    border: 1px solid #ffe69c;
    border-radius: 10px;
    color: #664d03;
}

.radio-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.radio-option,
.check-option {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 13px 15px;
    display: flex;
    align-items: center;
    gap: 11px;
    cursor: pointer;
    background: #fff;
    transition: .15s;
}

    .radio-option:hover,
    .check-option:hover,
    .radio-option.selected,
    .check-option.selected {
        border-color: #0d6efd;
        background: #f8fbff;
    }

    .radio-option input,
    .check-option input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.custom-radio {
    width: 19px;
    height: 19px;
    border: 2px solid #adb5bd;
    border-radius: 50%;
    position: relative;
    flex: 0 0 19px;
}

.radio-option.selected .custom-radio {
    border-color: #0d6efd;
}

    .radio-option.selected .custom-radio::after {
        content: "";
        position: absolute;
        inset: 4px;
        border-radius: 50%;
        background: #0d6efd;
    }

.check-grid,
.item-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.custom-check {
    width: 19px;
    height: 19px;
    border: 2px solid #adb5bd;
    border-radius: 5px;
    display: grid;
    place-items: center;
    font-size: .75rem;
    color: transparent;
    flex: 0 0 19px;
}

.check-option.selected .custom-check {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.check-text {
    font-weight: 600;
}

.group-card {
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    margin-bottom: 18px;
    overflow: hidden;
}

.group-card-header {
    background: #f8fafc;
    padding: 17px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

    .group-card-header h3 {
        margin: 3px 0 0;
        font-weight: 800;
    }

.item-grid {
    padding: 18px;
}

.item-option {
    min-height: 52px;
}

.empty-items {
    padding: 20px;
    color: #6c757d;
}

.form-section {
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    padding: 20px;
    margin-bottom: 20px;
}

    .form-section h3,
    .review-box h3 {
        font-weight: 800;
        margin-bottom: 18px;
    }

.form-label {
    font-weight: 700;
}

    .form-label span {
        color: #dc3545;
    }

.review-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    padding: 20px;
}

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

    .summary-grid > div {
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 12px;
    }

    .summary-grid small {
        display: block;
        color: #6c757d;
    }

    .summary-grid strong {
        display: block;
        margin-top: 4px;
    }

.registration-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.action-spacer {
    flex: 1;
}

.registration-success {
    border-radius: 12px;
    margin-bottom: 22px;
}

.registration-id {
    font-weight: 800;
    font-size: 1.1rem;
    margin-left: 5px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 1100px) {

    .main-header {
        flex-wrap: wrap;
        padding: 12px 20px;
    }

    .brand-section {
        width: auto;
    }

    .main-navigation {
        order: 3;
        width: 100%;
        flex: 0 0 100%;
        overflow-x: auto;
        padding-bottom: 3px;
    }

    .user-area {
        margin-left: auto;
    }

    .main-content {
        padding: 25px 20px 40px;
    }
}

@media (max-width: 768px) {

    .main-header {
        align-items: flex-start;
    }

    .brand-logo {
        width: 50px;
        height: 50px;
    }

    .brand-name {
        font-size: .95rem;
    }

    .brand-subtitle {
        font-size: .66rem;
    }

    .user-details {
        display: none;
    }

    .logout-link span:last-child {
        display: none;
    }

    .main-navigation {
        gap: 2px;
    }

    .nav-link,
    .nav-dropdown-button {
        padding: 9px 10px;
        font-size: .82rem;
    }

    .nav-dropdown-menu {
        position: fixed;
        left: 20px;
        right: 20px;
        top: 125px;
        min-width: 0;
    }

    .main-content {
        padding: 20px 15px 35px;
    }

    .main-footer {
        padding: 15px 20px;
        flex-direction: column;
        gap: 5px;
    }

    .registration-header {
        flex-direction: column;
    }

    .registration-steps {
        overflow: auto;
        padding-bottom: 4px;
    }

    .registration-step {
        min-width: 130px;
    }

    .step-label {
        display: none;
    }

    .choice-grid,
    .radio-list,
    .check-grid,
    .item-grid,
    .summary-grid {
        grid-template-columns: 1fr;
    }

    .registration-card {
        padding: 20px;
    }

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

    .action-spacer {
        display: none;
    }

    .registration-actions button,
    .registration-actions a {
        width: 100%;
    }
}


/* =========================================================
   PUBLIC MEMBER PROFILE
========================================================= */

.public-page {
    min-height: 100vh;
    background: #f3f6fa;
    color: #1e293b;
}

.public-header {
    min-height: 76px;
    padding: 12px max(5%, calc((100% - 1160px) / 2));
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.public-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #0b4f6c;
    text-decoration: none;
}

    .public-brand img {
        width: 52px;
        height: 52px;
        object-fit: contain;
    }

    .public-brand span {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .public-brand strong {
        font-size: 1rem;
        font-weight: 800;
    }

    .public-brand small {
        color: #64748b;
        font-size: .75rem;
    }

.public-header-label {
    color: #64748b;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.public-profile-container {
    width: min(100% - 32px, 1050px);
    margin: 36px auto 55px;
}

.public-profile-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 34px;
    background: linear-gradient(120deg, #083e59, #0b6385);
    border-radius: 18px;
    color: #fff;
    box-shadow: 0 12px 30px rgba(11, 79, 108, .15);
}

.public-profile-avatar {
    width: 94px;
    height: 94px;
    flex: 0 0 94px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.16);
    border: 3px solid rgba(255,255,255,.55);
    color: #fff;
    font-size: 2.3rem;
    font-weight: 800;
}

.public-profile-heading {
    min-width: 0;
}

.public-profile-type {
    display: inline-block;
    margin-bottom: 7px;
    color: #c8e8f5;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .13em;
}

.public-profile-heading h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.public-resource {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
}

.public-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 22px;
}

.public-card {
    min-width: 0;
    padding: 25px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .035);
}

.public-card-wide {
    grid-column: 1 / -1;
}

.public-card-title {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 18px;
}

    .public-card-title h2 {
        margin: 0;
        color: #18364b;
        font-size: 1.12rem;
        font-weight: 800;
    }

.public-card-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #eaf4f9;
    color: #0b6385;
    font-size: 1.1rem;
}

.public-description {
    margin: 0;
    color: #475569;
    line-height: 1.8;
    white-space: pre-line;
}

.public-muted {
    margin: 0;
    color: #94a3b8;
    font-size: .9rem;
}

.public-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.public-group {
    padding: 17px;
    background: #f8fafc;
    border: 1px solid #e8eef4;
    border-radius: 12px;
}

    .public-group h3 {
        margin: 0 0 12px;
        color: #18364b;
        font-size: .98rem;
        font-weight: 800;
    }

.public-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.public-tag {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    background: #e8f3f8;
    color: #0b5877;
    font-size: .8rem;
    font-weight: 700;
}

.public-contact-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #edf1f5;
}

    .public-contact-row:last-child {
        border-bottom: 0;
    }

    .public-contact-row > span {
        color: #64748b;
        font-size: .85rem;
    }

    .public-contact-row strong,
    .public-contact-row a {
        color: #18364b;
        font-size: .88rem;
        font-weight: 700;
        text-align: right;
        overflow-wrap: anywhere;
    }

    .public-contact-row a,
    .public-external-link {
        color: #0875a3;
        text-decoration: none;
    }

        .public-contact-row a:hover,
        .public-external-link:hover {
            text-decoration: underline;
        }

.public-external-link {
    display: inline-flex;
    font-weight: 700;
}

.public-footer {
    min-height: 75px;
    padding: 18px max(5%, calc((100% - 1050px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: .78rem;
}

    .public-footer div {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .public-footer strong {
        color: #0b4f6c;
    }

.public-state-card {
    width: min(100% - 32px, 520px);
    margin: 90px auto;
    padding: 45px 30px;
    text-align: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15,23,42,.06);
}

    .public-state-card h1,
    .public-state-card h2 {
        color: #18364b;
        font-weight: 800;
    }

    .public-state-card p {
        color: #64748b;
    }

.public-not-found-icon {
    width: 55px;
    height: 55px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff1f0;
    color: #c0392b;
    font-size: 1.6rem;
    font-weight: 800;
}

.public-loading-spinner {
    width: 38px;
    height: 38px;
    margin: 0 auto 20px;
    border: 4px solid #dbeaf1;
    border-top-color: #0b6385;
    border-radius: 50%;
    animation: public-spin .8s linear infinite;
}

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


/* =========================================================
   ADMIN MEMBER DIRECTORY
========================================================= */

.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

    .admin-page-header h1 {
        margin: 5px 0;
        color: #18364b;
        font-size: 1.9rem;
        font-weight: 800;
    }

    .admin-page-header p {
        margin: 0;
        color: #64748b;
    }

.page-eyebrow {
    color: #0b7198;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .13em;
}

.admin-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    box-shadow: 0 6px 22px rgba(15,23,42,.045);
}

.member-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid #edf1f5;
}

.member-search {
    position: relative;
    flex: 1;
}

    .member-search .form-control {
        min-height: 43px;
        padding-left: 39px;
        border-color: #dbe4ec;
        border-radius: 9px;
    }

.search-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.2rem;
}

.professional-table {
    margin: 0;
    vertical-align: middle;
}

    .professional-table thead th {
        padding: 15px 16px;
        background: #f8fafc;
        color: #64748b;
        border-bottom: 1px solid #e5eaf0;
        font-size: .7rem;
        font-weight: 800;
        letter-spacing: .06em;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .professional-table tbody td {
        padding: 15px 16px;
        border-color: #edf1f5;
        color: #334155;
        font-size: .86rem;
    }

.member-id {
    color: #64748b;
    font-weight: 700;
}

.member-name-cell {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 175px;
}

    .member-name-cell > div:last-child {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .member-name-cell strong {
        color: #18364b;
        font-size: .88rem;
    }

    .member-name-cell small {
        color: #64748b;
    }

.member-avatar {
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e8f3f8;
    color: #0b6385;
    font-weight: 800;
}

.resource-badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef5f9;
    color: #315d73;
    font-size: .75rem;
    font-weight: 700;
}

.action-buttons {
    display: inline-flex;
    justify-content: flex-end;
    gap: 7px;
    white-space: nowrap;
}

.btn-share {
    color: #0875a3;
    background: #eaf5fa;
    border: 1px solid #d2eaf4;
}

    .btn-share:hover {
        color: #fff;
        background: #0b6385;
        border-color: #0b6385;
    }

.empty-state {
    padding: 65px 20px;
    text-align: center;
}

.empty-state-icon {
    margin-bottom: 12px;
    color: #94a3b8;
    font-size: 2.4rem;
}

.empty-state h3 {
    color: #18364b;
    font-weight: 800;
}

.empty-state p {
    color: #64748b;
}


/* =========================================================
   SHARE DIALOG
========================================================= */

.share-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15,23,42,.55);
}

.share-modal {
    position: relative;
    width: min(100%, 510px);
    padding: 32px;
    background: #fff;
    border-radius: 17px;
    box-shadow: 0 25px 70px rgba(0,0,0,.22);
}

.share-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 1.7rem;
    cursor: pointer;
}

.share-modal-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #eaf4f9;
    color: #0b6385;
    font-size: 1.3rem;
}

.share-modal h2 {
    margin: 0 0 8px;
    color: #18364b;
    font-size: 1.35rem;
    font-weight: 800;
}

.share-modal p {
    color: #64748b;
    font-size: .9rem;
}

.share-url-input {
    min-height: 45px;
    background: #f8fafc;
    font-size: .82rem;
}

.copy-success {
    margin-top: 10px;
    color: #16834a;
    font-size: .83rem;
    font-weight: 700;
}

.share-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}


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

@media (max-width: 768px) {
    .public-profile-hero {
        align-items: flex-start;
        padding: 24px 20px;
        gap: 16px;
    }

    .public-profile-avatar {
        width: 65px;
        height: 65px;
        flex-basis: 65px;
        font-size: 1.7rem;
    }

    .public-profile-grid,
    .public-groups {
        grid-template-columns: 1fr;
    }

    .public-card-wide {
        grid-column: auto;
    }

    .public-card {
        padding: 20px;
    }

    .public-header-label {
        display: none;
    }

    .public-footer,
    .admin-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .member-toolbar {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .member-search {
        flex-basis: 100%;
    }

    .action-buttons {
        flex-wrap: wrap;
    }

    .share-modal-actions {
        flex-direction: column;
    }

        .share-modal-actions > * {
            width: 100%;
            text-align: center;
        }
}


/* =========================================================
   PROFESSIONAL ADMIN DASHBOARD
========================================================= */

.dashboard-page {
    max-width: 1450px;
    margin: 0 auto;
    padding: 12px 0 35px;
    color: #1e293b;
}

.dashboard-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    padding: 35px;
    margin-bottom: 32px;
    border-radius: 17px;
    background: linear-gradient(115deg, #083e59, #0b6385);
    color: #fff;
    box-shadow: 0 12px 28px rgba(11, 79, 108, .14);
}

.dashboard-eyebrow {
    color: #b9ddeb;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
}

.dashboard-welcome h1 {
    margin: 8px 0;
    color: #fff;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
}

.dashboard-welcome p {
    max-width: 650px;
    margin: 0;
    color: #d5e8ef;
    line-height: 1.7;
}

.dashboard-welcome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dashboard-primary-action,
.dashboard-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 17px;
    border-radius: 9px;
    text-decoration: none;
    font-size: .87rem;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-primary-action {
    background: #fff;
    color: #0b5877;
}

    .dashboard-primary-action:hover {
        background: #eaf4f9;
        color: #083e59;
    }

.dashboard-secondary-action {
    border: 1px solid rgba(255,255,255,.45);
    color: #fff;
}

    .dashboard-secondary-action:hover {
        background: rgba(255,255,255,.12);
        color: #fff;
    }

.dashboard-section {
    margin-bottom: 32px;
}

.dashboard-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 17px;
}

    .dashboard-section-heading h2 {
        margin: 0 0 5px;
        color: #18364b;
        font-size: 1.22rem;
        font-weight: 800;
    }

    .dashboard-section-heading p {
        margin: 0;
        color: #64748b;
        font-size: .87rem;
    }

.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
}

.dashboard-stat-card {
    min-width: 0;
    padding: 21px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(15,23,42,.035);
}

.dashboard-stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dashboard-stat-icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 1.2rem;
}

.individual-icon {
    background: #eaf3ff;
}

.organization-icon {
    background: #e9f8f1;
}

.registration-icon {
    background: #f2edff;
}

.company-icon {
    background: #fff5e8;
}

.dashboard-stat-label {
    color: #94a3b8;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.dashboard-stat-number {
    margin-top: 17px;
    color: #18364b;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
}

.dashboard-company-number {
    margin-top: 17px;
    color: #18364b;
    font-size: 1.7rem;
    font-weight: 800;
}

.dashboard-stat-description {
    margin-top: 7px;
    color: #64748b;
    font-size: .8rem;
}

.dashboard-stat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 19px;
    padding-top: 13px;
    border-top: 1px solid #edf1f5;
    color: #0875a3;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
}

    .dashboard-stat-link:hover {
        color: #083e59;
    }

.dashboard-stat-static {
    display: inline-block;
    margin-top: 19px;
    padding-top: 13px;
    border-top: 1px solid #edf1f5;
    width: 100%;
    color: #64748b;
    font-size: .82rem;
}

.dashboard-data-note {
    margin: 13px 0 0;
    color: #64748b;
    font-size: .76rem;
}

    .dashboard-data-note span {
        margin-right: 5px;
    }

.dashboard-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-quick-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 21px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    color: inherit;
    text-decoration: none;
    transition: border-color .15s, transform .15s, box-shadow .15s;
}

    .dashboard-quick-card:hover {
        transform: translateY(-2px);
        border-color: #9bc9dc;
        box-shadow: 0 9px 22px rgba(15,23,42,.07);
        color: inherit;
    }

.dashboard-quick-icon {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 1.25rem;
}

.quick-blue {
    background: #eaf3ff;
    color: #2164a3;
}

.quick-green {
    background: #e9f8f1;
}

.quick-purple {
    background: #f2edff;
}

.dashboard-quick-card h3 {
    margin: 2px 0 6px;
    color: #18364b;
    font-size: .98rem;
    font-weight: 800;
}

.dashboard-quick-card p {
    margin: 0;
    color: #64748b;
    font-size: .8rem;
    line-height: 1.6;
}

.dashboard-quick-arrow {
    margin-left: auto;
    color: #0875a3;
    font-size: 1.15rem;
}

.dashboard-recent-section {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    box-shadow: 0 5px 18px rgba(15,23,42,.035);
}

    .dashboard-recent-section > .dashboard-section-heading {
        padding: 21px 22px 16px;
        margin: 0;
    }

.dashboard-view-all {
    color: #0875a3;
    font-size: .83rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

    .dashboard-view-all:hover {
        text-decoration: underline;
    }

.dashboard-table {
    margin: 0;
    vertical-align: middle;
}

    .dashboard-table thead th {
        padding: 14px 15px;
        background: #f8fafc;
        border-top: 1px solid #edf1f5;
        border-bottom: 1px solid #e5eaf0;
        color: #64748b;
        font-size: .66rem;
        font-weight: 800;
        letter-spacing: .06em;
        white-space: nowrap;
    }

    .dashboard-table tbody td {
        padding: 14px 15px;
        border-color: #edf1f5;
        color: #334155;
        font-size: .82rem;
    }

.dashboard-member-id {
    color: #64748b;
    font-weight: 700;
}

.dashboard-member-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 175px;
}

.dashboard-member-avatar {
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eaf4f9;
    color: #0b6385;
    font-weight: 800;
}

.dashboard-member-cell > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dashboard-member-cell strong {
    color: #18364b;
    font-size: .83rem;
}

.dashboard-member-cell small,
.dashboard-contact-email {
    color: #64748b;
    font-size: .73rem;
}

.dashboard-type-badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    white-space: nowrap;
}

.type-individual {
    background: #eaf3ff;
    color: #2164a3;
}

.type-organization {
    background: #e9f8f1;
    color: #18764b;
}

.dashboard-view-link {
    color: #0875a3;
    font-size: .79rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

    .dashboard-view-link:hover {
        text-decoration: underline;
    }

.dashboard-empty {
    padding: 50px 20px;
    text-align: center;
}

.dashboard-empty-icon {
    margin-bottom: 12px;
    font-size: 2.2rem;
}

.dashboard-empty h3 {
    color: #18364b;
    font-weight: 800;
}

.dashboard-empty p {
    margin-bottom: 18px;
    color: #64748b;
}

.dashboard-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 20px 0 5px;
    color: #94a3b8;
    font-size: .75rem;
}


/* Responsive dashboard */

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

    .dashboard-quick-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-welcome {
        align-items: flex-start;
        flex-direction: column;
        padding: 25px 20px;
    }

    .dashboard-welcome-actions {
        width: 100%;
    }

    .dashboard-primary-action,
    .dashboard-secondary-action {
        flex: 1;
    }

    .dashboard-stat-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-footer {
        flex-direction: column;
    }
}



/* =========================================================
   RESOURCE MANAGEMENT CRUD PAGES
   ========================================================= */

.modal-backdrop-custom {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.delete-dialog {
    width: 100%;
    max-width: 460px;
    border: 0;
    border-radius: 12px;
}

    .delete-dialog .card-body {
        padding: 24px;
    }

.container-fluid > .card,
.container-fluid > .card.mb-4 {
    border: 0;
    border-radius: 10px;
}

.container-fluid .table th,
.container-fluid .table td {
    padding: 13px 16px;
}

.container-fluid .form-control,
.container-fluid .form-select {
    min-height: 42px;
}

.container-fluid .btn {
    border-radius: 6px;
}
